@ckeditor/ckeditor5-track-changes 43.0.0-alpha.2 → 43.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +10 -10
- 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
|
-
_0x3a6870(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x354ad8,_0x4405d5){super(),this['id']=_0x4405d5['id'],this['type']=_0x4405d5['type'],this['subType']=_0x4405d5['subType']||null,this['author']=_0x4405d5['author'],this['creator']=_0x4405d5['creator']||_0x4405d5['author'],this['isExternal']=Boolean(_0x4405d5['attributes']&&_0x4405d5['attributes']['@external']),this['data']=null,this['_model']=_0x354ad8,this['_onAccept']=_0x4405d5['onAccept'],this['_onDiscard']=_0x4405d5['onDiscard'],this['_onAttributesChange']=_0x4405d5['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4405d5['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 _0x4e6734=this;for(;_0x4e6734['previous'];)_0x4e6734=_0x4e6734['previous'];return _0x4e6734;}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'](_0x31dae4){this['_markerNames']['add'](_0x31dae4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x572544=>this['_model']['markers']['get'](_0x572544))['filter'](_0x65c0c8=>_0x65c0c8);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x37af36=>{for(const _0x3eee19 of this['getMarkers']())_0x37af36['removeMarker'](_0x3eee19);}),this['_markerNames']['clear']();}['removeMarker'](_0x5a5b68){this['_model']['change'](_0x5a044d=>{_0x5a044d['removeMarker'](_0x5a5b68);}),this['_markerNames']['delete'](_0x5a5b68);}['addRange'](_0x577af1){const _0x3f193b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3f193b),this['_model']['change'](_0x4fb992=>{_0x4fb992['addMarker'](_0x3f193b,{'range':_0x577af1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5f4475){for(const _0x532ca0 of this['getRanges']())if(_0x532ca0['isIntersecting'](_0x5f4475))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1d81de=>_0x1d81de['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x405193,_0x44fd02)=>[..._0x405193,..._0x44fd02['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5547c0=this['getRanges']();if(0x1!=_0x5547c0['length'])return null;const _0x480b42=_0x5547c0[0x0],_0x178470=_0x480b42['start']['nodeAfter'],_0x26ef35=_0x480b42['end']['nodeBefore'];return _0x178470 instanceof _0x20e049?_0x178470!=_0x26ef35?null:_0x178470: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 _0xb84c58=[];let _0x500442=this['head'];for(;_0x500442;)_0xb84c58['push'](_0x500442),_0x500442=_0x500442['next'];return _0xb84c58;}['setAttribute'](_0x1d20ac,_0x27a413){const _0x1fdcee=_0x54bc29(this['attributes']);_0x15536a(_0x1fdcee,_0x1d20ac,_0x27a413),_0x2c5b5c(_0x1fdcee,this['attributes'])||(this['attributes']=_0x1fdcee,this['_onAttributesChange'](_0x1fdcee));}['removeAttribute'](_0x5b5cbd){const _0x38f6c8=_0x54bc29(this['attributes']);_0x2dd42f(_0x38f6c8,_0x5b5cbd),_0x2c5b5c(_0x38f6c8,this['attributes'])||(this['attributes']=_0x38f6c8,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 _0x71cbf7()['substr'](0x1,0x5);}}function o(_0x36444c,_0x596531,_0x10cf38){const t=_0x36444c['t'];switch(_0x596531){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',_0x10cf38);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x10cf38);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x10cf38);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x10cf38);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x10cf38);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',_0x10cf38);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x10cf38);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',_0x10cf38);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x10cf38);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x10cf38);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x10cf38);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x10cf38);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x10cf38);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x10cf38);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x10cf38);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x10cf38);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x10cf38);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x10cf38);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x10cf38);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x10cf38);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x10cf38);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x10cf38);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x10cf38);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'},_0x10cf38);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x10cf38);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x10cf38);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x10cf38);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x10cf38);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x10cf38);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'},_0x10cf38);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x10cf38);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x10cf38);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x10cf38);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x10cf38);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'},_0x10cf38);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x10cf38);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'},_0x10cf38);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'},_0x10cf38);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x10cf38);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'},_0x10cf38);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x10cf38);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'},_0x10cf38);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x10cf38);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x10cf38);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x10cf38);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'},_0x10cf38);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'},_0x10cf38);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x10cf38);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x10cf38);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x10cf38);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x10cf38);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x596531;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2c71eb,_0x4cd62f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2c71eb,this['_locale']=_0x4cd62f;}['getDescriptions'](_0x59f355){const _0x8cbb84=[],_0x54c0ca=new Set(),_0x41e0b5=new Set();for(let _0x1645dc=0x0;_0x1645dc<_0x59f355['length'];_0x1645dc++){const _0x42d485=_0x59f355[_0x1645dc];if(!_0x42d485['isInContent'])continue;const _0x15f680=this['_handleCustomCallbackDescription'](_0x42d485);if(_0x15f680){if(null!=_0x42d485['subType']){if(_0x54c0ca['has'](_0x42d485['subType']))continue;_0x54c0ca['add'](_0x42d485['subType']);}_0x8cbb84['push'](_0x15f680);}else{if('attribute'!=_0x42d485['type'])'insertion'!=_0x42d485['type']&&'deletion'!=_0x42d485['type']||this['_handleInsertRemoveSuggestionDescription'](_0x8cbb84,_0x42d485,_0x59f355[_0x1645dc+0x1]);else{const _0x25274c=_0x42d485['data']['key'];if(_0x41e0b5['has'](_0x25274c))continue;_0x41e0b5['add'](_0x42d485['data']['key']),_0x25274c==m?this['_handleRenameSuggestionDescription'](_0x8cbb84,_0x42d485):this['_handleAttributeSuggestionDescription'](_0x8cbb84,_0x42d485);}}}return this['_resolveDescriptionItems'](_0x8cbb84);}['registerDescriptionCallback'](_0x48c7e6){this['_customCallbacks']['push'](_0x48c7e6);}['registerElementLabel'](_0x4a165e,_0x8bccec,_0x156d9f=_0x1f0d4e['normal']){'function'==typeof _0x4a165e?_0x388c97(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4a165e,'label':_0x8bccec,'priority':_0x156d9f}):this['_itemLabels']['set'](_0x4a165e,_0x8bccec);}['registerAttributeLabel'](_0x21e7c7,_0x23e79){this['_attributeLabels']['set'](_0x21e7c7,_0x23e79);}['getItemLabel'](_0x2ffaf3,_0x4ffcc0=0x1){let _0x33b27b;for(const _0x1155af of this['_itemLabelsCallbacks'])if(_0x1155af['matchingCallback'](_0x2ffaf3)){_0x33b27b=_0x1155af['label'];break;}return _0x33b27b||(_0x33b27b=this['_itemLabels']['get'](_0x2ffaf3['name'])),_0x33b27b?_0x33b27b(_0x4ffcc0):0x1!==_0x4ffcc0?_0x4ffcc0+'\x20'+_0x2ffaf3['name']+'s':''+_0x2ffaf3['name'];}['_addDescriptionItems'](_0xf6175f,_0x5ab3a9){const _0x3e01bf=_0x5ab3a9['getFirstRange']()['getWalker'](),_0x40dbb8='insertion'==_0x5ab3a9['type']?'add':'remove';for(const _0x7512cc of _0x3e01bf){const _0x4df17f=_0x7512cc['item'],_0x16bc6d=_0xf6175f[_0xf6175f['length']-0x1];if(_0x4df17f['is']('$textProxy'))_0x16bc6d&&_0x16bc6d['type']['indexOf']('Container')>-0x1&&_0xf6175f['pop'](),_0x16bc6d&&'text'==_0x16bc6d['type']?_0x16bc6d[_0x40dbb8]+=_0x4df17f['data']:_0xf6175f['push']({'type':'text','add':'add'==_0x40dbb8?_0x4df17f['data']:'','remove':'remove'==_0x40dbb8?_0x4df17f['data']:''});else{if(this['_schema']['isObject'](_0x4df17f)){const _0x21e574=_0x4df17f;if(_0x16bc6d&&_0x16bc6d['type']['indexOf']('Container')>-0x1&&_0xf6175f['pop'](),'elementEnd'==_0x7512cc['type'])continue;_0x16bc6d&&_0x16bc6d['type']==_0x40dbb8+'Object'&&_0x16bc6d['element']['name']==_0x21e574['name']?_0x16bc6d['quantity']++:_0xf6175f['push']({'type':_0x40dbb8+'Object','element':_0x21e574,'quantity':0x1}),_0x3e01bf['skip'](_0xc9e42e=>!('elementEnd'==_0xc9e42e['type']&&_0xc9e42e['item']==_0x4df17f));}else{if(this['_schema']['checkChild'](_0x4df17f,'$text')||_0x4df17f['is']('element','softBreak')){const _0x1bbc9e=_0x4df17f;if('add'==_0x40dbb8&&'elementStart'==_0x7512cc['type']||'remove'==_0x40dbb8&&'elementEnd'==_0x7512cc['type'])continue;if(_0x16bc6d&&-0x1==_0x16bc6d['type']['indexOf']('Container')){'text'==_0x16bc6d['type']&&(_0x16bc6d[_0x40dbb8]+='\x0a');continue;}let _0x3e7265;if(_0x3e7265='add'==_0x40dbb8?_0x1bbc9e['nextSibling']&&!this['_schema']['isObject'](_0x1bbc9e['nextSibling'])?_0x1bbc9e['nextSibling']:null:_0x1bbc9e['previousSibling']&&!this['_schema']['isObject'](_0x1bbc9e['previousSibling'])?_0x1bbc9e['previousSibling']:null,_0x1bbc9e['isEmpty']||_0x3e7265&&_0x3e7265['isEmpty']){const _0x3a1bae=_0x3e7265&&_0x3e7265['isEmpty']?_0x3e7265:_0x1bbc9e;_0x16bc6d&&_0x16bc6d['type']==_0x40dbb8+'EmptyContainer'&&_0x16bc6d['element']['name']==_0x3a1bae['name']?_0x16bc6d['quantity']++:_0xf6175f['push']({'type':_0x40dbb8+'EmptyContainer','element':_0x3a1bae,'quantity':0x1});}else _0xf6175f['push']({'type':_0x40dbb8+'Container','element':_0x1bbc9e});}}}}}['_resolveDescriptionItems'](_0x132a9e){const _0x5e3b43=this['_locale'],_0x3f020b=[],_0x53f35b=[],_0x3494ca=[];for(const _0x2cae1c of _0x132a9e)switch(_0x2cae1c['type']){case'text':if(_0x2cae1c['add']=_0x2cae1c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2cae1c['remove']=_0x2cae1c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2cae1c['add']&&''!=_0x2cae1c['remove']){_0x3f020b['push']({'type':'replace','content':o(_0x5e3b43,'REPLACE_TEXT',['\x22'+_0x2cae1c['remove']+'\x22','\x22'+_0x2cae1c['add']+'\x22'])});continue;}if(null!=_0x2cae1c['add']['match'](/^ +$/)){_0x3f020b['push']({'type':'insertion','content':o(_0x5e3b43,'*Insert:*\x20%0',o(_0x5e3b43,'ELEMENT_SPACE',_0x2cae1c['add']['length']))});continue;}if(null!=_0x2cae1c['remove']['match'](/^ +$/)){_0x3f020b['push']({'type':'deletion','content':o(_0x5e3b43,'*Remove:*\x20%0',o(_0x5e3b43,'ELEMENT_SPACE',_0x2cae1c['remove']['length']))});continue;}if(''!=_0x2cae1c['add']){_0x3f020b['push']({'type':'insertion','content':o(_0x5e3b43,'*Insert:*\x20%0','\x22'+_0x2cae1c['add']+'\x22')});continue;}_0x3f020b['push']({'type':'deletion','content':o(_0x5e3b43,'*Remove:*\x20%0','\x22'+_0x2cae1c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3f020b['push']({'type':'insertion','content':o(_0x5e3b43,'*Insert:*\x20%0',this['getItemLabel'](_0x2cae1c['element'],_0x2cae1c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3f020b['push']({'type':'deletion','content':o(_0x5e3b43,'*Remove:*\x20%0',this['getItemLabel'](_0x2cae1c['element'],_0x2cae1c['quantity']))});continue;case'addContainer':_0x3f020b['push']({'type':'insertion','content':o(_0x5e3b43,'*Split:*\x20%0',this['getItemLabel'](_0x2cae1c['element'],_0x2cae1c['quantity']))});continue;case'removeContainer':_0x3f020b['push']({'type':'deletion','content':o(_0x5e3b43,'*Merge:*\x20%0',this['getItemLabel'](_0x2cae1c['element'],_0x2cae1c['quantity']))});continue;case'addFormat':_0x53f35b['push'](_0x2cae1c['key']);continue;case'removeFormat':_0x3494ca['push'](_0x2cae1c['key']);continue;default:_0x3f020b['push'](_0x2cae1c);}if(_0x53f35b['length']){const _0x343d91=_0x53f35b['map'](_0x2c475b=>this['_attributeLabels']['has'](_0x2c475b)?this['_attributeLabels']['get'](_0x2c475b):_0x2c475b)['join'](',\x20');_0x3f020b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x343d91)});}if(_0x3494ca['length']){const _0x45e084=_0x3494ca['map'](_0x16dce7=>this['_attributeLabels']['has'](_0x16dce7)?this['_attributeLabels']['get'](_0x16dce7):_0x16dce7)['join'](',\x20');_0x3f020b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x45e084)});}return _0x3f020b;}['_handleCustomCallbackDescription'](_0x246e06){for(const _0x3c4691 of this['_customCallbacks']){const _0x560a15=_0x3c4691(_0x246e06);if(_0x560a15&&'type'in _0x560a15)return _0x560a15;}}['_handleAttributeSuggestionDescription'](_0x593e6d,_0x16e8a8){const _0x349435=_0x16e8a8['data'],_0x2c600b=void 0x0===_0x349435['newValue']?'removeFormat':'addFormat';_0x593e6d['push']({'type':_0x2c600b,'key':_0x349435['key']});}['_handleRenameSuggestionDescription'](_0x18b59e,_0x5c655a){_0x18b59e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5c655a['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x184185,_0x3ee78b,_0x572e22){if(this['_addDescriptionItems'](_0x184185,_0x3ee78b),_0x572e22&&_0x572e22['getFirstRange']()&&!_0x3ee78b['getFirstRange']()['end']['isEqual'](_0x572e22['getFirstRange']()['start'])){const _0x1fdf52=_0x184185[_0x184185['length']-0x1],_0x308d46='insertion'==_0x3ee78b['type']?'add':'remove';_0x1fdf52&&'text'==_0x1fdf52['type']&&(_0x1fdf52[_0x308d46]+='\x0a');}}}class V extends _0x5b3081{['afterInit'](){const _0x5e5e8b=this['editor'],_0x1214d8=_0x5e5e8b['plugins']['get']('TrackChangesEditing');_0x5e5e8b['commands']['get']('showAIAssistant')&&_0x1214d8['enableCommand']('showAIAssistant');}}class U extends _0x5b3081{['afterInit'](){const _0x71ace=this['editor'],_0x10324d=_0x71ace['locale'];if(!_0x71ace['plugins']['has']('AlignmentEditing'))return;const _0x511673=_0x71ace['plugins']['get']('TrackChangesEditing');_0x511673['enableDefaultAttributesIntegration']('alignment'),_0x511673['registerBlockAttribute']('alignment'),_0x511673['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x10324d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ff392=this['editor'],_0x114659=_0x1ff392['locale'];_0x1ff392['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa91834=>{if('formatBlock'!=_0xa91834['type'])return;const {data:_0x1a689c}=_0xa91834;if(_0x1a689c&&'alignment'==_0x1a689c['commandName']){const _0x36c39d=_0x1a689c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x114659,'*Format:*\x20%0',function(_0x4e198c){switch(_0x4e198c){case'left':return o(_0x114659,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x114659,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x114659,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x114659,'FORMAT_JUSTIFY_TEXT');}}(_0x36c39d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5b3081{['afterInit'](){const _0x3399fc=this['editor'],_0x1ca409=_0x3399fc['plugins']['get']('TrackChangesEditing'),_0x2a5e2e=_0x3399fc['locale'];for(const _0xa62cce of ti){if(!_0x3399fc['plugins']['has'](_0xa62cce))continue;const _0x2d4aa0=_0xa62cce['slice'](0x0,-0x7)['toLowerCase'](),_0x188429='FORMAT_'+_0x2d4aa0['toUpperCase']();_0x1ca409['enableDefaultAttributesIntegration'](_0x2d4aa0),_0x1ca409['registerInlineAttribute'](_0x2d4aa0),_0x1ca409['descriptionFactory']['registerAttributeLabel'](_0x2d4aa0,o(_0x2a5e2e,_0x188429));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2217df=this['editor'],_0xddf858=_0x2217df['locale'],_0x5787de=_0x2217df['plugins']['get']('TrackChangesEditing');function _0x38e532(_0x2716b1,_0x5e54ef){_0x5787de['descriptionFactory']['registerDescriptionCallback'](_0x44caca=>{if('formatInline'!=_0x44caca['type'])return;const {data:_0x13134e}=_0x44caca;return _0x13134e&&_0x13134e['commandName']===_0x2716b1?_0x13134e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xddf858,'*Format:*\x20%0',_0x5e54ef)}:{'type':'format','content':o(_0xddf858,'*Remove\x20format:*\x20%0',_0x5e54ef)}:void 0x0;});}_0x38e532('bold',o(_0xddf858,'FORMAT_BOLD')),_0x38e532('italic',o(_0xddf858,'FORMAT_ITALIC')),_0x38e532('underline',o(_0xddf858,'FORMAT_UNDERLINE')),_0x38e532('code',o(_0xddf858,'FORMAT_CODE')),_0x38e532('strikethrough',o(_0xddf858,'FORMAT_STRIKETHROUGH')),_0x38e532('subscript',o(_0xddf858,'FORMAT_SUBSCRIPT')),_0x38e532('superscript',o(_0xddf858,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5b3081{['afterInit'](){const _0x5d2426=this['editor'],_0x26625c=_0x5d2426['locale'];if(!_0x5d2426['plugins']['has']('BlockQuoteEditing'))return;const _0x492b9c=_0x5d2426['plugins']['get']('TrackChangesEditing'),_0x40168c=this['editor']['commands']['get']('blockQuote');_0x492b9c['enableCommand']('blockQuote',(_0x393bd2,_0x2f71af={})=>{const _0x54604d=this['editor']['model']['document']['selection'],_0x3fe814=_0x2f71af&&void 0x0!==_0x2f71af['forceValue']?_0x2f71af['forceValue']:!_0x40168c['value'];let _0x2189a2=[];if(_0x3fe814){const _0x57e443=Array['from'](_0x54604d['getSelectedBlocks']())['filter'](_0x3c56dc=>oo(_0x3c56dc)||function(_0x493783,_0x4c1fda){const _0x5c45a2=_0x4c1fda['checkChild'](_0x493783['parent'],'blockQuote'),_0x312748=_0x4c1fda['checkChild'](['$root','blockQuote'],_0x493783);return _0x5c45a2&&_0x312748;}(_0x3c56dc,this['editor']['model']['schema']));_0x2189a2=to(_0x57e443,_0x5d2426['model']);}else{const _0x2b397f=Array['from'](_0x54604d['getSelectedBlocks']())['filter'](_0x362497=>oo(_0x362497));_0x2189a2=to(_0x2b397f,_0x5d2426['model']);}_0x5d2426['model']['change'](()=>{for(const _0x48a864 of _0x2189a2)_0x492b9c['markBlockFormat'](_0x48a864,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3fe814}]});});}),_0x492b9c['descriptionFactory']['registerDescriptionCallback'](_0x44e719=>{const {data:_0x58083d}=_0x44e719;if(_0x58083d&&'blockQuote'==_0x58083d['commandName']){const _0x19e61c=o(_0x26625c,'ELEMENT_BLOCK_QUOTE');return _0x58083d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26625c,'*Set\x20format:*\x20%0',_0x19e61c)}:{'type':'format','content':o(_0x26625c,'*Remove\x20format:*\x20%0',_0x19e61c)};}});}}function oo(_0x44f9b4){return'blockQuote'==_0x44f9b4['parent']['name'];}class L extends _0x5b3081{['afterInit'](){const _0x484a82=this['editor'];_0x484a82['plugins']['has']('CaseChange')&&(_0x484a82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x484a82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x484a82['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5b3081{['afterInit'](){const _0x34c06c=this['editor'];_0x34c06c['commands']['get']('ckbox')&&_0x34c06c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x5b3081{['afterInit'](){const _0xa35ccc=this['editor'];if(!_0xa35ccc['plugins']['has']('CodeBlock'))return;const _0x542478=_0xa35ccc['plugins']['get']('TrackChangesEditing'),_0x5eb4cf=_0xa35ccc['locale'],_0xbd10a9=_0xa35ccc['config']['get']('codeBlock')['languages'],_0x703323=_0xa35ccc['commands']['get']('codeBlock');_0x542478['enableCommand']('indentCodeBlock'),_0x542478['enableCommand']('outdentCodeBlock'),_0x542478['enableCommand']('codeBlock',(_0xccb0fd,_0x247678={})=>{const _0x4ff99a=_0xa35ccc['model'],_0x224068=_0xa35ccc['model']['document']['selection'],_0x40f11d=_0x247678&&void 0x0!==_0x247678['forceValue']?_0x247678['forceValue']:!_0x703323['value'];let _0x5ece01;_0x247678['language']||(_0x247678['language']=_0xbd10a9[0x0]['language']),_0x5ece01=_0x40f11d?Array['from'](_0x224068['getSelectedBlocks']())['filter'](_0x53afbe=>eo(_0x53afbe)||function(_0x1e361b,_0x38092f){if(_0x1e361b['is']('rootElement')||_0x38092f['isLimit'](_0x1e361b))return!0x1;return _0x38092f['checkChild'](_0x1e361b['parent'],'codeBlock');}(_0x53afbe,_0x4ff99a['schema'])):Array['from'](_0x224068['getSelectedBlocks']())['filter'](_0x29a18b=>eo(_0x29a18b));const _0x498e1e=to(_0x5ece01,_0x4ff99a);_0x4ff99a['change'](()=>{for(const _0x48d4d0 of _0x498e1e)_0x542478['markBlockFormat'](_0x48d4d0,{'commandName':'codeBlock','commandParams':[{..._0x247678,'forceValue':_0x40f11d}],'formatGroupId':'blockName'});});}),(_0x542478['descriptionFactory']['registerElementLabel']('codeBlock',_0x522037=>o(_0x5eb4cf,'ELEMENT_CODE_BLOCK',_0x522037)),_0x542478['descriptionFactory']['registerDescriptionCallback'](_0xeff00c=>{if('formatBlock'!=_0xeff00c['type'])return;const _0x527188=_0x5eb4cf['t'],{data:_0x4c12f8}=_0xeff00c;if(!_0x4c12f8||'codeBlock'!=_0x4c12f8['commandName'])return;const _0x168add=_0x4c12f8['commandParams'][0x0]['language'],_0x27a4dd=_0x527188(_0xbd10a9['find'](_0x4a7570=>_0x4a7570['language']===_0x168add)['label'])['toLowerCase']();return _0x4c12f8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5eb4cf,'*Set\x20format:*\x20%0',o(_0x5eb4cf,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x27a4dd+')')}:{'type':'format','content':o(_0x5eb4cf,'*Remove\x20format:*\x20%0',o(_0x5eb4cf,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x727335){return'codeBlock'==_0x727335['name'];}class q extends _0x5b3081{['afterInit'](){const _0x57b733=this['editor'];if(!_0x57b733['plugins']['has']('CommentsEditing'))return;_0x57b733['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3b087c,_0x286105,_0x35d311){const _0x26fa20=[];for(const _0x590e7b of _0x286105['getItems']())_0x590e7b['hasAttribute'](_0x3b087c)&&_0x26fa20['push'](_0x35d311['createRangeOn'](_0x590e7b));return _0x26fa20;}function _e(_0x278d53,_0x250b66,{showActiveMarker:_0x503cd7=!0x0}={}){const _0x315290=_0x278d53['plugins']['get']('TrackChangesEditing');return(_0x251766,_0x56b41d,_0x56f915)=>{if(!_0x56f915['consumable']['test'](_0x56b41d['markerRange'],_0x251766['name']))return;const _0x491202=_0x56b41d['markerRange']['getWalker'](),_0x4de854=_0x56b41d['markerRange']['start'],_0x25c428=_0x278d53['model']['schema'];let _0x565848=null,_0x4c5523=null,_0x5084ac=!0x1,_0x982a1c=!0x1;for(const _0x3160e1 of _0x491202){const _0x1e7d4e=_0x3160e1['item'];_0x5084ac=_0x5084ac||_0x25c428['isContent'](_0x1e7d4e);const _0x4a4cf0=_0x56f915['mapper']['toViewElement'](_0x1e7d4e);if(_0x4a4cf0&&_0x4a4cf0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3160e1['type']&&(_0x25c428['isBlock'](_0x1e7d4e)&&!_0x25c428['isLimit'](_0x1e7d4e)&&(_0x1e7d4e['nextSibling']||_0x4de854['isAtEnd']?_0x565848&&_0x565848['parent']==_0x1e7d4e||(_0x565848=_0x1e7d4e,_0x4c9bb5(_0x3160e1['previousPosition']),_0x982a1c=!0x0):_0x4c5523=_0x4c5523||_0x3160e1['previousPosition']));}function _0x4c9bb5(_0x3d6fac){const _0x5d4e19=_0x56f915['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x250b66}),_0x36962f=_0x56f915['mapper']['toViewPosition'](_0x3d6fac);_0x503cd7&&_0x315290['activeMarkers']['includes'](_0x56b41d['markerName'])&&_0x56f915['writer']['addClass']('ck-suggestion-marker--active',_0x5d4e19),_0x56f915['writer']['insert'](_0x36962f,_0x5d4e19),_0x56f915['mapper']['bindElementToMarker'](_0x5d4e19,_0x56b41d['markerName']);}_0x5084ac||_0x982a1c||!_0x4c5523||_0x4c9bb5(_0x4c5523);};}class z extends _0x5b3081{static get['requires'](){return[_0x390dd1];}['init'](){const _0x41bab8=this['editor'],_0x2a818a=_0x41bab8['plugins']['get']('TrackChangesEditing');_0x2a818a['enableCommand']('delete');const _0x538f14=_0x41bab8['commands']['get']('deleteForward');_0x2a818a['enableCommand']('deleteForward',(_0x5cecec,_0x40b163={})=>{const _0x5928a7=_0x41bab8['model']['createSelection'](_0x41bab8['model']['document']['selection']);_0x5928a7['isCollapsed']&&_0x41bab8['model']['modifySelection'](_0x5928a7,{'direction':'forward','unit':_0x40b163['unit']});const _0x44dbc0=_0x5928a7['getFirstRange'](),_0x4a654b=_0x5116e6['fromRange'](_0x44dbc0);let _0x1449a2;_0x5cecec(_0x40b163),_0x1449a2='$graveyard'==_0x4a654b['root']['rootName']?_0x41bab8['model']['createRange'](_0x44dbc0['start']):_0x41bab8['model']['createRange'](_0x4a654b['start'],_0x4a654b['end']),_0x4a654b['detach'](),_0x41bab8['model']['enqueueChange'](_0x538f14['buffer']['batch'],_0x1a426a=>{_0x538f14['buffer']['lock'](),_0x1a426a['setSelection'](_0x1a426a['createRange'](_0x1449a2['end'])),_0x538f14['buffer']['unlock']();});}),_0x41bab8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x41bab8,'merge'),{'priority':'high'}),_0x41bab8['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3b1360,_0x523510,_0x2ce5f8)=>{_0x2ce5f8['options']['showSuggestionHighlights']&&_e(_0x41bab8,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3b1360,_0x523510,_0x2ce5f8);},{'priority':'high'}),_0x41bab8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x8cc473,_0x224bb8,_0x34e272)=>{const _0xfdeb9=_0x34e272['mapper']['markerNameToElements'](_0x224bb8['markerName']);if(_0xfdeb9){for(const _0x233064 of _0xfdeb9)_0x233064['is']('uiElement')&&(_0x34e272['mapper']['unbindElementFromMarkerName'](_0x233064,_0x224bb8['markerName']),_0x34e272['writer']['remove'](_0x233064));}},{'priority':'high'});}}class K extends _0x5b3081{['afterInit'](){const _0x274ac5=this['editor'];if(!_0x274ac5['plugins']['has']('ListEditing'))return;const _0x5ed438=_0x274ac5['locale'],_0x4d0712=_0x274ac5['plugins']['get']('TrackChangesEditing'),_0x4d0adf=_0x274ac5['plugins']['has']('TodoListEditing'),_0x56ef31=!!_0x274ac5['config']['get']('list.multiBlock');function _0x721afc(_0x91c20b){return{'type':'format','content':''+o(_0x5ed438,'*Set\x20format:*\x20%0',_0x91c20b)};}function _0x4f5e30(_0x551a7c){return{'type':'format','content':''+o(_0x5ed438,'*Remove\x20format:*\x20%0',_0x551a7c)};}_0x4d0712['enableDefaultAttributesIntegration']('numberedList'),_0x4d0712['enableDefaultAttributesIntegration']('bulletedList'),_0x4d0712['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d0712['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d0712['enableDefaultAttributesIntegration']('indentList'),_0x4d0712['enableDefaultAttributesIntegration']('outdentList'),_0x4d0712['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d0712['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d0712['registerBlockAttribute']('listItemId'),_0x4d0712['registerBlockAttribute']('listType'),_0x4d0712['registerBlockAttribute']('listIndent'),_0x56ef31&&(_0x4d0712['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d0712['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4d0adf&&(_0x4d0712['enableDefaultAttributesIntegration']('todoList'),_0x4d0712['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d0712['registerBlockAttribute']('todoListChecked'),_0x4d0712['descriptionFactory']['registerDescriptionCallback'](_0x49afe6=>{const {data:_0x46d2c4}=_0x49afe6;if(_0x46d2c4&&'todoListChecked'==_0x46d2c4['key'])return{'type':'format','content':_0x46d2c4['newValue']?o(_0x5ed438,'*Check\x20item*'):o(_0x5ed438,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x39f495=>{if(_0x39f495['batch']['isUndo'])return!0x1;let _0x242390=!0x1;const _0x4692ba=_0x4d0712['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1df986=>'todoListChecked'===_0x4d0712['_getAttributeKey'](_0x1df986));for(const _0x4cbf82 of _0x4692ba){'todo'!=_0x4cbf82['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d0712['_findSuggestions'](_0x4cbf82['getFirstRange'](),'attribute')['find'](_0x1b3210=>'listType'===_0x4d0712['_getAttributeKey'](_0x1b3210['suggestion']))||(_0x39f495['removeMarker'](_0x4cbf82['getFirstMarker']()),_0x242390=!0x0));}return _0x242390;})),_0x4d0712['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5ed438,'FORMAT_INDENT'));const _0x2a3780={'type':'format','content':''};_0x4d0712['descriptionFactory']['registerDescriptionCallback'](_0x7a2a9a=>{const {data:_0x22fd80}=_0x7a2a9a;if(!_0x22fd80||'listType'!=_0x22fd80['key'])return;let _0x2060d7=_0x7a2a9a['head'];for(;_0x2060d7;){if(_0x2060d7['data']&&(('listStyle'==_0x2060d7['data']['key']||'listMarkerStyle'==_0x2060d7['data']['key'])&&(_0x2060d7['data']['newValue']&&'default'!=_0x2060d7['data']['newValue']||'default'!=_0x2060d7['data']['oldValue']&&!_0x22fd80['newValue'])||!_0x56ef31&&_0x2060d7['data']['key']==m))return _0x2a3780;_0x2060d7=_0x2060d7['next'];}if(null==_0x22fd80['newValue'])switch(_0x22fd80['oldValue']){case'bulleted':return _0x4f5e30(o(_0x5ed438,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4f5e30(o(_0x5ed438,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4f5e30(o(_0x5ed438,'ELEMENT_TODO_LIST'));}switch(_0x22fd80['newValue']){case'bulleted':return _0x721afc(o(_0x5ed438,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x721afc(o(_0x5ed438,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x721afc(o(_0x5ed438,'ELEMENT_TODO_LIST'));}}),_0x4d0712['descriptionFactory']['registerDescriptionCallback'](_0x1761b3=>{const {data:_0x3ac16e}=_0x1761b3;if(_0x3ac16e&&'listIndent'==_0x3ac16e['key'])return null==_0x3ac16e['newValue']||null==_0x3ac16e['oldValue']&&0x0==_0x3ac16e['newValue']?_0x2a3780:void 0x0;}),_0x4d0712['descriptionFactory']['registerDescriptionCallback'](_0x50dd07=>{if('attribute'!=_0x50dd07['type'])return;const {data:_0x412888}=_0x50dd07;if(!_0x412888||'listItemId'!=_0x412888['key'])return;const _0x164118=le(_0x50dd07);return'newValue'==_0x164118?{'type':'format','content':o(_0x5ed438,'*Merge:*\x20list\x20item')}:'oldValue'==_0x164118?{'type':'format','content':o(_0x5ed438,'*Split:*\x20list\x20item')}:_0x2a3780;}),_0x274ac5['model']['document']['registerPostFixer'](_0x1607b7=>this['listItemIdFixer'](_0x1607b7)),_0x274ac5['model']['document']['registerPostFixer'](_0x1dd02d=>this['noTrackChangesFixer'](_0x1dd02d)),_0x274ac5['model']['document']['on']('change:data',(_0x5ab7c8,_0x14e9e0)=>{if(_0x14e9e0['isUndo']||!_0x14e9e0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5490fb){if(_0x5490fb['batch']['isUndo']||!_0x5490fb['batch']['isLocal'])return!0x1;let _0x398a89=!0x1;const _0x8cb944=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e5d80=>_0x2e5d80['data']&&'listItemId'==_0x2e5d80['data']['key'])['filter'](_0xd8fe91=>_0xd8fe91['data']['newValue']&&_0xd8fe91['data']['oldValue']);for(const _0xf02b7a of _0x8cb944)le(_0xf02b7a)||(_0x5490fb['removeMarker'](_0xf02b7a['getFirstMarker']()),_0x398a89=!0x0);return _0x398a89;}['noTrackChangesFixer'](_0x3b77f9){if(_0x3b77f9['batch']['isUndo']||!_0x3b77f9['batch']['isLocal'])return!0x1;const _0x103ce8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x103ce8['trackChangesCommand']['value'])return!0x1;let _0x391de9=!0x1;const _0x286a6f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xf927ac=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x44cfd9=>'attribute'==_0x44cfd9['type'])['filter'](_0x1c79ea=>_0x286a6f['includes'](_0x1c79ea['attributeKey']));if(0x0==_0xf927ac['length'])return _0x391de9;for(const _0x5a6b09 of _0xf927ac){const _0x2cbd68=_0x103ce8['_findSuggestions'](_0x5a6b09['range'],'attribute')['filter'](_0x542157=>!_0x542157['meta']['isNextTo'])['map'](_0x2c3ae9=>_0x2c3ae9['suggestion'])['filter'](_0x4d3413=>{const _0x464a89=_0x103ce8['_getAttributeKey'](_0x4d3413);return _0x286a6f['includes'](_0x464a89);});if(_0x2cbd68['length']){for(const _0x408fc6 of _0x2cbd68)_0x3b77f9['removeMarker'](_0x408fc6['getFirstMarker']());_0x391de9=!0x0;}}return _0x391de9;}['assureChains'](){const _0x1b92f1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1be189=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5d633a;const _0x303bd8=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x6ddcdd=>{if(_0x6ddcdd['data']['oldRange']||!_0x6ddcdd['data']['newRange'])return null;if(!_0x6ddcdd['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4d34af}=_0x1b92f1['_splitMarkerName'](_0x6ddcdd['name']);if(!_0x1b92f1['hasSuggestion'](_0x4d34af))return null;const _0x37eb8f=_0x1b92f1['getSuggestion'](_0x4d34af);return _0x1be189['includes'](_0x37eb8f['data']['key']);})['map'](_0x1c729f=>{const {id:_0xbaf107}=_0x1b92f1['_splitMarkerName'](_0x1c729f['name']),_0x1a0cc7=_0x1b92f1['getSuggestion'](_0xbaf107);return _0x5d633a=_0x1a0cc7['attributes']['groupId'],_0x1a0cc7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x303bd8['size'])return;const _0x236bb4=_0x1b92f1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42ef3b=>'attribute'==_0x42ef3b['type']&&_0x42ef3b['data']&&_0x1be189['includes'](_0x42ef3b['data']['key'])&&_0x42ef3b['attributes']['groupId']!=_0x5d633a)['map'](_0x5944de=>({'listItem':_0x5944de['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5944de['attributes']['groupId']})),_0x3ed739=new Set();for(const {groupId:_0x15cbe6,listItem:_0x251d10}of _0x236bb4)_0x303bd8['has'](_0x251d10)&&_0x3ed739['add'](_0x15cbe6);for(const _0x2b300d of _0x1b92f1['getSuggestions']())_0x3ed739['has'](_0x2b300d['attributes']['groupId'])&&_0x2b300d['setAttribute']('groupId',_0x5d633a);}['_supportLegacySuggestions'](){const _0x28078e=this['editor'],_0x4f9593=_0x28078e['locale'],_0x5ebe13=_0x28078e['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5ebe13['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1f8217,_0x2b1d6a){const _0x40687f=[];for(let _0x287704 of _0x1f8217)_0x287704['start']['nodeAfter']===_0x287704['end']['parent']&&(_0x287704=_0x28078e['model']['createRange'](_0x28078e['model']['createPositionAt'](_0x287704['start']['nodeAfter'],0x0))),_0x40687f['push'](_0x287704);_0x28078e['model']['change'](_0x5a7dc1=>{const _0x5bd69b=_0x28078e['model']['document']['selection'],_0x2d1394=Array['from'](_0x5bd69b['getRanges']())['map'](_0x509e67=>_0x5116e6['fromRange'](_0x509e67));_0x5a7dc1['setSelection'](_0x40687f),_0x28078e['commands']['get'](_0x2b1d6a['commandName'])['refresh'](),_0x2b1d6a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x28078e['execute'](_0x2b1d6a['commandName'],..._0x2b1d6a['commandParams']),_0x5a7dc1['setSelection'](_0x2d1394);for(const _0x1cc00b of _0x2d1394)_0x1cc00b['detach']();});}),_0x5ebe13['descriptionFactory']['registerElementLabel'](function(_0xaef3a4){const _0x5cdfbf=!_0x28078e['model']['schema']['isObject'](_0xaef3a4),_0x3ae260=_0xaef3a4['previousSibling'],_0x27be75=_0xaef3a4['nextSibling'],_0x11bf27=_0xaef3a4['getAttribute']('listItemId'),_0x3d082a=!_0x3ae260||_0x3ae260['getAttribute']('listItemId')!==_0x11bf27,_0x2db9f3=!_0x27be75||_0x27be75['getAttribute']('listItemId')!==_0x11bf27;return _0x5cdfbf&&Boolean(_0x11bf27)&&_0x3d082a&&_0x2db9f3;},_0x42b5df=>o(_0x4f9593,'ELEMENT_LIST_ITEM',_0x42b5df));}['_registerLegacyDescription'](){const _0x2f3610=this['editor'],_0x4464e7=_0x2f3610['locale'];function _0x27782e(_0x26986a){const _0x428873=_0x2f3610['commands']['get']('bulletedList')['value'],_0x4915f5=_0x2f3610['commands']['get']('numberedList')['value'];return'numberedList'===_0x26986a?_0x428873:_0x4915f5;}_0x2f3610['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x477d0b){if('formatBlock'!=_0x477d0b['type'])return;const {data:_0xb289b}=_0x477d0b;if(!_0xb289b)return;let _0x5674b9,_0x4790ae,_0x10fcc2,_0x2ebce1;switch(_0xb289b['commandName']){case'bulletedList':_0x10fcc2=_0xb289b['commandParams'][0x0]['forceValue'],_0x2ebce1=_0x27782e(_0xb289b['commandName']),_0x5674b9=_0x10fcc2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ebce1&&_0x2f3610['config']['get']('list.multiBlock')||(_0x5674b9='*Change\x20to:*\x20%0'),_0x4790ae={'type':'format','content':o(_0x4464e7,_0x5674b9,o(_0x4464e7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x10fcc2=_0xb289b['commandParams'][0x0]['forceValue'],_0x2ebce1=_0x27782e(_0xb289b['commandName']),_0x5674b9=_0x10fcc2?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ebce1&&_0x2f3610['config']['get']('list.multiBlock')||(_0x5674b9='*Change\x20to:*\x20%0'),_0x4790ae={'type':'format','content':o(_0x4464e7,_0x5674b9,o(_0x4464e7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5674b9='*Indent:*\x20%0',_0x4790ae={'type':'format','content':o(_0x4464e7,_0x5674b9,o(_0x4464e7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5674b9=function(_0x2d6a7d){const _0x3cc7a0=_0x2d6a7d['getFirstRange']();let _0x1b8b89=_0x3cc7a0['start']['nodeAfter'];for(;_0x1b8b89&&_0x3cc7a0['containsItem'](_0x1b8b89);){if(_0x1b8b89['getAttribute']('listIndent')>0x0)return!0x1;_0x1b8b89=_0x1b8b89['nextSibling'];}return!0x0;}(_0x477d0b)?o(_0x4464e7,'*Format:*\x20remove\x20from\x20%0',o(_0x4464e7,function(_0x267006){return'ELEMENT_'+_0x267006['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x477d0b))):o(_0x4464e7,'*Outdent:*\x20%0',o(_0x4464e7,'ELEMENT_LIST_ITEM')),_0x4790ae={'type':'format','content':_0x5674b9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xb289b['multipleBlocks']&&(_0x5674b9='*Merge:*\x20%0',_0x4790ae={'type':'deletion','content':o(_0x4464e7,_0x5674b9,o(_0x4464e7,'ELEMENT_LIST_ITEM'))});}return _0x4790ae;});}}function le(_0x46ea69){let _0x3f5d72=_0x46ea69['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3f5d72;){const _0x221109=_0x3f5d72['getAttribute']('listItemId');if(!_0x221109)return!0x1;if(_0x221109==_0x46ea69['data']['newValue'])return'newValue';if(_0x221109==_0x46ea69['data']['oldValue'])return'oldValue';_0x3f5d72=_0x3f5d72['previousSibling'];}return!0x1;}class pe extends _0x5b3081{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x50d897=this['editor']['config']['get']('list.properties'),_0x5175e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x50d897['styles']&&(_0x5175e5['enableDefaultAttributesIntegration']('listStyle'),_0x5175e5['registerBlockAttribute']('listStyle')),_0x50d897['reversed']&&(_0x5175e5['enableDefaultAttributesIntegration']('listReversed'),_0x5175e5['registerBlockAttribute']('listReversed')),_0x50d897['startIndex']&&(_0x5175e5['enableDefaultAttributesIntegration']('listStart'),_0x5175e5['registerBlockAttribute']('listStart'));const _0x300b66={'type':'format','content':''};_0x5175e5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x27e7d8=this['editor']['locale'];_0x5175e5['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x27e7d8,'FORMAT_LIST_REVERSED')),_0x5175e5['descriptionFactory']['registerDescriptionCallback'](_0x1c2535=>{const {data:_0x25c465}=_0x1c2535;if(_0x25c465&&'listReversed'==_0x25c465['key'])return null==_0x25c465['newValue']||0x0==_0x25c465['newValue']&&null==_0x25c465['oldValue']?_0x300b66:void 0x0;}),_0x5175e5['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x27e7d8,'FORMAT_LIST_START')),_0x5175e5['descriptionFactory']['registerDescriptionCallback'](_0x172de5=>{const {data:_0x35bc98}=_0x172de5;if(_0x35bc98&&'listStart'==_0x35bc98['key'])return null==_0x35bc98['newValue']||0x1==_0x35bc98['newValue']&&null==_0x35bc98['oldValue']?_0x300b66:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x55208d=>{if(_0x55208d['batch']['isUndo'])return!0x1;let _0x17e4a4=!0x1;const _0x500478=_0x5175e5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4aa4ca=>{const _0x65e200=_0x5175e5['_getAttributeKey'](_0x4aa4ca);return'listStart'==_0x65e200||'listReversed'==_0x65e200;});for(const _0x1b790b of _0x500478){const _0x7ddab9=_0x1b790b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x7ddab9||'customNumbered'==_0x7ddab9)continue;_0x5175e5['_findSuggestions'](_0x1b790b['getFirstRange'](),'attribute')['find'](_0x22e01b=>'listType'==_0x5175e5['_getAttributeKey'](_0x22e01b['suggestion']))||(_0x55208d['removeMarker'](_0x1b790b['getFirstMarker']()),_0x17e4a4=!0x0);}return _0x17e4a4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x29776){const _0x3db168=this['editor']['locale'],{data:_0x551a59}=_0x29776,_0x1eb9d2={'type':'format','content':''};if(!_0x551a59||'listStyle'!=_0x551a59['key'])return;if(!_0x551a59['oldValue'])return'default'==_0x551a59['newValue']?_0x1eb9d2:{'type':'format','content':''+o(_0x3db168,'*Set\x20format:*\x20%0',o(_0x3db168,this['_getTranslationKeyForListStyle'](_0x551a59['newValue'])))};if(!_0x551a59['newValue']){if('default'==_0x551a59['oldValue'])return _0x1eb9d2;let _0x90d66=_0x29776['head'];for(;_0x90d66;){if(_0x90d66['data']&&'listType'==_0x90d66['data']['key']&&_0x90d66['data']['newValue'])return _0x1eb9d2;_0x90d66=_0x90d66['next'];}return{'type':'format','content':''+o(_0x3db168,'*Remove\x20format:*\x20%0',o(_0x3db168,this['_getTranslationKeyForListStyle'](_0x551a59['oldValue'])))};}if('default'!=_0x551a59['newValue'])return{'type':'format','content':''+o(_0x3db168,'*Set\x20format:*\x20%0',o(_0x3db168,this['_getTranslationKeyForListStyle'](_0x551a59['newValue'])))};let _0x754d0b=_0x29776['head'];for(;_0x754d0b;){if(_0x754d0b['data']&&'listType'==_0x754d0b['data']['key']&&_0x754d0b['data']['newValue']&&_0x754d0b['data']['oldValue'])return _0x1eb9d2;_0x754d0b=_0x754d0b['next'];}return{'type':'format','content':o(_0x3db168,'*Set\x20format:*\x20%0',o(_0x3db168,'ELEMENT_'+_0x29776['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xe8b68c=this['editor'],_0x31944b=_0xe8b68c['locale'];_0xe8b68c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fbdf6=>{if('formatBlock'!=_0x4fbdf6['type'])return;const {data:_0x1b8c7c}=_0x4fbdf6;if(!_0x1b8c7c)return;let _0x549bc2,_0x3e70bc;switch(_0x1b8c7c['commandName']){case'listStyle':_0x549bc2='*Change\x20to:*\x20%0',_0x3e70bc={'type':'format','content':o(_0x31944b,_0x549bc2,o(_0x31944b,this['_getTranslationKeyForListStyle'](_0x1b8c7c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x549bc2=_0x1b8c7c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e70bc={'type':'format','content':o(_0x31944b,_0x549bc2)};break;case'listStart':_0x549bc2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e70bc={'type':'format','content':o(_0x31944b,_0x549bc2,_0x1b8c7c['commandParams'][0x0]['startIndex'])};}return _0x3e70bc;});}['_getTranslationKeyForListStyle'](_0x8fffa){return'ELEMENT_'+function(_0x59d4c8){if(ye['includes'](_0x59d4c8))return'bulleted';if(Se['includes'](_0x59d4c8))return'numbered';return null;}(_0x8fffa)['toUpperCase']()+'_LIST_'+_0x8fffa['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x5b3081{static get['requires'](){return[_0x3e8c2c];}['init'](){const _0x4d1b1f=this['editor'],_0x390fe0=_0x4d1b1f['plugins']['get']('TrackChangesEditing'),_0x4df7d2=_0x4d1b1f['commands']['get']('enter');_0x390fe0['enableCommand']('enter',()=>{_0x4d1b1f['model']['change'](_0x3bdb7d=>{const _0x18511e=_0x4d1b1f['model']['document']['selection'],_0x46c083=_0x18511e['getFirstPosition'](),_0x1e5b06=_0x5116e6['fromRange'](_0x18511e['getFirstRange']());if(_0x4df7d2['enterBlock'](_0x3bdb7d)){const _0x1fa8a4=_0x4d1b1f['model']['createPositionAt'](_0x46c083['parent']['nextSibling'],0x0),_0x3d06a1=_0x3bdb7d['createRange'](_0x46c083,_0x1fa8a4);_0x390fe0['markInsertion'](_0x3d06a1);}else _0x3bdb7d['setSelection'](_0x3bdb7d['createRange'](_0x1e5b06['end']));_0x1e5b06['detach'](),_0x4df7d2['fire']('afterExecute',{'writer':_0x3bdb7d});});}),_0x4d1b1f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4d1b1f,'split'),{'priority':'high'}),_0x4d1b1f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x56bdba,_0x33d5e6,_0x2be5db)=>{const _0x3b30dd=_0x2be5db['mapper']['markerNameToElements'](_0x33d5e6['markerName']);if(_0x3b30dd){for(const _0x52458d of _0x3b30dd)_0x52458d['hasClass']('ck-suggestion-marker-split')&&(_0x2be5db['mapper']['unbindElementFromMarkerName'](_0x52458d,_0x33d5e6['markerName']),_0x2be5db['writer']['remove'](_0x52458d));}},{'priority':'high'}),_0x4d1b1f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x10e1f2,_0x319ba3,_0x3cca9b)=>{_0x3cca9b['options']['showSuggestionHighlights']&&_e(_0x4d1b1f,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x10e1f2,_0x319ba3,_0x3cca9b);},{'priority':'high'});}}class X extends _0x5b3081{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x38d214=this['editor']['plugins']['get']('TrackChangesEditing');_0x38d214['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x38d214['enableCommand']('findNext'),_0x38d214['enableCommand']('findPrevious'),_0x38d214['enableCommand']('replace'),_0x38d214['enableCommand']('replaceAll');}['handleFindCommand'](_0x3008e4,_0x1e2b2c,_0x5b4a5e={}){const _0x194d4e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3008e4(_0x29ec66=>{let _0x2046d6=('string'==typeof _0x1e2b2c?_0x194d4e['findByTextCallback'](_0x1e2b2c,_0x5b4a5e):_0x1e2b2c)(_0x29ec66);Array['isArray'](_0x2046d6)&&(_0x2046d6={'results':_0x2046d6,'searchText':'string'==typeof _0x1e2b2c?_0x1e2b2c:''});const _0x436260=_0x2046d6['results']['filter'](_0x201daa=>!0x1===this['_isInDeletionRange'](_0x201daa,_0x29ec66['item']));return{..._0x2046d6,'results':_0x436260};},_0x5b4a5e);}['_isInDeletionRange'](_0x490abb,_0x1694b7){const _0x502286=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1694b7,_0x490abb['start']),this['editor']['model']['createPositionAt'](_0x1694b7,_0x490abb['end']));for(const _0x787c53 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x502286['getIntersection'](_0x787c53['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x5b3081{['afterInit'](){const _0x318a08=this['editor']['locale'],_0x3fd48d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3dc788,commandName:_0x1c092a}of ro)this['editor']['plugins']['has'](_0x3dc788)&&(_0x3fd48d['enableDefaultAttributesIntegration'](_0x1c092a),_0x3fd48d['registerInlineAttribute'](_0x1c092a));_0x3fd48d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x318a08,'FORMAT_FONT_SIZE')),_0x3fd48d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x318a08,'FORMAT_FONT_FAMILY')),_0x3fd48d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x318a08,'FORMAT_FONT_COLOR')),_0x3fd48d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x318a08,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b0e1e=this['editor'],_0x2a67d5=_0x5b0e1e['locale'];_0x5b0e1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17b965=>{const _0x216672=_0x2a67d5['t'];if('formatInline'!=_0x17b965['type'])return;const {data:_0xe8108d}=_0x17b965;if(null!=_0xe8108d){if('fontSize'==_0xe8108d['commandName']){const _0x1290c1=_0xe8108d['commandParams'][0x0]['value'];if(_0x1290c1){const _0x239cd6=_0x216672(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xd25eca=>_0xd25eca['model']==_0x1290c1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2a67d5,'*Set\x20font\x20size:*\x20%0',_0x239cd6)};}return{'type':'format','content':o(_0x2a67d5,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xe8108d['commandName']){const _0x4ffb43=_0xe8108d['commandParams'][0x0]['value'];return _0x4ffb43?{'type':'format','content':o(_0x2a67d5,'*Set\x20font\x20family:*\x20%0',_0x4ffb43)}:{'type':'format','content':o(_0x2a67d5,'*Reset\x20font\x20family*')};}if('fontColor'==_0xe8108d['commandName']){const _0x552eef=_0xe8108d['commandParams'][0x0]['value'];if(_0x552eef){const _0x437317=_0x34956b(this['editor']['config']['get']('fontColor.colors'))['find'](_0xf33306=>_0xf33306['model']==_0x552eef);let _0x14865f=_0x552eef,_0x5b53bd='';return _0x437317&&(_0x14865f=_0x437317['label'],_0x5b53bd=_0x216672(_0x14865f)['toLowerCase']()),{'type':'format','content':o(_0x2a67d5,'*Set\x20font\x20color:*\x20%0',_0x5b53bd)['trim'](),'color':{'value':_0x552eef,'title':_0x5b53bd||_0x14865f}};}return{'type':'format','content':o(_0x2a67d5,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xe8108d['commandName']){const _0x4c4254=_0xe8108d['commandParams'][0x0]['value'];if(_0x4c4254){const _0x1d5d01=_0x34956b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2f4d99=>_0x2f4d99['model']==_0x4c4254);let _0x396097=_0x4c4254,_0x4ed926='';return _0x1d5d01&&(_0x396097=_0x1d5d01['label'],_0x4ed926=_0x216672(_0x396097)['toLowerCase']()),{'type':'format','content':o(_0x2a67d5,'*Set\x20font\x20background\x20color:*\x20%0',_0x4ed926)['trim'](),'color':{'value':_0x4c4254,'title':_0x4ed926||_0x396097}};}return{'type':'format','content':o(_0x2a67d5,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x5b3081{['afterInit'](){const _0x47c46f=this['editor'],_0x4be9ed=_0x47c46f['plugins']['get']('TrackChangesEditing'),_0x183e0a=_0x47c46f['commands']['get']('copyFormat'),_0x4096b0=_0x47c46f['commands']['get']('pasteFormat');_0x183e0a&&_0x4096b0&&(_0x4be9ed['enableDefaultAttributesIntegration']('pasteFormat'),_0x4be9ed['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xa2b593=this['editor'],_0x584c2e=_0xa2b593['locale'];_0xa2b593['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb9f0=>{if('formatBlock'!=_0x2bb9f0['type']&&'formatInline'!=_0x2bb9f0['type'])return;const {data:_0x69c213}=_0x2bb9f0;if(_0x69c213&&'pasteFormat'===_0x69c213['commandName']){const _0x467e09=[],_0x52c1ee=_0x69c213['commandParams'][0x0];for(const [_0xdc3765,_0x1fba49]of Object['entries'](_0x52c1ee))_0x467e09['push'](so(_0xa2b593,_0xdc3765,_0x1fba49));return _0x467e09['length']?{'type':'format','content':o(_0x584c2e,'*Set\x20format\x20to:*\x20%0',_0x467e09['join'](',\x20'))}:{'type':'format','content':o(_0x584c2e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x13396a,_0x126a32,_0x5a8a3e){const _0x154f20=_0x13396a['locale']['t'],_0x3c2e02=_0x126a32['split'](/(?=[A-Z])/)['join']('\x20'),_0xe6aa19=_0x154f20(_0x3c2e02['charAt'](0x0)['toUpperCase']()+_0x3c2e02['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5a8a3e)return _0xe6aa19;if('fontColor'===_0x126a32||'fontBackgroundColor'===_0x126a32){const _0x50d1c6=_0x34956b(_0x13396a['config']['get']('fontColor.colors'))['find'](_0x3d5279=>_0x3d5279['model']==_0x5a8a3e);return _0xe6aa19+'\x20('+(_0x50d1c6?_0x154f20(_0x50d1c6['label'])['toLowerCase']():_0x5a8a3e)+')';}if('fontSize'===_0x126a32&&isNaN(parseFloat(_0x5a8a3e))){const _0xc42fec=_0x13396a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x13396a['config']['get']('fontSize.options'))['find'](_0x37b5d1=>_0x37b5d1['model']==_0x5a8a3e);return _0xe6aa19+'\x20('+(_0xc42fec?_0x154f20(_0xc42fec['title'])['toLowerCase']():_0x5a8a3e)+')';}return _0xe6aa19+'\x20('+_0x5a8a3e+')';}class tt extends _0x5b3081{['_headingOptions'];['afterInit'](){const _0x1f47a2=this['editor'];if(!_0x1f47a2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1f47a2['config']['get']('heading.options');const _0x2ba0ca=_0x1f47a2['locale'],_0x2ef05b=_0x1f47a2['plugins']['get']('TrackChangesEditing');_0x2ef05b['enableDefaultAttributesIntegration']('heading');for(const _0x28844b of this['_headingOptions'])'paragraph'!=_0x28844b['model']&&_0x2ef05b['descriptionFactory']['registerElementLabel'](_0x28844b['model'],_0x23659c=>{const _0x148b17=this['_getHeadingLevel'](_0x28844b['model']);return null!==_0x148b17?_0x1a9b33(_0x23659c,_0x148b17):_0x2380a6(_0x23659c,_0x28844b['title']);});function _0x1a9b33(_0xd19082,_0x474ad4){return o(_0x2ba0ca,'ELEMENT_HEADING',[_0xd19082,_0x474ad4]);}function _0x2380a6(_0x1115fc,_0x2282f7){return o(_0x2ba0ca,'ELEMENT_HEADING_CUSTOM',[_0x1115fc,_0x2282f7]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x316893=this['editor'],_0x55b6b1=_0x316893['locale'];function _0x23c052(_0x1a03fe,_0x33bdfd){return o(_0x55b6b1,'ELEMENT_HEADING_CUSTOM',[_0x1a03fe,_0x33bdfd]);}_0x316893['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2911d1=>{if('formatBlock'!=_0x2911d1['type'])return;const {data:_0x133536}=_0x2911d1;if(_0x133536&&'heading'==_0x133536['commandName']){const _0x14126d=_0x133536['commandParams'][0x0]['value'],_0x2ea210=this['_getHeadingLevel'](_0x14126d);if(null!==_0x2ea210)return{'type':'format','content':o(_0x55b6b1,'*Change\x20to:*\x20%0',(_0xbc3a36=0x1,_0x432871=_0x2ea210,o(_0x55b6b1,'ELEMENT_HEADING',[_0xbc3a36,_0x432871])))};const _0x2ba724=this['_headingOptions']['find'](_0x400872=>_0x400872['model']===_0x14126d)['title'];return{'type':'format','content':o(_0x55b6b1,'*Change\x20to:*\x20%0',_0x23c052(0x1,_0x2ba724))};}var _0xbc3a36,_0x432871;});}['_getHeadingLevel'](_0x16128b){const _0x93400a=_0x16128b['match'](/^heading(\d+)/);if(_0x93400a)return _0x93400a[0x1];const _0x39670d=this['_headingOptions']?.['find'](_0x2908da=>_0x2908da['model']==_0x16128b);if(_0x39670d&&_0x39670d['view']){const _0x31d72e=_0x39670d['view'],_0x25cc4a=(_0x31d72e['name']??_0x31d72e)['match'](/^h(\d+)/);if(_0x25cc4a)return _0x25cc4a[0x1];}return null;}}class et extends _0x5b3081{['afterInit'](){const _0x2a0cf2=this['editor'];if(!_0x2a0cf2['plugins']['has']('HighlightEditing'))return;const _0x1231d4=_0x2a0cf2['plugins']['get']('TrackChangesEditing'),_0x59a4cd=_0x2a0cf2['locale'];_0x1231d4['enableDefaultAttributesIntegration']('highlight'),_0x1231d4['registerInlineAttribute']('highlight'),_0x1231d4['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x59a4cd,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d6412=this['editor'],_0x49607d=_0x4d6412['locale'];_0x4d6412['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc2f816=>{if('formatInline'!=_0xc2f816['type'])return;const {data:_0xbf6a95}=_0xc2f816;if(_0xbf6a95&&'highlight'==_0xbf6a95['commandName']){const _0x1c9860=_0x49607d['t'],_0x533366=_0xbf6a95['commandParams'][0x0]['value'];if(_0x533366){const _0x34ed87=_0x4d6412['config']['get']('highlight.options')['find'](_0x3d799f=>_0x3d799f['model']==_0x533366),_0x3f57bf=_0x1c9860(_0x34ed87['title'])['toLowerCase']();return{'type':'format','content':o(_0x49607d,'*Set\x20highlight:*\x20%0',_0x3f57bf),'color':{'value':_0x34ed87['color'],'title':_0x34ed87['title']}};}return{'type':'format','content':o(_0x49607d,'*Remove\x20highlight*',o(_0x49607d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x5b3081{['afterInit'](){const _0x43e0a3=this['editor'];if(!_0x43e0a3['plugins']['has']('HorizontalLineEditing'))return;_0x43e0a3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4ae13f=_0x43e0a3['plugins']['get']('TrackChangesEditing'),_0x3e582c=_0x43e0a3['locale'];_0x4ae13f['descriptionFactory']['registerElementLabel']('horizontalLine',_0xf94da=>o(_0x3e582c,'ELEMENT_HORIZONTAL_LINE',_0xf94da)),_0x43e0a3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x16062b,{writer:_0x14e1ca,options:_0x3853b5})=>{if(!_0x3853b5['showSuggestionHighlights'])return null;const _0x1e6fae=_0x14e1ca['createContainerElement']('div'),_0x88f033=_0x14e1ca['createEmptyElement']('hr');return _0x14e1ca['addClass']('ck-horizontal-line',_0x1e6fae),_0x14e1ca['insert'](_0x14e1ca['createPositionAt'](_0x1e6fae,0x0),_0x88f033),_0x1e6fae;},'converterPriority':'high'});}}class st extends _0x5b3081{['afterInit'](){const _0x5f1f0d=this['editor'];if(!_0x5f1f0d['plugins']['has']('HtmlEmbed'))return;const _0x594b7d=_0x5f1f0d['plugins']['get']('TrackChangesEditing'),_0x2671f7=_0x5f1f0d['locale'];_0x594b7d['descriptionFactory']['registerElementLabel']('rawHtml',_0x5b77fa=>o(_0x2671f7,'ELEMENT_HTML_EMBED',_0x5b77fa)),_0x594b7d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x594b7d['registerBlockAttribute']('value'),_0x594b7d['descriptionFactory']['registerDescriptionCallback'](_0x388fb1=>{if('attribute'!=_0x388fb1['type'])return;const {data:_0x14036e}=_0x388fb1;if(_0x14036e&&'value'==_0x14036e['key']&&_0x388fb1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5407e9=o(_0x2671f7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2671f7,'*Change\x20%0\x20content*',_0x5407e9)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9f6ad9=this['editor'],_0x3aea5e=_0x9f6ad9['locale'];_0x9f6ad9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59d533=>{if('formatBlock'!=_0x59d533['type'])return;const {data:_0x27c813}=_0x59d533;if(_0x27c813&&'htmlEmbed'==_0x27c813['commandName']){const _0xdf1436=o(_0x3aea5e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3aea5e,'*Change\x20%0\x20content*',_0xdf1436)};}});}}class nt extends _0x5b3081{['afterInit'](){const _0xfd5967=this['editor'];if(!_0xfd5967['plugins']['has']('ImageEditing'))return;const _0x3edc4d=_0xfd5967['plugins']['get']('TrackChangesEditing'),_0x50ec9a=_0xfd5967['plugins']['get']('ImageUtils'),_0x17d788=_0xfd5967['locale'];_0x3edc4d['enableCommand']('insertImage'),_0x3edc4d['descriptionFactory']['registerElementLabel']('imageBlock',_0x346712=>o(_0x17d788,'ELEMENT_IMAGE',_0x346712)),_0x3edc4d['descriptionFactory']['registerElementLabel']('imageInline',_0x3425dc=>o(_0x17d788,'ELEMENT_INLINE_IMAGE',_0x3425dc)),_0x3edc4d['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x17d788,'ELEMENT_CAPTION')),_0xfd5967['plugins']['has']('ImageUploadEditing')&&_0x3edc4d['enableCommand']('uploadImage'),_0xfd5967['plugins']['has']('ImageBlockEditing')&&_0xfd5967['plugins']['has']('ImageInlineEditing')&&(_0x3edc4d['enableCommand']('imageTypeInline',(_0x195680,_0x482a5d)=>{const _0x1b2a44=_0x50ec9a['getClosestSelectedImageElement'](_0xfd5967['model']['document']['selection']);_0xfd5967['model']['change'](()=>{_0x3edc4d['markBlockFormat'](_0x1b2a44,{'commandName':'imageTypeInline','commandParams':[_0x482a5d]},[],'convertBlockImageToInline');});}),_0x3edc4d['enableCommand']('imageTypeBlock',(_0x19941f,_0x4765c6)=>{_0xfd5967['model']['change'](_0x3294c5=>{let _0x2e182f=_0x50ec9a['getClosestSelectedImageElement'](_0xfd5967['model']['document']['selection']),_0x306bdd=_0x3294c5['createRangeOn'](_0x2e182f);const _0x48dabf=_0xb8b1db['fromPosition'](_0x306bdd['start'],'toPrevious'),_0x5f1fdf=_0xb8b1db['fromPosition'](_0x306bdd['end'],'toNext');_0x3edc4d['forceDefaultExecution'](()=>_0x19941f(_0x4765c6)),_0x2e182f=_0x50ec9a['getClosestSelectedImageElement'](_0xfd5967['model']['document']['selection']),_0x306bdd=_0x3294c5['createRangeOn'](_0x2e182f);const _0x15bdaa=_0x3294c5['createRange'](_0x48dabf,_0x5f1fdf);_0x48dabf['detach'](),_0x5f1fdf['detach'](),_0x3edc4d['markBlockFormat'](_0x2e182f,{'commandName':'imageTypeInline','commandParams':[_0x4765c6]},[],'convertInlineImageToBlock'),_0x15bdaa['start']['isBefore'](_0x306bdd['start'])&&_0x3edc4d['markInsertion'](_0x3294c5['createRange'](_0x15bdaa['start'],_0x306bdd['start']),'convertInlineImageToBlock'),_0x306bdd['end']['isBefore'](_0x15bdaa['end'])&&_0x3edc4d['markInsertion'](_0x3294c5['createRange'](_0x306bdd['end'],_0x15bdaa['end']),'convertInlineImageToBlock');});}),_0x3edc4d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3edc4d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3edc4d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3edc4d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3edc4d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3edc4d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5a1460])=>{const _0x1f1754=_0x3edc4d['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x57664a=_0x5a1460['start'],_0x52396d=_0x5a1460['end'];const _0x41069d=_0xfd5967['model']['schema']['getNearestSelectionRange'](_0x57664a,'backward'),_0x54df15=_0xfd5967['model']['schema']['getNearestSelectionRange'](_0x52396d,'forward');_0x41069d['isCollapsed']&&(_0x57664a=_0x41069d['start']),_0x54df15['isCollapsed']&&(_0x52396d=_0x54df15['end']),_0x1f1754([_0xfd5967['model']['createRange'](_0x57664a,_0x52396d)]);}),_0x3edc4d['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1d9cdb),_0x3edc4d['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1d9cdb)),_0xfd5967['plugins']['has']('ImageCaptionEditing')&&(_0x3edc4d['enableCommand']('toggleImageCaption',(_0x26bb43,_0x4eb197)=>{const _0x1c5002=_0xfd5967['plugins']['get']('ImageCaptionUtils');let _0x461496=_0x50ec9a['getClosestSelectedImageElement'](_0xfd5967['model']['document']['selection']),_0x219eca=_0x1c5002['getCaptionFromImageModelElement'](_0x461496);_0xfd5967['model']['change'](()=>{if(_0x219eca)return void _0x3edc4d['markDeletion'](_0xfd5967['model']['createRangeOn'](_0x219eca));const _0xf48949=_0x50ec9a['isBlockImage'](_0x461496);_0x26bb43(_0x4eb197),_0x461496=_0x50ec9a['getClosestSelectedImageElement'](_0xfd5967['model']['document']['selection']),_0x219eca=_0x1c5002['getCaptionFromImageModelElement'](_0x461496),_0x3edc4d['markInsertion'](_0xfd5967['model']['createRangeOn'](_0x219eca),_0xf48949?null:'imageCaption');});}),_0x3edc4d['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1d9cdb));const _0x28e1ff=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3d132c(_0x3c2ba2,_0x3fda4f){const _0x167667=_0x28e1ff['findIndex'](({type:_0x455041,subType:_0x507904})=>_0x3c2ba2['type']==_0x455041&&_0x3c2ba2['subType']==_0x507904),_0x57a78c=_0x28e1ff['findIndex'](({type:_0x13844a,subType:_0xe00bdd})=>_0x3fda4f['type']==_0x13844a&&_0x3fda4f['subType']==_0xe00bdd);if(_0x167667<0x0||_0x57a78c<0x0)return!0x1;const _0x44ac64=_0x3c2ba2['getFirstRange'](),_0x539610=_0x3fda4f['getFirstRange']();if((0x0==_0x167667||0x1==_0x167667)&&0x2==_0x57a78c&&_0x44ac64['isIntersecting'](_0x539610))return!0x0;if(0x2==_0x167667&&0x3==_0x57a78c){const _0x59002a=_0x3edc4d['_findSuggestions'](_0x44ac64,'insertion')['filter'](({suggestion:_0x5de1c8,meta:_0x22053b})=>_0x22053b['isOwn']&&'convertInlineImageToBlock'==_0x5de1c8['subType']);if(_0x59002a['length']>0x1&&_0x539610['end']['isEqual'](_0x44ac64['start']))return!0x0;if(0x1==_0x59002a['length']&&(_0x44ac64['start']['isEqual'](_0x539610['end'])||_0x44ac64['end']['isEqual'](_0x539610['start'])))return!0x0;}if(0x3==_0x167667&&0x3==_0x57a78c&&_0x44ac64['start']['isBefore'](_0x539610['start'])){const _0x560024=_0x44ac64['end']['nodeAfter'],_0x4a4ce6=_0x539610['start']['nodeBefore'];return _0x50ec9a['isBlockImage'](_0x560024)&&_0x560024===_0x4a4ce6;}return!0x1;}function _0x1d9cdb(_0x42dfd8,_0x4d90dd){return _0x3d132c(_0x42dfd8,_0x4d90dd)?[_0x42dfd8,_0x4d90dd]:_0x3d132c(_0x4d90dd,_0x42dfd8)?[_0x4d90dd,_0x42dfd8]:null;}_0xfd5967['plugins']['has']('ImageResize')&&(_0x3edc4d['enableDefaultAttributesIntegration']('resizeImage'),_0x3edc4d['registerBlockAttribute']('resizedWidth'),_0x3edc4d['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x17d788,'FORMAT_IMAGE_SIZE'))),_0xfd5967['plugins']['has']('ImageTextAlternativeEditing')&&(_0x3edc4d['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x3edc4d['registerBlockAttribute']('alt')),_0x3edc4d['descriptionFactory']['registerDescriptionCallback'](_0x23bde6=>{if(!!_0x28e1ff['find'](({type:_0x2a0863,subType:_0x531248})=>_0x23bde6['type']==_0x2a0863&&_0x23bde6['subType']==_0x531248))return _0x23bde6['previous']?{}:void 0x0;}),_0x3edc4d['descriptionFactory']['registerDescriptionCallback'](_0x3b9820=>{if('insertion'==_0x3b9820['type']||'deletion'==_0x3b9820['type']){const _0x3ea5bf=_0x3b9820['getContainedElement']();if(_0x3ea5bf&&_0x3ea5bf['is']('element','caption'))return{'type':'insertion'==_0x3b9820['type']?'addObject':'removeObject','element':_0x3ea5bf,'quantity':0x1};}}),_0x3edc4d['descriptionFactory']['registerDescriptionCallback'](_0x4fad08=>'formatBlock'==_0x4fad08['type']&&'convertInlineImageToBlock'==_0x4fad08['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4fad08['type']&&'convertBlockImageToInline'==_0x4fad08['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3edc4d['descriptionFactory']['registerDescriptionCallback'](_0x46a1f8=>{if('attribute'!=_0x46a1f8['type'])return;const {data:_0x195482}=_0x46a1f8;if(!_0x195482||'alt'!=_0x195482['key'])return;const _0x23f395=_0x195482['newValue'];return _0x23f395?{'type':'format','content':o(_0x17d788,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x23f395+'\x22')}:{'type':'format','content':o(_0x17d788,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a503c=this['editor'],_0x3f4466=_0x3a503c['locale'];_0x3a503c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x75c32=>{if('formatBlock'!=_0x75c32['type']&&'formatInline'!=_0x75c32['type'])return;const {data:_0x29c0d4}=_0x75c32;if(_0x29c0d4){if('imageTextAlternative'==_0x29c0d4['commandName']){const _0x469067=_0x29c0d4['commandParams'][0x0]['newValue'];return _0x469067?{'type':'format','content':o(_0x3f4466,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x469067+'\x22')}:{'type':'format','content':o(_0x3f4466,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x29c0d4['commandName']){const _0x3c0396=_0x29c0d4['commandParams'][0x0]['width'];return _0x3c0396?{'type':'format','content':o(_0x3f4466,'*Set\x20image\x20width:*\x20%0',_0x3c0396)}:{'type':'format','content':o(_0x3f4466,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x5b3081{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3e741a=this['editor']['locale'],_0x3a7bc3=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a7bc3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3a7bc3['registerBlockAttribute']('src'),_0x3a7bc3['descriptionFactory']['registerDescriptionCallback'](_0x4f91bc=>{if('attribute'!=_0x4f91bc['type'])return;const {data:_0x1d9eb3}=_0x4f91bc;return _0x1d9eb3&&'src'==_0x1d9eb3['key']?_0x1d9eb3['newValue']&&_0x1d9eb3['oldValue']?{'type':'format','content':o(_0x3e741a,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x15a1e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x15a1e2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x15a1e2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x15a1e2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x15a1e2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17be2c=this['editor'],_0x5da1e3=_0x17be2c['locale'];_0x17be2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4297e5=>{if('formatBlock'!=_0x4297e5['type']&&'formatInline'!=_0x4297e5['type'])return;const {data:_0x41f912}=_0x4297e5;if(!_0x41f912||'replaceImageSource'!=_0x41f912['commandName'])return;return{'type':'format','content':o(_0x5da1e3,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x5b3081{['afterInit'](){const _0x5725b6=this['editor'];if(!_0x5725b6['plugins']['has']('ImageStyleEditing'))return;const _0x163c86=_0x5725b6['plugins']['get']('TrackChangesEditing'),_0x3b791f=_0x5725b6['plugins']['get']('ImageUtils'),_0x147116={};_0x163c86['enableCommand']('imageStyle',(_0x3d979d,_0x42822a)=>{const _0x3bfa2e=_0x5725b6['plugins']['get']('Users')['me'],_0x484a21=_0x5725b6['commands']['get']('imageStyle');let _0x557594=_0x3b791f['getClosestSelectedImageElement'](_0x5725b6['model']['document']['selection']),_0x3b6a9c=_0x5725b6['model']['createRangeOn'](_0x557594),_0x397b56=_0x484a21['value'];if(_0x397b56==_0x42822a['value'])return;const _0x1e19e5={'commandName':'imageStyle','commandParams':[_0x42822a],'formatGroupId':_0x71cbf7()};_0x5725b6['model']['change'](()=>{if(_0x163c86['getSuggestions']()['filter'](_0x56cd83=>_0x56cd83['isInContent']&&_0x3bfa2e==_0x56cd83['author']&&('formatBlock'==_0x56cd83['type']||'formatInline'==_0x56cd83['type'])&&('imageStylePreApply'==_0x56cd83['subType']||'imageStylePostApply'==_0x56cd83['subType'])&&_0x56cd83['getFirstRange']()['isEqual'](_0x3b6a9c))['forEach'](_0x3ad031=>_0x163c86['discardSuggestion'](_0x3ad031['head'])),_0x557594=_0x3b791f['getClosestSelectedImageElement'](_0x5725b6['model']['document']['selection']),_0x3b6a9c=_0x5725b6['model']['createRangeOn'](_0x557594),_0x484a21['refresh'](),_0x5725b6['commands']['get']('imageTypeInline')['refresh'](),_0x5725b6['commands']['get']('imageTypeBlock')['refresh'](),_0x397b56=_0x484a21['value'],_0x397b56!=_0x42822a['value'])return _0x3b791f['isInlineImage'](_0x557594)&&_0x484a21['shouldConvertImageType'](_0x42822a['value'],_0x557594)?(_0x3d979d({..._0x42822a,'setImageSizes':!0x1}),_0x557594=_0x3b791f['getClosestSelectedImageElement'](_0x5725b6['model']['document']['selection']),void _0x163c86['markBlockFormat'](_0x557594,{..._0x1e19e5,'commandReversedParams':[{'value':_0x397b56||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b791f['isBlockImage'](_0x557594)?_0x163c86['markBlockFormat'](_0x557594,_0x1e19e5,[],'imageStylePostApply'):_0x163c86['markInlineFormat'](_0x3b6a9c,_0x1e19e5,'imageStylePostApply'));});});for(const _0x3025dd of _0x5725b6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x147116[_0x3025dd['name']]=_0x3025dd['title']['toLowerCase']();_0x163c86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x163c86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x163c86['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x163c86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x10b8e3])=>{_0x3b791f['setImageNaturalSizeAttributes'](_0x10b8e3['getContainedElement']());}),_0x163c86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4fb033,_0xbd9a1e)=>{_0x163c86['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4fb033,{'commandName':_0xbd9a1e['commandName'],'commandParams':_0xbd9a1e['commandReversedParams']});}),_0x163c86['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x420630,_0x348eec){if(_0x54acef(_0x420630,_0x348eec))return[_0x420630,_0x348eec];if(_0x54acef(_0x348eec,_0x420630))return[_0x348eec,_0x420630];return null;});const _0x35edb5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x54acef(_0x13c08c,_0xb1d167){const _0xa0a921=_0x35edb5['findIndex'](({type:_0x474e1b,subType:_0x16d7f5})=>_0x13c08c['type']==_0x474e1b&&_0x13c08c['subType']==_0x16d7f5),_0x5ecda1=_0x35edb5['findIndex'](({type:_0x29db07,subType:_0x349185})=>_0xb1d167['type']==_0x29db07&&_0xb1d167['subType']==_0x349185);if(_0xa0a921<0x0||_0x5ecda1<0x0)return!0x1;const _0xe7312d=_0x13c08c['getFirstRange'](),_0xae6414=_0xb1d167['getFirstRange']();if((0x0==_0xa0a921||0x1==_0xa0a921)&&0x2==_0x5ecda1&&_0xe7312d['isIntersecting'](_0xae6414))return!0x0;if(0x2==_0xa0a921&&0x3==_0x5ecda1){const _0x41a6f9=_0x163c86['_findSuggestions'](_0xe7312d,'insertion')['filter'](({suggestion:_0x3125f4,meta:_0x1657f5})=>_0x1657f5['isOwn']&&'convertInlineImageToBlock'==_0x3125f4['subType']);if(_0x41a6f9['length']>0x1&&_0xae6414['end']['isEqual'](_0xe7312d['start']))return!0x0;if(0x1==_0x41a6f9['length']&&(_0xe7312d['start']['isEqual'](_0xae6414['end'])||_0xe7312d['end']['isEqual'](_0xae6414['start'])))return!0x0;}if(0x3==_0xa0a921&&0x3==_0x5ecda1&&_0xe7312d['start']['isBefore'](_0xae6414['start'])){const _0x5362f8=_0xe7312d['end']['nodeAfter'],_0x3ed8c8=_0xae6414['start']['nodeBefore'];return _0x3b791f['isBlockImage'](_0x5362f8)&&_0x5362f8===_0x3ed8c8;}return!0x1;}_0x5725b6['model']['document']['registerPostFixer'](()=>{let _0x4c8782=!0x1;const _0x2dc069=Array['from'](_0x5725b6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x28d88c,data:_0x2b4550}of _0x2dc069){const {group:_0x3d7e46,type:_0x3182a8,subType:_0x247557,id:_0x30ef10}=_0x163c86['_splitMarkerName'](_0x28d88c);if('suggestion'==_0x3d7e46&&_0x163c86['hasSuggestion'](_0x30ef10)){if('formatBlock'==_0x3182a8&&('imageStylePreApply'==_0x247557||'imageStylePostApply'==_0x247557)){const _0x49b6c0=_0x163c86['getSuggestion'](_0x30ef10);if(_0x2b4550['newRange']){const _0x2f6595=_0x49b6c0['getFirstRange']()['getContainedElement']();if(_0x3b791f['isBlockImage'](_0x2f6595))continue;_0x163c86['discardSuggestion'](_0x49b6c0),_0x4c8782=!0x0;}}if('insertion'==_0x3182a8&&'imageCaption'==_0x247557&&!_0x2b4550['newRange']){const _0x160f3e=_0x163c86['getSuggestion'](_0x30ef10);_0x160f3e['next']&&_0x160f3e['next']['isInContent']&&(_0x163c86['discardSuggestion'](_0x160f3e['next']),_0x4c8782=!0x0);}}}return _0x4c8782;}),this['_registerLegacyDescription'](_0x147116);}['_registerLegacyDescription'](_0x567be6){const _0x173755=this['editor'],_0x4573f5=_0x173755['locale'];_0x173755['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe57252=>{if('formatBlock'!=_0xe57252['type']&&'formatInline'!=_0xe57252['type'])return;const {data:_0x36e246}=_0xe57252;if(!_0x36e246||'imageStyle'!=_0x36e246['commandName'])return;const _0x564f43=_0x36e246['commandParams'][0x0]['value'];return _0x18a821('side'===_0x564f43?o(_0x4573f5,'FORMAT_SIDE_IMAGE'):_0x567be6[_0x564f43]||_0x564f43);function _0x18a821(_0x5e30c3){return{'type':'format','content':o(_0x4573f5,'*Format:*\x20%0',_0x5e30c3)};}});}}class at extends _0x5b3081{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5ea99b){super(_0x5ea99b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1ab7bf=this['editor'],_0x4a1237=_0x1ab7bf['commands']['get']('importWord'),_0xfa7348=_0x1ab7bf['commands']['get']('trackChanges');_0x4a1237&&(_0x4a1237['on']('execute',(_0x3f8b26,[,_0x1388d4])=>{this['_trackChangesValueDuringImport']=_0xfa7348['value'],_0x1388d4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4a1237,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4a1237,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xfa7348['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1ab7bf['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x180758,_0x231d38){const {suggestions:_0x146a2a}=_0x231d38,_0x4eba43=this['editor']['commands']['get']('trackChanges'),_0xc23cea=_0x4eba43['value'];this['_trackChangesValueDuringImport']!==_0xc23cea&&(_0x4eba43['execute'](),this['_trackChangesExecuted']=!0x0),_0x146a2a&&_0x146a2a['forEach'](({id:_0x5c1cbe,type:_0x2e0ff8,author:_0x2caf8e,created_at:_0x50640f})=>{const _0x3e0823={'id':_0x5c1cbe,'type':_0x2e0ff8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2caf8e,'createdAt':_0x50640f?new Date(_0x50640f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3e0823);});}}class ct extends _0x5b3081{['afterInit'](){const _0x5708c1=this['editor'],_0x566600=_0x5708c1['plugins']['get']('TrackChangesEditing');if(_0x5708c1['plugins']['has']('IndentEditing')&&(_0x566600['enableCommand']('indent'),_0x566600['enableCommand']('outdent')),_0x5708c1['plugins']['has']('IndentBlock')){for(const _0xf1e3f4 of['indentBlock','outdentBlock'])_0x566600['enableDefaultAttributesIntegration'](_0xf1e3f4);}const _0xf297f8=_0x5708c1['locale'];_0x566600['registerBlockAttribute']('blockIndent'),_0x566600['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0xf297f8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f7ff8=this['editor'],_0x168d31=_0x2f7ff8['locale'],_0x37c4a3=_0x2f7ff8['plugins']['get']('TrackChangesEditing');_0x37c4a3['descriptionFactory']['registerDescriptionCallback'](_0x9c9f3e=>{if('formatBlock'!=_0x9c9f3e['type'])return;const {data:_0x2272ee}=_0x9c9f3e;if(!_0x2272ee)return;if('indentBlock'!=_0x2272ee['commandName']&&'outdentBlock'!=_0x2272ee['commandName'])return;const _0x143773=_0x9c9f3e['getItems']()[0x0],_0x29de84=_0x37c4a3['descriptionFactory']['getItemLabel'](_0x143773);return'indentBlock'==_0x2272ee['commandName']?{'type':'format','content':o(_0x168d31,'*Indent:*\x20%0',_0x29de84)}:'outdentBlock'==_0x2272ee['commandName']?{'type':'format','content':o(_0x168d31,'*Outdent:*\x20%0',_0x29de84)}:void 0x0;});}}class ut extends _0x5b3081{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5b3081{['afterInit'](){const _0x4ada62=this['editor'];if(!_0x4ada62['plugins']['has']('LinkEditing'))return;const _0x3a31fc=_0x4ada62['plugins']['get']('TrackChangesEditing'),_0x1f6029=_0x4ada62['commands']['get']('link');_0x3a31fc['enableDefaultAttributesIntegration']('link'),_0x3a31fc['enableDefaultAttributesIntegration']('unlink'),_0x3a31fc['registerInlineAttribute']('linkHref');for(const _0x54135c of _0x1f6029['manualDecorators'])_0x3a31fc['registerInlineAttribute'](_0x54135c['id']),_0x3a31fc['descriptionFactory']['registerAttributeLabel'](_0x54135c['id'],'link\x20('+_0x54135c['label']['toLowerCase']()+')');_0x3a31fc['descriptionFactory']['registerDescriptionCallback'](_0x744133=>{if('attribute'!=_0x744133['type'])return;const {data:_0x423a25}=_0x744133;if(!_0x423a25||'linkHref'!=_0x423a25['key'])return;const _0x378212=_0x423a25['newValue'],_0x2ddcbd=_0x4ada62['locale'];return{'type':'format','content':null==_0x378212?o(_0x2ddcbd,'*Remove\x20link*'):o(_0x2ddcbd,'*Set\x20link:*\x20%0','\x22'+_0x378212+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37deda=this['editor'],_0x680884=_0x37deda['locale'];_0x37deda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2463f=>{if('formatInline'!=_0x2463f['type'])return;const {data:_0x29a151}=_0x2463f;if(_0x29a151){if('link'==_0x29a151['commandName']){const _0xd8824a=_0x29a151['commandParams'][0x0];return{'type':'format','content':o(_0x680884,'*Set\x20link:*\x20%0','\x22'+_0xd8824a+'\x22')};}return'unlink'==_0x29a151['commandName']?{'type':'format','content':o(_0x680884,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x5b3081{['afterInit'](){const _0x4b2ee1=this['editor'],_0x39e0f9=_0x4b2ee1['locale'];if(!_0x4b2ee1['plugins']['has']('LegacyListEditing'))return;const _0x13fd28=_0x4b2ee1['plugins']['get']('TrackChangesEditing'),_0x4a0d4d=_0x4b2ee1['plugins']['has']('LegacyTodoListEditing');function _0x801b2d(_0x49dce2){return()=>{const _0x372439=_0x4b2ee1['model']['document']['selection'],_0x3e7fc7=_0x4b2ee1['commands']['get'](_0x49dce2);if(_0x3e7fc7['value'])return void _0x4b2ee1['execute']('paragraph',{});const _0x5af2b4=_0x49dce2['slice'](0x0,-0x4),_0x1efcfc=function(_0x42729d,_0x42a75c,_0x3b5be6){let _0x2e5cd3=Array['from'](_0x42729d)['filter'](_0x369fb2=>function(_0x51f989,_0x187141){return _0x187141['checkChild'](_0x51f989['parent'],'listItem')&&!_0x187141['isObject'](_0x51f989);}(_0x369fb2,_0x3b5be6));_0x2e5cd3=_0x2e5cd3['filter'](_0x4a1e95=>!_0x4a1e95['is']('element','listItem')||_0x4a1e95['getAttribute']('listType')!=_0x42a75c);const _0x4a309b=new Set();for(const _0x29c4f7 of _0x2e5cd3)_0x29c4f7['is']('element','listItem')?_0x4a309b['add'](fe(_0x29c4f7)):_0x4a309b['add'](_0x29c4f7);return Array['from'](_0x4a309b);}(_0x372439['getSelectedBlocks'](),_0x5af2b4,_0x4b2ee1['model']['schema']);_0x4b2ee1['model']['change'](()=>{for(const _0xdfb3cd of _0x1efcfc)_0x13fd28['markBlockFormat'](_0xdfb3cd,{'commandName':_0x49dce2,'commandParams':[{'forceValue':!_0x3e7fc7['value']}],'formatGroupId':'blockName'},ue(_0xdfb3cd));});};}function _0x1f8371(_0x43b956){return()=>{const _0x2061f7=function(_0x1c9c9b){let _0x5f49e2=Array['from'](_0x1c9c9b);const _0x1047d2=_0x5f49e2['findIndex'](_0x2c257c=>'listItem'!=_0x2c257c['name']);return _0x1047d2>-0x1&&(_0x5f49e2=_0x5f49e2['slice'](0x0,_0x1047d2)),_0x5f49e2;}(_0x4b2ee1['model']['document']['selection']['getSelectedBlocks']()),_0x432c54=_0x4b2ee1['model']['createRange'](_0x4b2ee1['model']['createPositionAt'](_0x2061f7[0x0],'before'),_0x4b2ee1['model']['createPositionAt'](_0x2061f7[_0x2061f7['length']-0x1],'end'));_0x4b2ee1['model']['change'](()=>{_0x13fd28['markBlockFormat'](_0x432c54,{'commandName':_0x43b956,'commandParams':[],'formatGroupId':'listIndent'},function(_0xce6904){const _0x432efa=new Set();for(const _0x58694c of _0xce6904){let _0x250fdd=_0x58694c['nextSibling'];for(;_0x250fdd&&_0x250fdd['getAttribute']('listIndent')>_0x58694c['getAttribute']('listIndent');)_0x432efa['add'](_0x250fdd),_0x250fdd=_0x250fdd['nextSibling'];}return Array['from'](_0x432efa);}(_0x2061f7));});};}_0x13fd28['enableCommand']('numberedList',_0x801b2d('numberedList')),_0x13fd28['enableCommand']('bulletedList',_0x801b2d('bulletedList')),_0x4a0d4d&&_0x13fd28['enableCommand']('todoList',_0x801b2d('todoList')),_0x13fd28['enableCommand']('indentList',_0x1f8371('indentList')),_0x13fd28['enableCommand']('outdentList',_0x1f8371('outdentList')),_0x4a0d4d&&_0x13fd28['enableCommand']('checkTodoList',()=>{const _0x72d204=_0x4b2ee1['commands']['get']('checkTodoList'),_0x441303=Array['from'](_0x72d204['_selectedElements']);_0x441303['filter'](_0x2a99d8=>_0x2a99d8['getAttribute']('todoListChecked')!=_0x72d204['value']),_0x4b2ee1['model']['change'](()=>{for(const _0x59f3cd of _0x441303)_0x13fd28['markBlockFormat'](_0x59f3cd,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x72d204['value']}]});});}),_0x13fd28['descriptionFactory']['registerElementLabel']('listItem',_0xec1851=>o(_0x39e0f9,'ELEMENT_LIST_ITEM',_0xec1851)),_0x13fd28['descriptionFactory']['registerDescriptionCallback'](_0x507935=>{if('formatBlock'!=_0x507935['type']&&'formatInline'!=_0x507935['type'])return;const {data:_0x28311b}=_0x507935;if(_0x28311b){if('numberedList'==_0x28311b['commandName']||'bulletedList'==_0x28311b['commandName']||'todoList'==_0x28311b['commandName'])switch(_0x28311b['commandName']['replace']('List','')){case'bulleted':return _0x47e141(o(_0x39e0f9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47e141(o(_0x39e0f9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47e141(o(_0x39e0f9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x28311b['commandName'])return{'type':'format','content':o(_0x39e0f9,'*Indent:*\x20%0',o(_0x39e0f9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x28311b['commandName'])return{'type':'format','content':o(_0x39e0f9,'*Outdent:*\x20%0',o(_0x39e0f9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x28311b['commandName'])return _0x28311b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39e0f9,'*Check\x20item*')}:{'type':'format','content':o(_0x39e0f9,'*Uncheck\x20item*')};}function _0x47e141(_0x34859a){return{'type':'format','content':o(_0x39e0f9,'*Change\x20to:*\x20%0',_0x34859a)};}});}}function fe(_0x533df0){const _0x52c49b=_0x533df0['getAttribute']('listIndent');if(0x0==_0x52c49b)return _0x533df0;let _0x2aa584=_0x533df0;for(;_0x533df0['previousSibling']&&_0x533df0['previousSibling']['is']('element','listItem');){const _0x4a5196=_0x533df0['previousSibling']['getAttribute']('listIndent');if(_0x4a5196==_0x52c49b)_0x2aa584=_0x533df0['previousSibling'];else{if(_0x4a5196<_0x52c49b)break;}_0x533df0=_0x533df0['previousSibling'];}return _0x2aa584;}function ue(_0x2c14b6){const _0xef40f7=[];if(_0x2c14b6['is']('element','listItem')&&_0x2c14b6['getAttribute']('listIndent')>0x0){let _0x4ae338=_0x2c14b6['nextSibling'];for(;_0x4ae338&&'listItem'==_0x4ae338['name']&&_0x4ae338['getAttribute']('listIndent')==_0x2c14b6['getAttribute']('listIndent');)_0xef40f7['push'](_0x4ae338),_0x4ae338=_0x4ae338['nextSibling'];}return _0xef40f7;}class W extends _0x5b3081{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5e3084=this['editor']['config']['get']('list.properties'),_0x219cd0=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e3084['styles']&&_0x219cd0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5e3084['reversed']&&_0x219cd0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5e3084['startIndex']&&_0x219cd0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x219cd0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4c9b06,_0xb5ac33={}){const _0x38f70a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32d1aa=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x38f70a['markMultiRangeBlockFormat'](_0x32d1aa,{'commandName':'listStyle','commandParams':[{'type':_0xb5ac33['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x474a6a,_0xd99d2b={}){const _0x2401b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x36a959=this['_getSuggestionBlocks'](_0x5412e0=>_0x5412e0['is']('element','listItem')&&'numbered'===_0x5412e0['getAttribute']('listType'));if(_0x36a959['length']<0x1)return;const _0x407ca1=_0x36a959['map'](_0x241965=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x241965,'before'),this['editor']['model']['createPositionAt'](_0x241965,0x0)));this['editor']['model']['change'](()=>{_0x2401b5['markMultiRangeBlockFormat'](_0x407ca1,{'commandName':'listReversed','commandParams':[{'reversed':_0xd99d2b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5d8b17,_0x45ef48={}){const _0x4ffa95=this['editor']['plugins']['get']('TrackChangesEditing'),_0x295847=this['_getSuggestionBlocks'](_0x17789f=>_0x17789f['is']('element','listItem')&&'numbered'===_0x17789f['getAttribute']('listType'));if(_0x295847['length']<0x1)return;const _0x41ecd3=_0x295847['map'](_0x30bac3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30bac3,'before'),this['editor']['model']['createPositionAt'](_0x30bac3,0x0)));this['editor']['model']['change'](()=>{_0x4ffa95['markMultiRangeBlockFormat'](_0x41ecd3,{'commandName':'listStart','commandParams':[{'startIndex':_0x45ef48['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x557c27){if('formatBlock'!=_0x557c27['type']&&'formatInline'!=_0x557c27['type'])return;const _0xfcad0e=this['editor']['locale'],{data:_0x5794a9}=_0x557c27;if(!_0x5794a9)return;let _0x48ba37,_0x3fa83d;switch(_0x5794a9['commandName']){case'listStyle':_0x48ba37='*Change\x20to:*\x20%0',_0x3fa83d={'type':'format','content':o(_0xfcad0e,_0x48ba37,o(_0xfcad0e,this['_getTranslationKeyForListStyle'](_0x5794a9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x48ba37=_0x5794a9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fa83d={'type':'format','content':o(_0xfcad0e,_0x48ba37)};break;case'listStart':_0x48ba37='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fa83d={'type':'format','content':o(_0xfcad0e,_0x48ba37,_0x5794a9['commandParams'][0x0]['startIndex'])};}return _0x3fa83d;}['_getSuggestionBlocksForListStyle'](){const _0xb4890=this['editor']['plugins']['get']('LegacyListUtils');let _0x40dc57=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x40dc57[0x0]?.['is']('element','listItem')&&_0x40dc57['unshift'](..._0xb4890['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x40dc57[_0x40dc57['length']-0x1]?.['is']('element','listItem')&&_0x40dc57['push'](..._0xb4890['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x40dc57=[...new Set(_0x40dc57)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x40dc57=_0x40dc57['filter'](_0x40d4a6=>_0x40d4a6['is']('element','listItem'))),_0x40dc57;}['_getSuggestionBlocks'](_0x4dfced){const _0x2d5ad3=this['editor']['plugins']['get']('LegacyListUtils');let _0x4f6b8d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4dfced)['map'](_0x4249a4=>{const _0x12485c=this['editor']['model']['createPositionAt'](_0x4249a4,0x0);return[..._0x2d5ad3['getSiblingNodes'](_0x12485c,'backward'),..._0x2d5ad3['getSiblingNodes'](_0x12485c,'forward')];})['flat']();return _0x4f6b8d=[...new Set(_0x4f6b8d)],_0x4f6b8d;}['_getTranslationKeyForListStyle'](_0xc849c8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xc849c8)||'default')['toUpperCase']()+'_LIST_'+_0xc849c8['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x5b3081{['afterInit'](){const _0x5639e3=this['editor'];if(!_0x5639e3['plugins']['has']('MediaEmbedEditing'))return;const _0x4177f9=_0x5639e3['plugins']['get']('TrackChangesEditing'),_0x1762d4=_0x5639e3['locale'];_0x4177f9['enableCommand']('mediaEmbed'),_0x4177f9['descriptionFactory']['registerElementLabel']('media',_0x17585f=>o(_0x1762d4,'ELEMENT_MEDIA',_0x17585f)),_0x5639e3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xb931b2,{writer:_0x945ccd,options:_0x55d5af})=>{if(_0x55d5af['showSuggestionHighlights'])return _0x945ccd['createEmptyElement']('div');},'converterPriority':'high'}),_0x5639e3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2d125e,_0x465332,_0x3926bb)=>{_0x3926bb['options']['showSuggestionHighlights']&&_0x2d125e['stop']();},{'priority':'high'});}}class mt extends _0x5b3081{['afterInit'](){const _0x4e6184=this['editor'];_0x4e6184['plugins']['has']('MentionEditing')&&_0x4e6184['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x5b3081{['afterInit'](){const _0x46436d=this['editor'];if(!_0x46436d['commands']['get']('insertMergeField'))return;_0x46436d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0xca9d9a=_0x46436d['plugins']['get']('TrackChangesEditing'),_0xb880a=_0x46436d['locale'];_0xca9d9a['descriptionFactory']['registerElementLabel']('mergeField',_0x15d3a8=>o(_0xb880a,'ELEMENT_MERGE_FIELD',_0x15d3a8)),_0xca9d9a['descriptionFactory']['registerDescriptionCallback'](_0x39e949=>{if('insertion'!=_0x39e949['type']&&'deletion'!=_0x39e949['type'])return;const _0x28641f=_0x39e949['getContainedElement']();if(null==_0x28641f)return;if(!_0x28641f['is']('element','mergeField'))return;const _0x1dc1c6=_0x46436d['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x28641f['getAttribute']('id'));return'insertion'==_0x39e949['type']?{'type':'insertion','content':o(_0xb880a,'*Insert:*\x20%0','\x22'+_0x1dc1c6+'\x22\x20'+o(_0xb880a,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0xb880a,'*Remove:*\x20%0','\x22'+_0x1dc1c6+'\x22\x20'+o(_0xb880a,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x5b3081{['afterInit'](){const _0x5c8158=this['editor'],_0x431352=_0x5c8158['plugins']['get']('TrackChangesEditing');_0x5c8158['plugins']['has']('MultiLevelList')&&(_0x431352['enableDefaultAttributesIntegration']('multiLevelList'),_0x431352['registerBlockAttribute']('listMarkerStyle'),_0x431352['descriptionFactory']['registerDescriptionCallback'](_0x3d8d90=>this['handleDescriptions'](_0x3d8d90)));}['handleDescriptions'](_0x119418){const _0x962baa=this['editor']['locale'],{data:_0x5b9961}=_0x119418,_0x32aad3={'type':'format','content':''};if(_0x5b9961&&'listMarkerStyle'==_0x5b9961['key']){if(!_0x5b9961['oldValue'])return{'type':'format','content':o(_0x962baa,'*Set\x20format:*\x20%0',o(_0x962baa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b9961['newValue']+')'};if(!_0x5b9961['newValue']){let _0x3ab5f9=_0x119418['head'];for(;_0x3ab5f9;){if(_0x3ab5f9['data']&&'listType'==_0x3ab5f9['data']['key']&&_0x3ab5f9['data']['newValue'])return _0x32aad3;_0x3ab5f9=_0x3ab5f9['next'];}return{'type':'format','content':o(_0x962baa,'*Remove\x20format:*\x20%0',o(_0x962baa,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b9961['oldValue']+')'};}}}}class kt extends _0x5b3081{['afterInit'](){const _0x5a5d28=this['editor'];if(!_0x5a5d28['plugins']['has']('PageBreakEditing'))return;_0x5a5d28['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1db396=_0x5a5d28['plugins']['get']('TrackChangesEditing'),_0x50f6c9=_0x5a5d28['locale'];_0x1db396['descriptionFactory']['registerElementLabel']('pageBreak',_0x12a125=>o(_0x50f6c9,'ELEMENT_PAGE_BREAK',_0x12a125));}}class bt extends _0x5b3081{['afterInit'](){const _0x49669d=this['editor'];if(!_0x49669d['plugins']['has']('Paragraph'))return;const _0x4e785f=_0x49669d['locale'],_0x3e2652=_0x49669d['plugins']['get']('TrackChangesEditing');_0x3e2652['descriptionFactory']['registerElementLabel']('paragraph',_0x3a958c=>o(_0x4e785f,'ELEMENT_PARAGRAPH',_0x3a958c)),_0x3e2652['enableDefaultAttributesIntegration']('paragraph'),_0x3e2652['enableCommand']('insertParagraph'),_0x49669d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x49669d),{'priority':'highest'}),_0x49669d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x24d0d3,_0x20bd49,_0x293256)=>{_0x293256['options']['showSuggestionHighlights']&&nr(_0x49669d,{'showActiveMarker':!0x1})(_0x24d0d3,_0x20bd49,_0x293256);},{'priority':'highest'});const _0x1602f7=_0x3e2652['descriptionFactory'];_0x1602f7['registerDescriptionCallback'](_0x2d52a1=>{if('insertion'!==_0x2d52a1['type'])return;const {start:_0xee78c5,end:_0x523bcd}=_0x2d52a1['getFirstRange']();if(!_0xee78c5['isTouching'](_0x523bcd)||!_0xee78c5['nodeAfter'])return;const _0x2ebc95=_0x49669d['model']['schema'],_0x480385=_0xee78c5['nodeAfter'];return _0x2ebc95['isBlock'](_0x480385)&&!_0x2ebc95['isLimit'](_0x480385)&&_0x2ebc95['checkChild'](_0x480385,'$text')?{'type':'insertion','content':o(_0x4e785f,'*Insert:*\x20%0',_0x1602f7['getItemLabel'](_0x480385,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x249600=this['editor'],_0x11808a=_0x249600['locale'];_0x249600['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3546e8=>{if('formatBlock'!=_0x3546e8['type'])return;const {data:_0x567e5c}=_0x3546e8;return _0x567e5c&&'paragraph'==_0x567e5c['commandName']?{'type':'format','content':o(_0x11808a,'*Change\x20to:*\x20%0',o(_0x11808a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x190a5d,{showActiveMarker:_0x406c2c=!0x0}={}){return(_0x1ce329,_0x3e064b,_0x35d5c4)=>{const _0x21b277=_0x190a5d['plugins']['get']('TrackChangesEditing'),_0x382f55=_0x3e064b['markerRange']['start'],_0x54e6fb=_0x3e064b['markerRange']['end'],_0x2acd99=_0x190a5d['model']['schema'];if(!_0x382f55['isTouching'](_0x54e6fb)||!_0x382f55['nodeAfter'])return;const _0x2dee94=_0x382f55['nodeAfter'];if(_0x2acd99['isBlock'](_0x2dee94)&&!_0x2acd99['isLimit'](_0x2dee94)&&_0x2acd99['checkChild'](_0x2dee94,'$text')){if(!_0x35d5c4['consumable']['consume'](_0x3e064b['markerRange'],_0x1ce329['name']))return;const _0x409bae=_0x35d5c4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x5f5b4c=_0x35d5c4['mapper']['toViewPosition'](_0x54e6fb);_0x406c2c&&_0x21b277['activeMarkers']['includes'](_0x3e064b['markerName'])&&_0x35d5c4['writer']['addClass']('ck-suggestion-marker--active',_0x409bae),_0x35d5c4['writer']['insert'](_0x5f5b4c,_0x409bae),_0x35d5c4['mapper']['bindElementToMarker'](_0x409bae,_0x3e064b['markerName']);}};}class wt extends _0x5b3081{['afterInit'](){const _0x412610=this['editor'];if(!_0x412610['plugins']['has']('RemoveFormatEditing'))return;_0x412610['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x79e737=this['editor'];_0x79e737['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x207c88=>{if('formatBlock'!=_0x207c88['type']&&'formatInline'!=_0x207c88['type'])return;const {data:_0x49b9cf}=_0x207c88;return _0x49b9cf&&'removeFormat'==_0x49b9cf['commandName']?{'type':'format','content':o(_0x79e737['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x5b3081{['afterInit'](){const _0x2350d3=this['editor'];if(!_0x2350d3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5f5a11=_0x2350d3['plugins']['get']('TrackChangesEditing');_0x5f5a11['enableCommand']('goToPreviousRestrictedEditingException'),_0x5f5a11['enableCommand']('goToNextRestrictedEditingException');const _0x50d0fc=_0x2350d3['plugins']['get']('RestrictedEditingModeEditing');_0x50d0fc['enableCommand']('trackChanges'),_0x50d0fc['enableCommand']('acceptSuggestion'),_0x50d0fc['enableCommand']('discardSuggestion'),_0x50d0fc['enableCommand']('acceptAllSuggestions'),_0x50d0fc['enableCommand']('discardAllSuggestions'),_0x50d0fc['enableCommand']('acceptSelectedSuggestions'),_0x50d0fc['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x5b3081{static get['requires'](){return[_0x9d4658];}['init'](){const _0x444809=this['editor'],_0xc0057b=_0x444809['plugins']['get']('TrackChangesEditing');_0xc0057b['enableCommand']('shiftEnter'),_0x444809['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x444809),{'priority':'high'}),_0x444809['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x444809),{'priority':'high'}),_0x444809['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3cee63,_0x495c6a,_0x165d08)=>{_0x165d08['options']['showSuggestionHighlights']&&ge(_0x444809,{'showActiveMarker':!0x1})(_0x3cee63,_0x495c6a,_0x165d08);}),_0xc0057b['descriptionFactory']['registerElementLabel']('softBreak',_0x546c18=>o(_0x444809['locale'],'ELEMENT_LINE_BREAK',_0x546c18));}}function ge(_0x239f17,{showActiveMarker:_0x16d3d5=!0x0}={}){return(_0x94c2b8,_0x2846e0,_0x36596a)=>{const _0xbfc7e0=_0x239f17['plugins']['get']('TrackChangesEditing');if(!_0x36596a['consumable']['test'](_0x2846e0['markerRange'],_0x94c2b8['name']))return;const _0xc778b6=_0x239f17['model'];for(const _0x2123f6 of _0x2846e0['markerRange']['getItems']()){if(!_0x2123f6['is']('element','softBreak'))continue;const _0x597b26='deletion'==_0x2846e0['markerName']['split'](':')[0x1]?'merge':'split',_0x3cee54=_0x36596a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x597b26}),_0x5ac863=_0x36596a['mapper']['toViewPosition'](_0xc778b6['createPositionBefore'](_0x2123f6));_0x16d3d5&&_0xbfc7e0['activeMarkers']['includes'](_0x2846e0['markerName'])&&_0x36596a['writer']['addClass']('ck-suggestion-marker--active',_0x3cee54),_0x36596a['writer']['insert'](_0x5ac863,_0x3cee54),_0x36596a['mapper']['bindElementToMarker'](_0x3cee54,_0x2846e0['markerName']);}};}class St extends _0x5b3081{['afterInit'](){const _0x34ffd4=this['editor'],_0x578142=_0x34ffd4['model'],_0x387f99=_0x34ffd4['locale'];if(!_0x34ffd4['plugins']['has']('StandardEditingModeEditing'))return;const _0x17288a=_0x34ffd4['plugins']['get']('TrackChangesEditing'),_0x34e842='restrictedEditingException',_0xcddb97=_0x34ffd4['commands']['get'](_0x34e842);_0x17288a['enableCommand'](_0x34e842,(_0x35f750,_0x5883d3={})=>{const _0x23e8ce=_0x578142['document']['selection'];if(_0x23e8ce['isCollapsed'])return void _0x35f750(_0x5883d3);const _0x38f232=void 0x0!==_0x5883d3['forceValue']?_0x5883d3['forceValue']:!_0xcddb97['value'];_0x578142['change'](()=>{const _0x4d0cbe=Array['from'](_0x23e8ce['getRanges']());for(const _0x501c0f of _0x4d0cbe){const _0xb11eb9=_0x38f232?[_0x501c0f]:io(_0x34e842,_0x501c0f,_0x578142);for(const _0x3925af of _0xb11eb9)_0x17288a['markInlineFormat'](_0x3925af,{'commandName':_0x34e842,'commandParams':[{'forceValue':_0x38f232}]});}});}),_0x17288a['descriptionFactory']['registerDescriptionCallback'](_0x22949e=>{if('formatBlock'!=_0x22949e['type']&&'formatInline'!=_0x22949e['type'])return;const {data:_0x2312a4}=_0x22949e;return _0x2312a4&&_0x2312a4['commandName']==_0x34e842?_0x2312a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x387f99,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x387f99,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x5b3081{['afterInit'](){const _0x4797d4=this['editor'];if(!_0x4797d4['plugins']['has']('Style')||!_0x4797d4['plugins']['has']('DataSchema'))return;const _0x2862ec=_0x4797d4['plugins']['get']('TrackChangesEditing'),_0x31e005=_0x4797d4['locale'],_0x3aaf4f=_0x4797d4['config']['get']('style')||{},_0x35ab58=_0x4797d4['plugins']['get']('GeneralHtmlSupport'),_0x1861c7=_0x4797d4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4797d4['plugins']['get']('DataSchema'),_0x3aaf4f['definitions']);_0x2862ec['enableDefaultAttributesIntegration']('style');const _0x37ec10=new Set();for(const _0x4a1267 of _0x1861c7['block']){const _0x310122=_0x35ab58['getGhsAttributeNameForElement'](_0x4a1267['element']);_0x37ec10['add'](_0x310122);}const _0x5e83cc=new Set();for(const _0x5a9080 of _0x1861c7['inline']){const _0xc65d3e=_0x35ab58['getGhsAttributeNameForElement'](_0x5a9080['element']);_0x5e83cc['add'](_0xc65d3e);for(const _0x4c5e1e of _0x5a9080['ghsAttributes'])_0x5e83cc['add'](_0x4c5e1e);}for(const _0x4599ce of _0x37ec10)_0x2862ec['registerBlockAttribute'](_0x4599ce),_0x2862ec['descriptionFactory']['registerAttributeLabel'](_0x4599ce,o(_0x31e005,'FORMAT_STYLE'));for(const _0x5b5e18 of _0x5e83cc)_0x2862ec['registerInlineAttribute'](_0x5b5e18),_0x2862ec['descriptionFactory']['registerAttributeLabel'](_0x5b5e18,o(_0x31e005,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5987c3=this['editor'],_0x441f4d=_0x5987c3['locale'];_0x5987c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58da62=>{if('formatBlock'!=_0x58da62['type']&&'formatInline'!=_0x58da62['type'])return;const {data:_0x4e7f5d}=_0x58da62;return _0x4e7f5d&&'style'===_0x4e7f5d['commandName']?_0x4e7f5d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x441f4d,'*Set\x20format:*\x20%0',_0x4e7f5d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x441f4d,'*Remove\x20format:*\x20%0',_0x4e7f5d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x5b3081{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2a4e68){super(_0x2a4e68),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5b3f28=this['editor'],_0x6f33e0=_0x5b3f28['model']['document']['selection'];if(!_0x5b3f28['plugins']['has']('TableEditing'))return;const _0x1b1661=_0x5b3f28['locale'],_0x14b146=_0x5b3f28['plugins']['get']('TrackChangesEditing'),_0x3eeb20=_0x5b3f28['plugins']['get']('TableUtils');_0x14b146['descriptionFactory']['registerElementLabel']('table',_0x5e7e4f=>o(_0x1b1661,'ELEMENT_TABLE',_0x5e7e4f)),this['_setupColumnsRowsFixing'](),_0x14b146['enableCommand']('insertTable'),_0x14b146['enableCommand']('selectTableRow'),_0x14b146['enableCommand']('selectTableColumn');for(const _0x16f779 of['insertTableRowAbove','insertTableRowBelow']){const _0x622694=_0x5b3f28['commands']['get'](_0x16f779);_0x14b146['enableCommand'](_0x16f779,_0x2bdf09=>{_0x5b3f28['model']['change'](_0x2c36f6=>{_0x2bdf09();const _0x484c46='above'===_0x622694['order'],_0x537710=_0x3eeb20['getSelectionAffectedTableCells'](_0x6f33e0),_0x33d315=_0x3eeb20['getRowIndexes'](_0x537710),_0x5a4ec4=_0x484c46?_0x33d315['first']-0x1:_0x33d315['last']+0x1,_0x394676=_0x537710[0x0]['findAncestor']('table'),_0xb7263e=_0x3eeb20['createTableWalker'](_0x394676,{'startRow':_0x5a4ec4,'endRow':_0x5a4ec4}),_0x52a53b=Array['from'](_0xb7263e)['map'](_0x4ac403=>_0x2c36f6['createRangeOn'](_0x4ac403['cell']));_0x14b146['markMultiRangeInsertion'](_0x52a53b,'tableRow');});});}for(const _0x7c426b of['insertTableColumnLeft','insertTableColumnRight']){const _0x44ff9a=_0x5b3f28['commands']['get'](_0x7c426b);_0x14b146['enableCommand'](_0x7c426b,_0x1b6f3d=>{_0x5b3f28['model']['change'](_0x32a7be=>{_0x1b6f3d();const _0x4d2963='left'===_0x44ff9a['order'],_0x2cf89e=_0x3eeb20['getSelectionAffectedTableCells'](_0x6f33e0),_0xbd9005=_0x3eeb20['getColumnIndexes'](_0x2cf89e),_0x2f322b=_0x4d2963?_0xbd9005['first']-0x1:_0xbd9005['last']+0x1,_0x3b388d=_0x2cf89e[0x0]['findAncestor']('table'),_0x29f8ab=_0x3eeb20['createTableWalker'](_0x3b388d,{'startRow':0x0,'column':_0x2f322b,'includeAllSlots':!0x1}),_0xc767a1=Array['from'](_0x29f8ab)['map'](_0xaf8e07=>_0x32a7be['createRangeOn'](_0xaf8e07['cell']));_0x14b146['markMultiRangeInsertion'](_0xc767a1,'tableColumn');});});}for(const _0x5dca6e of['removeTableRow','removeTableColumn']){const _0x5d064f=_0x5dca6e['substr'](0xb),_0x3009cd=_0x5d064f['toLowerCase'](),_0x41c5da=_0x3009cd['substr'](0x0,0x3)+'span',_0x3630f4='table'+_0x5d064f,_0x3be988='min'+_0x5d064f,_0x59f2a7='max'+_0x5d064f;_0x14b146['enableCommand'](_0x5dca6e,()=>{_0x5b3f28['model']['change'](_0x2a83b7=>{const _0xa16d60=_0x3eeb20['getSelectionAffectedTableCells'](_0x6f33e0),_0x23bb16=_0xa16d60[0x0]['findAncestor']('table');let _0x58bcb4;if('removeTableRow'==_0x5dca6e){const _0x4cbcae=_0x3eeb20['getRowIndexes'](_0xa16d60);_0x58bcb4={'startRow':_0x4cbcae['first'],'endRow':_0x4cbcae['last'],'includeAllSlots':!0x0};}else{const _0x5774c7=_0x3eeb20['getColumnIndexes'](_0xa16d60);_0x58bcb4={'startColumn':_0x5774c7['first'],'endColumn':_0x5774c7['last'],'includeAllSlots':!0x0};}const _0x3ef479=_0x3eeb20['createTableWalker'](_0x23bb16,_0x58bcb4),_0x3b01aa=Array['from'](_0x3ef479)['map'](({cell:_0x3978e8})=>_0x3978e8),_0x6715ab=Ee(_0x3b01aa['filter'](_0x35e4b5=>_0x35e4b5['hasAttribute'](_0x41c5da))),_0x21576d=Ee(_0x3b01aa['filter'](_0x3c7250=>!_0x3c7250['hasAttribute'](_0x41c5da)))['map'](_0x5dc711=>_0x2a83b7['createRangeOn'](_0x5dc711)),_0xb2e7e6=_0x14b146['markMultiRangeDeletion'](_0x21576d,_0x3630f4);if(_0xb2e7e6&&('tableRow'==_0xb2e7e6['subType']||'tableColumn'==_0xb2e7e6['subType'])){const _0x11dfb4=this['_getSuggestionCoords'](_0xb2e7e6);for(const _0x192d9f of _0x6715ab){const _0x48e515=_0x2a83b7['createRangeOn'](_0x192d9f),_0x45d26f=_0x3eeb20['getCellLocation'](_0x192d9f),_0x12cdc2=_0x192d9f['getAttribute'](_0x41c5da)-0x1,_0x532c3d=_0x11dfb4[_0x3be988],_0x4751f0=_0x11dfb4[_0x59f2a7];_0x532c3d<=_0x45d26f[_0x3009cd]&&_0x45d26f[_0x3009cd]+_0x12cdc2<=_0x4751f0&&_0xb2e7e6['addRange'](_0x48e515);}}});});}function _0xb89005(_0x3a7771){const _0x487415=Array['from'](_0x6f33e0['getRanges']())['map'](_0x4a2e56=>_0x5116e6['fromRange'](_0x4a2e56));_0x5b3f28['model']['change'](_0x31eca7=>{const _0x379ea2=_0x31eca7['batch'];_0x3a7771=_0x3a7771['filter'](_0x422859=>'$graveyard'!=_0x422859['root']['rootName']),_0x31eca7['setSelection'](_0x3a7771),_0x5b3f28['commands']['get']('removeTableRow')['refresh'](),_0x5b3f28['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5b3f28['model']['enqueueChange'](()=>{_0x5b3f28['model']['enqueueChange'](_0x379ea2,_0x27bbc1=>{const _0x5f9bee=_0x487415['filter'](_0x743b8f=>'$graveyard'!=_0x743b8f['root']['rootName']);_0x5f9bee['length']>0x0&&_0x27bbc1['setSelection'](_0x5f9bee);for(const _0x408a7e of _0x487415)_0x408a7e['detach']();});});});}function _0x30bf65(_0xc3cbef){_0x5b3f28['model']['change'](_0x4d1887=>{const _0x1dc47d=Array['from'](_0x6f33e0['getRanges']())['map'](_0x38b85f=>_0x5116e6['fromRange'](_0x38b85f)),_0x27667c=[];for(const _0x1684b2 of _0xc3cbef)for(const _0x3c710c of _0x1684b2['getItems']({'shallow':!0x0}))_0x27667c['push'](_0x3c710c);for(const _0x5e72ea of _0x27667c)'$graveyard'!=_0x5e72ea['root']['rootName']&&(_0x4d1887['setSelection'](_0x4d1887['createPositionAt'](_0x5e72ea,0x0)),_0x5b3f28['commands']['get']('removeTableColumn')['refresh'](),_0x5b3f28['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x49412a=_0x1dc47d['filter'](_0x546d2f=>'$graveyard'!=_0x546d2f['root']['rootName']);_0x49412a['length']>0x0&&_0x4d1887['setSelection'](_0x49412a);for(const _0x54bd70 of _0x1dc47d)_0x54bd70['detach']();});}function _0x493bc4(_0x44fc74,_0x43e95a){return _0x43e95a['every'](_0x5311f4=>_0x44fc74['some'](_0x3d9dad=>_0x3d9dad['end']['isEqual'](_0x5311f4['start'])||_0x5311f4['end']['isEqual'](_0x3d9dad['start'])));}function _0x1e97c4(_0x1218b2,_0x30926d){return!_0x1218b2['some'](_0x165f35=>_0x30926d['some'](_0x11764d=>_0x165f35['isIntersecting'](_0x11764d)))&&_0x1218b2['some'](_0x432c4d=>_0x30926d['some'](_0x4dc940=>_0x432c4d['end']['isTouching'](_0x4dc940['start'])));}_0x5b3f28['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x20789d,_0x1f3d0a,_0x324111)=>{if(!_0x324111['options']['showSuggestionHighlights'])return;const _0x189123=_0x1f3d0a['item'];if(!_0x189123)return;const _0x151dc7=_0x324111['mapper']['toViewElement'](_0x189123);function _0x1e2836(_0x3190a0){return Array['isArray'](_0x3190a0)?_0x3190a0:[_0x3190a0];}_0x151dc7&&'tableCell'===_0x189123['name']&&_0x106905(_0x151dc7,_0x324111['writer'],(_0x416f1a,_0x132f89,_0x2886d3)=>_0x2886d3['addClass'](_0x1e2836(_0x132f89['classes']),_0x416f1a),(_0x1e8a9c,_0x11261a,_0x306f8f)=>_0x306f8f['removeClass'](_0x1e2836(_0x11261a['classes']),_0x1e8a9c));},{'priority':'highest'}),_0x14b146['descriptionFactory']['registerDescriptionCallback'](_0x4e3c9f=>{if('insertion'!=_0x4e3c9f['type']&&'deletion'!=_0x4e3c9f['type'])return;const _0x5f38d7=_0x4e3c9f['getContainedElement']();if(null!=_0x5f38d7&&_0x5f38d7['is']('element','table')){if('insertion'==_0x4e3c9f['type']){const _0x15a686=_0x4e3c9f['getItems']()['filter'](_0x578d82=>_0x578d82['is']('$textProxy'))['map'](_0x1702e3=>_0x1702e3['data']);if(_0x15a686['length'])return{'type':'insertion','content':o(_0x1b1661,'*Insert:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x15a686['join']('\x20')+'\x22'))};}if('deletion'==_0x4e3c9f['type']){const _0xf88aea=_0x4e3c9f['getItems']()['filter'](_0x332f6d=>_0x332f6d['is']('$textProxy'))['map'](_0xddea92=>_0xddea92['data']);if(_0xf88aea['length'])return{'type':'deletion','content':o(_0x1b1661,'*Remove:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xf88aea['join']('\x20')+'\x22'))};}}}),_0x14b146['descriptionFactory']['registerDescriptionCallback'](_0xe63b01=>{if('tableRow'==_0xe63b01['subType']){const _0xf9610e=_0xe63b01['getItems']()['filter'](_0x34d39c=>_0x34d39c['is']('$textProxy'))['map'](_0xe49dce=>_0xe49dce['data']),_0x528669=this['_getSuggestionCoords'](_0xe63b01),_0x286070=_0x528669['maxRow']-_0x528669['minRow']+0x1;if('insertion'==_0xe63b01['type'])return _0xf9610e['length']?{'type':'insertion','content':o(_0x1b1661,'*Insert:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x286070,'\x22'+_0xf9610e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b1661,'*Insert:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_ROW',_0x286070))};if('deletion'==_0xe63b01['type'])return _0xf9610e['length']?{'type':'deletion','content':o(_0x1b1661,'*Remove:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x286070,'\x22'+_0xf9610e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b1661,'*Remove:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_ROW',_0x286070))};}if('tableColumn'==_0xe63b01['subType']){const _0x36d84f=_0xe63b01['getItems']()['filter'](_0x3263e0=>_0x3263e0['is']('$textProxy'))['map'](_0x19a133=>_0x19a133['data']),_0x547a76=this['_getSuggestionCoords'](_0xe63b01),_0x18fba6=_0x547a76['maxColumn']-_0x547a76['minColumn']+0x1;if('insertion'==_0xe63b01['type'])return _0x36d84f['length']?{'type':'insertion','content':o(_0x1b1661,'*Insert:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18fba6,'\x22'+_0x36d84f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1b1661,'*Insert:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_COLUMN',_0x18fba6))};if('deletion'==_0xe63b01['type'])return _0x36d84f['length']?{'type':'deletion','content':o(_0x1b1661,'*Remove:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x18fba6,'\x22'+_0x36d84f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1b1661,'*Remove:*\x20%0',o(_0x1b1661,'ELEMENT_TABLE_COLUMN',_0x18fba6))};}}),_0x14b146['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xb89005),_0x14b146['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xb89005),_0x14b146['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x30bf65),_0x14b146['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x30bf65),_0x14b146['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x493bc4),_0x14b146['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x493bc4),_0x14b146['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1e97c4),_0x14b146['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1e97c4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x312d07=this['editor'],_0xc7b308=_0x312d07['model']['document']['selection'];return(_0x23ee33,_0x19319f)=>{_0x312d07['model']['change'](_0x5a5cc0=>{const {commandName:_0x2a56f3,commandParams:_0x2230c9}=_0x19319f;let _0x15fcea=_0x23ee33[0x0]['end']['nodeBefore'];_0x2230c9&&_0x2230c9[0x0]&&!0x1===_0x2230c9[0x0]['forceValue']&&(_0x15fcea=_0x23ee33[0x0]['start']['nodeAfter']);const _0x4ee15f=_0x5a5cc0['createRangeIn'](_0x15fcea);if('$graveyard'==_0x4ee15f['root']['rootName'])return;const _0xc26187=Array['from'](_0xc7b308['getRanges']())['map'](_0x1ff74d=>_0x5116e6['fromRange'](_0x1ff74d));_0x5a5cc0['setSelection'](_0x4ee15f),_0x312d07['commands']['get'](_0x2a56f3)['refresh'](),_0x2230c9['push']({'forceDefaultExecution':!0x0}),_0x312d07['execute'](_0x2a56f3,..._0x2230c9);const _0x5ad688=_0xc26187['filter'](_0x39bc55=>'$graveyard'!=_0x39bc55['root']['rootName']);_0x5ad688['length']>0x0&&_0x5a5cc0['setSelection'](_0x5ad688);for(const _0x3006d7 of _0xc26187)_0x3006d7['detach']();});};}['_getCoordsForCells'](_0x4939c6){const _0x29da29=this['editor']['plugins']['get']('TableUtils');let _0x5879a6=Number['MAX_SAFE_INTEGER'],_0x5ec6f6=Number['MIN_SAFE_INTEGER'],_0x3d9f72=Number['MAX_SAFE_INTEGER'],_0x1303a6=Number['MIN_SAFE_INTEGER'];for(const _0x3c6db3 of _0x4939c6){if('$graveyard'==_0x3c6db3['root']['rootName'])continue;const {row:_0x29cf05,column:_0x28f19d}=_0x29da29['getCellLocation'](_0x3c6db3),_0x3b1dd7=_0x3c6db3['hasAttribute']('rowspan')?_0x3c6db3['getAttribute']('rowspan')-0x1:0x0,_0x1d3745=_0x3c6db3['hasAttribute']('colspan')?_0x3c6db3['getAttribute']('colspan')-0x1:0x0;_0x5879a6=_0x29cf05<_0x5879a6?_0x29cf05:_0x5879a6,_0x5ec6f6=_0x29cf05+_0x3b1dd7>_0x5ec6f6?_0x29cf05+_0x3b1dd7:_0x5ec6f6,_0x3d9f72=_0x28f19d<_0x3d9f72?_0x28f19d:_0x3d9f72,_0x1303a6=_0x28f19d+_0x1d3745>_0x1303a6?_0x28f19d+_0x1d3745:_0x1303a6;}return{'minRow':_0x5879a6,'maxRow':_0x5ec6f6,'minColumn':_0x3d9f72,'maxColumn':_0x1303a6};}['_setupColumnsRowsFixing'](){const _0x29d86b=this['editor'],_0x3b6d23=_0x29d86b['plugins']['get']('TrackChangesEditing'),_0x12d1b3=_0x29d86b['plugins']['get']('TableUtils');_0x29d86b['model']['document']['on']('change:data',()=>{const _0x20c3f1=Array['from'](_0x29d86b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12b581,data:_0x677f76}of _0x20c3f1){const {group:_0x23c22b,id:_0x159b4e,subType:_0x5da949}=_0x3b6d23['_splitMarkerName'](_0x12b581);if('suggestion'!=_0x23c22b)continue;if(null!=_0x677f76['oldRange'])continue;const _0x726ec0=_0x3b6d23['getSuggestion'](_0x159b4e);this['_tablePostFixingSubtypes']['includes'](_0x5da949)&&this['_tableSuggestions']['add'](_0x726ec0);}},{'priority':'low'});const _0x55573b=(_0x5c356f,_0x695cc1)=>{let _0x3dcbb1=!0x1;const _0x31518e=_0x695cc1['createRangeOn'](_0x5c356f),_0x52bfff=_0x5c356f['findAncestor']('table'),_0x4ad20b=_0x12d1b3['getCellLocation'](_0x5c356f);for(const _0x42cea7 of this['_tableSuggestions']){const _0x4ad4af=_0x42cea7['subType'],_0x4c478c=_0x4ad4af['startsWith']('tablePaste'),_0x3ae2c9=_0x4ad4af['substr'](_0x4c478c?0xa:0x5),_0x4a4af1=_0x3ae2c9['toLowerCase'](),_0x136ec3=_0x4a4af1['substr'](0x0,0x3)+'span',_0x1a34b7='min'+_0x3ae2c9,_0x39d5bb='max'+_0x3ae2c9;if(!_0x42cea7['isInContent'])continue;if(_0x52bfff!=_0x42cea7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x42cea7['isIntersectingWithRange'](_0x31518e))continue;const _0x22c0a5=_0x5c356f['hasAttribute'](_0x136ec3)?_0x5c356f['getAttribute'](_0x136ec3)-0x1:0x0,_0x754bcf=this['_getSuggestionCoords'](_0x42cea7),_0x170378=_0x754bcf[_0x1a34b7],_0x1ff7b3=_0x754bcf[_0x39d5bb];_0x170378<=_0x4ad20b[_0x4a4af1]&&_0x4ad20b[_0x4a4af1]+_0x22c0a5<=_0x1ff7b3&&(_0x42cea7['addRange'](_0x31518e),_0x3dcbb1=!0x0);}return _0x3dcbb1;};_0x29d86b['model']['document']['registerPostFixer'](_0x173e7f=>{let _0x1a00b6=!0x1;for(const _0x45c8e9 of _0x29d86b['model']['document']['differ']['getChanges']())if('insert'==_0x45c8e9['type']){if('tableRow'==_0x45c8e9['name']){for(const _0x3c3a1f of _0x45c8e9['position']['nodeAfter']['getChildren']())_0x1a00b6=_0x1a00b6||_0x55573b(_0x3c3a1f,_0x173e7f);}else'tableCell'==_0x45c8e9['name']&&(_0x1a00b6=_0x1a00b6||_0x55573b(_0x45c8e9['position']['nodeAfter'],_0x173e7f));}return _0x1a00b6;});}['_getSuggestionCoords'](_0x9befea){return this['_getCoordsForCells'](_0x9befea['getRanges']()['map'](_0x1fe30a=>_0x1fe30a['start']['nodeAfter']));}}function Ee(_0x25907f){return Array['from'](new Set(_0x25907f)['values']());}class vt extends _0x5b3081{static get['requires'](){return[It];}['afterInit'](){const _0x19ba47=this['editor'],_0x1c4f8c=_0x19ba47['model']['document']['selection'],_0x1e9e15=_0x19ba47['locale'];if(!_0x19ba47['plugins']['has']('TableEditing'))return;const _0x1983a8=_0x19ba47['plugins']['get']('TrackChangesEditing'),_0x3f14be=_0x19ba47['plugins']['get']('TableUtils'),_0x4bc9ca=_0x19ba47['plugins']['get'](It);_0x4bc9ca['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1983a8['enableCommand']('mergeTableCells',()=>{const _0x8a8191=_0x3f14be['getSelectionAffectedTableCells'](_0x19ba47['model']['document']['selection']);_0x19ba47['model']['change'](()=>{_0x1983a8['markMultiRangeBlockFormat'](_0x8a8191,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x19ba47['commands']['get']('mergeTableCells')['on']('execute',(_0x3eaa72,_0x2e04cd)=>{_0x19ba47['commands']['get']('trackChanges')['value']&&(_0x2e04cd['length']>0x0&&_0x2e04cd[_0x2e04cd['length']-0x1]&&_0x2e04cd[_0x2e04cd['length']-0x1]['forceDefaultExecution']||_0x1983a8['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3eaa72['stop']());},{'priority':'highest'});for(const _0x31029f of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x322bc7=_0x19ba47['commands']['get'](_0x31029f);_0x1983a8['enableCommand'](_0x31029f,()=>{const _0x1c7bfb=_0x19ba47['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2cf5fe=>_0x2cf5fe['is']('element','tableCell')),_0x547a94=_0x322bc7['value'];_0x19ba47['model']['change'](()=>{_0x1983a8['markMultiRangeBlockFormat']([_0x1c7bfb,_0x547a94],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x22e5ad of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2afe87=_0x19ba47['commands']['get'](_0x22e5ad);_0x1983a8['enableCommand'](_0x22e5ad,()=>{const _0x398e46=_0x3f14be['getSelectionAffectedTableCells'](_0x19ba47['model']['document']['selection'])[0x0],_0x2056eb=_0x398e46['findAncestor']('table'),{column:_0x330e6b,row:_0x412eda}=_0x3f14be['getCellLocation'](_0x398e46);let _0x22a426=[];if('horizontally'==_0x2afe87['direction']){const _0x159f44=_0x3f14be['createTableWalker'](_0x2056eb,{'startRow':_0x412eda,'endRow':_0x412eda,'includeAllSlots':!0x0});_0x22a426=Array['from'](_0x159f44)['map'](_0x2f9da9=>_0x2f9da9['cell']);}else{const _0x2c03b8=_0x3f14be['createTableWalker'](_0x2056eb,{'column':_0x330e6b,'includeAllSlots':!0x0});_0x22a426=Array['from'](_0x2c03b8)['map'](_0x517c32=>_0x517c32['cell']);}_0x19ba47['model']['change'](_0x1df575=>{_0x1983a8['markBlockFormat'](_0x1df575['createRangeOn'](_0x398e46),{'commandName':_0x22e5ad,'commandParams':[]},_0x22a426,_0x22e5ad);});});}_0x1983a8['descriptionFactory']['registerDescriptionCallback'](_0x2dd7a4=>{if('formatBlock'!=_0x2dd7a4['type']&&'formatInline'!=_0x2dd7a4['type'])return;const {data:_0x8ac9e1}=_0x2dd7a4;return _0x8ac9e1&&'mergeTableCells'==_0x8ac9e1['commandName']?{'type':'format','content':o(_0x1e9e15,'*Merge\x20cells*')}:void 0x0;}),_0x1983a8['descriptionFactory']['registerDescriptionCallback'](_0x395416=>{if('formatBlock'!=_0x395416['type']&&'formatInline'!=_0x395416['type'])return;const {data:_0x3beb1b}=_0x395416;return _0x3beb1b?'splitTableCellVertically'==_0x3beb1b['commandName']?{'type':'format','content':o(_0x1e9e15,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3beb1b['commandName']?{'type':'format','content':o(_0x1e9e15,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20e6fe=_0x4bc9ca['_acceptFormatSuggestionCallbackFactory']();for(const _0x1a3921 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1983a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a3921,'accept',_0x20e6fe);for(const _0x1b94ec of['splitTableCellVertically','splitTableCellHorizontally'])_0x1983a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1b94ec,'accept',_0x20e6fe);_0x1983a8['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x31573a=>{_0x19ba47['model']['change'](_0x39dfa3=>{const _0x2f3763=Array['from'](_0x1c4f8c['getRanges']())['map'](_0x47a32e=>_0x5116e6['fromRange'](_0x47a32e));_0x39dfa3['setSelection'](_0x31573a),_0x19ba47['commands']['get']('mergeTableCells')['refresh'](),_0x19ba47['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5a4c1b=_0x2f3763['filter'](_0x1b160b=>'$graveyard'!=_0x1b160b['root']['rootName']);_0x5a4c1b['length']>0x0&&_0x39dfa3['setSelection'](_0x5a4c1b);for(const _0xdf560 of _0x2f3763)_0xdf560['detach']();});});for(const _0x10c26d of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1e380f=_0x19ba47['commands']['get'](_0x10c26d);_0x1e380f['on']('set:isEnabled',(_0x1487f2,_0x2c997f,_0x36691b)=>{if(_0x36691b){const _0x5ca540=_0x19ba47['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3d97aa=>_0x3d97aa['is']('element','tableCell'));this['_areMergableCells'](_0x1e380f['value'],_0x5ca540)||(_0x1487f2['return']=!0x1,_0x1487f2['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x12448d=this['editor']['commands']['get']('mergeTableCells'),_0x12a779=this['editor']['plugins']['get']('TableUtils');if(!_0x12448d['isEnabled'])return!0x1;const _0x13e9f2=_0x12a779['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x37addf of _0x13e9f2)for(const _0x34a8f0 of _0x13e9f2)if(_0x37addf!=_0x34a8f0&&!this['_areMergableCells'](_0x37addf,_0x34a8f0))return!0x1;return!0x0;}['_areMergableCells'](_0x53d43d,_0x18b00f){const _0x27bb81=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e8e9b=this['editor']['model']['createRangeOn'](_0x53d43d),_0x43aa30=this['editor']['model']['createRangeOn'](_0x18b00f),_0x14d4fa=new Set(),_0x27019b=new Set();for(const _0x3746e9 of _0x27bb81['getSuggestions']())if(('insertion'==_0x3746e9['type']||'deletion'==_0x3746e9['type']||'mergeTableCells'==_0x3746e9['subType'])&&_0x3746e9['isInContent']){for(const _0x48a363 of _0x3746e9['getRanges']())_0x48a363['containsRange'](_0x3e8e9b,!0x0)&&_0x14d4fa['add'](_0x3746e9['type']+':'+_0x3746e9['author']['id']),_0x48a363['containsRange'](_0x43aa30,!0x0)&&_0x27019b['add'](_0x3746e9['type']+':'+_0x3746e9['author']['id']);}if(_0x14d4fa['size']!=_0x27019b['size'])return!0x1;for(const _0x361ea4 of _0x14d4fa)if(!_0x27019b['has'](_0x361ea4))return!0x1;return!0x0;}}class Ct extends _0x5b3081{static get['requires'](){return[It];}['afterInit'](){const _0x409827=this['editor'];if(!_0x409827['plugins']['has']('TableEditing'))return;const _0x283043=_0x409827['locale'],_0xfec440=_0x409827['plugins']['get']('TrackChangesEditing');_0xfec440['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xfec440['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xfec440['registerBlockAttribute']('headingRows'),_0xfec440['registerBlockAttribute']('headingColumns'),_0xfec440['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x283043,'FORMAT_HEADER_ROW')),_0xfec440['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x283043,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa81fd3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40bd09=this['editor']['plugins']['get']('TableUtils'),_0x5e7d32=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5b656a({showActiveMarker:_0x30a12a=!0x0,setDataAttribute:_0x83c3fe=!0x0}={}){return(_0x2ebb96,_0x2d03c4,_0x549d90)=>{const {type:_0x52b0df,id:_0x38460d}=_0xa81fd3['_splitMarkerName'](_0x2d03c4['markerName']),_0x4ebb96=_0xa81fd3['getSuggestion'](_0x38460d),_0x418087=_0x4ebb96['data'];if('formatBlock'!=_0x4ebb96['type']||!_0x418087||'setTableColumnHeader'!=_0x418087['commandName'])return;if(_0x2d03c4['item'])return void _0x2ebb96['stop']();if(!_0x549d90['consumable']['consume'](_0x2d03c4['markerRange'],_0x2ebb96['name']))return;const _0xc08dc1=_0x2d03c4['markerRange']['start']['nodeAfter'],_0x2152e8=_0x2d03c4['markerRange']['end']['nodeBefore'],_0x3c955a=_0xc08dc1['parent']['parent'],{column:_0x264070}=_0x40bd09['getCellLocation'](_0xc08dc1),{column:_0x24a12d}=_0x40bd09['getCellLocation'](_0x2152e8);for(let _0x12a078=_0x264070;_0x12a078<=_0x24a12d;_0x12a078++){const _0x1b582f=_0x40bd09['createTableWalker'](_0x3c955a,{'column':_0x12a078,'includeAllSlots':!0x1});for(const _0x27e515 of _0x1b582f){const _0xa773b0=_0x27e515['cell'],_0x4fb832=_0x549d90['mapper']['toViewElement'](_0xa773b0);_0x549d90['writer']['addClass']('ck-suggestion-marker-'+_0x52b0df,_0x4fb832),_0x83c3fe&&_0x549d90['writer']['setAttribute']('data-suggestion',_0x38460d,_0x4fb832),_0x549d90['mapper']['bindElementToMarker'](_0x4fb832,_0x2d03c4['markerName']),_0x30a12a&&(_0xa81fd3['activeMarkers']['includes'](_0x2d03c4['markerName'])?_0x549d90['writer']['addClass']('ck-suggestion-marker--active',_0x4fb832):_0x549d90['writer']['removeClass']('ck-suggestion-marker--active',_0x4fb832));}}};}_0xa81fd3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e7d32),_0xa81fd3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e7d32),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5b656a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3dca2d,_0x2a54d7,_0x36529c)=>{_0x36529c['options']['showSuggestionHighlights']&&_0x5b656a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3dca2d,_0x2a54d7,_0x36529c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x591c3a,_0x44c03e,_0xa482fb)=>{const {type:_0x27681d,id:_0x3a396a}=_0xa81fd3['_splitMarkerName'](_0x44c03e['markerName']),_0x1a7b15=_0xa81fd3['getSuggestion'](_0x3a396a),_0x328445=_0x1a7b15['data'];if('formatBlock'!=_0x1a7b15['type']||!_0x328445||'setTableColumnHeader'!=_0x328445['commandName'])return;const _0x4d3f6b=_0xa482fb['mapper']['markerNameToElements'](_0x44c03e['markerName']);if(_0x4d3f6b){for(const _0x58b0ec of _0x4d3f6b)_0xa482fb['writer']['removeClass']('ck-suggestion-marker-'+_0x27681d,_0x58b0ec),_0xa482fb['writer']['removeClass']('ck-suggestion-marker--active',_0x58b0ec),_0xa482fb['writer']['removeAttribute']('data-suggestion',_0x58b0ec),_0xa482fb['mapper']['unbindElementFromMarkerName'](_0x58b0ec,_0x44c03e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa521de=this['editor'],_0x3400c7=_0xa521de['locale'];function _0x510c39(_0x2bd976){return{'type':'format','content':o(_0x3400c7,'*Format:*\x20%0',_0x2bd976)};}_0xa521de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15dfbe=>{if('formatBlock'!=_0x15dfbe['type'])return;const {data:_0xf1a65c}=_0x15dfbe;if(_0xf1a65c){if('setTableRowHeader'==_0xf1a65c['commandName']){const _0x1d3334=_0xf1a65c['commandParams'][0x0]['forceValue'];return _0x510c39(o(_0x3400c7,_0x1d3334?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xf1a65c['commandName']){const _0x11f2cc=_0xf1a65c['commandParams'][0x0]['forceValue'];return _0x510c39(o(_0x3400c7,_0x11f2cc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x49c295=>[_0x49c295,null]));class _t extends _0x5b3081{static get['requires'](){return[It];}['afterInit'](){const _0x2baf93=this['editor'];if(!_0x2baf93['plugins']['has']('TableClipboard'))return;const _0x50e482=_0x2baf93['plugins']['get']('TrackChangesEditing'),_0x1d2d37=_0x2baf93['plugins']['get']('TableUtils'),_0x142995=_0x2baf93['plugins']['get'](It),_0x1467b9=_0x2baf93['plugins']['get']('TableClipboard');_0x142995['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2baf93['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2baf93['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b29af=null;_0x2baf93['model']['on']('insertContent',(_0x369b07,_0x444c4f)=>{const [_0x45ce62,_0x5f3586]=_0x444c4f,_0x41b476=_0x444c4f[_0x444c4f['length']-0x1];_0x41b476&&_0x41b476['forceDefaultExecution']||_0x50e482['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x187161,_0x582e58,_0x138d90,_0x29f8cb,_0x51114a){if(_0x582e58&&!_0x582e58['is']('documentSelection'))return!0x1;const _0x204071=_0x51114a['getTableIfOnlyTableInContent'](_0x187161,_0x138d90);if(!_0x204071||!ke(_0x204071,void 0x0,_0x29f8cb))return!0x1;const _0x29a24b=_0x29f8cb['getSelectionAffectedTableCells'](_0x138d90['document']['selection']);if(!_0x29a24b['length'])return!0x1;const _0x11cec1=_0x29a24b[0x0]['findAncestor']('table'),_0x4b278d=_0x29f8cb['getRowIndexes'](_0x29a24b),_0x101c9b=_0x29f8cb['getColumnIndexes'](_0x29a24b),_0x9e3972={'startRow':_0x4b278d['first'],'endRow':_0x4b278d['last'],'startColumn':_0x101c9b['first'],'endColumn':_0x101c9b['last']};return 0x1==_0x29a24b['length']&&(_0x9e3972['endRow']+=_0x29f8cb['getRows'](_0x204071)-0x1,_0x9e3972['endColumn']+=_0x29f8cb['getColumns'](_0x204071)-0x1),ke(_0x11cec1,_0x9e3972,_0x29f8cb);}(_0x45ce62,_0x5f3586,_0x2baf93['model'],_0x1d2d37,_0x1467b9)&&(_0x369b07['stop'](),_0x2b29af={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2baf93['model']['change'](()=>{_0x2baf93['model']['insertContent'](_0x444c4f[0x0],_0x444c4f[0x1],_0x444c4f[0x2],{'forceDefaultExecution':!0x0});const _0x25f1e5=_0x71cbf7(),{rowInsertionRanges:_0x65ac9b,columnInsertionRanges:_0xd1b099,insertionRanges:_0x3ee822,deletionRanges:_0x2b23e8,cells:_0x3b1b9f}=_0x2b29af;_0x65ac9b['length']&&_0x50e482['markMultiRangeInsertion'](_0x65ac9b,'tablePasteRow',{'tablePasteChainId':_0x25f1e5}),_0xd1b099['length']&&_0x50e482['markMultiRangeInsertion'](_0xd1b099,'tablePasteColumn',{'tablePasteChainId':_0x25f1e5}),_0x3ee822['length']&&(_0x50e482['markMultiRangeInsertion'](_0x3ee822,'tablePaste',{'tablePasteChainId':_0x25f1e5,'skipNestingCheck':!0x0}),_0x3ee822['forEach'](_0x19f1c8=>_0x19f1c8['detach']?.())),_0x2b23e8['length']&&(_0x50e482['markMultiRangeDeletion'](_0x2b23e8,'tablePaste',{'tablePasteChainId':_0x25f1e5,'skipNestingCheck':!0x0}),_0x2b23e8['forEach'](_0x2e37d1=>_0x2e37d1['detach']?.()));const _0x333c49=_0x50e482['markMultiRangeBlockFormat'](_0x3b1b9f['map'](({element:_0x57c143})=>_0x57c143),{'formatGroupId':_0x71cbf7()},[],'tablePasteCell',{'tablePasteChainId':_0x25f1e5});if(_0x333c49){const _0x49c9bd=_0x333c49['getMarkers'](),_0x2c9681=[];for(const {element:_0x5cac3b,attributes:_0x14cdc6}of _0x3b1b9f){if(!_0x14cdc6)continue;const _0x51e376=_0x2baf93['model']['createRangeOn'](_0x5cac3b),_0xe2216=_0x49c9bd['find'](_0x4a2882=>_0x4a2882['getRange']()['isEqual'](_0x51e376));_0xe2216&&_0x2c9681['push']([_0xe2216['name'],_0x14cdc6]);}_0x2c9681['length']&&_0x333c49['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c9681));}_0x2b29af=null;}));},{'priority':_0x1f0d4e['high']+0xa}),_0x2baf93['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x433bc3,_0xb739a8)=>{const [_0x468af7,_0x1b47d6,,_0x24601a]=_0xb739a8;if(!_0x2b29af)return;_0x433bc3['stop']();const _0x284bed=_0x468af7['cell'],_0x2743c5=_0x1b47d6,_0x4d574b=we(_0x284bed),_0x55821b=we(_0x2743c5);_0x433bc3['return']=_0x284bed;let _0x2579a5=null,_0x330644=null;if(_0x55821b||_0x4d574b){if(_0x4d574b&&!_0x55821b){_0x24601a['remove'](_0x284bed['getChild'](0x0));for(const _0x3fa43b of Array['from'](_0x2743c5['getChildren']()))_0x24601a['insert'](_0x3fa43b,_0x284bed,'end');const _0x19f358=_0x2b29af['rowInsertionIndexes']['includes'](_0x468af7['row']),_0xe53f44=_0x2b29af['columnInsertionIndexes']['includes'](_0x468af7['column']);_0x19f358||_0xe53f44||(_0x2579a5=_0x5116e6['fromRange'](_0x24601a['createRangeIn'](_0x284bed)));}else _0x55821b&&!_0x4d574b&&(_0x330644=_0x24601a['createRangeIn'](_0x284bed));}else{const _0x5c9060=_0x24601a['createElement']('tableCellSuggestion'),_0x45f32a=_0x24601a['createElement']('tableCellSuggestion');_0x24601a['wrap'](_0x24601a['createRangeIn'](_0x284bed),_0x45f32a),_0x24601a['insert'](_0x5c9060,_0x284bed,0x0);for(const _0x16f9cd of Array['from'](_0x2743c5['getChildren']()))_0x24601a['insert'](_0x16f9cd,_0x5c9060,'end');_0x2579a5=_0x5116e6['fromRange'](_0x24601a['createRangeOn'](_0x5c9060)),_0x330644=_0x5116e6['fromRange'](_0x24601a['createRangeOn'](_0x45f32a));}const _0x5e4236=Array['from'](_0x2743c5['getAttributes']())['filter'](([_0x57f48b])=>Ce['includes'](_0x57f48b));_0x2b29af['cells']['push']({'element':_0x284bed,'attributes':_0x5e4236['length']?Object['fromEntries'](_0x5e4236):null}),_0x2579a5&&_0x2b29af['insertionRanges']['push'](_0x2579a5),_0x330644&&_0x2b29af['deletionRanges']['push'](_0x330644);},{'priority':'high'}),_0x1d2d37['on']('insertColumns',(_0x5e8018,_0x3ac276)=>{const [_0x5c5013,_0x4674ca={}]=_0x3ac276;if(!_0x2b29af)return;const _0x41a7d8=_0x4674ca['at']||0x0,_0x2d93cc=_0x4674ca['columns']||0x1;_0x2b29af['columnInsertionIndexes']=new Array(_0x2d93cc)['fill'](_0x41a7d8)['map']((_0x4b6b1b,_0x18b998)=>_0x4b6b1b+_0x18b998);for(const {cell:_0x23bff0}of _0x1d2d37['createTableWalker'](_0x5c5013,{'startColumn':_0x41a7d8,'endColumn':_0x41a7d8+_0x2d93cc-0x1}))_0x2b29af['columnInsertionRanges']['push'](_0x2baf93['model']['createRangeOn'](_0x23bff0));},{'priority':'low'}),_0x1d2d37['on']('insertRows',(_0x3aba68,_0x6758c1)=>{const [_0x249aa0,_0x2e5469={}]=_0x6758c1;if(!_0x2b29af)return;const _0x1c6fd9=_0x2e5469['at']||0x0,_0x16808e=_0x2e5469['rows']||0x1;_0x2b29af['rowInsertionIndexes']=new Array(_0x16808e)['fill'](_0x1c6fd9)['map']((_0x4709b2,_0x11d5fa)=>_0x4709b2+_0x11d5fa);for(const {cell:_0x4fe396}of _0x1d2d37['createTableWalker'](_0x249aa0,{'startRow':_0x1c6fd9,'endRow':_0x1c6fd9+_0x16808e-0x1}))_0x2b29af['rowInsertionRanges']['push'](_0x2baf93['model']['createRangeOn'](_0x4fe396));},{'priority':'low'}),_0x50e482['descriptionFactory']['registerDescriptionCallback'](_0x29a167=>{if(_0x29a167['subType']&&_0x29a167['subType']['startsWith']('tablePaste'))return _0x29a167['previous']?{}:{'type':'insertion','content':o(_0x2baf93['locale'],'*Replace\x20table\x20cells*')};});const _0x35f993=()=>!0x1;for(const _0x340a90 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x50e482['_suggestionFactory']['registerCustomCallback']('insertion',_0x340a90,'join',_0x35f993),_0x50e482['_suggestionFactory']['registerCustomCallback']('deletion',_0x340a90,'join',_0x35f993),_0x50e482['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x340a90,'join',_0x35f993);_0x50e482['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x35f993),_0x50e482['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x65e3bf,_0x28f6f3,_0x9f8259)=>{const _0xa3ff25=_0x65e3bf['map'](_0x4bd92a=>_0x4bd92a['getContainedElement']())['filter'](_0x5eee13=>_0x5eee13),_0x35bfc1=new Map(_0xa3ff25['map'](_0x3c2c4c=>[_0x3c2c4c,null]));if(_0x2b29af){for(const {element:_0x2d9900,attributes:_0x4832b5}of _0x2b29af['cells'])_0x4832b5&&_0x35bfc1['set'](_0x2d9900,_0x4832b5);}else{if(_0x9f8259&&_0x9f8259['markerAttributes'])for(const [_0x216dd5,_0x584313]of Object['entries'](_0x9f8259['markerAttributes'])){const _0x29a9db=_0x2baf93['model']['markers']['get'](_0x216dd5),_0x18e995=_0x29a9db?_0x29a9db['getRange']()['getContainedElement']():null;_0x18e995&&_0x35bfc1['set'](_0x18e995,_0x584313);}}_0x2baf93['model']['change'](_0x56b24f=>{for(const [_0x18f546,_0xd1da57]of _0x35bfc1)_0x56b24f['setAttributes']({...Pe,..._0xd1da57},_0x18f546);});});const _0x1d746d=(_0x212e53,_0x472264)=>{_0x50e482['_suggestionFactory']['registerCustomCallback'](_0x212e53,'tablePaste',_0x472264,(_0x111bf5,_0x47a1e7,_0x4ffa65)=>{_0x2baf93['model']['change'](_0x1dc986=>{const _0x12d59e=[];for(const _0x5b5656 of _0x111bf5){const _0x18ac8e=_0x5b5656['start']['nodeAfter'];_0x18ac8e['is']('element','tableCellSuggestion')&&_0x12d59e['push'](_0x18ac8e);}_0x50e482['_suggestionFactory']['getSuggestionCallback'](_0x212e53,null,_0x472264)(_0x111bf5,_0x47a1e7,_0x4ffa65);for(const _0x32b95c of _0x12d59e)'$graveyard'!=_0x32b95c['root']['rootName']&&_0x1dc986['unwrap'](_0x32b95c);});});};_0x1d746d('insertion','accept'),_0x1d746d('insertion','discard'),_0x1d746d('deletion','accept'),_0x1d746d('deletion','discard'),_0x50e482['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xdef468=>{const _0x495dde=_0xdef468['map'](_0x6e09be=>_0x6e09be['getContainedElement']()),_0x3743fa=_0x495dde[0x0]['findAncestor']('table'),{minRow:_0x59bda1,maxRow:_0x3b4a54}=_0x142995['_getCoordsForCells'](_0x495dde);_0x1d2d37['removeRows'](_0x3743fa,{'at':_0x59bda1,'rows':_0x3b4a54-_0x59bda1+0x1});}),_0x50e482['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4f2002=>{const _0x355beb=_0x4f2002['map'](_0x54c860=>_0x54c860['getContainedElement']()),_0x547cd3=_0x355beb[0x0]['findAncestor']('table'),{minColumn:_0x584cf4,maxColumn:_0xaa7c9c}=_0x142995['_getCoordsForCells'](_0x355beb);_0x1d2d37['removeColumns'](_0x547cd3,{'at':_0x584cf4,'columns':_0xaa7c9c-_0x584cf4+0x1});});const _0x146613=(_0x443028,_0x5b0f95)=>{if(!_0x5b0f95['subType']||!_0x5b0f95['subType']['startsWith']('tablePaste'))return;const _0x45feab=_0x5b0f95['attributes']['tablePasteChainId'],_0x2b40ab=_0x50e482['getSuggestions']()['filter'](_0x1e54fc=>_0x1e54fc['isInContent']&&_0x1e54fc['attributes']&&_0x1e54fc['attributes']['tablePasteChainId']==_0x45feab);_0x2b40ab['length']&&_0x5b0f95['getAllAdjacentSuggestions']()['length']!=_0x2b40ab['length']&&_0x2b40ab['reduce']((_0x10e97b,_0x4d7eea)=>(_0x10e97b['next']=_0x4d7eea,_0x4d7eea['previous']=_0x10e97b,_0x4d7eea));};function _0x29ba8b(_0x35b080,_0x1dab1b=!0x0){const {id:_0x54cf81}=_0x50e482['_splitMarkerName'](_0x35b080['markerName']),_0x499b1d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2a8d1e=_0x50e482['activeMarkers']['includes'](_0x35b080['markerName']);return _0x2a8d1e&&_0x499b1d['push']('ck-suggestion-marker--active'),{'classes':_0x499b1d,'attributes':{'data-suggestion':_0x54cf81},'priority':_0x2a8d1e&&_0x1dab1b?0xbc2:0xbb8};}_0x50e482['on']('suggestionLoaded',_0x146613,{'priority':'high'}),_0x50e482['on']('suggestionUnloaded',_0x146613,{'priority':'high'}),_0x2baf93['model']['document']['registerPostFixer'](()=>{let _0x430e1d=!0x1;const _0x25eef6=Array['from'](_0x2baf93['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x451652,data:_0x45c080}of _0x25eef6){const {group:_0x43494d,type:_0x2a8bcf,id:_0x28aa2e}=_0x50e482['_splitMarkerName'](_0x451652);if('suggestion'!=_0x43494d||'deletion'!=_0x2a8bcf||_0x45c080['oldRange'])continue;if(!_0x50e482['hasSuggestion'](_0x28aa2e))continue;const _0x1cf212=_0x50e482['getSuggestion'](_0x28aa2e)['getRanges'](),_0x60e8b=_0x2baf93['plugins']['get']('Users')['me'];for(const _0x2853bf of _0x50e482['getSuggestions']()){if(!_0x2853bf['isInContent']||_0x2853bf['author']!=_0x60e8b)continue;if('formatBlock'!=_0x2853bf['type']||'tablePasteCell'!=_0x2853bf['subType'])continue;if(_0x2853bf['getRanges']()['every'](_0x2ab24d=>_0x1cf212['some'](_0x216288=>_0x216288['containsRange'](_0x2ab24d,!0x0)))){for(const _0x6d8bb9 of _0x2853bf['getAllAdjacentSuggestions']())_0x6d8bb9['isInContent']&&(_0x6d8bb9['discard'](),_0x430e1d=!0x0);}}}return _0x430e1d;}),_0x2baf93['model']['document']['registerPostFixer'](_0x510daa=>{const _0xb2c80c=_0x2baf93['commands']['get']('redo');if(!_0xb2c80c||!_0xb2c80c['_createdBatches']['has'](_0x510daa['batch']))return!0x1;let _0x495168=!0x1;const _0x1a96ac=_0x2baf93['plugins']['get']('Users')['me'],_0x1fcb05=_0x2baf93['model']['document']['differ']['getChanges'](),_0x20eb62=Array['from'](_0x2baf93['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x54c6b6,data:_0x55de22})=>{const {group:_0x18ef3d,subType:_0x2ce5db,authorId:_0x391e35}=_0x50e482['_splitMarkerName'](_0x54c6b6);return'suggestion'==_0x18ef3d&&'tablePaste'==_0x2ce5db&&_0x391e35==_0x1a96ac['id']&&!_0x55de22['oldRange'];});for(const _0x36d2ae of _0x1fcb05){if('insert'!=_0x36d2ae['type']||'tableCellSuggestion'!=_0x36d2ae['name']||0x1!=_0x36d2ae['length'])continue;const _0x2e59a4=_0x510daa['createRange'](_0x36d2ae['position'],_0x36d2ae['position']['getShiftedBy'](0x1));if(!_0x20eb62['find'](({data:_0x42bde3})=>_0x42bde3['newRange']['isEqual'](_0x2e59a4))){for(const {name:_0xbcc615,data:_0x1ebc8d}of _0x20eb62)if(_0x2e59a4['containsRange'](_0x1ebc8d['newRange'])){_0x510daa['updateMarker'](_0xbcc615,{'range':_0x2e59a4}),_0x495168=!0x0;break;}}}return _0x495168;}),_0x2baf93['model']['document']['registerPostFixer'](_0x305494=>{let _0x29d50d=!0x1;const _0x6c1adb=_0x2baf93['plugins']['get']('Users')['me'],_0x1091ce=_0x50e482['getSuggestions']()['filter'](_0x2567b5=>_0x2567b5['isInContent']&&_0x2567b5['author']==_0x6c1adb),_0x499d6d=new Set(),_0x494037=new Set();for(const _0x26f1c4 of _0x1091ce)if('tablePaste'==_0x26f1c4['subType'])for(const _0x105c5a of _0x26f1c4['getMarkers']()){const _0x7d2494=_0x105c5a['getRange']()['getContainedElement']();if(_0x7d2494){if(_0x7d2494['is']('element','tableCellSuggestion')&&we(_0x7d2494)){_0x26f1c4['removeMarker'](_0x105c5a['name']),_0x499d6d['add'](_0x7d2494),_0x29d50d=!0x0;const _0x4a740a=_0x7d2494['nextSibling'],_0x35d475=_0x7d2494['previousSibling'],_0x1e7cf7=_0x4a740a&&_0x4a740a['is']('element','tableCellSuggestion'),_0x40f477=_0x35d475&&_0x35d475['is']('element','tableCellSuggestion');_0x1e7cf7&&!_0x499d6d['has'](_0x4a740a)&&_0x494037['add'](_0x4a740a),_0x40f477&&!_0x499d6d['has'](_0x35d475)&&_0x494037['add'](_0x35d475);}else _0x7d2494['is']('element','paragraph')&&_0x7d2494['isEmpty']&&(_0x26f1c4['removeMarker'](_0x105c5a['name']),_0x29d50d=!0x0);}}else{if('tablePasteCell'==_0x26f1c4['subType']){if(!_0x26f1c4['attributes']||!_0x26f1c4['attributes']['tablePasteChainId'])continue;const _0x3026ae=_0x26f1c4['attributes']['markerAttributes'];if(_0x3026ae&&Object['keys'](_0x3026ae)['length'])continue;const _0x332ac8=_0x26f1c4['attributes']['tablePasteChainId'];let _0xbcfdcc=!0x0,_0x51f672=!0x0;for(const _0xe84273 of _0x1091ce)if(_0xe84273['subType']&&_0xe84273['subType']['startsWith']('tablePaste')){if(!_0xe84273['attributes']['tablePasteChainId']){_0x51f672=!0x1;break;}if(_0xe84273['id']!=_0x26f1c4['id']&&_0xe84273['attributes']['tablePasteChainId']==_0x332ac8){_0xbcfdcc=!0x1;break;}}_0x51f672&&_0xbcfdcc&&(_0x26f1c4['removeMarkers'](),_0x29d50d=!0x0);}}for(const _0x5f51a0 of _0x499d6d)_0x305494['remove'](_0x5f51a0);for(const _0x5c23af of _0x494037)_0x305494['unwrap'](_0x5c23af);return _0x29d50d;}),_0x2baf93['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x12bb8e,_0x1346af)=>_0x29ba8b(_0x12bb8e),'converterPriority':'high'}),_0x2baf93['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2d6f6c,_0x3039bb)=>_0x3039bb['options']['showSuggestionHighlights']?_0x29ba8b(_0x2d6f6c,!0x1):null,'converterPriority':'high'});const _0x56095e=_0x2baf93['editing']['view'];this['listenTo'](_0x56095e['document'],'clipboardOutput',(_0x26d4ec,_0x4aadc9)=>{const _0x3f4497=[];for(const _0x38e4f9 of _0x56095e['createRangeIn'](_0x4aadc9['content'])['getItems']())_0x38e4f9['is']('element','suggestion-td')&&_0x3f4497['push'](_0x38e4f9);_0x56095e['change'](_0x134620=>{for(const _0x1b2496 of _0x3f4497)_0x134620['move'](_0x134620['createRangeIn'](_0x1b2496),_0x134620['createPositionBefore'](_0x1b2496)),_0x134620['remove'](_0x1b2496);});});}}function we(_0x4705c1){if(_0x4705c1['isEmpty'])return!0x0;const _0xc143f2=_0x4705c1['getChild'](0x0);return _0xc143f2['is']('element','paragraph')&&_0xc143f2['isEmpty'];}function ke(_0x47b1f0,_0x1b8ce9={},_0x2e6930){for(const {isAnchor:_0x11896d,cellHeight:_0x1fa37e,cellWidth:_0x39965a}of _0x2e6930['createTableWalker'](_0x47b1f0,{'includeAllSlots':!0x0,..._0x1b8ce9}))if(!_0x11896d||0x1!=_0x1fa37e||0x1!=_0x39965a)return!0x1;return!0x0;}class Nt extends _0x5b3081{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x308846=this['editor']['plugins']['get']('TrackChangesEditing');_0x308846['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x308846['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x308846['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x308846['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x308846['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x308846['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1354ab,_0x8ea1ad){const _0x5d27fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ed382=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3180b0=_0x8ea1ad['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3a5fa2=_0x1ed382['getColumnGroupElement'](_0x3180b0);let _0x266763=_0x3a5fa2?_0x1ed382['getTableColumnsWidths'](_0x3a5fa2):null,_0x4b1754=_0x3180b0['getAttribute']('tableWidth')||null;const _0x5ebbf7=_0x8ea1ad['tableWidth']||_0x4b1754,_0xfdf3e2=_0x8ea1ad['columnWidths']||_0x266763,_0x23d0bf=this['editor']['plugins']['get']('Users')['me'];for(const _0x25bf62 of _0x5d27fc['getSuggestions']()){const _0x349d68=_0x25bf62['getContainedElement']();if('resizeTable'===_0x25bf62['subType']&&_0x349d68===_0x3180b0){_0x25bf62['author']!==_0x23d0bf&&_0x25bf62['discard']();const _0x4daaa9=_0x25bf62['data']['commandParams'];_0x4b1754=_0x4daaa9[0x0]['tableWidth'],_0x266763=_0x4daaa9[0x0]['columnWidths'];break;}}_0x1354ab({'table':_0x3180b0,'tableWidth':_0x5ebbf7,'columnWidths':_0xfdf3e2}),_0x5d27fc['markBlockFormat'](_0x3180b0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4b1754,'columnWidths':_0x266763}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4854e5){if('formatBlock'!=_0x4854e5['type']&&'formatInline'!=_0x4854e5['type'])return;const {data:_0x5f547a}=_0x4854e5;if(_0x5f547a&&'resizeTable'===_0x5f547a['formatGroupId']){const _0x299110='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x299110)};}}}class Dt extends _0x5b3081{['afterInit'](){const _0x1a654f=this['editor'];_0x1a654f['plugins']['has']('Template')&&_0x1a654f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x5b3081{['afterInit'](){const _0x2d5d86=this['editor'];if(!_0x2d5d86['commands']['get']('insertTableOfContents'))return;_0x2d5d86['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5916a2=_0x2d5d86['plugins']['get']('TrackChangesEditing'),_0xeddcae=_0x2d5d86['locale'];_0x5916a2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4f1772=>o(_0xeddcae,'ELEMENT_TABLE_OF_CONTENTS',_0x4f1772));}}class $t extends _0x5b3081{['afterInit'](){const _0x5e8e32=this['editor'];if(!_0x5e8e32['plugins']['has']('Title'))return;const _0x3647a6=_0x5e8e32['plugins']['get']('TrackChangesEditing');_0x3647a6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x5e8e32['locale'],'ELEMENT_TITLE')),_0x5e8e32['model']['document']['registerPostFixer'](_0x1f8e48=>{let _0x51f65f=!0x1;const _0x49a496=Array['from'](_0x5e8e32['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xbfb80f,data:_0x527479}of _0x49a496){const {group:_0x6a0ae0}=_0x3647a6['_splitMarkerName'](_0xbfb80f);if('suggestion'!==_0x6a0ae0||!_0x527479['newRange'])continue;const _0xc0d377=_0x527479['newRange'],_0x39e3e5=_0xc0d377['end']['nodeBefore'];if(!_0x39e3e5||!_0x39e3e5['is']('element','title-content'))continue;if(!_0xc0d377['start']['isTouching'](_0xc0d377['end']))continue;const _0x5951d9=_0x5e8e32['model']['schema']['getNearestSelectionRange'](_0xc0d377['end'],'forward');if(_0x5951d9&&_0x5951d9['isCollapsed']){const _0x27faf1=_0x1f8e48['createRange'](_0xc0d377['start'],_0x5951d9['start']);_0x27faf1['isEqual'](_0xc0d377)||(_0x1f8e48['updateMarker'](_0xbfb80f,{'range':_0x27faf1}),_0x51f65f=!0x0);}_0x51f65f||(_0x1f8e48['removeMarker'](_0xbfb80f),_0x51f65f=!0x0);}return _0x51f65f;});}}class Bt extends _0x5b3081{['afterInit'](){const _0x1b8809=this['editor'],_0x1d66ce=_0x1b8809['plugins']['get']('TrackChangesEditing');_0x1b8809['plugins']['has']('UndoEditing')&&(_0x1d66ce['enableCommand']('undo'),_0x1d66ce['enableCommand']('redo'));}}class xt extends _0x5b3081{static get['requires'](){return[It];}['afterInit'](){const _0x4f66bd=this['editor'];if(!_0x4f66bd['plugins']['has']('TableCaptionEditing'))return;_0x4f66bd['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x5b3081{['tableProperties'];['tableCellProperties'];constructor(_0x4e7dbe){super(_0x4e7dbe),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 _0x4c3bf9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x518e67 of this['tableProperties'])_0x4c3bf9['enableCommand'](_0x518e67,(_0x3fd0e8,_0x49c235)=>{const _0x292ae3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x518e67,[_0x292ae3],this['tableProperties'],'tableProperties',_0x3fd0e8,_0x49c235);});_0x4c3bf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4c3bf9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c3bf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1b932a,_0x504297)=>this['handleDiscardAction'](this['tableProperties'],_0x1b932a,_0x504297)),_0x4c3bf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x532e5b of this['tableCellProperties'])_0x4c3bf9['enableCommand'](_0x532e5b,(_0x1119fb,_0x50dfa2)=>{const _0x4cc4a5=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x532e5b,_0x4cc4a5,this['tableCellProperties'],'tableCellProperties',_0x1119fb,_0x50dfa2);});_0x4c3bf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4c3bf9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c3bf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d0089,_0x36c1e7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d0089,_0x36c1e7)),_0x4c3bf9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4c3bf9['descriptionFactory']['registerDescriptionCallback'](_0x1bc656=>this['handleSuggestionDescription'](_0x1bc656));}['_handlePropertyChange'](_0x530ab,_0x239f2c,_0x7a077,_0x45948c,_0x3e52b3,_0x4fe6f5){const _0x25947b=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4fe6f5['batch'],()=>{for(const _0x417b34 of _0x239f2c){if(this['_getSuggestion'](_0x417b34,_0x45948c))_0x3e52b3(_0x4fe6f5);else{const _0x92bde1={};for(const _0x3b6a26 of _0x7a077){const _0x21d48e=_0x417b34['getAttribute'](_0x3b6a26);void 0x0!==_0x21d48e&&(_0x92bde1[_0x3b6a26]=_0x21d48e);}_0x3e52b3(_0x4fe6f5),_0x25947b['markBlockFormat'](_0x417b34,{'commandParams':[_0x92bde1]},[],_0x45948c);}}});}['handleDiscardAction'](_0x6b139e,_0xe066c7,_0x56f646){const _0x873952=_0xe066c7[0x0]['start']['nodeAfter'],_0x2449c5=_0x56f646['commandParams'][0x0];this['editor']['model']['change'](_0x55f8e5=>{for(const _0xa6b45 of _0x6b139e)void 0x0!==_0x2449c5[_0xa6b45]?_0x55f8e5['setAttribute'](_0xa6b45,_0x2449c5[_0xa6b45],_0x873952):_0x55f8e5['removeAttribute'](_0xa6b45,_0x873952);});}['handleSuggestionDescription'](_0x3164d6){if(_0x3164d6['data'])switch(_0x3164d6['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'](_0x455755,_0x87e8f3){const _0x37ff64=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2de1d9 of _0x37ff64['getSuggestions']({'skipNotAttached':!0x0})){const _0x20e3d7=_0x2de1d9['getContainedElement']();if(_0x2de1d9['subType']===_0x87e8f3&&_0x20e3d7===_0x455755)return _0x2de1d9;}return null;}}const m='$elementName';class p extends _0x5b3081{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x41ab46,_0x28fbb9,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x33bd99){function _0x3dc1cb(_0x17cbce){return _0x17cbce['map'](_0x13b4a3=>String['fromCharCode'](_0x13b4a3))['join']('');}super(_0x33bd99),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5d9be1,_0x18a616,_0x4e1e6d,_0x14795b)=>{this['_model']['change'](()=>{for(const _0x3c08a1 of[..._0x14795b,..._0x4e1e6d])this['_model']['markers']['has'](_0x3c08a1)&&_0x33bd99['editing']['reconvertMarker'](_0x3c08a1);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x33bd99['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(),_0x33bd99['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x33bd99['config']['get']('trackChanges.trackFormatChanges'),_0x33bd99['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x33bd99['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x33bd99,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3dc1cb([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3dc1cb([0x34,0x30,0x34,0x38,0x31,0x36,0x30,0x36]);}['init'](){const _0x49ba0c=this['editor'],_0x1c6ee4=(_0x44b227,_0x1f1ff4)=>{if('attribute'!=_0x44b227)return'ck-suggestion-marker-'+_0x44b227;const _0x3118f5=_0x1f1ff4['split']('|')[0x0];return this['_isBlockAttribute'](_0x3118f5)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x49ba0c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x31c8a8=>{const {id:_0x2c9b8d,type:_0x155a73,subType:_0x4e79a9}=this['_splitMarkerName'](_0x31c8a8['markerName']),_0x37359b=['ck-suggestion-marker',_0x1c6ee4(_0x155a73,_0x4e79a9)];let _0x940dba=0xbb8;return this['activeMarkers']['includes'](_0x31c8a8['markerName'])&&(_0x37359b['push']('ck-suggestion-marker--active'),_0x940dba=0xbc2),'deletion'==_0x155a73&&(_0x940dba+=0x5),{'classes':_0x37359b,'attributes':{'data-suggestion':_0x2c9b8d},'priority':_0x940dba};}}),_0x49ba0c['conversion']['for']('dataDowncast')['add'](_0x33c54f=>{_0x33c54f['on']('addMarker:suggestion',(_0x4357e5,_0x36a5e9,_0x5e68be)=>{if(!_0x5e68be['options']['showSuggestionHighlights'])return;const _0xca98a6=_0x36a5e9['item'];if(!_0xca98a6)return;const _0x58eeea=_0x5e68be['mapper']['toViewElement'](_0xca98a6);_0x49ba0c['model']['schema']['isObject'](_0xca98a6)&&_0x58eeea&&!_0x58eeea['getCustomProperty']('widget')&&_0x58eeea['is']('containerElement')&&_0x2210b8(_0x58eeea,_0x5e68be['writer']);},{'priority':'high'});}),_0x49ba0c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4b21c2,_0x42ac81)=>{if(!_0x42ac81['options']['showSuggestionHighlights'])return null;const {type:_0xc39ed6,subType:_0x4732c0}=this['_splitMarkerName'](_0x4b21c2['markerName']);return{'classes':['ck-suggestion-marker',_0x1c6ee4(_0xc39ed6,_0x4732c0)],'priority':0xbb8};}});const _0x561c9f=({showActiveMarkers:_0x5c741d=!0x0,isAttributeSuggestion:_0x145725=!0x1}={})=>(_0x1331d2,_0x42dfe1,_0x55377c)=>{if(!_0x42dfe1['item'])return;const {id:_0x3791af}=this['_splitMarkerName'](_0x42dfe1['markerName']);if(_0x145725){const _0x24e618=this['_suggestions']['get'](_0x3791af),_0x43ff61=this['_getAttributeKey'](_0x24e618);if(!this['_isBlockAttribute'](_0x43ff61))return;}if(_0x42dfe1['item']['is']('selection'))return void _0x55377c['consumable']['consume'](_0x42dfe1['item'],_0x1331d2['name']);const _0x269d71=_0x55377c['mapper']['toViewElement'](_0x42dfe1['item']);if(_0x42dfe1['item']['is']('element')&&_0x49ba0c['model']['schema']['isBlock'](_0x42dfe1['item'])&&!_0x269d71['getCustomProperty']('addHighlight')){_0x55377c['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x269d71),_0x55377c['writer']['setAttribute']('data-suggestion',_0x3791af,_0x269d71),_0x55377c['mapper']['bindElementToMarker'](_0x269d71,_0x42dfe1['markerName']),_0x5c741d&&(this['activeMarkers']['includes'](_0x42dfe1['markerName'])?_0x55377c['writer']['addClass']('ck-suggestion-marker--active',_0x269d71):_0x55377c['writer']['removeClass']('ck-suggestion-marker--active',_0x269d71));for(const _0x7992db of _0x49ba0c['model']['createRangeIn'](_0x42dfe1['item'])['getItems']())_0x55377c['consumable']['consume'](_0x7992db,_0x1331d2['name']);_0x55377c['consumable']['consume'](_0x42dfe1['item'],_0x1331d2['name']);}};_0x49ba0c['conversion']['for']('dataDowncast')['add'](_0x75f2e8=>{_0x75f2e8['on']('addMarker:suggestion:formatBlock',(_0x221cf8,_0x4def58,_0x144983)=>{_0x144983['options']['showSuggestionHighlights']&&_0x561c9f({'showActiveMarkers':!0x1})(_0x221cf8,_0x4def58,_0x144983);},{'priority':'highest'});}),_0x49ba0c['conversion']['for']('dataDowncast')['add'](_0x41449c=>{_0x41449c['on']('addMarker:suggestion:attribute',(_0x3f196b,_0x38411f,_0x13b02e)=>{_0x13b02e['options']['showSuggestionHighlights']&&_0x561c9f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3f196b,_0x38411f,_0x13b02e);},{'priority':'highest'});}),_0x49ba0c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x11bdb7,_0x112246)=>_0x112246['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x11bdb7['substr'](0xb)}}),_0x49ba0c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1204de,{writer:_0x117b4d})=>{let _0x5cfcce='suggestion:'+_0x1204de['getAttribute']('suggestion-type')+':'+_0x1204de['getAttribute']('id');return _0x1204de['getAttribute']('marker-count')&&(_0x5cfcce+=':'+_0x1204de['getAttribute']('marker-count')),_0x117b4d['createElement']('$marker',{'data-name':_0x5cfcce});}}),_0x49ba0c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x49ba0c['conversion']['for']('editingDowncast')['add'](_0x20760d=>{_0x20760d['on']('addMarker:suggestion:formatBlock',_0x561c9f(),{'priority':'high'});}),_0x49ba0c['conversion']['for']('editingDowncast')['add'](_0x247ea8=>{_0x247ea8['on']('addMarker:suggestion:attribute',_0x561c9f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x49ba0c['conversion']['for']('editingDowncast')['add'](_0x2adcff=>{_0x2adcff['on']('removeMarker:suggestion:formatBlock',(_0x4cc064,_0x1a49e3,_0x518f6c)=>{const _0x3c7b4f=_0x518f6c['mapper']['markerNameToElements'](_0x1a49e3['markerName']);if(_0x3c7b4f){for(const _0x131b66 of _0x3c7b4f)_0x131b66['getCustomProperty']('addHighlight')||(_0x518f6c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x131b66),_0x518f6c['writer']['removeAttribute']('data-suggestion',_0x131b66),_0x518f6c['mapper']['unbindElementFromMarkerName'](_0x131b66,_0x1a49e3['markerName']));}},{'priority':'high'});}),_0x49ba0c['conversion']['for']('editingDowncast')['add'](_0x5db882=>{_0x5db882['on']('removeMarker:suggestion:attribute',(_0x11d0a4,_0x197ab5,_0x28f593)=>{const _0x45ed32=_0x28f593['mapper']['markerNameToElements'](_0x197ab5['markerName']);if(!_0x45ed32)return;const {id:_0x58a167}=this['_splitMarkerName'](_0x197ab5['markerName']),_0x58e15d=this['_suggestions']['get'](_0x58a167),_0x191685=this['_getAttributeKey'](_0x58e15d);if(this['_isBlockAttribute'](_0x191685)){for(const _0x1a24e8 of _0x45ed32)_0x1a24e8['getCustomProperty']('addHighlight')||(_0x28f593['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1a24e8),_0x28f593['writer']['removeAttribute']('data-suggestion',_0x1a24e8),_0x28f593['mapper']['unbindElementFromMarkerName'](_0x1a24e8,_0x197ab5['markerName']));}},{'priority':'high'});}),_0x49ba0c['model']['document']['registerPostFixer'](_0x5720f5=>{let _0x2e8afc=!0x1;const _0x1719fb=Array['from'](_0x49ba0c['model']['document']['differ']['getChangedMarkers']()),_0x206a3f=new Set();for(const {name:_0x393833,data:_0x44c4cf}of _0x1719fb){const {group:_0x3fb69f,type:_0x1dffff,subType:_0xb120d9,id:_0x2eb092}=this['_splitMarkerName'](_0x393833);if('suggestion'!==_0x3fb69f)continue;const _0x247eef=this['_suggestions']['get'](_0x2eb092);if(null!=_0x44c4cf['newRange']){'formatInline'==_0x1dffff&&(_0x2e8afc=_0x2e8afc||Ut(_0x44c4cf['newRange'],_0x393833,_0x5720f5,_0x49ba0c['model']['schema']));const _0x3de8c9='attribute'==_0x1dffff&&this['_isBlockAttribute'](_0xb120d9['split']('|')[0x0]);if(_0x44c4cf['newRange']['isCollapsed']||'$graveyard'==_0x44c4cf['newRange']['root']['rootName']||'formatBlock'==_0x1dffff&&!Ft(_0x44c4cf['newRange'])||_0x3de8c9&&!Ft(_0x44c4cf['newRange'])||'deletion'==_0x1dffff&&!(!Vt(_0xdab107=_0x44c4cf['newRange'])&&!function(_0x22e448){return _0x22e448['start']['parent']==_0x22e448['end']['nodeBefore']&&_0x22e448['start']['isAtEnd'];}(_0xdab107)))_0x5720f5['removeMarker'](_0x393833),_0x2e8afc=!0x0;else{if(!_0x247eef||!_0x247eef['isInContent'])continue;if(_0x44c4cf['newRange']&&_0x44c4cf['oldRange']&&_0x44c4cf['newRange']['isEqual'](_0x44c4cf['oldRange']))continue;_0x206a3f['add'](_0x247eef);}}}var _0xdab107;return _0x206a3f['size']>0x0&&(_0x2e8afc=!!this['_joinWithAdjacentSuggestions'](_0x206a3f)||_0x2e8afc),_0x2e8afc;}),_0x49ba0c['model']['document']['registerPostFixer'](_0x402231=>{let _0x65bbbd=!0x1;for(const _0x501ba4 of _0x49ba0c['model']['document']['differ']['getChanges']())if('insert'==_0x501ba4['type'])for(const _0x30ccdb of this['_suggestions']['values']()){if(_0x30ccdb['isMultiRange']||!_0x30ccdb['isInContent'])continue;const _0x34c5ce='formatBlock'==_0x30ccdb['type'],_0x3d67b0=this['_getAttributeKey'](_0x30ccdb),_0x226135=_0x3d67b0&&this['_isBlockAttribute'](_0x3d67b0);if(!_0x34c5ce&&!_0x226135)continue;const _0x1dc052=_0x30ccdb['getFirstRange']();if(_0x1dc052['start']['parent']!=_0x1dc052['end']['parent']&&!_0x1dc052['end']['isAtEnd']){const _0x40c494=_0x49ba0c['model']['createPositionAt'](_0x1dc052['start']['nodeAfter'],'end'),_0x5e7a46=_0x49ba0c['model']['createRange'](_0x1dc052['start'],_0x40c494);_0x402231['updateMarker'](_0x30ccdb['getFirstMarker'](),{'range':_0x5e7a46}),_0x65bbbd=!0x0;}}return _0x65bbbd;}),_0x49ba0c['model']['document']['registerPostFixer'](_0x4cd2be=>this['_processAttributeChanges'](_0x4cd2be)),_0x49ba0c['model']['document']['registerPostFixer'](_0x23a43e=>!_0x23a43e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x23a43e)),_0x49ba0c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x49ba0c['model']['document']['on']('change:data',(_0x309969,_0x5510ac)=>{if(!_0x5510ac['isLocal']||_0x5510ac['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x582dc4=_0x49ba0c['model']['document']['differ']['getChanges']();if(0x0==_0x582dc4['length'])return;const _0x1e52ae=[],_0x45a704=_0x582dc4['filter'](_0x5935f7=>'attribute'==_0x5935f7['type']),_0x296f92=_0x582dc4['filter'](_0xa00bf7=>'insert'==_0xa00bf7['type']&&'$text'!=_0xa00bf7['name']);for(const _0x5e5643 of _0x45a704)this['_isRegisteredAttribute'](_0x5e5643['attributeKey'])&&_0x1e52ae['push']({'key':_0x5e5643['attributeKey'],'newValue':_0x5e5643['attributeNewValue'],'oldValue':_0x5e5643['attributeOldValue'],'range':Pt(_0x5e5643['range'],_0x49ba0c['model'])});for(const _0x47b409 of _0x296f92){if('rename'!=_0x47b409['action']&&'refresh'!=_0x47b409['action'])continue;const _0x25711b=Lt(_0x47b409['position']['nodeAfter'],_0x49ba0c['model']),_0x51dedc=_0x47b409['before'];'rename'==_0x47b409['action']&&_0x1e52ae['push']({'key':m,'newValue':_0x47b409['name'],'oldValue':_0x51dedc['name'],'range':_0x25711b});for(const [_0xce057e,_0x132d74]of _0x51dedc['attributes']){if(!this['_isRegisteredAttribute'](_0xce057e))continue;const _0x281cf8=_0x47b409['attributes']['get'](_0xce057e);_0x132d74!==_0x281cf8&&_0x1e52ae['push']({'key':_0xce057e,'newValue':_0x281cf8,'oldValue':_0x132d74,'range':_0x25711b});}for(const [_0x23725f,_0x4ecb12]of _0x47b409['attributes'])this['_isRegisteredAttribute'](_0x23725f)&&(_0x51dedc['attributes']['has'](_0x23725f)||_0x1e52ae['push']({'key':_0x23725f,'newValue':_0x4ecb12,'oldValue':null,'range':_0x25711b}));}0x0!=_0x1e52ae['length']&&_0x49ba0c['model']['enqueueChange'](_0x5510ac,_0x57b73a=>{const _0x196bbb=_0x71cbf7();for(const {range:_0x22220e,key:_0x2404b1,oldValue:_0x4b03e5,newValue:_0x1a1332}of _0x1e52ae)this['markAttributeChange'](_0x22220e,_0x2404b1,_0x4b03e5,_0x1a1332,{'groupId':_0x196bbb});this['_reduceExistingSuggestions'](_0x57b73a,_0x1e52ae);});},{'priority':'lowest'}),_0x49ba0c['model']['markers']['on']('update:suggestion',(_0x131fb3,_0x542d96,_0x3cdeaf)=>{if(null==_0x3cdeaf){const {id:_0x5b87ea}=this['_splitMarkerName'](_0x542d96['name']),_0x5a9208=this['_suggestions']['get'](_0x5b87ea);_0x5a9208&&_0x5a9208['addMarkerName'](_0x542d96['name']);}}),_0x49ba0c['model']['document']['on']('change:data',()=>{const _0x9a0825=Array['from'](_0x49ba0c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x90b395=>'suggestion'===this['_splitMarkerName'](_0x90b395['name'])['group']);if(0x0===_0x9a0825['length'])return;_0x9a0825['sort']((_0x158286,_0x1f8437)=>{const _0x1d0f44=_0x158286['data']['oldRange'],_0x33d098=_0x1f8437['data']['oldRange'];return null===_0x1d0f44&&null===_0x33d098?0x0:null===_0x1d0f44&&null!==_0x33d098?-0x1:null!==_0x1d0f44&&null===_0x33d098?0x1:_0x1d0f44['start']['isBefore'](_0x33d098['start'])?-0x1:0x1;});const _0xe541dc=new Set(),_0x457a55=new Set();for(const {name:_0xdce39b,data:_0x2fccbc}of _0x9a0825){const {id:_0x5f4fb4}=this['_splitMarkerName'](_0xdce39b);if(null===_0x2fccbc['oldRange']){const _0x1ad264=this['_handleNewSuggestionMarker'](_0xdce39b);_0x457a55['add'](_0x1ad264);}else{const _0x4e3f1e=this['_suggestions']['get'](_0x5f4fb4);null!==_0x2fccbc['newRange']||_0x4e3f1e['isInContent']?(_0xe541dc['add'](_0x4e3f1e['head']),_0x457a55['add'](_0x4e3f1e)):this['_removeSuggestion'](_0x4e3f1e);}}_0x457a55['size']>0x0&&this['_refreshSuggestionsChain'](_0x457a55);for(const _0x2af357 of _0xe541dc)this['fire']('suggestionChanged',_0x2af357);}),_0x49ba0c['model']['on']('applyOperation',(_0x2d52dc,_0x51cd0c)=>{const _0x364236=_0x51cd0c[0x0];if(!this['_suggestions']['size'])return;if(!_0x364236['isDocumentOperation'])return;if(_0x364236['batch']['isUndo']||!_0x364236['batch']['isLocal'])return;let _0x33e4c6,_0x25d7a1;switch(_0x364236['type']){case'insert':_0x33e4c6=_0x49ba0c['model']['createPositionAt'](_0x364236['position']),_0x25d7a1=_0x33e4c6['getShiftedBy'](_0x364236['howMany']);break;case'split':_0x33e4c6=_0x49ba0c['model']['createPositionAt'](_0x364236['splitPosition']),_0x25d7a1=_0x49ba0c['model']['createPositionAt'](_0x364236['moveTargetPosition']);break;case'move':_0x33e4c6=_0x49ba0c['model']['createPositionAt'](_0x364236['targetPosition']),_0x25d7a1=_0x33e4c6['getShiftedBy'](_0x364236['howMany']);break;default:return;}const _0x14a438=_0x49ba0c['model']['createRange'](_0x33e4c6,_0x25d7a1);_0x49ba0c['model']['change'](()=>{for(const {suggestion:_0x47bc6e,meta:_0x1f48b0}of this['_findSuggestions'](_0x14a438)){if(_0x47bc6e['isMultiRange'])continue;if('formatInline'==_0x47bc6e['type'])continue;const _0x269e9d=this['_getAttributeKey'](_0x47bc6e);if(_0x269e9d&&this['_isBlockAttribute'](_0x269e9d)&&'split'!=_0x364236['type'])continue;const _0x659396=_0x47bc6e['data']&&_0x47bc6e['data']['multipleBlocks'];('formatBlock'!=_0x47bc6e['type']||'split'==_0x364236['type']&&!_0x659396)&&(_0x1f48b0['containsRangeInObject']||'insertion'==_0x47bc6e['type']&&_0x1f48b0['isOwn']||_0x47bc6e['getFirstRange']()['containsRange'](_0x14a438)&&this['_breakSuggestionMarker'](_0x47bc6e,_0x33e4c6,_0x25d7a1));}});},{'priority':'lowest'}),_0x49ba0c['model']['on']('deleteContent',(_0x5a1266,_0x2bb12e)=>{const _0x506b5d=_0x2bb12e[0x0],_0xfb8132=_0x2bb12e[0x1];if(_0xfb8132&&_0xfb8132['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x506b5d['isCollapsed'])return;const _0x9b8e08=_0x49ba0c['model']['schema'],{start:_0x5901a9,end:_0x1d0eb4}=_0x506b5d['getFirstRange'](),_0x2e0ba1=_0x5901a9['nodeAfter']&&_0x9b8e08['isLimit'](_0x5901a9['nodeAfter'])?null:_0x9b8e08['getNearestSelectionRange'](_0x5901a9,'forward'),_0x14a2ee=_0x1d0eb4['nodeBefore']&&_0x9b8e08['isLimit'](_0x1d0eb4['nodeBefore'])?null:_0x9b8e08['getNearestSelectionRange'](_0x1d0eb4,'backward'),_0x2aef25=_0x49ba0c['model']['createRange'](_0x2e0ba1?_0x2e0ba1['start']:_0x5901a9,_0x14a2ee?_0x14a2ee['end']:_0x1d0eb4);_0x49ba0c['model']['change'](_0x3b3e26=>{this['markDeletion'](_0x2aef25);const _0x41d3fc=_0x49ba0c['model']['schema']['getNearestSelectionRange'](_0x2aef25['start']);_0x506b5d['is']('documentSelection')?_0x3b3e26['setSelection'](_0x41d3fc):_0x506b5d['setTo'](_0x41d3fc);}),_0x5a1266['stop']();},{'priority':_0x1f0d4e['normal']+0xa}),_0x49ba0c['model']['on']('insertContent',(_0x272be9,_0xa0519d)=>{const _0x163ed6=_0xa0519d[_0xa0519d['length']-0x1];_0x163ed6&&_0x163ed6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x49ba0c['model']['change'](()=>{let _0x17bfb6=_0x49ba0c['model']['insertContent'](_0xa0519d[0x0],_0xa0519d[0x1],_0xa0519d[0x2],{'forceDefaultExecution':!0x0});if(!_0x17bfb6)return;_0x272be9['return']=_0x17bfb6['clone']();const _0x3e6390=_0x17bfb6['end']['nodeBefore'],_0x3e8062=_0x49ba0c['model']['schema'];_0x3e6390&&_0x3e8062['isBlock'](_0x3e6390)&&!_0x3e8062['isObject'](_0x3e6390)&&(_0x17bfb6=_0x49ba0c['model']['createRange'](_0x17bfb6['start'],_0x49ba0c['model']['createPositionAt'](_0x3e6390,'end'))),this['markInsertion'](_0x17bfb6);}),_0x272be9['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x392e83=new x(_0x49ba0c,this['_suggestions']);_0x49ba0c['commands']['add']('acceptSuggestion',_0x392e83),this['enableCommand']('acceptSuggestion');const _0x4112f6=new R(_0x49ba0c,this['_suggestions']);_0x49ba0c['commands']['add']('discardSuggestion',_0x4112f6),this['enableCommand']('discardSuggestion'),_0x49ba0c['commands']['add']('acceptAllSuggestions',new E(_0x49ba0c,_0x392e83,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x49ba0c['commands']['add']('discardAllSuggestions',new E(_0x49ba0c,_0x4112f6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x49ba0c['commands']['add']('acceptSelectedSuggestions',new O(_0x49ba0c,_0x392e83,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x49ba0c['commands']['add']('discardSelectedSuggestions',new O(_0x49ba0c,_0x4112f6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x519b1b=_0x49ba0c['plugins']['get']('CommentsRepository');this['listenTo'](_0x519b1b,'addComment',(_0xf7af46,{threadId:_0x1b03e9})=>{const _0x816dba=this['_suggestions']['get'](_0x1b03e9);_0x816dba&&_0x816dba['commentThread']&&0x1===_0x816dba['commentThread']['length']&&this['_updateSuggestionData'](_0x1b03e9,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x519b1b,'removeComment',(_0x2685b5,{threadId:_0x33f1af})=>{const _0x54c78f=this['_suggestions']['get'](_0x33f1af);_0x54c78f&&_0x54c78f['commentThread']&&!_0x54c78f['commentThread']['length']&&this['_updateSuggestionData'](_0x33f1af,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x15796a){if(this['_adapter'])throw new _0x2911cb('track-changes-adapter-already-set',this);this['_adapter']=_0x15796a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x52e9ab=!0x1,toJSON:_0x26dacb=!0x1}={}){const _0x555051=[];for(const _0x229c8f of this['_suggestions']['values']())_0x52e9ab&&!_0x229c8f['isInContent']||_0x555051['push'](_0x229c8f);return _0x26dacb?_0x555051['map'](_0x54edfa=>_0x54edfa['toJSON']()):_0x555051;}['getSuggestion'](_0x33c31b){const _0x139cce=this['_suggestions']['get'](_0x33c31b);if(!_0x139cce)throw new _0x2911cb('track-changes-suggestion-not-found',this);return _0x139cce;}['hasSuggestion'](_0x5884e6){return this['_suggestions']['has'](_0x5884e6);}['addSuggestionData'](_0x16b947){const {authorId:_0x573071,id:_0x35eac0,attributes:_0x584594}=_0x16b947,[_0x49f325,_0x428251]=_0x16b947['type']['split'](':'),_0xd5a666=this['_suggestions']['get'](_0x35eac0)||this['_createSuggestion'](_0x49f325,_0x428251,_0x35eac0,_0x573071,_0x584594);if(this['_addThreadToSuggestion'](_0xd5a666),this['_checkSuggestionCorrectness'](_0xd5a666,_0x49f325,_0x428251||null,_0x573071),_0xd5a666['createdAt']=_0x16b947['createdAt'],_0xd5a666['_isDataLoaded']=!0x0,_0x584594&&_0x584594['@external']){const _0x45fe6e=_0x584594['@external'],_0x1d2fb0=this['_getExternalAuthor'](_0x45fe6e['authorName']);_0xd5a666['authoredAt']=_0x45fe6e['createdAt'],_0xd5a666['author']=_0x1d2fb0,_0xd5a666['isExternal']=!0x0;}else _0xd5a666['authoredAt']=_0x16b947['createdAt'];switch(_0x16b947['data']&&(_0xd5a666['data']=_0x16b947['data']),_0x16b947['attributes']&&(_0xd5a666['attributes']=_0x16b947['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xd5a666['_saved']=!0x0),this['_suggestionState']['get'](_0xd5a666)){case'notReady':this['_suggestionState']['set'](_0xd5a666,'dataReady');break;case'markerReady':_0xd5a666['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xd5a666])),this['_refreshSuggestionsChain'](new Set([_0xd5a666])),this['_suggestionState']['set'](_0xd5a666,'ready'),this['fire']('suggestionLoaded',_0xd5a666)):this['_suggestionState']['set'](_0xd5a666,'removed');}return _0xd5a666;}['acceptSuggestion'](_0x5772f9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xca6f23 of _0x5772f9['getAllAdjacentSuggestions']())_0xca6f23['accept']();});});}['discardSuggestion'](_0x6ed3cd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5634bd of _0x6ed3cd['getAllAdjacentSuggestions']())_0x5634bd['discard']();});});}['enableCommand'](_0x23cb20,_0x45d1f5){const _0x3fe7bb=this['editor']['commands']['get'](_0x23cb20);if(!_0x3fe7bb)throw new _0x2911cb('track-changes-command-not-found',this,{'commandName':_0x23cb20});if(this['_enabledCommands']['has'](_0x3fe7bb))throw new _0x2911cb('track-changes-enable-command-twice',this,{'commandName':_0x23cb20});this['_enabledCommands']['add'](_0x3fe7bb),_0x45d1f5&&_0x3fe7bb['on']('execute',(_0x23dbe0,_0x349dd0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x349dd0['length']>0x0&&_0x349dd0[_0x349dd0['length']-0x1]&&_0x349dd0[_0x349dd0['length']-0x1]['forceDefaultExecution']?_0x349dd0['pop']():(_0x23dbe0['return']=_0x45d1f5((..._0x5c6656)=>_0x3fe7bb['execute'](..._0x5c6656,{'forceDefaultExecution':!0x0}),..._0x349dd0),_0x23dbe0['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x42ad88){let _0x31872b,_0x2d78b5;const _0x1dc169=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x31872b=_0x42ad88();}catch(_0x439306){_0x2d78b5=_0x439306;}return _0x1dc169||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2d78b5&&_0x2911cb['rethrowUnexpectedError'](_0x2d78b5,this),_0x31872b;}['markInsertion'](_0x456a5a,_0x2fc5d7=null,_0x33d084={}){if(_0x456a5a['isCollapsed'])return null;const _0x496e8e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4d6f98,meta:_0x38120e}of this['_findSuggestions'](_0x456a5a,'insertion'))if(_0x38120e['isOwn']){if(!_0x38120e['isNextTo']){if(_0x38120e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4d6f98,_0x33d084))continue;return _0x4d6f98;}if(qt(_0x4d6f98,_0x33d084))return _0x4d6f98;this['_breakSuggestionMarker'](_0x4d6f98,_0x456a5a['start'],_0x456a5a['end']);break;}if(_0x2fc5d7==_0x4d6f98['subType']&&qt(_0x4d6f98,_0x33d084)){const _0xad4912=_0x4d6f98['getFirstRange']();return _0xad4912['start']['isEqual'](_0x456a5a['end'])?this['_setSuggestionRange'](_0x4d6f98,this['_model']['createRange'](_0x456a5a['start'],_0xad4912['end'])):this['_setSuggestionRange'](_0x4d6f98,this['_model']['createRange'](_0xad4912['start'],_0x456a5a['end'])),_0x4d6f98;}}const _0x101800=_0x71cbf7(),_0x2950ac=_0x496e8e['id'],_0x1d9920=_0x2fc5d7?'insertion:'+_0x2fc5d7:'insertion',_0x54c309=this['_setSuggestionData']({'id':_0x101800,'type':_0x1d9920,'createdAt':new Date(),'authorId':_0x2950ac,'attributes':_0x33d084});return this['_addSuggestionMarker'](_0x1d9920,_0x101800,_0x2950ac,_0x456a5a),_0x54c309;}['markMultiRangeInsertion'](_0x3c6d65,_0x5eef20='multi',_0x44cb17={}){const _0x1fdcc7=this['editor']['plugins']['get']('Users')['me'],_0x4c16be=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5eef20,'join');for(const _0x2d2f25 of this['getSuggestions']())if(_0x2d2f25['author']['id']==_0x1fdcc7['id']&&'insertion'==_0x2d2f25['type']&&_0x2d2f25['subType']==_0x5eef20&&qt(_0x2d2f25,_0x44cb17)&&(_0x4c16be(_0x2d2f25['getRanges'](),_0x3c6d65)||_0x4c16be(_0x3c6d65,_0x2d2f25['getRanges']()))){for(const _0x9da2f3 of _0x3c6d65)_0x2d2f25['addRange'](_0x9da2f3);return _0x2d2f25;}for(const {suggestion:_0x238dac,meta:_0x506ef}of this['_findSuggestions'](_0x3c6d65,'insertion')){if(!_0x506ef['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x506ef['containsRangeInObject'])continue;if(!qt(_0x238dac,_0x44cb17))continue;let _0xdb1cff=!0x0;for(const _0x20cf05 of _0x238dac['getRanges']())for(const _0x2698f3 of _0x3c6d65)if(!_0x20cf05['containsRange'](_0x2698f3)){_0xdb1cff=!0x1;break;}if(_0xdb1cff)return _0x238dac;}const _0x4ba1ac=_0x71cbf7(),_0x14a021=_0x1fdcc7['id'],_0x1b7bed='insertion:'+_0x5eef20,_0x5f2064=this['_setSuggestionData']({'id':_0x4ba1ac,'type':_0x1b7bed,'createdAt':new Date(),'authorId':_0x14a021,'attributes':_0x44cb17});for(const _0x386292 of _0x3c6d65)this['_addSuggestionMarker'](_0x1b7bed,_0x4ba1ac,_0x14a021,_0x386292,u['getMultiRangeId']());return _0x5f2064;}['markInlineFormat'](_0x39e3a9,_0x2c87fc,_0x553ca4=null,_0x239437={}){if(_0x553ca4=_0x553ca4||Gt(_0x2c87fc),_0x39e3a9['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5796de=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x553ca4,'accept');return this['forceDefaultExecution'](()=>_0x5796de([_0x39e3a9],_0x2c87fc,_0x239437)),null;}const _0xbb950c=this['editor']['plugins']['get']('Users')['me'],_0x34c80d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x168b9a,meta:_0xd8e764}of this['_findSuggestions'](_0x39e3a9,'insertion'))_0xd8e764['isOwn']&&!_0xd8e764['isInsideObject']&&_0x34c80d['push'](..._0x168b9a['getRanges']());}const _0x4d12b4=function(_0x3e2785,_0x59b152){const _0x4ef06b=[];for(const _0x3c55af of _0x59b152){const _0x30d7cd=_0x3e2785['getIntersection'](_0x3c55af);_0x30d7cd&&_0x4ef06b['push'](_0x30d7cd);}return _0x4ef06b;}(_0x39e3a9,_0x34c80d),_0x2edf31=function(_0x3e73fd,_0x23ef56){const _0x153486=[_0x3e73fd];for(const _0x47edfb of _0x23ef56){let _0x21ba21=0x0;for(;_0x21ba21<_0x153486['length'];){const _0x10d06d=_0x153486[_0x21ba21]['getDifference'](_0x47edfb);_0x153486['splice'](_0x21ba21,0x1,..._0x10d06d),_0x21ba21+=_0x10d06d['length'];}}return _0x153486;}(_0x39e3a9,_0x34c80d);_0x4d12b4['length']&&this['_model']['change'](()=>{for(const _0x522a63 of _0x4d12b4){const _0x54cb67=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x553ca4,'accept');this['forceDefaultExecution'](()=>_0x54cb67([_0x522a63],_0x2c87fc,_0x239437));}});for(const _0x3c4aad of _0x2edf31){let _0x574286=null,_0x313382=_0x3c4aad['start'],_0x56fde8=_0x3c4aad['end'];for(const {suggestion:_0x55eb08,meta:_0x2cf5d2}of this['_findSuggestions'](_0x3c4aad,'formatInline')){if(!_0x2cf5d2['isOwn'])continue;if(_0x55eb08['subType']!=_0x553ca4)continue;if(!qt(_0x55eb08,_0x239437))continue;const _0x4a83ba=_0x55eb08['getFirstRange']();if(_0x4a83ba['containsRange'](_0x3c4aad,!0x0))return null;_0x313382=_0x313382['isBefore'](_0x4a83ba['start'])?_0x313382:_0x4a83ba['start'],_0x56fde8=_0x56fde8['isAfter'](_0x4a83ba['end'])?_0x56fde8:_0x4a83ba['end'],_0x574286?_0x4a83ba['start']['isBefore'](_0x574286['getFirstRange']()['start'])?(_0x574286['removeMarkers'](),_0x574286=_0x55eb08):_0x55eb08['removeMarkers']():_0x574286=_0x55eb08;}const _0x1884b4=this['_model']['createRange'](_0x313382,_0x56fde8);if(_0x574286)this['_setSuggestionRange'](_0x574286,_0x1884b4);else{const _0xb4680c=_0x71cbf7(),_0x348253=_0xbb950c['id'];this['_setSuggestionData']({'id':_0xb4680c,'type':'formatInline:'+_0x553ca4,'data':_0x2c87fc,'createdAt':new Date(),'authorId':_0x348253,'attributes':_0x239437}),this['_addSuggestionMarker']('formatInline:'+_0x553ca4,_0xb4680c,_0x348253,_0x1884b4);}}return null;}['markBlockFormat'](_0x483439,_0x5692ec,_0x49943d=[],_0x4fa56e=null,_0x20f1be={}){_0x5692ec['formatGroupId']||(_0x5692ec['formatGroupId']=_0x5692ec['commandName']),_0x5692ec['multipleBlocks']=_0x483439['is']('range'),_0x4fa56e=_0x4fa56e||Gt(_0x5692ec);const _0x5dc31f=_0x49943d['map'](_0x419274=>Lt(_0x419274,this['_model'])),_0x44af5b=_0x483439['is']('range')?_0x483439:Lt(_0x483439,this['_model']);if('never'===this['_trackFormatChanges']){const _0x54d8cf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fa56e,'accept');return this['forceDefaultExecution'](()=>_0x54d8cf([_0x44af5b],_0x5692ec,_0x20f1be)),null;}_0x5dc31f['push'](_0x44af5b);let _0x5da77e=!0x0;for(const _0x50956f of _0x5dc31f)if(!this['_rangeIsInLocalUserInsertion'](_0x50956f)){_0x5da77e=!0x1;break;}if(_0x5da77e&&'always'!==this['_trackFormatChanges']){const _0x37f5fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4fa56e,'accept');return this['forceDefaultExecution'](()=>_0x37f5fd([_0x44af5b],_0x5692ec,_0x20f1be)),null;}let _0x67f9d3=null,_0x5605f1=_0x44af5b['start'],_0x4c833b=_0x44af5b['end'];for(const {suggestion:_0xf6840f,meta:_0x3caff9}of this['_findSuggestions'](_0x44af5b,'formatBlock')){if(!_0x3caff9['isOwn'])continue;if(_0x3caff9['isNextTo']||_0x3caff9['containsRangeInObject']||_0x3caff9['isInsideObject'])continue;if(_0xf6840f['data']['formatGroupId']!=_0x5692ec['formatGroupId'])continue;if(!qt(_0xf6840f,_0x20f1be))continue;const _0x331e39=_0xf6840f['getFirstRange']();if(_0xf6840f['subType']==_0x4fa56e){if(_0x331e39['containsRange'](_0x44af5b,!0x0))return null;_0x5605f1=_0x5605f1['isBefore'](_0x331e39['start'])?_0x5605f1:_0x331e39['start'],_0x4c833b=_0x4c833b['isAfter'](_0x331e39['end'])?_0x4c833b:_0x331e39['end'],_0x67f9d3?_0x331e39['start']['isBefore'](_0x67f9d3['getFirstRange']()['start'])?(_0x67f9d3['removeMarkers'](),_0x67f9d3=_0xf6840f):_0xf6840f['removeMarkers']():_0x67f9d3=_0xf6840f;}else{const _0xb96b7=_0x44af5b['getIntersection'](_0x331e39);this['_cutOutSuggestionMarker'](_0xf6840f,_0xb96b7);}}const _0x437f4e=this['editor']['plugins']['get']('Users')['me'],_0x87164f=_0x71cbf7(),_0x423125=_0x437f4e['id'];if(_0x67f9d3)return this['_setSuggestionRange'](_0x67f9d3,this['_model']['createRange'](_0x5605f1,_0x4c833b)),_0x67f9d3;{const _0x574dd4=this['_setSuggestionData']({'id':_0x87164f,'type':'formatBlock:'+_0x4fa56e,'data':_0x5692ec,'createdAt':new Date(),'authorId':_0x423125,'attributes':_0x20f1be});return this['_addSuggestionMarker']('formatBlock:'+_0x4fa56e,_0x87164f,_0x423125,this['_model']['createRange'](_0x5605f1,_0x4c833b)),_0x574dd4;}}['markMultiRangeBlockFormat'](_0x2e98f5,_0xbb17c6,_0x2b7dd3=[],_0x329b74=null,_0x41db10={}){_0xbb17c6['formatGroupId']||(_0xbb17c6['formatGroupId']=_0xbb17c6['commandName']);const _0x3bd920=_0x2e98f5[0x0];_0xbb17c6['multipleBlocks']=_0x3bd920['is']('range'),_0x329b74=_0x329b74||Gt(_0xbb17c6);const _0x237cf6=_0x2b7dd3['map'](_0x548e52=>Lt(_0x548e52,this['_model'])),_0x31a5c2=_0x3bd920['is']('range')?_0x2e98f5:_0x2e98f5['map'](_0x53f88b=>Lt(_0x53f88b,this['_model']));if('never'===this['_trackFormatChanges']){const _0x5c99ca=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x329b74,'accept');return this['forceDefaultExecution'](()=>_0x5c99ca(_0x31a5c2,_0xbb17c6,_0x41db10)),null;}_0x237cf6['push'](..._0x31a5c2);let _0x66e7c9=!0x0;for(const _0x4b2502 of _0x237cf6)if(!this['_rangeIsInLocalUserInsertion'](_0x4b2502)){_0x66e7c9=!0x1;break;}if(_0x66e7c9&&'always'!==this['_trackFormatChanges']){const _0x4b26fa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x329b74,'accept');return this['forceDefaultExecution'](()=>_0x4b26fa(_0x31a5c2,_0xbb17c6,_0x41db10)),null;}const _0x42929a=this['editor']['plugins']['get']('Users')['me'];for(const _0x181b33 of this['getSuggestions']()){if(_0x181b33['author']['id']!=_0x42929a['id'])continue;if('formatBlock'!=_0x181b33['type']||_0x181b33['data']['formatGroupId']!=_0xbb17c6['formatGroupId'])continue;if(!qt(_0x181b33,_0x41db10))continue;const _0x46ae72=_0x181b33['subType']==_0x329b74;for(let _0xc48e1f=0x0;_0xc48e1f<_0x31a5c2['length'];_0xc48e1f++){const _0x4eeafc=_0x31a5c2[_0xc48e1f];for(const _0x2dd944 of _0x181b33['getMarkers']()){const _0x3be3a3=_0x2dd944['getRange']();if(_0x4eeafc['isEqual'](_0x3be3a3)){_0x46ae72?(_0x31a5c2['splice'](_0xc48e1f,0x1),_0xc48e1f--):_0x181b33['removeMarker'](_0x2dd944['name']);break;}}}}if(0x0==_0x31a5c2['length'])return null;const _0x201aa8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x329b74,'join');for(const _0x1fefae of this['getSuggestions']())if(_0x1fefae['author']['id']==_0x42929a['id']&&'formatBlock'==_0x1fefae['type']&&_0x1fefae['data']['formatGroupId']==_0xbb17c6['formatGroupId']&&_0x1fefae['subType']==_0x329b74&&qt(_0x1fefae,_0x41db10)&&(_0x201aa8(_0x1fefae['getRanges'](),_0x31a5c2)||_0x201aa8(_0x31a5c2,_0x1fefae['getRanges']()))){for(const _0x4feff0 of _0x31a5c2)_0x1fefae['addRange'](_0x4feff0);return _0x1fefae;}const _0x3f3ed2=_0x71cbf7(),_0x3ac446=_0x42929a['id'],_0x33ba4a='formatBlock:'+_0x329b74,_0x101fea=this['_setSuggestionData']({'id':_0x3f3ed2,'type':_0x33ba4a,'data':_0xbb17c6,'createdAt':new Date(),'authorId':_0x3ac446,'attributes':_0x41db10});for(const _0x278d88 of _0x31a5c2)this['_addSuggestionMarker'](_0x33ba4a,_0x3f3ed2,_0x3ac446,_0x278d88,u['getMultiRangeId']());return _0x101fea;}['markDeletion'](_0x1d3a91,_0x495947=null,_0xc7f654={}){if(_0x1d3a91['isCollapsed'])return null;const _0x911d2e=this['editor']['plugins']['get']('Users')['me'],_0x4c1f67=new _0x5116e6(_0x1d3a91['start'],_0x1d3a91['end']);for(const {suggestion:_0x231344,meta:_0x11b77a}of this['_findSuggestions'](_0x4c1f67,'insertion'))if(_0x11b77a['isOwn']&&!_0x11b77a['isNextTo']){if(_0x231344['isMultiRange']){const _0x283091=_0x231344['getRanges']()['filter'](_0x111ca7=>'$graveyard'!=_0x111ca7['root']['rootName']);_0x283091['every'](_0x5bb438=>_0x4c1f67['containsRange'](_0x5bb438,!0x0))&&_0x231344['discard']();if(_0x283091['some'](_0xf61c8b=>_0xf61c8b['containsRange'](_0x4c1f67,!0x0))){const _0x2b9bb9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x495947,'accept');return this['forceDefaultExecution'](()=>_0x2b9bb9([_0x4c1f67],null,_0xc7f654)),null;}}else{const _0x1783c8=_0x4c1f67['getIntersection'](_0x231344['getFirstRange']());null!==_0x1783c8&&_0x231344['_onDiscard']([_0x1783c8],null,_0xc7f654);}}if(_0x4c1f67['detach'](),_0x4c1f67['isCollapsed']||'$graveyard'==_0x4c1f67['root']['rootName'])return null;let _0xcf2961=null,_0x31a997=_0x4c1f67['start'],_0x5f37b0=_0x4c1f67['end'];const _0x1e3068=this['_findSuggestions'](_0x4c1f67,'deletion');for(const {suggestion:_0x1bd841,meta:_0xac5c98}of _0x1e3068){const _0x5c7ae0=this['_model']['createRange'](_0x31a997,_0x5f37b0);if(_0xac5c98['isOwn']&&(this['_mergeNestedSuggestions']||!_0xac5c98['containsRangeInObject']&&!_0xac5c98['isInsideObject'])){if(_0x1bd841['isMultiRange']){if(!qt(_0x1bd841,_0xc7f654))continue;let _0x2bd382=!0x0;for(const _0x153c39 of _0x1bd841['getRanges']()){if(_0x153c39['containsRange'](_0x5c7ae0,!0x0))return _0x1bd841;_0x5c7ae0['containsRange'](_0x153c39)||(_0x2bd382=!0x1);}_0x2bd382&&_0x1bd841['discard']();}else{const _0x125ebd=_0x1bd841['getFirstRange']();if(_0x125ebd['containsRange'](_0x5c7ae0,!0x0))return _0x1bd841;if(!qt(_0x1bd841,_0xc7f654)){_0x5c7ae0['containsRange'](_0x125ebd)?_0x1bd841['removeMarkers']():_0x125ebd['containsPosition'](_0x31a997)?_0x31a997=_0x125ebd['end']:_0x125ebd['containsPosition'](_0x5f37b0)&&(_0x5f37b0=_0x125ebd['start']);continue;}_0x31a997=_0x31a997['isBefore'](_0x125ebd['start'])?_0x31a997:_0x125ebd['start'],_0x5f37b0=_0x5f37b0['isAfter'](_0x125ebd['end'])?_0x5f37b0:_0x125ebd['end'],_0xc7f654=Object['assign']({},_0x1bd841['attributes']),_0xcf2961?_0x125ebd['start']['isBefore'](_0xcf2961['getFirstRange']()['start'])?(_0xcf2961['removeMarkers'](),_0xcf2961=_0x1bd841):_0x1bd841['removeMarkers']():_0xcf2961=_0x1bd841;}}}if(_0xcf2961)return this['_setSuggestionRange'](_0xcf2961,this['_model']['createRange'](_0x31a997,_0x5f37b0)),_0xcf2961;{const _0x57b189=_0x71cbf7(),_0x273243=this['_model']['createRange'](_0x31a997,_0x5f37b0),_0xaeab39=_0x911d2e['id'],_0x377d1d=_0x495947?'deletion:'+_0x495947:'deletion',_0x57d08c=this['_setSuggestionData']({'id':_0x57b189,'type':_0x377d1d,'createdAt':new Date(),'authorId':_0xaeab39,'attributes':_0xc7f654});return this['_addSuggestionMarker'](_0x377d1d,_0x57b189,_0xaeab39,_0x273243),_0x57d08c;}}['markMultiRangeDeletion'](_0x4b842c,_0x248258='multi',_0x26a72a={}){const _0x314f41=this['editor']['plugins']['get']('Users')['me'],_0x163775=_0x4b842c['map'](_0x4fccf8=>new _0x5116e6(_0x4fccf8['start'],_0x4fccf8['end'])),_0xf1c78e=new Set();for(const {suggestion:_0x23be78,meta:_0x4d95e0}of this['_findSuggestions'](_0x163775,'insertion'))_0x4d95e0['isOwn']&&!_0x4d95e0['isNextTo']&&_0xf1c78e['add'](_0x23be78);for(const _0x1b9a8b of _0xf1c78e)if(_0x1b9a8b['isMultiRange']){const _0x2d5fc5=_0x1b9a8b['getRanges']();(!_0x1b9a8b['attributes']||!_0x1b9a8b['attributes']['skipNestingCheck'])&&(_0x2d5fc5['every'](_0x40a7b1=>_0x163775['some'](_0x4b52bd=>_0x4b52bd['containsRange'](_0x40a7b1,!0x0)))&&_0x1b9a8b['discard']());if(_0x163775['every'](_0x1df98c=>_0x2d5fc5['some'](_0x3f0a7d=>_0x3f0a7d['containsRange'](_0x1df98c,!0x0)))){const _0x21e461=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x248258,'accept');return this['forceDefaultExecution'](()=>_0x21e461(_0x4b842c,null,_0x26a72a)),null;}}else{const _0x295dc6=_0x1b9a8b['getFirstRange']();_0x163775['some'](_0x3615c4=>_0x3615c4['containsRange'](_0x295dc6,!0x0))&&_0x1b9a8b['discard']();if(_0x163775['every'](_0xb0830b=>_0x295dc6['containsRange'](_0xb0830b,!0x0))){const _0x13584f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x248258,'accept');return this['forceDefaultExecution'](()=>_0x13584f(_0x163775,null,_0x26a72a)),null;}}const _0x2261a5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x248258,'join');let _0x4c40e4=null;for(const _0x26ab2c of this['getSuggestions']())if(_0x26ab2c['author']['id']==_0x314f41['id']&&_0x26ab2c['isInContent']&&'deletion'==_0x26ab2c['type']&&_0x26ab2c['subType']==_0x248258&&qt(_0x26ab2c,_0x26a72a)&&(_0x2261a5(_0x26ab2c['getRanges'](),_0x163775)||_0x2261a5(_0x163775,_0x26ab2c['getRanges']()))){if(_0x4c40e4){if(_0x26ab2c['commentThread']&&_0x26ab2c['commentThread']['length'])continue;for(const _0x16271a of _0x26ab2c['getRanges']())_0x4c40e4['isIntersectingWithRange'](_0x16271a)||_0x4c40e4['addRange'](_0x16271a);_0x26ab2c['removeMarkers']();}else{_0x4c40e4=_0x26ab2c;for(const _0x5bbb84 of _0x163775)_0x26ab2c['isIntersectingWithRange'](_0x5bbb84)||_0x26ab2c['addRange'](_0x5bbb84);}}if(_0x4c40e4)return _0x4c40e4;_0xf1c78e['clear']();for(const {suggestion:_0x49f053,meta:_0x1e6b2a}of this['_findSuggestions'](_0x163775,'deletion'))_0x1e6b2a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1e6b2a['containsRangeInObject']&&!_0x1e6b2a['isInsideObject'])&&qt(_0x49f053,_0x26a72a)&&_0xf1c78e['add'](_0x49f053);for(const _0x3085e8 of _0xf1c78e){const _0xf683c1=_0x3085e8['getRanges']();if(!_0x26a72a||!_0x26a72a['skipNestingCheck']){if(_0x163775['every'](_0x307cd0=>_0xf683c1['some'](_0x5280d4=>_0x5280d4['containsRange'](_0x307cd0,!0x0))))return _0x3085e8;}(!_0x3085e8['attributes']||!_0x3085e8['attributes']['skipNestingCheck'])&&(_0xf683c1['every'](_0x409a8e=>_0x163775['some'](_0x47206c=>_0x47206c['containsRange'](_0x409a8e,!0x0)))&&_0x3085e8['discard']());}const _0x1c8213=_0x71cbf7(),_0x30fd3a=_0x314f41['id'],_0x446e65='deletion:'+_0x248258,_0x26335d=this['_setSuggestionData']({'id':_0x1c8213,'type':_0x446e65,'createdAt':new Date(),'authorId':_0x30fd3a,'attributes':_0x26a72a});for(const _0x2c0d3c of _0x163775)_0x2c0d3c['detach'](),_0x2c0d3c['isCollapsed']||'$graveyard'==_0x2c0d3c['root']['rootName']||this['_addSuggestionMarker'](_0x446e65,_0x1c8213,_0x30fd3a,_0x2c0d3c,u['getMultiRangeId']());return _0x26335d;}['markAttributeChange'](_0x218f31,_0x1186f9,_0x4a41d4,_0x51cefc,_0x367c8b){if(_0x218f31['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2f38b5=this['editor']['plugins']['get']('Users')['me']['id'],_0x45900f=Array['from'](this['_suggestions']['values']())['filter'](_0x3c50c4=>'attribute'==_0x3c50c4['type']&&_0x3c50c4['data']['key']==_0x1186f9&&_0x3c50c4['isIntersectingWithRange'](_0x218f31));if('default'===this['_trackFormatChanges']){const _0x4600fa=this['_findSuggestions'](_0x218f31,'insertion')['filter'](({meta:_0x31d8d6})=>_0x31d8d6['isOwn']&&!_0x31d8d6['isInsideObject']&&!_0x31d8d6['isNextTo'])['map'](({suggestion:_0x392097})=>_0x392097);_0x45900f['unshift'](..._0x4600fa);}const _0x5443f5=new Map([[_0x218f31,_0x4a41d4]]);for(const _0x851490 of _0x45900f){const _0x1927e3='attribute'==_0x851490['type']?_0x851490['data']['oldValue']:void 0x0,_0x2e46f0=_0x851490['getFirstRange'](),_0x3af613=Array['from'](_0x5443f5['keys']())['find'](_0x31586d=>_0x31586d['isIntersecting'](_0x2e46f0));if(!_0x3af613)continue;const _0x596bab=_0x3af613['getDifference'](_0x2e46f0);this['_isBlockAttribute'](_0x1186f9)&&'insertion'==_0x851490['type']&&0x0!=_0x596bab['length']||(_0x5443f5['delete'](_0x3af613),_0x596bab['forEach'](_0x7a3fea=>{_0x5443f5['set'](_0x7a3fea,_0x4a41d4);}),'insertion'!=_0x851490['type']&&_0x1927e3!=_0x51cefc&&_0x5443f5['set'](_0x3af613['getIntersection'](_0x2e46f0),_0x1927e3));}const _0x3e992c=[];for(const [_0x5882a7,_0x286377]of _0x5443f5){const _0x3e14c0=_0x71cbf7(),_0x5e6e85={'key':_0x1186f9,'oldValue':_0x286377,'newValue':_0x51cefc};_0x1186f9['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':_0x1186f9});const _0x224233=('attribute:'+(_0x1186f9+'|'+Gt({'newValue':_0x51cefc})))['substring'](0x0,0x3c),_0x511f84=this['_setSuggestionData']({'id':_0x3e14c0,'type':_0x224233,'data':_0x5e6e85,'createdAt':new Date(),'authorId':_0x2f38b5,'attributes':_0x367c8b});_0x3e992c['push'](_0x511f84),this['_addSuggestionMarker'](_0x224233,_0x3e14c0,_0x2f38b5,_0x5882a7);}return _0x3e992c;}['enableDefaultAttributesIntegration'](_0x3f570d){this['enableCommand'](_0x3f570d,(_0x428e95,..._0x45149f)=>{this['_recordAttributeChanges'](()=>{_0x428e95(..._0x45149f);});});}['registerBlockAttribute'](_0xa75846){this['_blockAttributeKeys']['add'](_0xa75846);}['registerInlineAttribute'](_0x5ca783){this['_inlineAttributeKeys']['add'](_0x5ca783);}['_getAttributeKey'](_0x2c8d3a){return'attribute'==_0x2c8d3a['type']?_0x2c8d3a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5bfb24,_0x40961d){const _0x49a54c=_0x5bfb24['getFirstMarker']();this['_model']['change'](_0x1af7af=>{_0x1af7af['updateMarker'](_0x49a54c,{'range':_0x40961d});});}['_addThreadToSuggestion'](_0x4f1712){const _0x2b4aac=_0x4f1712['id'],_0x151bfb=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2b4aac)||this['_commentsRepository']['addCommentThread']({'channelId':_0x151bfb,'threadId':_0x2b4aac,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4cc9f5=this['_commentsRepository']['getCommentThread'](_0x2b4aac);_0x4cc9f5['unbind']('isRemovable'),_0x4cc9f5['isRemovable']=!0x1,_0x4f1712['commentThread']=_0x4cc9f5;}['_checkSuggestionCorrectness'](_0xcd471e,_0x160ad6,_0x3d27e5,_0x130841){if(_0xcd471e['type']!=_0x160ad6||_0xcd471e['subType']!=_0x3d27e5||_0xcd471e['creator']['id']!=_0x130841)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2911cb('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x55b758,_0x35c750){const _0x2dfa76=_0x55b758['getFirstRange']();if(_0x35c750['isEqual'](_0x2dfa76))_0x55b758['removeMarkers']();else{if(_0x2dfa76['containsRange'](_0x35c750)){const _0x1d3cad=this['_model']['createPositionAt'](_0x35c750['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x55b758,this['_model']['createRange'](_0x2dfa76['start'],_0x1d3cad));const _0x4a5e87=_0x71cbf7(),_0x4789a0=_0x55b758['creator']['id'],_0x5df8c0=_0x55b758['type']+':'+_0x55b758['subType'];this['_setSuggestionData']({'id':_0x4a5e87,'type':_0x5df8c0,'createdAt':new Date(),'authorId':_0x4789a0,'data':_0x55b758['data'],'attributes':_0x55b758['attributes']});const _0x537b6f=this['_model']['createPositionAt'](_0x35c750['end']['parent'],'after'),_0x41f2d1=this['_model']['createRange'](_0x537b6f,_0x2dfa76['end']);this['_addSuggestionMarker'](_0x5df8c0,_0x4a5e87,_0x4789a0,_0x41f2d1);}else{if(_0x2dfa76['containsPosition'](_0x35c750['start'])){const _0x4a7c2d=this['_model']['createPositionAt'](_0x35c750['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x55b758,this['_model']['createRange'](_0x2dfa76['start'],_0x4a7c2d));}else{const _0x11eb23=this['_model']['createPositionAt'](_0x35c750['end']['parent'],'after');this['_setSuggestionRange'](_0x55b758,this['_model']['createRange'](_0x11eb23,_0x2dfa76['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xea0bf4){for(const {suggestion:_0x1e6417,meta:_0x1f8451}of this['_findSuggestions'](_0xea0bf4,'insertion')){if(!_0x1f8451['isOwn'])continue;const _0x1df782=_0x1e6417['getRanges']();for(const _0x503d21 of _0x1df782)if(!_0xea0bf4['getDifference'](_0x503d21)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xfc92b2){const _0x15e8ba=this['editor']['plugins']['get']('Users')['getUser'](_0xfc92b2);if(!_0x15e8ba)throw new _0x2911cb('track-changes-user-not-found',this);return _0x15e8ba;}['_getExternalAuthor'](_0x4d40e5){const _0x81aef8=this['editor']['plugins']['get']('Users'),_0x4dabf5=_0x178ca5('external:'+_0x4d40e5),_0x258381=_0x81aef8['getUser'](_0x4dabf5);return _0x258381||_0x81aef8['addUser']({'id':_0x4dabf5,'name':_0x4d40e5});}['_createSuggestion'](_0x1dd926,_0x453172,_0x3e712e,_0x535cf4,_0x48db65){const _0x4db862=this['_getAuthorFromId'](_0x535cf4),_0x5990e0=this['_suggestionFactory']['buildSuggestion'](_0x1dd926,_0x453172,_0x3e712e,_0x4db862,_0x48db65,_0x35c1fb=>{this['_updateSuggestionData'](_0x3e712e,{'attributes':_0x35c1fb});const _0x14ad1b=this['getSuggestion'](_0x3e712e);this['_joinWithAdjacentSuggestions'](new Set([_0x14ad1b])),this['_refreshSuggestionsChain'](new Set([_0x14ad1b]));});return this['listenTo'](_0x5990e0,'accept',()=>{this['_updateSuggestionData'](_0x3e712e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5990e0,'discard',()=>{this['_updateSuggestionData'](_0x3e712e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3e712e,_0x5990e0),this['_suggestionState']['set'](_0x5990e0,'notReady'),_0x5990e0;}['_splitMarkerName'](_0x520ed9){const _0x1da6f1=_0x520ed9['split'](':');return{'group':_0x1da6f1[0x0],'type':_0x1da6f1[0x1],'subType':_0x1da6f1['length']>=0x5?_0x1da6f1[0x2]:null,'id':_0x1da6f1['length']<0x5?_0x1da6f1[0x2]:_0x1da6f1[0x3],'authorId':_0x1da6f1['length']<0x5?_0x1da6f1[0x3]:_0x1da6f1[0x4],'markerCount':0x6==_0x1da6f1['length']?_0x1da6f1[0x5]:null};}['_breakSuggestionMarker'](_0x514c43,_0x1b5275,_0x175106){const _0x232137=_0x514c43['getFirstRange'](),_0x108d1b=_0x232137['start'],_0x3281c4=_0x232137['end'];this['_setSuggestionRange'](_0x514c43,this['_model']['createRange'](_0x108d1b,_0x1b5275));const _0x20645a=_0x71cbf7(),_0x3247c5=_0x514c43['creator']['id'],_0x52abe0=_0x514c43['type']+(_0x514c43['subType']?':'+_0x514c43['subType']:'');this['_setSuggestionData']({'id':_0x20645a,'type':_0x52abe0,'createdAt':new Date(),'authorId':_0x3247c5,'originalSuggestionId':_0x514c43['id'],'attributes':_0x514c43['attributes'],'data':_0x514c43['data']});const _0x4847a4=this['_getAttributeKey'](_0x514c43);('formatBlock'==_0x514c43['type']||_0x4847a4&&this['_isBlockAttribute'](_0x4847a4))&&(_0x175106=this['_model']['createPositionBefore'](_0x175106['parent'])),this['_addSuggestionMarker'](_0x52abe0,_0x20645a,_0x3247c5,this['_model']['createRange'](_0x175106,_0x3281c4));}['_findSuggestions'](_0x3ec8ca,_0x15c3c8=null){const _0x5dcba5=[],_0x531c85=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3ec8ca)||(_0x3ec8ca=[_0x3ec8ca]);for(const _0x4f39d5 of this['getSuggestions']()){if(!_0x4f39d5['isInContent'])continue;if(_0x15c3c8&&_0x4f39d5['type']!=_0x15c3c8)continue;let _0x285349=!0x1;for(const _0x15c2d7 of _0x4f39d5['getRanges']()){for(const _0x31a0a8 of _0x3ec8ca){const _0xfe7269=_0x31a0a8['start']['isEqual'](_0x15c2d7['end'])||_0x31a0a8['end']['isEqual'](_0x15c2d7['start']);if(_0xfe7269||_0x31a0a8['getIntersection'](_0x15c2d7)){const _0x33781d=_0x31a0a8['containsRange'](_0x15c2d7)&&Ot(this['_model']['schema'],_0x15c2d7['start'],_0x31a0a8),_0x336b87=_0x15c2d7['containsRange'](_0x31a0a8)&&Ot(this['_model']['schema'],_0x31a0a8['start'],_0x15c2d7);_0x5dcba5['push']({'suggestion':_0x4f39d5,'meta':{'isOwn':_0x531c85==_0x4f39d5['author'],'isNextTo':_0xfe7269,'isInsideObject':_0x33781d,'containsRangeInObject':_0x336b87}}),_0x285349=!0x0;break;}}if(_0x285349)break;}}return _0x5dcba5;}['_addSuggestionMarker'](_0x50e73d,_0x264302,_0x3cec8a,_0x1240a2,_0x590b49){this['_model']['change'](_0x42ea90=>{let _0x3753dd='suggestion:'+_0x50e73d+':'+_0x264302+':'+_0x3cec8a;_0x590b49&&(_0x3753dd=_0x3753dd+':'+_0x590b49),_0x42ea90['addMarker'](_0x3753dd,{'range':_0x1240a2,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x450e63){const _0x486fad=_0x450e63['previous'],_0x289374=_0x450e63['next'];_0x450e63['previous']=null,_0x450e63['next']=null,null!=_0x486fad&&_0x486fad['next']==_0x450e63&&(_0x486fad['next']=_0x289374),null!=_0x289374&&_0x289374['previous']==_0x450e63&&(_0x289374['previous']=_0x486fad),'ready'==this['_suggestionState']['get'](_0x450e63)&&(this['_suggestionState']['set'](_0x450e63,'removed'),this['fire']('suggestionUnloaded',_0x450e63,_0x486fad,_0x289374));}['_setSuggestionData'](_0x40f114){const _0x237d6e=_0x40f114['id'],_0x2d03f0=this['addSuggestionData'](_0x40f114);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1a3e07=this['editor']['plugins']['get']('PendingActions'),_0x5a00ac=_0x2d03f0['hasComments'],_0x54581a=_0x2d03f0['subType']?_0x2d03f0['type']+':'+_0x2d03f0['subType']:_0x2d03f0['type'],_0x3c03a8=this['editor']['locale'],_0x24910f=_0x1a3e07['add'](o(_0x3c03a8,'PENDING_ACTION_SUGGESTION')),_0x1142fa={'id':_0x237d6e,'type':_0x54581a,'hasComments':_0x5a00ac,'data':_0x40f114['data']||null,'originalSuggestionId':_0x40f114['originalSuggestionId']||null,'attributes':_0x2d03f0['attributes']};this['_adapter']['addSuggestion'](_0x1142fa)['then'](_0x300f0c=>{_0x2d03f0['_saved']=!0x0,_0x1a3e07['remove'](_0x24910f),_0x300f0c&&_0x300f0c['createdAt']&&(this['_suggestions']['get'](_0x237d6e)['createdAt']=_0x300f0c['createdAt']);})['catch'](_0x36df39=>{throw _0x367c86('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d03f0['discard']();}),_0x2d03f0['stopListening'](),this['_suggestions']['delete'](_0x2d03f0['id']),this['_suggestionState']['delete'](_0x2d03f0),_0x36df39;});}return _0x2d03f0;}['_isBlockAttribute'](_0x4f37ca){return this['_blockAttributeKeys']['has'](_0x4f37ca);}['_updateSuggestionData'](_0x578544,_0x121fd3){const _0x510831=this['editor']['plugins']['get']('PendingActions'),_0x65e754=this['getSuggestion'](_0x578544);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x65e754['_saved']){const _0x69c6f1=_0x510831['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x578544,_0x121fd3)['then'](()=>{_0x510831['remove'](_0x69c6f1);});}else _0x65e754['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x578544,_0x121fd3);});}}['_getSuggestionData'](_0x41e056){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2911cb('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x41e056);}['_handleNewSuggestionMarker'](_0x3a3a43){const {id:_0x441727,type:_0x2b3e6a,subType:_0x20e174,authorId:_0x4e6f09}=this['_splitMarkerName'](_0x3a3a43),_0x3263c7=this['_suggestions']['get'](_0x441727)||this['_createSuggestion'](_0x2b3e6a,_0x20e174,_0x441727,_0x4e6f09,{});switch(this['_checkSuggestionCorrectness'](_0x3263c7,_0x2b3e6a,_0x20e174,_0x4e6f09),this['_suggestionState']['get'](_0x3263c7)){case'notReady':this['_getSuggestionData'](_0x441727)['then'](_0x274238=>{let _0x6c8f73=Promise['resolve']();_0x274238['hasComments']&&(_0x6c8f73=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x441727})),_0x6c8f73['then'](()=>{this['addSuggestionData'](_0x274238)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3263c7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x441727,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3263c7,'ready'),this['fire']('suggestionLoaded',_0x3263c7);break;case'ready':this['fire']('suggestionChanged',_0x3263c7);}return _0x3263c7['addMarkerName'](_0x3a3a43),_0x3263c7;}['_refreshSuggestionsChain'](_0x58b512){const _0x29ac57=Array['from'](_0x58b512),_0x41f945=_0x29ac57['filter'](_0x151086=>'attribute'==_0x151086['type']);this['_refreshAttributeSuggestionsChain'](_0x41f945);const _0x140efb=_0x29ac57['filter'](_0x5846f7=>!_0x5846f7['isMultiRange']&&'attribute'!=_0x5846f7['type']),_0x133f21=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35623b=>!_0x35623b['isMultiRange']&&'attribute'!=_0x35623b['type']),_0x3de50d=_0x133f21['filter'](_0x22d119=>!_0x58b512['has'](_0x22d119)),_0x5ec9c1=new Map(_0x133f21['map'](_0xee6456=>[_0xee6456,this['_suggestionFactory']['getSuggestionCallback'](_0xee6456['type'],_0xee6456['subType'],'chain')])),_0x4c303f=new Map(_0x133f21['map'](_0x5391c3=>[_0x5391c3,_0x5391c3['getFirstRange']()])),_0xe7637b=new Set(),_0x40eea4=new Set();for(let _0x5e2fdd=0x0;_0x5e2fdd<_0x140efb['length'];_0x5e2fdd++)_0xc0c314(_0x140efb[_0x5e2fdd],_0x140efb,_0x5e2fdd+0x1);for(let _0x1875ea=0x0;_0x1875ea<_0x140efb['length'];_0x1875ea++)_0xc0c314(_0x140efb[_0x1875ea],_0x3de50d,0x0);const _0x354dac=new Set();for(let _0x2f450d=0x0;_0x2f450d<_0x140efb['length'];_0x2f450d++){const _0x24f055=_0x140efb[_0x2f450d];!_0x40eea4['has'](_0x24f055)&&_0x24f055['previous']&&(_0x354dac['add'](_0x24f055['previous']),_0x24f055['previous']['next']===_0x24f055&&(_0x24f055['previous']['next']=null),_0x24f055['previous']=null),!_0xe7637b['has'](_0x24f055)&&_0x24f055['next']&&(_0x354dac['add'](_0x24f055['next']),_0x24f055['next']['previous']===_0x24f055&&(_0x24f055['next']['previous']=null),_0x24f055['next']=null);}function _0xc0c314(_0x21f492,_0x308a82,_0x507b40){for(let _0x3ec106=_0x507b40;_0x3ec106<_0x308a82['length'];_0x3ec106++){const _0xe6e2b0=_0x29126b(_0x21f492,_0x308a82[_0x3ec106]);_0xe6e2b0&&(_0xe6e2b0[0x0]['next']=_0xe6e2b0[0x1],_0xe6e2b0[0x1]['previous']=_0xe6e2b0[0x0],_0xe7637b['add'](_0xe6e2b0[0x0]),_0x40eea4['add'](_0xe6e2b0[0x1]));}}function _0x29126b(_0x5f199f,_0x2bd986){if(_0x5f199f['author']['id']!==_0x2bd986['author']['id'])return null;const _0x6a0fef=_0x5ec9c1['get'](_0x5f199f)(_0x5f199f,_0x2bd986,_0x4c303f['get'](_0x5f199f),_0x4c303f['get'](_0x2bd986));if(!_0x6a0fef)return null;return _0x5ec9c1['get'](_0x2bd986)(_0x5f199f,_0x2bd986,_0x4c303f['get'](_0x5f199f),_0x4c303f['get'](_0x2bd986))?_0x6a0fef[0x1]['commentThread']&&_0x6a0fef[0x1]['commentThread']['length']?null:_0x6a0fef:null;}_0x354dac['size']&&this['_refreshSuggestionsChain'](_0x354dac);}['_refreshAttributeSuggestionsChain'](_0x2b9a02){if(0x0==_0x2b9a02['length'])return;const _0xd0134=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x348d29=>'attribute'==_0x348d29['type']&&_0x348d29['_isDataLoaded']),_0x3bdc5a=[],_0x2847bb=new Map();for(const _0x27e43f of _0xd0134){const _0x459cad=_0x178ca5(_0x27e43f['attributes']);_0x2847bb['has'](_0x459cad)||(_0x2847bb['set'](_0x459cad,_0x3bdc5a['length']),_0x3bdc5a['push']([]));const _0x103e74=_0x2847bb['get'](_0x459cad);_0x3bdc5a[_0x103e74]['push'](_0x27e43f);}!(function(){_0x3bdc5a['sort']((_0x222e2f,_0x36f824)=>{const _0x1e11aa=_0x222e2f[0x0]['createdAt'],_0x3c0ed7=_0x36f824[0x0]['createdAt'];return _0x1e11aa==_0x3c0ed7?_0x222e2f[0x0]['attributes']['groupId']<_0x36f824[0x0]['attributes']['groupId']?-0x1:0x1:_0x1e11aa<_0x3c0ed7?-0x1:0x1;});for(const _0x44d858 of _0x3bdc5a)_0x44d858['sort']((_0x2be35f,_0x50e474)=>_0x2be35f['id']<_0x50e474['id']?-0x1:0x1);}());for(let _0x38add2=0x0;_0x38add2<_0x3bdc5a['length'];_0x38add2++){if(0x0==_0x3bdc5a[_0x38add2]['length'])continue;const _0x2135b2=[];for(let _0x4334ce=_0x38add2+0x1;_0x4334ce<_0x3bdc5a['length'];_0x4334ce++)0x0!=_0x3bdc5a[_0x4334ce]['length']&&_0x237566(_0x3bdc5a[_0x38add2],_0x3bdc5a[_0x4334ce])&&_0x2135b2['push'](_0x4334ce);for(const _0x57d807 of _0x2135b2)_0x3bdc5a[_0x38add2]=_0x3bdc5a[_0x38add2]['concat'](_0x3bdc5a[_0x57d807]),_0x3bdc5a[_0x57d807]=[];}for(const _0x6d253b of _0x3bdc5a)for(let _0x33d7cb=0x0;_0x33d7cb<_0x6d253b['length'];_0x33d7cb++){const _0x54835c=_0x6d253b[_0x33d7cb+0x1]||null;_0x6d253b[_0x33d7cb]['next']!==_0x54835c&&(_0x6d253b[_0x33d7cb]['next']=_0x54835c);}for(const _0x5b883b of _0x3bdc5a)for(let _0x32e695=0x0;_0x32e695<_0x5b883b['length'];_0x32e695++){const _0x23943d=_0x5b883b[_0x32e695-0x1]||null;_0x5b883b[_0x32e695]['previous']!==_0x23943d&&(_0x5b883b[_0x32e695]['previous']=_0x23943d);}function _0x237566(_0x19b0a0,_0x599bb1){if(_0x19b0a0[0x0]['attributes']['groupId']!==_0x599bb1[0x0]['attributes']['groupId']&&_0x19b0a0[0x0]['author']!==_0x599bb1[0x0]['author'])return!0x1;if(!function(_0x2aecd3,_0x5cb1d6){if(!_0x2aecd3['hasComments']&&!_0x5cb1d6['hasComments'])return!0x0;if(_0x2aecd3['hasComments']&&_0x5cb1d6['hasComments'])return!0x1;if(_0x2aecd3['hasComments']&&_0x5cb1d6['createdAt']<_0x2aecd3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5cb1d6['hasComments']&&_0x2aecd3['createdAt']<_0x5cb1d6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x19b0a0[0x0],_0x599bb1[0x0]))return!0x1;const _0x279f83=Tt(_0x19b0a0[0x0]['attributes'],'groupId'),_0x31a295=Tt(_0x599bb1[0x0]['attributes'],'groupId');if(!_0x2c5b5c(_0x279f83,_0x31a295))return!0x1;return!!_0x19b0a0['every'](_0x292eea=>_0x599bb1['some'](_0x53ef27=>_0x292eea['getFirstRange']()['isEqual'](_0x53ef27['getFirstRange']())))&&_0x599bb1['every'](_0x1bfc5f=>_0x19b0a0['some'](_0x1527b8=>_0x1bfc5f['getFirstRange']()['isEqual'](_0x1527b8['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x6fdb23){const _0x11ad19=Array['from'](_0x6fdb23),_0x1a6a1c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f16d9=_0x1a6a1c['filter'](_0x3e6be3=>!_0x6fdb23['has'](_0x3e6be3)),_0x20f5cb=new Map(_0x11ad19['map'](_0x4fa857=>[_0x4fa857,this['_suggestionFactory']['getSuggestionCallback'](_0x4fa857['type'],_0x4fa857['subType'],'join')])),_0x543baf=new Map(_0x1a6a1c['map'](_0x3c3dce=>[_0x3c3dce,_0x3c3dce['getRanges']()]));for(let _0x2cea8b=0x0;_0x2cea8b<_0x11ad19['length'];_0x2cea8b++){if(_0x157b4b(this,_0x11ad19[_0x2cea8b],_0x11ad19,_0x2cea8b+0x1))return!0x0;}for(let _0x18e38d=0x0;_0x18e38d<_0x11ad19['length'];_0x18e38d++){if(_0x157b4b(this,_0x11ad19[_0x18e38d],_0x3f16d9,0x0))return!0x0;}return!0x1;function _0x157b4b(_0x5c54ec,_0x33d70c,_0x532dde,_0x4034f4){for(let _0x23b915=_0x4034f4;_0x23b915<_0x532dde['length'];_0x23b915++){const _0x2c8074=_0x532dde[_0x23b915];if(_0x2c8074['type']!==_0x33d70c['type']||_0x2c8074['author']['id']!==_0x33d70c['author']['id']||_0x2c8074['subType']!==_0x33d70c['subType'])continue;if(!Jt(_0x33d70c,_0x2c8074))continue;if('attribute'==_0x33d70c['type']&&_0x33d70c['data']['oldValue']!=_0x2c8074['data']['oldValue'])continue;if('attribute'==_0x33d70c['type']&&_0x5c54ec['_isBlockAttribute'](_0x33d70c['data']['key']))continue;if('formatBlock'==_0x33d70c['type']){const _0xfbbdf5=_0x5c54ec['editor']['model'],_0x167f57=_0x33d70c['getContainedElement']();if(_0x167f57&&(_0xfbbdf5['schema']['isObject'](_0x167f57)||_0xfbbdf5['schema']['isLimit'](_0x167f57)))continue;}const _0x525158=_0x20f5cb['get'](_0x33d70c),_0x4b04a3=_0x543baf['get'](_0x33d70c),_0x20c3fb=_0x543baf['get'](_0x2c8074),_0x32edde=_0x33d70c['commentThread']&&_0x33d70c['commentThread']['length'],_0x508d5c=_0x2c8074['commentThread']&&_0x2c8074['commentThread']['length'];if(!_0x32edde&&_0x525158(_0x20c3fb,_0x4b04a3))return _0x5c54ec['_joinSuggestions'](_0x2c8074,_0x33d70c),_0x543baf['delete'](_0x33d70c),!0x0;if(!_0x508d5c&&_0x525158(_0x4b04a3,_0x20c3fb))return _0x5c54ec['_joinSuggestions'](_0x33d70c,_0x2c8074),_0x543baf['delete'](_0x2c8074),!0x0;}return!0x1;}}['_joinSuggestions'](_0x3bf817,_0x42bbd5){if(_0x3bf817['isMultiRange']){for(const _0x2938e1 of _0x42bbd5['getRanges']())_0x3bf817['addRange'](_0x2938e1);}else{const _0x245fb0=_0x42bbd5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x3bf817,this['_model']['createRange'](_0x3bf817['getFirstRange']()['start'],_0x245fb0));}_0x42bbd5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2a511a,_0x43150b,_0x14e983){const _0x586d61=_0x2a511a['startsWith']('format')||_0x2a511a['startsWith']('attribute')?'FORMATTING':_0x2a511a['toUpperCase']();return o(this['editor']['locale'],_0x43150b+'_'+_0x586d61+'_SUGGESTION_ANNOUNCEMENT',_0x14e983);}['_initAriaMarkerChangeAnnouncements'](){const _0x14f738=this['editor'];if(!_0x14f738['ui'])return;const {ariaLiveAnnouncer:_0x2e2006}=_0x14f738['ui'];_0x4edbc3(this['_model'],({left:_0x12d25c,entered:_0x11a9f6})=>{for(const _0x1b4224 of _0x12d25c){const {group:_0x44d4c5,type:_0x22af4a}=this['_splitMarkerName'](_0x1b4224['name']);if('suggestion'===_0x44d4c5){_0x2e2006['announce'](this['_getMarkerAnnouncementText'](_0x22af4a,'LEAVE'));break;}}for(const _0x1c06c4 of _0x11a9f6){const {group:_0x5c6f0f,type:_0x47d271}=this['_splitMarkerName'](_0x1c06c4['name']);if('suggestion'===_0x5c6f0f){_0x2e2006['announce'](this['_getMarkerAnnouncementText'](_0x47d271,'ENTER',_0x19f044(_0x2717db)));break;}}});}['_processAttributeChanges'](_0x3cd0a7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x31edcd=this['editor'],_0xeab29b=_0x31edcd['model']['document']['differ']['getChanges']();if(0x0==_0xeab29b['length'])return!0x1;const _0x31e079=[],_0x6bbc1b=_0xeab29b['filter'](_0x3ca655=>'attribute'==_0x3ca655['type']),_0x4a20c7=_0xeab29b['filter'](_0x3fea2a=>'insert'==_0x3fea2a['type']&&'$text'!=_0x3fea2a['name']),_0xcecf1a=_0xeab29b['filter'](_0x2ce714=>'remove'==_0x2ce714['type']&&'$text'!=_0x2ce714['name']);for(const _0x39dbcf of _0x6bbc1b)_0x31e079['push']({'key':_0x39dbcf['attributeKey'],'newValue':_0x39dbcf['attributeNewValue'],'oldValue':_0x39dbcf['attributeOldValue'],'range':Pt(_0x39dbcf['range'],_0x31edcd['model'])});for(const _0x431eae of _0x4a20c7){const _0x4fb50b=_0xcecf1a['find'](_0x333f1b=>_0x333f1b['position']['isEqual'](_0x431eae['position']));_0x4fb50b&&_0x31e079['push']({'key':m,'newValue':_0x431eae['name'],'oldValue':_0x4fb50b['name'],'range':_0x31edcd['model']['createRangeOn'](_0x431eae['position']['nodeAfter'])});}return 0x0!=_0x31e079['length']&&this['_reduceExistingSuggestions'](_0x3cd0a7,_0x31e079);}['_processAttributeSuggestions'](_0x32e518){let _0x3123f7=!0x1;const _0x4c841c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2b400f=>_0x2b400f['data']['newRange']&&_0x2b400f['name']['startsWith']('suggestion:attribute:'));for(const _0x2f92e5 of _0x4c841c){const {subType:_0x4ab7ce,id:_0x4fab37}=this['_splitMarkerName'](_0x2f92e5['name']),_0x17bb46=_0x4ab7ce['split']('|')[0x0];for(const _0x410351 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x410351['id']!=_0x4fab37&&'attribute'==_0x410351['type']&&_0x410351['data']&&_0x410351['data']['key']==_0x17bb46&&_0x410351['getFirstRange']()['isIntersecting'](_0x2f92e5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x410351,_0x2f92e5['data']['newRange'],_0x32e518),_0x3123f7=!0x0);}return _0x3123f7;}['_recordAttributeChanges'](_0x5c3832){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x5c3832();}['_isRegisteredAttribute'](_0x128ea0){const _0x2a34fc=this['_isBlockAttribute'](_0x128ea0),_0x155a61=this['_inlineAttributeKeys']['has'](_0x128ea0);return _0x2a34fc||_0x155a61;}['_reduceExistingSuggestions'](_0x5c8b85,_0x43eb73){if(0x0==_0x43eb73['length'])return!0x1;let _0x477ca1=!0x1;for(const _0x38fb3a of _0x43eb73){const _0x51fd92=this['_findSuggestions'](_0x38fb3a['range'],'attribute')['filter'](_0x4cf7b6=>!_0x4cf7b6['meta']['isNextTo'])['map'](_0x238ff1=>_0x238ff1['suggestion']),_0xbc4de2=_0x178ca5({'newValue':_0x38fb3a['newValue']});_0x51fd92['filter'](_0x2328de=>{const [_0x224aa2,_0xe8eaa8]=_0x2328de['subType']['split']('|');return _0x224aa2==_0x38fb3a['key']&&_0xe8eaa8!=_0xbc4de2;})['forEach'](_0xa8945c=>{this['_reduceSuggestionAttributeRange'](_0xa8945c,_0x38fb3a['range'],_0x5c8b85),_0x477ca1=!0x0;});}return _0x477ca1;}['_reduceSuggestionAttributeRange'](_0x1db3bc,_0x5314ea,_0x193498){const _0x4c6bbc=_0x1db3bc['getFirstRange']()['getDifference'](_0x5314ea);0x0!==_0x4c6bbc['length']?0x1!==_0x4c6bbc['length']?this['_breakSuggestionMarker'](_0x1db3bc,_0x5314ea['start'],_0x5314ea['end']):this['_setSuggestionRange'](_0x1db3bc,_0x4c6bbc[0x0]):_0x193498['removeMarker'](_0x1db3bc['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2504ad){this['_editor']=_0x2504ad,this['_model']=_0x2504ad['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5f35f0,_0x11e305,_0x383476,_0x2d86bc,_0x35abda,_0x2b7f98){return new u(this['_model'],{'type':_0x5f35f0,'subType':_0x11e305,'id':_0x383476,'author':_0x2d86bc,'creator':_0x2d86bc,'attributes':_0x35abda,'onAttributesChange':_0x2b7f98,'onAccept':(..._0x337513)=>this['getSuggestionCallback'](_0x5f35f0,_0x11e305,'accept')(..._0x337513),'onDiscard':(..._0x3a7101)=>this['getSuggestionCallback'](_0x5f35f0,_0x11e305,'discard')(..._0x3a7101)});}['registerCustomCallback'](_0x30e617,_0x454699,_0x19d68f,_0x294aa0){const _0x42f634=_0x30e617+':'+_0x454699+':'+_0x19d68f;this['_customCallbacks']['set'](_0x42f634,_0x294aa0);}['getSuggestionCallback'](_0x2367dc,_0x237ed4,_0xfbb9bc){const _0x5cd876=_0x2367dc+':'+_0x237ed4+':'+_0xfbb9bc;return this['_customCallbacks']['get'](_0x5cd876)||this['_defaultCallbacks']['get'](_0x2367dc+':'+_0xfbb9bc);}['_registerDefaultCallbacks'](){const _0x2cfea2=()=>!0x1,_0x1e49ff=_0x6f3629=>{_0x6f3629['sort']((_0x3dfd6c,_0x2fc816)=>_0x3dfd6c['start']['isBefore'](_0x2fc816['start'])?0x1:-0x1),this['_model']['change'](_0x5933c2=>{for(const _0x5eabac of _0x6f3629){let _0x31bdfd;_0x31bdfd=_0x5eabac['end']['isAtEnd']&&_0x5eabac['end']['parent']==_0x5eabac['start']['nodeAfter']?_0x5933c2['createSelection'](_0x5eabac['start']['nodeAfter'],'on'):_0x5933c2['createSelection'](_0x5eabac),this['_model']['deleteContent'](_0x31bdfd,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x179e47=(_0x4903b5,_0x483f3b)=>{_0x483f3b&&this['_model']['change'](_0x155d12=>{const {commandName:_0x5b5ee2,commandParams:_0x4a9b4b=[]}=_0x483f3b,_0x4611cd=_0x4903b5['map'](_0xaad150=>(Vt(_0xaad150)&&(_0xaad150=this['_model']['createRange'](_0xaad150['end'])),_0xaad150))['filter'](_0x48695a=>'$graveyard'!==_0x48695a['root']['rootName']);if(_0x4611cd['length']<0x1)return;const _0x37ae2a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b5298=>_0x5116e6['fromRange'](_0x3b5298));_0x155d12['setSelection'](_0x4611cd);for(const _0x54be36 of this['_editor']['commands']['commands']())_0x54be36['refresh']();_0x4a9b4b['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5b5ee2,..._0x4a9b4b);const _0x220f78=_0x37ae2a['filter'](_0x49a40d=>'$graveyard'!=_0x49a40d['root']['rootName']);_0x220f78['length']>0x0&&_0x155d12['setSelection'](_0x220f78);for(const _0x1de530 of _0x37ae2a)_0x1de530['detach']();});},_0x2aded6=(_0xbfe5a4,_0xf17183)=>0x1==_0xbfe5a4['length']&&0x1==_0xf17183['length']&&_0xbfe5a4[0x0]['end']['isEqual'](_0xf17183[0x0]['start']),_0x35c34e=(_0x1e45ab,_0x38c358,_0x1bd855,_0x4fd5a3)=>Ht(_0x1e45ab,_0x38c358,_0x1bd855,_0x4fd5a3,this['_model'])?[_0x1e45ab,_0x38c358]:Ht(_0x38c358,_0x1e45ab,_0x4fd5a3,_0x1bd855,this['_model'])?[_0x38c358,_0x1e45ab]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2cfea2),this['_defaultCallbacks']['set']('insertion:discard',_0x1e49ff),this['_defaultCallbacks']['set']('insertion:join',_0x2aded6),this['_defaultCallbacks']['set']('insertion:chain',_0x35c34e),this['_defaultCallbacks']['set']('deletion:accept',_0x1e49ff),this['_defaultCallbacks']['set']('deletion:discard',_0x2cfea2),this['_defaultCallbacks']['set']('deletion:join',_0x2aded6),this['_defaultCallbacks']['set']('deletion:chain',_0x35c34e),this['_defaultCallbacks']['set']('formatInline:accept',_0x179e47),this['_defaultCallbacks']['set']('formatInline:discard',_0x2cfea2),this['_defaultCallbacks']['set']('formatInline:join',_0x2aded6),this['_defaultCallbacks']['set']('formatInline:chain',_0x2cfea2),this['_defaultCallbacks']['set']('formatBlock:accept',_0x179e47),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2cfea2),this['_defaultCallbacks']['set']('formatBlock:join',_0x2aded6),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2cfea2),this['_defaultCallbacks']['set']('attribute:accept',_0x2cfea2),this['_defaultCallbacks']['set']('attribute:discard',(_0x544c8e,_0x25bc18)=>{if(!_0x25bc18)return;const _0x558578=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2873d0=>{if(_0x25bc18['key']==m)for(const _0x22a080 of _0x544c8e){const _0x17a2a1=_0x22a080['start']['nodeAfter'],_0x3fb9c4=_0x25bc18['oldValue'];_0x2873d0['rename'](_0x17a2a1,_0x3fb9c4);}else{if(_0x558578['_isBlockAttribute'](_0x25bc18['key'])){for(const _0x446e99 of _0x544c8e)void 0x0!==_0x25bc18['oldValue']?_0x2873d0['setAttribute'](_0x25bc18['key'],_0x25bc18['oldValue'],_0x446e99['start']['nodeAfter']):_0x2873d0['removeAttribute'](_0x25bc18['key'],_0x446e99['start']['nodeAfter']);}else{for(const _0x511787 of _0x544c8e)_0x25bc18['oldValue']?_0x2873d0['setAttribute'](_0x25bc18['key'],_0x25bc18['oldValue'],_0x511787):_0x2873d0['removeAttribute'](_0x25bc18['key'],_0x511787);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2aded6);}}function Ot(_0x4ca4ab,_0x236837,_0x416a52){for(const _0xb42165 of _0x236837['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xb42165['root']==_0xb42165)return!0x1;if(!_0x416a52['containsItem'](_0xb42165))return!0x1;if(_0x4ca4ab['isObject'](_0xb42165)||_0x4ca4ab['isLimit'](_0xb42165))return!0x0;}return!0x1;}function Vt(_0x3ec059){return _0x3ec059['end']['parent']==_0x3ec059['start']['nodeAfter']&&_0x3ec059['end']['isAtStart'];}function Ut(_0x57ef3e,_0x105389,_0x1e8bd6,_0x12c317){const _0x102eba=_0x337cf7=>!_0x337cf7['item']['is']('$textProxy')&&!_0x12c317['isObject'](_0x337cf7['item']),_0x20a512=_0x57ef3e['start']['getLastMatchingPosition'](_0x102eba),_0x15e4c1=_0x57ef3e['end']['getLastMatchingPosition'](_0x102eba,{'direction':'backward'});return(!_0x57ef3e['start']['isEqual'](_0x20a512)||!_0x57ef3e['end']['isEqual'](_0x15e4c1))&&(_0x20a512['isBefore'](_0x15e4c1)?_0x1e8bd6['updateMarker'](_0x105389,{'range':_0x1e8bd6['createRange'](_0x20a512,_0x15e4c1)}):_0x1e8bd6['removeMarker'](_0x105389),!0x0);}function Gt(_0xf0f4e){return _0x178ca5(_0xf0f4e);}function Ft(_0x36439f){const _0x216474=_0x36439f['start']['nodeAfter'];return _0x216474&&_0x216474['is']('element');}function Pt(_0x20470c,_0x397e93){return null==_0x20470c['end']['nodeBefore']&&_0x20470c['end']['parent']==_0x20470c['start']['nodeAfter']?Lt(_0x20470c['start']['nodeAfter'],_0x397e93):_0x20470c;}function Lt(_0x12f3fa,_0xe8781c){const _0x3fdc35=_0xe8781c['schema']['isObject'](_0x12f3fa)||_0xe8781c['schema']['isSelectable'](_0x12f3fa);return _0xe8781c['createRange'](_0xe8781c['createPositionAt'](_0x12f3fa,'before'),_0x3fdc35?_0xe8781c['createPositionAfter'](_0x12f3fa):_0xe8781c['createPositionAt'](_0x12f3fa,'end'));}function Ht(_0x31c45c,_0x32e3ff,_0x295bb5,_0x438d17,_0xf154c9){if(_0x31c45c['next'])return!0x1;if(!Jt(_0x31c45c,_0x32e3ff))return!0x1;if(_0x295bb5['end']['isEqual'](_0x438d17['start']))return!0x0;if(_0x31c45c['type']!=_0x32e3ff['type'])return!0x1;if(!_0x295bb5['end']['isTouching'](_0x438d17['start']))return!0x1;const _0x10aa81=_0xf154c9['createRange'](_0x295bb5['end'],_0x438d17['start'])['getWalker']();for(const _0x2ccd3e of _0x10aa81)if(['elementStart','elementEnd']['includes'](_0x2ccd3e['type'])&&_0xf154c9['schema']['isLimit'](_0x2ccd3e['item']))return!0x1;return!0x0;}function Jt(_0x5178ff,_0x4b0ba7){if(!_0x5178ff['_isDataLoaded']||!_0x4b0ba7['_isDataLoaded'])return!0x1;const _0x564116=new Set(Object['keys'](_0x5178ff['attributes'])),_0x4bbdf1=new Set(Object['keys'](_0x4b0ba7['attributes']));if(_0x564116['delete']('groupId'),_0x4bbdf1['delete']('groupId'),0x0==_0x564116['size']&&0x0==_0x4bbdf1['size'])return!0x0;if(_0x564116['size']!=_0x4bbdf1['size'])return!0x1;const _0x8df300={..._0x5178ff['attributes']},_0x559808={..._0x4b0ba7['attributes']};return delete _0x8df300['groupId'],delete _0x559808['groupId'],JSON['stringify'](_0x8df300)==JSON['stringify'](_0x559808);}function qt(_0x3dde74,_0x3aea08){const _0x4e8e87=zt(_0x3dde74['attributes']),_0x37a567=zt(_0x3aea08);if(!_0x3dde74['_isDataLoaded'])return!0x1;for(const _0x1590cd of Object['keys'](_0x37a567))if(!_0x2c5b5c(_0x4e8e87[_0x1590cd],_0x37a567[_0x1590cd]))return!0x1;return!0x0;}function zt(_0x1537a9){const _0x10a99a=Object['assign']({},_0x1537a9);return delete _0x10a99a['skipNestingCheck'],delete _0x10a99a['tablePasteChainId'],_0x10a99a;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3a6870(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x261fb1,_0x13abff,_0x534c77,_0x17febb){super(),this['model']=_0x13abff,this['view']=_0x534c77,this['commentThreadController']=_0x17febb,this['_editor']=_0x261fb1,this['_acceptCommand']=_0x261fb1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x261fb1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x35f66d,_0x2b6fe4)=>_0x35f66d||_0x2b6fe4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x235297=>_0x235297&&this['_editor']['model']['canEditAt'](_0x13abff['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2d628a=>_0x2d628a&&this['_editor']['model']['canEditAt'](_0x13abff['getRanges']())),this['_pendingAction']=null,_0x534c77['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x534c77,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x534c77,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x534c77,'change:isDirty',()=>{_0x534c77['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 _0x5c533f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5c533f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xbc91fb{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xa792a3,_0x487bbc,_0x26ecf4,_0x386a1f){super(_0xa792a3),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4cdf67(_0xa792a3,o(_0xa792a3,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x487bbc['authoredAt']),this['bind']('authoredAt')['to'](_0x487bbc),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x487bbc,'authoredAt',this,'descriptionParts',(_0x56f6e8,_0x267202,_0x8417aa)=>{const _0x58e069=_0x8417aa['map'](_0x5bd731=>ls(_0x5bd731['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x56f6e8-0x1,_0x487bbc['author']['name'],_0x267202?_0x386a1f['formatDateTime'](_0x267202):'',new DOMParser()['parseFromString'](_0x58e069,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4715a2(),this['focusTracker']=new _0x3ac365(),this['keystrokes']=new _0xe4e6c0(),this['focusCycler']=new _0x44f295({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x509f8e=>_0x509f8e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x487bbc,this['_localUser']=_0x26ecf4,this['_config']=_0x386a1f,_0x386a1f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x584534(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x388a93}=this['_config'];this['commentsListView']=new _0x388a93(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',_0x3d2d62=>_0x3d2d62+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x9166c1,_0x51a6f7)=>_0x9166c1||!!_0x51a6f7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5ef4d5}=this['_config'],_0x16a400=new _0x5ef4d5(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2f7536=_0x16a400['commentInputView'];return _0x16a400['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2f7536,'value',(_0x553515,_0x288c45,_0x1e05fc)=>!!_0x1e05fc||_0x553515&&!_0x288c45),_0x2f7536['on']('submit',(_0x1e2ca2,_0x2026e2)=>{this['fire']('addComment',_0x2026e2),_0x2f7536['editor']['setData']('');}),_0x2f7536['on']('cancel',()=>this['focus']()),_0x2f7536['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x16a400;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0xbc7f51,_0x40470e,_0xd4224,_0x486aab){super(_0xbc7f51,_0x40470e,_0xd4224,_0x486aab),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x40cab2=>_0x40cab2&&_0x40cab2[0x0]?_0x40cab2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4b6917,_0x6b9049)=>{let _0x5e0d7b='';for(const _0x4ae9b7 of _0x4b6917)_0x5e0d7b+='<p>'+ls(_0x4ae9b7['content'],_0x4ae9b7['color'])+'</p>';return _0x6b9049?_0x5e0d7b:_0x3cc04f(_0x5e0d7b,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0xbc7f51,'Accept\x20suggestion'),_0x320dbb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0xbc7f51,'Discard\x20suggestion'),_0x320dbb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4de6a2(_0xbc7f51,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xcfb169=this['bindTemplate'],_0x211620=[{'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':_0xcfb169['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xcfb169['to']('authoredAt',_0x5f0596=>this['_config']['formatDateTime'](_0x5f0596))}]}]},{'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']&&_0x211620['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x16fe85={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xcfb169['if']('isActive','ck-suggestion-wrapper--active'),_0xcfb169['to']('type',_0x1b4f9b=>'ck-suggestion-'+_0x1b4f9b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0xcfb169['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x211620},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x16fe85['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)),_0x16fe85;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x1acc14,_0x4d06d9,_0x1fb0ab)=>{this['_descriptionElement']['innerHTML']=_0x1fb0ab;});}['_createButton'](_0x435006,_0xfecb01,_0x4da8d0,_0x372829,_0xc3f35c){const _0x3fea94=new _0x3c3249(this['locale']);return _0x3fea94['set']({'label':_0x435006,'icon':_0xfecb01,'tooltip':!0x0,'tooltipPosition':_0xc3f35c}),_0x3fea94['extendTemplate']({'attributes':{'class':_0x4da8d0}}),_0x3fea94['on']('execute',()=>{this['fire'](_0x372829,this['_model']['id']);}),_0x3fea94;}['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;}}var ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\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 _0x5b3081{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x41ab46,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x29107a){super(_0x29107a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x32ec0b=this['editor']['config'];_0x32ec0b['define']('trackChanges.SuggestionThreadView',re),_0x32ec0b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x32ec0b['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x30cbe9,_0x44af14){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x20475e,_0x2d0af4]of this['_handleControllerBuffer']){const _0x3c8865=this['_suggestionToController']['has'](_0x20475e);_0x3c8865||_0x2d0af4?_0x3c8865&&_0x2d0af4&&this['_destroyController'](_0x20475e):this['_initializeController'](_0x20475e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x30cbe9,_0x44af14);}['init'](){const _0x4d084d=this['editor'],_0x9ba2ec=_0x4d084d['plugins']['get']('TrackChangesEditing'),_0x7b462=_0x4d084d['plugins']['get']('Annotations'),_0x5a8e15=_0x4d084d['plugins']['get']('EditorAnnotations'),_0x207349=_0x4d084d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5a8e15['addSourceCollector'](()=>{const _0x1506dc=[];for(const [_0x35e89e,_0x279fd9]of Array['from'](this['_suggestionToController'])){const _0x3f9c76=_0x35e89e['getAllAdjacentSuggestions'](),_0x18ce6b=[];for(const _0x141606 of _0x3f9c76){if(!_0x141606['isInContent'])continue;if(_0x141606['isMultiRange']){_0x18ce6b['push'](..._0x141606['getRanges']());continue;}const _0x59cb1a=_0x141606['getFirstRange']();if(_0x18ce6b['length']>0x0){const _0x1e1a37=_0x18ce6b[0x0]['getJoined'](_0x59cb1a);if(_0x1e1a37){_0x18ce6b[0x0]=_0x1e1a37;continue;}}_0x18ce6b['push'](_0x59cb1a);}_0x1506dc['push']([_0x279fd9['view'],_0x18ce6b]);}return _0x1506dc;}),this['listenTo'](_0x9ba2ec,'suggestionLoaded',(_0x2e37f0,_0x2293ad)=>{this['listenTo'](_0x2293ad,'change:previous',(_0x26c917,_0x65113c,_0x4c08cd,_0x27d531)=>{_0x2293ad['isInContent']&&(null==_0x4c08cd?(this['_updateController'](_0x27d531['head']),this['_handleSuggestionControllerDelayed'](_0x2293ad,!0x1)):(this['_updateController'](_0x4c08cd['head']),null==_0x27d531&&this['_handleSuggestionControllerDelayed'](_0x2293ad,!0x0)));}),null!==_0x2293ad['previous']?this['_updateController'](_0x2293ad['head']):this['_handleSuggestionControllerDelayed'](_0x2293ad,!0x1);}),this['listenTo'](_0x9ba2ec,'suggestionUnloaded',(_0x37792f,_0x316f3a,_0x25feed)=>{this['stopListening'](_0x316f3a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x316f3a),this['_suggestionToController']['has'](_0x316f3a)&&this['_destroyController'](_0x316f3a),_0x25feed&&this['_updateController'](_0x25feed['head']);}),this['listenTo'](_0x9ba2ec,'suggestionChanged',(_0x498a64,_0x4a9c3b)=>{this['_updateController'](_0x4a9c3b);}),this['listenTo'](_0x7b462,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x207349,'addComment',(_0x573528,{threadId:_0x23200d,isFromAdapter:_0x354ef1})=>{if(_0x354ef1||!_0x9ba2ec['hasSuggestion'](_0x23200d))return;const _0x210494=_0x9ba2ec['getSuggestion'](_0x23200d);this['_suggestionToController']['get'](_0x210494)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1b20db=this['editor']['plugins']['get']('Annotations'),_0x48d62a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48f697=Array['from'](_0x1b20db['activeAnnotations'],_0x1c25e2=>_0x1c25e2['innerView'])['filter'](_0xd6a5b=>this['_viewToController']['has'](_0xd6a5b)),_0x478d20=[];for(const _0x57ceee of _0x48f697){const _0x47338d=this['_viewToController']['get'](_0x57ceee)['model']['getAllAdjacentSuggestions']();_0x478d20['push'](..._0x47338d['reduce']((_0x670c59,_0x591c42)=>[..._0x670c59,..._0x591c42['getMarkerNames']()],[]));}_0x48d62a['activeMarkers']=_0x478d20;}['_addUIComponentsToFactory'](){const _0x1de7d9=this['editor'],_0x552e86=_0x1de7d9['locale'],_0x50c5f8=o(_0x552e86,'Track\x20changes'),_0x6fc19=new Wt([{'type':'switchbutton','model':new _0x5cf75f({'withText':!0x0,'isToggleable':!0x0,'label':_0x50c5f8,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5cf75f({'withText':!0x0,'label':o(_0x552e86,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5cf75f({'withText':!0x0,'label':o(_0x552e86,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5cf75f({'withText':!0x0,'label':o(_0x552e86,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5cf75f({'withText':!0x0,'label':o(_0x552e86,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2dd4b8 of _0x6fc19)if(he(_0x2dd4b8)){const _0x5ad203=_0x1de7d9['commands']['get'](_0x2dd4b8['model']['commandName']);_0x2dd4b8['model']['bind']('isOn','isEnabled')['to'](_0x5ad203,'value','isEnabled');}_0x1de7d9['ui']['componentFactory']['add']('trackChanges',_0x3370b0=>this['_createToolbarButton'](_0x3370b0,_0x6fc19,_0x50c5f8)),_0x1de7d9['ui']['componentFactory']['add']('menuBar:trackChanges',_0xb88975=>this['_createMenuBarMenu'](_0xb88975,_0x6fc19,_0x50c5f8));}['_createToolbarButton'](_0x2c1cc6,_0x21e79f,_0x2b1cdc){const _0x5be8cb=Qt(_0x2c1cc6,_0x4d8a25),_0x593182=this['editor']['commands']['get']('trackChanges');_0x5be8cb['buttonView']['set']({'tooltip':_0x2b1cdc,'label':_0x2b1cdc,'icon':ce}),_0x5be8cb['buttonView']['bind']('isOn')['to'](_0x593182,'value'),_0x5be8cb['buttonView']['on']('execute',()=>{_0x593182['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x5be8cb,_0x21e79f,{'role':'menu'});const _0x21a1da=[];for(const _0x43a6e6 of _0x21e79f)he(_0x43a6e6)&&_0x21a1da['push'](this['editor']['commands']['get'](_0x43a6e6['model']['commandName']));const _0x840770=_0x5be8cb['buttonView'];return _0x840770['actionView']['unbind']('isEnabled'),_0x840770['arrowView']['unbind']('isEnabled'),_0x840770['actionView']['bind']('isEnabled')['to'](_0x593182,'isEnabled'),_0x840770['arrowView']['bind']('isEnabled')['toMany'](_0x21a1da,'isEnabled',(..._0x28984e)=>_0x28984e['some'](_0x219dc4=>_0x219dc4)),_0x5be8cb['on']('execute',_0x3f5ee3=>{this['editor']['execute'](_0x3f5ee3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5be8cb;}['_createMenuBarMenu'](_0x2808f9,_0x16acdc,_0x4c16b5){const _0x2dcaea=new Yt(_0x2808f9),_0x173866=this['editor']['commands']['get']('trackChanges');_0x2dcaea['buttonView']['set']({'label':_0x4c16b5,'icon':ce});const _0xe45bdc=new Zt(_0x2808f9);for(const _0x24ee66 of _0x16acdc){if('separator'==_0x24ee66['type']){_0xe45bdc['items']['add'](new Xt(_0x2808f9));continue;}const _0x2a1ae6=new te(_0x2808f9,_0x2dcaea),_0x2ec612=new _0x21551b(_0x2808f9),_0x4ac61d=_0x24ee66['model'];_0x2ec612['bind'](...Object['keys'](_0x4ac61d))['to'](_0x4ac61d),_0x2ec612['delegate']('execute')['to'](_0x2dcaea),_0x2ec612['on']('execute',()=>{this['editor']['execute'](_0x4ac61d['commandName']),this['editor']['editing']['view']['focus']();}),_0x2a1ae6['children']['add'](_0x2ec612),_0xe45bdc['items']['add'](_0x2a1ae6);}return _0x2dcaea['bind']('isEnabled')['to'](_0x173866,'isEnabled'),_0x2dcaea['panelView']['children']['add'](_0xe45bdc),_0x2dcaea;}['_initializeController'](_0x369046){const _0x3608e5=this['editor'],_0x5617af=_0x3608e5['config'],_0x2c5cc5=_0x3608e5['plugins']['get']('Annotations'),_0x12ae9c=_0x3608e5['plugins']['get']('CommentsRepository'),_0x3e540f=_0x3608e5['plugins']['get']('EditorAnnotations'),_0x4c2b5d=_0x3608e5['plugins']['get'](_0x41ab46)['me'],_0x57d897=_0x5617af['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0xf202ff,CommentThreadInputView:_0x20be8e}=_0x3608e5['plugins']['get']('CommentsUI');let _0x234a83,_0x3c186c;this['_annotationViews']['has'](_0x369046['id'])?(_0x3c186c=this['_annotationViews']['get'](_0x369046['id']),_0x234a83=_0x3c186c['mainView']):(_0x234a83=new _0x57d897(_0x3608e5['locale'],_0x369046,_0x4c2b5d,{'disableComments':this['_disableComments'],'editorConfig':_0x5617af['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5617af['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5617af['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5617af['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x47d784(_0x5617af['get']('locale')),'CommentView':_0x5617af['get']('comments')['CommentView'],'CommentsListView':_0xf202ff,'CommentThreadInputView':_0x20be8e}),_0x234a83['acceptButton']['on']('execute',()=>{_0x3608e5['editing']['view']['focus']();}),_0x234a83['discardButton']['on']('execute',()=>{_0x3608e5['editing']['view']['focus']();}),_0x3c186c=_0x2c5cc5['createAnnotationView'](this['editor']['locale'],_0x234a83),_0x3c186c['bind']('isDirty')['to'](_0x234a83,'isDirty'),_0x3c186c['bind']('length')['to'](_0x234a83),_0x3c186c['bind']('type')['to'](_0x234a83,'type',_0x40ce79=>'suggestion-'+_0x40ce79),this['listenTo'](_0x234a83,'escape',()=>{_0x3608e5['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x369046['id'],_0x3c186c));const _0x4ce478=_0x12ae9c['createCommentThreadController'](_0x369046['commentThread'],_0x234a83),_0x2d21fc=new ae(_0x3608e5,_0x369046,_0x234a83,_0x4ce478),_0x32a61a=_0x369046['getAllAdjacentSuggestions']()['filter'](_0x5b0494=>_0x5b0494['isInContent']);_0x234a83['descriptionParts']=_0x3608e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x32a61a),this['_suggestionToController']['set'](_0x369046,_0x2d21fc),this['_viewToController']['set'](_0x234a83,_0x2d21fc);const _0x2736e7=_0x2c5cc5['createAnnotation']({'view':_0x3c186c,'target':()=>{const _0x3e1c32=[],_0x146de1=_0x369046['getAllAdjacentSuggestions']()['filter'](_0x46c19a=>_0x46c19a['isInContent']);for(const _0x2eb85d of _0x146de1)_0x3e1c32['push'](..._0x2eb85d['getMarkers']());return _0x4368fd(_0x3608e5['editing'],_0x3e1c32);},'type':()=>'suggestion-'+_0x2d21fc['view']['type']});_0x12ae9c['_bindAnnotationToEditors'](_0x234a83,_0x2736e7),_0x2c5cc5['add'](_0x2736e7),_0x3e540f['registerAnnotation'](_0x2736e7);}['_destroyController'](_0x58022f){const _0x3b1051=this['editor']['plugins']['get']('CommentsRepository'),_0x3fcc91=this['editor']['plugins']['get']('Annotations'),_0x1eae95=this['_suggestionToController']['get'](_0x58022f),_0x3be69=_0x1eae95['view'],_0x35a110=_0x3fcc91['getByInnerView'](_0x3be69);_0x3b1051['_unbindEditors'](_0x3be69),_0x35a110&&_0x3fcc91['remove'](_0x35a110),this['_suggestionToController']['delete'](_0x58022f),this['_viewToController']['delete'](_0x3be69),_0x1eae95['destroy']();}['_updateController'](_0x7d6f5a){if(!_0x7d6f5a['isInContent']||!this['_suggestionToController']['has'](_0x7d6f5a))return;const _0x41ca2e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29599e=this['_suggestionToController']['get'](_0x7d6f5a),_0x26801f=_0x7d6f5a['getAllAdjacentSuggestions']();_0x29599e['view']['descriptionParts']=_0x41ca2e['descriptionFactory']['getDescriptions'](_0x26801f);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x2717db,(_0x44dfeb,_0x179a23)=>{const _0x45e65b=this['editor']['plugins']['get'](k),_0x1d496e=this['editor']['plugins']['get'](p);if(!_0x1d496e['activeMarkers']['length'])return;const {id:_0x36528e}=_0x1d496e['_splitMarkerName'](_0x1d496e['activeMarkers'][0x0]),_0x1cec11=_0x45e65b['getSuggestion'](_0x36528e);_0x1cec11&&(this['_suggestionToController']['get'](_0x1cec11)['view']['focus'](),_0x179a23());});}['destroy'](){for(const _0x6c5b28 of this['_suggestionToController']['keys']())this['_destroyController'](_0x6c5b28);for(const _0x5cfe7e of this['_annotationViews']['values']())_0x5cfe7e['mainView']['destroy']();super['destroy']();}}function he(_0x114d3f){return'model'in _0x114d3f;}class k extends _0x5b3081{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x35d4d9){this['editor']['plugins']['get'](p)['adapter']=_0x35d4d9;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x7af505){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x7af505);}['getSuggestions']({skipNotAttached:_0xa28157=!0x1,toJSON:_0x33f77c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xa28157,'toJSON':_0x33f77c});}['getSuggestion'](_0x1b92c3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1b92c3);}}const T=['Pagination'];class P extends _0x5b3081{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x41445e=this['editor'];if(_0x41445e['config']['define']('trackChangesData.editorCreator',_0x412f55=>{const _0x3043d6=_0x41445e['model']['document']['getRootNames']()['reduce']((_0x2e603c,_0x3fed3a)=>(_0x2e603c[_0x3fed3a]='',_0x2e603c),{});return _0x41445e['constructor']['create'](_0x3043d6,_0x412f55);}),'function'!=typeof _0x41445e['config']['get']('trackChangesData')['editorCreator'])throw new _0x2911cb('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x51d882){return N(this['editor'],!0x0,_0x51d882);}['getDataWithDiscardedSuggestions'](_0x1ff119){return N(this['editor'],!0x1,_0x1ff119);}}class D extends _0x5b3081{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x22984d){super(_0x22984d),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(_0x4118b9){return void 0x0!==_0x4118b9['getRootsAttributes'];}async function N(_0x3b7f6b,_0x3d29ed,_0x512c0f){const _0x25ef3a=_0x302a98(_0x3b7f6b,T);_0x25ef3a['plugins']['push'](p,D),_0x25ef3a['rootsAttributes']=v(_0x3b7f6b)?_0x3b7f6b['getRootsAttributes']():void 0x0;const _0x463230=document['createDocumentFragment'](),_0x100ce7=_0x3b7f6b['config']['get']('trackChangesData')['editorCreator'],_0x1d57c9=await _0x100ce7(_0x25ef3a,()=>function(_0x1b50a3){const _0x2eedaf=document['createElement']('div');return _0x1b50a3['appendChild'](_0x2eedaf),_0x2eedaf;}(_0x463230));!function(_0x26d087,_0x587217){const _0x3cac5f=_0x26d087['model']['document']['getRootNames']()['reduce']((_0x41e1ad,_0x29c739)=>(_0x41e1ad[_0x29c739]=_0x26d087['data']['get']({'rootName':_0x29c739}),_0x41e1ad),{}),_0x1c585f=_0x26d087['plugins']['get']('Users')['users']['map'](_0x1af211=>({'id':_0x1af211['id'],'name':_0x1af211['name']})),_0xf0c799=_0x26d087['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xd923c3=_0x26d087['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1074d2=_0x587217['plugins']['get']('Users'),_0x314300=_0x587217['plugins']['get']('TrackChangesEditing'),_0x49b08f=_0x587217['plugins']['get']('CommentsRepository');for(const _0x1c502c of _0x1c585f)_0x1074d2['getUser'](_0x1c502c['id'])||_0x1074d2['addUser'](_0x1c502c);_0x1074d2['me']||_0x1074d2['useAnonymousUser']();for(const _0x36cf54 of _0xd923c3)_0x49b08f['addCommentThread'](_0x36cf54);for(const _0xb5abf6 of _0xf0c799)_0x314300['addSuggestionData'](_0xb5abf6);_0x587217['data']['set'](_0x3cac5f);}(_0x3b7f6b,_0x1d57c9),_0x1d57c9['execute'](_0x3d29ed?'acceptAllSuggestions':'discardAllSuggestions');const _0x26b98f=v(_0x1d57c9)?_0x1d57c9['getFullData'](_0x512c0f):_0x1d57c9['data']['get'](_0x512c0f);return await _0x1d57c9['destroy'](),_0x26b98f;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x41808b,PendingActions as _0xca815a,icons as _0x2ea63f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x29601a,ObservableMixin as _0x270599,uid as _0x55ea85,insertToPriorityArray as _0xa170c7,priorities as _0x21fa8f,logWarning as _0x395560,getEnvKeystrokeText as _0x34dd89,FocusTracker as _0x32f18f,KeystrokeHandler as _0x494532,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x343ad4,View as _0x2931ee,ViewCollection as _0x367518,FocusCycler as _0x1a96ba,ViewModel as _0x53b458,createDropdown as Qt,SplitButtonView as _0x423eb5,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x42c151}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x34d895,hashObject as _0x253184,surroundingMarkersDetector as _0x5e2a98,ENTER_THREAD_KEYSTROKE as _0x1b5dc1,AriaDescriptionView as _0x139a33,setupThreadKeyboardNavigation as _0x269137,trimHtml as _0x46a6bb,UserView as _0x4a3f76,LateFocusButtonView as _0x15d6b1,getDateTimeFormatter as _0x598049,getAllMarkersDomElementsSorted as _0x48b9ad,sanitizeEditorConfig as _0x2da75a}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x12ec43,LiveRange as _0x36e74e,LivePosition as _0x5622ca}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x134fed,toWidget as _0x1368ee}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x331f41,set as _0x40bc7b,isEqual as _0x3d7bff,unset as _0x526acd,omit as Tt}from'lodash-es';import{Delete as _0x40c402,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2cfd79,ShiftEnter as _0x242e72}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3ae1bd,_0x82c8c7){super(_0x3ae1bd),this['_enabledCommands']=_0x82c8c7,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 _0x4b495e of this['editor']['commands']['commands']())_0x4b495e['affectsData']&&!this['_enabledCommands']['has'](_0x4b495e)&&_0x4b495e['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1d5923 of this['editor']['commands']['commands']())_0x1d5923['affectsData']&&!this['_enabledCommands']['has'](_0x1d5923)&&_0x1d5923['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0xd6b4a9,_0x754a9e){super(_0xd6b4a9),this['_suggestions']=_0x754a9e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x93f7dd){const _0x5bc224=this['_suggestions']['get'](_0x93f7dd);if(!_0x5bc224)throw new _0x29601a('track-changes-accept-suggestion-not-found',this);const _0x3ec0fe=_0x5bc224['getRanges']();this['editor']['model']['canEditAt'](_0x3ec0fe)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5bc224);}}class R extends ts{['_suggestions'];constructor(_0x4123e,_0x431d17){super(_0x4123e),this['_suggestions']=_0x431d17,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x396a0f){const _0x3c76d6=this['_suggestions']['get'](_0x396a0f);if(!_0x3c76d6)throw new _0x29601a('track-changes-discard-suggestion-not-found',this);const _0x5ddda4=_0x3c76d6['getRanges']();this['editor']['model']['canEditAt'](_0x5ddda4)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3c76d6);}}function ls(_0x44e729,_0x3bdf0c){let _0x4af018='';return _0x4af018+=_0x44e729['split']('*')['map']((_0x443e91,_0x224754)=>_0x224754%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x443e91)+'</span>':nn(_0x443e91))['join'](''),_0x3bdf0c&&(_0x4af018+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3bdf0c['value']+'\x22\x20title=\x22'+_0x3bdf0c['title']+'\x22></span>'),_0x4af018;}function nn(_0x2119fc){const _0x577e48=document['createElement']('span');return _0x577e48['innerText']=_0x2119fc,_0x577e48['innerHTML'];}function ss(_0x4399bb){return _0x4399bb['sort']((_0x18ebf4,_0x50506f)=>'deletion'==_0x18ebf4['type']&&'deletion'!=_0x50506f['type']?-0x1:'deletion'!=_0x18ebf4['type']&&'deletion'==_0x50506f['type']?0x1:0x0);}function to(_0x379ecf,_0x49af03){let _0x845435,_0x3db971=0x0;const _0x5e2033=[],_0x5be5e1=_0x49af03['schema'];for(;_0x3db971<_0x379ecf['length'];){const _0x57831d=_0x379ecf[_0x3db971],_0x5a48e8=_0x379ecf[_0x3db971+0x1];_0x845435||(_0x845435=_0x49af03['createPositionBefore'](_0x57831d)),on(_0x49af03,_0x57831d,_0x5a48e8)||(_0x5e2033['push'](_0x49af03['createRange'](_0x845435,_0x5be5e1['isObject'](_0x57831d)?_0x49af03['createPositionAfter'](_0x57831d):_0x49af03['createPositionAt'](_0x57831d,'end'))),_0x845435=null),_0x3db971++;}return _0x5e2033;}function on(_0x34c31b,_0x2b11f8,_0x512062){if(!_0x512062)return!0x1;const _0x1bd3df=_0x34c31b['createPositionAfter'](_0x2b11f8),_0x1771be=_0x34c31b['createPositionBefore'](_0x512062);return _0x1bd3df['isTouching'](_0x1771be);}function rs(_0x2b5548,_0x2877ad,_0x409ac2){for(;_0x409ac2['length'];){const _0x479546=_0x409ac2['splice'](0x0,0x64);_0x2b5548['change'](()=>{for(const _0x58d54e of _0x479546)_0x58d54e['isInContent']&&_0x2877ad['execute'](_0x58d54e['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x2f398d,_0x3abf72,_0x5becec){super(_0x2f398d),this['_command']=_0x3abf72,this['_suggestions']=_0x5becec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xb66436=Array['from'](this['_suggestions']['values']())['some'](_0x43418c=>_0x43418c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xb66436;}['execute'](){const _0x582a2f=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3a42c4 of _0x582a2f){const _0x563cee=_0x3a42c4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x563cee))return;}rs(this['editor']['model'],this['_command'],_0x582a2f);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xd2e008,_0x2273e1,_0xa446c8){super(_0xd2e008),this['_command']=_0x2273e1,this['_suggestions']=_0xa446c8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x218441=this['editor']['model']['document']['selection'],_0x53ead2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x38b4b9,_0x6ed5af){const _0xfecfc8=Array['from'](_0x38b4b9['getRanges']()),_0x1d847d=new Set();for(const _0x4e6c17 of _0x6ed5af)if(_0x4e6c17['isInContent']){for(const _0xedd0d9 of _0xfecfc8)for(const _0x368b42 of _0x4e6c17['getRanges']())(_0xedd0d9['isIntersecting'](_0x368b42)||_0x38b4b9['isCollapsed']&&!_0x4e6c17['isMultiRange']&&_0x4e6c17['next']&&_0x368b42['end']['isTouching'](_0xedd0d9['start']))&&_0x1d847d['add'](_0x4e6c17);}return _0x1d847d;}(_0x218441,_0x53ead2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x55389b=ss(Array['from'](this['_selectedSuggestions']));for(const _0xb82f3d of _0x55389b){const _0x48823c=_0xb82f3d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x48823c))return;}rs(this['editor']['model'],this['_command'],_0x55389b);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x270599(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4f9cfa,_0x441548){super(),this['id']=_0x441548['id'],this['type']=_0x441548['type'],this['subType']=_0x441548['subType']||null,this['author']=_0x441548['author'],this['creator']=_0x441548['creator']||_0x441548['author'],this['isExternal']=Boolean(_0x441548['attributes']&&_0x441548['attributes']['@external']),this['data']=null,this['_model']=_0x4f9cfa,this['_onAccept']=_0x441548['onAccept'],this['_onDiscard']=_0x441548['onDiscard'],this['_onAttributesChange']=_0x441548['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x441548['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 _0x231c69=this;for(;_0x231c69['previous'];)_0x231c69=_0x231c69['previous'];return _0x231c69;}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'](_0x35806d){this['_markerNames']['add'](_0x35806d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44e145=>this['_model']['markers']['get'](_0x44e145))['filter'](_0x56026f=>_0x56026f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1edf17=>{for(const _0x413336 of this['getMarkers']())_0x1edf17['removeMarker'](_0x413336);}),this['_markerNames']['clear']();}['removeMarker'](_0x5d7100){this['_model']['change'](_0x38cba7=>{_0x38cba7['removeMarker'](_0x5d7100);}),this['_markerNames']['delete'](_0x5d7100);}['addRange'](_0x598828){const _0x321fa0='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x321fa0),this['_model']['change'](_0x2b57d7=>{_0x2b57d7['addMarker'](_0x321fa0,{'range':_0x598828,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x445ecf){for(const _0x1aea13 of this['getRanges']())if(_0x1aea13['isIntersecting'](_0x445ecf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3743f9=>_0x3743f9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5e3762,_0x48cb35)=>[..._0x5e3762,..._0x48cb35['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x284ff6=this['getRanges']();if(0x1!=_0x284ff6['length'])return null;const _0x179a5d=_0x284ff6[0x0],_0x599ab1=_0x179a5d['start']['nodeAfter'],_0x11993b=_0x179a5d['end']['nodeBefore'];return _0x599ab1 instanceof _0x12ec43?_0x599ab1!=_0x11993b?null:_0x599ab1: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 _0x4664b8=[];let _0x1a346c=this['head'];for(;_0x1a346c;)_0x4664b8['push'](_0x1a346c),_0x1a346c=_0x1a346c['next'];return _0x4664b8;}['setAttribute'](_0xd4ab1d,_0x3e7622){const _0x5a520b=_0x331f41(this['attributes']);_0x40bc7b(_0x5a520b,_0xd4ab1d,_0x3e7622),_0x3d7bff(_0x5a520b,this['attributes'])||(this['attributes']=_0x5a520b,this['_onAttributesChange'](_0x5a520b));}['removeAttribute'](_0x49a795){const _0x1cc748=_0x331f41(this['attributes']);_0x526acd(_0x1cc748,_0x49a795),_0x3d7bff(_0x1cc748,this['attributes'])||(this['attributes']=_0x1cc748,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 _0x55ea85()['substr'](0x1,0x5);}}function o(_0x50735a,_0x31b263,_0x115a6d){const t=_0x50735a['t'];switch(_0x31b263){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',_0x115a6d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x115a6d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x115a6d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x115a6d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x115a6d);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',_0x115a6d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x115a6d);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',_0x115a6d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x115a6d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x115a6d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x115a6d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x115a6d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x115a6d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x115a6d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x115a6d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x115a6d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x115a6d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x115a6d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x115a6d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x115a6d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x115a6d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x115a6d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x115a6d);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'},_0x115a6d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x115a6d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x115a6d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x115a6d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x115a6d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x115a6d);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'},_0x115a6d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x115a6d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x115a6d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x115a6d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x115a6d);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'},_0x115a6d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x115a6d);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'},_0x115a6d);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'},_0x115a6d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x115a6d);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'},_0x115a6d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x115a6d);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'},_0x115a6d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x115a6d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x115a6d);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x115a6d);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'},_0x115a6d);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'},_0x115a6d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x115a6d);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x115a6d);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x115a6d);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x115a6d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x31b263;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x24a616,_0x913e29){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x24a616,this['_locale']=_0x913e29;}['getDescriptions'](_0x113c98){const _0x3c171f=[],_0x527916=new Set(),_0x59ea55=new Set();for(let _0x16f4b0=0x0;_0x16f4b0<_0x113c98['length'];_0x16f4b0++){const _0x5f56d6=_0x113c98[_0x16f4b0];if(!_0x5f56d6['isInContent'])continue;const _0x331d46=this['_handleCustomCallbackDescription'](_0x5f56d6);if(_0x331d46){if(null!=_0x5f56d6['subType']){if(_0x527916['has'](_0x5f56d6['subType']))continue;_0x527916['add'](_0x5f56d6['subType']);}_0x3c171f['push'](_0x331d46);}else{if('attribute'!=_0x5f56d6['type'])'insertion'!=_0x5f56d6['type']&&'deletion'!=_0x5f56d6['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3c171f,_0x5f56d6,_0x113c98[_0x16f4b0+0x1]);else{const _0x5325e6=_0x5f56d6['data']['key'];if(_0x59ea55['has'](_0x5325e6))continue;_0x59ea55['add'](_0x5f56d6['data']['key']),_0x5325e6==m?this['_handleRenameSuggestionDescription'](_0x3c171f,_0x5f56d6):this['_handleAttributeSuggestionDescription'](_0x3c171f,_0x5f56d6);}}}return this['_resolveDescriptionItems'](_0x3c171f);}['registerDescriptionCallback'](_0x52ff5d){this['_customCallbacks']['push'](_0x52ff5d);}['registerElementLabel'](_0x5ddc63,_0x567696,_0x47a4e9=_0x21fa8f['normal']){'function'==typeof _0x5ddc63?_0xa170c7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5ddc63,'label':_0x567696,'priority':_0x47a4e9}):this['_itemLabels']['set'](_0x5ddc63,_0x567696);}['registerAttributeLabel'](_0x5a94b9,_0x4afa60){this['_attributeLabels']['set'](_0x5a94b9,_0x4afa60);}['getItemLabel'](_0x244a29,_0x5bbef2=0x1){let _0x533362;for(const _0x368370 of this['_itemLabelsCallbacks'])if(_0x368370['matchingCallback'](_0x244a29)){_0x533362=_0x368370['label'];break;}return _0x533362||(_0x533362=this['_itemLabels']['get'](_0x244a29['name'])),_0x533362?_0x533362(_0x5bbef2):0x1!==_0x5bbef2?_0x5bbef2+'\x20'+_0x244a29['name']+'s':''+_0x244a29['name'];}['_addDescriptionItems'](_0x17f9af,_0x18a8d5){const _0xab9a1d=_0x18a8d5['getFirstRange']()['getWalker'](),_0x11a443='insertion'==_0x18a8d5['type']?'add':'remove';for(const _0x5e6ce9 of _0xab9a1d){const _0x26cef0=_0x5e6ce9['item'],_0x19ba46=_0x17f9af[_0x17f9af['length']-0x1];if(_0x26cef0['is']('$textProxy'))_0x19ba46&&_0x19ba46['type']['indexOf']('Container')>-0x1&&_0x17f9af['pop'](),_0x19ba46&&'text'==_0x19ba46['type']?_0x19ba46[_0x11a443]+=_0x26cef0['data']:_0x17f9af['push']({'type':'text','add':'add'==_0x11a443?_0x26cef0['data']:'','remove':'remove'==_0x11a443?_0x26cef0['data']:''});else{if(this['_schema']['isObject'](_0x26cef0)){const _0x54f26a=_0x26cef0;if(_0x19ba46&&_0x19ba46['type']['indexOf']('Container')>-0x1&&_0x17f9af['pop'](),'elementEnd'==_0x5e6ce9['type'])continue;_0x19ba46&&_0x19ba46['type']==_0x11a443+'Object'&&_0x19ba46['element']['name']==_0x54f26a['name']?_0x19ba46['quantity']++:_0x17f9af['push']({'type':_0x11a443+'Object','element':_0x54f26a,'quantity':0x1}),_0xab9a1d['skip'](_0x3a1bc8=>!('elementEnd'==_0x3a1bc8['type']&&_0x3a1bc8['item']==_0x26cef0));}else{if(this['_schema']['checkChild'](_0x26cef0,'$text')||_0x26cef0['is']('element','softBreak')){const _0x807502=_0x26cef0;if('add'==_0x11a443&&'elementStart'==_0x5e6ce9['type']||'remove'==_0x11a443&&'elementEnd'==_0x5e6ce9['type'])continue;if(_0x19ba46&&-0x1==_0x19ba46['type']['indexOf']('Container')){'text'==_0x19ba46['type']&&(_0x19ba46[_0x11a443]+='\x0a');continue;}let _0x44e775;if(_0x44e775='add'==_0x11a443?_0x807502['nextSibling']&&!this['_schema']['isObject'](_0x807502['nextSibling'])?_0x807502['nextSibling']:null:_0x807502['previousSibling']&&!this['_schema']['isObject'](_0x807502['previousSibling'])?_0x807502['previousSibling']:null,_0x807502['isEmpty']||_0x44e775&&_0x44e775['isEmpty']){const _0x12a055=_0x44e775&&_0x44e775['isEmpty']?_0x44e775:_0x807502;_0x19ba46&&_0x19ba46['type']==_0x11a443+'EmptyContainer'&&_0x19ba46['element']['name']==_0x12a055['name']?_0x19ba46['quantity']++:_0x17f9af['push']({'type':_0x11a443+'EmptyContainer','element':_0x12a055,'quantity':0x1});}else _0x17f9af['push']({'type':_0x11a443+'Container','element':_0x807502});}}}}}['_resolveDescriptionItems'](_0x3ff030){const _0x383d59=this['_locale'],_0x4e002d=[],_0x528764=[],_0x44c844=[];for(const _0x24dc13 of _0x3ff030)switch(_0x24dc13['type']){case'text':if(_0x24dc13['add']=_0x24dc13['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x24dc13['remove']=_0x24dc13['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x24dc13['add']&&''!=_0x24dc13['remove']){_0x4e002d['push']({'type':'replace','content':o(_0x383d59,'REPLACE_TEXT',['\x22'+_0x24dc13['remove']+'\x22','\x22'+_0x24dc13['add']+'\x22'])});continue;}if(null!=_0x24dc13['add']['match'](/^ +$/)){_0x4e002d['push']({'type':'insertion','content':o(_0x383d59,'*Insert:*\x20%0',o(_0x383d59,'ELEMENT_SPACE',_0x24dc13['add']['length']))});continue;}if(null!=_0x24dc13['remove']['match'](/^ +$/)){_0x4e002d['push']({'type':'deletion','content':o(_0x383d59,'*Remove:*\x20%0',o(_0x383d59,'ELEMENT_SPACE',_0x24dc13['remove']['length']))});continue;}if(''!=_0x24dc13['add']){_0x4e002d['push']({'type':'insertion','content':o(_0x383d59,'*Insert:*\x20%0','\x22'+_0x24dc13['add']+'\x22')});continue;}_0x4e002d['push']({'type':'deletion','content':o(_0x383d59,'*Remove:*\x20%0','\x22'+_0x24dc13['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4e002d['push']({'type':'insertion','content':o(_0x383d59,'*Insert:*\x20%0',this['getItemLabel'](_0x24dc13['element'],_0x24dc13['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4e002d['push']({'type':'deletion','content':o(_0x383d59,'*Remove:*\x20%0',this['getItemLabel'](_0x24dc13['element'],_0x24dc13['quantity']))});continue;case'addContainer':_0x4e002d['push']({'type':'insertion','content':o(_0x383d59,'*Split:*\x20%0',this['getItemLabel'](_0x24dc13['element'],_0x24dc13['quantity']))});continue;case'removeContainer':_0x4e002d['push']({'type':'deletion','content':o(_0x383d59,'*Merge:*\x20%0',this['getItemLabel'](_0x24dc13['element'],_0x24dc13['quantity']))});continue;case'addFormat':_0x528764['push'](_0x24dc13['key']);continue;case'removeFormat':_0x44c844['push'](_0x24dc13['key']);continue;default:_0x4e002d['push'](_0x24dc13);}if(_0x528764['length']){const _0x50d2d0=_0x528764['map'](_0x236707=>this['_attributeLabels']['has'](_0x236707)?this['_attributeLabels']['get'](_0x236707):_0x236707)['join'](',\x20');_0x4e002d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x50d2d0)});}if(_0x44c844['length']){const _0x1403e9=_0x44c844['map'](_0x593f03=>this['_attributeLabels']['has'](_0x593f03)?this['_attributeLabels']['get'](_0x593f03):_0x593f03)['join'](',\x20');_0x4e002d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1403e9)});}return _0x4e002d;}['_handleCustomCallbackDescription'](_0x5b542c){for(const _0x1c8ad3 of this['_customCallbacks']){const _0x3207bc=_0x1c8ad3(_0x5b542c);if(_0x3207bc&&'type'in _0x3207bc)return _0x3207bc;}}['_handleAttributeSuggestionDescription'](_0x4df63b,_0x4f8600){const _0x525902=_0x4f8600['data'],_0x35d098=void 0x0===_0x525902['newValue']?'removeFormat':'addFormat';_0x4df63b['push']({'type':_0x35d098,'key':_0x525902['key']});}['_handleRenameSuggestionDescription'](_0x341c2e,_0x251d74){_0x341c2e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x251d74['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4e2841,_0x5294cb,_0x59171c){if(this['_addDescriptionItems'](_0x4e2841,_0x5294cb),_0x59171c&&_0x59171c['getFirstRange']()&&!_0x5294cb['getFirstRange']()['end']['isEqual'](_0x59171c['getFirstRange']()['start'])){const _0x796b80=_0x4e2841[_0x4e2841['length']-0x1],_0x386da7='insertion'==_0x5294cb['type']?'add':'remove';_0x796b80&&'text'==_0x796b80['type']&&(_0x796b80[_0x386da7]+='\x0a');}}}class V extends _0x41808b{['afterInit'](){const _0x1144f3=this['editor'],_0x3db738=_0x1144f3['plugins']['get']('TrackChangesEditing');_0x1144f3['commands']['get']('showAIAssistant')&&_0x3db738['enableCommand']('showAIAssistant');}}class U extends _0x41808b{['afterInit'](){const _0x2d7876=this['editor'],_0x232508=_0x2d7876['locale'];if(!_0x2d7876['plugins']['has']('AlignmentEditing'))return;const _0x2f8dd0=_0x2d7876['plugins']['get']('TrackChangesEditing');_0x2f8dd0['enableDefaultAttributesIntegration']('alignment'),_0x2f8dd0['registerBlockAttribute']('alignment'),_0x2f8dd0['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x232508,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a9293=this['editor'],_0x9e5f66=_0x4a9293['locale'];_0x4a9293['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc25b=>{if('formatBlock'!=_0x3dc25b['type'])return;const {data:_0x292cac}=_0x3dc25b;if(_0x292cac&&'alignment'==_0x292cac['commandName']){const _0x43b27a=_0x292cac['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x9e5f66,'*Format:*\x20%0',function(_0x3b4bfb){switch(_0x3b4bfb){case'left':return o(_0x9e5f66,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x9e5f66,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x9e5f66,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x9e5f66,'FORMAT_JUSTIFY_TEXT');}}(_0x43b27a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x41808b{['afterInit'](){const _0x4f084e=this['editor'],_0x3923c1=_0x4f084e['plugins']['get']('TrackChangesEditing'),_0x5298f8=_0x4f084e['locale'];for(const _0x552a0f of ti){if(!_0x4f084e['plugins']['has'](_0x552a0f))continue;const _0x4b05fe=_0x552a0f['slice'](0x0,-0x7)['toLowerCase'](),_0x3ca3ec='FORMAT_'+_0x4b05fe['toUpperCase']();_0x3923c1['enableDefaultAttributesIntegration'](_0x4b05fe),_0x3923c1['registerInlineAttribute'](_0x4b05fe),_0x3923c1['descriptionFactory']['registerAttributeLabel'](_0x4b05fe,o(_0x5298f8,_0x3ca3ec));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43c223=this['editor'],_0x349386=_0x43c223['locale'],_0x313e02=_0x43c223['plugins']['get']('TrackChangesEditing');function _0x2279c9(_0x3dd428,_0x392d23){_0x313e02['descriptionFactory']['registerDescriptionCallback'](_0x277a94=>{if('formatInline'!=_0x277a94['type'])return;const {data:_0x2f19cc}=_0x277a94;return _0x2f19cc&&_0x2f19cc['commandName']===_0x3dd428?_0x2f19cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x349386,'*Format:*\x20%0',_0x392d23)}:{'type':'format','content':o(_0x349386,'*Remove\x20format:*\x20%0',_0x392d23)}:void 0x0;});}_0x2279c9('bold',o(_0x349386,'FORMAT_BOLD')),_0x2279c9('italic',o(_0x349386,'FORMAT_ITALIC')),_0x2279c9('underline',o(_0x349386,'FORMAT_UNDERLINE')),_0x2279c9('code',o(_0x349386,'FORMAT_CODE')),_0x2279c9('strikethrough',o(_0x349386,'FORMAT_STRIKETHROUGH')),_0x2279c9('subscript',o(_0x349386,'FORMAT_SUBSCRIPT')),_0x2279c9('superscript',o(_0x349386,'FORMAT_SUPERSCRIPT'));}}class F extends _0x41808b{['afterInit'](){const _0x5eb84f=this['editor'],_0x48eb46=_0x5eb84f['locale'];if(!_0x5eb84f['plugins']['has']('BlockQuoteEditing'))return;const _0x64474d=_0x5eb84f['plugins']['get']('TrackChangesEditing'),_0x5aee75=this['editor']['commands']['get']('blockQuote');_0x64474d['enableCommand']('blockQuote',(_0x24702f,_0x5202fd={})=>{const _0x46a8b9=this['editor']['model']['document']['selection'],_0x2093c1=_0x5202fd&&void 0x0!==_0x5202fd['forceValue']?_0x5202fd['forceValue']:!_0x5aee75['value'];let _0x1ac1c4=[];if(_0x2093c1){const _0x4414ab=Array['from'](_0x46a8b9['getSelectedBlocks']())['filter'](_0x1820c9=>oo(_0x1820c9)||function(_0x31fcdb,_0x20b084){const _0x3f9ff0=_0x20b084['checkChild'](_0x31fcdb['parent'],'blockQuote'),_0x289ddc=_0x20b084['checkChild'](['$root','blockQuote'],_0x31fcdb);return _0x3f9ff0&&_0x289ddc;}(_0x1820c9,this['editor']['model']['schema']));_0x1ac1c4=to(_0x4414ab,_0x5eb84f['model']);}else{const _0x55f27b=Array['from'](_0x46a8b9['getSelectedBlocks']())['filter'](_0x156e66=>oo(_0x156e66));_0x1ac1c4=to(_0x55f27b,_0x5eb84f['model']);}_0x5eb84f['model']['change'](()=>{for(const _0xb27a76 of _0x1ac1c4)_0x64474d['markBlockFormat'](_0xb27a76,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2093c1}]});});}),_0x64474d['descriptionFactory']['registerDescriptionCallback'](_0x20242c=>{const {data:_0x11d711}=_0x20242c;if(_0x11d711&&'blockQuote'==_0x11d711['commandName']){const _0x23b807=o(_0x48eb46,'ELEMENT_BLOCK_QUOTE');return _0x11d711['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48eb46,'*Set\x20format:*\x20%0',_0x23b807)}:{'type':'format','content':o(_0x48eb46,'*Remove\x20format:*\x20%0',_0x23b807)};}});}}function oo(_0x2b53be){return'blockQuote'==_0x2b53be['parent']['name'];}class L extends _0x41808b{['afterInit'](){const _0x3cfa56=this['editor'];_0x3cfa56['plugins']['has']('CaseChange')&&(_0x3cfa56['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cfa56['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cfa56['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x41808b{['afterInit'](){const _0x4cf5a0=this['editor'];_0x4cf5a0['commands']['get']('ckbox')&&_0x4cf5a0['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x41808b{['afterInit'](){const _0x3cdd47=this['editor'];if(!_0x3cdd47['plugins']['has']('CodeBlock'))return;const _0xee68f2=_0x3cdd47['plugins']['get']('TrackChangesEditing'),_0x2e6206=_0x3cdd47['locale'],_0x3b2722=_0x3cdd47['config']['get']('codeBlock')['languages'],_0x13a620=_0x3cdd47['commands']['get']('codeBlock');_0xee68f2['enableCommand']('indentCodeBlock'),_0xee68f2['enableCommand']('outdentCodeBlock'),_0xee68f2['enableCommand']('codeBlock',(_0x186e0d,_0x31385c={})=>{const _0x55e437=_0x3cdd47['model'],_0x141217=_0x3cdd47['model']['document']['selection'],_0x358ae8=_0x31385c&&void 0x0!==_0x31385c['forceValue']?_0x31385c['forceValue']:!_0x13a620['value'];let _0x59c6a0;_0x31385c['language']||(_0x31385c['language']=_0x3b2722[0x0]['language']),_0x59c6a0=_0x358ae8?Array['from'](_0x141217['getSelectedBlocks']())['filter'](_0xb5f42f=>eo(_0xb5f42f)||function(_0x18409d,_0xd6628a){if(_0x18409d['is']('rootElement')||_0xd6628a['isLimit'](_0x18409d))return!0x1;return _0xd6628a['checkChild'](_0x18409d['parent'],'codeBlock');}(_0xb5f42f,_0x55e437['schema'])):Array['from'](_0x141217['getSelectedBlocks']())['filter'](_0x483806=>eo(_0x483806));const _0x4936d5=to(_0x59c6a0,_0x55e437);_0x55e437['change'](()=>{for(const _0x215447 of _0x4936d5)_0xee68f2['markBlockFormat'](_0x215447,{'commandName':'codeBlock','commandParams':[{..._0x31385c,'forceValue':_0x358ae8}],'formatGroupId':'blockName'});});}),(_0xee68f2['descriptionFactory']['registerElementLabel']('codeBlock',_0x1a6478=>o(_0x2e6206,'ELEMENT_CODE_BLOCK',_0x1a6478)),_0xee68f2['descriptionFactory']['registerDescriptionCallback'](_0x12a02f=>{if('formatBlock'!=_0x12a02f['type'])return;const _0x4d52cc=_0x2e6206['t'],{data:_0x28d86c}=_0x12a02f;if(!_0x28d86c||'codeBlock'!=_0x28d86c['commandName'])return;const _0x5e3a3f=_0x28d86c['commandParams'][0x0]['language'],_0x157aaa=_0x4d52cc(_0x3b2722['find'](_0xdf6b79=>_0xdf6b79['language']===_0x5e3a3f)['label'])['toLowerCase']();return _0x28d86c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e6206,'*Set\x20format:*\x20%0',o(_0x2e6206,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x157aaa+')')}:{'type':'format','content':o(_0x2e6206,'*Remove\x20format:*\x20%0',o(_0x2e6206,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x295798){return'codeBlock'==_0x295798['name'];}class q extends _0x41808b{['afterInit'](){const _0x2e88c2=this['editor'];if(!_0x2e88c2['plugins']['has']('CommentsEditing'))return;_0x2e88c2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x361a3b,_0x5296ed,_0x369656){const _0x1b36bb=[];for(const _0x1726d0 of _0x5296ed['getItems']())_0x1726d0['hasAttribute'](_0x361a3b)&&_0x1b36bb['push'](_0x369656['createRangeOn'](_0x1726d0));return _0x1b36bb;}function _e(_0x163388,_0x563ea1,{showActiveMarker:_0x296b69=!0x0}={}){const _0x1d3853=_0x163388['plugins']['get']('TrackChangesEditing');return(_0x2e753c,_0x9525f9,_0x3f95e2)=>{if(!_0x3f95e2['consumable']['test'](_0x9525f9['markerRange'],_0x2e753c['name']))return;const _0x54f46f=_0x9525f9['markerRange']['getWalker'](),_0x53299b=_0x9525f9['markerRange']['start'],_0x3b1a93=_0x163388['model']['schema'];let _0xf6d2ff=null,_0xa2cf4b=null,_0x9ca4b1=!0x1,_0x33bd0e=!0x1;for(const _0x327f58 of _0x54f46f){const _0x1acb24=_0x327f58['item'];_0x9ca4b1=_0x9ca4b1||_0x3b1a93['isContent'](_0x1acb24);const _0x16bfb9=_0x3f95e2['mapper']['toViewElement'](_0x1acb24);if(_0x16bfb9&&_0x16bfb9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x327f58['type']&&(_0x3b1a93['isBlock'](_0x1acb24)&&!_0x3b1a93['isLimit'](_0x1acb24)&&(_0x1acb24['nextSibling']||_0x53299b['isAtEnd']?_0xf6d2ff&&_0xf6d2ff['parent']==_0x1acb24||(_0xf6d2ff=_0x1acb24,_0x56c861(_0x327f58['previousPosition']),_0x33bd0e=!0x0):_0xa2cf4b=_0xa2cf4b||_0x327f58['previousPosition']));}function _0x56c861(_0x4dd58a){const _0xf4e7ac=_0x3f95e2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x563ea1}),_0x3864d0=_0x3f95e2['mapper']['toViewPosition'](_0x4dd58a);_0x296b69&&_0x1d3853['activeMarkers']['includes'](_0x9525f9['markerName'])&&_0x3f95e2['writer']['addClass']('ck-suggestion-marker--active',_0xf4e7ac),_0x3f95e2['writer']['insert'](_0x3864d0,_0xf4e7ac),_0x3f95e2['mapper']['bindElementToMarker'](_0xf4e7ac,_0x9525f9['markerName']);}_0x9ca4b1||_0x33bd0e||!_0xa2cf4b||_0x56c861(_0xa2cf4b);};}class z extends _0x41808b{static get['requires'](){return[_0x40c402];}['init'](){const _0x3bd3b1=this['editor'],_0x5cf19a=_0x3bd3b1['plugins']['get']('TrackChangesEditing');_0x5cf19a['enableCommand']('delete');const _0x472a22=_0x3bd3b1['commands']['get']('deleteForward');_0x5cf19a['enableCommand']('deleteForward',(_0x3bd3ad,_0x1ccc72={})=>{const _0x48f9a2=_0x3bd3b1['model']['createSelection'](_0x3bd3b1['model']['document']['selection']);_0x48f9a2['isCollapsed']&&_0x3bd3b1['model']['modifySelection'](_0x48f9a2,{'direction':'forward','unit':_0x1ccc72['unit']});const _0x3bfedb=_0x48f9a2['getFirstRange'](),_0x56cf49=_0x36e74e['fromRange'](_0x3bfedb);let _0xb449d7;_0x3bd3ad(_0x1ccc72),_0xb449d7='$graveyard'==_0x56cf49['root']['rootName']?_0x3bd3b1['model']['createRange'](_0x3bfedb['start']):_0x3bd3b1['model']['createRange'](_0x56cf49['start'],_0x56cf49['end']),_0x56cf49['detach'](),_0x3bd3b1['model']['enqueueChange'](_0x472a22['buffer']['batch'],_0x43d736=>{_0x472a22['buffer']['lock'](),_0x43d736['setSelection'](_0x43d736['createRange'](_0xb449d7['end'])),_0x472a22['buffer']['unlock']();});}),_0x3bd3b1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3bd3b1,'merge'),{'priority':'high'}),_0x3bd3b1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2eb413,_0x47d73,_0x15415f)=>{_0x15415f['options']['showSuggestionHighlights']&&_e(_0x3bd3b1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2eb413,_0x47d73,_0x15415f);},{'priority':'high'}),_0x3bd3b1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3999eb,_0xed4aee,_0x3cb020)=>{const _0x51622d=_0x3cb020['mapper']['markerNameToElements'](_0xed4aee['markerName']);if(_0x51622d){for(const _0x5c8c55 of _0x51622d)_0x5c8c55['is']('uiElement')&&(_0x3cb020['mapper']['unbindElementFromMarkerName'](_0x5c8c55,_0xed4aee['markerName']),_0x3cb020['writer']['remove'](_0x5c8c55));}},{'priority':'high'});}}class K extends _0x41808b{['afterInit'](){const _0x1889b1=this['editor'];if(!_0x1889b1['plugins']['has']('ListEditing'))return;const _0x280cd9=_0x1889b1['locale'],_0x1445a9=_0x1889b1['plugins']['get']('TrackChangesEditing'),_0x329320=_0x1889b1['plugins']['has']('TodoListEditing'),_0x4f0e59=!!_0x1889b1['config']['get']('list.multiBlock');function _0x172cd8(_0x4635c5){return{'type':'format','content':''+o(_0x280cd9,'*Set\x20format:*\x20%0',_0x4635c5)};}function _0x3155b4(_0x51e84a){return{'type':'format','content':''+o(_0x280cd9,'*Remove\x20format:*\x20%0',_0x51e84a)};}_0x1445a9['enableDefaultAttributesIntegration']('numberedList'),_0x1445a9['enableDefaultAttributesIntegration']('bulletedList'),_0x1445a9['enableDefaultAttributesIntegration']('customNumberedList'),_0x1445a9['enableDefaultAttributesIntegration']('customBulletedList'),_0x1445a9['enableDefaultAttributesIntegration']('indentList'),_0x1445a9['enableDefaultAttributesIntegration']('outdentList'),_0x1445a9['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1445a9['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1445a9['registerBlockAttribute']('listItemId'),_0x1445a9['registerBlockAttribute']('listType'),_0x1445a9['registerBlockAttribute']('listIndent'),_0x4f0e59&&(_0x1445a9['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1445a9['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x329320&&(_0x1445a9['enableDefaultAttributesIntegration']('todoList'),_0x1445a9['enableDefaultAttributesIntegration']('checkTodoList'),_0x1445a9['registerBlockAttribute']('todoListChecked'),_0x1445a9['descriptionFactory']['registerDescriptionCallback'](_0xcc37ae=>{const {data:_0x4c2535}=_0xcc37ae;if(_0x4c2535&&'todoListChecked'==_0x4c2535['key'])return{'type':'format','content':_0x4c2535['newValue']?o(_0x280cd9,'*Check\x20item*'):o(_0x280cd9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x211a56=>{if(_0x211a56['batch']['isUndo'])return!0x1;let _0x5c7d44=!0x1;const _0x39ddff=_0x1445a9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x278fe8=>'todoListChecked'===_0x1445a9['_getAttributeKey'](_0x278fe8));for(const _0x1168f0 of _0x39ddff){'todo'!=_0x1168f0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1445a9['_findSuggestions'](_0x1168f0['getFirstRange'](),'attribute')['find'](_0x5425d4=>'listType'===_0x1445a9['_getAttributeKey'](_0x5425d4['suggestion']))||(_0x211a56['removeMarker'](_0x1168f0['getFirstMarker']()),_0x5c7d44=!0x0));}return _0x5c7d44;})),_0x1445a9['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x280cd9,'FORMAT_INDENT'));const _0x2ef11a={'type':'format','content':''};_0x1445a9['descriptionFactory']['registerDescriptionCallback'](_0x148c05=>{const {data:_0x1ff689}=_0x148c05;if(!_0x1ff689||'listType'!=_0x1ff689['key'])return;let _0x512a3d=_0x148c05['head'];for(;_0x512a3d;){if(_0x512a3d['data']&&(('listStyle'==_0x512a3d['data']['key']||'listMarkerStyle'==_0x512a3d['data']['key'])&&(_0x512a3d['data']['newValue']&&'default'!=_0x512a3d['data']['newValue']||'default'!=_0x512a3d['data']['oldValue']&&!_0x1ff689['newValue'])||!_0x4f0e59&&_0x512a3d['data']['key']==m))return _0x2ef11a;_0x512a3d=_0x512a3d['next'];}if(null==_0x1ff689['newValue'])switch(_0x1ff689['oldValue']){case'bulleted':return _0x3155b4(o(_0x280cd9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3155b4(o(_0x280cd9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3155b4(o(_0x280cd9,'ELEMENT_TODO_LIST'));}switch(_0x1ff689['newValue']){case'bulleted':return _0x172cd8(o(_0x280cd9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x172cd8(o(_0x280cd9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x172cd8(o(_0x280cd9,'ELEMENT_TODO_LIST'));}}),_0x1445a9['descriptionFactory']['registerDescriptionCallback'](_0x424fbb=>{const {data:_0x4f106c}=_0x424fbb;if(_0x4f106c&&'listIndent'==_0x4f106c['key'])return null==_0x4f106c['newValue']||null==_0x4f106c['oldValue']&&0x0==_0x4f106c['newValue']?_0x2ef11a:void 0x0;}),_0x1445a9['descriptionFactory']['registerDescriptionCallback'](_0x97e51c=>{if('attribute'!=_0x97e51c['type'])return;const {data:_0x128e1d}=_0x97e51c;if(!_0x128e1d||'listItemId'!=_0x128e1d['key'])return;const _0x3bc1e3=le(_0x97e51c);return'newValue'==_0x3bc1e3?{'type':'format','content':o(_0x280cd9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3bc1e3?{'type':'format','content':o(_0x280cd9,'*Split:*\x20list\x20item')}:_0x2ef11a;}),_0x1889b1['model']['document']['registerPostFixer'](_0x218bda=>this['listItemIdFixer'](_0x218bda)),_0x1889b1['model']['document']['registerPostFixer'](_0x4f9669=>this['noTrackChangesFixer'](_0x4f9669)),_0x1889b1['model']['document']['on']('change:data',(_0x28fd71,_0x4fcf2a)=>{if(_0x4fcf2a['isUndo']||!_0x4fcf2a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x20ab40){if(_0x20ab40['batch']['isUndo']||!_0x20ab40['batch']['isLocal'])return!0x1;let _0x2ae6d1=!0x1;const _0x18e596=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc76468=>_0xc76468['data']&&'listItemId'==_0xc76468['data']['key'])['filter'](_0x57ed51=>_0x57ed51['data']['newValue']&&_0x57ed51['data']['oldValue']);for(const _0x415d08 of _0x18e596)le(_0x415d08)||(_0x20ab40['removeMarker'](_0x415d08['getFirstMarker']()),_0x2ae6d1=!0x0);return _0x2ae6d1;}['noTrackChangesFixer'](_0x56ab38){if(_0x56ab38['batch']['isUndo']||!_0x56ab38['batch']['isLocal'])return!0x1;const _0xb103a8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xb103a8['trackChangesCommand']['value'])return!0x1;let _0x1faaad=!0x1;const _0x281c10=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1f47ba=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3f03c5=>'attribute'==_0x3f03c5['type'])['filter'](_0x1fb258=>_0x281c10['includes'](_0x1fb258['attributeKey']));if(0x0==_0x1f47ba['length'])return _0x1faaad;for(const _0x30b97d of _0x1f47ba){const _0x1ec0fd=_0xb103a8['_findSuggestions'](_0x30b97d['range'],'attribute')['filter'](_0x922280=>!_0x922280['meta']['isNextTo'])['map'](_0x463a07=>_0x463a07['suggestion'])['filter'](_0xc464eb=>{const _0x51771b=_0xb103a8['_getAttributeKey'](_0xc464eb);return _0x281c10['includes'](_0x51771b);});if(_0x1ec0fd['length']){for(const _0x47a331 of _0x1ec0fd)_0x56ab38['removeMarker'](_0x47a331['getFirstMarker']());_0x1faaad=!0x0;}}return _0x1faaad;}['assureChains'](){const _0x3e020d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e6bc8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3088cd;const _0x2fb98f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1ebd9a=>{if(_0x1ebd9a['data']['oldRange']||!_0x1ebd9a['data']['newRange'])return null;if(!_0x1ebd9a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x250be7}=_0x3e020d['_splitMarkerName'](_0x1ebd9a['name']);if(!_0x3e020d['hasSuggestion'](_0x250be7))return null;const _0x6acbe2=_0x3e020d['getSuggestion'](_0x250be7);return _0x5e6bc8['includes'](_0x6acbe2['data']['key']);})['map'](_0x252925=>{const {id:_0x2315d2}=_0x3e020d['_splitMarkerName'](_0x252925['name']),_0x37b779=_0x3e020d['getSuggestion'](_0x2315d2);return _0x3088cd=_0x37b779['attributes']['groupId'],_0x37b779['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2fb98f['size'])return;const _0x2b20f7=_0x3e020d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d3ee1=>'attribute'==_0x1d3ee1['type']&&_0x1d3ee1['data']&&_0x5e6bc8['includes'](_0x1d3ee1['data']['key'])&&_0x1d3ee1['attributes']['groupId']!=_0x3088cd)['map'](_0x12de17=>({'listItem':_0x12de17['getFirstRange']()['start']['nodeAfter'],'groupId':_0x12de17['attributes']['groupId']})),_0x406fd1=new Set();for(const {groupId:_0x22ed28,listItem:_0x55b410}of _0x2b20f7)_0x2fb98f['has'](_0x55b410)&&_0x406fd1['add'](_0x22ed28);for(const _0x4bd375 of _0x3e020d['getSuggestions']())_0x406fd1['has'](_0x4bd375['attributes']['groupId'])&&_0x4bd375['setAttribute']('groupId',_0x3088cd);}['_supportLegacySuggestions'](){const _0x2114f1=this['editor'],_0x5d0340=_0x2114f1['locale'],_0x37e2da=_0x2114f1['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x37e2da['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1d6637,_0x384a8b){const _0x55a177=[];for(let _0xe2e356 of _0x1d6637)_0xe2e356['start']['nodeAfter']===_0xe2e356['end']['parent']&&(_0xe2e356=_0x2114f1['model']['createRange'](_0x2114f1['model']['createPositionAt'](_0xe2e356['start']['nodeAfter'],0x0))),_0x55a177['push'](_0xe2e356);_0x2114f1['model']['change'](_0x43d21d=>{const _0x3f44ad=_0x2114f1['model']['document']['selection'],_0x137538=Array['from'](_0x3f44ad['getRanges']())['map'](_0x47cdc6=>_0x36e74e['fromRange'](_0x47cdc6));_0x43d21d['setSelection'](_0x55a177),_0x2114f1['commands']['get'](_0x384a8b['commandName'])['refresh'](),_0x384a8b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2114f1['execute'](_0x384a8b['commandName'],..._0x384a8b['commandParams']),_0x43d21d['setSelection'](_0x137538);for(const _0x110b65 of _0x137538)_0x110b65['detach']();});}),_0x37e2da['descriptionFactory']['registerElementLabel'](function(_0x54c929){const _0xca6c8c=!_0x2114f1['model']['schema']['isObject'](_0x54c929),_0x267f73=_0x54c929['previousSibling'],_0x515c8c=_0x54c929['nextSibling'],_0x28c151=_0x54c929['getAttribute']('listItemId'),_0x29094e=!_0x267f73||_0x267f73['getAttribute']('listItemId')!==_0x28c151,_0x366e64=!_0x515c8c||_0x515c8c['getAttribute']('listItemId')!==_0x28c151;return _0xca6c8c&&Boolean(_0x28c151)&&_0x29094e&&_0x366e64;},_0x2d269c=>o(_0x5d0340,'ELEMENT_LIST_ITEM',_0x2d269c));}['_registerLegacyDescription'](){const _0x1c895d=this['editor'],_0x7a4a34=_0x1c895d['locale'];function _0x791863(_0x1496eb){const _0x53d086=_0x1c895d['commands']['get']('bulletedList')['value'],_0x4dedf1=_0x1c895d['commands']['get']('numberedList')['value'];return'numberedList'===_0x1496eb?_0x53d086:_0x4dedf1;}_0x1c895d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x95f495){if('formatBlock'!=_0x95f495['type'])return;const {data:_0x2dbffd}=_0x95f495;if(!_0x2dbffd)return;let _0xc2d559,_0x927001,_0x596277,_0x378317;switch(_0x2dbffd['commandName']){case'bulletedList':_0x596277=_0x2dbffd['commandParams'][0x0]['forceValue'],_0x378317=_0x791863(_0x2dbffd['commandName']),_0xc2d559=_0x596277?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x378317&&_0x1c895d['config']['get']('list.multiBlock')||(_0xc2d559='*Change\x20to:*\x20%0'),_0x927001={'type':'format','content':o(_0x7a4a34,_0xc2d559,o(_0x7a4a34,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x596277=_0x2dbffd['commandParams'][0x0]['forceValue'],_0x378317=_0x791863(_0x2dbffd['commandName']),_0xc2d559=_0x596277?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x378317&&_0x1c895d['config']['get']('list.multiBlock')||(_0xc2d559='*Change\x20to:*\x20%0'),_0x927001={'type':'format','content':o(_0x7a4a34,_0xc2d559,o(_0x7a4a34,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xc2d559='*Indent:*\x20%0',_0x927001={'type':'format','content':o(_0x7a4a34,_0xc2d559,o(_0x7a4a34,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xc2d559=function(_0x8b721f){const _0xf9e029=_0x8b721f['getFirstRange']();let _0x2b4dab=_0xf9e029['start']['nodeAfter'];for(;_0x2b4dab&&_0xf9e029['containsItem'](_0x2b4dab);){if(_0x2b4dab['getAttribute']('listIndent')>0x0)return!0x1;_0x2b4dab=_0x2b4dab['nextSibling'];}return!0x0;}(_0x95f495)?o(_0x7a4a34,'*Format:*\x20remove\x20from\x20%0',o(_0x7a4a34,function(_0x51156f){return'ELEMENT_'+_0x51156f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x95f495))):o(_0x7a4a34,'*Outdent:*\x20%0',o(_0x7a4a34,'ELEMENT_LIST_ITEM')),_0x927001={'type':'format','content':_0xc2d559};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2dbffd['multipleBlocks']&&(_0xc2d559='*Merge:*\x20%0',_0x927001={'type':'deletion','content':o(_0x7a4a34,_0xc2d559,o(_0x7a4a34,'ELEMENT_LIST_ITEM'))});}return _0x927001;});}}function le(_0x451659){let _0x1f5c6a=_0x451659['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1f5c6a;){const _0x64148a=_0x1f5c6a['getAttribute']('listItemId');if(!_0x64148a)return!0x1;if(_0x64148a==_0x451659['data']['newValue'])return'newValue';if(_0x64148a==_0x451659['data']['oldValue'])return'oldValue';_0x1f5c6a=_0x1f5c6a['previousSibling'];}return!0x1;}class pe extends _0x41808b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5c5048=this['editor']['config']['get']('list.properties'),_0x25df0e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c5048['styles']&&(_0x25df0e['enableDefaultAttributesIntegration']('listStyle'),_0x25df0e['registerBlockAttribute']('listStyle')),_0x5c5048['reversed']&&(_0x25df0e['enableDefaultAttributesIntegration']('listReversed'),_0x25df0e['registerBlockAttribute']('listReversed')),_0x5c5048['startIndex']&&(_0x25df0e['enableDefaultAttributesIntegration']('listStart'),_0x25df0e['registerBlockAttribute']('listStart'));const _0x31df7a={'type':'format','content':''};_0x25df0e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x471e08=this['editor']['locale'];_0x25df0e['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x471e08,'FORMAT_LIST_REVERSED')),_0x25df0e['descriptionFactory']['registerDescriptionCallback'](_0x2420ab=>{const {data:_0xc9e796}=_0x2420ab;if(_0xc9e796&&'listReversed'==_0xc9e796['key'])return null==_0xc9e796['newValue']||0x0==_0xc9e796['newValue']&&null==_0xc9e796['oldValue']?_0x31df7a:void 0x0;}),_0x25df0e['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x471e08,'FORMAT_LIST_START')),_0x25df0e['descriptionFactory']['registerDescriptionCallback'](_0x335158=>{const {data:_0x59a82d}=_0x335158;if(_0x59a82d&&'listStart'==_0x59a82d['key'])return null==_0x59a82d['newValue']||0x1==_0x59a82d['newValue']&&null==_0x59a82d['oldValue']?_0x31df7a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a9eb5=>{if(_0x5a9eb5['batch']['isUndo'])return!0x1;let _0x517b6f=!0x1;const _0x9cf246=_0x25df0e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3dd37c=>{const _0x307983=_0x25df0e['_getAttributeKey'](_0x3dd37c);return'listStart'==_0x307983||'listReversed'==_0x307983;});for(const _0x3d9b29 of _0x9cf246){const _0x24bb4a=_0x3d9b29['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x24bb4a||'customNumbered'==_0x24bb4a)continue;_0x25df0e['_findSuggestions'](_0x3d9b29['getFirstRange'](),'attribute')['find'](_0x5e38f5=>'listType'==_0x25df0e['_getAttributeKey'](_0x5e38f5['suggestion']))||(_0x5a9eb5['removeMarker'](_0x3d9b29['getFirstMarker']()),_0x517b6f=!0x0);}return _0x517b6f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4f6507){const _0x4a6f62=this['editor']['locale'],{data:_0x516866}=_0x4f6507,_0x10d04c={'type':'format','content':''};if(!_0x516866||'listStyle'!=_0x516866['key'])return;if(!_0x516866['oldValue'])return'default'==_0x516866['newValue']?_0x10d04c:{'type':'format','content':''+o(_0x4a6f62,'*Set\x20format:*\x20%0',o(_0x4a6f62,this['_getTranslationKeyForListStyle'](_0x516866['newValue'])))};if(!_0x516866['newValue']){if('default'==_0x516866['oldValue'])return _0x10d04c;let _0x149be5=_0x4f6507['head'];for(;_0x149be5;){if(_0x149be5['data']&&'listType'==_0x149be5['data']['key']&&_0x149be5['data']['newValue'])return _0x10d04c;_0x149be5=_0x149be5['next'];}return{'type':'format','content':''+o(_0x4a6f62,'*Remove\x20format:*\x20%0',o(_0x4a6f62,this['_getTranslationKeyForListStyle'](_0x516866['oldValue'])))};}if('default'!=_0x516866['newValue'])return{'type':'format','content':''+o(_0x4a6f62,'*Set\x20format:*\x20%0',o(_0x4a6f62,this['_getTranslationKeyForListStyle'](_0x516866['newValue'])))};let _0x386e83=_0x4f6507['head'];for(;_0x386e83;){if(_0x386e83['data']&&'listType'==_0x386e83['data']['key']&&_0x386e83['data']['newValue']&&_0x386e83['data']['oldValue'])return _0x10d04c;_0x386e83=_0x386e83['next'];}return{'type':'format','content':o(_0x4a6f62,'*Set\x20format:*\x20%0',o(_0x4a6f62,'ELEMENT_'+_0x4f6507['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2eb7fc=this['editor'],_0xfe6fb0=_0x2eb7fc['locale'];_0x2eb7fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42dc90=>{if('formatBlock'!=_0x42dc90['type'])return;const {data:_0x245b6a}=_0x42dc90;if(!_0x245b6a)return;let _0x5bac1b,_0x4969ee;switch(_0x245b6a['commandName']){case'listStyle':_0x5bac1b='*Change\x20to:*\x20%0',_0x4969ee={'type':'format','content':o(_0xfe6fb0,_0x5bac1b,o(_0xfe6fb0,this['_getTranslationKeyForListStyle'](_0x245b6a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5bac1b=_0x245b6a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4969ee={'type':'format','content':o(_0xfe6fb0,_0x5bac1b)};break;case'listStart':_0x5bac1b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4969ee={'type':'format','content':o(_0xfe6fb0,_0x5bac1b,_0x245b6a['commandParams'][0x0]['startIndex'])};}return _0x4969ee;});}['_getTranslationKeyForListStyle'](_0x41a1df){return'ELEMENT_'+function(_0x2088b4){if(ye['includes'](_0x2088b4))return'bulleted';if(Se['includes'](_0x2088b4))return'numbered';return null;}(_0x41a1df)['toUpperCase']()+'_LIST_'+_0x41a1df['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x41808b{static get['requires'](){return[_0x2cfd79];}['init'](){const _0x386383=this['editor'],_0x12e09e=_0x386383['plugins']['get']('TrackChangesEditing'),_0x39a372=_0x386383['commands']['get']('enter');_0x12e09e['enableCommand']('enter',()=>{_0x386383['model']['change'](_0x4b698e=>{const _0x13d4db=_0x386383['model']['document']['selection'],_0x5464ce=_0x13d4db['getFirstPosition'](),_0x4e680b=_0x36e74e['fromRange'](_0x13d4db['getFirstRange']());if(_0x39a372['enterBlock'](_0x4b698e)){const _0x5e8f3a=_0x386383['model']['createPositionAt'](_0x5464ce['parent']['nextSibling'],0x0),_0x3c561e=_0x4b698e['createRange'](_0x5464ce,_0x5e8f3a);_0x12e09e['markInsertion'](_0x3c561e);}else _0x4b698e['setSelection'](_0x4b698e['createRange'](_0x4e680b['end']));_0x4e680b['detach'](),_0x39a372['fire']('afterExecute',{'writer':_0x4b698e});});}),_0x386383['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x386383,'split'),{'priority':'high'}),_0x386383['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x47c329,_0x21da91,_0xb8e8c3)=>{const _0x21427d=_0xb8e8c3['mapper']['markerNameToElements'](_0x21da91['markerName']);if(_0x21427d){for(const _0x1b6759 of _0x21427d)_0x1b6759['hasClass']('ck-suggestion-marker-split')&&(_0xb8e8c3['mapper']['unbindElementFromMarkerName'](_0x1b6759,_0x21da91['markerName']),_0xb8e8c3['writer']['remove'](_0x1b6759));}},{'priority':'high'}),_0x386383['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x483fd2,_0x396c41,_0x2d635d)=>{_0x2d635d['options']['showSuggestionHighlights']&&_e(_0x386383,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x483fd2,_0x396c41,_0x2d635d);},{'priority':'high'});}}class X extends _0x41808b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3db256=this['editor']['plugins']['get']('TrackChangesEditing');_0x3db256['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3db256['enableCommand']('findNext'),_0x3db256['enableCommand']('findPrevious'),_0x3db256['enableCommand']('replace'),_0x3db256['enableCommand']('replaceAll');}['handleFindCommand'](_0x152a95,_0x432a2f,_0x83c38a={}){const _0x335c2f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x152a95(_0x10add6=>{let _0x18dc38=('string'==typeof _0x432a2f?_0x335c2f['findByTextCallback'](_0x432a2f,_0x83c38a):_0x432a2f)(_0x10add6);Array['isArray'](_0x18dc38)&&(_0x18dc38={'results':_0x18dc38,'searchText':'string'==typeof _0x432a2f?_0x432a2f:''});const _0x3e0793=_0x18dc38['results']['filter'](_0x145459=>!0x1===this['_isInDeletionRange'](_0x145459,_0x10add6['item']));return{..._0x18dc38,'results':_0x3e0793};},_0x83c38a);}['_isInDeletionRange'](_0x49ab47,_0x55c366){const _0x489f1a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55c366,_0x49ab47['start']),this['editor']['model']['createPositionAt'](_0x55c366,_0x49ab47['end']));for(const _0x2c8b9d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x489f1a['getIntersection'](_0x2c8b9d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x41808b{['afterInit'](){const _0x522373=this['editor']['locale'],_0x57b017=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x24c0e4,commandName:_0x4c3afb}of ro)this['editor']['plugins']['has'](_0x24c0e4)&&(_0x57b017['enableDefaultAttributesIntegration'](_0x4c3afb),_0x57b017['registerInlineAttribute'](_0x4c3afb));_0x57b017['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x522373,'FORMAT_FONT_SIZE')),_0x57b017['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x522373,'FORMAT_FONT_FAMILY')),_0x57b017['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x522373,'FORMAT_FONT_COLOR')),_0x57b017['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x522373,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d584a=this['editor'],_0x4ce245=_0x4d584a['locale'];_0x4d584a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x598369=>{const _0x14bc63=_0x4ce245['t'];if('formatInline'!=_0x598369['type'])return;const {data:_0x5097c6}=_0x598369;if(null!=_0x5097c6){if('fontSize'==_0x5097c6['commandName']){const _0x49a1bf=_0x5097c6['commandParams'][0x0]['value'];if(_0x49a1bf){const _0x498552=_0x14bc63(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x36b161=>_0x36b161['model']==_0x49a1bf)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4ce245,'*Set\x20font\x20size:*\x20%0',_0x498552)};}return{'type':'format','content':o(_0x4ce245,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5097c6['commandName']){const _0x3ec892=_0x5097c6['commandParams'][0x0]['value'];return _0x3ec892?{'type':'format','content':o(_0x4ce245,'*Set\x20font\x20family:*\x20%0',_0x3ec892)}:{'type':'format','content':o(_0x4ce245,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5097c6['commandName']){const _0x6883c4=_0x5097c6['commandParams'][0x0]['value'];if(_0x6883c4){const _0x445917=_0x343ad4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6bb2a4=>_0x6bb2a4['model']==_0x6883c4);let _0x547ccd=_0x6883c4,_0x2cd5b6='';return _0x445917&&(_0x547ccd=_0x445917['label'],_0x2cd5b6=_0x14bc63(_0x547ccd)['toLowerCase']()),{'type':'format','content':o(_0x4ce245,'*Set\x20font\x20color:*\x20%0',_0x2cd5b6)['trim'](),'color':{'value':_0x6883c4,'title':_0x2cd5b6||_0x547ccd}};}return{'type':'format','content':o(_0x4ce245,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5097c6['commandName']){const _0x285e1c=_0x5097c6['commandParams'][0x0]['value'];if(_0x285e1c){const _0xbb2e27=_0x343ad4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x51f6e6=>_0x51f6e6['model']==_0x285e1c);let _0x40b7f2=_0x285e1c,_0x15d047='';return _0xbb2e27&&(_0x40b7f2=_0xbb2e27['label'],_0x15d047=_0x14bc63(_0x40b7f2)['toLowerCase']()),{'type':'format','content':o(_0x4ce245,'*Set\x20font\x20background\x20color:*\x20%0',_0x15d047)['trim'](),'color':{'value':_0x285e1c,'title':_0x15d047||_0x40b7f2}};}return{'type':'format','content':o(_0x4ce245,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x41808b{['afterInit'](){const _0x528eaf=this['editor'],_0x1cd734=_0x528eaf['plugins']['get']('TrackChangesEditing'),_0x1dcc7e=_0x528eaf['commands']['get']('copyFormat'),_0x186042=_0x528eaf['commands']['get']('pasteFormat');_0x1dcc7e&&_0x186042&&(_0x1cd734['enableDefaultAttributesIntegration']('pasteFormat'),_0x1cd734['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d2669=this['editor'],_0x1da8e7=_0x5d2669['locale'];_0x5d2669['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313989=>{if('formatBlock'!=_0x313989['type']&&'formatInline'!=_0x313989['type'])return;const {data:_0x2b7d4b}=_0x313989;if(_0x2b7d4b&&'pasteFormat'===_0x2b7d4b['commandName']){const _0x16495d=[],_0x2f001b=_0x2b7d4b['commandParams'][0x0];for(const [_0x412c0d,_0x2f9b26]of Object['entries'](_0x2f001b))_0x16495d['push'](so(_0x5d2669,_0x412c0d,_0x2f9b26));return _0x16495d['length']?{'type':'format','content':o(_0x1da8e7,'*Set\x20format\x20to:*\x20%0',_0x16495d['join'](',\x20'))}:{'type':'format','content':o(_0x1da8e7,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1cf251,_0xbfdd6e,_0x2d64de){const _0x234b6e=_0x1cf251['locale']['t'],_0x81311=_0xbfdd6e['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ec7a7=_0x234b6e(_0x81311['charAt'](0x0)['toUpperCase']()+_0x81311['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2d64de)return _0x2ec7a7;if('fontColor'===_0xbfdd6e||'fontBackgroundColor'===_0xbfdd6e){const _0x108a8e=_0x343ad4(_0x1cf251['config']['get']('fontColor.colors'))['find'](_0x5c49cf=>_0x5c49cf['model']==_0x2d64de);return _0x2ec7a7+'\x20('+(_0x108a8e?_0x234b6e(_0x108a8e['label'])['toLowerCase']():_0x2d64de)+')';}if('fontSize'===_0xbfdd6e&&isNaN(parseFloat(_0x2d64de))){const _0x20abe8=_0x1cf251['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1cf251['config']['get']('fontSize.options'))['find'](_0x3c7a50=>_0x3c7a50['model']==_0x2d64de);return _0x2ec7a7+'\x20('+(_0x20abe8?_0x234b6e(_0x20abe8['title'])['toLowerCase']():_0x2d64de)+')';}return _0x2ec7a7+'\x20('+_0x2d64de+')';}class tt extends _0x41808b{['_headingOptions'];['afterInit'](){const _0x59bda8=this['editor'];if(!_0x59bda8['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x59bda8['config']['get']('heading.options');const _0x1d8b95=_0x59bda8['locale'],_0x42a168=_0x59bda8['plugins']['get']('TrackChangesEditing');_0x42a168['enableDefaultAttributesIntegration']('heading');for(const _0x116c1e of this['_headingOptions'])'paragraph'!=_0x116c1e['model']&&_0x42a168['descriptionFactory']['registerElementLabel'](_0x116c1e['model'],_0x7e3303=>{const _0x101576=this['_getHeadingLevel'](_0x116c1e['model']);return null!==_0x101576?_0x5dd94c(_0x7e3303,_0x101576):_0x39f583(_0x7e3303,_0x116c1e['title']);});function _0x5dd94c(_0x650f17,_0x563be5){return o(_0x1d8b95,'ELEMENT_HEADING',[_0x650f17,_0x563be5]);}function _0x39f583(_0x140827,_0x2d1cac){return o(_0x1d8b95,'ELEMENT_HEADING_CUSTOM',[_0x140827,_0x2d1cac]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1864ac=this['editor'],_0x1994db=_0x1864ac['locale'];function _0x2a7757(_0x1774c3,_0x3aa198){return o(_0x1994db,'ELEMENT_HEADING_CUSTOM',[_0x1774c3,_0x3aa198]);}_0x1864ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e475c=>{if('formatBlock'!=_0x4e475c['type'])return;const {data:_0x56b1a1}=_0x4e475c;if(_0x56b1a1&&'heading'==_0x56b1a1['commandName']){const _0x101914=_0x56b1a1['commandParams'][0x0]['value'],_0x244651=this['_getHeadingLevel'](_0x101914);if(null!==_0x244651)return{'type':'format','content':o(_0x1994db,'*Change\x20to:*\x20%0',(_0x22b260=0x1,_0x37bab5=_0x244651,o(_0x1994db,'ELEMENT_HEADING',[_0x22b260,_0x37bab5])))};const _0x43f622=this['_headingOptions']['find'](_0x18658e=>_0x18658e['model']===_0x101914)['title'];return{'type':'format','content':o(_0x1994db,'*Change\x20to:*\x20%0',_0x2a7757(0x1,_0x43f622))};}var _0x22b260,_0x37bab5;});}['_getHeadingLevel'](_0x4281c5){const _0x341cf9=_0x4281c5['match'](/^heading(\d+)/);if(_0x341cf9)return _0x341cf9[0x1];const _0x135deb=this['_headingOptions']?.['find'](_0x29ffd5=>_0x29ffd5['model']==_0x4281c5);if(_0x135deb&&_0x135deb['view']){const _0x37226e=_0x135deb['view'],_0x241538=(_0x37226e['name']??_0x37226e)['match'](/^h(\d+)/);if(_0x241538)return _0x241538[0x1];}return null;}}class et extends _0x41808b{['afterInit'](){const _0x1f1f28=this['editor'];if(!_0x1f1f28['plugins']['has']('HighlightEditing'))return;const _0x113546=_0x1f1f28['plugins']['get']('TrackChangesEditing'),_0x599526=_0x1f1f28['locale'];_0x113546['enableDefaultAttributesIntegration']('highlight'),_0x113546['registerInlineAttribute']('highlight'),_0x113546['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x599526,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x481016=this['editor'],_0x55640d=_0x481016['locale'];_0x481016['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d471a=>{if('formatInline'!=_0x2d471a['type'])return;const {data:_0x13c177}=_0x2d471a;if(_0x13c177&&'highlight'==_0x13c177['commandName']){const _0x1999b1=_0x55640d['t'],_0x581447=_0x13c177['commandParams'][0x0]['value'];if(_0x581447){const _0x32431f=_0x481016['config']['get']('highlight.options')['find'](_0x4c6d79=>_0x4c6d79['model']==_0x581447),_0x1ac98a=_0x1999b1(_0x32431f['title'])['toLowerCase']();return{'type':'format','content':o(_0x55640d,'*Set\x20highlight:*\x20%0',_0x1ac98a),'color':{'value':_0x32431f['color'],'title':_0x32431f['title']}};}return{'type':'format','content':o(_0x55640d,'*Remove\x20highlight*',o(_0x55640d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x41808b{['afterInit'](){const _0x3ee86c=this['editor'];if(!_0x3ee86c['plugins']['has']('HorizontalLineEditing'))return;_0x3ee86c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4c985c=_0x3ee86c['plugins']['get']('TrackChangesEditing'),_0x20a292=_0x3ee86c['locale'];_0x4c985c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x59b101=>o(_0x20a292,'ELEMENT_HORIZONTAL_LINE',_0x59b101)),_0x3ee86c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x16f2ea,{writer:_0x3b3b68,options:_0x5a6019})=>{if(!_0x5a6019['showSuggestionHighlights'])return null;const _0x4ba5a0=_0x3b3b68['createContainerElement']('div'),_0x1a3879=_0x3b3b68['createEmptyElement']('hr');return _0x3b3b68['addClass']('ck-horizontal-line',_0x4ba5a0),_0x3b3b68['insert'](_0x3b3b68['createPositionAt'](_0x4ba5a0,0x0),_0x1a3879),_0x4ba5a0;},'converterPriority':'high'});}}class st extends _0x41808b{['afterInit'](){const _0x50fec1=this['editor'];if(!_0x50fec1['plugins']['has']('HtmlEmbed'))return;const _0x5a6bee=_0x50fec1['plugins']['get']('TrackChangesEditing'),_0x422be9=_0x50fec1['locale'];_0x5a6bee['descriptionFactory']['registerElementLabel']('rawHtml',_0x16cbc9=>o(_0x422be9,'ELEMENT_HTML_EMBED',_0x16cbc9)),_0x5a6bee['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5a6bee['registerBlockAttribute']('value'),_0x5a6bee['descriptionFactory']['registerDescriptionCallback'](_0x11b391=>{if('attribute'!=_0x11b391['type'])return;const {data:_0x50bfc0}=_0x11b391;if(_0x50bfc0&&'value'==_0x50bfc0['key']&&_0x11b391['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x52289a=o(_0x422be9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x422be9,'*Change\x20%0\x20content*',_0x52289a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d3f35=this['editor'],_0x48dfe8=_0x2d3f35['locale'];_0x2d3f35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10cdbe=>{if('formatBlock'!=_0x10cdbe['type'])return;const {data:_0x3996fb}=_0x10cdbe;if(_0x3996fb&&'htmlEmbed'==_0x3996fb['commandName']){const _0x4f1c54=o(_0x48dfe8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x48dfe8,'*Change\x20%0\x20content*',_0x4f1c54)};}});}}class nt extends _0x41808b{['afterInit'](){const _0x4f311d=this['editor'];if(!_0x4f311d['plugins']['has']('ImageEditing'))return;const _0x433446=_0x4f311d['plugins']['get']('TrackChangesEditing'),_0xecb884=_0x4f311d['plugins']['get']('ImageUtils'),_0x7cfeac=_0x4f311d['locale'];_0x433446['enableCommand']('insertImage'),_0x433446['descriptionFactory']['registerElementLabel']('imageBlock',_0x57e1e0=>o(_0x7cfeac,'ELEMENT_IMAGE',_0x57e1e0)),_0x433446['descriptionFactory']['registerElementLabel']('imageInline',_0xacb657=>o(_0x7cfeac,'ELEMENT_INLINE_IMAGE',_0xacb657)),_0x433446['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x7cfeac,'ELEMENT_CAPTION')),_0x4f311d['plugins']['has']('ImageUploadEditing')&&_0x433446['enableCommand']('uploadImage'),_0x4f311d['plugins']['has']('ImageBlockEditing')&&_0x4f311d['plugins']['has']('ImageInlineEditing')&&(_0x433446['enableCommand']('imageTypeInline',(_0x58e642,_0x530b62)=>{const _0x563722=_0xecb884['getClosestSelectedImageElement'](_0x4f311d['model']['document']['selection']);_0x4f311d['model']['change'](()=>{_0x433446['markBlockFormat'](_0x563722,{'commandName':'imageTypeInline','commandParams':[_0x530b62]},[],'convertBlockImageToInline');});}),_0x433446['enableCommand']('imageTypeBlock',(_0x34db38,_0x5aa15f)=>{_0x4f311d['model']['change'](_0x56680e=>{let _0x23b427=_0xecb884['getClosestSelectedImageElement'](_0x4f311d['model']['document']['selection']),_0x26ae8c=_0x56680e['createRangeOn'](_0x23b427);const _0x23380c=_0x5622ca['fromPosition'](_0x26ae8c['start'],'toPrevious'),_0x2791fa=_0x5622ca['fromPosition'](_0x26ae8c['end'],'toNext');_0x433446['forceDefaultExecution'](()=>_0x34db38(_0x5aa15f)),_0x23b427=_0xecb884['getClosestSelectedImageElement'](_0x4f311d['model']['document']['selection']),_0x26ae8c=_0x56680e['createRangeOn'](_0x23b427);const _0x1fec59=_0x56680e['createRange'](_0x23380c,_0x2791fa);_0x23380c['detach'](),_0x2791fa['detach'](),_0x433446['markBlockFormat'](_0x23b427,{'commandName':'imageTypeInline','commandParams':[_0x5aa15f]},[],'convertInlineImageToBlock'),_0x1fec59['start']['isBefore'](_0x26ae8c['start'])&&_0x433446['markInsertion'](_0x56680e['createRange'](_0x1fec59['start'],_0x26ae8c['start']),'convertInlineImageToBlock'),_0x26ae8c['end']['isBefore'](_0x1fec59['end'])&&_0x433446['markInsertion'](_0x56680e['createRange'](_0x26ae8c['end'],_0x1fec59['end']),'convertInlineImageToBlock');});}),_0x433446['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x433446['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x433446['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x433446['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x433446['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x433446['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2e47a6])=>{const _0x897ac5=_0x433446['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x58b3f9=_0x2e47a6['start'],_0xd11971=_0x2e47a6['end'];const _0x5cd135=_0x4f311d['model']['schema']['getNearestSelectionRange'](_0x58b3f9,'backward'),_0x2df8a1=_0x4f311d['model']['schema']['getNearestSelectionRange'](_0xd11971,'forward');_0x5cd135['isCollapsed']&&(_0x58b3f9=_0x5cd135['start']),_0x2df8a1['isCollapsed']&&(_0xd11971=_0x2df8a1['end']),_0x897ac5([_0x4f311d['model']['createRange'](_0x58b3f9,_0xd11971)]);}),_0x433446['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x306e24),_0x433446['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x306e24)),_0x4f311d['plugins']['has']('ImageCaptionEditing')&&(_0x433446['enableCommand']('toggleImageCaption',(_0x40acc1,_0x771423)=>{const _0x5bde24=_0x4f311d['plugins']['get']('ImageCaptionUtils');let _0x45367f=_0xecb884['getClosestSelectedImageElement'](_0x4f311d['model']['document']['selection']),_0x556186=_0x5bde24['getCaptionFromImageModelElement'](_0x45367f);_0x4f311d['model']['change'](()=>{if(_0x556186)return void _0x433446['markDeletion'](_0x4f311d['model']['createRangeOn'](_0x556186));const _0x1df3dd=_0xecb884['isBlockImage'](_0x45367f);_0x40acc1(_0x771423),_0x45367f=_0xecb884['getClosestSelectedImageElement'](_0x4f311d['model']['document']['selection']),_0x556186=_0x5bde24['getCaptionFromImageModelElement'](_0x45367f),_0x433446['markInsertion'](_0x4f311d['model']['createRangeOn'](_0x556186),_0x1df3dd?null:'imageCaption');});}),_0x433446['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x306e24));const _0x5d21e8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4738cb(_0x43e715,_0x4fa49d){const _0x16e898=_0x5d21e8['findIndex'](({type:_0x5bd041,subType:_0x54ddd5})=>_0x43e715['type']==_0x5bd041&&_0x43e715['subType']==_0x54ddd5),_0x268daf=_0x5d21e8['findIndex'](({type:_0x34b9c8,subType:_0x241c96})=>_0x4fa49d['type']==_0x34b9c8&&_0x4fa49d['subType']==_0x241c96);if(_0x16e898<0x0||_0x268daf<0x0)return!0x1;const _0x17a075=_0x43e715['getFirstRange'](),_0x278e7f=_0x4fa49d['getFirstRange']();if((0x0==_0x16e898||0x1==_0x16e898)&&0x2==_0x268daf&&_0x17a075['isIntersecting'](_0x278e7f))return!0x0;if(0x2==_0x16e898&&0x3==_0x268daf){const _0x5a8c45=_0x433446['_findSuggestions'](_0x17a075,'insertion')['filter'](({suggestion:_0x4900dc,meta:_0x2d6934})=>_0x2d6934['isOwn']&&'convertInlineImageToBlock'==_0x4900dc['subType']);if(_0x5a8c45['length']>0x1&&_0x278e7f['end']['isEqual'](_0x17a075['start']))return!0x0;if(0x1==_0x5a8c45['length']&&(_0x17a075['start']['isEqual'](_0x278e7f['end'])||_0x17a075['end']['isEqual'](_0x278e7f['start'])))return!0x0;}if(0x3==_0x16e898&&0x3==_0x268daf&&_0x17a075['start']['isBefore'](_0x278e7f['start'])){const _0x3d9729=_0x17a075['end']['nodeAfter'],_0x1c27a1=_0x278e7f['start']['nodeBefore'];return _0xecb884['isBlockImage'](_0x3d9729)&&_0x3d9729===_0x1c27a1;}return!0x1;}function _0x306e24(_0x56eea5,_0x2aab71){return _0x4738cb(_0x56eea5,_0x2aab71)?[_0x56eea5,_0x2aab71]:_0x4738cb(_0x2aab71,_0x56eea5)?[_0x2aab71,_0x56eea5]:null;}_0x4f311d['plugins']['has']('ImageResize')&&(_0x433446['enableDefaultAttributesIntegration']('resizeImage'),_0x433446['registerBlockAttribute']('resizedWidth'),_0x433446['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x7cfeac,'FORMAT_IMAGE_SIZE'))),_0x4f311d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x433446['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x433446['registerBlockAttribute']('alt')),_0x433446['descriptionFactory']['registerDescriptionCallback'](_0x1998c6=>{if(!!_0x5d21e8['find'](({type:_0xe64880,subType:_0x599b15})=>_0x1998c6['type']==_0xe64880&&_0x1998c6['subType']==_0x599b15))return _0x1998c6['previous']?{}:void 0x0;}),_0x433446['descriptionFactory']['registerDescriptionCallback'](_0x5c4f94=>{if('insertion'==_0x5c4f94['type']||'deletion'==_0x5c4f94['type']){const _0x2eb507=_0x5c4f94['getContainedElement']();if(_0x2eb507&&_0x2eb507['is']('element','caption'))return{'type':'insertion'==_0x5c4f94['type']?'addObject':'removeObject','element':_0x2eb507,'quantity':0x1};}}),_0x433446['descriptionFactory']['registerDescriptionCallback'](_0x42d6fe=>'formatBlock'==_0x42d6fe['type']&&'convertInlineImageToBlock'==_0x42d6fe['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x42d6fe['type']&&'convertBlockImageToInline'==_0x42d6fe['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x433446['descriptionFactory']['registerDescriptionCallback'](_0x17087d=>{if('attribute'!=_0x17087d['type'])return;const {data:_0x2740ab}=_0x17087d;if(!_0x2740ab||'alt'!=_0x2740ab['key'])return;const _0x24e7e1=_0x2740ab['newValue'];return _0x24e7e1?{'type':'format','content':o(_0x7cfeac,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x24e7e1+'\x22')}:{'type':'format','content':o(_0x7cfeac,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38bbdb=this['editor'],_0x10470a=_0x38bbdb['locale'];_0x38bbdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d3d02=>{if('formatBlock'!=_0x2d3d02['type']&&'formatInline'!=_0x2d3d02['type'])return;const {data:_0x16fbfd}=_0x2d3d02;if(_0x16fbfd){if('imageTextAlternative'==_0x16fbfd['commandName']){const _0xb59cc3=_0x16fbfd['commandParams'][0x0]['newValue'];return _0xb59cc3?{'type':'format','content':o(_0x10470a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb59cc3+'\x22')}:{'type':'format','content':o(_0x10470a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x16fbfd['commandName']){const _0x4458c2=_0x16fbfd['commandParams'][0x0]['width'];return _0x4458c2?{'type':'format','content':o(_0x10470a,'*Set\x20image\x20width:*\x20%0',_0x4458c2)}:{'type':'format','content':o(_0x10470a,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x41808b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30b726=this['editor']['locale'],_0x47b720=this['editor']['plugins']['get']('TrackChangesEditing');_0x47b720['enableDefaultAttributesIntegration']('replaceImageSource'),_0x47b720['registerBlockAttribute']('src'),_0x47b720['descriptionFactory']['registerDescriptionCallback'](_0x58ba77=>{if('attribute'!=_0x58ba77['type'])return;const {data:_0x60f299}=_0x58ba77;return _0x60f299&&'src'==_0x60f299['key']?_0x60f299['newValue']&&_0x60f299['oldValue']?{'type':'format','content':o(_0x30b726,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3f1243=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f1243['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3f1243['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3f1243['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3f1243['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3694a8=this['editor'],_0x415f65=_0x3694a8['locale'];_0x3694a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x494e4d=>{if('formatBlock'!=_0x494e4d['type']&&'formatInline'!=_0x494e4d['type'])return;const {data:_0x14436a}=_0x494e4d;if(!_0x14436a||'replaceImageSource'!=_0x14436a['commandName'])return;return{'type':'format','content':o(_0x415f65,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x41808b{['afterInit'](){const _0x4419d9=this['editor'];if(!_0x4419d9['plugins']['has']('ImageStyleEditing'))return;const _0xf73e25=_0x4419d9['plugins']['get']('TrackChangesEditing'),_0x506efb=_0x4419d9['plugins']['get']('ImageUtils'),_0x4138f7={};_0xf73e25['enableCommand']('imageStyle',(_0x3b548d,_0x4d6e8f)=>{const _0x1fcc5e=_0x4419d9['plugins']['get']('Users')['me'],_0x37c606=_0x4419d9['commands']['get']('imageStyle');let _0x139438=_0x506efb['getClosestSelectedImageElement'](_0x4419d9['model']['document']['selection']),_0x3c0f13=_0x4419d9['model']['createRangeOn'](_0x139438),_0x2db71c=_0x37c606['value'];if(_0x2db71c==_0x4d6e8f['value'])return;const _0xad5bae={'commandName':'imageStyle','commandParams':[_0x4d6e8f],'formatGroupId':_0x55ea85()};_0x4419d9['model']['change'](()=>{if(_0xf73e25['getSuggestions']()['filter'](_0x499b8d=>_0x499b8d['isInContent']&&_0x1fcc5e==_0x499b8d['author']&&('formatBlock'==_0x499b8d['type']||'formatInline'==_0x499b8d['type'])&&('imageStylePreApply'==_0x499b8d['subType']||'imageStylePostApply'==_0x499b8d['subType'])&&_0x499b8d['getFirstRange']()['isEqual'](_0x3c0f13))['forEach'](_0x5c3102=>_0xf73e25['discardSuggestion'](_0x5c3102['head'])),_0x139438=_0x506efb['getClosestSelectedImageElement'](_0x4419d9['model']['document']['selection']),_0x3c0f13=_0x4419d9['model']['createRangeOn'](_0x139438),_0x37c606['refresh'](),_0x4419d9['commands']['get']('imageTypeInline')['refresh'](),_0x4419d9['commands']['get']('imageTypeBlock')['refresh'](),_0x2db71c=_0x37c606['value'],_0x2db71c!=_0x4d6e8f['value'])return _0x506efb['isInlineImage'](_0x139438)&&_0x37c606['shouldConvertImageType'](_0x4d6e8f['value'],_0x139438)?(_0x3b548d({..._0x4d6e8f,'setImageSizes':!0x1}),_0x139438=_0x506efb['getClosestSelectedImageElement'](_0x4419d9['model']['document']['selection']),void _0xf73e25['markBlockFormat'](_0x139438,{..._0xad5bae,'commandReversedParams':[{'value':_0x2db71c||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x506efb['isBlockImage'](_0x139438)?_0xf73e25['markBlockFormat'](_0x139438,_0xad5bae,[],'imageStylePostApply'):_0xf73e25['markInlineFormat'](_0x3c0f13,_0xad5bae,'imageStylePostApply'));});});for(const _0x578745 of _0x4419d9['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4138f7[_0x578745['name']]=_0x578745['title']['toLowerCase']();_0xf73e25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xf73e25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xf73e25['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xf73e25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x529a32])=>{_0x506efb['setImageNaturalSizeAttributes'](_0x529a32['getContainedElement']());}),_0xf73e25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x59cd47,_0x23a1fd)=>{_0xf73e25['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x59cd47,{'commandName':_0x23a1fd['commandName'],'commandParams':_0x23a1fd['commandReversedParams']});}),_0xf73e25['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x279354,_0x474801){if(_0x19ff97(_0x279354,_0x474801))return[_0x279354,_0x474801];if(_0x19ff97(_0x474801,_0x279354))return[_0x474801,_0x279354];return null;});const _0x26bf35=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x19ff97(_0x3ac3c7,_0x348dd4){const _0x91bbe6=_0x26bf35['findIndex'](({type:_0x4aab03,subType:_0x243b18})=>_0x3ac3c7['type']==_0x4aab03&&_0x3ac3c7['subType']==_0x243b18),_0x26dd01=_0x26bf35['findIndex'](({type:_0x33b683,subType:_0x36bbc8})=>_0x348dd4['type']==_0x33b683&&_0x348dd4['subType']==_0x36bbc8);if(_0x91bbe6<0x0||_0x26dd01<0x0)return!0x1;const _0x46f5d9=_0x3ac3c7['getFirstRange'](),_0x17da88=_0x348dd4['getFirstRange']();if((0x0==_0x91bbe6||0x1==_0x91bbe6)&&0x2==_0x26dd01&&_0x46f5d9['isIntersecting'](_0x17da88))return!0x0;if(0x2==_0x91bbe6&&0x3==_0x26dd01){const _0x1ffddc=_0xf73e25['_findSuggestions'](_0x46f5d9,'insertion')['filter'](({suggestion:_0x3efe83,meta:_0x4d4acd})=>_0x4d4acd['isOwn']&&'convertInlineImageToBlock'==_0x3efe83['subType']);if(_0x1ffddc['length']>0x1&&_0x17da88['end']['isEqual'](_0x46f5d9['start']))return!0x0;if(0x1==_0x1ffddc['length']&&(_0x46f5d9['start']['isEqual'](_0x17da88['end'])||_0x46f5d9['end']['isEqual'](_0x17da88['start'])))return!0x0;}if(0x3==_0x91bbe6&&0x3==_0x26dd01&&_0x46f5d9['start']['isBefore'](_0x17da88['start'])){const _0x2cbfe3=_0x46f5d9['end']['nodeAfter'],_0x5bd74b=_0x17da88['start']['nodeBefore'];return _0x506efb['isBlockImage'](_0x2cbfe3)&&_0x2cbfe3===_0x5bd74b;}return!0x1;}_0x4419d9['model']['document']['registerPostFixer'](()=>{let _0x52a8ee=!0x1;const _0xfea23=Array['from'](_0x4419d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1cf747,data:_0x2ae24d}of _0xfea23){const {group:_0x3dbf4b,type:_0x44f563,subType:_0xfa8ee1,id:_0x261fc2}=_0xf73e25['_splitMarkerName'](_0x1cf747);if('suggestion'==_0x3dbf4b&&_0xf73e25['hasSuggestion'](_0x261fc2)){if('formatBlock'==_0x44f563&&('imageStylePreApply'==_0xfa8ee1||'imageStylePostApply'==_0xfa8ee1)){const _0x9fae3d=_0xf73e25['getSuggestion'](_0x261fc2);if(_0x2ae24d['newRange']){const _0x49fb93=_0x9fae3d['getFirstRange']()['getContainedElement']();if(_0x506efb['isBlockImage'](_0x49fb93))continue;_0xf73e25['discardSuggestion'](_0x9fae3d),_0x52a8ee=!0x0;}}if('insertion'==_0x44f563&&'imageCaption'==_0xfa8ee1&&!_0x2ae24d['newRange']){const _0x47bc8f=_0xf73e25['getSuggestion'](_0x261fc2);_0x47bc8f['next']&&_0x47bc8f['next']['isInContent']&&(_0xf73e25['discardSuggestion'](_0x47bc8f['next']),_0x52a8ee=!0x0);}}}return _0x52a8ee;}),this['_registerLegacyDescription'](_0x4138f7);}['_registerLegacyDescription'](_0x5781c8){const _0x176613=this['editor'],_0x57d049=_0x176613['locale'];_0x176613['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcf8ec4=>{if('formatBlock'!=_0xcf8ec4['type']&&'formatInline'!=_0xcf8ec4['type'])return;const {data:_0x4abf81}=_0xcf8ec4;if(!_0x4abf81||'imageStyle'!=_0x4abf81['commandName'])return;const _0x31b74e=_0x4abf81['commandParams'][0x0]['value'];return _0x56e523('side'===_0x31b74e?o(_0x57d049,'FORMAT_SIDE_IMAGE'):_0x5781c8[_0x31b74e]||_0x31b74e);function _0x56e523(_0x325d35){return{'type':'format','content':o(_0x57d049,'*Format:*\x20%0',_0x325d35)};}});}}class at extends _0x41808b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x20f58c){super(_0x20f58c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x33b82c=this['editor'],_0x30984d=_0x33b82c['commands']['get']('importWord'),_0x4d2c2b=_0x33b82c['commands']['get']('trackChanges');_0x30984d&&(_0x30984d['on']('execute',(_0x39f78b,[,_0x4e59cc])=>{this['_trackChangesValueDuringImport']=_0x4d2c2b['value'],_0x4e59cc['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x30984d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x30984d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4d2c2b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x33b82c['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xc2ac38,_0x7ccffc){const {suggestions:_0x3ed644}=_0x7ccffc,_0x39abe1=this['editor']['commands']['get']('trackChanges'),_0x387900=_0x39abe1['value'];this['_trackChangesValueDuringImport']!==_0x387900&&(_0x39abe1['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ed644&&_0x3ed644['forEach'](({id:_0x30c44,type:_0x2c3e81,author:_0x21cab4,created_at:_0x95901f})=>{const _0x273688={'id':_0x30c44,'type':_0x2c3e81,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x21cab4,'createdAt':_0x95901f?new Date(_0x95901f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x273688);});}}class ct extends _0x41808b{['afterInit'](){const _0x30371e=this['editor'],_0x746752=_0x30371e['plugins']['get']('TrackChangesEditing');if(_0x30371e['plugins']['has']('IndentEditing')&&(_0x746752['enableCommand']('indent'),_0x746752['enableCommand']('outdent')),_0x30371e['plugins']['has']('IndentBlock')){for(const _0xdb25cd of['indentBlock','outdentBlock'])_0x746752['enableDefaultAttributesIntegration'](_0xdb25cd);}const _0x502a59=_0x30371e['locale'];_0x746752['registerBlockAttribute']('blockIndent'),_0x746752['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x502a59,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x118c0a=this['editor'],_0x26a9de=_0x118c0a['locale'],_0x12ec38=_0x118c0a['plugins']['get']('TrackChangesEditing');_0x12ec38['descriptionFactory']['registerDescriptionCallback'](_0x834da5=>{if('formatBlock'!=_0x834da5['type'])return;const {data:_0x5e6ddc}=_0x834da5;if(!_0x5e6ddc)return;if('indentBlock'!=_0x5e6ddc['commandName']&&'outdentBlock'!=_0x5e6ddc['commandName'])return;const _0x32217a=_0x834da5['getItems']()[0x0],_0x16246d=_0x12ec38['descriptionFactory']['getItemLabel'](_0x32217a);return'indentBlock'==_0x5e6ddc['commandName']?{'type':'format','content':o(_0x26a9de,'*Indent:*\x20%0',_0x16246d)}:'outdentBlock'==_0x5e6ddc['commandName']?{'type':'format','content':o(_0x26a9de,'*Outdent:*\x20%0',_0x16246d)}:void 0x0;});}}class ut extends _0x41808b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x41808b{['afterInit'](){const _0x474413=this['editor'];if(!_0x474413['plugins']['has']('LinkEditing'))return;const _0x40a99d=_0x474413['plugins']['get']('TrackChangesEditing'),_0x4de3dd=_0x474413['commands']['get']('link');_0x40a99d['enableDefaultAttributesIntegration']('link'),_0x40a99d['enableDefaultAttributesIntegration']('unlink'),_0x40a99d['registerInlineAttribute']('linkHref');for(const _0x3fb060 of _0x4de3dd['manualDecorators'])_0x40a99d['registerInlineAttribute'](_0x3fb060['id']),_0x40a99d['descriptionFactory']['registerAttributeLabel'](_0x3fb060['id'],'link\x20('+_0x3fb060['label']['toLowerCase']()+')');_0x40a99d['descriptionFactory']['registerDescriptionCallback'](_0x1026e0=>{if('attribute'!=_0x1026e0['type'])return;const {data:_0x24996e}=_0x1026e0;if(!_0x24996e||'linkHref'!=_0x24996e['key'])return;const _0x327ad6=_0x24996e['newValue'],_0x5cc8c3=_0x474413['locale'];return{'type':'format','content':null==_0x327ad6?o(_0x5cc8c3,'*Remove\x20link*'):o(_0x5cc8c3,'*Set\x20link:*\x20%0','\x22'+_0x327ad6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12c022=this['editor'],_0x55df64=_0x12c022['locale'];_0x12c022['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e3a1f=>{if('formatInline'!=_0x3e3a1f['type'])return;const {data:_0x2cf60e}=_0x3e3a1f;if(_0x2cf60e){if('link'==_0x2cf60e['commandName']){const _0x10666c=_0x2cf60e['commandParams'][0x0];return{'type':'format','content':o(_0x55df64,'*Set\x20link:*\x20%0','\x22'+_0x10666c+'\x22')};}return'unlink'==_0x2cf60e['commandName']?{'type':'format','content':o(_0x55df64,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x41808b{['afterInit'](){const _0x4172a0=this['editor'],_0x347f75=_0x4172a0['locale'];if(!_0x4172a0['plugins']['has']('LegacyListEditing'))return;const _0x3e492b=_0x4172a0['plugins']['get']('TrackChangesEditing'),_0x925172=_0x4172a0['plugins']['has']('LegacyTodoListEditing');function _0x4f1900(_0x2f3ca2){return()=>{const _0x22f794=_0x4172a0['model']['document']['selection'],_0x570867=_0x4172a0['commands']['get'](_0x2f3ca2);if(_0x570867['value'])return void _0x4172a0['execute']('paragraph',{});const _0x83d271=_0x2f3ca2['slice'](0x0,-0x4),_0x14c5ae=function(_0x2ee176,_0x17e3a6,_0x274f70){let _0x2a491b=Array['from'](_0x2ee176)['filter'](_0xeed296=>function(_0x1f8947,_0x565ee4){return _0x565ee4['checkChild'](_0x1f8947['parent'],'listItem')&&!_0x565ee4['isObject'](_0x1f8947);}(_0xeed296,_0x274f70));_0x2a491b=_0x2a491b['filter'](_0x150f92=>!_0x150f92['is']('element','listItem')||_0x150f92['getAttribute']('listType')!=_0x17e3a6);const _0x190249=new Set();for(const _0x5de7d8 of _0x2a491b)_0x5de7d8['is']('element','listItem')?_0x190249['add'](fe(_0x5de7d8)):_0x190249['add'](_0x5de7d8);return Array['from'](_0x190249);}(_0x22f794['getSelectedBlocks'](),_0x83d271,_0x4172a0['model']['schema']);_0x4172a0['model']['change'](()=>{for(const _0xc9aa35 of _0x14c5ae)_0x3e492b['markBlockFormat'](_0xc9aa35,{'commandName':_0x2f3ca2,'commandParams':[{'forceValue':!_0x570867['value']}],'formatGroupId':'blockName'},ue(_0xc9aa35));});};}function _0x1445bd(_0x4023c5){return()=>{const _0x2d7f6c=function(_0x2b062e){let _0x1f62ae=Array['from'](_0x2b062e);const _0x339a19=_0x1f62ae['findIndex'](_0x33e108=>'listItem'!=_0x33e108['name']);return _0x339a19>-0x1&&(_0x1f62ae=_0x1f62ae['slice'](0x0,_0x339a19)),_0x1f62ae;}(_0x4172a0['model']['document']['selection']['getSelectedBlocks']()),_0x12b671=_0x4172a0['model']['createRange'](_0x4172a0['model']['createPositionAt'](_0x2d7f6c[0x0],'before'),_0x4172a0['model']['createPositionAt'](_0x2d7f6c[_0x2d7f6c['length']-0x1],'end'));_0x4172a0['model']['change'](()=>{_0x3e492b['markBlockFormat'](_0x12b671,{'commandName':_0x4023c5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x190119){const _0x29cf2a=new Set();for(const _0x145362 of _0x190119){let _0x1ddf2b=_0x145362['nextSibling'];for(;_0x1ddf2b&&_0x1ddf2b['getAttribute']('listIndent')>_0x145362['getAttribute']('listIndent');)_0x29cf2a['add'](_0x1ddf2b),_0x1ddf2b=_0x1ddf2b['nextSibling'];}return Array['from'](_0x29cf2a);}(_0x2d7f6c));});};}_0x3e492b['enableCommand']('numberedList',_0x4f1900('numberedList')),_0x3e492b['enableCommand']('bulletedList',_0x4f1900('bulletedList')),_0x925172&&_0x3e492b['enableCommand']('todoList',_0x4f1900('todoList')),_0x3e492b['enableCommand']('indentList',_0x1445bd('indentList')),_0x3e492b['enableCommand']('outdentList',_0x1445bd('outdentList')),_0x925172&&_0x3e492b['enableCommand']('checkTodoList',()=>{const _0x49f971=_0x4172a0['commands']['get']('checkTodoList'),_0x3f4ef2=Array['from'](_0x49f971['_selectedElements']);_0x3f4ef2['filter'](_0x165aa1=>_0x165aa1['getAttribute']('todoListChecked')!=_0x49f971['value']),_0x4172a0['model']['change'](()=>{for(const _0x10cec9 of _0x3f4ef2)_0x3e492b['markBlockFormat'](_0x10cec9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x49f971['value']}]});});}),_0x3e492b['descriptionFactory']['registerElementLabel']('listItem',_0x1149ce=>o(_0x347f75,'ELEMENT_LIST_ITEM',_0x1149ce)),_0x3e492b['descriptionFactory']['registerDescriptionCallback'](_0xb4d460=>{if('formatBlock'!=_0xb4d460['type']&&'formatInline'!=_0xb4d460['type'])return;const {data:_0x46b491}=_0xb4d460;if(_0x46b491){if('numberedList'==_0x46b491['commandName']||'bulletedList'==_0x46b491['commandName']||'todoList'==_0x46b491['commandName'])switch(_0x46b491['commandName']['replace']('List','')){case'bulleted':return _0x1ea6e3(o(_0x347f75,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1ea6e3(o(_0x347f75,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1ea6e3(o(_0x347f75,'ELEMENT_TODO_LIST'));}if('indentList'==_0x46b491['commandName'])return{'type':'format','content':o(_0x347f75,'*Indent:*\x20%0',o(_0x347f75,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x46b491['commandName'])return{'type':'format','content':o(_0x347f75,'*Outdent:*\x20%0',o(_0x347f75,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x46b491['commandName'])return _0x46b491['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x347f75,'*Check\x20item*')}:{'type':'format','content':o(_0x347f75,'*Uncheck\x20item*')};}function _0x1ea6e3(_0x2aeaa3){return{'type':'format','content':o(_0x347f75,'*Change\x20to:*\x20%0',_0x2aeaa3)};}});}}function fe(_0x528d30){const _0x9df94=_0x528d30['getAttribute']('listIndent');if(0x0==_0x9df94)return _0x528d30;let _0x3e550e=_0x528d30;for(;_0x528d30['previousSibling']&&_0x528d30['previousSibling']['is']('element','listItem');){const _0x19a6b2=_0x528d30['previousSibling']['getAttribute']('listIndent');if(_0x19a6b2==_0x9df94)_0x3e550e=_0x528d30['previousSibling'];else{if(_0x19a6b2<_0x9df94)break;}_0x528d30=_0x528d30['previousSibling'];}return _0x3e550e;}function ue(_0x2c0293){const _0x33410d=[];if(_0x2c0293['is']('element','listItem')&&_0x2c0293['getAttribute']('listIndent')>0x0){let _0x279264=_0x2c0293['nextSibling'];for(;_0x279264&&'listItem'==_0x279264['name']&&_0x279264['getAttribute']('listIndent')==_0x2c0293['getAttribute']('listIndent');)_0x33410d['push'](_0x279264),_0x279264=_0x279264['nextSibling'];}return _0x33410d;}class W extends _0x41808b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x303840=this['editor']['config']['get']('list.properties'),_0x56bdb3=this['editor']['plugins']['get']('TrackChangesEditing');_0x303840['styles']&&_0x56bdb3['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x303840['reversed']&&_0x56bdb3['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x303840['startIndex']&&_0x56bdb3['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x56bdb3['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x53e333,_0x4dea13={}){const _0x3184f7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34cde7=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3184f7['markMultiRangeBlockFormat'](_0x34cde7,{'commandName':'listStyle','commandParams':[{'type':_0x4dea13['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x358fa9,_0x57ef35={}){const _0x4c3326=this['editor']['plugins']['get']('TrackChangesEditing'),_0x335e0d=this['_getSuggestionBlocks'](_0x449b08=>_0x449b08['is']('element','listItem')&&'numbered'===_0x449b08['getAttribute']('listType'));if(_0x335e0d['length']<0x1)return;const _0x477ede=_0x335e0d['map'](_0x140dbc=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x140dbc,'before'),this['editor']['model']['createPositionAt'](_0x140dbc,0x0)));this['editor']['model']['change'](()=>{_0x4c3326['markMultiRangeBlockFormat'](_0x477ede,{'commandName':'listReversed','commandParams':[{'reversed':_0x57ef35['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x523e10,_0x2f4e6e={}){const _0x2efecc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e6bd2=this['_getSuggestionBlocks'](_0x5d5362=>_0x5d5362['is']('element','listItem')&&'numbered'===_0x5d5362['getAttribute']('listType'));if(_0x1e6bd2['length']<0x1)return;const _0x29beea=_0x1e6bd2['map'](_0x3f8840=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f8840,'before'),this['editor']['model']['createPositionAt'](_0x3f8840,0x0)));this['editor']['model']['change'](()=>{_0x2efecc['markMultiRangeBlockFormat'](_0x29beea,{'commandName':'listStart','commandParams':[{'startIndex':_0x2f4e6e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x161383){if('formatBlock'!=_0x161383['type']&&'formatInline'!=_0x161383['type'])return;const _0x3b48d0=this['editor']['locale'],{data:_0x27be2e}=_0x161383;if(!_0x27be2e)return;let _0x210fce,_0x157d1c;switch(_0x27be2e['commandName']){case'listStyle':_0x210fce='*Change\x20to:*\x20%0',_0x157d1c={'type':'format','content':o(_0x3b48d0,_0x210fce,o(_0x3b48d0,this['_getTranslationKeyForListStyle'](_0x27be2e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x210fce=_0x27be2e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x157d1c={'type':'format','content':o(_0x3b48d0,_0x210fce)};break;case'listStart':_0x210fce='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x157d1c={'type':'format','content':o(_0x3b48d0,_0x210fce,_0x27be2e['commandParams'][0x0]['startIndex'])};}return _0x157d1c;}['_getSuggestionBlocksForListStyle'](){const _0x3a1989=this['editor']['plugins']['get']('LegacyListUtils');let _0xf18d97=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xf18d97[0x0]?.['is']('element','listItem')&&_0xf18d97['unshift'](..._0x3a1989['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xf18d97[_0xf18d97['length']-0x1]?.['is']('element','listItem')&&_0xf18d97['push'](..._0x3a1989['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xf18d97=[...new Set(_0xf18d97)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xf18d97=_0xf18d97['filter'](_0x4ef451=>_0x4ef451['is']('element','listItem'))),_0xf18d97;}['_getSuggestionBlocks'](_0x4d7c8c){const _0x30cdd2=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b48f9=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d7c8c)['map'](_0x11c87d=>{const _0xbe8447=this['editor']['model']['createPositionAt'](_0x11c87d,0x0);return[..._0x30cdd2['getSiblingNodes'](_0xbe8447,'backward'),..._0x30cdd2['getSiblingNodes'](_0xbe8447,'forward')];})['flat']();return _0x2b48f9=[...new Set(_0x2b48f9)],_0x2b48f9;}['_getTranslationKeyForListStyle'](_0x517f41){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x517f41)||'default')['toUpperCase']()+'_LIST_'+_0x517f41['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x41808b{['afterInit'](){const _0x120feb=this['editor'];if(!_0x120feb['plugins']['has']('MediaEmbedEditing'))return;const _0xeca63a=_0x120feb['plugins']['get']('TrackChangesEditing'),_0x34da43=_0x120feb['locale'];_0xeca63a['enableCommand']('mediaEmbed'),_0xeca63a['descriptionFactory']['registerElementLabel']('media',_0x5f060c=>o(_0x34da43,'ELEMENT_MEDIA',_0x5f060c)),_0x120feb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x566ab4,{writer:_0x72978e,options:_0xfa6afe})=>{if(_0xfa6afe['showSuggestionHighlights'])return _0x72978e['createEmptyElement']('div');},'converterPriority':'high'}),_0x120feb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x416aba,_0x252c4f,_0x3db891)=>{_0x3db891['options']['showSuggestionHighlights']&&_0x416aba['stop']();},{'priority':'high'});}}class mt extends _0x41808b{['afterInit'](){const _0x1b157f=this['editor'];_0x1b157f['plugins']['has']('MentionEditing')&&_0x1b157f['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x41808b{['afterInit'](){const _0x19b911=this['editor'];if(!_0x19b911['commands']['get']('insertMergeField'))return;_0x19b911['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0xed0d64=_0x19b911['plugins']['get']('TrackChangesEditing'),_0x29412b=_0x19b911['locale'];_0xed0d64['descriptionFactory']['registerElementLabel']('mergeField',_0x35fae5=>o(_0x29412b,'ELEMENT_MERGE_FIELD',_0x35fae5)),_0xed0d64['descriptionFactory']['registerDescriptionCallback'](_0x17d0fb=>{if('insertion'!=_0x17d0fb['type']&&'deletion'!=_0x17d0fb['type'])return;const _0x53c0e3=_0x17d0fb['getContainedElement']();if(null==_0x53c0e3)return;if(!_0x53c0e3['is']('element','mergeField'))return;const _0x21befd=_0x19b911['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x53c0e3['getAttribute']('id'));return'insertion'==_0x17d0fb['type']?{'type':'insertion','content':o(_0x29412b,'*Insert:*\x20%0','\x22'+_0x21befd+'\x22\x20'+o(_0x29412b,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x29412b,'*Remove:*\x20%0','\x22'+_0x21befd+'\x22\x20'+o(_0x29412b,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x41808b{['afterInit'](){const _0x5c89a7=this['editor'],_0x18686b=_0x5c89a7['plugins']['get']('TrackChangesEditing');_0x5c89a7['plugins']['has']('MultiLevelList')&&(_0x18686b['enableDefaultAttributesIntegration']('multiLevelList'),_0x18686b['registerBlockAttribute']('listMarkerStyle'),_0x18686b['descriptionFactory']['registerDescriptionCallback'](_0x4a55c6=>this['handleDescriptions'](_0x4a55c6)));}['handleDescriptions'](_0x94b5d4){const _0x49cdf8=this['editor']['locale'],{data:_0x55c331}=_0x94b5d4,_0xd32ef7={'type':'format','content':''};if(_0x55c331&&'listMarkerStyle'==_0x55c331['key']){if(!_0x55c331['oldValue'])return{'type':'format','content':o(_0x49cdf8,'*Set\x20format:*\x20%0',o(_0x49cdf8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x55c331['newValue']+')'};if(!_0x55c331['newValue']){let _0x38a48d=_0x94b5d4['head'];for(;_0x38a48d;){if(_0x38a48d['data']&&'listType'==_0x38a48d['data']['key']&&_0x38a48d['data']['newValue'])return _0xd32ef7;_0x38a48d=_0x38a48d['next'];}return{'type':'format','content':o(_0x49cdf8,'*Remove\x20format:*\x20%0',o(_0x49cdf8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x55c331['oldValue']+')'};}}}}class kt extends _0x41808b{['afterInit'](){const _0x58043c=this['editor'];if(!_0x58043c['plugins']['has']('PageBreakEditing'))return;_0x58043c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xeba4dd=_0x58043c['plugins']['get']('TrackChangesEditing'),_0xf68de5=_0x58043c['locale'];_0xeba4dd['descriptionFactory']['registerElementLabel']('pageBreak',_0x2b7905=>o(_0xf68de5,'ELEMENT_PAGE_BREAK',_0x2b7905));}}class bt extends _0x41808b{['afterInit'](){const _0x16247a=this['editor'];if(!_0x16247a['plugins']['has']('Paragraph'))return;const _0x4e1435=_0x16247a['locale'],_0xd5dc87=_0x16247a['plugins']['get']('TrackChangesEditing');_0xd5dc87['descriptionFactory']['registerElementLabel']('paragraph',_0xf26930=>o(_0x4e1435,'ELEMENT_PARAGRAPH',_0xf26930)),_0xd5dc87['enableDefaultAttributesIntegration']('paragraph'),_0xd5dc87['enableCommand']('insertParagraph'),_0x16247a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x16247a),{'priority':'highest'}),_0x16247a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x17e7d5,_0x5ed878,_0x204bc6)=>{_0x204bc6['options']['showSuggestionHighlights']&&nr(_0x16247a,{'showActiveMarker':!0x1})(_0x17e7d5,_0x5ed878,_0x204bc6);},{'priority':'highest'});const _0xbc48e4=_0xd5dc87['descriptionFactory'];_0xbc48e4['registerDescriptionCallback'](_0x2aa4d8=>{if('insertion'!==_0x2aa4d8['type'])return;const {start:_0x459b07,end:_0x1caf22}=_0x2aa4d8['getFirstRange']();if(!_0x459b07['isTouching'](_0x1caf22)||!_0x459b07['nodeAfter'])return;const _0x4cf0c4=_0x16247a['model']['schema'],_0x46bd8a=_0x459b07['nodeAfter'];return _0x4cf0c4['isBlock'](_0x46bd8a)&&!_0x4cf0c4['isLimit'](_0x46bd8a)&&_0x4cf0c4['checkChild'](_0x46bd8a,'$text')?{'type':'insertion','content':o(_0x4e1435,'*Insert:*\x20%0',_0xbc48e4['getItemLabel'](_0x46bd8a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c24a0=this['editor'],_0x5d3f5f=_0x2c24a0['locale'];_0x2c24a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55e50c=>{if('formatBlock'!=_0x55e50c['type'])return;const {data:_0x3d84a3}=_0x55e50c;return _0x3d84a3&&'paragraph'==_0x3d84a3['commandName']?{'type':'format','content':o(_0x5d3f5f,'*Change\x20to:*\x20%0',o(_0x5d3f5f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5a7fc9,{showActiveMarker:_0x3674ee=!0x0}={}){return(_0x9da45b,_0x2ac714,_0x1534cd)=>{const _0x20ad4b=_0x5a7fc9['plugins']['get']('TrackChangesEditing'),_0x2885c4=_0x2ac714['markerRange']['start'],_0x1258ac=_0x2ac714['markerRange']['end'],_0x345352=_0x5a7fc9['model']['schema'];if(!_0x2885c4['isTouching'](_0x1258ac)||!_0x2885c4['nodeAfter'])return;const _0x14a18b=_0x2885c4['nodeAfter'];if(_0x345352['isBlock'](_0x14a18b)&&!_0x345352['isLimit'](_0x14a18b)&&_0x345352['checkChild'](_0x14a18b,'$text')){if(!_0x1534cd['consumable']['consume'](_0x2ac714['markerRange'],_0x9da45b['name']))return;const _0x14757a=_0x1534cd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x184a8c=_0x1534cd['mapper']['toViewPosition'](_0x1258ac);_0x3674ee&&_0x20ad4b['activeMarkers']['includes'](_0x2ac714['markerName'])&&_0x1534cd['writer']['addClass']('ck-suggestion-marker--active',_0x14757a),_0x1534cd['writer']['insert'](_0x184a8c,_0x14757a),_0x1534cd['mapper']['bindElementToMarker'](_0x14757a,_0x2ac714['markerName']);}};}class wt extends _0x41808b{['afterInit'](){const _0xbcfae1=this['editor'];if(!_0xbcfae1['plugins']['has']('RemoveFormatEditing'))return;_0xbcfae1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34c310=this['editor'];_0x34c310['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a9577=>{if('formatBlock'!=_0x5a9577['type']&&'formatInline'!=_0x5a9577['type'])return;const {data:_0x58c759}=_0x5a9577;return _0x58c759&&'removeFormat'==_0x58c759['commandName']?{'type':'format','content':o(_0x34c310['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x41808b{['afterInit'](){const _0x186554=this['editor'];if(!_0x186554['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x23ae0b=_0x186554['plugins']['get']('TrackChangesEditing');_0x23ae0b['enableCommand']('goToPreviousRestrictedEditingException'),_0x23ae0b['enableCommand']('goToNextRestrictedEditingException');const _0x3aa181=_0x186554['plugins']['get']('RestrictedEditingModeEditing');_0x3aa181['enableCommand']('trackChanges'),_0x3aa181['enableCommand']('acceptSuggestion'),_0x3aa181['enableCommand']('discardSuggestion'),_0x3aa181['enableCommand']('acceptAllSuggestions'),_0x3aa181['enableCommand']('discardAllSuggestions'),_0x3aa181['enableCommand']('acceptSelectedSuggestions'),_0x3aa181['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x41808b{static get['requires'](){return[_0x242e72];}['init'](){const _0x4e9b14=this['editor'],_0xa6f762=_0x4e9b14['plugins']['get']('TrackChangesEditing');_0xa6f762['enableCommand']('shiftEnter'),_0x4e9b14['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4e9b14),{'priority':'high'}),_0x4e9b14['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4e9b14),{'priority':'high'}),_0x4e9b14['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x56a8ac,_0x98601a,_0x272e7b)=>{_0x272e7b['options']['showSuggestionHighlights']&&ge(_0x4e9b14,{'showActiveMarker':!0x1})(_0x56a8ac,_0x98601a,_0x272e7b);}),_0xa6f762['descriptionFactory']['registerElementLabel']('softBreak',_0x56a453=>o(_0x4e9b14['locale'],'ELEMENT_LINE_BREAK',_0x56a453));}}function ge(_0x218072,{showActiveMarker:_0x4ef78b=!0x0}={}){return(_0x259175,_0x1c5f04,_0x298a42)=>{const _0x361d65=_0x218072['plugins']['get']('TrackChangesEditing');if(!_0x298a42['consumable']['test'](_0x1c5f04['markerRange'],_0x259175['name']))return;const _0x273102=_0x218072['model'];for(const _0x11b16e of _0x1c5f04['markerRange']['getItems']()){if(!_0x11b16e['is']('element','softBreak'))continue;const _0x20971f='deletion'==_0x1c5f04['markerName']['split'](':')[0x1]?'merge':'split',_0x426fb3=_0x298a42['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20971f}),_0x4314be=_0x298a42['mapper']['toViewPosition'](_0x273102['createPositionBefore'](_0x11b16e));_0x4ef78b&&_0x361d65['activeMarkers']['includes'](_0x1c5f04['markerName'])&&_0x298a42['writer']['addClass']('ck-suggestion-marker--active',_0x426fb3),_0x298a42['writer']['insert'](_0x4314be,_0x426fb3),_0x298a42['mapper']['bindElementToMarker'](_0x426fb3,_0x1c5f04['markerName']);}};}class St extends _0x41808b{['afterInit'](){const _0x312c23=this['editor'],_0xda53b2=_0x312c23['model'],_0x758c6b=_0x312c23['locale'];if(!_0x312c23['plugins']['has']('StandardEditingModeEditing'))return;const _0x3b3cde=_0x312c23['plugins']['get']('TrackChangesEditing'),_0x482fab='restrictedEditingException',_0x43e445=_0x312c23['commands']['get'](_0x482fab);_0x3b3cde['enableCommand'](_0x482fab,(_0x18b188,_0x5b55f9={})=>{const _0xe57b01=_0xda53b2['document']['selection'];if(_0xe57b01['isCollapsed'])return void _0x18b188(_0x5b55f9);const _0x948845=void 0x0!==_0x5b55f9['forceValue']?_0x5b55f9['forceValue']:!_0x43e445['value'];_0xda53b2['change'](()=>{const _0x49a6f0=Array['from'](_0xe57b01['getRanges']());for(const _0x36ee47 of _0x49a6f0){const _0x542e4d=_0x948845?[_0x36ee47]:io(_0x482fab,_0x36ee47,_0xda53b2);for(const _0x356853 of _0x542e4d)_0x3b3cde['markInlineFormat'](_0x356853,{'commandName':_0x482fab,'commandParams':[{'forceValue':_0x948845}]});}});}),_0x3b3cde['descriptionFactory']['registerDescriptionCallback'](_0x4ae086=>{if('formatBlock'!=_0x4ae086['type']&&'formatInline'!=_0x4ae086['type'])return;const {data:_0x320a6c}=_0x4ae086;return _0x320a6c&&_0x320a6c['commandName']==_0x482fab?_0x320a6c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x758c6b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x758c6b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x41808b{['afterInit'](){const _0x3a0b02=this['editor'];if(!_0x3a0b02['plugins']['has']('Style')||!_0x3a0b02['plugins']['has']('DataSchema'))return;const _0x22f4d1=_0x3a0b02['plugins']['get']('TrackChangesEditing'),_0x42f8cb=_0x3a0b02['locale'],_0x252648=_0x3a0b02['config']['get']('style')||{},_0x316c5d=_0x3a0b02['plugins']['get']('GeneralHtmlSupport'),_0x349919=_0x3a0b02['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3a0b02['plugins']['get']('DataSchema'),_0x252648['definitions']);_0x22f4d1['enableDefaultAttributesIntegration']('style');const _0x491a06=new Set();for(const _0x5b7961 of _0x349919['block']){const _0x5b426f=_0x316c5d['getGhsAttributeNameForElement'](_0x5b7961['element']);_0x491a06['add'](_0x5b426f);}const _0x3a1b98=new Set();for(const _0xf66fe2 of _0x349919['inline']){const _0x204b2b=_0x316c5d['getGhsAttributeNameForElement'](_0xf66fe2['element']);_0x3a1b98['add'](_0x204b2b);for(const _0x55dd5c of _0xf66fe2['ghsAttributes'])_0x3a1b98['add'](_0x55dd5c);}for(const _0x4b73ff of _0x491a06)_0x22f4d1['registerBlockAttribute'](_0x4b73ff),_0x22f4d1['descriptionFactory']['registerAttributeLabel'](_0x4b73ff,o(_0x42f8cb,'FORMAT_STYLE'));for(const _0x2a4476 of _0x3a1b98)_0x22f4d1['registerInlineAttribute'](_0x2a4476),_0x22f4d1['descriptionFactory']['registerAttributeLabel'](_0x2a4476,o(_0x42f8cb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e676c=this['editor'],_0x2af122=_0x2e676c['locale'];_0x2e676c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b0bf9=>{if('formatBlock'!=_0x5b0bf9['type']&&'formatInline'!=_0x5b0bf9['type'])return;const {data:_0x4d3fa9}=_0x5b0bf9;return _0x4d3fa9&&'style'===_0x4d3fa9['commandName']?_0x4d3fa9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2af122,'*Set\x20format:*\x20%0',_0x4d3fa9['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2af122,'*Remove\x20format:*\x20%0',_0x4d3fa9['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x41808b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xf1c47d){super(_0xf1c47d),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x92d0a2=this['editor'],_0x58fcfd=_0x92d0a2['model']['document']['selection'];if(!_0x92d0a2['plugins']['has']('TableEditing'))return;const _0x5237c2=_0x92d0a2['locale'],_0x1bc4b2=_0x92d0a2['plugins']['get']('TrackChangesEditing'),_0x57f6bf=_0x92d0a2['plugins']['get']('TableUtils');_0x1bc4b2['descriptionFactory']['registerElementLabel']('table',_0x261d0f=>o(_0x5237c2,'ELEMENT_TABLE',_0x261d0f)),this['_setupColumnsRowsFixing'](),_0x1bc4b2['enableCommand']('insertTable'),_0x1bc4b2['enableCommand']('selectTableRow'),_0x1bc4b2['enableCommand']('selectTableColumn');for(const _0x2cc7e7 of['insertTableRowAbove','insertTableRowBelow']){const _0x20d434=_0x92d0a2['commands']['get'](_0x2cc7e7);_0x1bc4b2['enableCommand'](_0x2cc7e7,_0x521067=>{_0x92d0a2['model']['change'](_0x2fb2cd=>{_0x521067();const _0x2de4f7='above'===_0x20d434['order'],_0x1d602=_0x57f6bf['getSelectionAffectedTableCells'](_0x58fcfd),_0x107f70=_0x57f6bf['getRowIndexes'](_0x1d602),_0x51b24c=_0x2de4f7?_0x107f70['first']-0x1:_0x107f70['last']+0x1,_0x2def14=_0x1d602[0x0]['findAncestor']('table'),_0x3156ea=_0x57f6bf['createTableWalker'](_0x2def14,{'startRow':_0x51b24c,'endRow':_0x51b24c}),_0x3f6d18=Array['from'](_0x3156ea)['map'](_0x484410=>_0x2fb2cd['createRangeOn'](_0x484410['cell']));_0x1bc4b2['markMultiRangeInsertion'](_0x3f6d18,'tableRow');});});}for(const _0x1b8928 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4a3108=_0x92d0a2['commands']['get'](_0x1b8928);_0x1bc4b2['enableCommand'](_0x1b8928,_0x58496a=>{_0x92d0a2['model']['change'](_0x441d2e=>{_0x58496a();const _0x266109='left'===_0x4a3108['order'],_0x39feb4=_0x57f6bf['getSelectionAffectedTableCells'](_0x58fcfd),_0x41f92b=_0x57f6bf['getColumnIndexes'](_0x39feb4),_0x526183=_0x266109?_0x41f92b['first']-0x1:_0x41f92b['last']+0x1,_0x5ef786=_0x39feb4[0x0]['findAncestor']('table'),_0x21d23c=_0x57f6bf['createTableWalker'](_0x5ef786,{'startRow':0x0,'column':_0x526183,'includeAllSlots':!0x1}),_0x1a46e8=Array['from'](_0x21d23c)['map'](_0x4e8cad=>_0x441d2e['createRangeOn'](_0x4e8cad['cell']));_0x1bc4b2['markMultiRangeInsertion'](_0x1a46e8,'tableColumn');});});}for(const _0x2a026d of['removeTableRow','removeTableColumn']){const _0x53ef08=_0x2a026d['substr'](0xb),_0x553aa4=_0x53ef08['toLowerCase'](),_0x259e72=_0x553aa4['substr'](0x0,0x3)+'span',_0x3ad68b='table'+_0x53ef08,_0x1e99e7='min'+_0x53ef08,_0x34f225='max'+_0x53ef08;_0x1bc4b2['enableCommand'](_0x2a026d,()=>{_0x92d0a2['model']['change'](_0x144073=>{const _0x24f0b3=_0x57f6bf['getSelectionAffectedTableCells'](_0x58fcfd),_0x605f52=_0x24f0b3[0x0]['findAncestor']('table');let _0x53e4de;if('removeTableRow'==_0x2a026d){const _0x5626cf=_0x57f6bf['getRowIndexes'](_0x24f0b3);_0x53e4de={'startRow':_0x5626cf['first'],'endRow':_0x5626cf['last'],'includeAllSlots':!0x0};}else{const _0x202ab8=_0x57f6bf['getColumnIndexes'](_0x24f0b3);_0x53e4de={'startColumn':_0x202ab8['first'],'endColumn':_0x202ab8['last'],'includeAllSlots':!0x0};}const _0xb9b3c7=_0x57f6bf['createTableWalker'](_0x605f52,_0x53e4de),_0x350247=Array['from'](_0xb9b3c7)['map'](({cell:_0x573aac})=>_0x573aac),_0x1b7dca=Ee(_0x350247['filter'](_0x19151a=>_0x19151a['hasAttribute'](_0x259e72))),_0x1cbead=Ee(_0x350247['filter'](_0x4602ea=>!_0x4602ea['hasAttribute'](_0x259e72)))['map'](_0x3712c8=>_0x144073['createRangeOn'](_0x3712c8)),_0x70b01f=_0x1bc4b2['markMultiRangeDeletion'](_0x1cbead,_0x3ad68b);if(_0x70b01f&&('tableRow'==_0x70b01f['subType']||'tableColumn'==_0x70b01f['subType'])){const _0x17a8bf=this['_getSuggestionCoords'](_0x70b01f);for(const _0xfc10d of _0x1b7dca){const _0x121f6b=_0x144073['createRangeOn'](_0xfc10d),_0x157d22=_0x57f6bf['getCellLocation'](_0xfc10d),_0x3ab74c=_0xfc10d['getAttribute'](_0x259e72)-0x1,_0xc3a562=_0x17a8bf[_0x1e99e7],_0x5e5757=_0x17a8bf[_0x34f225];_0xc3a562<=_0x157d22[_0x553aa4]&&_0x157d22[_0x553aa4]+_0x3ab74c<=_0x5e5757&&_0x70b01f['addRange'](_0x121f6b);}}});});}function _0x12bad3(_0x516c04){const _0x376a51=Array['from'](_0x58fcfd['getRanges']())['map'](_0x45caac=>_0x36e74e['fromRange'](_0x45caac));_0x92d0a2['model']['change'](_0x208aec=>{const _0x323732=_0x208aec['batch'];_0x516c04=_0x516c04['filter'](_0x248f7a=>'$graveyard'!=_0x248f7a['root']['rootName']),_0x208aec['setSelection'](_0x516c04),_0x92d0a2['commands']['get']('removeTableRow')['refresh'](),_0x92d0a2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x92d0a2['model']['enqueueChange'](()=>{_0x92d0a2['model']['enqueueChange'](_0x323732,_0x1476a1=>{const _0x11f2f6=_0x376a51['filter'](_0x26c35d=>'$graveyard'!=_0x26c35d['root']['rootName']);_0x11f2f6['length']>0x0&&_0x1476a1['setSelection'](_0x11f2f6);for(const _0x4340f3 of _0x376a51)_0x4340f3['detach']();});});});}function _0x23c1f2(_0x2abfd1){_0x92d0a2['model']['change'](_0x596e21=>{const _0x1fea51=Array['from'](_0x58fcfd['getRanges']())['map'](_0xe5e84b=>_0x36e74e['fromRange'](_0xe5e84b)),_0x33f4ad=[];for(const _0x51d942 of _0x2abfd1)for(const _0x4f61d7 of _0x51d942['getItems']({'shallow':!0x0}))_0x33f4ad['push'](_0x4f61d7);for(const _0x4f8861 of _0x33f4ad)'$graveyard'!=_0x4f8861['root']['rootName']&&(_0x596e21['setSelection'](_0x596e21['createPositionAt'](_0x4f8861,0x0)),_0x92d0a2['commands']['get']('removeTableColumn')['refresh'](),_0x92d0a2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5b76eb=_0x1fea51['filter'](_0x30f119=>'$graveyard'!=_0x30f119['root']['rootName']);_0x5b76eb['length']>0x0&&_0x596e21['setSelection'](_0x5b76eb);for(const _0xa2aac of _0x1fea51)_0xa2aac['detach']();});}function _0x1f71a8(_0x40e1bd,_0x49272a){return _0x49272a['every'](_0x2bd6cf=>_0x40e1bd['some'](_0x4fb7f2=>_0x4fb7f2['end']['isEqual'](_0x2bd6cf['start'])||_0x2bd6cf['end']['isEqual'](_0x4fb7f2['start'])));}function _0x5d7432(_0x504cfc,_0x194149){return!_0x504cfc['some'](_0x4b4904=>_0x194149['some'](_0x1b3350=>_0x4b4904['isIntersecting'](_0x1b3350)))&&_0x504cfc['some'](_0x478beb=>_0x194149['some'](_0x5069b2=>_0x478beb['end']['isTouching'](_0x5069b2['start'])));}_0x92d0a2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4beba7,_0x1b00ae,_0x4e4b85)=>{if(!_0x4e4b85['options']['showSuggestionHighlights'])return;const _0x31a2db=_0x1b00ae['item'];if(!_0x31a2db)return;const _0x4a8ae4=_0x4e4b85['mapper']['toViewElement'](_0x31a2db);function _0x4aff6e(_0x41bd38){return Array['isArray'](_0x41bd38)?_0x41bd38:[_0x41bd38];}_0x4a8ae4&&'tableCell'===_0x31a2db['name']&&_0x134fed(_0x4a8ae4,_0x4e4b85['writer'],(_0x60b687,_0x3eb2ed,_0x11e616)=>_0x11e616['addClass'](_0x4aff6e(_0x3eb2ed['classes']),_0x60b687),(_0x568424,_0xe9ac63,_0x7eb9dc)=>_0x7eb9dc['removeClass'](_0x4aff6e(_0xe9ac63['classes']),_0x568424));},{'priority':'highest'}),_0x1bc4b2['descriptionFactory']['registerDescriptionCallback'](_0x261acf=>{if('insertion'!=_0x261acf['type']&&'deletion'!=_0x261acf['type'])return;const _0x2fa8ff=_0x261acf['getContainedElement']();if(null!=_0x2fa8ff&&_0x2fa8ff['is']('element','table')){if('insertion'==_0x261acf['type']){const _0x2bc18e=_0x261acf['getItems']()['filter'](_0x96471e=>_0x96471e['is']('$textProxy'))['map'](_0x2b0e46=>_0x2b0e46['data']);if(_0x2bc18e['length'])return{'type':'insertion','content':o(_0x5237c2,'*Insert:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2bc18e['join']('\x20')+'\x22'))};}if('deletion'==_0x261acf['type']){const _0x5ac55f=_0x261acf['getItems']()['filter'](_0x5500f1=>_0x5500f1['is']('$textProxy'))['map'](_0x25fc78=>_0x25fc78['data']);if(_0x5ac55f['length'])return{'type':'deletion','content':o(_0x5237c2,'*Remove:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ac55f['join']('\x20')+'\x22'))};}}}),_0x1bc4b2['descriptionFactory']['registerDescriptionCallback'](_0xf385a7=>{if('tableRow'==_0xf385a7['subType']){const _0x44bcf4=_0xf385a7['getItems']()['filter'](_0x572668=>_0x572668['is']('$textProxy'))['map'](_0x4481ab=>_0x4481ab['data']),_0x3bb030=this['_getSuggestionCoords'](_0xf385a7),_0x3ff74e=_0x3bb030['maxRow']-_0x3bb030['minRow']+0x1;if('insertion'==_0xf385a7['type'])return _0x44bcf4['length']?{'type':'insertion','content':o(_0x5237c2,'*Insert:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ff74e,'\x22'+_0x44bcf4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5237c2,'*Insert:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_ROW',_0x3ff74e))};if('deletion'==_0xf385a7['type'])return _0x44bcf4['length']?{'type':'deletion','content':o(_0x5237c2,'*Remove:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ff74e,'\x22'+_0x44bcf4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5237c2,'*Remove:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_ROW',_0x3ff74e))};}if('tableColumn'==_0xf385a7['subType']){const _0x5d6591=_0xf385a7['getItems']()['filter'](_0x56ab8b=>_0x56ab8b['is']('$textProxy'))['map'](_0x252dc4=>_0x252dc4['data']),_0x45410f=this['_getSuggestionCoords'](_0xf385a7),_0x382fef=_0x45410f['maxColumn']-_0x45410f['minColumn']+0x1;if('insertion'==_0xf385a7['type'])return _0x5d6591['length']?{'type':'insertion','content':o(_0x5237c2,'*Insert:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x382fef,'\x22'+_0x5d6591['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5237c2,'*Insert:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_COLUMN',_0x382fef))};if('deletion'==_0xf385a7['type'])return _0x5d6591['length']?{'type':'deletion','content':o(_0x5237c2,'*Remove:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x382fef,'\x22'+_0x5d6591['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5237c2,'*Remove:*\x20%0',o(_0x5237c2,'ELEMENT_TABLE_COLUMN',_0x382fef))};}}),_0x1bc4b2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x12bad3),_0x1bc4b2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x12bad3),_0x1bc4b2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x23c1f2),_0x1bc4b2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x23c1f2),_0x1bc4b2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f71a8),_0x1bc4b2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f71a8),_0x1bc4b2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5d7432),_0x1bc4b2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5d7432);}['_acceptFormatSuggestionCallbackFactory'](){const _0x48ae08=this['editor'],_0x4487cb=_0x48ae08['model']['document']['selection'];return(_0x2600e8,_0x437d37)=>{_0x48ae08['model']['change'](_0x445dbb=>{const {commandName:_0x31c7fa,commandParams:_0x3ce213}=_0x437d37;let _0x513cea=_0x2600e8[0x0]['end']['nodeBefore'];_0x3ce213&&_0x3ce213[0x0]&&!0x1===_0x3ce213[0x0]['forceValue']&&(_0x513cea=_0x2600e8[0x0]['start']['nodeAfter']);const _0x1cdd3f=_0x445dbb['createRangeIn'](_0x513cea);if('$graveyard'==_0x1cdd3f['root']['rootName'])return;const _0x8aa7a=Array['from'](_0x4487cb['getRanges']())['map'](_0x408ba2=>_0x36e74e['fromRange'](_0x408ba2));_0x445dbb['setSelection'](_0x1cdd3f),_0x48ae08['commands']['get'](_0x31c7fa)['refresh'](),_0x3ce213['push']({'forceDefaultExecution':!0x0}),_0x48ae08['execute'](_0x31c7fa,..._0x3ce213);const _0x38ed06=_0x8aa7a['filter'](_0x3d450a=>'$graveyard'!=_0x3d450a['root']['rootName']);_0x38ed06['length']>0x0&&_0x445dbb['setSelection'](_0x38ed06);for(const _0x44a967 of _0x8aa7a)_0x44a967['detach']();});};}['_getCoordsForCells'](_0x11cb63){const _0x47c4ff=this['editor']['plugins']['get']('TableUtils');let _0x12c555=Number['MAX_SAFE_INTEGER'],_0x3da4ba=Number['MIN_SAFE_INTEGER'],_0x25305f=Number['MAX_SAFE_INTEGER'],_0x407d3b=Number['MIN_SAFE_INTEGER'];for(const _0x254e87 of _0x11cb63){if('$graveyard'==_0x254e87['root']['rootName'])continue;const {row:_0x5b5d83,column:_0x54731e}=_0x47c4ff['getCellLocation'](_0x254e87),_0x38e92c=_0x254e87['hasAttribute']('rowspan')?_0x254e87['getAttribute']('rowspan')-0x1:0x0,_0x1336fc=_0x254e87['hasAttribute']('colspan')?_0x254e87['getAttribute']('colspan')-0x1:0x0;_0x12c555=_0x5b5d83<_0x12c555?_0x5b5d83:_0x12c555,_0x3da4ba=_0x5b5d83+_0x38e92c>_0x3da4ba?_0x5b5d83+_0x38e92c:_0x3da4ba,_0x25305f=_0x54731e<_0x25305f?_0x54731e:_0x25305f,_0x407d3b=_0x54731e+_0x1336fc>_0x407d3b?_0x54731e+_0x1336fc:_0x407d3b;}return{'minRow':_0x12c555,'maxRow':_0x3da4ba,'minColumn':_0x25305f,'maxColumn':_0x407d3b};}['_setupColumnsRowsFixing'](){const _0xbda8af=this['editor'],_0x4a4574=_0xbda8af['plugins']['get']('TrackChangesEditing'),_0x505f09=_0xbda8af['plugins']['get']('TableUtils');_0xbda8af['model']['document']['on']('change:data',()=>{const _0xab024d=Array['from'](_0xbda8af['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x577298,data:_0x396fcd}of _0xab024d){const {group:_0x26144c,id:_0x5ee3ed,subType:_0x2e3241}=_0x4a4574['_splitMarkerName'](_0x577298);if('suggestion'!=_0x26144c)continue;if(null!=_0x396fcd['oldRange'])continue;const _0x2d093a=_0x4a4574['getSuggestion'](_0x5ee3ed);this['_tablePostFixingSubtypes']['includes'](_0x2e3241)&&this['_tableSuggestions']['add'](_0x2d093a);}},{'priority':'low'});const _0x2c98b0=(_0x43fa64,_0x3a1ba5)=>{let _0x5edcaa=!0x1;const _0x43b098=_0x3a1ba5['createRangeOn'](_0x43fa64),_0x3f1556=_0x43fa64['findAncestor']('table'),_0x5e8b72=_0x505f09['getCellLocation'](_0x43fa64);for(const _0x8c174f of this['_tableSuggestions']){const _0x5f5860=_0x8c174f['subType'],_0x154934=_0x5f5860['startsWith']('tablePaste'),_0xac0d3=_0x5f5860['substr'](_0x154934?0xa:0x5),_0x345434=_0xac0d3['toLowerCase'](),_0x2c7efe=_0x345434['substr'](0x0,0x3)+'span',_0x53c889='min'+_0xac0d3,_0x22c3fd='max'+_0xac0d3;if(!_0x8c174f['isInContent'])continue;if(_0x3f1556!=_0x8c174f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x8c174f['isIntersectingWithRange'](_0x43b098))continue;const _0x2b1be7=_0x43fa64['hasAttribute'](_0x2c7efe)?_0x43fa64['getAttribute'](_0x2c7efe)-0x1:0x0,_0x2d3982=this['_getSuggestionCoords'](_0x8c174f),_0x50b32d=_0x2d3982[_0x53c889],_0x3a2278=_0x2d3982[_0x22c3fd];_0x50b32d<=_0x5e8b72[_0x345434]&&_0x5e8b72[_0x345434]+_0x2b1be7<=_0x3a2278&&(_0x8c174f['addRange'](_0x43b098),_0x5edcaa=!0x0);}return _0x5edcaa;};_0xbda8af['model']['document']['registerPostFixer'](_0x2e859f=>{let _0x33ad59=!0x1;for(const _0x4c3838 of _0xbda8af['model']['document']['differ']['getChanges']())if('insert'==_0x4c3838['type']){if('tableRow'==_0x4c3838['name']){for(const _0x55154b of _0x4c3838['position']['nodeAfter']['getChildren']())_0x33ad59=_0x33ad59||_0x2c98b0(_0x55154b,_0x2e859f);}else'tableCell'==_0x4c3838['name']&&(_0x33ad59=_0x33ad59||_0x2c98b0(_0x4c3838['position']['nodeAfter'],_0x2e859f));}return _0x33ad59;});}['_getSuggestionCoords'](_0x47ae97){return this['_getCoordsForCells'](_0x47ae97['getRanges']()['map'](_0x451c66=>_0x451c66['start']['nodeAfter']));}}function Ee(_0x22f750){return Array['from'](new Set(_0x22f750)['values']());}class vt extends _0x41808b{static get['requires'](){return[It];}['afterInit'](){const _0x322644=this['editor'],_0x1b0173=_0x322644['model']['document']['selection'],_0x87845a=_0x322644['locale'];if(!_0x322644['plugins']['has']('TableEditing'))return;const _0xe980d7=_0x322644['plugins']['get']('TrackChangesEditing'),_0x37dc8c=_0x322644['plugins']['get']('TableUtils'),_0x3c60a2=_0x322644['plugins']['get'](It);_0x3c60a2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe980d7['enableCommand']('mergeTableCells',()=>{const _0x25cc15=_0x37dc8c['getSelectionAffectedTableCells'](_0x322644['model']['document']['selection']);_0x322644['model']['change'](()=>{_0xe980d7['markMultiRangeBlockFormat'](_0x25cc15,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x322644['commands']['get']('mergeTableCells')['on']('execute',(_0xe7c93f,_0x5e2944)=>{_0x322644['commands']['get']('trackChanges')['value']&&(_0x5e2944['length']>0x0&&_0x5e2944[_0x5e2944['length']-0x1]&&_0x5e2944[_0x5e2944['length']-0x1]['forceDefaultExecution']||_0xe980d7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xe7c93f['stop']());},{'priority':'highest'});for(const _0x56dcec of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x188995=_0x322644['commands']['get'](_0x56dcec);_0xe980d7['enableCommand'](_0x56dcec,()=>{const _0x3253cd=_0x322644['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4b2664=>_0x4b2664['is']('element','tableCell')),_0x317b2a=_0x188995['value'];_0x322644['model']['change'](()=>{_0xe980d7['markMultiRangeBlockFormat']([_0x3253cd,_0x317b2a],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4f1ae6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x14e040=_0x322644['commands']['get'](_0x4f1ae6);_0xe980d7['enableCommand'](_0x4f1ae6,()=>{const _0x439783=_0x37dc8c['getSelectionAffectedTableCells'](_0x322644['model']['document']['selection'])[0x0],_0x4ed54c=_0x439783['findAncestor']('table'),{column:_0x5808d5,row:_0x3adc84}=_0x37dc8c['getCellLocation'](_0x439783);let _0x12d8dd=[];if('horizontally'==_0x14e040['direction']){const _0x300ff2=_0x37dc8c['createTableWalker'](_0x4ed54c,{'startRow':_0x3adc84,'endRow':_0x3adc84,'includeAllSlots':!0x0});_0x12d8dd=Array['from'](_0x300ff2)['map'](_0x344888=>_0x344888['cell']);}else{const _0xeb36fc=_0x37dc8c['createTableWalker'](_0x4ed54c,{'column':_0x5808d5,'includeAllSlots':!0x0});_0x12d8dd=Array['from'](_0xeb36fc)['map'](_0x5dd63e=>_0x5dd63e['cell']);}_0x322644['model']['change'](_0x397710=>{_0xe980d7['markBlockFormat'](_0x397710['createRangeOn'](_0x439783),{'commandName':_0x4f1ae6,'commandParams':[]},_0x12d8dd,_0x4f1ae6);});});}_0xe980d7['descriptionFactory']['registerDescriptionCallback'](_0x21c1b9=>{if('formatBlock'!=_0x21c1b9['type']&&'formatInline'!=_0x21c1b9['type'])return;const {data:_0x4df3e0}=_0x21c1b9;return _0x4df3e0&&'mergeTableCells'==_0x4df3e0['commandName']?{'type':'format','content':o(_0x87845a,'*Merge\x20cells*')}:void 0x0;}),_0xe980d7['descriptionFactory']['registerDescriptionCallback'](_0x11d79f=>{if('formatBlock'!=_0x11d79f['type']&&'formatInline'!=_0x11d79f['type'])return;const {data:_0x444393}=_0x11d79f;return _0x444393?'splitTableCellVertically'==_0x444393['commandName']?{'type':'format','content':o(_0x87845a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x444393['commandName']?{'type':'format','content':o(_0x87845a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2add2b=_0x3c60a2['_acceptFormatSuggestionCallbackFactory']();for(const _0x32259e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe980d7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x32259e,'accept',_0x2add2b);for(const _0x1fdd47 of['splitTableCellVertically','splitTableCellHorizontally'])_0xe980d7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1fdd47,'accept',_0x2add2b);_0xe980d7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x415c8e=>{_0x322644['model']['change'](_0x17f7ae=>{const _0x4a9650=Array['from'](_0x1b0173['getRanges']())['map'](_0x32da7c=>_0x36e74e['fromRange'](_0x32da7c));_0x17f7ae['setSelection'](_0x415c8e),_0x322644['commands']['get']('mergeTableCells')['refresh'](),_0x322644['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x13e30f=_0x4a9650['filter'](_0x2807aa=>'$graveyard'!=_0x2807aa['root']['rootName']);_0x13e30f['length']>0x0&&_0x17f7ae['setSelection'](_0x13e30f);for(const _0x1e158e of _0x4a9650)_0x1e158e['detach']();});});for(const _0x5eea73 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3a9898=_0x322644['commands']['get'](_0x5eea73);_0x3a9898['on']('set:isEnabled',(_0x470b06,_0x5221d3,_0x5c5047)=>{if(_0x5c5047){const _0x5a8e0e=_0x322644['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x582c30=>_0x582c30['is']('element','tableCell'));this['_areMergableCells'](_0x3a9898['value'],_0x5a8e0e)||(_0x470b06['return']=!0x1,_0x470b06['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c90c6=this['editor']['commands']['get']('mergeTableCells'),_0x23952b=this['editor']['plugins']['get']('TableUtils');if(!_0x1c90c6['isEnabled'])return!0x1;const _0x53075f=_0x23952b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x30348c of _0x53075f)for(const _0x4639a3 of _0x53075f)if(_0x30348c!=_0x4639a3&&!this['_areMergableCells'](_0x30348c,_0x4639a3))return!0x1;return!0x0;}['_areMergableCells'](_0x18d35a,_0x402a4a){const _0x1d57ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53217e=this['editor']['model']['createRangeOn'](_0x18d35a),_0x3745ae=this['editor']['model']['createRangeOn'](_0x402a4a),_0x143653=new Set(),_0x17c38a=new Set();for(const _0x33e964 of _0x1d57ef['getSuggestions']())if(('insertion'==_0x33e964['type']||'deletion'==_0x33e964['type']||'mergeTableCells'==_0x33e964['subType'])&&_0x33e964['isInContent']){for(const _0x20842a of _0x33e964['getRanges']())_0x20842a['containsRange'](_0x53217e,!0x0)&&_0x143653['add'](_0x33e964['type']+':'+_0x33e964['author']['id']),_0x20842a['containsRange'](_0x3745ae,!0x0)&&_0x17c38a['add'](_0x33e964['type']+':'+_0x33e964['author']['id']);}if(_0x143653['size']!=_0x17c38a['size'])return!0x1;for(const _0x4c9a7d of _0x143653)if(!_0x17c38a['has'](_0x4c9a7d))return!0x1;return!0x0;}}class Ct extends _0x41808b{static get['requires'](){return[It];}['afterInit'](){const _0x88e6d3=this['editor'];if(!_0x88e6d3['plugins']['has']('TableEditing'))return;const _0x243170=_0x88e6d3['locale'],_0x72b7e1=_0x88e6d3['plugins']['get']('TrackChangesEditing');_0x72b7e1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x72b7e1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x72b7e1['registerBlockAttribute']('headingRows'),_0x72b7e1['registerBlockAttribute']('headingColumns'),_0x72b7e1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x243170,'FORMAT_HEADER_ROW')),_0x72b7e1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x243170,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x536297=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15d23c=this['editor']['plugins']['get']('TableUtils'),_0x522ae3=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4e95b2({showActiveMarker:_0xa0db03=!0x0,setDataAttribute:_0x3e9b2c=!0x0}={}){return(_0x3eba5a,_0x38d096,_0x3b299e)=>{const {type:_0x5920d8,id:_0x1c07ce}=_0x536297['_splitMarkerName'](_0x38d096['markerName']),_0x1b4da4=_0x536297['getSuggestion'](_0x1c07ce),_0x4a5afe=_0x1b4da4['data'];if('formatBlock'!=_0x1b4da4['type']||!_0x4a5afe||'setTableColumnHeader'!=_0x4a5afe['commandName'])return;if(_0x38d096['item'])return void _0x3eba5a['stop']();if(!_0x3b299e['consumable']['consume'](_0x38d096['markerRange'],_0x3eba5a['name']))return;const _0x2a5226=_0x38d096['markerRange']['start']['nodeAfter'],_0x11fbaf=_0x38d096['markerRange']['end']['nodeBefore'],_0x3350f4=_0x2a5226['parent']['parent'],{column:_0x555375}=_0x15d23c['getCellLocation'](_0x2a5226),{column:_0x508568}=_0x15d23c['getCellLocation'](_0x11fbaf);for(let _0xba4896=_0x555375;_0xba4896<=_0x508568;_0xba4896++){const _0xbde10=_0x15d23c['createTableWalker'](_0x3350f4,{'column':_0xba4896,'includeAllSlots':!0x1});for(const _0x4dc7f4 of _0xbde10){const _0x3bb909=_0x4dc7f4['cell'],_0x32d641=_0x3b299e['mapper']['toViewElement'](_0x3bb909);_0x3b299e['writer']['addClass']('ck-suggestion-marker-'+_0x5920d8,_0x32d641),_0x3e9b2c&&_0x3b299e['writer']['setAttribute']('data-suggestion',_0x1c07ce,_0x32d641),_0x3b299e['mapper']['bindElementToMarker'](_0x32d641,_0x38d096['markerName']),_0xa0db03&&(_0x536297['activeMarkers']['includes'](_0x38d096['markerName'])?_0x3b299e['writer']['addClass']('ck-suggestion-marker--active',_0x32d641):_0x3b299e['writer']['removeClass']('ck-suggestion-marker--active',_0x32d641));}}};}_0x536297['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x522ae3),_0x536297['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x522ae3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4e95b2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e13a8,_0x816e77,_0x53c1c1)=>{_0x53c1c1['options']['showSuggestionHighlights']&&_0x4e95b2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5e13a8,_0x816e77,_0x53c1c1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45f685,_0x214487,_0x4d3b59)=>{const {type:_0x2d6c16,id:_0x894967}=_0x536297['_splitMarkerName'](_0x214487['markerName']),_0x3de902=_0x536297['getSuggestion'](_0x894967),_0x89f12e=_0x3de902['data'];if('formatBlock'!=_0x3de902['type']||!_0x89f12e||'setTableColumnHeader'!=_0x89f12e['commandName'])return;const _0x52a603=_0x4d3b59['mapper']['markerNameToElements'](_0x214487['markerName']);if(_0x52a603){for(const _0x569ac2 of _0x52a603)_0x4d3b59['writer']['removeClass']('ck-suggestion-marker-'+_0x2d6c16,_0x569ac2),_0x4d3b59['writer']['removeClass']('ck-suggestion-marker--active',_0x569ac2),_0x4d3b59['writer']['removeAttribute']('data-suggestion',_0x569ac2),_0x4d3b59['mapper']['unbindElementFromMarkerName'](_0x569ac2,_0x214487['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1836cc=this['editor'],_0x28cdd1=_0x1836cc['locale'];function _0x3cc841(_0x191702){return{'type':'format','content':o(_0x28cdd1,'*Format:*\x20%0',_0x191702)};}_0x1836cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ad860=>{if('formatBlock'!=_0x1ad860['type'])return;const {data:_0x3df421}=_0x1ad860;if(_0x3df421){if('setTableRowHeader'==_0x3df421['commandName']){const _0x24090b=_0x3df421['commandParams'][0x0]['forceValue'];return _0x3cc841(o(_0x28cdd1,_0x24090b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3df421['commandName']){const _0x41a98c=_0x3df421['commandParams'][0x0]['forceValue'];return _0x3cc841(o(_0x28cdd1,_0x41a98c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x1c9e9=>[_0x1c9e9,null]));class _t extends _0x41808b{static get['requires'](){return[It];}['afterInit'](){const _0x32ddf2=this['editor'];if(!_0x32ddf2['plugins']['has']('TableClipboard'))return;const _0x48c451=_0x32ddf2['plugins']['get']('TrackChangesEditing'),_0x5d5359=_0x32ddf2['plugins']['get']('TableUtils'),_0xfdec1e=_0x32ddf2['plugins']['get'](It),_0x476dc8=_0x32ddf2['plugins']['get']('TableClipboard');_0xfdec1e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x32ddf2['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x32ddf2['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4bd0bd=null;_0x32ddf2['model']['on']('insertContent',(_0x2651ad,_0x60845a)=>{const [_0x4bd8ed,_0x4747a8]=_0x60845a,_0x80297c=_0x60845a[_0x60845a['length']-0x1];_0x80297c&&_0x80297c['forceDefaultExecution']||_0x48c451['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1acd62,_0x54efbb,_0x4a5d56,_0x32fc6d,_0x3dc5f7){if(_0x54efbb&&!_0x54efbb['is']('documentSelection'))return!0x1;const _0x341b47=_0x3dc5f7['getTableIfOnlyTableInContent'](_0x1acd62,_0x4a5d56);if(!_0x341b47||!ke(_0x341b47,void 0x0,_0x32fc6d))return!0x1;const _0xf6e415=_0x32fc6d['getSelectionAffectedTableCells'](_0x4a5d56['document']['selection']);if(!_0xf6e415['length'])return!0x1;const _0x2001cf=_0xf6e415[0x0]['findAncestor']('table'),_0x423b6a=_0x32fc6d['getRowIndexes'](_0xf6e415),_0xb8b055=_0x32fc6d['getColumnIndexes'](_0xf6e415),_0x2761fd={'startRow':_0x423b6a['first'],'endRow':_0x423b6a['last'],'startColumn':_0xb8b055['first'],'endColumn':_0xb8b055['last']};return 0x1==_0xf6e415['length']&&(_0x2761fd['endRow']+=_0x32fc6d['getRows'](_0x341b47)-0x1,_0x2761fd['endColumn']+=_0x32fc6d['getColumns'](_0x341b47)-0x1),ke(_0x2001cf,_0x2761fd,_0x32fc6d);}(_0x4bd8ed,_0x4747a8,_0x32ddf2['model'],_0x5d5359,_0x476dc8)&&(_0x2651ad['stop'](),_0x4bd0bd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x32ddf2['model']['change'](()=>{_0x32ddf2['model']['insertContent'](_0x60845a[0x0],_0x60845a[0x1],_0x60845a[0x2],{'forceDefaultExecution':!0x0});const _0x858150=_0x55ea85(),{rowInsertionRanges:_0x412d44,columnInsertionRanges:_0xc7d16b,insertionRanges:_0x53537a,deletionRanges:_0x1ebf91,cells:_0x441935}=_0x4bd0bd;_0x412d44['length']&&_0x48c451['markMultiRangeInsertion'](_0x412d44,'tablePasteRow',{'tablePasteChainId':_0x858150}),_0xc7d16b['length']&&_0x48c451['markMultiRangeInsertion'](_0xc7d16b,'tablePasteColumn',{'tablePasteChainId':_0x858150}),_0x53537a['length']&&(_0x48c451['markMultiRangeInsertion'](_0x53537a,'tablePaste',{'tablePasteChainId':_0x858150,'skipNestingCheck':!0x0}),_0x53537a['forEach'](_0x2a2ccd=>_0x2a2ccd['detach']?.())),_0x1ebf91['length']&&(_0x48c451['markMultiRangeDeletion'](_0x1ebf91,'tablePaste',{'tablePasteChainId':_0x858150,'skipNestingCheck':!0x0}),_0x1ebf91['forEach'](_0xd6e5d9=>_0xd6e5d9['detach']?.()));const _0x5299c3=_0x48c451['markMultiRangeBlockFormat'](_0x441935['map'](({element:_0x1616da})=>_0x1616da),{'formatGroupId':_0x55ea85()},[],'tablePasteCell',{'tablePasteChainId':_0x858150});if(_0x5299c3){const _0x46e786=_0x5299c3['getMarkers'](),_0x3eee8f=[];for(const {element:_0x1c09b0,attributes:_0x4b4fcd}of _0x441935){if(!_0x4b4fcd)continue;const _0x4f2ce1=_0x32ddf2['model']['createRangeOn'](_0x1c09b0),_0x3ed8d8=_0x46e786['find'](_0x3316f4=>_0x3316f4['getRange']()['isEqual'](_0x4f2ce1));_0x3ed8d8&&_0x3eee8f['push']([_0x3ed8d8['name'],_0x4b4fcd]);}_0x3eee8f['length']&&_0x5299c3['setAttribute']('markerAttributes',Object['fromEntries'](_0x3eee8f));}_0x4bd0bd=null;}));},{'priority':_0x21fa8f['high']+0xa}),_0x32ddf2['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2aba62,_0x5863bc)=>{const [_0x2d8cf8,_0x1b1007,,_0x15ebea]=_0x5863bc;if(!_0x4bd0bd)return;_0x2aba62['stop']();const _0x547cd8=_0x2d8cf8['cell'],_0x49e774=_0x1b1007,_0xad045c=we(_0x547cd8),_0x3dc7f7=we(_0x49e774);_0x2aba62['return']=_0x547cd8;let _0x90142b=null,_0x4b7d9a=null;if(_0x3dc7f7||_0xad045c){if(_0xad045c&&!_0x3dc7f7){_0x15ebea['remove'](_0x547cd8['getChild'](0x0));for(const _0x3b771a of Array['from'](_0x49e774['getChildren']()))_0x15ebea['insert'](_0x3b771a,_0x547cd8,'end');const _0x21b4e0=_0x4bd0bd['rowInsertionIndexes']['includes'](_0x2d8cf8['row']),_0x5e41e2=_0x4bd0bd['columnInsertionIndexes']['includes'](_0x2d8cf8['column']);_0x21b4e0||_0x5e41e2||(_0x90142b=_0x36e74e['fromRange'](_0x15ebea['createRangeIn'](_0x547cd8)));}else _0x3dc7f7&&!_0xad045c&&(_0x4b7d9a=_0x15ebea['createRangeIn'](_0x547cd8));}else{const _0x29ea06=_0x15ebea['createElement']('tableCellSuggestion'),_0x2ac5b2=_0x15ebea['createElement']('tableCellSuggestion');_0x15ebea['wrap'](_0x15ebea['createRangeIn'](_0x547cd8),_0x2ac5b2),_0x15ebea['insert'](_0x29ea06,_0x547cd8,0x0);for(const _0x3a9f16 of Array['from'](_0x49e774['getChildren']()))_0x15ebea['insert'](_0x3a9f16,_0x29ea06,'end');_0x90142b=_0x36e74e['fromRange'](_0x15ebea['createRangeOn'](_0x29ea06)),_0x4b7d9a=_0x36e74e['fromRange'](_0x15ebea['createRangeOn'](_0x2ac5b2));}const _0x311e1f=Array['from'](_0x49e774['getAttributes']())['filter'](([_0x4c7dc2])=>Ce['includes'](_0x4c7dc2));_0x4bd0bd['cells']['push']({'element':_0x547cd8,'attributes':_0x311e1f['length']?Object['fromEntries'](_0x311e1f):null}),_0x90142b&&_0x4bd0bd['insertionRanges']['push'](_0x90142b),_0x4b7d9a&&_0x4bd0bd['deletionRanges']['push'](_0x4b7d9a);},{'priority':'high'}),_0x5d5359['on']('insertColumns',(_0x3e0311,_0x516713)=>{const [_0x146c9b,_0x3c4fbc={}]=_0x516713;if(!_0x4bd0bd)return;const _0x59689f=_0x3c4fbc['at']||0x0,_0x354aae=_0x3c4fbc['columns']||0x1;_0x4bd0bd['columnInsertionIndexes']=new Array(_0x354aae)['fill'](_0x59689f)['map']((_0x1085c0,_0x1a8df4)=>_0x1085c0+_0x1a8df4);for(const {cell:_0x36b9e6}of _0x5d5359['createTableWalker'](_0x146c9b,{'startColumn':_0x59689f,'endColumn':_0x59689f+_0x354aae-0x1}))_0x4bd0bd['columnInsertionRanges']['push'](_0x32ddf2['model']['createRangeOn'](_0x36b9e6));},{'priority':'low'}),_0x5d5359['on']('insertRows',(_0x1bd628,_0x1209c9)=>{const [_0x528918,_0x4cc999={}]=_0x1209c9;if(!_0x4bd0bd)return;const _0x3cdb4b=_0x4cc999['at']||0x0,_0x447dd0=_0x4cc999['rows']||0x1;_0x4bd0bd['rowInsertionIndexes']=new Array(_0x447dd0)['fill'](_0x3cdb4b)['map']((_0x4465f9,_0x1d35e9)=>_0x4465f9+_0x1d35e9);for(const {cell:_0x2194f5}of _0x5d5359['createTableWalker'](_0x528918,{'startRow':_0x3cdb4b,'endRow':_0x3cdb4b+_0x447dd0-0x1}))_0x4bd0bd['rowInsertionRanges']['push'](_0x32ddf2['model']['createRangeOn'](_0x2194f5));},{'priority':'low'}),_0x48c451['descriptionFactory']['registerDescriptionCallback'](_0x43bda6=>{if(_0x43bda6['subType']&&_0x43bda6['subType']['startsWith']('tablePaste'))return _0x43bda6['previous']?{}:{'type':'insertion','content':o(_0x32ddf2['locale'],'*Replace\x20table\x20cells*')};});const _0x512d53=()=>!0x1;for(const _0x58b16f of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x48c451['_suggestionFactory']['registerCustomCallback']('insertion',_0x58b16f,'join',_0x512d53),_0x48c451['_suggestionFactory']['registerCustomCallback']('deletion',_0x58b16f,'join',_0x512d53),_0x48c451['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x58b16f,'join',_0x512d53);_0x48c451['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x512d53),_0x48c451['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x16b06f,_0x58db11,_0x53c89a)=>{const _0x272c4d=_0x16b06f['map'](_0x401ffd=>_0x401ffd['getContainedElement']())['filter'](_0x14c8d2=>_0x14c8d2),_0x1e2f41=new Map(_0x272c4d['map'](_0x27c690=>[_0x27c690,null]));if(_0x4bd0bd){for(const {element:_0x3195e1,attributes:_0x1faee9}of _0x4bd0bd['cells'])_0x1faee9&&_0x1e2f41['set'](_0x3195e1,_0x1faee9);}else{if(_0x53c89a&&_0x53c89a['markerAttributes'])for(const [_0x1ab93f,_0xc3ded9]of Object['entries'](_0x53c89a['markerAttributes'])){const _0x8b685e=_0x32ddf2['model']['markers']['get'](_0x1ab93f),_0x5e6d51=_0x8b685e?_0x8b685e['getRange']()['getContainedElement']():null;_0x5e6d51&&_0x1e2f41['set'](_0x5e6d51,_0xc3ded9);}}_0x32ddf2['model']['change'](_0x1dc007=>{for(const [_0x4d966c,_0x54c1a0]of _0x1e2f41)_0x1dc007['setAttributes']({...Pe,..._0x54c1a0},_0x4d966c);});});const _0x125570=(_0x494cde,_0x51e8a3)=>{_0x48c451['_suggestionFactory']['registerCustomCallback'](_0x494cde,'tablePaste',_0x51e8a3,(_0x26edb7,_0x4d2012,_0x501c9d)=>{_0x32ddf2['model']['change'](_0x221941=>{const _0x37aaef=[];for(const _0x3c418e of _0x26edb7){const _0x37689a=_0x3c418e['start']['nodeAfter'];_0x37689a['is']('element','tableCellSuggestion')&&_0x37aaef['push'](_0x37689a);}_0x48c451['_suggestionFactory']['getSuggestionCallback'](_0x494cde,null,_0x51e8a3)(_0x26edb7,_0x4d2012,_0x501c9d);for(const _0x5580f6 of _0x37aaef)'$graveyard'!=_0x5580f6['root']['rootName']&&_0x221941['unwrap'](_0x5580f6);});});};_0x125570('insertion','accept'),_0x125570('insertion','discard'),_0x125570('deletion','accept'),_0x125570('deletion','discard'),_0x48c451['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x206406=>{const _0x131fa1=_0x206406['map'](_0xa13926=>_0xa13926['getContainedElement']()),_0x1ed298=_0x131fa1[0x0]['findAncestor']('table'),{minRow:_0x5e56af,maxRow:_0x53aaa6}=_0xfdec1e['_getCoordsForCells'](_0x131fa1);_0x5d5359['removeRows'](_0x1ed298,{'at':_0x5e56af,'rows':_0x53aaa6-_0x5e56af+0x1});}),_0x48c451['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3299db=>{const _0xb56c2d=_0x3299db['map'](_0xd6a03e=>_0xd6a03e['getContainedElement']()),_0x1d889c=_0xb56c2d[0x0]['findAncestor']('table'),{minColumn:_0x4e11c7,maxColumn:_0x13a6d0}=_0xfdec1e['_getCoordsForCells'](_0xb56c2d);_0x5d5359['removeColumns'](_0x1d889c,{'at':_0x4e11c7,'columns':_0x13a6d0-_0x4e11c7+0x1});});const _0x3b183e=(_0x49a8cf,_0x3e8dda)=>{if(!_0x3e8dda['subType']||!_0x3e8dda['subType']['startsWith']('tablePaste'))return;const _0x1249c5=_0x3e8dda['attributes']['tablePasteChainId'],_0x1abb3c=_0x48c451['getSuggestions']()['filter'](_0x310b94=>_0x310b94['isInContent']&&_0x310b94['attributes']&&_0x310b94['attributes']['tablePasteChainId']==_0x1249c5);_0x1abb3c['length']&&_0x3e8dda['getAllAdjacentSuggestions']()['length']!=_0x1abb3c['length']&&_0x1abb3c['reduce']((_0x523d85,_0x30fafe)=>(_0x523d85['next']=_0x30fafe,_0x30fafe['previous']=_0x523d85,_0x30fafe));};function _0x2738e2(_0x1a2c07,_0x454ca4=!0x0){const {id:_0x5a06f8}=_0x48c451['_splitMarkerName'](_0x1a2c07['markerName']),_0x3c2d1d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x12d1cb=_0x48c451['activeMarkers']['includes'](_0x1a2c07['markerName']);return _0x12d1cb&&_0x3c2d1d['push']('ck-suggestion-marker--active'),{'classes':_0x3c2d1d,'attributes':{'data-suggestion':_0x5a06f8},'priority':_0x12d1cb&&_0x454ca4?0xbc2:0xbb8};}_0x48c451['on']('suggestionLoaded',_0x3b183e,{'priority':'high'}),_0x48c451['on']('suggestionUnloaded',_0x3b183e,{'priority':'high'}),_0x32ddf2['model']['document']['registerPostFixer'](()=>{let _0x4d30be=!0x1;const _0x32f730=Array['from'](_0x32ddf2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc11423,data:_0x2e3f4b}of _0x32f730){const {group:_0x23693a,type:_0x517daf,id:_0x539dcb}=_0x48c451['_splitMarkerName'](_0xc11423);if('suggestion'!=_0x23693a||'deletion'!=_0x517daf||_0x2e3f4b['oldRange'])continue;if(!_0x48c451['hasSuggestion'](_0x539dcb))continue;const _0x112ff9=_0x48c451['getSuggestion'](_0x539dcb)['getRanges'](),_0x36b132=_0x32ddf2['plugins']['get']('Users')['me'];for(const _0x506d47 of _0x48c451['getSuggestions']()){if(!_0x506d47['isInContent']||_0x506d47['author']!=_0x36b132)continue;if('formatBlock'!=_0x506d47['type']||'tablePasteCell'!=_0x506d47['subType'])continue;if(_0x506d47['getRanges']()['every'](_0x5ce7da=>_0x112ff9['some'](_0x51ea19=>_0x51ea19['containsRange'](_0x5ce7da,!0x0)))){for(const _0x52b533 of _0x506d47['getAllAdjacentSuggestions']())_0x52b533['isInContent']&&(_0x52b533['discard'](),_0x4d30be=!0x0);}}}return _0x4d30be;}),_0x32ddf2['model']['document']['registerPostFixer'](_0x85f6a8=>{const _0x579e43=_0x32ddf2['commands']['get']('redo');if(!_0x579e43||!_0x579e43['_createdBatches']['has'](_0x85f6a8['batch']))return!0x1;let _0x15d696=!0x1;const _0x4cd67d=_0x32ddf2['plugins']['get']('Users')['me'],_0x1ef583=_0x32ddf2['model']['document']['differ']['getChanges'](),_0x546adb=Array['from'](_0x32ddf2['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x7e2b00,data:_0x23a082})=>{const {group:_0x582cab,subType:_0x521ada,authorId:_0x99b1e6}=_0x48c451['_splitMarkerName'](_0x7e2b00);return'suggestion'==_0x582cab&&'tablePaste'==_0x521ada&&_0x99b1e6==_0x4cd67d['id']&&!_0x23a082['oldRange'];});for(const _0x5efdb1 of _0x1ef583){if('insert'!=_0x5efdb1['type']||'tableCellSuggestion'!=_0x5efdb1['name']||0x1!=_0x5efdb1['length'])continue;const _0x4809f6=_0x85f6a8['createRange'](_0x5efdb1['position'],_0x5efdb1['position']['getShiftedBy'](0x1));if(!_0x546adb['find'](({data:_0x3ef29b})=>_0x3ef29b['newRange']['isEqual'](_0x4809f6))){for(const {name:_0x37ee13,data:_0x21fb4e}of _0x546adb)if(_0x4809f6['containsRange'](_0x21fb4e['newRange'])){_0x85f6a8['updateMarker'](_0x37ee13,{'range':_0x4809f6}),_0x15d696=!0x0;break;}}}return _0x15d696;}),_0x32ddf2['model']['document']['registerPostFixer'](_0xb26b11=>{let _0x4f2eef=!0x1;const _0x338362=_0x32ddf2['plugins']['get']('Users')['me'],_0x39241d=_0x48c451['getSuggestions']()['filter'](_0xbb6515=>_0xbb6515['isInContent']&&_0xbb6515['author']==_0x338362),_0x2f89c4=new Set(),_0x2ca9bd=new Set();for(const _0x69ace1 of _0x39241d)if('tablePaste'==_0x69ace1['subType'])for(const _0x499ecf of _0x69ace1['getMarkers']()){const _0x2e62f0=_0x499ecf['getRange']()['getContainedElement']();if(_0x2e62f0){if(_0x2e62f0['is']('element','tableCellSuggestion')&&we(_0x2e62f0)){_0x69ace1['removeMarker'](_0x499ecf['name']),_0x2f89c4['add'](_0x2e62f0),_0x4f2eef=!0x0;const _0x3a3240=_0x2e62f0['nextSibling'],_0x2952f0=_0x2e62f0['previousSibling'],_0x5d2660=_0x3a3240&&_0x3a3240['is']('element','tableCellSuggestion'),_0x9fba59=_0x2952f0&&_0x2952f0['is']('element','tableCellSuggestion');_0x5d2660&&!_0x2f89c4['has'](_0x3a3240)&&_0x2ca9bd['add'](_0x3a3240),_0x9fba59&&!_0x2f89c4['has'](_0x2952f0)&&_0x2ca9bd['add'](_0x2952f0);}else _0x2e62f0['is']('element','paragraph')&&_0x2e62f0['isEmpty']&&(_0x69ace1['removeMarker'](_0x499ecf['name']),_0x4f2eef=!0x0);}}else{if('tablePasteCell'==_0x69ace1['subType']){if(!_0x69ace1['attributes']||!_0x69ace1['attributes']['tablePasteChainId'])continue;const _0x43aa2e=_0x69ace1['attributes']['markerAttributes'];if(_0x43aa2e&&Object['keys'](_0x43aa2e)['length'])continue;const _0x3946d0=_0x69ace1['attributes']['tablePasteChainId'];let _0x2d4b57=!0x0,_0x106a81=!0x0;for(const _0x543667 of _0x39241d)if(_0x543667['subType']&&_0x543667['subType']['startsWith']('tablePaste')){if(!_0x543667['attributes']['tablePasteChainId']){_0x106a81=!0x1;break;}if(_0x543667['id']!=_0x69ace1['id']&&_0x543667['attributes']['tablePasteChainId']==_0x3946d0){_0x2d4b57=!0x1;break;}}_0x106a81&&_0x2d4b57&&(_0x69ace1['removeMarkers'](),_0x4f2eef=!0x0);}}for(const _0x18648c of _0x2f89c4)_0xb26b11['remove'](_0x18648c);for(const _0x50e364 of _0x2ca9bd)_0xb26b11['unwrap'](_0x50e364);return _0x4f2eef;}),_0x32ddf2['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1ef18f,_0xf5a442)=>_0x2738e2(_0x1ef18f),'converterPriority':'high'}),_0x32ddf2['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x46d44f,_0x22b146)=>_0x22b146['options']['showSuggestionHighlights']?_0x2738e2(_0x46d44f,!0x1):null,'converterPriority':'high'});const _0x23b121=_0x32ddf2['editing']['view'];this['listenTo'](_0x23b121['document'],'clipboardOutput',(_0x1740d3,_0x5e197a)=>{const _0x2a32a4=[];for(const _0x5bdfab of _0x23b121['createRangeIn'](_0x5e197a['content'])['getItems']())_0x5bdfab['is']('element','suggestion-td')&&_0x2a32a4['push'](_0x5bdfab);_0x23b121['change'](_0x3bb1be=>{for(const _0x5bf68e of _0x2a32a4)_0x3bb1be['move'](_0x3bb1be['createRangeIn'](_0x5bf68e),_0x3bb1be['createPositionBefore'](_0x5bf68e)),_0x3bb1be['remove'](_0x5bf68e);});});}}function we(_0x5f1a8e){if(_0x5f1a8e['isEmpty'])return!0x0;const _0x4ea4d8=_0x5f1a8e['getChild'](0x0);return _0x4ea4d8['is']('element','paragraph')&&_0x4ea4d8['isEmpty'];}function ke(_0x3c6dbb,_0x230333={},_0x4c1f10){for(const {isAnchor:_0x26f930,cellHeight:_0x59a55d,cellWidth:_0x2856be}of _0x4c1f10['createTableWalker'](_0x3c6dbb,{'includeAllSlots':!0x0,..._0x230333}))if(!_0x26f930||0x1!=_0x59a55d||0x1!=_0x2856be)return!0x1;return!0x0;}class Nt extends _0x41808b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a9e83=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a9e83['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a9e83['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a9e83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a9e83['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a9e83['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a9e83['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x45baa3,_0x4526d9){const _0x28f5af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a0630=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2a7a3d=_0x4526d9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1afc33=_0x3a0630['getColumnGroupElement'](_0x2a7a3d);let _0x37a723=_0x1afc33?_0x3a0630['getTableColumnsWidths'](_0x1afc33):null,_0x1ac8dc=_0x2a7a3d['getAttribute']('tableWidth')||null;const _0x350844=_0x4526d9['tableWidth']||_0x1ac8dc,_0x47a96e=_0x4526d9['columnWidths']||_0x37a723,_0x20dccf=this['editor']['plugins']['get']('Users')['me'];for(const _0x1cf9d2 of _0x28f5af['getSuggestions']()){const _0x419785=_0x1cf9d2['getContainedElement']();if('resizeTable'===_0x1cf9d2['subType']&&_0x419785===_0x2a7a3d){_0x1cf9d2['author']!==_0x20dccf&&_0x1cf9d2['discard']();const _0x4a7dd7=_0x1cf9d2['data']['commandParams'];_0x1ac8dc=_0x4a7dd7[0x0]['tableWidth'],_0x37a723=_0x4a7dd7[0x0]['columnWidths'];break;}}_0x45baa3({'table':_0x2a7a3d,'tableWidth':_0x350844,'columnWidths':_0x47a96e}),_0x28f5af['markBlockFormat'](_0x2a7a3d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1ac8dc,'columnWidths':_0x37a723}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x55e7fd){if('formatBlock'!=_0x55e7fd['type']&&'formatInline'!=_0x55e7fd['type'])return;const {data:_0xf4811e}=_0x55e7fd;if(_0xf4811e&&'resizeTable'===_0xf4811e['formatGroupId']){const _0x2946b2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2946b2)};}}}class Dt extends _0x41808b{['afterInit'](){const _0x42e4fd=this['editor'];_0x42e4fd['plugins']['has']('Template')&&_0x42e4fd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x41808b{['afterInit'](){const _0x5b951f=this['editor'];if(!_0x5b951f['commands']['get']('insertTableOfContents'))return;_0x5b951f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x454432=_0x5b951f['plugins']['get']('TrackChangesEditing'),_0x45041d=_0x5b951f['locale'];_0x454432['descriptionFactory']['registerElementLabel']('tableOfContents',_0x10842c=>o(_0x45041d,'ELEMENT_TABLE_OF_CONTENTS',_0x10842c));}}class $t extends _0x41808b{['afterInit'](){const _0x52d32=this['editor'];if(!_0x52d32['plugins']['has']('Title'))return;const _0x44b3ed=_0x52d32['plugins']['get']('TrackChangesEditing');_0x44b3ed['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x52d32['locale'],'ELEMENT_TITLE')),_0x52d32['model']['document']['registerPostFixer'](_0x399873=>{let _0xeb15b8=!0x1;const _0x3e3083=Array['from'](_0x52d32['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb1e7bc,data:_0x33a0a4}of _0x3e3083){const {group:_0x2a9fd0}=_0x44b3ed['_splitMarkerName'](_0xb1e7bc);if('suggestion'!==_0x2a9fd0||!_0x33a0a4['newRange'])continue;const _0x448ab7=_0x33a0a4['newRange'],_0x4de6ea=_0x448ab7['end']['nodeBefore'];if(!_0x4de6ea||!_0x4de6ea['is']('element','title-content'))continue;if(!_0x448ab7['start']['isTouching'](_0x448ab7['end']))continue;const _0x400931=_0x52d32['model']['schema']['getNearestSelectionRange'](_0x448ab7['end'],'forward');if(_0x400931&&_0x400931['isCollapsed']){const _0x483188=_0x399873['createRange'](_0x448ab7['start'],_0x400931['start']);_0x483188['isEqual'](_0x448ab7)||(_0x399873['updateMarker'](_0xb1e7bc,{'range':_0x483188}),_0xeb15b8=!0x0);}_0xeb15b8||(_0x399873['removeMarker'](_0xb1e7bc),_0xeb15b8=!0x0);}return _0xeb15b8;});}}class Bt extends _0x41808b{['afterInit'](){const _0x10daf4=this['editor'],_0x1b0355=_0x10daf4['plugins']['get']('TrackChangesEditing');_0x10daf4['plugins']['has']('UndoEditing')&&(_0x1b0355['enableCommand']('undo'),_0x1b0355['enableCommand']('redo'));}}class xt extends _0x41808b{static get['requires'](){return[It];}['afterInit'](){const _0x184f2d=this['editor'];if(!_0x184f2d['plugins']['has']('TableCaptionEditing'))return;_0x184f2d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x41808b{['tableProperties'];['tableCellProperties'];constructor(_0x12c0ba){super(_0x12c0ba),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 _0x302ffb=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29fb39 of this['tableProperties'])_0x302ffb['enableCommand'](_0x29fb39,(_0x17b798,_0xb0085b)=>{const _0x16cd01=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29fb39,[_0x16cd01],this['tableProperties'],'tableProperties',_0x17b798,_0xb0085b);});_0x302ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x302ffb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x302ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x175392,_0x21e3a6)=>this['handleDiscardAction'](this['tableProperties'],_0x175392,_0x21e3a6)),_0x302ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1a40e3 of this['tableCellProperties'])_0x302ffb['enableCommand'](_0x1a40e3,(_0x1d7979,_0x25b08b)=>{const _0x56fd89=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1a40e3,_0x56fd89,this['tableCellProperties'],'tableCellProperties',_0x1d7979,_0x25b08b);});_0x302ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x302ffb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x302ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4d6b51,_0x5200eb)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4d6b51,_0x5200eb)),_0x302ffb['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x302ffb['descriptionFactory']['registerDescriptionCallback'](_0x142b30=>this['handleSuggestionDescription'](_0x142b30));}['_handlePropertyChange'](_0x5e0c65,_0xddeb03,_0x344ec8,_0x51b877,_0x539713,_0x13bcc7){const _0x598e36=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x13bcc7['batch'],()=>{for(const _0x17239f of _0xddeb03){if(this['_getSuggestion'](_0x17239f,_0x51b877))_0x539713(_0x13bcc7);else{const _0x1adf11={};for(const _0xf07a0e of _0x344ec8){const _0x404fda=_0x17239f['getAttribute'](_0xf07a0e);void 0x0!==_0x404fda&&(_0x1adf11[_0xf07a0e]=_0x404fda);}_0x539713(_0x13bcc7),_0x598e36['markBlockFormat'](_0x17239f,{'commandParams':[_0x1adf11]},[],_0x51b877);}}});}['handleDiscardAction'](_0x1dab3e,_0x194103,_0x26de64){const _0xb2b95a=_0x194103[0x0]['start']['nodeAfter'],_0x4d807c=_0x26de64['commandParams'][0x0];this['editor']['model']['change'](_0x52f1d1=>{for(const _0x21197d of _0x1dab3e)void 0x0!==_0x4d807c[_0x21197d]?_0x52f1d1['setAttribute'](_0x21197d,_0x4d807c[_0x21197d],_0xb2b95a):_0x52f1d1['removeAttribute'](_0x21197d,_0xb2b95a);});}['handleSuggestionDescription'](_0x5a7ca2){if(_0x5a7ca2['data'])switch(_0x5a7ca2['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'](_0x5b7e92,_0x4ecfdb){const _0x10ef85=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3ba02f of _0x10ef85['getSuggestions']({'skipNotAttached':!0x0})){const _0x504a8f=_0x3ba02f['getContainedElement']();if(_0x3ba02f['subType']===_0x4ecfdb&&_0x504a8f===_0x5b7e92)return _0x3ba02f;}return null;}}const m='$elementName';class p extends _0x41808b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x34d895,_0xca815a,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x39b49e){function _0x51f8f1(_0x2ffaf8){return _0x2ffaf8['map'](_0x390ad4=>String['fromCharCode'](_0x390ad4))['join']('');}super(_0x39b49e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x59849c,_0x359931,_0x41e1eb,_0x2ad892)=>{this['_model']['change'](()=>{for(const _0x3c8a44 of[..._0x2ad892,..._0x41e1eb])this['_model']['markers']['has'](_0x3c8a44)&&_0x39b49e['editing']['reconvertMarker'](_0x3c8a44);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x39b49e['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(),_0x39b49e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x39b49e['config']['get']('trackChanges.trackFormatChanges'),_0x39b49e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x39b49e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x39b49e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x51f8f1([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x51f8f1([0x34,0x30,0x34,0x38,0x31,0x36,0x30,0x38]);}['init'](){const _0x2fbb97=this['editor'],_0x35a061=(_0x107741,_0x5aaf7c)=>{if('attribute'!=_0x107741)return'ck-suggestion-marker-'+_0x107741;const _0x2f947e=_0x5aaf7c['split']('|')[0x0];return this['_isBlockAttribute'](_0x2f947e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2fbb97['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x28e507=>{const {id:_0x159796,type:_0x3b5eac,subType:_0x54dd2d}=this['_splitMarkerName'](_0x28e507['markerName']),_0x2dac56=['ck-suggestion-marker',_0x35a061(_0x3b5eac,_0x54dd2d)];let _0x23e3a9=0xbb8;return this['activeMarkers']['includes'](_0x28e507['markerName'])&&(_0x2dac56['push']('ck-suggestion-marker--active'),_0x23e3a9=0xbc2),'deletion'==_0x3b5eac&&(_0x23e3a9+=0x5),{'classes':_0x2dac56,'attributes':{'data-suggestion':_0x159796},'priority':_0x23e3a9};}}),_0x2fbb97['conversion']['for']('dataDowncast')['add'](_0x419c5f=>{_0x419c5f['on']('addMarker:suggestion',(_0x35e5d8,_0x3c4c87,_0x31cba8)=>{if(!_0x31cba8['options']['showSuggestionHighlights'])return;const _0x2b053a=_0x3c4c87['item'];if(!_0x2b053a)return;const _0x300f9c=_0x31cba8['mapper']['toViewElement'](_0x2b053a);_0x2fbb97['model']['schema']['isObject'](_0x2b053a)&&_0x300f9c&&!_0x300f9c['getCustomProperty']('widget')&&_0x300f9c['is']('containerElement')&&_0x1368ee(_0x300f9c,_0x31cba8['writer']);},{'priority':'high'});}),_0x2fbb97['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4a5e94,_0x1ba3e5)=>{if(!_0x1ba3e5['options']['showSuggestionHighlights'])return null;const {type:_0x548558,subType:_0x5c27b9}=this['_splitMarkerName'](_0x4a5e94['markerName']);return{'classes':['ck-suggestion-marker',_0x35a061(_0x548558,_0x5c27b9)],'priority':0xbb8};}});const _0x29baae=({showActiveMarkers:_0x17adab=!0x0,isAttributeSuggestion:_0x3bef88=!0x1}={})=>(_0x1295d7,_0x4001b0,_0x2621c5)=>{if(!_0x4001b0['item'])return;const {id:_0x1db4ad}=this['_splitMarkerName'](_0x4001b0['markerName']);if(_0x3bef88){const _0x25c847=this['_suggestions']['get'](_0x1db4ad),_0x5edf4b=this['_getAttributeKey'](_0x25c847);if(!this['_isBlockAttribute'](_0x5edf4b))return;}if(_0x4001b0['item']['is']('selection'))return void _0x2621c5['consumable']['consume'](_0x4001b0['item'],_0x1295d7['name']);const _0xc6acb=_0x2621c5['mapper']['toViewElement'](_0x4001b0['item']);if(_0x4001b0['item']['is']('element')&&_0x2fbb97['model']['schema']['isBlock'](_0x4001b0['item'])&&!_0xc6acb['getCustomProperty']('addHighlight')){_0x2621c5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xc6acb),_0x2621c5['writer']['setAttribute']('data-suggestion',_0x1db4ad,_0xc6acb),_0x2621c5['mapper']['bindElementToMarker'](_0xc6acb,_0x4001b0['markerName']),_0x17adab&&(this['activeMarkers']['includes'](_0x4001b0['markerName'])?_0x2621c5['writer']['addClass']('ck-suggestion-marker--active',_0xc6acb):_0x2621c5['writer']['removeClass']('ck-suggestion-marker--active',_0xc6acb));for(const _0x1f8090 of _0x2fbb97['model']['createRangeIn'](_0x4001b0['item'])['getItems']())_0x2621c5['consumable']['consume'](_0x1f8090,_0x1295d7['name']);_0x2621c5['consumable']['consume'](_0x4001b0['item'],_0x1295d7['name']);}};_0x2fbb97['conversion']['for']('dataDowncast')['add'](_0x12d9d9=>{_0x12d9d9['on']('addMarker:suggestion:formatBlock',(_0xd117a4,_0x2ccab9,_0x239a9a)=>{_0x239a9a['options']['showSuggestionHighlights']&&_0x29baae({'showActiveMarkers':!0x1})(_0xd117a4,_0x2ccab9,_0x239a9a);},{'priority':'highest'});}),_0x2fbb97['conversion']['for']('dataDowncast')['add'](_0x40e6b9=>{_0x40e6b9['on']('addMarker:suggestion:attribute',(_0x1b73cd,_0x36cf59,_0x35202e)=>{_0x35202e['options']['showSuggestionHighlights']&&_0x29baae({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1b73cd,_0x36cf59,_0x35202e);},{'priority':'highest'});}),_0x2fbb97['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2d972f,_0x1f6a59)=>_0x1f6a59['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2d972f['substr'](0xb)}}),_0x2fbb97['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x367820,{writer:_0x166a49})=>{let _0x41ba6f='suggestion:'+_0x367820['getAttribute']('suggestion-type')+':'+_0x367820['getAttribute']('id');return _0x367820['getAttribute']('marker-count')&&(_0x41ba6f+=':'+_0x367820['getAttribute']('marker-count')),_0x166a49['createElement']('$marker',{'data-name':_0x41ba6f});}}),_0x2fbb97['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2fbb97['conversion']['for']('editingDowncast')['add'](_0xc3471=>{_0xc3471['on']('addMarker:suggestion:formatBlock',_0x29baae(),{'priority':'high'});}),_0x2fbb97['conversion']['for']('editingDowncast')['add'](_0x3de4e8=>{_0x3de4e8['on']('addMarker:suggestion:attribute',_0x29baae({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2fbb97['conversion']['for']('editingDowncast')['add'](_0x1a0438=>{_0x1a0438['on']('removeMarker:suggestion:formatBlock',(_0x5006d0,_0x2bb7ce,_0x2e473c)=>{const _0x2ee55b=_0x2e473c['mapper']['markerNameToElements'](_0x2bb7ce['markerName']);if(_0x2ee55b){for(const _0x50bc31 of _0x2ee55b)_0x50bc31['getCustomProperty']('addHighlight')||(_0x2e473c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x50bc31),_0x2e473c['writer']['removeAttribute']('data-suggestion',_0x50bc31),_0x2e473c['mapper']['unbindElementFromMarkerName'](_0x50bc31,_0x2bb7ce['markerName']));}},{'priority':'high'});}),_0x2fbb97['conversion']['for']('editingDowncast')['add'](_0x203aef=>{_0x203aef['on']('removeMarker:suggestion:attribute',(_0x31d6cb,_0x2cecdb,_0x41fb69)=>{const _0x29574c=_0x41fb69['mapper']['markerNameToElements'](_0x2cecdb['markerName']);if(!_0x29574c)return;const {id:_0x294684}=this['_splitMarkerName'](_0x2cecdb['markerName']),_0x3a19ba=this['_suggestions']['get'](_0x294684),_0x5039de=this['_getAttributeKey'](_0x3a19ba);if(this['_isBlockAttribute'](_0x5039de)){for(const _0x5b1190 of _0x29574c)_0x5b1190['getCustomProperty']('addHighlight')||(_0x41fb69['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5b1190),_0x41fb69['writer']['removeAttribute']('data-suggestion',_0x5b1190),_0x41fb69['mapper']['unbindElementFromMarkerName'](_0x5b1190,_0x2cecdb['markerName']));}},{'priority':'high'});}),_0x2fbb97['model']['document']['registerPostFixer'](_0x5f237b=>{let _0x42b2a4=!0x1;const _0x1ea9f7=Array['from'](_0x2fbb97['model']['document']['differ']['getChangedMarkers']()),_0x135f15=new Set();for(const {name:_0x726212,data:_0x302f7f}of _0x1ea9f7){const {group:_0x3d6a82,type:_0x574ed8,subType:_0x81f8d8,id:_0x19cea6}=this['_splitMarkerName'](_0x726212);if('suggestion'!==_0x3d6a82)continue;const _0x4b308e=this['_suggestions']['get'](_0x19cea6);if(null!=_0x302f7f['newRange']){'formatInline'==_0x574ed8&&(_0x42b2a4=_0x42b2a4||Ut(_0x302f7f['newRange'],_0x726212,_0x5f237b,_0x2fbb97['model']['schema']));const _0x538f5b='attribute'==_0x574ed8&&this['_isBlockAttribute'](_0x81f8d8['split']('|')[0x0]);if(_0x302f7f['newRange']['isCollapsed']||'$graveyard'==_0x302f7f['newRange']['root']['rootName']||'formatBlock'==_0x574ed8&&!Ft(_0x302f7f['newRange'])||_0x538f5b&&!Ft(_0x302f7f['newRange'])||'deletion'==_0x574ed8&&!(!Vt(_0x16f790=_0x302f7f['newRange'])&&!function(_0x51c7c9){return _0x51c7c9['start']['parent']==_0x51c7c9['end']['nodeBefore']&&_0x51c7c9['start']['isAtEnd'];}(_0x16f790)))_0x5f237b['removeMarker'](_0x726212),_0x42b2a4=!0x0;else{if(!_0x4b308e||!_0x4b308e['isInContent'])continue;if(_0x302f7f['newRange']&&_0x302f7f['oldRange']&&_0x302f7f['newRange']['isEqual'](_0x302f7f['oldRange']))continue;_0x135f15['add'](_0x4b308e);}}}var _0x16f790;return _0x135f15['size']>0x0&&(_0x42b2a4=!!this['_joinWithAdjacentSuggestions'](_0x135f15)||_0x42b2a4),_0x42b2a4;}),_0x2fbb97['model']['document']['registerPostFixer'](_0x452a99=>{let _0x4eb35b=!0x1;for(const _0x1d76b6 of _0x2fbb97['model']['document']['differ']['getChanges']())if('insert'==_0x1d76b6['type'])for(const _0x5c5db3 of this['_suggestions']['values']()){if(_0x5c5db3['isMultiRange']||!_0x5c5db3['isInContent'])continue;const _0x1027ad='formatBlock'==_0x5c5db3['type'],_0x41664a=this['_getAttributeKey'](_0x5c5db3),_0x5cb8cb=_0x41664a&&this['_isBlockAttribute'](_0x41664a);if(!_0x1027ad&&!_0x5cb8cb)continue;const _0x476bd4=_0x5c5db3['getFirstRange']();if(_0x476bd4['start']['parent']!=_0x476bd4['end']['parent']&&!_0x476bd4['end']['isAtEnd']){const _0x54e1e3=_0x2fbb97['model']['createPositionAt'](_0x476bd4['start']['nodeAfter'],'end'),_0x42d4e4=_0x2fbb97['model']['createRange'](_0x476bd4['start'],_0x54e1e3);_0x452a99['updateMarker'](_0x5c5db3['getFirstMarker'](),{'range':_0x42d4e4}),_0x4eb35b=!0x0;}}return _0x4eb35b;}),_0x2fbb97['model']['document']['registerPostFixer'](_0x3b4a2a=>this['_processAttributeChanges'](_0x3b4a2a)),_0x2fbb97['model']['document']['registerPostFixer'](_0x41129e=>!_0x41129e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x41129e)),_0x2fbb97['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2fbb97['model']['document']['on']('change:data',(_0x6acb56,_0x206549)=>{if(!_0x206549['isLocal']||_0x206549['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x503930=_0x2fbb97['model']['document']['differ']['getChanges']();if(0x0==_0x503930['length'])return;const _0xa15e70=[],_0x409146=_0x503930['filter'](_0x37d951=>'attribute'==_0x37d951['type']),_0x1aa8f7=_0x503930['filter'](_0x42fde5=>'insert'==_0x42fde5['type']&&'$text'!=_0x42fde5['name']);for(const _0x1f78a5 of _0x409146)this['_isRegisteredAttribute'](_0x1f78a5['attributeKey'])&&_0xa15e70['push']({'key':_0x1f78a5['attributeKey'],'newValue':_0x1f78a5['attributeNewValue'],'oldValue':_0x1f78a5['attributeOldValue'],'range':Pt(_0x1f78a5['range'],_0x2fbb97['model'])});for(const _0x3c94a5 of _0x1aa8f7){if('rename'!=_0x3c94a5['action']&&'refresh'!=_0x3c94a5['action'])continue;const _0x475f59=Lt(_0x3c94a5['position']['nodeAfter'],_0x2fbb97['model']),_0x4224a4=_0x3c94a5['before'];'rename'==_0x3c94a5['action']&&_0xa15e70['push']({'key':m,'newValue':_0x3c94a5['name'],'oldValue':_0x4224a4['name'],'range':_0x475f59});for(const [_0x55f1b1,_0x5b941d]of _0x4224a4['attributes']){if(!this['_isRegisteredAttribute'](_0x55f1b1))continue;const _0x337b80=_0x3c94a5['attributes']['get'](_0x55f1b1);_0x5b941d!==_0x337b80&&_0xa15e70['push']({'key':_0x55f1b1,'newValue':_0x337b80,'oldValue':_0x5b941d,'range':_0x475f59});}for(const [_0x5bd722,_0xc251]of _0x3c94a5['attributes'])this['_isRegisteredAttribute'](_0x5bd722)&&(_0x4224a4['attributes']['has'](_0x5bd722)||_0xa15e70['push']({'key':_0x5bd722,'newValue':_0xc251,'oldValue':null,'range':_0x475f59}));}0x0!=_0xa15e70['length']&&_0x2fbb97['model']['enqueueChange'](_0x206549,_0x564694=>{const _0x3ff3c1=_0x55ea85();for(const {range:_0x3135f5,key:_0x426806,oldValue:_0x78b5c3,newValue:_0xdd7e4e}of _0xa15e70)this['markAttributeChange'](_0x3135f5,_0x426806,_0x78b5c3,_0xdd7e4e,{'groupId':_0x3ff3c1});this['_reduceExistingSuggestions'](_0x564694,_0xa15e70);});},{'priority':'lowest'}),_0x2fbb97['model']['markers']['on']('update:suggestion',(_0xa13c41,_0x420564,_0x5f3324)=>{if(null==_0x5f3324){const {id:_0x7c549c}=this['_splitMarkerName'](_0x420564['name']),_0x19a4da=this['_suggestions']['get'](_0x7c549c);_0x19a4da&&_0x19a4da['addMarkerName'](_0x420564['name']);}}),_0x2fbb97['model']['document']['on']('change:data',()=>{const _0x4e9464=Array['from'](_0x2fbb97['model']['document']['differ']['getChangedMarkers']())['filter'](_0x14359a=>'suggestion'===this['_splitMarkerName'](_0x14359a['name'])['group']);if(0x0===_0x4e9464['length'])return;_0x4e9464['sort']((_0x5d07d7,_0x52385f)=>{const _0x3c686a=_0x5d07d7['data']['oldRange'],_0x23c98a=_0x52385f['data']['oldRange'];return null===_0x3c686a&&null===_0x23c98a?0x0:null===_0x3c686a&&null!==_0x23c98a?-0x1:null!==_0x3c686a&&null===_0x23c98a?0x1:_0x3c686a['start']['isBefore'](_0x23c98a['start'])?-0x1:0x1;});const _0x4b8496=new Set(),_0x288637=new Set();for(const {name:_0x41abce,data:_0xfcf7aa}of _0x4e9464){const {id:_0x4b2437}=this['_splitMarkerName'](_0x41abce);if(null===_0xfcf7aa['oldRange']){const _0x393265=this['_handleNewSuggestionMarker'](_0x41abce);_0x288637['add'](_0x393265);}else{const _0x3d6a2a=this['_suggestions']['get'](_0x4b2437);null!==_0xfcf7aa['newRange']||_0x3d6a2a['isInContent']?(_0x4b8496['add'](_0x3d6a2a['head']),_0x288637['add'](_0x3d6a2a)):this['_removeSuggestion'](_0x3d6a2a);}}_0x288637['size']>0x0&&this['_refreshSuggestionsChain'](_0x288637);for(const _0x3723b7 of _0x4b8496)this['fire']('suggestionChanged',_0x3723b7);}),_0x2fbb97['model']['on']('applyOperation',(_0x4bf02f,_0x3b3eea)=>{const _0x11bc13=_0x3b3eea[0x0];if(!this['_suggestions']['size'])return;if(!_0x11bc13['isDocumentOperation'])return;if(_0x11bc13['batch']['isUndo']||!_0x11bc13['batch']['isLocal'])return;let _0x90172a,_0x21c9f5;switch(_0x11bc13['type']){case'insert':_0x90172a=_0x2fbb97['model']['createPositionAt'](_0x11bc13['position']),_0x21c9f5=_0x90172a['getShiftedBy'](_0x11bc13['howMany']);break;case'split':_0x90172a=_0x2fbb97['model']['createPositionAt'](_0x11bc13['splitPosition']),_0x21c9f5=_0x2fbb97['model']['createPositionAt'](_0x11bc13['moveTargetPosition']);break;case'move':_0x90172a=_0x2fbb97['model']['createPositionAt'](_0x11bc13['targetPosition']),_0x21c9f5=_0x90172a['getShiftedBy'](_0x11bc13['howMany']);break;default:return;}const _0x6f667=_0x2fbb97['model']['createRange'](_0x90172a,_0x21c9f5);_0x2fbb97['model']['change'](()=>{for(const {suggestion:_0x3a9b5b,meta:_0x346da2}of this['_findSuggestions'](_0x6f667)){if(_0x3a9b5b['isMultiRange'])continue;if('formatInline'==_0x3a9b5b['type'])continue;const _0x1498de=this['_getAttributeKey'](_0x3a9b5b);if(_0x1498de&&this['_isBlockAttribute'](_0x1498de)&&'split'!=_0x11bc13['type'])continue;const _0x204887=_0x3a9b5b['data']&&_0x3a9b5b['data']['multipleBlocks'];('formatBlock'!=_0x3a9b5b['type']||'split'==_0x11bc13['type']&&!_0x204887)&&(_0x346da2['containsRangeInObject']||'insertion'==_0x3a9b5b['type']&&_0x346da2['isOwn']||_0x3a9b5b['getFirstRange']()['containsRange'](_0x6f667)&&this['_breakSuggestionMarker'](_0x3a9b5b,_0x90172a,_0x21c9f5));}});},{'priority':'lowest'}),_0x2fbb97['model']['on']('deleteContent',(_0x22c72a,_0x238e0b)=>{const _0x166f62=_0x238e0b[0x0],_0x131caf=_0x238e0b[0x1];if(_0x131caf&&_0x131caf['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x166f62['isCollapsed'])return;const _0x516edb=_0x2fbb97['model']['schema'],{start:_0x1d38e8,end:_0x5ab31b}=_0x166f62['getFirstRange'](),_0x12db98=_0x1d38e8['nodeAfter']&&_0x516edb['isLimit'](_0x1d38e8['nodeAfter'])?null:_0x516edb['getNearestSelectionRange'](_0x1d38e8,'forward'),_0x493d38=_0x5ab31b['nodeBefore']&&_0x516edb['isLimit'](_0x5ab31b['nodeBefore'])?null:_0x516edb['getNearestSelectionRange'](_0x5ab31b,'backward'),_0x17f695=_0x2fbb97['model']['createRange'](_0x12db98?_0x12db98['start']:_0x1d38e8,_0x493d38?_0x493d38['end']:_0x5ab31b);_0x2fbb97['model']['change'](_0x2a2dfd=>{this['markDeletion'](_0x17f695);const _0x1c7aef=_0x2fbb97['model']['schema']['getNearestSelectionRange'](_0x17f695['start']);_0x166f62['is']('documentSelection')?_0x2a2dfd['setSelection'](_0x1c7aef):_0x166f62['setTo'](_0x1c7aef);}),_0x22c72a['stop']();},{'priority':_0x21fa8f['normal']+0xa}),_0x2fbb97['model']['on']('insertContent',(_0x1aa795,_0x43b170)=>{const _0x5de87b=_0x43b170[_0x43b170['length']-0x1];_0x5de87b&&_0x5de87b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2fbb97['model']['change'](()=>{let _0x2aa377=_0x2fbb97['model']['insertContent'](_0x43b170[0x0],_0x43b170[0x1],_0x43b170[0x2],{'forceDefaultExecution':!0x0});if(!_0x2aa377)return;_0x1aa795['return']=_0x2aa377['clone']();const _0x445743=_0x2aa377['end']['nodeBefore'],_0x12c89f=_0x2fbb97['model']['schema'];_0x445743&&_0x12c89f['isBlock'](_0x445743)&&!_0x12c89f['isObject'](_0x445743)&&(_0x2aa377=_0x2fbb97['model']['createRange'](_0x2aa377['start'],_0x2fbb97['model']['createPositionAt'](_0x445743,'end'))),this['markInsertion'](_0x2aa377);}),_0x1aa795['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3db604=new x(_0x2fbb97,this['_suggestions']);_0x2fbb97['commands']['add']('acceptSuggestion',_0x3db604),this['enableCommand']('acceptSuggestion');const _0xb573e1=new R(_0x2fbb97,this['_suggestions']);_0x2fbb97['commands']['add']('discardSuggestion',_0xb573e1),this['enableCommand']('discardSuggestion'),_0x2fbb97['commands']['add']('acceptAllSuggestions',new E(_0x2fbb97,_0x3db604,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2fbb97['commands']['add']('discardAllSuggestions',new E(_0x2fbb97,_0xb573e1,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2fbb97['commands']['add']('acceptSelectedSuggestions',new O(_0x2fbb97,_0x3db604,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2fbb97['commands']['add']('discardSelectedSuggestions',new O(_0x2fbb97,_0xb573e1,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x57010a=_0x2fbb97['plugins']['get']('CommentsRepository');this['listenTo'](_0x57010a,'addComment',(_0x2c8f42,{threadId:_0x2693e4})=>{const _0x551dce=this['_suggestions']['get'](_0x2693e4);_0x551dce&&_0x551dce['commentThread']&&0x1===_0x551dce['commentThread']['length']&&this['_updateSuggestionData'](_0x2693e4,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x57010a,'removeComment',(_0x2fc166,{threadId:_0x16a5bb})=>{const _0x390438=this['_suggestions']['get'](_0x16a5bb);_0x390438&&_0x390438['commentThread']&&!_0x390438['commentThread']['length']&&this['_updateSuggestionData'](_0x16a5bb,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x56c5e8){if(this['_adapter'])throw new _0x29601a('track-changes-adapter-already-set',this);this['_adapter']=_0x56c5e8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x514c37=!0x1,toJSON:_0x356f88=!0x1}={}){const _0x4c0c01=[];for(const _0x322cc7 of this['_suggestions']['values']())_0x514c37&&!_0x322cc7['isInContent']||_0x4c0c01['push'](_0x322cc7);return _0x356f88?_0x4c0c01['map'](_0x2dbde6=>_0x2dbde6['toJSON']()):_0x4c0c01;}['getSuggestion'](_0x24d238){const _0x4e7667=this['_suggestions']['get'](_0x24d238);if(!_0x4e7667)throw new _0x29601a('track-changes-suggestion-not-found',this);return _0x4e7667;}['hasSuggestion'](_0x40b03c){return this['_suggestions']['has'](_0x40b03c);}['addSuggestionData'](_0x49757c){const {authorId:_0x3db50c,id:_0x5194e0,attributes:_0x2edf15}=_0x49757c,[_0x5a0583,_0x28a501]=_0x49757c['type']['split'](':'),_0x386948=this['_suggestions']['get'](_0x5194e0)||this['_createSuggestion'](_0x5a0583,_0x28a501,_0x5194e0,_0x3db50c,_0x2edf15);if(this['_addThreadToSuggestion'](_0x386948),this['_checkSuggestionCorrectness'](_0x386948,_0x5a0583,_0x28a501||null,_0x3db50c),_0x386948['createdAt']=_0x49757c['createdAt'],_0x386948['_isDataLoaded']=!0x0,_0x2edf15&&_0x2edf15['@external']){const _0x34a72f=_0x2edf15['@external'],_0x35417d=this['_getExternalAuthor'](_0x34a72f['authorName']);_0x386948['authoredAt']=_0x34a72f['createdAt'],_0x386948['author']=_0x35417d,_0x386948['isExternal']=!0x0;}else _0x386948['authoredAt']=_0x49757c['createdAt'];switch(_0x49757c['data']&&(_0x386948['data']=_0x49757c['data']),_0x49757c['attributes']&&(_0x386948['attributes']=_0x49757c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x386948['_saved']=!0x0),this['_suggestionState']['get'](_0x386948)){case'notReady':this['_suggestionState']['set'](_0x386948,'dataReady');break;case'markerReady':_0x386948['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x386948])),this['_refreshSuggestionsChain'](new Set([_0x386948])),this['_suggestionState']['set'](_0x386948,'ready'),this['fire']('suggestionLoaded',_0x386948)):this['_suggestionState']['set'](_0x386948,'removed');}return _0x386948;}['acceptSuggestion'](_0x11ae33){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10c256 of _0x11ae33['getAllAdjacentSuggestions']())_0x10c256['accept']();});});}['discardSuggestion'](_0x2ed73a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa8ebd5 of _0x2ed73a['getAllAdjacentSuggestions']())_0xa8ebd5['discard']();});});}['enableCommand'](_0x1411a9,_0x554878){const _0x10d8b1=this['editor']['commands']['get'](_0x1411a9);if(!_0x10d8b1)throw new _0x29601a('track-changes-command-not-found',this,{'commandName':_0x1411a9});if(this['_enabledCommands']['has'](_0x10d8b1))throw new _0x29601a('track-changes-enable-command-twice',this,{'commandName':_0x1411a9});this['_enabledCommands']['add'](_0x10d8b1),_0x554878&&_0x10d8b1['on']('execute',(_0x398265,_0x13e949)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x13e949['length']>0x0&&_0x13e949[_0x13e949['length']-0x1]&&_0x13e949[_0x13e949['length']-0x1]['forceDefaultExecution']?_0x13e949['pop']():(_0x398265['return']=_0x554878((..._0x2a77d3)=>_0x10d8b1['execute'](..._0x2a77d3,{'forceDefaultExecution':!0x0}),..._0x13e949),_0x398265['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x26e26d){let _0x8d266d,_0x39d6d5;const _0x4eb030=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x8d266d=_0x26e26d();}catch(_0x327094){_0x39d6d5=_0x327094;}return _0x4eb030||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x39d6d5&&_0x29601a['rethrowUnexpectedError'](_0x39d6d5,this),_0x8d266d;}['markInsertion'](_0xf8115c,_0x5b9992=null,_0x266d8c={}){if(_0xf8115c['isCollapsed'])return null;const _0x1f46c0=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4451f8,meta:_0x5c842b}of this['_findSuggestions'](_0xf8115c,'insertion'))if(_0x5c842b['isOwn']){if(!_0x5c842b['isNextTo']){if(_0x5c842b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x4451f8,_0x266d8c))continue;return _0x4451f8;}if(qt(_0x4451f8,_0x266d8c))return _0x4451f8;this['_breakSuggestionMarker'](_0x4451f8,_0xf8115c['start'],_0xf8115c['end']);break;}if(_0x5b9992==_0x4451f8['subType']&&qt(_0x4451f8,_0x266d8c)){const _0x42bcac=_0x4451f8['getFirstRange']();return _0x42bcac['start']['isEqual'](_0xf8115c['end'])?this['_setSuggestionRange'](_0x4451f8,this['_model']['createRange'](_0xf8115c['start'],_0x42bcac['end'])):this['_setSuggestionRange'](_0x4451f8,this['_model']['createRange'](_0x42bcac['start'],_0xf8115c['end'])),_0x4451f8;}}const _0x5cc5f7=_0x55ea85(),_0x42e41b=_0x1f46c0['id'],_0x21c594=_0x5b9992?'insertion:'+_0x5b9992:'insertion',_0x2221b3=this['_setSuggestionData']({'id':_0x5cc5f7,'type':_0x21c594,'createdAt':new Date(),'authorId':_0x42e41b,'attributes':_0x266d8c});return this['_addSuggestionMarker'](_0x21c594,_0x5cc5f7,_0x42e41b,_0xf8115c),_0x2221b3;}['markMultiRangeInsertion'](_0x199921,_0x23aa2e='multi',_0x4727b3={}){const _0x5645c8=this['editor']['plugins']['get']('Users')['me'],_0x4752a6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x23aa2e,'join');for(const _0x33f041 of this['getSuggestions']())if(_0x33f041['author']['id']==_0x5645c8['id']&&'insertion'==_0x33f041['type']&&_0x33f041['subType']==_0x23aa2e&&qt(_0x33f041,_0x4727b3)&&(_0x4752a6(_0x33f041['getRanges'](),_0x199921)||_0x4752a6(_0x199921,_0x33f041['getRanges']()))){for(const _0x9c0ed4 of _0x199921)_0x33f041['addRange'](_0x9c0ed4);return _0x33f041;}for(const {suggestion:_0x445c80,meta:_0x39dfef}of this['_findSuggestions'](_0x199921,'insertion')){if(!_0x39dfef['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x39dfef['containsRangeInObject'])continue;if(!qt(_0x445c80,_0x4727b3))continue;let _0x16d497=!0x0;for(const _0x402388 of _0x445c80['getRanges']())for(const _0x10af5b of _0x199921)if(!_0x402388['containsRange'](_0x10af5b)){_0x16d497=!0x1;break;}if(_0x16d497)return _0x445c80;}const _0x59dab4=_0x55ea85(),_0x4864ce=_0x5645c8['id'],_0x557781='insertion:'+_0x23aa2e,_0x310b83=this['_setSuggestionData']({'id':_0x59dab4,'type':_0x557781,'createdAt':new Date(),'authorId':_0x4864ce,'attributes':_0x4727b3});for(const _0x3b3548 of _0x199921)this['_addSuggestionMarker'](_0x557781,_0x59dab4,_0x4864ce,_0x3b3548,u['getMultiRangeId']());return _0x310b83;}['markInlineFormat'](_0x239d12,_0xa32201,_0x7ed261=null,_0x2441c7={}){if(_0x7ed261=_0x7ed261||Gt(_0xa32201),_0x239d12['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1083d0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7ed261,'accept');return this['forceDefaultExecution'](()=>_0x1083d0([_0x239d12],_0xa32201,_0x2441c7)),null;}const _0x3b25d0=this['editor']['plugins']['get']('Users')['me'],_0x3a2dd8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x11619b,meta:_0x11b430}of this['_findSuggestions'](_0x239d12,'insertion'))_0x11b430['isOwn']&&!_0x11b430['isInsideObject']&&_0x3a2dd8['push'](..._0x11619b['getRanges']());}const _0x5b74dd=function(_0xbaed7a,_0x53795d){const _0x5eec1c=[];for(const _0x2d7ade of _0x53795d){const _0x482c9e=_0xbaed7a['getIntersection'](_0x2d7ade);_0x482c9e&&_0x5eec1c['push'](_0x482c9e);}return _0x5eec1c;}(_0x239d12,_0x3a2dd8),_0x1d3d7a=function(_0x4d0635,_0x4f436d){const _0x4c2748=[_0x4d0635];for(const _0xc96129 of _0x4f436d){let _0x1c1a63=0x0;for(;_0x1c1a63<_0x4c2748['length'];){const _0x3d92eb=_0x4c2748[_0x1c1a63]['getDifference'](_0xc96129);_0x4c2748['splice'](_0x1c1a63,0x1,..._0x3d92eb),_0x1c1a63+=_0x3d92eb['length'];}}return _0x4c2748;}(_0x239d12,_0x3a2dd8);_0x5b74dd['length']&&this['_model']['change'](()=>{for(const _0x231d11 of _0x5b74dd){const _0x130ddf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x7ed261,'accept');this['forceDefaultExecution'](()=>_0x130ddf([_0x231d11],_0xa32201,_0x2441c7));}});for(const _0x4f37af of _0x1d3d7a){let _0x5e567f=null,_0x5c6a4c=_0x4f37af['start'],_0x4e0473=_0x4f37af['end'];for(const {suggestion:_0x72b6d,meta:_0x28e0e0}of this['_findSuggestions'](_0x4f37af,'formatInline')){if(!_0x28e0e0['isOwn'])continue;if(_0x72b6d['subType']!=_0x7ed261)continue;if(!qt(_0x72b6d,_0x2441c7))continue;const _0x36ea3c=_0x72b6d['getFirstRange']();if(_0x36ea3c['containsRange'](_0x4f37af,!0x0))return null;_0x5c6a4c=_0x5c6a4c['isBefore'](_0x36ea3c['start'])?_0x5c6a4c:_0x36ea3c['start'],_0x4e0473=_0x4e0473['isAfter'](_0x36ea3c['end'])?_0x4e0473:_0x36ea3c['end'],_0x5e567f?_0x36ea3c['start']['isBefore'](_0x5e567f['getFirstRange']()['start'])?(_0x5e567f['removeMarkers'](),_0x5e567f=_0x72b6d):_0x72b6d['removeMarkers']():_0x5e567f=_0x72b6d;}const _0x5d5343=this['_model']['createRange'](_0x5c6a4c,_0x4e0473);if(_0x5e567f)this['_setSuggestionRange'](_0x5e567f,_0x5d5343);else{const _0x4ed04e=_0x55ea85(),_0x548ad1=_0x3b25d0['id'];this['_setSuggestionData']({'id':_0x4ed04e,'type':'formatInline:'+_0x7ed261,'data':_0xa32201,'createdAt':new Date(),'authorId':_0x548ad1,'attributes':_0x2441c7}),this['_addSuggestionMarker']('formatInline:'+_0x7ed261,_0x4ed04e,_0x548ad1,_0x5d5343);}}return null;}['markBlockFormat'](_0x72bcaa,_0x31dbb1,_0x170f97=[],_0x31a9a5=null,_0x1e2a4d={}){_0x31dbb1['formatGroupId']||(_0x31dbb1['formatGroupId']=_0x31dbb1['commandName']),_0x31dbb1['multipleBlocks']=_0x72bcaa['is']('range'),_0x31a9a5=_0x31a9a5||Gt(_0x31dbb1);const _0x4e7137=_0x170f97['map'](_0x54bc7b=>Lt(_0x54bc7b,this['_model'])),_0x53bd3a=_0x72bcaa['is']('range')?_0x72bcaa:Lt(_0x72bcaa,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2752b2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31a9a5,'accept');return this['forceDefaultExecution'](()=>_0x2752b2([_0x53bd3a],_0x31dbb1,_0x1e2a4d)),null;}_0x4e7137['push'](_0x53bd3a);let _0x1e227d=!0x0;for(const _0x3d011a of _0x4e7137)if(!this['_rangeIsInLocalUserInsertion'](_0x3d011a)){_0x1e227d=!0x1;break;}if(_0x1e227d&&'always'!==this['_trackFormatChanges']){const _0x998420=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31a9a5,'accept');return this['forceDefaultExecution'](()=>_0x998420([_0x53bd3a],_0x31dbb1,_0x1e2a4d)),null;}let _0x37e9aa=null,_0x2d2289=_0x53bd3a['start'],_0x5aa3e2=_0x53bd3a['end'];for(const {suggestion:_0x1d562e,meta:_0x35a3d9}of this['_findSuggestions'](_0x53bd3a,'formatBlock')){if(!_0x35a3d9['isOwn'])continue;if(_0x35a3d9['isNextTo']||_0x35a3d9['containsRangeInObject']||_0x35a3d9['isInsideObject'])continue;if(_0x1d562e['data']['formatGroupId']!=_0x31dbb1['formatGroupId'])continue;if(!qt(_0x1d562e,_0x1e2a4d))continue;const _0x147846=_0x1d562e['getFirstRange']();if(_0x1d562e['subType']==_0x31a9a5){if(_0x147846['containsRange'](_0x53bd3a,!0x0))return null;_0x2d2289=_0x2d2289['isBefore'](_0x147846['start'])?_0x2d2289:_0x147846['start'],_0x5aa3e2=_0x5aa3e2['isAfter'](_0x147846['end'])?_0x5aa3e2:_0x147846['end'],_0x37e9aa?_0x147846['start']['isBefore'](_0x37e9aa['getFirstRange']()['start'])?(_0x37e9aa['removeMarkers'](),_0x37e9aa=_0x1d562e):_0x1d562e['removeMarkers']():_0x37e9aa=_0x1d562e;}else{const _0x3733c8=_0x53bd3a['getIntersection'](_0x147846);this['_cutOutSuggestionMarker'](_0x1d562e,_0x3733c8);}}const _0x154745=this['editor']['plugins']['get']('Users')['me'],_0x4caa12=_0x55ea85(),_0x392e56=_0x154745['id'];if(_0x37e9aa)return this['_setSuggestionRange'](_0x37e9aa,this['_model']['createRange'](_0x2d2289,_0x5aa3e2)),_0x37e9aa;{const _0x40392a=this['_setSuggestionData']({'id':_0x4caa12,'type':'formatBlock:'+_0x31a9a5,'data':_0x31dbb1,'createdAt':new Date(),'authorId':_0x392e56,'attributes':_0x1e2a4d});return this['_addSuggestionMarker']('formatBlock:'+_0x31a9a5,_0x4caa12,_0x392e56,this['_model']['createRange'](_0x2d2289,_0x5aa3e2)),_0x40392a;}}['markMultiRangeBlockFormat'](_0x16c635,_0x4fbc1c,_0x90c8c1=[],_0x20bed4=null,_0xbfe810={}){_0x4fbc1c['formatGroupId']||(_0x4fbc1c['formatGroupId']=_0x4fbc1c['commandName']);const _0xcf0d2d=_0x16c635[0x0];_0x4fbc1c['multipleBlocks']=_0xcf0d2d['is']('range'),_0x20bed4=_0x20bed4||Gt(_0x4fbc1c);const _0x3a39f1=_0x90c8c1['map'](_0x4fe5ff=>Lt(_0x4fe5ff,this['_model'])),_0x536c3f=_0xcf0d2d['is']('range')?_0x16c635:_0x16c635['map'](_0x1d7d75=>Lt(_0x1d7d75,this['_model']));if('never'===this['_trackFormatChanges']){const _0x335b69=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20bed4,'accept');return this['forceDefaultExecution'](()=>_0x335b69(_0x536c3f,_0x4fbc1c,_0xbfe810)),null;}_0x3a39f1['push'](..._0x536c3f);let _0x54db04=!0x0;for(const _0xf33449 of _0x3a39f1)if(!this['_rangeIsInLocalUserInsertion'](_0xf33449)){_0x54db04=!0x1;break;}if(_0x54db04&&'always'!==this['_trackFormatChanges']){const _0x493924=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20bed4,'accept');return this['forceDefaultExecution'](()=>_0x493924(_0x536c3f,_0x4fbc1c,_0xbfe810)),null;}const _0x1f2f4b=this['editor']['plugins']['get']('Users')['me'];for(const _0x1f1a23 of this['getSuggestions']()){if(_0x1f1a23['author']['id']!=_0x1f2f4b['id'])continue;if('formatBlock'!=_0x1f1a23['type']||_0x1f1a23['data']['formatGroupId']!=_0x4fbc1c['formatGroupId'])continue;if(!qt(_0x1f1a23,_0xbfe810))continue;const _0x5d73c9=_0x1f1a23['subType']==_0x20bed4;for(let _0x4cc09d=0x0;_0x4cc09d<_0x536c3f['length'];_0x4cc09d++){const _0x47f5a6=_0x536c3f[_0x4cc09d];for(const _0x2e4b7c of _0x1f1a23['getMarkers']()){const _0x548e19=_0x2e4b7c['getRange']();if(_0x47f5a6['isEqual'](_0x548e19)){_0x5d73c9?(_0x536c3f['splice'](_0x4cc09d,0x1),_0x4cc09d--):_0x1f1a23['removeMarker'](_0x2e4b7c['name']);break;}}}}if(0x0==_0x536c3f['length'])return null;const _0x4e856d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x20bed4,'join');for(const _0x30af01 of this['getSuggestions']())if(_0x30af01['author']['id']==_0x1f2f4b['id']&&'formatBlock'==_0x30af01['type']&&_0x30af01['data']['formatGroupId']==_0x4fbc1c['formatGroupId']&&_0x30af01['subType']==_0x20bed4&&qt(_0x30af01,_0xbfe810)&&(_0x4e856d(_0x30af01['getRanges'](),_0x536c3f)||_0x4e856d(_0x536c3f,_0x30af01['getRanges']()))){for(const _0x55d91e of _0x536c3f)_0x30af01['addRange'](_0x55d91e);return _0x30af01;}const _0xb8998d=_0x55ea85(),_0x2130fc=_0x1f2f4b['id'],_0x20f31c='formatBlock:'+_0x20bed4,_0x25cec0=this['_setSuggestionData']({'id':_0xb8998d,'type':_0x20f31c,'data':_0x4fbc1c,'createdAt':new Date(),'authorId':_0x2130fc,'attributes':_0xbfe810});for(const _0x421871 of _0x536c3f)this['_addSuggestionMarker'](_0x20f31c,_0xb8998d,_0x2130fc,_0x421871,u['getMultiRangeId']());return _0x25cec0;}['markDeletion'](_0x1c4870,_0x4077a6=null,_0x446038={}){if(_0x1c4870['isCollapsed'])return null;const _0x46c01f=this['editor']['plugins']['get']('Users')['me'],_0x510a7c=new _0x36e74e(_0x1c4870['start'],_0x1c4870['end']);for(const {suggestion:_0xb82773,meta:_0x27cf08}of this['_findSuggestions'](_0x510a7c,'insertion'))if(_0x27cf08['isOwn']&&!_0x27cf08['isNextTo']){if(_0xb82773['isMultiRange']){const _0x4b964c=_0xb82773['getRanges']()['filter'](_0x5236a1=>'$graveyard'!=_0x5236a1['root']['rootName']);_0x4b964c['every'](_0x16ec0a=>_0x510a7c['containsRange'](_0x16ec0a,!0x0))&&_0xb82773['discard']();if(_0x4b964c['some'](_0x479e1e=>_0x479e1e['containsRange'](_0x510a7c,!0x0))){const _0x54ff78=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4077a6,'accept');return this['forceDefaultExecution'](()=>_0x54ff78([_0x510a7c],null,_0x446038)),null;}}else{const _0x4f3c75=_0x510a7c['getIntersection'](_0xb82773['getFirstRange']());null!==_0x4f3c75&&_0xb82773['_onDiscard']([_0x4f3c75],null,_0x446038);}}if(_0x510a7c['detach'](),_0x510a7c['isCollapsed']||'$graveyard'==_0x510a7c['root']['rootName'])return null;let _0x521c85=null,_0x8aea4e=_0x510a7c['start'],_0xdd2b67=_0x510a7c['end'];const _0x419af6=this['_findSuggestions'](_0x510a7c,'deletion');for(const {suggestion:_0x13b264,meta:_0x35c259}of _0x419af6){const _0x375226=this['_model']['createRange'](_0x8aea4e,_0xdd2b67);if(_0x35c259['isOwn']&&(this['_mergeNestedSuggestions']||!_0x35c259['containsRangeInObject']&&!_0x35c259['isInsideObject'])){if(_0x13b264['isMultiRange']){if(!qt(_0x13b264,_0x446038))continue;let _0x293f53=!0x0;for(const _0x3c1763 of _0x13b264['getRanges']()){if(_0x3c1763['containsRange'](_0x375226,!0x0))return _0x13b264;_0x375226['containsRange'](_0x3c1763)||(_0x293f53=!0x1);}_0x293f53&&_0x13b264['discard']();}else{const _0x32361c=_0x13b264['getFirstRange']();if(_0x32361c['containsRange'](_0x375226,!0x0))return _0x13b264;if(!qt(_0x13b264,_0x446038)){_0x375226['containsRange'](_0x32361c)?_0x13b264['removeMarkers']():_0x32361c['containsPosition'](_0x8aea4e)?_0x8aea4e=_0x32361c['end']:_0x32361c['containsPosition'](_0xdd2b67)&&(_0xdd2b67=_0x32361c['start']);continue;}_0x8aea4e=_0x8aea4e['isBefore'](_0x32361c['start'])?_0x8aea4e:_0x32361c['start'],_0xdd2b67=_0xdd2b67['isAfter'](_0x32361c['end'])?_0xdd2b67:_0x32361c['end'],_0x446038=Object['assign']({},_0x13b264['attributes']),_0x521c85?_0x32361c['start']['isBefore'](_0x521c85['getFirstRange']()['start'])?(_0x521c85['removeMarkers'](),_0x521c85=_0x13b264):_0x13b264['removeMarkers']():_0x521c85=_0x13b264;}}}if(_0x521c85)return this['_setSuggestionRange'](_0x521c85,this['_model']['createRange'](_0x8aea4e,_0xdd2b67)),_0x521c85;{const _0x5e519b=_0x55ea85(),_0x34b5e2=this['_model']['createRange'](_0x8aea4e,_0xdd2b67),_0xf55db1=_0x46c01f['id'],_0xcf2423=_0x4077a6?'deletion:'+_0x4077a6:'deletion',_0xcc5618=this['_setSuggestionData']({'id':_0x5e519b,'type':_0xcf2423,'createdAt':new Date(),'authorId':_0xf55db1,'attributes':_0x446038});return this['_addSuggestionMarker'](_0xcf2423,_0x5e519b,_0xf55db1,_0x34b5e2),_0xcc5618;}}['markMultiRangeDeletion'](_0x1c67c3,_0xb24f33='multi',_0x585950={}){const _0x214589=this['editor']['plugins']['get']('Users')['me'],_0x10dc19=_0x1c67c3['map'](_0xa8f769=>new _0x36e74e(_0xa8f769['start'],_0xa8f769['end'])),_0x2a16a0=new Set();for(const {suggestion:_0x49594c,meta:_0x3d7932}of this['_findSuggestions'](_0x10dc19,'insertion'))_0x3d7932['isOwn']&&!_0x3d7932['isNextTo']&&_0x2a16a0['add'](_0x49594c);for(const _0x29610b of _0x2a16a0)if(_0x29610b['isMultiRange']){const _0x15723e=_0x29610b['getRanges']();(!_0x29610b['attributes']||!_0x29610b['attributes']['skipNestingCheck'])&&(_0x15723e['every'](_0x16919e=>_0x10dc19['some'](_0x3bca5a=>_0x3bca5a['containsRange'](_0x16919e,!0x0)))&&_0x29610b['discard']());if(_0x10dc19['every'](_0x5a6ece=>_0x15723e['some'](_0x1fb293=>_0x1fb293['containsRange'](_0x5a6ece,!0x0)))){const _0x3b4b78=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb24f33,'accept');return this['forceDefaultExecution'](()=>_0x3b4b78(_0x1c67c3,null,_0x585950)),null;}}else{const _0x2b0e6f=_0x29610b['getFirstRange']();_0x10dc19['some'](_0x209dd6=>_0x209dd6['containsRange'](_0x2b0e6f,!0x0))&&_0x29610b['discard']();if(_0x10dc19['every'](_0x308bbf=>_0x2b0e6f['containsRange'](_0x308bbf,!0x0))){const _0x2a260c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb24f33,'accept');return this['forceDefaultExecution'](()=>_0x2a260c(_0x10dc19,null,_0x585950)),null;}}const _0x5adcc4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xb24f33,'join');let _0x4f19d6=null;for(const _0xd2b4ef of this['getSuggestions']())if(_0xd2b4ef['author']['id']==_0x214589['id']&&_0xd2b4ef['isInContent']&&'deletion'==_0xd2b4ef['type']&&_0xd2b4ef['subType']==_0xb24f33&&qt(_0xd2b4ef,_0x585950)&&(_0x5adcc4(_0xd2b4ef['getRanges'](),_0x10dc19)||_0x5adcc4(_0x10dc19,_0xd2b4ef['getRanges']()))){if(_0x4f19d6){if(_0xd2b4ef['commentThread']&&_0xd2b4ef['commentThread']['length'])continue;for(const _0x34a208 of _0xd2b4ef['getRanges']())_0x4f19d6['isIntersectingWithRange'](_0x34a208)||_0x4f19d6['addRange'](_0x34a208);_0xd2b4ef['removeMarkers']();}else{_0x4f19d6=_0xd2b4ef;for(const _0x5dcf10 of _0x10dc19)_0xd2b4ef['isIntersectingWithRange'](_0x5dcf10)||_0xd2b4ef['addRange'](_0x5dcf10);}}if(_0x4f19d6)return _0x4f19d6;_0x2a16a0['clear']();for(const {suggestion:_0x5498e5,meta:_0x9277f}of this['_findSuggestions'](_0x10dc19,'deletion'))_0x9277f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9277f['containsRangeInObject']&&!_0x9277f['isInsideObject'])&&qt(_0x5498e5,_0x585950)&&_0x2a16a0['add'](_0x5498e5);for(const _0x668b3b of _0x2a16a0){const _0x3f78f2=_0x668b3b['getRanges']();if(!_0x585950||!_0x585950['skipNestingCheck']){if(_0x10dc19['every'](_0x5e640d=>_0x3f78f2['some'](_0x27ae9d=>_0x27ae9d['containsRange'](_0x5e640d,!0x0))))return _0x668b3b;}(!_0x668b3b['attributes']||!_0x668b3b['attributes']['skipNestingCheck'])&&(_0x3f78f2['every'](_0x50d612=>_0x10dc19['some'](_0x5618ab=>_0x5618ab['containsRange'](_0x50d612,!0x0)))&&_0x668b3b['discard']());}const _0x5bf634=_0x55ea85(),_0x3ee796=_0x214589['id'],_0x584cad='deletion:'+_0xb24f33,_0x52eddf=this['_setSuggestionData']({'id':_0x5bf634,'type':_0x584cad,'createdAt':new Date(),'authorId':_0x3ee796,'attributes':_0x585950});for(const _0x46a2d7 of _0x10dc19)_0x46a2d7['detach'](),_0x46a2d7['isCollapsed']||'$graveyard'==_0x46a2d7['root']['rootName']||this['_addSuggestionMarker'](_0x584cad,_0x5bf634,_0x3ee796,_0x46a2d7,u['getMultiRangeId']());return _0x52eddf;}['markAttributeChange'](_0x11e7c7,_0x37c4fd,_0x6c0e4,_0x4cc098,_0x4afd9e){if(_0x11e7c7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x468f56=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f20d4=Array['from'](this['_suggestions']['values']())['filter'](_0x8748af=>'attribute'==_0x8748af['type']&&_0x8748af['data']['key']==_0x37c4fd&&_0x8748af['isIntersectingWithRange'](_0x11e7c7));if('default'===this['_trackFormatChanges']){const _0x258fd8=this['_findSuggestions'](_0x11e7c7,'insertion')['filter'](({meta:_0x134792})=>_0x134792['isOwn']&&!_0x134792['isInsideObject']&&!_0x134792['isNextTo'])['map'](({suggestion:_0x245052})=>_0x245052);_0x5f20d4['unshift'](..._0x258fd8);}const _0x157990=new Map([[_0x11e7c7,_0x6c0e4]]);for(const _0x551d6e of _0x5f20d4){const _0x28ef52='attribute'==_0x551d6e['type']?_0x551d6e['data']['oldValue']:void 0x0,_0x36351a=_0x551d6e['getFirstRange'](),_0x55a76a=Array['from'](_0x157990['keys']())['find'](_0x39a166=>_0x39a166['isIntersecting'](_0x36351a));if(!_0x55a76a)continue;const _0x505b05=_0x55a76a['getDifference'](_0x36351a);this['_isBlockAttribute'](_0x37c4fd)&&'insertion'==_0x551d6e['type']&&0x0!=_0x505b05['length']||(_0x157990['delete'](_0x55a76a),_0x505b05['forEach'](_0x4f2c2e=>{_0x157990['set'](_0x4f2c2e,_0x6c0e4);}),'insertion'!=_0x551d6e['type']&&_0x28ef52!=_0x4cc098&&_0x157990['set'](_0x55a76a['getIntersection'](_0x36351a),_0x28ef52));}const _0x5edce0=[];for(const [_0x504a75,_0x301ab2]of _0x157990){const _0x7cd84e=_0x55ea85(),_0x51a183={'key':_0x37c4fd,'oldValue':_0x301ab2,'newValue':_0x4cc098};_0x37c4fd['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':_0x37c4fd});const _0x37d1fa=('attribute:'+(_0x37c4fd+'|'+Gt({'newValue':_0x4cc098})))['substring'](0x0,0x3c),_0x352970=this['_setSuggestionData']({'id':_0x7cd84e,'type':_0x37d1fa,'data':_0x51a183,'createdAt':new Date(),'authorId':_0x468f56,'attributes':_0x4afd9e});_0x5edce0['push'](_0x352970),this['_addSuggestionMarker'](_0x37d1fa,_0x7cd84e,_0x468f56,_0x504a75);}return _0x5edce0;}['enableDefaultAttributesIntegration'](_0x355a59){this['enableCommand'](_0x355a59,(_0x5ceee3,..._0x22f24b)=>{this['_recordAttributeChanges'](()=>{_0x5ceee3(..._0x22f24b);});});}['registerBlockAttribute'](_0x31bbca){this['_blockAttributeKeys']['add'](_0x31bbca);}['registerInlineAttribute'](_0x6c016){this['_inlineAttributeKeys']['add'](_0x6c016);}['_getAttributeKey'](_0x3dfb7b){return'attribute'==_0x3dfb7b['type']?_0x3dfb7b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x45899c,_0x262450){const _0x4e40a3=_0x45899c['getFirstMarker']();this['_model']['change'](_0x20b103=>{_0x20b103['updateMarker'](_0x4e40a3,{'range':_0x262450});});}['_addThreadToSuggestion'](_0x276489){const _0x47d565=_0x276489['id'],_0x38f584=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x47d565)||this['_commentsRepository']['addCommentThread']({'channelId':_0x38f584,'threadId':_0x47d565,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x44ce5d=this['_commentsRepository']['getCommentThread'](_0x47d565);_0x44ce5d['unbind']('isRemovable'),_0x44ce5d['isRemovable']=!0x1,_0x276489['commentThread']=_0x44ce5d;}['_checkSuggestionCorrectness'](_0x42a192,_0xcbc426,_0x164744,_0x5dccef){if(_0x42a192['type']!=_0xcbc426||_0x42a192['subType']!=_0x164744||_0x42a192['creator']['id']!=_0x5dccef)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x29601a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1906d8,_0xfbae2a){const _0x112f12=_0x1906d8['getFirstRange']();if(_0xfbae2a['isEqual'](_0x112f12))_0x1906d8['removeMarkers']();else{if(_0x112f12['containsRange'](_0xfbae2a)){const _0x2f0707=this['_model']['createPositionAt'](_0xfbae2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1906d8,this['_model']['createRange'](_0x112f12['start'],_0x2f0707));const _0x353d0d=_0x55ea85(),_0xc225bf=_0x1906d8['creator']['id'],_0x40c34d=_0x1906d8['type']+':'+_0x1906d8['subType'];this['_setSuggestionData']({'id':_0x353d0d,'type':_0x40c34d,'createdAt':new Date(),'authorId':_0xc225bf,'data':_0x1906d8['data'],'attributes':_0x1906d8['attributes']});const _0x306e97=this['_model']['createPositionAt'](_0xfbae2a['end']['parent'],'after'),_0x4ce4aa=this['_model']['createRange'](_0x306e97,_0x112f12['end']);this['_addSuggestionMarker'](_0x40c34d,_0x353d0d,_0xc225bf,_0x4ce4aa);}else{if(_0x112f12['containsPosition'](_0xfbae2a['start'])){const _0x5809f8=this['_model']['createPositionAt'](_0xfbae2a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1906d8,this['_model']['createRange'](_0x112f12['start'],_0x5809f8));}else{const _0x1af76b=this['_model']['createPositionAt'](_0xfbae2a['end']['parent'],'after');this['_setSuggestionRange'](_0x1906d8,this['_model']['createRange'](_0x1af76b,_0x112f12['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3a5ee3){for(const {suggestion:_0x3f9bd5,meta:_0x132359}of this['_findSuggestions'](_0x3a5ee3,'insertion')){if(!_0x132359['isOwn'])continue;const _0xee16f1=_0x3f9bd5['getRanges']();for(const _0x39250d of _0xee16f1)if(!_0x3a5ee3['getDifference'](_0x39250d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4d54e4){const _0x408068=this['editor']['plugins']['get']('Users')['getUser'](_0x4d54e4);if(!_0x408068)throw new _0x29601a('track-changes-user-not-found',this);return _0x408068;}['_getExternalAuthor'](_0x221b65){const _0x51e4cd=this['editor']['plugins']['get']('Users'),_0x4e0855=_0x253184('external:'+_0x221b65),_0x4dcdfe=_0x51e4cd['getUser'](_0x4e0855);return _0x4dcdfe||_0x51e4cd['addUser']({'id':_0x4e0855,'name':_0x221b65});}['_createSuggestion'](_0x5456f6,_0x39d47f,_0x238c4a,_0x52f9cf,_0x16699a){const _0x14763c=this['_getAuthorFromId'](_0x52f9cf),_0x571af3=this['_suggestionFactory']['buildSuggestion'](_0x5456f6,_0x39d47f,_0x238c4a,_0x14763c,_0x16699a,_0x4d8138=>{this['_updateSuggestionData'](_0x238c4a,{'attributes':_0x4d8138});const _0x32bf87=this['getSuggestion'](_0x238c4a);this['_joinWithAdjacentSuggestions'](new Set([_0x32bf87])),this['_refreshSuggestionsChain'](new Set([_0x32bf87]));});return this['listenTo'](_0x571af3,'accept',()=>{this['_updateSuggestionData'](_0x238c4a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x571af3,'discard',()=>{this['_updateSuggestionData'](_0x238c4a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x238c4a,_0x571af3),this['_suggestionState']['set'](_0x571af3,'notReady'),_0x571af3;}['_splitMarkerName'](_0x497afc){const _0x3562fd=_0x497afc['split'](':');return{'group':_0x3562fd[0x0],'type':_0x3562fd[0x1],'subType':_0x3562fd['length']>=0x5?_0x3562fd[0x2]:null,'id':_0x3562fd['length']<0x5?_0x3562fd[0x2]:_0x3562fd[0x3],'authorId':_0x3562fd['length']<0x5?_0x3562fd[0x3]:_0x3562fd[0x4],'markerCount':0x6==_0x3562fd['length']?_0x3562fd[0x5]:null};}['_breakSuggestionMarker'](_0x4db38f,_0x3c4581,_0x4994f8){const _0x527398=_0x4db38f['getFirstRange'](),_0x24e52b=_0x527398['start'],_0x4f4d7e=_0x527398['end'];this['_setSuggestionRange'](_0x4db38f,this['_model']['createRange'](_0x24e52b,_0x3c4581));const _0x39ac2a=_0x55ea85(),_0x20c695=_0x4db38f['creator']['id'],_0xdf0b1e=_0x4db38f['type']+(_0x4db38f['subType']?':'+_0x4db38f['subType']:'');this['_setSuggestionData']({'id':_0x39ac2a,'type':_0xdf0b1e,'createdAt':new Date(),'authorId':_0x20c695,'originalSuggestionId':_0x4db38f['id'],'attributes':_0x4db38f['attributes'],'data':_0x4db38f['data']});const _0x212c1c=this['_getAttributeKey'](_0x4db38f);('formatBlock'==_0x4db38f['type']||_0x212c1c&&this['_isBlockAttribute'](_0x212c1c))&&(_0x4994f8=this['_model']['createPositionBefore'](_0x4994f8['parent'])),this['_addSuggestionMarker'](_0xdf0b1e,_0x39ac2a,_0x20c695,this['_model']['createRange'](_0x4994f8,_0x4f4d7e));}['_findSuggestions'](_0x324c3f,_0x5dd990=null){const _0x320c06=[],_0x2c491f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x324c3f)||(_0x324c3f=[_0x324c3f]);for(const _0x1ba956 of this['getSuggestions']()){if(!_0x1ba956['isInContent'])continue;if(_0x5dd990&&_0x1ba956['type']!=_0x5dd990)continue;let _0x24dc1b=!0x1;for(const _0x14e99e of _0x1ba956['getRanges']()){for(const _0x422a97 of _0x324c3f){const _0x4fba02=_0x422a97['start']['isEqual'](_0x14e99e['end'])||_0x422a97['end']['isEqual'](_0x14e99e['start']);if(_0x4fba02||_0x422a97['getIntersection'](_0x14e99e)){const _0x3db6ee=_0x422a97['containsRange'](_0x14e99e)&&Ot(this['_model']['schema'],_0x14e99e['start'],_0x422a97),_0x337f79=_0x14e99e['containsRange'](_0x422a97)&&Ot(this['_model']['schema'],_0x422a97['start'],_0x14e99e);_0x320c06['push']({'suggestion':_0x1ba956,'meta':{'isOwn':_0x2c491f==_0x1ba956['author'],'isNextTo':_0x4fba02,'isInsideObject':_0x3db6ee,'containsRangeInObject':_0x337f79}}),_0x24dc1b=!0x0;break;}}if(_0x24dc1b)break;}}return _0x320c06;}['_addSuggestionMarker'](_0x41dfe4,_0x191e03,_0x48320e,_0x525b0c,_0x489a10){this['_model']['change'](_0x5efd4e=>{let _0x14dca5='suggestion:'+_0x41dfe4+':'+_0x191e03+':'+_0x48320e;_0x489a10&&(_0x14dca5=_0x14dca5+':'+_0x489a10),_0x5efd4e['addMarker'](_0x14dca5,{'range':_0x525b0c,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x50b3cf){const _0x4ad23e=_0x50b3cf['previous'],_0x3f9dc5=_0x50b3cf['next'];_0x50b3cf['previous']=null,_0x50b3cf['next']=null,null!=_0x4ad23e&&_0x4ad23e['next']==_0x50b3cf&&(_0x4ad23e['next']=_0x3f9dc5),null!=_0x3f9dc5&&_0x3f9dc5['previous']==_0x50b3cf&&(_0x3f9dc5['previous']=_0x4ad23e),'ready'==this['_suggestionState']['get'](_0x50b3cf)&&(this['_suggestionState']['set'](_0x50b3cf,'removed'),this['fire']('suggestionUnloaded',_0x50b3cf,_0x4ad23e,_0x3f9dc5));}['_setSuggestionData'](_0x3e205e){const _0x353efe=_0x3e205e['id'],_0x5cb786=this['addSuggestionData'](_0x3e205e);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3ad459=this['editor']['plugins']['get']('PendingActions'),_0x525802=_0x5cb786['hasComments'],_0xfe0981=_0x5cb786['subType']?_0x5cb786['type']+':'+_0x5cb786['subType']:_0x5cb786['type'],_0x4f8a8b=this['editor']['locale'],_0x452e7e=_0x3ad459['add'](o(_0x4f8a8b,'PENDING_ACTION_SUGGESTION')),_0x33cb33={'id':_0x353efe,'type':_0xfe0981,'hasComments':_0x525802,'data':_0x3e205e['data']||null,'originalSuggestionId':_0x3e205e['originalSuggestionId']||null,'attributes':_0x5cb786['attributes']};this['_adapter']['addSuggestion'](_0x33cb33)['then'](_0x40607f=>{_0x5cb786['_saved']=!0x0,_0x3ad459['remove'](_0x452e7e),_0x40607f&&_0x40607f['createdAt']&&(this['_suggestions']['get'](_0x353efe)['createdAt']=_0x40607f['createdAt']);})['catch'](_0x11cf61=>{throw _0x395560('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5cb786['discard']();}),_0x5cb786['stopListening'](),this['_suggestions']['delete'](_0x5cb786['id']),this['_suggestionState']['delete'](_0x5cb786),_0x11cf61;});}return _0x5cb786;}['_isBlockAttribute'](_0x56cab7){return this['_blockAttributeKeys']['has'](_0x56cab7);}['_updateSuggestionData'](_0x4f856b,_0x7f4094){const _0x2f50cc=this['editor']['plugins']['get']('PendingActions'),_0x399762=this['getSuggestion'](_0x4f856b);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x399762['_saved']){const _0x2048e7=_0x2f50cc['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4f856b,_0x7f4094)['then'](()=>{_0x2f50cc['remove'](_0x2048e7);});}else _0x399762['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4f856b,_0x7f4094);});}}['_getSuggestionData'](_0x2ff282){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x29601a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2ff282);}['_handleNewSuggestionMarker'](_0x517d33){const {id:_0x2f360b,type:_0x3f2647,subType:_0x21a01c,authorId:_0x458863}=this['_splitMarkerName'](_0x517d33),_0x3a1d3f=this['_suggestions']['get'](_0x2f360b)||this['_createSuggestion'](_0x3f2647,_0x21a01c,_0x2f360b,_0x458863,{});switch(this['_checkSuggestionCorrectness'](_0x3a1d3f,_0x3f2647,_0x21a01c,_0x458863),this['_suggestionState']['get'](_0x3a1d3f)){case'notReady':this['_getSuggestionData'](_0x2f360b)['then'](_0x770fd9=>{let _0x2efbef=Promise['resolve']();_0x770fd9['hasComments']&&(_0x2efbef=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2f360b})),_0x2efbef['then'](()=>{this['addSuggestionData'](_0x770fd9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a1d3f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2f360b,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a1d3f,'ready'),this['fire']('suggestionLoaded',_0x3a1d3f);break;case'ready':this['fire']('suggestionChanged',_0x3a1d3f);}return _0x3a1d3f['addMarkerName'](_0x517d33),_0x3a1d3f;}['_refreshSuggestionsChain'](_0x242da8){const _0x7d1ec1=Array['from'](_0x242da8),_0x5a75af=_0x7d1ec1['filter'](_0x3db37b=>'attribute'==_0x3db37b['type']);this['_refreshAttributeSuggestionsChain'](_0x5a75af);const _0x1fe1af=_0x7d1ec1['filter'](_0x414a20=>!_0x414a20['isMultiRange']&&'attribute'!=_0x414a20['type']),_0x20277e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57e793=>!_0x57e793['isMultiRange']&&'attribute'!=_0x57e793['type']),_0x266757=_0x20277e['filter'](_0x403987=>!_0x242da8['has'](_0x403987)),_0x2f8fae=new Map(_0x20277e['map'](_0x58add3=>[_0x58add3,this['_suggestionFactory']['getSuggestionCallback'](_0x58add3['type'],_0x58add3['subType'],'chain')])),_0x4dcbd1=new Map(_0x20277e['map'](_0x3415b4=>[_0x3415b4,_0x3415b4['getFirstRange']()])),_0x4e3547=new Set(),_0x2abd24=new Set();for(let _0x177d90=0x0;_0x177d90<_0x1fe1af['length'];_0x177d90++)_0x11c8dd(_0x1fe1af[_0x177d90],_0x1fe1af,_0x177d90+0x1);for(let _0xa1214c=0x0;_0xa1214c<_0x1fe1af['length'];_0xa1214c++)_0x11c8dd(_0x1fe1af[_0xa1214c],_0x266757,0x0);const _0x48eb0c=new Set();for(let _0x39258d=0x0;_0x39258d<_0x1fe1af['length'];_0x39258d++){const _0x2383d8=_0x1fe1af[_0x39258d];!_0x2abd24['has'](_0x2383d8)&&_0x2383d8['previous']&&(_0x48eb0c['add'](_0x2383d8['previous']),_0x2383d8['previous']['next']===_0x2383d8&&(_0x2383d8['previous']['next']=null),_0x2383d8['previous']=null),!_0x4e3547['has'](_0x2383d8)&&_0x2383d8['next']&&(_0x48eb0c['add'](_0x2383d8['next']),_0x2383d8['next']['previous']===_0x2383d8&&(_0x2383d8['next']['previous']=null),_0x2383d8['next']=null);}function _0x11c8dd(_0xe35359,_0x3e2e74,_0x1587b1){for(let _0x1ac836=_0x1587b1;_0x1ac836<_0x3e2e74['length'];_0x1ac836++){const _0x1ab3da=_0x457c59(_0xe35359,_0x3e2e74[_0x1ac836]);_0x1ab3da&&(_0x1ab3da[0x0]['next']=_0x1ab3da[0x1],_0x1ab3da[0x1]['previous']=_0x1ab3da[0x0],_0x4e3547['add'](_0x1ab3da[0x0]),_0x2abd24['add'](_0x1ab3da[0x1]));}}function _0x457c59(_0x1f9913,_0x2e17d0){if(_0x1f9913['author']['id']!==_0x2e17d0['author']['id'])return null;const _0x571316=_0x2f8fae['get'](_0x1f9913)(_0x1f9913,_0x2e17d0,_0x4dcbd1['get'](_0x1f9913),_0x4dcbd1['get'](_0x2e17d0));if(!_0x571316)return null;return _0x2f8fae['get'](_0x2e17d0)(_0x1f9913,_0x2e17d0,_0x4dcbd1['get'](_0x1f9913),_0x4dcbd1['get'](_0x2e17d0))?_0x571316[0x1]['commentThread']&&_0x571316[0x1]['commentThread']['length']?null:_0x571316:null;}_0x48eb0c['size']&&this['_refreshSuggestionsChain'](_0x48eb0c);}['_refreshAttributeSuggestionsChain'](_0x24f024){if(0x0==_0x24f024['length'])return;const _0x1ae6d6=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x339bb1=>'attribute'==_0x339bb1['type']&&_0x339bb1['_isDataLoaded']),_0x2c819f=[],_0x4fdd52=new Map();for(const _0x467d2a of _0x1ae6d6){const _0x2108d5=_0x253184(_0x467d2a['attributes']);_0x4fdd52['has'](_0x2108d5)||(_0x4fdd52['set'](_0x2108d5,_0x2c819f['length']),_0x2c819f['push']([]));const _0x23fb30=_0x4fdd52['get'](_0x2108d5);_0x2c819f[_0x23fb30]['push'](_0x467d2a);}!(function(){_0x2c819f['sort']((_0x39c205,_0x2525de)=>{const _0x348cda=_0x39c205[0x0]['createdAt'],_0x2515ee=_0x2525de[0x0]['createdAt'];return _0x348cda==_0x2515ee?_0x39c205[0x0]['attributes']['groupId']<_0x2525de[0x0]['attributes']['groupId']?-0x1:0x1:_0x348cda<_0x2515ee?-0x1:0x1;});for(const _0x191b35 of _0x2c819f)_0x191b35['sort']((_0x482e39,_0x3ac3e5)=>_0x482e39['id']<_0x3ac3e5['id']?-0x1:0x1);}());for(let _0x1713d6=0x0;_0x1713d6<_0x2c819f['length'];_0x1713d6++){if(0x0==_0x2c819f[_0x1713d6]['length'])continue;const _0xf6d97f=[];for(let _0x3d80a5=_0x1713d6+0x1;_0x3d80a5<_0x2c819f['length'];_0x3d80a5++)0x0!=_0x2c819f[_0x3d80a5]['length']&&_0x2dc131(_0x2c819f[_0x1713d6],_0x2c819f[_0x3d80a5])&&_0xf6d97f['push'](_0x3d80a5);for(const _0x2d1aea of _0xf6d97f)_0x2c819f[_0x1713d6]=_0x2c819f[_0x1713d6]['concat'](_0x2c819f[_0x2d1aea]),_0x2c819f[_0x2d1aea]=[];}for(const _0x1fba39 of _0x2c819f)for(let _0x5c0b75=0x0;_0x5c0b75<_0x1fba39['length'];_0x5c0b75++){const _0x280e79=_0x1fba39[_0x5c0b75+0x1]||null;_0x1fba39[_0x5c0b75]['next']!==_0x280e79&&(_0x1fba39[_0x5c0b75]['next']=_0x280e79);}for(const _0x4a4890 of _0x2c819f)for(let _0xba44c8=0x0;_0xba44c8<_0x4a4890['length'];_0xba44c8++){const _0xc7e9bc=_0x4a4890[_0xba44c8-0x1]||null;_0x4a4890[_0xba44c8]['previous']!==_0xc7e9bc&&(_0x4a4890[_0xba44c8]['previous']=_0xc7e9bc);}function _0x2dc131(_0x5602f4,_0x17bc8b){if(_0x5602f4[0x0]['attributes']['groupId']!==_0x17bc8b[0x0]['attributes']['groupId']&&_0x5602f4[0x0]['author']!==_0x17bc8b[0x0]['author'])return!0x1;if(!function(_0x212b72,_0xd8e11c){if(!_0x212b72['hasComments']&&!_0xd8e11c['hasComments'])return!0x0;if(_0x212b72['hasComments']&&_0xd8e11c['hasComments'])return!0x1;if(_0x212b72['hasComments']&&_0xd8e11c['createdAt']<_0x212b72['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xd8e11c['hasComments']&&_0x212b72['createdAt']<_0xd8e11c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5602f4[0x0],_0x17bc8b[0x0]))return!0x1;const _0x45300e=Tt(_0x5602f4[0x0]['attributes'],'groupId'),_0x33f391=Tt(_0x17bc8b[0x0]['attributes'],'groupId');if(!_0x3d7bff(_0x45300e,_0x33f391))return!0x1;return!!_0x5602f4['every'](_0x514965=>_0x17bc8b['some'](_0x3e656a=>_0x514965['getFirstRange']()['isEqual'](_0x3e656a['getFirstRange']())))&&_0x17bc8b['every'](_0x39267d=>_0x5602f4['some'](_0x4b9658=>_0x39267d['getFirstRange']()['isEqual'](_0x4b9658['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x485689){const _0x244967=Array['from'](_0x485689),_0x3b6e7e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x55b2d1=_0x3b6e7e['filter'](_0x2c8240=>!_0x485689['has'](_0x2c8240)),_0x12855e=new Map(_0x244967['map'](_0x46db14=>[_0x46db14,this['_suggestionFactory']['getSuggestionCallback'](_0x46db14['type'],_0x46db14['subType'],'join')])),_0x5d0adb=new Map(_0x3b6e7e['map'](_0x1f6abc=>[_0x1f6abc,_0x1f6abc['getRanges']()]));for(let _0x113cb3=0x0;_0x113cb3<_0x244967['length'];_0x113cb3++){if(_0x1fe0bc(this,_0x244967[_0x113cb3],_0x244967,_0x113cb3+0x1))return!0x0;}for(let _0x57da1e=0x0;_0x57da1e<_0x244967['length'];_0x57da1e++){if(_0x1fe0bc(this,_0x244967[_0x57da1e],_0x55b2d1,0x0))return!0x0;}return!0x1;function _0x1fe0bc(_0x3a5d23,_0x3598b8,_0x4653a8,_0x581ba7){for(let _0x3c628f=_0x581ba7;_0x3c628f<_0x4653a8['length'];_0x3c628f++){const _0xd7cc6=_0x4653a8[_0x3c628f];if(_0xd7cc6['type']!==_0x3598b8['type']||_0xd7cc6['author']['id']!==_0x3598b8['author']['id']||_0xd7cc6['subType']!==_0x3598b8['subType'])continue;if(!Jt(_0x3598b8,_0xd7cc6))continue;if('attribute'==_0x3598b8['type']&&_0x3598b8['data']['oldValue']!=_0xd7cc6['data']['oldValue'])continue;if('attribute'==_0x3598b8['type']&&_0x3a5d23['_isBlockAttribute'](_0x3598b8['data']['key']))continue;if('formatBlock'==_0x3598b8['type']){const _0x1a618d=_0x3a5d23['editor']['model'],_0x34fe71=_0x3598b8['getContainedElement']();if(_0x34fe71&&(_0x1a618d['schema']['isObject'](_0x34fe71)||_0x1a618d['schema']['isLimit'](_0x34fe71)))continue;}const _0x23dd2e=_0x12855e['get'](_0x3598b8),_0x1e13c1=_0x5d0adb['get'](_0x3598b8),_0xeac05e=_0x5d0adb['get'](_0xd7cc6),_0x21af8e=_0x3598b8['commentThread']&&_0x3598b8['commentThread']['length'],_0x4583c1=_0xd7cc6['commentThread']&&_0xd7cc6['commentThread']['length'];if(!_0x21af8e&&_0x23dd2e(_0xeac05e,_0x1e13c1))return _0x3a5d23['_joinSuggestions'](_0xd7cc6,_0x3598b8),_0x5d0adb['delete'](_0x3598b8),!0x0;if(!_0x4583c1&&_0x23dd2e(_0x1e13c1,_0xeac05e))return _0x3a5d23['_joinSuggestions'](_0x3598b8,_0xd7cc6),_0x5d0adb['delete'](_0xd7cc6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x54f69f,_0x24e165){if(_0x54f69f['isMultiRange']){for(const _0x4d6ff6 of _0x24e165['getRanges']())_0x54f69f['addRange'](_0x4d6ff6);}else{const _0x5db347=_0x24e165['getFirstRange']()['end'];this['_setSuggestionRange'](_0x54f69f,this['_model']['createRange'](_0x54f69f['getFirstRange']()['start'],_0x5db347));}_0x24e165['removeMarkers']();}['_getMarkerAnnouncementText'](_0x124cc7,_0x3158ce,_0x162983){const _0x26c5b9=_0x124cc7['startsWith']('format')||_0x124cc7['startsWith']('attribute')?'FORMATTING':_0x124cc7['toUpperCase']();return o(this['editor']['locale'],_0x3158ce+'_'+_0x26c5b9+'_SUGGESTION_ANNOUNCEMENT',_0x162983);}['_initAriaMarkerChangeAnnouncements'](){const _0xbe67d=this['editor'];if(!_0xbe67d['ui'])return;const {ariaLiveAnnouncer:_0x3b47b4}=_0xbe67d['ui'];_0x5e2a98(this['_model'],({left:_0x1f4675,entered:_0x1ca39a})=>{for(const _0x37894d of _0x1f4675){const {group:_0xdae7fd,type:_0xda0b4e}=this['_splitMarkerName'](_0x37894d['name']);if('suggestion'===_0xdae7fd){_0x3b47b4['announce'](this['_getMarkerAnnouncementText'](_0xda0b4e,'LEAVE'));break;}}for(const _0x52856a of _0x1ca39a){const {group:_0x13efd9,type:_0x2e5e61}=this['_splitMarkerName'](_0x52856a['name']);if('suggestion'===_0x13efd9){_0x3b47b4['announce'](this['_getMarkerAnnouncementText'](_0x2e5e61,'ENTER',_0x34dd89(_0x1b5dc1)));break;}}});}['_processAttributeChanges'](_0x57bbf1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x43f9ea=this['editor'],_0x407a0c=_0x43f9ea['model']['document']['differ']['getChanges']();if(0x0==_0x407a0c['length'])return!0x1;const _0x1e4353=[],_0x4ed2d2=_0x407a0c['filter'](_0x3139b1=>'attribute'==_0x3139b1['type']),_0x38c0e5=_0x407a0c['filter'](_0x483bfd=>'insert'==_0x483bfd['type']&&'$text'!=_0x483bfd['name']),_0x4e3779=_0x407a0c['filter'](_0x5a7add=>'remove'==_0x5a7add['type']&&'$text'!=_0x5a7add['name']);for(const _0x512a76 of _0x4ed2d2)_0x1e4353['push']({'key':_0x512a76['attributeKey'],'newValue':_0x512a76['attributeNewValue'],'oldValue':_0x512a76['attributeOldValue'],'range':Pt(_0x512a76['range'],_0x43f9ea['model'])});for(const _0x4aa0cc of _0x38c0e5){const _0x112e6f=_0x4e3779['find'](_0x4ae360=>_0x4ae360['position']['isEqual'](_0x4aa0cc['position']));_0x112e6f&&_0x1e4353['push']({'key':m,'newValue':_0x4aa0cc['name'],'oldValue':_0x112e6f['name'],'range':_0x43f9ea['model']['createRangeOn'](_0x4aa0cc['position']['nodeAfter'])});}return 0x0!=_0x1e4353['length']&&this['_reduceExistingSuggestions'](_0x57bbf1,_0x1e4353);}['_processAttributeSuggestions'](_0x442eaa){let _0x39f9f1=!0x1;const _0x2ae924=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x375775=>_0x375775['data']['newRange']&&_0x375775['name']['startsWith']('suggestion:attribute:'));for(const _0x2cb0f2 of _0x2ae924){const {subType:_0x390c7d,id:_0x18a072}=this['_splitMarkerName'](_0x2cb0f2['name']),_0x157fbb=_0x390c7d['split']('|')[0x0];for(const _0x5ca716 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5ca716['id']!=_0x18a072&&'attribute'==_0x5ca716['type']&&_0x5ca716['data']&&_0x5ca716['data']['key']==_0x157fbb&&_0x5ca716['getFirstRange']()['isIntersecting'](_0x2cb0f2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5ca716,_0x2cb0f2['data']['newRange'],_0x442eaa),_0x39f9f1=!0x0);}return _0x39f9f1;}['_recordAttributeChanges'](_0x34979d){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x34979d();}['_isRegisteredAttribute'](_0x5b3eb9){const _0x48a080=this['_isBlockAttribute'](_0x5b3eb9),_0x51122e=this['_inlineAttributeKeys']['has'](_0x5b3eb9);return _0x48a080||_0x51122e;}['_reduceExistingSuggestions'](_0x443dcc,_0x24cdd8){if(0x0==_0x24cdd8['length'])return!0x1;let _0x3223bd=!0x1;for(const _0x2dcf3c of _0x24cdd8){const _0x2548b1=this['_findSuggestions'](_0x2dcf3c['range'],'attribute')['filter'](_0x3be5d5=>!_0x3be5d5['meta']['isNextTo'])['map'](_0x2ac9a8=>_0x2ac9a8['suggestion']),_0x32058a=_0x253184({'newValue':_0x2dcf3c['newValue']});_0x2548b1['filter'](_0x19bf09=>{const [_0xb4f27,_0x31030b]=_0x19bf09['subType']['split']('|');return _0xb4f27==_0x2dcf3c['key']&&_0x31030b!=_0x32058a;})['forEach'](_0x259ecd=>{this['_reduceSuggestionAttributeRange'](_0x259ecd,_0x2dcf3c['range'],_0x443dcc),_0x3223bd=!0x0;});}return _0x3223bd;}['_reduceSuggestionAttributeRange'](_0x76091f,_0x45de33,_0x41df8f){const _0x36f679=_0x76091f['getFirstRange']()['getDifference'](_0x45de33);0x0!==_0x36f679['length']?0x1!==_0x36f679['length']?this['_breakSuggestionMarker'](_0x76091f,_0x45de33['start'],_0x45de33['end']):this['_setSuggestionRange'](_0x76091f,_0x36f679[0x0]):_0x41df8f['removeMarker'](_0x76091f['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x2e36ee){this['_editor']=_0x2e36ee,this['_model']=_0x2e36ee['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x307b24,_0x14095b,_0x39bd10,_0x5f0e03,_0x2b54a6,_0x4a225e){return new u(this['_model'],{'type':_0x307b24,'subType':_0x14095b,'id':_0x39bd10,'author':_0x5f0e03,'creator':_0x5f0e03,'attributes':_0x2b54a6,'onAttributesChange':_0x4a225e,'onAccept':(..._0x551c4b)=>this['getSuggestionCallback'](_0x307b24,_0x14095b,'accept')(..._0x551c4b),'onDiscard':(..._0x3e0a9b)=>this['getSuggestionCallback'](_0x307b24,_0x14095b,'discard')(..._0x3e0a9b)});}['registerCustomCallback'](_0x1816a4,_0x1f16c8,_0x4a71e7,_0x56818a){const _0x40904d=_0x1816a4+':'+_0x1f16c8+':'+_0x4a71e7;this['_customCallbacks']['set'](_0x40904d,_0x56818a);}['getSuggestionCallback'](_0x51001f,_0x380856,_0x44609b){const _0x143bf5=_0x51001f+':'+_0x380856+':'+_0x44609b;return this['_customCallbacks']['get'](_0x143bf5)||this['_defaultCallbacks']['get'](_0x51001f+':'+_0x44609b);}['_registerDefaultCallbacks'](){const _0x62b0bf=()=>!0x1,_0x422de9=_0x1bbc4f=>{_0x1bbc4f['sort']((_0x78f578,_0x5795da)=>_0x78f578['start']['isBefore'](_0x5795da['start'])?0x1:-0x1),this['_model']['change'](_0x1b8a43=>{for(const _0x6cb796 of _0x1bbc4f){let _0x39c488;_0x39c488=_0x6cb796['end']['isAtEnd']&&_0x6cb796['end']['parent']==_0x6cb796['start']['nodeAfter']?_0x1b8a43['createSelection'](_0x6cb796['start']['nodeAfter'],'on'):_0x1b8a43['createSelection'](_0x6cb796),this['_model']['deleteContent'](_0x39c488,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4bf84b=(_0x4c818a,_0x3cf673)=>{_0x3cf673&&this['_model']['change'](_0x59a120=>{const {commandName:_0x1d064b,commandParams:_0x3ffad4=[]}=_0x3cf673,_0x45aeda=_0x4c818a['map'](_0x3a9223=>(Vt(_0x3a9223)&&(_0x3a9223=this['_model']['createRange'](_0x3a9223['end'])),_0x3a9223))['filter'](_0x67a2da=>'$graveyard'!==_0x67a2da['root']['rootName']);if(_0x45aeda['length']<0x1)return;const _0x5ad8f0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1941a6=>_0x36e74e['fromRange'](_0x1941a6));_0x59a120['setSelection'](_0x45aeda);for(const _0x1f7cbd of this['_editor']['commands']['commands']())_0x1f7cbd['refresh']();_0x3ffad4['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1d064b,..._0x3ffad4);const _0x2a4841=_0x5ad8f0['filter'](_0x118cd5=>'$graveyard'!=_0x118cd5['root']['rootName']);_0x2a4841['length']>0x0&&_0x59a120['setSelection'](_0x2a4841);for(const _0x5c2e36 of _0x5ad8f0)_0x5c2e36['detach']();});},_0x15264b=(_0x136cfc,_0x408edf)=>0x1==_0x136cfc['length']&&0x1==_0x408edf['length']&&_0x136cfc[0x0]['end']['isEqual'](_0x408edf[0x0]['start']),_0x4e083f=(_0x499ffb,_0x1e9814,_0x4b68f4,_0x1a2522)=>Ht(_0x499ffb,_0x1e9814,_0x4b68f4,_0x1a2522,this['_model'])?[_0x499ffb,_0x1e9814]:Ht(_0x1e9814,_0x499ffb,_0x1a2522,_0x4b68f4,this['_model'])?[_0x1e9814,_0x499ffb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x62b0bf),this['_defaultCallbacks']['set']('insertion:discard',_0x422de9),this['_defaultCallbacks']['set']('insertion:join',_0x15264b),this['_defaultCallbacks']['set']('insertion:chain',_0x4e083f),this['_defaultCallbacks']['set']('deletion:accept',_0x422de9),this['_defaultCallbacks']['set']('deletion:discard',_0x62b0bf),this['_defaultCallbacks']['set']('deletion:join',_0x15264b),this['_defaultCallbacks']['set']('deletion:chain',_0x4e083f),this['_defaultCallbacks']['set']('formatInline:accept',_0x4bf84b),this['_defaultCallbacks']['set']('formatInline:discard',_0x62b0bf),this['_defaultCallbacks']['set']('formatInline:join',_0x15264b),this['_defaultCallbacks']['set']('formatInline:chain',_0x62b0bf),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4bf84b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x62b0bf),this['_defaultCallbacks']['set']('formatBlock:join',_0x15264b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x62b0bf),this['_defaultCallbacks']['set']('attribute:accept',_0x62b0bf),this['_defaultCallbacks']['set']('attribute:discard',(_0x24092c,_0x31a7b2)=>{if(!_0x31a7b2)return;const _0x309841=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x17bbd5=>{if(_0x31a7b2['key']==m)for(const _0x27e81a of _0x24092c){const _0x350918=_0x27e81a['start']['nodeAfter'],_0x3004bc=_0x31a7b2['oldValue'];_0x17bbd5['rename'](_0x350918,_0x3004bc);}else{if(_0x309841['_isBlockAttribute'](_0x31a7b2['key'])){for(const _0x4d6da3 of _0x24092c)void 0x0!==_0x31a7b2['oldValue']?_0x17bbd5['setAttribute'](_0x31a7b2['key'],_0x31a7b2['oldValue'],_0x4d6da3['start']['nodeAfter']):_0x17bbd5['removeAttribute'](_0x31a7b2['key'],_0x4d6da3['start']['nodeAfter']);}else{for(const _0x25287 of _0x24092c)_0x31a7b2['oldValue']?_0x17bbd5['setAttribute'](_0x31a7b2['key'],_0x31a7b2['oldValue'],_0x25287):_0x17bbd5['removeAttribute'](_0x31a7b2['key'],_0x25287);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x15264b);}}function Ot(_0x1b2283,_0x277361,_0x1e126f){for(const _0x11e580 of _0x277361['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x11e580['root']==_0x11e580)return!0x1;if(!_0x1e126f['containsItem'](_0x11e580))return!0x1;if(_0x1b2283['isObject'](_0x11e580)||_0x1b2283['isLimit'](_0x11e580))return!0x0;}return!0x1;}function Vt(_0x48ce7d){return _0x48ce7d['end']['parent']==_0x48ce7d['start']['nodeAfter']&&_0x48ce7d['end']['isAtStart'];}function Ut(_0x5e3d1d,_0x480fab,_0x53b72f,_0x3f0de1){const _0x2b9ebc=_0x4dd82c=>!_0x4dd82c['item']['is']('$textProxy')&&!_0x3f0de1['isObject'](_0x4dd82c['item']),_0x215213=_0x5e3d1d['start']['getLastMatchingPosition'](_0x2b9ebc),_0x4aa536=_0x5e3d1d['end']['getLastMatchingPosition'](_0x2b9ebc,{'direction':'backward'});return(!_0x5e3d1d['start']['isEqual'](_0x215213)||!_0x5e3d1d['end']['isEqual'](_0x4aa536))&&(_0x215213['isBefore'](_0x4aa536)?_0x53b72f['updateMarker'](_0x480fab,{'range':_0x53b72f['createRange'](_0x215213,_0x4aa536)}):_0x53b72f['removeMarker'](_0x480fab),!0x0);}function Gt(_0x303c6b){return _0x253184(_0x303c6b);}function Ft(_0x3b197e){const _0x44209c=_0x3b197e['start']['nodeAfter'];return _0x44209c&&_0x44209c['is']('element');}function Pt(_0x5b90b8,_0x4881){return null==_0x5b90b8['end']['nodeBefore']&&_0x5b90b8['end']['parent']==_0x5b90b8['start']['nodeAfter']?Lt(_0x5b90b8['start']['nodeAfter'],_0x4881):_0x5b90b8;}function Lt(_0x311160,_0x952d02){const _0x561055=_0x952d02['schema']['isObject'](_0x311160)||_0x952d02['schema']['isSelectable'](_0x311160);return _0x952d02['createRange'](_0x952d02['createPositionAt'](_0x311160,'before'),_0x561055?_0x952d02['createPositionAfter'](_0x311160):_0x952d02['createPositionAt'](_0x311160,'end'));}function Ht(_0x38c3d5,_0x2c30c4,_0x4af7d0,_0x57f2d7,_0x3fbe3c){if(_0x38c3d5['next'])return!0x1;if(!Jt(_0x38c3d5,_0x2c30c4))return!0x1;if(_0x4af7d0['end']['isEqual'](_0x57f2d7['start']))return!0x0;if(_0x38c3d5['type']!=_0x2c30c4['type'])return!0x1;if(!_0x4af7d0['end']['isTouching'](_0x57f2d7['start']))return!0x1;const _0x399b68=_0x3fbe3c['createRange'](_0x4af7d0['end'],_0x57f2d7['start'])['getWalker']();for(const _0x4afde0 of _0x399b68)if(['elementStart','elementEnd']['includes'](_0x4afde0['type'])&&_0x3fbe3c['schema']['isLimit'](_0x4afde0['item']))return!0x1;return!0x0;}function Jt(_0x8e3581,_0x90e34a){if(!_0x8e3581['_isDataLoaded']||!_0x90e34a['_isDataLoaded'])return!0x1;const _0x52808c=new Set(Object['keys'](_0x8e3581['attributes'])),_0x2d613d=new Set(Object['keys'](_0x90e34a['attributes']));if(_0x52808c['delete']('groupId'),_0x2d613d['delete']('groupId'),0x0==_0x52808c['size']&&0x0==_0x2d613d['size'])return!0x0;if(_0x52808c['size']!=_0x2d613d['size'])return!0x1;const _0x7b48db={..._0x8e3581['attributes']},_0x3c9ddf={..._0x90e34a['attributes']};return delete _0x7b48db['groupId'],delete _0x3c9ddf['groupId'],JSON['stringify'](_0x7b48db)==JSON['stringify'](_0x3c9ddf);}function qt(_0x18962a,_0x187caf){const _0x3d2daa=zt(_0x18962a['attributes']),_0x216dcb=zt(_0x187caf);if(!_0x18962a['_isDataLoaded'])return!0x1;for(const _0x70f6f of Object['keys'](_0x216dcb))if(!_0x3d7bff(_0x3d2daa[_0x70f6f],_0x216dcb[_0x70f6f]))return!0x1;return!0x0;}function zt(_0x4a7565){const _0x1cf6fc=Object['assign']({},_0x4a7565);return delete _0x1cf6fc['skipNestingCheck'],delete _0x1cf6fc['tablePasteChainId'],_0x1cf6fc;}class ae extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x270599(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x472cdb,_0xba6ede,_0x5ce49a,_0x49e251){super(),this['model']=_0xba6ede,this['view']=_0x5ce49a,this['commentThreadController']=_0x49e251,this['_editor']=_0x472cdb,this['_acceptCommand']=_0x472cdb['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x472cdb['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4dfbba,_0x403b5e)=>_0x4dfbba||_0x403b5e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x583e42=>_0x583e42&&this['_editor']['model']['canEditAt'](_0xba6ede['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x23ba9f=>_0x23ba9f&&this['_editor']['model']['canEditAt'](_0xba6ede['getRanges']())),this['_pendingAction']=null,_0x5ce49a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5ce49a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5ce49a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5ce49a,'change:isDirty',()=>{_0x5ce49a['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 _0x53758e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x53758e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2931ee{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x17f32f,_0x9a5e20,_0x451dbc,_0x497282){super(_0x17f32f),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x139a33(_0x17f32f,o(_0x17f32f,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x9a5e20['authoredAt']),this['bind']('authoredAt')['to'](_0x9a5e20),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x9a5e20,'authoredAt',this,'descriptionParts',(_0x23569c,_0x3859b3,_0x4574df)=>{const _0x38d5d6=_0x4574df['map'](_0x4c8a7d=>ls(_0x4c8a7d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x23569c-0x1,_0x9a5e20['author']['name'],_0x3859b3?_0x497282['formatDateTime'](_0x3859b3):'',new DOMParser()['parseFromString'](_0x38d5d6,'text/html')['body']['textContent']]);}),this['focusables']=new _0x367518(),this['focusTracker']=new _0x32f18f(),this['keystrokes']=new _0x494532(),this['focusCycler']=new _0x1a96ba({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2a5bfb=>_0x2a5bfb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x9a5e20,this['_localUser']=_0x451dbc,this['_config']=_0x497282,_0x497282['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x269137(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x619ee2}=this['_config'];this['commentsListView']=new _0x619ee2(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',_0x302935=>_0x302935+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x527499,_0x5a31ef)=>_0x527499||!!_0x5a31ef);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4f9d50}=this['_config'],_0x2be56b=new _0x4f9d50(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x295e7e=_0x2be56b['commentInputView'];return _0x2be56b['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x295e7e,'value',(_0x26b17a,_0xb9a41e,_0x57c1fd)=>!!_0x57c1fd||_0x26b17a&&!_0xb9a41e),_0x295e7e['on']('submit',(_0x373237,_0x1f185a)=>{this['fire']('addComment',_0x1f185a),_0x295e7e['editor']['setData']('');}),_0x295e7e['on']('cancel',()=>this['focus']()),_0x295e7e['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2be56b;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x477cc1,_0x407f0b,_0x5f3fd5,_0x2de89a){super(_0x477cc1,_0x407f0b,_0x5f3fd5,_0x2de89a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5c8037=>_0x5c8037&&_0x5c8037[0x0]?_0x5c8037[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xd5ffc,_0xb155fe)=>{let _0x38b2fc='';for(const _0x2add05 of _0xd5ffc)_0x38b2fc+='<p>'+ls(_0x2add05['content'],_0x2add05['color'])+'</p>';return _0xb155fe?_0x38b2fc:_0x46a6bb(_0x38b2fc,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x477cc1,'Accept\x20suggestion'),_0x2ea63f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x477cc1,'Discard\x20suggestion'),_0x2ea63f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4a3f76(_0x477cc1,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2bdd97=this['bindTemplate'],_0x8b2794=[{'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':_0x2bdd97['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2bdd97['to']('authoredAt',_0x2e58b6=>this['_config']['formatDateTime'](_0x2e58b6))}]}]},{'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']&&_0x8b2794['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x4c7a9b={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2bdd97['if']('isActive','ck-suggestion-wrapper--active'),_0x2bdd97['to']('type',_0x16b6fd=>'ck-suggestion-'+_0x16b6fd),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2bdd97['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x8b2794},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x4c7a9b['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)),_0x4c7a9b;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x323689,_0x4af646,_0x539315)=>{this['_descriptionElement']['innerHTML']=_0x539315;});}['_createButton'](_0x1c683f,_0x218fa1,_0x433700,_0x26100e,_0x542564){const _0x15ce7f=new _0x15d6b1(this['locale']);return _0x15ce7f['set']({'label':_0x1c683f,'icon':_0x218fa1,'tooltip':!0x0,'tooltipPosition':_0x542564}),_0x15ce7f['extendTemplate']({'attributes':{'class':_0x433700}}),_0x15ce7f['on']('execute',()=>{this['fire'](_0x26100e,this['_model']['id']);}),_0x15ce7f;}['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;}}var ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\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 _0x41808b{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x34d895,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x30ed8a){super(_0x30ed8a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1643d9=this['editor']['config'];_0x1643d9['define']('trackChanges.SuggestionThreadView',re),_0x1643d9['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1643d9['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x1ddb80,_0x4eb984){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x22ef37,_0x137ad5]of this['_handleControllerBuffer']){const _0x2ffef9=this['_suggestionToController']['has'](_0x22ef37);_0x2ffef9||_0x137ad5?_0x2ffef9&&_0x137ad5&&this['_destroyController'](_0x22ef37):this['_initializeController'](_0x22ef37);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1ddb80,_0x4eb984);}['init'](){const _0xa7e56f=this['editor'],_0x426081=_0xa7e56f['plugins']['get']('TrackChangesEditing'),_0x1dfd61=_0xa7e56f['plugins']['get']('Annotations'),_0x5428ae=_0xa7e56f['plugins']['get']('EditorAnnotations'),_0x307f9b=_0xa7e56f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5428ae['addSourceCollector'](()=>{const _0x28536d=[];for(const [_0x18bf99,_0x3998e6]of Array['from'](this['_suggestionToController'])){const _0xac2dab=_0x18bf99['getAllAdjacentSuggestions'](),_0x3963e5=[];for(const _0x45f9e3 of _0xac2dab){if(!_0x45f9e3['isInContent'])continue;if(_0x45f9e3['isMultiRange']){_0x3963e5['push'](..._0x45f9e3['getRanges']());continue;}const _0xcc73d3=_0x45f9e3['getFirstRange']();if(_0x3963e5['length']>0x0){const _0x1b4a7e=_0x3963e5[0x0]['getJoined'](_0xcc73d3);if(_0x1b4a7e){_0x3963e5[0x0]=_0x1b4a7e;continue;}}_0x3963e5['push'](_0xcc73d3);}_0x28536d['push']([_0x3998e6['view'],_0x3963e5]);}return _0x28536d;}),this['listenTo'](_0x426081,'suggestionLoaded',(_0x1ce1b6,_0x4be1bb)=>{this['listenTo'](_0x4be1bb,'change:previous',(_0x5b533a,_0x2eaa80,_0x2d2690,_0x10d59c)=>{_0x4be1bb['isInContent']&&(null==_0x2d2690?(this['_updateController'](_0x10d59c['head']),this['_handleSuggestionControllerDelayed'](_0x4be1bb,!0x1)):(this['_updateController'](_0x2d2690['head']),null==_0x10d59c&&this['_handleSuggestionControllerDelayed'](_0x4be1bb,!0x0)));}),null!==_0x4be1bb['previous']?this['_updateController'](_0x4be1bb['head']):this['_handleSuggestionControllerDelayed'](_0x4be1bb,!0x1);}),this['listenTo'](_0x426081,'suggestionUnloaded',(_0x4e53fa,_0x4877b9,_0x3811e3)=>{this['stopListening'](_0x4877b9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4877b9),this['_suggestionToController']['has'](_0x4877b9)&&this['_destroyController'](_0x4877b9),_0x3811e3&&this['_updateController'](_0x3811e3['head']);}),this['listenTo'](_0x426081,'suggestionChanged',(_0x30af0a,_0x326b02)=>{this['_updateController'](_0x326b02);}),this['listenTo'](_0x1dfd61,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x307f9b,'addComment',(_0x563809,{threadId:_0xb76614,isFromAdapter:_0xcef9d4})=>{if(_0xcef9d4||!_0x426081['hasSuggestion'](_0xb76614))return;const _0x42e2c0=_0x426081['getSuggestion'](_0xb76614);this['_suggestionToController']['get'](_0x42e2c0)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1a147e=this['editor']['plugins']['get']('Annotations'),_0x31648d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9b04ea=Array['from'](_0x1a147e['activeAnnotations'],_0x1f750c=>_0x1f750c['innerView'])['filter'](_0x726a96=>this['_viewToController']['has'](_0x726a96)),_0x1f61d7=[];for(const _0x4e437c of _0x9b04ea){const _0x3fe8ca=this['_viewToController']['get'](_0x4e437c)['model']['getAllAdjacentSuggestions']();_0x1f61d7['push'](..._0x3fe8ca['reduce']((_0x3255d8,_0x5b79c4)=>[..._0x3255d8,..._0x5b79c4['getMarkerNames']()],[]));}_0x31648d['activeMarkers']=_0x1f61d7;}['_addUIComponentsToFactory'](){const _0x282231=this['editor'],_0x5ae3e3=_0x282231['locale'],_0x36a748=o(_0x5ae3e3,'Track\x20changes'),_0x3f617b=new Wt([{'type':'switchbutton','model':new _0x53b458({'withText':!0x0,'isToggleable':!0x0,'label':_0x36a748,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x53b458({'withText':!0x0,'label':o(_0x5ae3e3,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53b458({'withText':!0x0,'label':o(_0x5ae3e3,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53b458({'withText':!0x0,'label':o(_0x5ae3e3,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x53b458({'withText':!0x0,'label':o(_0x5ae3e3,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x14e78c of _0x3f617b)if(he(_0x14e78c)){const _0x4a1138=_0x282231['commands']['get'](_0x14e78c['model']['commandName']);_0x14e78c['model']['bind']('isOn','isEnabled')['to'](_0x4a1138,'value','isEnabled');}_0x282231['ui']['componentFactory']['add']('trackChanges',_0x45ae39=>this['_createToolbarButton'](_0x45ae39,_0x3f617b,_0x36a748)),_0x282231['ui']['componentFactory']['add']('menuBar:trackChanges',_0x52fc2e=>this['_createMenuBarMenu'](_0x52fc2e,_0x3f617b,_0x36a748));}['_createToolbarButton'](_0x38d782,_0x1224b8,_0x26c1c0){const _0x2b27b4=Qt(_0x38d782,_0x423eb5),_0x58abd3=this['editor']['commands']['get']('trackChanges');_0x2b27b4['buttonView']['set']({'tooltip':_0x26c1c0,'label':_0x26c1c0,'icon':ce}),_0x2b27b4['buttonView']['bind']('isOn')['to'](_0x58abd3,'value'),_0x2b27b4['buttonView']['on']('execute',()=>{_0x58abd3['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2b27b4,_0x1224b8,{'role':'menu'});const _0x3d14e0=[];for(const _0x4bd5cd of _0x1224b8)he(_0x4bd5cd)&&_0x3d14e0['push'](this['editor']['commands']['get'](_0x4bd5cd['model']['commandName']));const _0x59434f=_0x2b27b4['buttonView'];return _0x59434f['actionView']['unbind']('isEnabled'),_0x59434f['arrowView']['unbind']('isEnabled'),_0x59434f['actionView']['bind']('isEnabled')['to'](_0x58abd3,'isEnabled'),_0x59434f['arrowView']['bind']('isEnabled')['toMany'](_0x3d14e0,'isEnabled',(..._0x4faf09)=>_0x4faf09['some'](_0x48277d=>_0x48277d)),_0x2b27b4['on']('execute',_0x25a694=>{this['editor']['execute'](_0x25a694['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2b27b4;}['_createMenuBarMenu'](_0x4be8ac,_0x3aec78,_0xa9a2bb){const _0x43944d=new Yt(_0x4be8ac),_0x47ad29=this['editor']['commands']['get']('trackChanges');_0x43944d['buttonView']['set']({'label':_0xa9a2bb,'icon':ce});const _0x41cf24=new Zt(_0x4be8ac);for(const _0x9a3966 of _0x3aec78){if('separator'==_0x9a3966['type']){_0x41cf24['items']['add'](new Xt(_0x4be8ac));continue;}const _0x364348=new te(_0x4be8ac,_0x43944d),_0x5410e2=new _0x42c151(_0x4be8ac),_0x45733d=_0x9a3966['model'];_0x5410e2['bind'](...Object['keys'](_0x45733d))['to'](_0x45733d),_0x5410e2['delegate']('execute')['to'](_0x43944d),_0x5410e2['on']('execute',()=>{this['editor']['execute'](_0x45733d['commandName']),this['editor']['editing']['view']['focus']();}),_0x364348['children']['add'](_0x5410e2),_0x41cf24['items']['add'](_0x364348);}return _0x43944d['bind']('isEnabled')['to'](_0x47ad29,'isEnabled'),_0x43944d['panelView']['children']['add'](_0x41cf24),_0x43944d;}['_initializeController'](_0x4753ac){const _0x46efd6=this['editor'],_0x1e3b3d=_0x46efd6['config'],_0x37dfdd=_0x46efd6['plugins']['get']('Annotations'),_0x2a5d2d=_0x46efd6['plugins']['get']('CommentsRepository'),_0x4bac30=_0x46efd6['plugins']['get']('EditorAnnotations'),_0x52242d=_0x46efd6['plugins']['get'](_0x34d895)['me'],_0x2a9dd4=_0x1e3b3d['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x5bbf92,CommentThreadInputView:_0x5ca159}=_0x46efd6['plugins']['get']('CommentsUI');let _0xd87cc1,_0xe92c9f;this['_annotationViews']['has'](_0x4753ac['id'])?(_0xe92c9f=this['_annotationViews']['get'](_0x4753ac['id']),_0xd87cc1=_0xe92c9f['mainView']):(_0xd87cc1=new _0x2a9dd4(_0x46efd6['locale'],_0x4753ac,_0x52242d,{'disableComments':this['_disableComments'],'editorConfig':_0x1e3b3d['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x1e3b3d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1e3b3d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1e3b3d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x598049(_0x1e3b3d['get']('locale')),'CommentView':_0x1e3b3d['get']('comments')['CommentView'],'CommentsListView':_0x5bbf92,'CommentThreadInputView':_0x5ca159}),_0xd87cc1['acceptButton']['on']('execute',()=>{_0x46efd6['editing']['view']['focus']();}),_0xd87cc1['discardButton']['on']('execute',()=>{_0x46efd6['editing']['view']['focus']();}),_0xe92c9f=_0x37dfdd['createAnnotationView'](this['editor']['locale'],_0xd87cc1),_0xe92c9f['bind']('isDirty')['to'](_0xd87cc1,'isDirty'),_0xe92c9f['bind']('length')['to'](_0xd87cc1),_0xe92c9f['bind']('type')['to'](_0xd87cc1,'type',_0x2527bc=>'suggestion-'+_0x2527bc),this['listenTo'](_0xd87cc1,'escape',()=>{_0x46efd6['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x4753ac['id'],_0xe92c9f));const _0x30f734=_0x2a5d2d['createCommentThreadController'](_0x4753ac['commentThread'],_0xd87cc1),_0x2cf9a5=new ae(_0x46efd6,_0x4753ac,_0xd87cc1,_0x30f734),_0x563a84=_0x4753ac['getAllAdjacentSuggestions']()['filter'](_0x3e3b7f=>_0x3e3b7f['isInContent']);_0xd87cc1['descriptionParts']=_0x46efd6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x563a84),this['_suggestionToController']['set'](_0x4753ac,_0x2cf9a5),this['_viewToController']['set'](_0xd87cc1,_0x2cf9a5);const _0x30ec1=_0x37dfdd['createAnnotation']({'view':_0xe92c9f,'target':()=>{const _0x47ffdc=[],_0x395bc6=_0x4753ac['getAllAdjacentSuggestions']()['filter'](_0x4dfd61=>_0x4dfd61['isInContent']);for(const _0x419a93 of _0x395bc6)_0x47ffdc['push'](..._0x419a93['getMarkers']());return _0x48b9ad(_0x46efd6['editing'],_0x47ffdc);},'type':()=>'suggestion-'+_0x2cf9a5['view']['type']});_0x2a5d2d['_bindAnnotationToEditors'](_0xd87cc1,_0x30ec1),_0x37dfdd['add'](_0x30ec1),_0x4bac30['registerAnnotation'](_0x30ec1);}['_destroyController'](_0x2717ee){const _0x144acd=this['editor']['plugins']['get']('CommentsRepository'),_0x1812d6=this['editor']['plugins']['get']('Annotations'),_0x5eda17=this['_suggestionToController']['get'](_0x2717ee),_0x510282=_0x5eda17['view'],_0x4bd3a4=_0x1812d6['getByInnerView'](_0x510282);_0x144acd['_unbindEditors'](_0x510282),_0x4bd3a4&&_0x1812d6['remove'](_0x4bd3a4),this['_suggestionToController']['delete'](_0x2717ee),this['_viewToController']['delete'](_0x510282),_0x5eda17['destroy']();}['_updateController'](_0x3d3660){if(!_0x3d3660['isInContent']||!this['_suggestionToController']['has'](_0x3d3660))return;const _0xfc1a2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b38c=this['_suggestionToController']['get'](_0x3d3660),_0x17e997=_0x3d3660['getAllAdjacentSuggestions']();_0x41b38c['view']['descriptionParts']=_0xfc1a2['descriptionFactory']['getDescriptions'](_0x17e997);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x1b5dc1,(_0x2d02ad,_0x507ff5)=>{const _0x461e23=this['editor']['plugins']['get'](k),_0x35debe=this['editor']['plugins']['get'](p);if(!_0x35debe['activeMarkers']['length'])return;const {id:_0x255ca1}=_0x35debe['_splitMarkerName'](_0x35debe['activeMarkers'][0x0]),_0x353784=_0x461e23['getSuggestion'](_0x255ca1);_0x353784&&(this['_suggestionToController']['get'](_0x353784)['view']['focus'](),_0x507ff5());});}['destroy'](){for(const _0x1b8e31 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1b8e31);for(const _0x100e94 of this['_annotationViews']['values']())_0x100e94['mainView']['destroy']();super['destroy']();}}function he(_0x56cdf6){return'model'in _0x56cdf6;}class k extends _0x41808b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x7f8cb){this['editor']['plugins']['get'](p)['adapter']=_0x7f8cb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3c34a6){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3c34a6);}['getSuggestions']({skipNotAttached:_0x2667b0=!0x1,toJSON:_0x7d7def=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2667b0,'toJSON':_0x7d7def});}['getSuggestion'](_0x223384){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x223384);}}const T=['Pagination'];class P extends _0x41808b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1d2ceb=this['editor'];if(_0x1d2ceb['config']['define']('trackChangesData.editorCreator',_0x1552bb=>{const _0x4bb398=_0x1d2ceb['model']['document']['getRootNames']()['reduce']((_0x2089de,_0xb65ea8)=>(_0x2089de[_0xb65ea8]='',_0x2089de),{});return _0x1d2ceb['constructor']['create'](_0x4bb398,_0x1552bb);}),'function'!=typeof _0x1d2ceb['config']['get']('trackChangesData')['editorCreator'])throw new _0x29601a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a3959){return N(this['editor'],!0x0,_0x3a3959);}['getDataWithDiscardedSuggestions'](_0x15498b){return N(this['editor'],!0x1,_0x15498b);}}class D extends _0x41808b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1aa1fd){super(_0x1aa1fd),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(_0x2c4e94){return void 0x0!==_0x2c4e94['getRootsAttributes'];}async function N(_0x970a71,_0x4f0a04,_0x267eaa){const _0x4fa229=_0x2da75a(_0x970a71,T);_0x4fa229['plugins']['push'](p,D),_0x4fa229['rootsAttributes']=v(_0x970a71)?_0x970a71['getRootsAttributes']():void 0x0;const _0x11ff53=document['createDocumentFragment'](),_0x1b46bf=_0x970a71['config']['get']('trackChangesData')['editorCreator'],_0x50c20e=await _0x1b46bf(_0x4fa229,()=>function(_0x379b68){const _0x2f6c62=document['createElement']('div');return _0x379b68['appendChild'](_0x2f6c62),_0x2f6c62;}(_0x11ff53));!function(_0x1a11d6,_0x39b4e0){const _0x54581e=_0x1a11d6['model']['document']['getRootNames']()['reduce']((_0x22eb0b,_0x591641)=>(_0x22eb0b[_0x591641]=_0x1a11d6['data']['get']({'rootName':_0x591641}),_0x22eb0b),{}),_0x3d59c0=_0x1a11d6['plugins']['get']('Users')['users']['map'](_0x25351e=>({'id':_0x25351e['id'],'name':_0x25351e['name']})),_0x7d086e=_0x1a11d6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34b4f6=_0x1a11d6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x56579a=_0x39b4e0['plugins']['get']('Users'),_0x3bb764=_0x39b4e0['plugins']['get']('TrackChangesEditing'),_0x2e5fe1=_0x39b4e0['plugins']['get']('CommentsRepository');for(const _0x20b7e8 of _0x3d59c0)_0x56579a['getUser'](_0x20b7e8['id'])||_0x56579a['addUser'](_0x20b7e8);_0x56579a['me']||_0x56579a['useAnonymousUser']();for(const _0x9d4ac4 of _0x34b4f6)_0x2e5fe1['addCommentThread'](_0x9d4ac4);for(const _0x1cc090 of _0x7d086e)_0x3bb764['addSuggestionData'](_0x1cc090);_0x39b4e0['data']['set'](_0x54581e);}(_0x970a71,_0x50c20e),_0x50c20e['execute'](_0x4f0a04?'acceptAllSuggestions':'discardAllSuggestions');const _0x2d72f0=v(_0x50c20e)?_0x50c20e['getFullData'](_0x267eaa):_0x50c20e['data']['get'](_0x267eaa);return await _0x50c20e['destroy'](),_0x2d72f0;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|