@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250318.0 → 0.0.0-nightly-20250319.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +26 -26
- 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
|
|
24
|
-
_0x1fd685(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x688cb3,_0x5e3ed7){super(),this['id']=_0x5e3ed7['id'],this['type']=_0x5e3ed7['type'],this['subType']=_0x5e3ed7['subType']||null,this['author']=_0x5e3ed7['author'],this['creator']=_0x5e3ed7['creator']||_0x5e3ed7['author'],this['isExternal']=Boolean(_0x5e3ed7['attributes']&&_0x5e3ed7['attributes']['@external']),this['data']=null,this['_model']=_0x688cb3,this['_onAccept']=_0x5e3ed7['onAccept'],this['_onDiscard']=_0x5e3ed7['onDiscard'],this['_onAttributesChange']=_0x5e3ed7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5e3ed7['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 _0xf135fe=this;for(;_0xf135fe['previous'];)_0xf135fe=_0xf135fe['previous'];return _0xf135fe;}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'](_0x3d50b5){this['_markerNames']['add'](_0x3d50b5);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x58b0e6=>this['_model']['markers']['get'](_0x58b0e6))['filter'](_0x3a5521=>_0x3a5521);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x43b3fd=>{for(const _0xe7a5e of this['getMarkers']())_0x43b3fd['removeMarker'](_0xe7a5e);}),this['_markerNames']['clear']();}['removeMarker'](_0x32cb90){this['_model']['change'](_0x489637=>{_0x489637['removeMarker'](_0x32cb90);}),this['_markerNames']['delete'](_0x32cb90);}['addRange'](_0x307301){const _0x2e205d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2e205d),this['_model']['change'](_0x102bbd=>{_0x102bbd['addMarker'](_0x2e205d,{'range':_0x307301,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4b9750){for(const _0x4cac00 of this['getRanges']())if(_0x4cac00['isIntersecting'](_0x4b9750))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x98cfb1=>_0x98cfb1['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4f83eb,_0x32a7df)=>[..._0x4f83eb,..._0x32a7df['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x9fab2d=this['getRanges']();if(0x1!=_0x9fab2d['length'])return null;const _0x5dda90=_0x9fab2d[0x0],_0x3f1536=_0x5dda90['start']['nodeAfter'],_0x376f57=_0x5dda90['end']['nodeBefore'];return _0x3f1536 instanceof _0x8fef0f?_0x3f1536!=_0x376f57?null:_0x3f1536: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 _0x5e8a2b=[];let _0x6a3381=this['head'];for(;_0x6a3381;)_0x5e8a2b['push'](_0x6a3381),_0x6a3381=_0x6a3381['next'];return _0x5e8a2b;}['setAttribute'](_0x1f2d81,_0x1412bd){const _0x4a65b4=_0x1dcf71(this['attributes']);_0x5582aa(_0x4a65b4,_0x1f2d81,_0x1412bd),_0x1192d6(_0x4a65b4,this['attributes'])||(this['attributes']=_0x4a65b4,this['_onAttributesChange'](_0x4a65b4));}['removeAttribute'](_0x21fe1c){const _0x2913d8=_0x1dcf71(this['attributes']);_0x643110(_0x2913d8,_0x21fe1c),_0x1192d6(_0x2913d8,this['attributes'])||(this['attributes']=_0x2913d8,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 _0x4597bc()['substr'](0x1,0x5);}}function c(_0x2cfa7f,_0x4671ae,_0x534b7d){const _0x270e0b=_0x2cfa7f['t'],t=_0x2cfa7f['t'];switch(_0x4671ae){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x534b7d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x534b7d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x534b7d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x534b7d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x534b7d);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',_0x534b7d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x534b7d);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x534b7d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x534b7d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x534b7d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x534b7d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x534b7d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x534b7d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x534b7d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x534b7d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x534b7d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x534b7d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x534b7d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x534b7d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x534b7d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x534b7d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x534b7d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x534b7d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x534b7d);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'},_0x534b7d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x534b7d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x534b7d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x534b7d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x534b7d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x534b7d);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'},_0x534b7d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x534b7d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x534b7d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x534b7d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x534b7d);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'},_0x534b7d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x534b7d);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'},_0x534b7d);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'},_0x534b7d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x534b7d);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'},_0x534b7d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x534b7d);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'},_0x534b7d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x534b7d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x534b7d);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'},_0x534b7d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x534b7d);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 _0x270e0b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x534b7d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x270e0b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x534b7d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x534b7d);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'},_0x534b7d);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'},_0x534b7d);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'},_0x534b7d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4671ae;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x381b48,_0x39894f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x381b48,this['_locale']=_0x39894f;}['getDescriptions'](_0x5f491e){const _0x409c60=[],_0x556a23=new Set(),_0x465177=new Set();for(let _0x4b4849=0x0;_0x4b4849<_0x5f491e['length'];_0x4b4849++){const _0x303d6e=_0x5f491e[_0x4b4849];if(!_0x303d6e['isInContent'])continue;const _0x365bb3=this['_handleCustomCallbackDescription'](_0x303d6e);if(_0x365bb3){if(null!=_0x303d6e['subType']){if(_0x556a23['has'](_0x303d6e['subType']))continue;_0x556a23['add'](_0x303d6e['subType']);}_0x409c60['push'](_0x365bb3);}else{if('attribute'!=_0x303d6e['type'])'insertion'!=_0x303d6e['type']&&'deletion'!=_0x303d6e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x409c60,_0x303d6e,_0x5f491e[_0x4b4849+0x1]);else{const _0x4fe367=_0x303d6e['data']['key'];if(_0x465177['has'](_0x4fe367))continue;_0x465177['add'](_0x303d6e['data']['key']),_0x4fe367==u?this['_handleRenameSuggestionDescription'](_0x409c60,_0x303d6e):this['_handleAttributeSuggestionDescription'](_0x409c60,_0x303d6e);}}}return this['_resolveDescriptionItems'](_0x409c60);}['registerDescriptionCallback'](_0x19b962){this['_customCallbacks']['push'](_0x19b962);}['registerElementLabel'](_0x434170,_0x2d3c97,_0x382fd4=_0x4b5085['normal']){'function'==typeof _0x434170?_0x1bf381(this['_itemLabelsCallbacks'],{'matchingCallback':_0x434170,'label':_0x2d3c97,'priority':_0x382fd4}):this['_itemLabels']['set'](_0x434170,_0x2d3c97);}['registerAttributeLabel'](_0x5a58fa,_0x169faa){this['_attributeLabels']['set'](_0x5a58fa,_0x169faa);}['getItemLabel'](_0x425716,_0x4d9c25=0x1){let _0x185e5c;for(const _0x16b8a7 of this['_itemLabelsCallbacks'])if(_0x16b8a7['matchingCallback'](_0x425716)){_0x185e5c=_0x16b8a7['label'];break;}return _0x185e5c||(_0x185e5c=this['_itemLabels']['get'](_0x425716['name'])),_0x185e5c?_0x185e5c(_0x4d9c25):0x1!==_0x4d9c25?_0x4d9c25+'\x20'+_0x425716['name']+'s':''+_0x425716['name'];}['_addDescriptionItems'](_0x530383,_0x524072){const _0x4bd9f7=_0x524072['getFirstRange']()['getWalker'](),_0x1334fc='insertion'==_0x524072['type']?'add':'remove';for(const _0x309774 of _0x4bd9f7){const _0x583011=_0x309774['item'],_0x1c1a0a=_0x530383[_0x530383['length']-0x1];if(_0x583011['is']('$textProxy'))_0x1c1a0a&&_0x1c1a0a['type']['indexOf']('Container')>-0x1&&_0x530383['pop'](),_0x1c1a0a&&'text'==_0x1c1a0a['type']?_0x1c1a0a[_0x1334fc]+=_0x583011['data']:_0x530383['push']({'type':'text','add':'add'==_0x1334fc?_0x583011['data']:'','remove':'remove'==_0x1334fc?_0x583011['data']:''});else{if(this['_schema']['isObject'](_0x583011)){const _0x304c80=_0x583011;if(_0x1c1a0a&&_0x1c1a0a['type']['indexOf']('Container')>-0x1&&_0x530383['pop'](),'elementEnd'==_0x309774['type'])continue;_0x1c1a0a&&_0x1c1a0a['type']==_0x1334fc+'Object'&&_0x1c1a0a['element']['name']==_0x304c80['name']?_0x1c1a0a['quantity']++:_0x530383['push']({'type':_0x1334fc+'Object','element':_0x304c80,'quantity':0x1}),_0x4bd9f7['skip'](_0x2d0300=>!('elementEnd'==_0x2d0300['type']&&_0x2d0300['item']==_0x583011));}else{if(this['_schema']['checkChild'](_0x583011,'$text')||_0x583011['is']('element','softBreak')){const _0x3c321c=_0x583011;if('add'==_0x1334fc&&'elementStart'==_0x309774['type']||'remove'==_0x1334fc&&'elementEnd'==_0x309774['type'])continue;if(_0x1c1a0a&&-0x1==_0x1c1a0a['type']['indexOf']('Container')){'text'==_0x1c1a0a['type']&&(_0x1c1a0a[_0x1334fc]+='\x0a');continue;}let _0x57db9f;if(_0x57db9f='add'==_0x1334fc?_0x3c321c['nextSibling']&&!this['_schema']['isObject'](_0x3c321c['nextSibling'])?_0x3c321c['nextSibling']:null:_0x3c321c['previousSibling']&&!this['_schema']['isObject'](_0x3c321c['previousSibling'])?_0x3c321c['previousSibling']:null,_0x3c321c['isEmpty']||_0x57db9f&&_0x57db9f['isEmpty']){const _0x889d97=_0x57db9f&&_0x57db9f['isEmpty']?_0x57db9f:_0x3c321c;_0x1c1a0a&&_0x1c1a0a['type']==_0x1334fc+'EmptyContainer'&&_0x1c1a0a['element']['name']==_0x889d97['name']?_0x1c1a0a['quantity']++:_0x530383['push']({'type':_0x1334fc+'EmptyContainer','element':_0x889d97,'quantity':0x1});}else _0x530383['push']({'type':_0x1334fc+'Container','element':_0x3c321c});}}}}}['_resolveDescriptionItems'](_0x247827){const _0x5e40cb=this['_locale'],_0x45430f=[],_0x41ac66=[],_0x3cd2bf=[];for(const _0x1e0521 of _0x247827)switch(_0x1e0521['type']){case'text':if(_0x1e0521['add']=_0x1e0521['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1e0521['remove']=_0x1e0521['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1e0521['add']&&''!=_0x1e0521['remove']){_0x45430f['push']({'type':'replace','content':c(_0x5e40cb,'REPLACE_TEXT',['\x22'+_0x1e0521['remove']+'\x22','\x22'+_0x1e0521['add']+'\x22'])});continue;}if(null!=_0x1e0521['add']['match'](/^ +$/)){_0x45430f['push']({'type':'insertion','content':c(_0x5e40cb,'*Insert:*\x20%0',c(_0x5e40cb,'ELEMENT_SPACE',_0x1e0521['add']['length']))});continue;}if(null!=_0x1e0521['remove']['match'](/^ +$/)){_0x45430f['push']({'type':'deletion','content':c(_0x5e40cb,'*Remove:*\x20%0',c(_0x5e40cb,'ELEMENT_SPACE',_0x1e0521['remove']['length']))});continue;}if(''!=_0x1e0521['add']){_0x45430f['push']({'type':'insertion','content':c(_0x5e40cb,'*Insert:*\x20%0','\x22'+_0x1e0521['add']+'\x22')});continue;}_0x45430f['push']({'type':'deletion','content':c(_0x5e40cb,'*Remove:*\x20%0','\x22'+_0x1e0521['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x45430f['push']({'type':'insertion','content':c(_0x5e40cb,'*Insert:*\x20%0',this['getItemLabel'](_0x1e0521['element'],_0x1e0521['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x45430f['push']({'type':'deletion','content':c(_0x5e40cb,'*Remove:*\x20%0',this['getItemLabel'](_0x1e0521['element'],_0x1e0521['quantity']))});continue;case'addContainer':_0x45430f['push']({'type':'insertion','content':c(_0x5e40cb,'*Split:*\x20%0',this['getItemLabel'](_0x1e0521['element'],_0x1e0521['quantity']))});continue;case'removeContainer':_0x45430f['push']({'type':'deletion','content':c(_0x5e40cb,'*Merge:*\x20%0',this['getItemLabel'](_0x1e0521['element'],_0x1e0521['quantity']))});continue;case'addFormat':_0x41ac66['push'](_0x1e0521['key']);continue;case'removeFormat':_0x3cd2bf['push'](_0x1e0521['key']);continue;default:_0x45430f['push'](_0x1e0521);}if(_0x41ac66['length']){const _0x5ba002=_0x41ac66['map'](_0x2b0e2d=>this['_attributeLabels']['has'](_0x2b0e2d)?this['_attributeLabels']['get'](_0x2b0e2d):_0x2b0e2d)['join'](',\x20');_0x45430f['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5ba002)});}if(_0x3cd2bf['length']){const _0x539417=_0x3cd2bf['map'](_0x45c261=>this['_attributeLabels']['has'](_0x45c261)?this['_attributeLabels']['get'](_0x45c261):_0x45c261)['join'](',\x20');_0x45430f['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x539417)});}return _0x45430f;}['_handleCustomCallbackDescription'](_0x1716ca){for(const _0x298673 of this['_customCallbacks']){const _0x2d69bb=_0x298673(_0x1716ca);if(_0x2d69bb&&'type'in _0x2d69bb)return _0x2d69bb;}}['_handleAttributeSuggestionDescription'](_0x2f6fb7,_0x4d16c0){const _0x361c76=_0x4d16c0['data'],_0x200f12=void 0x0===_0x361c76['newValue']?'removeFormat':'addFormat';_0x2f6fb7['push']({'type':_0x200f12,'key':_0x361c76['key']});}['_handleRenameSuggestionDescription'](_0x4a28f5,_0x200702){_0x4a28f5['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x200702['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x12dd8,_0x4f8054,_0x5af86d){if(this['_addDescriptionItems'](_0x12dd8,_0x4f8054),_0x5af86d&&_0x5af86d['getFirstRange']()&&!_0x4f8054['getFirstRange']()['end']['isEqual'](_0x5af86d['getFirstRange']()['start'])){const _0x518da6=_0x12dd8[_0x12dd8['length']-0x1],_0x4ca77b='insertion'==_0x4f8054['type']?'add':'remove';_0x518da6&&'text'==_0x518da6['type']&&(_0x518da6[_0x4ca77b]+='\x0a');}}}class U extends _0x31fcb9{['afterInit'](){const _0x17173b=this['editor'],_0x476eef=_0x17173b['plugins']['get']('TrackChangesEditing');_0x17173b['commands']['get']('showAIAssistant')&&_0x476eef['enableCommand']('showAIAssistant');}}class V extends _0x31fcb9{['afterInit'](){const _0x4de4b2=this['editor'],_0x21e671=_0x4de4b2['locale'];if(!_0x4de4b2['plugins']['has']('AlignmentEditing'))return;const _0x4e40c3=_0x4de4b2['plugins']['get']('TrackChangesEditing');_0x4e40c3['enableDefaultAttributesIntegration']('alignment'),_0x4e40c3['registerBlockAttribute']('alignment'),_0x4e40c3['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x21e671,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28666d=this['editor'],_0x47a746=_0x28666d['locale'];_0x28666d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4468b2=>{if('formatBlock'!=_0x4468b2['type'])return;const {data:_0x12e24e}=_0x4468b2;if(_0x12e24e&&'alignment'==_0x12e24e['commandName']){const _0x547613=_0x12e24e['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x47a746,'*Format:*\x20%0',function(_0x1ad4cd){switch(_0x1ad4cd){case'left':return c(_0x47a746,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x47a746,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x47a746,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x47a746,'FORMAT_JUSTIFY_TEXT');}}(_0x547613))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x31fcb9{['afterInit'](){const _0x559b9e=this['editor'],_0x4a4210=_0x559b9e['plugins']['get']('TrackChangesEditing'),_0x4abf05=_0x559b9e['locale'];for(const _0x4c2f08 of Yt){if(!_0x559b9e['plugins']['has'](_0x4c2f08))continue;const _0x2dde2c=_0x4c2f08['slice'](0x0,-0x7)['toLowerCase'](),_0x1d9917='FORMAT_'+_0x2dde2c['toUpperCase']();_0x4a4210['enableDefaultAttributesIntegration'](_0x2dde2c),_0x4a4210['registerInlineAttribute'](_0x2dde2c),_0x4a4210['descriptionFactory']['registerAttributeLabel'](_0x2dde2c,c(_0x4abf05,_0x1d9917));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28f29c=this['editor'],_0x5f3987=_0x28f29c['locale'],_0x36cd76=_0x28f29c['plugins']['get']('TrackChangesEditing');function _0xd80eae(_0x11e1b0,_0x6377d8){_0x36cd76['descriptionFactory']['registerDescriptionCallback'](_0x5242d3=>{if('formatInline'!=_0x5242d3['type'])return;const {data:_0x4ff1a9}=_0x5242d3;return _0x4ff1a9&&_0x4ff1a9['commandName']===_0x11e1b0?_0x4ff1a9['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5f3987,'*Format:*\x20%0',_0x6377d8)}:{'type':'format','content':c(_0x5f3987,'*Remove\x20format:*\x20%0',_0x6377d8)}:void 0x0;});}_0xd80eae('bold',c(_0x5f3987,'FORMAT_BOLD')),_0xd80eae('italic',c(_0x5f3987,'FORMAT_ITALIC')),_0xd80eae('underline',c(_0x5f3987,'FORMAT_UNDERLINE')),_0xd80eae('code',c(_0x5f3987,'FORMAT_CODE')),_0xd80eae('strikethrough',c(_0x5f3987,'FORMAT_STRIKETHROUGH')),_0xd80eae('subscript',c(_0x5f3987,'FORMAT_SUBSCRIPT')),_0xd80eae('superscript',c(_0x5f3987,'FORMAT_SUPERSCRIPT'));}}class G extends _0x31fcb9{['afterInit'](){const _0x42e468=this['editor'],_0x288058=_0x42e468['locale'];if(!_0x42e468['plugins']['has']('BlockQuoteEditing'))return;const _0x10da6c=_0x42e468['plugins']['get']('TrackChangesEditing'),_0x5ce261=this['editor']['commands']['get']('blockQuote');_0x10da6c['enableCommand']('blockQuote',(_0x1014a7,_0x293e8e={})=>{const _0x1cf5f3=this['editor']['model']['document']['selection'],_0x3870c3=_0x293e8e&&void 0x0!==_0x293e8e['forceValue']?_0x293e8e['forceValue']:!_0x5ce261['value'];let _0x150203=[];if(_0x3870c3){const _0x5632ce=Array['from'](_0x1cf5f3['getSelectedBlocks']())['filter'](_0x7120e3=>to(_0x7120e3)||function(_0x43c41d,_0x5f21b4){const _0x759ade=_0x5f21b4['checkChild'](_0x43c41d['parent'],'blockQuote'),_0x771537=_0x5f21b4['checkChild'](['$root','blockQuote'],_0x43c41d);return _0x759ade&&_0x771537;}(_0x7120e3,this['editor']['model']['schema']));_0x150203=Zt(_0x5632ce,_0x42e468['model']);}else{const _0x4d7fc7=Array['from'](_0x1cf5f3['getSelectedBlocks']())['filter'](_0x1aa9d2=>to(_0x1aa9d2));_0x150203=Zt(_0x4d7fc7,_0x42e468['model']);}_0x42e468['model']['change'](()=>{for(const _0xe34444 of _0x150203)_0x10da6c['markBlockFormat'](_0xe34444,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3870c3}]});});}),_0x10da6c['descriptionFactory']['registerDescriptionCallback'](_0x122677=>{const {data:_0x831899}=_0x122677;if(_0x831899&&'blockQuote'==_0x831899['commandName']){const _0x1313d1=c(_0x288058,'ELEMENT_BLOCK_QUOTE');return _0x831899['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x288058,'*Set\x20format:*\x20%0',_0x1313d1)}:{'type':'format','content':c(_0x288058,'*Remove\x20format:*\x20%0',_0x1313d1)};}});}}function to(_0x565027){return'blockQuote'==_0x565027['parent']['name'];}class L extends _0x31fcb9{['afterInit'](){const _0x89b2c5=this['editor'],_0x3f69fb=_0x89b2c5['locale'],_0x2c4a4e=_0x89b2c5['plugins']['get']('TrackChangesEditing');_0x89b2c5['plugins']['has']('BookmarkEditing')&&(_0x2c4a4e['enableCommand']('insertBookmark'),_0x2c4a4e['enableDefaultAttributesIntegration']('updateBookmark'),_0x2c4a4e['registerBlockAttribute']('bookmarkId'),_0x2c4a4e['descriptionFactory']['registerDescriptionCallback'](_0x1238e9=>{if('insertion'!=_0x1238e9['type']&&'deletion'!=_0x1238e9['type']&&'attribute'!=_0x1238e9['type'])return;const _0x4abb21=_0x1238e9['getContainedElement']();if(null==_0x4abb21)return;if(!_0x4abb21['is']('element','bookmark'))return;const _0x16e437=_0x4abb21['getAttribute']('bookmarkId');if('insertion'==_0x1238e9['type'])return{'type':'insertion','content':c(_0x3f69fb,'*Insert:*\x20%0','\x22'+_0x16e437+'\x22\x20'+c(_0x3f69fb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1238e9['type'])return{'type':'deletion','content':c(_0x3f69fb,'*Remove:*\x20%0','\x22'+_0x16e437+'\x22\x20'+c(_0x3f69fb,'ELEMENT_BOOKMARK'))};const {data:_0x360158}=_0x1238e9;if(!_0x360158||'bookmarkId'!=_0x360158['key'])return;return{'type':'format','content':c(_0x3f69fb,'*Set\x20bookmark:*\x20%0','\x22'+_0x360158['newValue']+'\x22')};}));}}class J extends _0x31fcb9{['afterInit'](){const _0x2cf94c=this['editor'];_0x2cf94c['plugins']['has']('CaseChange')&&(_0x2cf94c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2cf94c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2cf94c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x31fcb9{['afterInit'](){const _0x1006bb=this['editor'];_0x1006bb['commands']['get']('ckbox')&&_0x1006bb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x31fcb9{['afterInit'](){const _0x788feb=this['editor'];if(!_0x788feb['plugins']['has']('CodeBlock'))return;const _0x298470=_0x788feb['plugins']['get']('TrackChangesEditing'),_0x4ac82d=_0x788feb['locale'],_0x3c21bd=_0x788feb['config']['get']('codeBlock')['languages'],_0x5e1b83=_0x788feb['commands']['get']('codeBlock');_0x298470['enableCommand']('indentCodeBlock'),_0x298470['enableCommand']('outdentCodeBlock'),_0x298470['enableCommand']('codeBlock',(_0x3b4d29,_0x47ed34={})=>{const _0x4fff7e=_0x788feb['model'],_0x53fbb9=_0x788feb['model']['document']['selection'],_0x43c464=_0x47ed34&&void 0x0!==_0x47ed34['forceValue']?_0x47ed34['forceValue']:!_0x5e1b83['value'];let _0x4df092;_0x47ed34['language']||(_0x47ed34['language']=_0x3c21bd[0x0]['language']),_0x4df092=_0x43c464?Array['from'](_0x53fbb9['getSelectedBlocks']())['filter'](_0x4dd778=>oo(_0x4dd778)||function(_0x342912,_0x43236f){if(_0x342912['is']('rootElement')||_0x43236f['isLimit'](_0x342912))return!0x1;return _0x43236f['checkChild'](_0x342912['parent'],'codeBlock');}(_0x4dd778,_0x4fff7e['schema'])):Array['from'](_0x53fbb9['getSelectedBlocks']())['filter'](_0x5279a3=>oo(_0x5279a3));const _0x3e7cdd=Zt(_0x4df092,_0x4fff7e);_0x4fff7e['change'](()=>{for(const _0x3a0e12 of _0x3e7cdd)_0x298470['markBlockFormat'](_0x3a0e12,{'commandName':'codeBlock','commandParams':[{..._0x47ed34,'forceValue':_0x43c464}],'formatGroupId':'blockName'});});}),(_0x298470['descriptionFactory']['registerElementLabel']('codeBlock',_0x3c294a=>c(_0x4ac82d,'ELEMENT_CODE_BLOCK',_0x3c294a)),_0x298470['descriptionFactory']['registerDescriptionCallback'](_0x41aefe=>{if('formatBlock'!=_0x41aefe['type'])return;const _0x129665=_0x4ac82d['t'],{data:_0x3ad2c7}=_0x41aefe;if(!_0x3ad2c7||'codeBlock'!=_0x3ad2c7['commandName'])return;const _0x35a54c=_0x3ad2c7['commandParams'][0x0]['language'],_0x3474bc=_0x129665(_0x3c21bd['find'](_0x3962de=>_0x3962de['language']===_0x35a54c)['label'])['toLowerCase']();return _0x3ad2c7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4ac82d,'*Set\x20format:*\x20%0',c(_0x4ac82d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3474bc+')')}:{'type':'format','content':c(_0x4ac82d,'*Remove\x20format:*\x20%0',c(_0x4ac82d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x1614d0){return'codeBlock'==_0x1614d0['name'];}class q extends _0x31fcb9{['afterInit'](){const _0x58dba1=this['editor'];if(!_0x58dba1['plugins']['has']('CommentsEditing'))return;_0x58dba1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x389c6f,_0x2a2e78,_0x1b92a9){const _0x45abcf=[];for(const _0x3d469a of _0x2a2e78['getItems']())_0x3d469a['hasAttribute'](_0x389c6f)&&_0x45abcf['push'](_0x1b92a9['createRangeOn'](_0x3d469a));return _0x45abcf;}function De(_0x4bc941,_0x110442,{showActiveMarker:_0xa37057=!0x0}={}){const _0x32b9b4=_0x4bc941['plugins']['get']('TrackChangesEditing');return(_0x25e714,_0x4d8b7f,_0x11ce07)=>{if(!_0x11ce07['consumable']['test'](_0x4d8b7f['markerRange'],_0x25e714['name']))return;const _0xafd8c4=_0x4d8b7f['markerRange']['getWalker'](),_0x31ff4e=_0x4d8b7f['markerRange']['start'],_0x28e5ef=_0x4bc941['model']['schema'];let _0xa238d8=null,_0x311b2a=null,_0x1a836c=!0x1,_0x47fb4e=!0x1;for(const _0x27ec54 of _0xafd8c4){const _0x122528=_0x27ec54['item'];_0x1a836c=_0x1a836c||_0x28e5ef['isContent'](_0x122528);const _0x52db65=_0x11ce07['mapper']['toViewElement'](_0x122528);if(_0x52db65&&_0x52db65['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x27ec54['type']&&(_0x28e5ef['isBlock'](_0x122528)&&!_0x28e5ef['isLimit'](_0x122528)&&(_0x122528['nextSibling']||_0x31ff4e['isAtEnd']?_0xa238d8&&_0xa238d8['parent']==_0x122528||(_0xa238d8=_0x122528,_0x1eb716(_0x27ec54['previousPosition']),_0x47fb4e=!0x0):_0x311b2a=_0x311b2a||_0x27ec54['previousPosition']));}function _0x1eb716(_0x1882cb){const {authorId:_0x23ac07}=_0x32b9b4['_splitMarkerName'](_0x4d8b7f['markerName']),_0x2aad82=_0x11ce07['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x110442,'data-author-id':_0x23ac07}),_0x324f63=_0x11ce07['mapper']['toViewPosition'](_0x1882cb);_0xa37057&&_0x32b9b4['activeMarkers']['includes'](_0x4d8b7f['markerName'])&&_0x11ce07['writer']['addClass']('ck-suggestion-marker--active',_0x2aad82),_0x11ce07['writer']['insert'](_0x324f63,_0x2aad82),_0x11ce07['mapper']['bindElementToMarker'](_0x2aad82,_0x4d8b7f['markerName']);}_0x1a836c||_0x47fb4e||!_0x311b2a||_0x1eb716(_0x311b2a);};}class z extends _0x31fcb9{static get['requires'](){return[_0x449576];}['init'](){const _0x4494d2=this['editor'],_0x5eb308=_0x4494d2['plugins']['get']('TrackChangesEditing');_0x5eb308['enableCommand']('delete');const _0xfaf345=_0x4494d2['commands']['get']('deleteForward');_0x5eb308['enableCommand']('deleteForward',(_0x54a297,_0x22d6e7={})=>{const _0x5924a4=_0x4494d2['model']['createSelection'](_0x4494d2['model']['document']['selection']);_0x5924a4['isCollapsed']&&_0x4494d2['model']['modifySelection'](_0x5924a4,{'direction':'forward','unit':_0x22d6e7['unit']});const _0x2bc21f=_0x5924a4['getFirstRange'](),_0x4b6421=_0x4324ec['fromRange'](_0x2bc21f);let _0x51a0c7;_0x54a297(_0x22d6e7),_0x51a0c7='$graveyard'==_0x4b6421['root']['rootName']?_0x4494d2['model']['createRange'](_0x2bc21f['start']):_0x4494d2['model']['createRange'](_0x4b6421['start'],_0x4b6421['end']),_0x4b6421['detach'](),_0x4494d2['model']['enqueueChange'](_0xfaf345['buffer']['batch'],_0x121fa0=>{_0xfaf345['buffer']['lock'](),_0x121fa0['setSelection'](_0x121fa0['createRange'](_0x51a0c7['end'])),_0xfaf345['buffer']['unlock']();});}),_0x4494d2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x4494d2,'merge'),{'priority':'high'}),_0x4494d2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x348502,_0x135641,_0x2a178e)=>{_0x2a178e['options']['showSuggestionHighlights']&&De(_0x4494d2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x348502,_0x135641,_0x2a178e);},{'priority':'high'}),_0x4494d2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57d239,_0x4fe25a,_0x4dfaf1)=>{const _0x492ecb=_0x4dfaf1['mapper']['markerNameToElements'](_0x4fe25a['markerName']);if(_0x492ecb){for(const _0x2a960b of _0x492ecb)_0x2a960b['is']('uiElement')&&(_0x4dfaf1['mapper']['unbindElementFromMarkerName'](_0x2a960b,_0x4fe25a['markerName']),_0x4dfaf1['writer']['remove'](_0x2a960b));}},{'priority':'high'});}}class W extends _0x31fcb9{['afterInit'](){const _0x106027=this['editor'];if(!_0x106027['plugins']['has']('ListEditing'))return;const _0x558bd8=_0x106027['locale'],_0x3bea50=_0x106027['plugins']['get']('TrackChangesEditing'),_0x56f83a=_0x106027['plugins']['has']('TodoListEditing'),_0x5d5acc=!!_0x106027['config']['get']('list.multiBlock');function _0x785f91(_0x43ae55){return{'type':'format','content':''+c(_0x558bd8,'*Set\x20format:*\x20%0',_0x43ae55)};}function _0x52176c(_0x35294e){return{'type':'format','content':''+c(_0x558bd8,'*Remove\x20format:*\x20%0',_0x35294e)};}_0x3bea50['enableDefaultAttributesIntegration']('numberedList'),_0x3bea50['enableDefaultAttributesIntegration']('bulletedList'),_0x3bea50['enableDefaultAttributesIntegration']('customNumberedList'),_0x3bea50['enableDefaultAttributesIntegration']('customBulletedList'),_0x3bea50['enableDefaultAttributesIntegration']('indentList'),_0x3bea50['enableDefaultAttributesIntegration']('outdentList'),_0x3bea50['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3bea50['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3bea50['registerBlockAttribute']('listItemId'),_0x3bea50['registerBlockAttribute']('listType'),_0x3bea50['registerBlockAttribute']('listIndent'),_0x5d5acc&&(_0x3bea50['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3bea50['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x56f83a&&(_0x3bea50['enableDefaultAttributesIntegration']('todoList'),_0x3bea50['enableDefaultAttributesIntegration']('checkTodoList'),_0x3bea50['registerBlockAttribute']('todoListChecked'),_0x3bea50['descriptionFactory']['registerDescriptionCallback'](_0x4bc6c5=>{const {data:_0x5d0309}=_0x4bc6c5;if(_0x5d0309&&'todoListChecked'==_0x5d0309['key'])return{'type':'format','content':_0x5d0309['newValue']?c(_0x558bd8,'*Check\x20item*'):c(_0x558bd8,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xd4552f=>{if(_0xd4552f['batch']['isUndo'])return!0x1;let _0x32feeb=!0x1;const _0x262519=_0x3bea50['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x71b1b7=>'todoListChecked'===_0x3bea50['_getAttributeKey'](_0x71b1b7));for(const _0x476d69 of _0x262519){'todo'!=_0x476d69['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3bea50['_findSuggestions'](_0x476d69['getFirstRange'](),'attribute')['find'](_0x23a151=>'listType'===_0x3bea50['_getAttributeKey'](_0x23a151['suggestion']))||(_0xd4552f['removeMarker'](_0x476d69['getFirstMarker']()),_0x32feeb=!0x0));}return _0x32feeb;})),_0x3bea50['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x558bd8,'FORMAT_INDENT'));const _0x1cdef1={'type':'format','content':''};_0x3bea50['descriptionFactory']['registerDescriptionCallback'](_0x43db27=>{const {data:_0x40b9e9}=_0x43db27;if(!_0x40b9e9||'listType'!=_0x40b9e9['key'])return;let _0x36bec3=_0x43db27['head'];for(;_0x36bec3;){if(_0x36bec3['data']&&(('listStyle'==_0x36bec3['data']['key']||'listMarkerStyle'==_0x36bec3['data']['key'])&&(_0x36bec3['data']['newValue']&&'default'!=_0x36bec3['data']['newValue']||'default'!=_0x36bec3['data']['oldValue']&&!_0x40b9e9['newValue'])||!_0x5d5acc&&_0x36bec3['data']['key']==u))return _0x1cdef1;_0x36bec3=_0x36bec3['next'];}if(null==_0x40b9e9['newValue'])switch(_0x40b9e9['oldValue']){case'bulleted':return _0x52176c(c(_0x558bd8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52176c(c(_0x558bd8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52176c(c(_0x558bd8,'ELEMENT_TODO_LIST'));}switch(_0x40b9e9['newValue']){case'bulleted':return _0x785f91(c(_0x558bd8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x785f91(c(_0x558bd8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x785f91(c(_0x558bd8,'ELEMENT_TODO_LIST'));}}),_0x3bea50['descriptionFactory']['registerDescriptionCallback'](_0x272abf=>{const {data:_0x15878d}=_0x272abf;if(_0x15878d&&'listIndent'==_0x15878d['key'])return null==_0x15878d['newValue']||null==_0x15878d['oldValue']&&0x0==_0x15878d['newValue']?_0x1cdef1:void 0x0;}),_0x3bea50['descriptionFactory']['registerDescriptionCallback'](_0x2bd8aa=>{if('attribute'!=_0x2bd8aa['type'])return;const {data:_0x1713ae}=_0x2bd8aa;if(!_0x1713ae||'listItemId'!=_0x1713ae['key'])return;const _0x568104=Te(_0x2bd8aa);return'newValue'==_0x568104?{'type':'format','content':c(_0x558bd8,'*Merge:*\x20list\x20item')}:'oldValue'==_0x568104?{'type':'format','content':c(_0x558bd8,'*Split:*\x20list\x20item')}:_0x1cdef1;}),_0x106027['model']['document']['registerPostFixer'](_0x447021=>this['listItemIdFixer'](_0x447021)),_0x106027['model']['document']['registerPostFixer'](_0x49c18e=>this['noTrackChangesFixer'](_0x49c18e)),_0x106027['model']['document']['on']('change:data',(_0x568855,_0x3b0ad4)=>{if(_0x3b0ad4['isUndo']||!_0x3b0ad4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5a53ac){if(_0x5a53ac['batch']['isUndo']||!_0x5a53ac['batch']['isLocal'])return!0x1;let _0x5aadd2=!0x1;const _0x534911=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2c30bc=>_0x2c30bc['data']&&'listItemId'==_0x2c30bc['data']['key'])['filter'](_0xb9c879=>_0xb9c879['data']['newValue']&&_0xb9c879['data']['oldValue']);for(const _0xe05894 of _0x534911)Te(_0xe05894)||(_0x5a53ac['removeMarker'](_0xe05894['getFirstMarker']()),_0x5aadd2=!0x0);return _0x5aadd2;}['noTrackChangesFixer'](_0x4590d3){if(_0x4590d3['batch']['isUndo']||!_0x4590d3['batch']['isLocal'])return!0x1;const _0x161127=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x161127['trackChangesCommand']['value'])return!0x1;let _0x54264a=!0x1;const _0x43734e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xb1c10e=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1caef2=>'attribute'==_0x1caef2['type'])['filter'](_0x2fd5f0=>_0x43734e['includes'](_0x2fd5f0['attributeKey']));if(0x0==_0xb1c10e['length'])return _0x54264a;for(const _0x533eed of _0xb1c10e){const _0x8a062a=_0x161127['_findSuggestions'](_0x533eed['range'],'attribute')['filter'](_0x2f0b06=>!_0x2f0b06['meta']['isNextTo'])['map'](_0x3f595e=>_0x3f595e['suggestion'])['filter'](_0x3aa802=>{const _0x4627de=_0x161127['_getAttributeKey'](_0x3aa802);return _0x43734e['includes'](_0x4627de);});if(_0x8a062a['length']){for(const _0x44e57d of _0x8a062a)_0x4590d3['removeMarker'](_0x44e57d['getFirstMarker']());_0x54264a=!0x0;}}return _0x54264a;}['assureChains'](){const _0x50d571=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8286e7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x251e38;const _0x4b1c90=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x51fb83=>{if(_0x51fb83['data']['oldRange']||!_0x51fb83['data']['newRange'])return null;if(!_0x51fb83['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4d592c}=_0x50d571['_splitMarkerName'](_0x51fb83['name']);if(!_0x50d571['hasSuggestion'](_0x4d592c))return null;const _0x397bcb=_0x50d571['getSuggestion'](_0x4d592c);return _0x8286e7['includes'](_0x397bcb['data']['key']);})['map'](_0x43b4e9=>{const {id:_0x30338c}=_0x50d571['_splitMarkerName'](_0x43b4e9['name']),_0x1d0802=_0x50d571['getSuggestion'](_0x30338c);return _0x251e38=_0x1d0802['attributes']['groupId'],_0x1d0802['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4b1c90['size'])return;const _0x1c6ad3=_0x50d571['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4fc663=>'attribute'==_0x4fc663['type']&&_0x4fc663['data']&&_0x8286e7['includes'](_0x4fc663['data']['key'])&&_0x4fc663['attributes']['groupId']!=_0x251e38)['map'](_0x34b433=>({'listItem':_0x34b433['getFirstRange']()['start']['nodeAfter'],'groupId':_0x34b433['attributes']['groupId']})),_0x11b3f6=new Set();for(const {groupId:_0x4f60b5,listItem:_0xdd7545}of _0x1c6ad3)_0x4b1c90['has'](_0xdd7545)&&_0x11b3f6['add'](_0x4f60b5);for(const _0x3dd88e of _0x50d571['getSuggestions']())_0x11b3f6['has'](_0x3dd88e['attributes']['groupId'])&&_0x3dd88e['setAttribute']('groupId',_0x251e38);}['_supportLegacySuggestions'](){const _0x16186b=this['editor'],_0x284685=_0x16186b['locale'],_0x3b52d6=_0x16186b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3b52d6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4bcdcd,_0x23b5ee){const _0x23afb0=[];for(let _0x19785a of _0x4bcdcd)_0x19785a['start']['nodeAfter']===_0x19785a['end']['parent']&&(_0x19785a=_0x16186b['model']['createRange'](_0x16186b['model']['createPositionAt'](_0x19785a['start']['nodeAfter'],0x0))),_0x23afb0['push'](_0x19785a);_0x16186b['model']['change'](_0x1dad05=>{const _0x56a7d1=_0x16186b['model']['document']['selection'],_0x5b23b2=Array['from'](_0x56a7d1['getRanges']())['map'](_0x3878e9=>_0x4324ec['fromRange'](_0x3878e9));_0x1dad05['setSelection'](_0x23afb0),_0x16186b['commands']['get'](_0x23b5ee['commandName'])['refresh'](),_0x23b5ee['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x16186b['execute'](_0x23b5ee['commandName'],..._0x23b5ee['commandParams']),_0x1dad05['setSelection'](_0x5b23b2);for(const _0x458aa9 of _0x5b23b2)_0x458aa9['detach']();});}),_0x3b52d6['descriptionFactory']['registerElementLabel'](function(_0x3f645c){const _0x37c431=!_0x16186b['model']['schema']['isObject'](_0x3f645c),_0x13fc6f=_0x3f645c['previousSibling'],_0x133b32=_0x3f645c['nextSibling'],_0x24373d=_0x3f645c['getAttribute']('listItemId'),_0x51d182=!_0x13fc6f||_0x13fc6f['getAttribute']('listItemId')!==_0x24373d,_0x2f5b7f=!_0x133b32||_0x133b32['getAttribute']('listItemId')!==_0x24373d;return _0x37c431&&Boolean(_0x24373d)&&_0x51d182&&_0x2f5b7f;},_0x4e6987=>c(_0x284685,'ELEMENT_LIST_ITEM',_0x4e6987));}['_registerLegacyDescription'](){const _0x419410=this['editor'],_0x2f84ae=_0x419410['locale'];function _0x1737fe(_0x49361f){const _0x1ba7b8=_0x419410['commands']['get']('bulletedList')['value'],_0x7a829e=_0x419410['commands']['get']('numberedList')['value'];return'numberedList'===_0x49361f?_0x1ba7b8:_0x7a829e;}_0x419410['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5eda96){if('formatBlock'!=_0x5eda96['type'])return;const {data:_0x7484a}=_0x5eda96;if(!_0x7484a)return;let _0xddd964,_0x4749a8,_0x59c0ac,_0x43d66d;switch(_0x7484a['commandName']){case'bulletedList':_0x59c0ac=_0x7484a['commandParams'][0x0]['forceValue'],_0x43d66d=_0x1737fe(_0x7484a['commandName']),_0xddd964=_0x59c0ac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x43d66d&&_0x419410['config']['get']('list.multiBlock')||(_0xddd964='*Change\x20to:*\x20%0'),_0x4749a8={'type':'format','content':c(_0x2f84ae,_0xddd964,c(_0x2f84ae,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x59c0ac=_0x7484a['commandParams'][0x0]['forceValue'],_0x43d66d=_0x1737fe(_0x7484a['commandName']),_0xddd964=_0x59c0ac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x43d66d&&_0x419410['config']['get']('list.multiBlock')||(_0xddd964='*Change\x20to:*\x20%0'),_0x4749a8={'type':'format','content':c(_0x2f84ae,_0xddd964,c(_0x2f84ae,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xddd964='*Indent:*\x20%0',_0x4749a8={'type':'format','content':c(_0x2f84ae,_0xddd964,c(_0x2f84ae,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xddd964=function(_0x430ae9){const _0x13795=_0x430ae9['getFirstRange']();let _0x4dad3d=_0x13795['start']['nodeAfter'];for(;_0x4dad3d&&_0x13795['containsItem'](_0x4dad3d);){if(_0x4dad3d['getAttribute']('listIndent')>0x0)return!0x1;_0x4dad3d=_0x4dad3d['nextSibling'];}return!0x0;}(_0x5eda96)?c(_0x2f84ae,'*Format:*\x20remove\x20from\x20%0',c(_0x2f84ae,function(_0x452af1){return'ELEMENT_'+_0x452af1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5eda96))):c(_0x2f84ae,'*Outdent:*\x20%0',c(_0x2f84ae,'ELEMENT_LIST_ITEM')),_0x4749a8={'type':'format','content':_0xddd964};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7484a['multipleBlocks']&&(_0xddd964='*Merge:*\x20%0',_0x4749a8={'type':'deletion','content':c(_0x2f84ae,_0xddd964,c(_0x2f84ae,'ELEMENT_LIST_ITEM'))});}return _0x4749a8;});}}function Te(_0x3b4508){let _0x1c796a=_0x3b4508['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1c796a;){const _0x491107=_0x1c796a['getAttribute']('listItemId');if(!_0x491107)return!0x1;if(_0x491107==_0x3b4508['data']['newValue'])return'newValue';if(_0x491107==_0x3b4508['data']['oldValue'])return'oldValue';_0x1c796a=_0x1c796a['previousSibling'];}return!0x1;}class Se extends _0x31fcb9{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x507fa1=this['editor']['config']['get']('list.properties'),_0x3bcb06=this['editor']['plugins']['get']('TrackChangesEditing');_0x507fa1['styles']&&(_0x3bcb06['enableDefaultAttributesIntegration']('listStyle'),_0x3bcb06['registerBlockAttribute']('listStyle')),_0x507fa1['reversed']&&(_0x3bcb06['enableDefaultAttributesIntegration']('listReversed'),_0x3bcb06['registerBlockAttribute']('listReversed')),_0x507fa1['startIndex']&&(_0x3bcb06['enableDefaultAttributesIntegration']('listStart'),_0x3bcb06['registerBlockAttribute']('listStart'));const _0x5c7f0d={'type':'format','content':''};_0x3bcb06['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4db191=this['editor']['locale'];_0x3bcb06['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x4db191,'FORMAT_LIST_REVERSED')),_0x3bcb06['descriptionFactory']['registerDescriptionCallback'](_0x440651=>{const {data:_0x2a3ca5}=_0x440651;if(_0x2a3ca5&&'listReversed'==_0x2a3ca5['key'])return null==_0x2a3ca5['newValue']||0x0==_0x2a3ca5['newValue']&&null==_0x2a3ca5['oldValue']?_0x5c7f0d:void 0x0;}),_0x3bcb06['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x4db191,'FORMAT_LIST_START')),_0x3bcb06['descriptionFactory']['registerDescriptionCallback'](_0x59e5fd=>{const {data:_0x339181}=_0x59e5fd;if(_0x339181&&'listStart'==_0x339181['key'])return null==_0x339181['newValue']||0x1==_0x339181['newValue']&&null==_0x339181['oldValue']?_0x5c7f0d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x56cce0=>{if(_0x56cce0['batch']['isUndo'])return!0x1;let _0x34fa83=!0x1;const _0x2be922=_0x3bcb06['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd93daa=>{const _0x16931e=_0x3bcb06['_getAttributeKey'](_0xd93daa);return'listStart'==_0x16931e||'listReversed'==_0x16931e;});for(const _0x448be5 of _0x2be922){const _0x439960=_0x448be5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x439960||'customNumbered'==_0x439960)continue;_0x3bcb06['_findSuggestions'](_0x448be5['getFirstRange'](),'attribute')['find'](_0x267d1c=>'listType'==_0x3bcb06['_getAttributeKey'](_0x267d1c['suggestion']))||(_0x56cce0['removeMarker'](_0x448be5['getFirstMarker']()),_0x34fa83=!0x0);}return _0x34fa83;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x17efa6){const _0x2ab5e9=this['editor']['locale'],{data:_0x114140}=_0x17efa6,_0x5bd61d={'type':'format','content':''};if(!_0x114140||'listStyle'!=_0x114140['key'])return;if(!_0x114140['oldValue'])return'default'==_0x114140['newValue']?_0x5bd61d:{'type':'format','content':''+c(_0x2ab5e9,'*Set\x20format:*\x20%0',c(_0x2ab5e9,this['_getTranslationKeyForListStyle'](_0x114140['newValue'])))};if(!_0x114140['newValue']){if('default'==_0x114140['oldValue'])return _0x5bd61d;let _0x1e5ea7=_0x17efa6['head'];for(;_0x1e5ea7;){if(_0x1e5ea7['data']&&'listType'==_0x1e5ea7['data']['key']&&_0x1e5ea7['data']['newValue'])return _0x5bd61d;_0x1e5ea7=_0x1e5ea7['next'];}return{'type':'format','content':''+c(_0x2ab5e9,'*Remove\x20format:*\x20%0',c(_0x2ab5e9,this['_getTranslationKeyForListStyle'](_0x114140['oldValue'])))};}if('default'!=_0x114140['newValue'])return{'type':'format','content':''+c(_0x2ab5e9,'*Set\x20format:*\x20%0',c(_0x2ab5e9,this['_getTranslationKeyForListStyle'](_0x114140['newValue'])))};let _0x5608cc=_0x17efa6['head'];for(;_0x5608cc;){if(_0x5608cc['data']&&'listType'==_0x5608cc['data']['key']&&_0x5608cc['data']['newValue']&&_0x5608cc['data']['oldValue'])return _0x5bd61d;_0x5608cc=_0x5608cc['next'];}return{'type':'format','content':c(_0x2ab5e9,'*Set\x20format:*\x20%0',c(_0x2ab5e9,'ELEMENT_'+_0x17efa6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5aaf59=this['editor'],_0x4a078b=_0x5aaf59['locale'];_0x5aaf59['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea8dc=>{if('formatBlock'!=_0x1ea8dc['type'])return;const {data:_0x8c4f75}=_0x1ea8dc;if(!_0x8c4f75)return;let _0x4647ad,_0x78d791;switch(_0x8c4f75['commandName']){case'listStyle':_0x4647ad='*Change\x20to:*\x20%0',_0x78d791={'type':'format','content':c(_0x4a078b,_0x4647ad,c(_0x4a078b,this['_getTranslationKeyForListStyle'](_0x8c4f75['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4647ad=_0x8c4f75['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x78d791={'type':'format','content':c(_0x4a078b,_0x4647ad)};break;case'listStart':_0x4647ad='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x78d791={'type':'format','content':c(_0x4a078b,_0x4647ad,_0x8c4f75['commandParams'][0x0]['startIndex'])};}return _0x78d791;});}['_getTranslationKeyForListStyle'](_0x372442){return'ELEMENT_'+function(_0x2cd599){if(_e['includes'](_0x2cd599))return'bulleted';if(Re['includes'](_0x2cd599))return'numbered';return null;}(_0x372442)['toUpperCase']()+'_LIST_'+_0x372442['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x31fcb9{['afterInit'](){const _0x1e3598=this['editor'];_0x1e3598['commands']['get']('emoji')&&_0x1e3598['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x31fcb9{static get['requires'](){return[_0x30ef79];}['init'](){const _0x962905=this['editor'],_0x387189=_0x962905['plugins']['get']('TrackChangesEditing'),_0x3fe565=_0x962905['commands']['get']('enter');_0x387189['enableCommand']('enter',()=>{_0x962905['model']['change'](_0x5eab6b=>{const _0x5589ef=_0x962905['model']['document']['selection'],_0x31539c=_0x5589ef['getFirstPosition'](),_0x949d3d=_0x4324ec['fromRange'](_0x5589ef['getFirstRange']());if(_0x3fe565['enterBlock'](_0x5eab6b)){const _0x162f49=_0x962905['model']['createPositionAt'](_0x31539c['parent']['nextSibling'],0x0),_0x5df7bd=_0x5eab6b['createRange'](_0x31539c,_0x162f49);_0x387189['markInsertion'](_0x5df7bd);}else _0x5eab6b['setSelection'](_0x5eab6b['createRange'](_0x949d3d['end']));_0x949d3d['detach'](),_0x3fe565['fire']('afterExecute',{'writer':_0x5eab6b});});}),_0x962905['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x962905,'split'),{'priority':'high'}),_0x962905['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x188fcd,_0x4fa3c5,_0x46fd27)=>{const _0x107db1=_0x46fd27['mapper']['markerNameToElements'](_0x4fa3c5['markerName']);if(_0x107db1){for(const _0x256256 of _0x107db1)_0x256256['hasClass']('ck-suggestion-marker-split')&&(_0x46fd27['mapper']['unbindElementFromMarkerName'](_0x256256,_0x4fa3c5['markerName']),_0x46fd27['writer']['remove'](_0x256256));}},{'priority':'high'}),_0x962905['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4d74ab,_0x4f5ec1,_0x18184d)=>{_0x18184d['options']['showSuggestionHighlights']&&De(_0x962905,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4d74ab,_0x4f5ec1,_0x18184d);},{'priority':'high'});}}class Z extends _0x31fcb9{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x447d9d=this['editor']['plugins']['get']('TrackChangesEditing');_0x447d9d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x447d9d['enableCommand']('findNext'),_0x447d9d['enableCommand']('findPrevious'),_0x447d9d['enableCommand']('replace'),_0x447d9d['enableCommand']('replaceAll');}['handleFindCommand'](_0x4aadb1,_0x3701f8,_0x2f5580={}){const _0x3d1f44=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4aadb1(_0x186de9=>{let _0x473e31=('string'==typeof _0x3701f8?_0x3d1f44['findByTextCallback'](_0x3701f8,_0x2f5580):_0x3701f8)(_0x186de9);Array['isArray'](_0x473e31)&&(_0x473e31={'results':_0x473e31,'searchText':'string'==typeof _0x3701f8?_0x3701f8:''});const _0x46770c=_0x473e31['results']['filter'](_0x9efcc1=>!0x1===this['_isInDeletionRange'](_0x9efcc1,_0x186de9['item']));return{..._0x473e31,'results':_0x46770c};},_0x2f5580);}['_isInDeletionRange'](_0x40bb61,_0x36c21b){const _0xa2ae09=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x36c21b,_0x40bb61['start']),this['editor']['model']['createPositionAt'](_0x36c21b,_0x40bb61['end']));for(const _0x23d7a0 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xa2ae09['getIntersection'](_0x23d7a0['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x31fcb9{['afterInit'](){const _0x235eda=this['editor']['locale'],_0x5bd062=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3232db,commandName:_0x23385b}of eo)this['editor']['plugins']['has'](_0x3232db)&&(_0x5bd062['enableDefaultAttributesIntegration'](_0x23385b),_0x5bd062['registerInlineAttribute'](_0x23385b));_0x5bd062['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x235eda,'FORMAT_FONT_SIZE')),_0x5bd062['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x235eda,'FORMAT_FONT_FAMILY')),_0x5bd062['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x235eda,'FORMAT_FONT_COLOR')),_0x5bd062['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x235eda,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x363653=this['editor'],_0x7090ec=_0x363653['locale'];_0x363653['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36b772=>{const _0x2602eb=_0x7090ec['t'];if('formatInline'!=_0x36b772['type'])return;const {data:_0x11f3d8}=_0x36b772;if(null!=_0x11f3d8){if('fontSize'==_0x11f3d8['commandName']){const _0x5a4905=_0x11f3d8['commandParams'][0x0]['value'];if(_0x5a4905){const _0x433a6e=_0x2602eb(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2daec0=>_0x2daec0['model']==_0x5a4905)['title'])['toLowerCase']();return{'type':'format','content':c(_0x7090ec,'*Set\x20font\x20size:*\x20%0',_0x433a6e)};}return{'type':'format','content':c(_0x7090ec,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x11f3d8['commandName']){const _0x394f4c=_0x11f3d8['commandParams'][0x0]['value'];return _0x394f4c?{'type':'format','content':c(_0x7090ec,'*Set\x20font\x20family:*\x20%0',_0x394f4c)}:{'type':'format','content':c(_0x7090ec,'*Reset\x20font\x20family*')};}if('fontColor'==_0x11f3d8['commandName']){const _0xd0bd72=_0x11f3d8['commandParams'][0x0]['value'];if(_0xd0bd72){const _0x5d2c07=_0x221ccf(this['editor']['config']['get']('fontColor.colors'))['find'](_0x108661=>_0x108661['model']==_0xd0bd72);let _0x474581=_0xd0bd72,_0x160cb4='';return _0x5d2c07&&(_0x474581=_0x5d2c07['label'],_0x160cb4=_0x2602eb(_0x474581)['toLowerCase']()),{'type':'format','content':c(_0x7090ec,'*Set\x20font\x20color:*\x20%0',_0x160cb4)['trim'](),'color':{'value':_0xd0bd72,'title':_0x160cb4||_0x474581}};}return{'type':'format','content':c(_0x7090ec,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x11f3d8['commandName']){const _0x3696e3=_0x11f3d8['commandParams'][0x0]['value'];if(_0x3696e3){const _0x4d34e5=_0x221ccf(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x45515c=>_0x45515c['model']==_0x3696e3);let _0x5a59d0=_0x3696e3,_0x598067='';return _0x4d34e5&&(_0x5a59d0=_0x4d34e5['label'],_0x598067=_0x2602eb(_0x5a59d0)['toLowerCase']()),{'type':'format','content':c(_0x7090ec,'*Set\x20font\x20background\x20color:*\x20%0',_0x598067)['trim'](),'color':{'value':_0x3696e3,'title':_0x598067||_0x5a59d0}};}return{'type':'format','content':c(_0x7090ec,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x31fcb9{['afterInit'](){const _0x50d133=this['editor'],_0xe901d=_0x50d133['plugins']['get']('TrackChangesEditing'),_0x29beea=_0x50d133['commands']['get']('copyFormat'),_0x239dba=_0x50d133['commands']['get']('pasteFormat');_0x29beea&&_0x239dba&&(_0xe901d['enableDefaultAttributesIntegration']('pasteFormat'),_0xe901d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x52e2f0=this['editor'],_0x4ab8f1=_0x52e2f0['locale'];_0x52e2f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1599f6=>{if('formatBlock'!=_0x1599f6['type']&&'formatInline'!=_0x1599f6['type'])return;const {data:_0x4d5ff3}=_0x1599f6;if(_0x4d5ff3&&'pasteFormat'===_0x4d5ff3['commandName']){const _0x451a57=[],_0x1fbc07=_0x4d5ff3['commandParams'][0x0];for(const [_0x45ec84,_0x2eda8d]of Object['entries'](_0x1fbc07))_0x451a57['push'](ro(_0x52e2f0,_0x45ec84,_0x2eda8d));return _0x451a57['length']?{'type':'format','content':c(_0x4ab8f1,'*Set\x20format\x20to:*\x20%0',_0x451a57['join'](',\x20'))}:{'type':'format','content':c(_0x4ab8f1,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x5c9ae1,_0x59b68c,_0x407288){const _0x3fcf2e=_0x5c9ae1['locale']['t'],_0x1cb75a=_0x59b68c['split'](/(?=[A-Z])/)['join']('\x20'),_0x1fd53d=_0x3fcf2e(_0x1cb75a['charAt'](0x0)['toUpperCase']()+_0x1cb75a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x407288)return _0x1fd53d;if('fontColor'===_0x59b68c||'fontBackgroundColor'===_0x59b68c){const _0x105b12=_0x221ccf(_0x5c9ae1['config']['get']('fontColor.colors'))['find'](_0xfd4206=>_0xfd4206['model']==_0x407288);return _0x1fd53d+'\x20('+(_0x105b12?_0x3fcf2e(_0x105b12['label'])['toLowerCase']():_0x407288)+')';}if('fontSize'===_0x59b68c&&isNaN(parseFloat(_0x407288))){const _0x4d3a6b=_0x5c9ae1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5c9ae1['config']['get']('fontSize.options'))['find'](_0x4c8a16=>_0x4c8a16['model']==_0x407288);return _0x1fd53d+'\x20('+(_0x4d3a6b?_0x3fcf2e(_0x4d3a6b['title'])['toLowerCase']():_0x407288)+')';}return _0x1fd53d+'\x20('+_0x407288+')';}class nt extends _0x31fcb9{['_headingOptions'];['afterInit'](){const _0x3947e3=this['editor'];if(!_0x3947e3['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3947e3['config']['get']('heading.options');const _0x3b0ae1=_0x3947e3['locale'],_0x1a5022=_0x3947e3['plugins']['get']('TrackChangesEditing');_0x1a5022['enableDefaultAttributesIntegration']('heading');for(const _0x538e06 of this['_headingOptions'])'paragraph'!=_0x538e06['model']&&_0x1a5022['descriptionFactory']['registerElementLabel'](_0x538e06['model'],_0x39d757=>{const _0x8e66a5=this['_getHeadingLevel'](_0x538e06['model']);return null!==_0x8e66a5?_0x58ecc4(_0x39d757,_0x8e66a5):_0x341674(_0x39d757,_0x538e06['title']);});function _0x58ecc4(_0x309fa3,_0x5e600d){return c(_0x3b0ae1,'ELEMENT_HEADING',[_0x309fa3,_0x5e600d]);}function _0x341674(_0x3fd57f,_0x1c0e74){return c(_0x3b0ae1,'ELEMENT_HEADING_CUSTOM',[_0x3fd57f,_0x1c0e74]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34078c=this['editor'],_0x4ff06c=_0x34078c['locale'];function _0x3c5918(_0x4574d7,_0x27af99){return c(_0x4ff06c,'ELEMENT_HEADING_CUSTOM',[_0x4574d7,_0x27af99]);}_0x34078c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14cf80=>{if('formatBlock'!=_0x14cf80['type'])return;const {data:_0x59d0b0}=_0x14cf80;if(_0x59d0b0&&'heading'==_0x59d0b0['commandName']){const _0x58ce99=_0x59d0b0['commandParams'][0x0]['value'],_0x1b9a85=this['_getHeadingLevel'](_0x58ce99);if(null!==_0x1b9a85)return{'type':'format','content':c(_0x4ff06c,'*Change\x20to:*\x20%0',(_0x2b2fdf=0x1,_0x32ff45=_0x1b9a85,c(_0x4ff06c,'ELEMENT_HEADING',[_0x2b2fdf,_0x32ff45])))};const _0x26ac9b=this['_headingOptions']['find'](_0x392a9c=>_0x392a9c['model']===_0x58ce99)['title'];return{'type':'format','content':c(_0x4ff06c,'*Change\x20to:*\x20%0',_0x3c5918(0x1,_0x26ac9b))};}var _0x2b2fdf,_0x32ff45;});}['_getHeadingLevel'](_0x10e61b){const _0x3f8994=_0x10e61b['match'](/^heading(\d+)/);if(_0x3f8994)return _0x3f8994[0x1];const _0x119c7e=this['_headingOptions']?.['find'](_0x80be3f=>_0x80be3f['model']==_0x10e61b);if(_0x119c7e&&_0x119c7e['view']){const _0x1894a7=_0x119c7e['view'],_0x2bdaea=(_0x1894a7['name']??_0x1894a7)['match'](/^h(\d+)/);if(_0x2bdaea)return _0x2bdaea[0x1];}return null;}}class it extends _0x31fcb9{['afterInit'](){const _0x1a911f=this['editor'];if(!_0x1a911f['plugins']['has']('HighlightEditing'))return;const _0x223497=_0x1a911f['plugins']['get']('TrackChangesEditing'),_0x49c3ad=_0x1a911f['locale'];_0x223497['enableDefaultAttributesIntegration']('highlight'),_0x223497['registerInlineAttribute']('highlight'),_0x223497['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x49c3ad,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3d1412=this['editor'],_0x4ac208=_0x3d1412['locale'];_0x3d1412['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11fdb1=>{if('formatInline'!=_0x11fdb1['type'])return;const {data:_0x4d7da6}=_0x11fdb1;if(_0x4d7da6&&'highlight'==_0x4d7da6['commandName']){const _0x5919ab=_0x4ac208['t'],_0x527010=_0x4d7da6['commandParams'][0x0]['value'];if(_0x527010){const _0x2f3be0=_0x3d1412['config']['get']('highlight.options')['find'](_0xf8d724=>_0xf8d724['model']==_0x527010),_0x4b0fd0=_0x5919ab(_0x2f3be0['title'])['toLowerCase']();return{'type':'format','content':c(_0x4ac208,'*Set\x20highlight:*\x20%0',_0x4b0fd0),'color':{'value':_0x2f3be0['color'],'title':_0x2f3be0['title']}};}return{'type':'format','content':c(_0x4ac208,'*Remove\x20highlight*',c(_0x4ac208,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x31fcb9{['afterInit'](){const _0x1fb298=this['editor'];if(!_0x1fb298['plugins']['has']('HorizontalLineEditing'))return;_0x1fb298['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x35abca=_0x1fb298['plugins']['get']('TrackChangesEditing'),_0x58ac68=_0x1fb298['locale'];_0x35abca['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5b49d0=>c(_0x58ac68,'ELEMENT_HORIZONTAL_LINE',_0x5b49d0)),_0x1fb298['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3f813a,{writer:_0x4f416f,options:_0x5b5af2})=>{if(!_0x5b5af2['showSuggestionHighlights'])return null;const _0x3742f1=_0x4f416f['createContainerElement']('div'),_0x567429=_0x4f416f['createEmptyElement']('hr');return _0x4f416f['addClass']('ck-horizontal-line',_0x3742f1),_0x4f416f['insert'](_0x4f416f['createPositionAt'](_0x3742f1,0x0),_0x567429),_0x3742f1;},'converterPriority':'high'});}}class ot extends _0x31fcb9{['afterInit'](){const _0x5bc3cb=this['editor'];if(!_0x5bc3cb['plugins']['has']('HtmlEmbed'))return;const _0x5013b2=_0x5bc3cb['plugins']['get']('TrackChangesEditing'),_0x2d8a0f=_0x5bc3cb['locale'];_0x5013b2['descriptionFactory']['registerElementLabel']('rawHtml',_0x5e521a=>c(_0x2d8a0f,'ELEMENT_HTML_EMBED',_0x5e521a)),_0x5013b2['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5013b2['registerBlockAttribute']('value'),_0x5013b2['descriptionFactory']['registerDescriptionCallback'](_0x5a31ba=>{if('attribute'!=_0x5a31ba['type'])return;const {data:_0x5150a1}=_0x5a31ba;if(_0x5150a1&&'value'==_0x5150a1['key']&&_0x5a31ba['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x535c1d=c(_0x2d8a0f,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2d8a0f,'*Change\x20%0\x20content*',_0x535c1d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x556f3a=this['editor'],_0x49765d=_0x556f3a['locale'];_0x556f3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b51a6=>{if('formatBlock'!=_0x4b51a6['type'])return;const {data:_0x6a4bbb}=_0x4b51a6;if(_0x6a4bbb&&'htmlEmbed'==_0x6a4bbb['commandName']){const _0xd5dcbf=c(_0x49765d,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x49765d,'*Change\x20%0\x20content*',_0xd5dcbf)};}});}}class rt extends _0x31fcb9{['afterInit'](){const _0x6d0dde=this['editor'];if(!_0x6d0dde['plugins']['has']('ImageEditing'))return;const _0x34c7b3=_0x6d0dde['plugins']['get']('TrackChangesEditing'),_0x395156=_0x6d0dde['plugins']['get']('ImageUtils'),_0x57eb5a=_0x6d0dde['locale'];_0x34c7b3['enableCommand']('insertImage'),_0x34c7b3['descriptionFactory']['registerElementLabel']('imageBlock',_0x3d7679=>c(_0x57eb5a,'ELEMENT_IMAGE',_0x3d7679)),_0x34c7b3['descriptionFactory']['registerElementLabel']('imageInline',_0x438fa9=>c(_0x57eb5a,'ELEMENT_INLINE_IMAGE',_0x438fa9)),_0x34c7b3['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x57eb5a,'ELEMENT_CAPTION')),_0x6d0dde['plugins']['has']('ImageUploadEditing')&&_0x34c7b3['enableCommand']('uploadImage'),_0x6d0dde['plugins']['has']('ImageBlockEditing')&&_0x6d0dde['plugins']['has']('ImageInlineEditing')&&(_0x34c7b3['enableCommand']('imageTypeInline',(_0x2d966b,_0x105051)=>{const _0x298944=_0x395156['getClosestSelectedImageElement'](_0x6d0dde['model']['document']['selection']);_0x6d0dde['model']['change'](()=>{_0x34c7b3['markBlockFormat'](_0x298944,{'commandName':'imageTypeInline','commandParams':[_0x105051]},[],'convertBlockImageToInline');});}),_0x34c7b3['enableCommand']('imageTypeBlock',(_0x48efb3,_0x154609)=>{_0x6d0dde['model']['change'](_0x54f640=>{let _0x12ae5f=_0x395156['getClosestSelectedImageElement'](_0x6d0dde['model']['document']['selection']),_0x36d0d0=_0x54f640['createRangeOn'](_0x12ae5f);const _0x46d82a=_0x4595c5['fromPosition'](_0x36d0d0['start'],'toPrevious'),_0x579426=_0x4595c5['fromPosition'](_0x36d0d0['end'],'toNext');_0x34c7b3['forceDefaultExecution'](()=>_0x48efb3(_0x154609)),_0x12ae5f=_0x395156['getClosestSelectedImageElement'](_0x6d0dde['model']['document']['selection']),_0x36d0d0=_0x54f640['createRangeOn'](_0x12ae5f);const _0x2a1fd4=_0x54f640['createRange'](_0x46d82a,_0x579426);_0x46d82a['detach'](),_0x579426['detach'](),_0x34c7b3['markBlockFormat'](_0x12ae5f,{'commandName':'imageTypeInline','commandParams':[_0x154609]},[],'convertInlineImageToBlock'),_0x2a1fd4['start']['isBefore'](_0x36d0d0['start'])&&_0x34c7b3['markInsertion'](_0x54f640['createRange'](_0x2a1fd4['start'],_0x36d0d0['start']),'convertInlineImageToBlock'),_0x36d0d0['end']['isBefore'](_0x2a1fd4['end'])&&_0x34c7b3['markInsertion'](_0x54f640['createRange'](_0x36d0d0['end'],_0x2a1fd4['end']),'convertInlineImageToBlock');});}),_0x34c7b3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x34c7b3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x34c7b3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x34c7b3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x34c7b3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x34c7b3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x201667])=>{const _0x5eceab=_0x34c7b3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x298a98=_0x201667['start'],_0xfa084c=_0x201667['end'];const _0x5ca829=_0x6d0dde['model']['schema']['getNearestSelectionRange'](_0x298a98,'backward'),_0x48c33e=_0x6d0dde['model']['schema']['getNearestSelectionRange'](_0xfa084c,'forward');_0x5ca829['isCollapsed']&&(_0x298a98=_0x5ca829['start']),_0x48c33e['isCollapsed']&&(_0xfa084c=_0x48c33e['end']),_0x5eceab([_0x6d0dde['model']['createRange'](_0x298a98,_0xfa084c)]);}),_0x34c7b3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5e3f0c),_0x34c7b3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5e3f0c)),_0x6d0dde['plugins']['has']('ImageCaptionEditing')&&(_0x34c7b3['enableCommand']('toggleImageCaption',(_0x2fa3be,_0xf775be)=>{const _0x33265b=_0x6d0dde['plugins']['get']('ImageCaptionUtils');let _0x5f1773=_0x395156['getClosestSelectedImageElement'](_0x6d0dde['model']['document']['selection']),_0x382da2=_0x33265b['getCaptionFromImageModelElement'](_0x5f1773);_0x6d0dde['model']['change'](()=>{if(_0x382da2)return void _0x34c7b3['markDeletion'](_0x6d0dde['model']['createRangeOn'](_0x382da2));const _0x40c2e8=_0x395156['isBlockImage'](_0x5f1773);_0x2fa3be(_0xf775be),_0x5f1773=_0x395156['getClosestSelectedImageElement'](_0x6d0dde['model']['document']['selection']),_0x382da2=_0x33265b['getCaptionFromImageModelElement'](_0x5f1773),_0x34c7b3['markInsertion'](_0x6d0dde['model']['createRangeOn'](_0x382da2),_0x40c2e8?null:'imageCaption');});}),_0x34c7b3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5e3f0c));const _0x494d5e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x22491e(_0x14eaa4,_0x4f0476){const _0xbcf824=_0x494d5e['findIndex'](({type:_0x1c0bec,subType:_0x161af5})=>_0x14eaa4['type']==_0x1c0bec&&_0x14eaa4['subType']==_0x161af5),_0x2586f5=_0x494d5e['findIndex'](({type:_0x2e9bdd,subType:_0x35805f})=>_0x4f0476['type']==_0x2e9bdd&&_0x4f0476['subType']==_0x35805f);if(_0xbcf824<0x0||_0x2586f5<0x0)return!0x1;const _0x1bd640=_0x14eaa4['getFirstRange'](),_0xbad89d=_0x4f0476['getFirstRange']();if((0x0==_0xbcf824||0x1==_0xbcf824)&&0x2==_0x2586f5&&_0x1bd640['isIntersecting'](_0xbad89d))return!0x0;if(0x2==_0xbcf824&&0x3==_0x2586f5){const _0x5a650d=_0x34c7b3['_findSuggestions'](_0x1bd640,'insertion')['filter'](({suggestion:_0x4230e1,meta:_0x6be3b})=>_0x6be3b['isOwn']&&'convertInlineImageToBlock'==_0x4230e1['subType']);if(_0x5a650d['length']>0x1&&_0xbad89d['end']['isEqual'](_0x1bd640['start']))return!0x0;if(0x1==_0x5a650d['length']&&(_0x1bd640['start']['isEqual'](_0xbad89d['end'])||_0x1bd640['end']['isEqual'](_0xbad89d['start'])))return!0x0;}if(0x3==_0xbcf824&&0x3==_0x2586f5&&_0x1bd640['start']['isBefore'](_0xbad89d['start'])){const _0x530d8a=_0x1bd640['end']['nodeAfter'],_0xd286d5=_0xbad89d['start']['nodeBefore'];return _0x395156['isBlockImage'](_0x530d8a)&&_0x530d8a===_0xd286d5;}return!0x1;}function _0x5e3f0c(_0x9d5f82,_0x2d49b5){return _0x22491e(_0x9d5f82,_0x2d49b5)?[_0x9d5f82,_0x2d49b5]:_0x22491e(_0x2d49b5,_0x9d5f82)?[_0x2d49b5,_0x9d5f82]:null;}_0x6d0dde['plugins']['has']('ImageResize')&&(_0x34c7b3['enableDefaultAttributesIntegration']('resizeImage'),_0x34c7b3['registerBlockAttribute']('resizedWidth'),_0x34c7b3['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x57eb5a,'FORMAT_IMAGE_SIZE'))),_0x6d0dde['plugins']['has']('ImageTextAlternativeEditing')&&(_0x34c7b3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x34c7b3['registerBlockAttribute']('alt')),_0x6d0dde['plugins']['has']('PictureEditing')&&(_0x34c7b3['registerBlockAttribute']('sources'),_0x34c7b3['descriptionFactory']['registerDescriptionCallback'](_0x39911f=>{if('attribute'!=_0x39911f['type'])return;const {data:_0x474a81}=_0x39911f;return _0x474a81&&'sources'==_0x474a81['key']?{'type':'format','content':''}:void 0x0;})),_0x6d0dde['plugins']['has']('ImageSizeAttributes')&&(_0x34c7b3['registerBlockAttribute']('width'),_0x34c7b3['registerBlockAttribute']('height'),_0x34c7b3['descriptionFactory']['registerDescriptionCallback'](_0x5bed38=>{if('attribute'!=_0x5bed38['type'])return;const {data:_0x2d27cb}=_0x5bed38;return!_0x2d27cb||'width'!=_0x2d27cb['key']&&'height'!=_0x2d27cb['key']?void 0x0:{'type':'format','content':''};})),_0x34c7b3['descriptionFactory']['registerDescriptionCallback'](_0x560328=>{if(!!_0x494d5e['find'](({type:_0x367cb3,subType:_0x460b8d})=>_0x560328['type']==_0x367cb3&&_0x560328['subType']==_0x460b8d))return _0x560328['previous']?{}:void 0x0;}),_0x34c7b3['descriptionFactory']['registerDescriptionCallback'](_0x1a60d5=>{if('insertion'==_0x1a60d5['type']||'deletion'==_0x1a60d5['type']){const _0x184504=_0x1a60d5['getContainedElement']();if(_0x184504&&_0x184504['is']('element','caption'))return{'type':'insertion'==_0x1a60d5['type']?'addObject':'removeObject','element':_0x184504,'quantity':0x1};}}),_0x34c7b3['descriptionFactory']['registerDescriptionCallback'](_0x2ca0a3=>'formatBlock'==_0x2ca0a3['type']&&'convertInlineImageToBlock'==_0x2ca0a3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2ca0a3['type']&&'convertBlockImageToInline'==_0x2ca0a3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x34c7b3['descriptionFactory']['registerDescriptionCallback'](_0x4bd098=>{if('attribute'!=_0x4bd098['type'])return;const {data:_0x1d9f02}=_0x4bd098;if(!_0x1d9f02||'alt'!=_0x1d9f02['key'])return;const _0x3f7175=_0x1d9f02['newValue'];return _0x3f7175?{'type':'format','content':c(_0x57eb5a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f7175+'\x22')}:{'type':'format','content':c(_0x57eb5a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x176ee9=this['editor'],_0x50f568=_0x176ee9['locale'];_0x176ee9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x12910a=>{if('formatBlock'!=_0x12910a['type']&&'formatInline'!=_0x12910a['type'])return;const {data:_0x4fc08f}=_0x12910a;if(_0x4fc08f){if('imageTextAlternative'==_0x4fc08f['commandName']){const _0x494819=_0x4fc08f['commandParams'][0x0]['newValue'];return _0x494819?{'type':'format','content':c(_0x50f568,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x494819+'\x22')}:{'type':'format','content':c(_0x50f568,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4fc08f['commandName']){const _0x2a77a8=_0x4fc08f['commandParams'][0x0]['width'];return _0x2a77a8?{'type':'format','content':c(_0x50f568,'*Set\x20image\x20width:*\x20%0',_0x2a77a8)}:{'type':'format','content':c(_0x50f568,'*Reset\x20image\x20width*')};}}});}}class at extends _0x31fcb9{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x355dda=this['editor']['locale'],_0x46f5d8=this['editor']['plugins']['get']('TrackChangesEditing');_0x46f5d8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x46f5d8['registerBlockAttribute']('src'),_0x46f5d8['descriptionFactory']['registerDescriptionCallback'](_0x11121f=>{if('attribute'!=_0x11121f['type'])return;const {data:_0x350968}=_0x11121f;return _0x350968&&'src'==_0x350968['key']?_0x350968['newValue']&&_0x350968['oldValue']?{'type':'format','content':c(_0x355dda,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1a6cbe=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a6cbe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1a6cbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a6cbe['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1a6cbe['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54c0a5=this['editor'],_0x554fba=_0x54c0a5['locale'];_0x54c0a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x70fee9=>{if('formatBlock'!=_0x70fee9['type']&&'formatInline'!=_0x70fee9['type'])return;const {data:_0x49e548}=_0x70fee9;if(!_0x49e548||'replaceImageSource'!=_0x49e548['commandName'])return;return{'type':'format','content':c(_0x554fba,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x31fcb9{['afterInit'](){const _0x3ebbf2=this['editor'];if(!_0x3ebbf2['plugins']['has']('ImageStyleEditing'))return;const _0x531c48=_0x3ebbf2['plugins']['get']('TrackChangesEditing'),_0x333923=_0x3ebbf2['plugins']['get']('ImageUtils'),_0x2d4afb={};_0x531c48['enableCommand']('imageStyle',(_0x357031,_0x496a76)=>{const _0x1fa339=_0x3ebbf2['plugins']['get']('Users')['me'],_0x2e71d1=_0x3ebbf2['commands']['get']('imageStyle');let _0x1cc470=_0x333923['getClosestSelectedImageElement'](_0x3ebbf2['model']['document']['selection']),_0x2210b1=_0x3ebbf2['model']['createRangeOn'](_0x1cc470),_0x32151e=_0x2e71d1['value'];if(_0x32151e==_0x496a76['value'])return;const _0x3fecf1={'commandName':'imageStyle','commandParams':[_0x496a76],'formatGroupId':_0x4597bc()};_0x3ebbf2['model']['change'](()=>{if(_0x531c48['getSuggestions']()['filter'](_0x2b0835=>_0x2b0835['isInContent']&&_0x1fa339==_0x2b0835['author']&&('formatBlock'==_0x2b0835['type']||'formatInline'==_0x2b0835['type'])&&('imageStylePreApply'==_0x2b0835['subType']||'imageStylePostApply'==_0x2b0835['subType'])&&_0x2b0835['getFirstRange']()['isEqual'](_0x2210b1))['forEach'](_0x26057a=>_0x531c48['discardSuggestion'](_0x26057a['head'])),_0x1cc470=_0x333923['getClosestSelectedImageElement'](_0x3ebbf2['model']['document']['selection']),_0x2210b1=_0x3ebbf2['model']['createRangeOn'](_0x1cc470),_0x2e71d1['refresh'](),_0x3ebbf2['commands']['get']('imageTypeInline')['refresh'](),_0x3ebbf2['commands']['get']('imageTypeBlock')['refresh'](),_0x32151e=_0x2e71d1['value'],_0x32151e!=_0x496a76['value'])return _0x333923['isInlineImage'](_0x1cc470)&&_0x2e71d1['shouldConvertImageType'](_0x496a76['value'],_0x1cc470)?(_0x357031({..._0x496a76,'setImageSizes':!0x1}),_0x1cc470=_0x333923['getClosestSelectedImageElement'](_0x3ebbf2['model']['document']['selection']),void _0x531c48['markBlockFormat'](_0x1cc470,{..._0x3fecf1,'commandReversedParams':[{'value':_0x32151e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x333923['isBlockImage'](_0x1cc470)?_0x531c48['markBlockFormat'](_0x1cc470,_0x3fecf1,[],'imageStylePostApply'):_0x531c48['markInlineFormat'](_0x2210b1,_0x3fecf1,'imageStylePostApply'));});});for(const _0x43eeda of _0x3ebbf2['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2d4afb[_0x43eeda['name']]=_0x43eeda['title']['toLowerCase']();_0x531c48['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x531c48['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x531c48['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x531c48['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x54f7fd])=>{_0x333923['setImageNaturalSizeAttributes'](_0x54f7fd['getContainedElement']());}),_0x531c48['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1ab40a,_0x303392)=>{_0x531c48['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1ab40a,{'commandName':_0x303392['commandName'],'commandParams':_0x303392['commandReversedParams']});}),_0x531c48['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5906fc,_0x3044de){if(_0xd85c4(_0x5906fc,_0x3044de))return[_0x5906fc,_0x3044de];if(_0xd85c4(_0x3044de,_0x5906fc))return[_0x3044de,_0x5906fc];return null;});const _0x3e29f7=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd85c4(_0x2a9726,_0x114105){const _0x144342=_0x3e29f7['findIndex'](({type:_0x9f99a6,subType:_0x4a57e4})=>_0x2a9726['type']==_0x9f99a6&&_0x2a9726['subType']==_0x4a57e4),_0x1f0d68=_0x3e29f7['findIndex'](({type:_0x5c8d29,subType:_0x334b2a})=>_0x114105['type']==_0x5c8d29&&_0x114105['subType']==_0x334b2a);if(_0x144342<0x0||_0x1f0d68<0x0)return!0x1;const _0x1bf407=_0x2a9726['getFirstRange'](),_0x4702c5=_0x114105['getFirstRange']();if((0x0==_0x144342||0x1==_0x144342)&&0x2==_0x1f0d68&&_0x1bf407['isIntersecting'](_0x4702c5))return!0x0;if(0x2==_0x144342&&0x3==_0x1f0d68){const _0xf77ee5=_0x531c48['_findSuggestions'](_0x1bf407,'insertion')['filter'](({suggestion:_0x153a7e,meta:_0x3c802a})=>_0x3c802a['isOwn']&&'convertInlineImageToBlock'==_0x153a7e['subType']);if(_0xf77ee5['length']>0x1&&_0x4702c5['end']['isEqual'](_0x1bf407['start']))return!0x0;if(0x1==_0xf77ee5['length']&&(_0x1bf407['start']['isEqual'](_0x4702c5['end'])||_0x1bf407['end']['isEqual'](_0x4702c5['start'])))return!0x0;}if(0x3==_0x144342&&0x3==_0x1f0d68&&_0x1bf407['start']['isBefore'](_0x4702c5['start'])){const _0x4f8a0d=_0x1bf407['end']['nodeAfter'],_0x166263=_0x4702c5['start']['nodeBefore'];return _0x333923['isBlockImage'](_0x4f8a0d)&&_0x4f8a0d===_0x166263;}return!0x1;}_0x3ebbf2['model']['document']['registerPostFixer'](()=>{let _0x3d7657=!0x1;const _0x5551c1=Array['from'](_0x3ebbf2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe0f00b,data:_0x2e7ebf}of _0x5551c1){const {group:_0x3265c9,type:_0x4a2f32,subType:_0x4f94d7,id:_0x32993e}=_0x531c48['_splitMarkerName'](_0xe0f00b);if('suggestion'==_0x3265c9&&_0x531c48['hasSuggestion'](_0x32993e)){if('formatBlock'==_0x4a2f32&&('imageStylePreApply'==_0x4f94d7||'imageStylePostApply'==_0x4f94d7)){const _0x26bf86=_0x531c48['getSuggestion'](_0x32993e);if(_0x2e7ebf['newRange']){const _0x2a233e=_0x26bf86['getFirstRange']()['getContainedElement']();if(_0x333923['isBlockImage'](_0x2a233e))continue;_0x531c48['discardSuggestion'](_0x26bf86),_0x3d7657=!0x0;}}if('insertion'==_0x4a2f32&&'imageCaption'==_0x4f94d7&&!_0x2e7ebf['newRange']){const _0x1ee3e0=_0x531c48['getSuggestion'](_0x32993e);_0x1ee3e0['next']&&_0x1ee3e0['next']['isInContent']&&(_0x531c48['discardSuggestion'](_0x1ee3e0['next']),_0x3d7657=!0x0);}}}return _0x3d7657;}),this['_registerLegacyDescription'](_0x2d4afb);}['_registerLegacyDescription'](_0xc71a67){const _0x59e8fb=this['editor'],_0x2d1825=_0x59e8fb['locale'];_0x59e8fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x356565=>{if('formatBlock'!=_0x356565['type']&&'formatInline'!=_0x356565['type'])return;const {data:_0x4d530a}=_0x356565;if(!_0x4d530a||'imageStyle'!=_0x4d530a['commandName'])return;const _0x511e7a=_0x4d530a['commandParams'][0x0]['value'];return _0x29c9fe('side'===_0x511e7a?c(_0x2d1825,'FORMAT_SIDE_IMAGE'):_0xc71a67[_0x511e7a]||_0x511e7a);function _0x29c9fe(_0x124eeb){return{'type':'format','content':c(_0x2d1825,'*Format:*\x20%0',_0x124eeb)};}});}}class ut extends _0x31fcb9{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x445736){super(_0x445736),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x40c27e=this['editor'],_0x181352=_0x40c27e['commands']['get']('importWord'),_0x467d42=_0x40c27e['commands']['get']('trackChanges');_0x181352&&(_0x181352['on']('execute',(_0x4af582,[,_0x348ed0])=>{this['_trackChangesValueDuringImport']=_0x467d42['value'],_0x348ed0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x181352,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x181352,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x467d42['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x40c27e['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xae1468,_0x24b77d){const {suggestions:_0xe81c60}=_0x24b77d,_0x3ea98e=this['editor']['commands']['get']('trackChanges'),_0x53d183=_0x3ea98e['value'];this['_trackChangesValueDuringImport']!==_0x53d183&&(_0x3ea98e['execute'](),this['_trackChangesExecuted']=!0x0),_0xe81c60&&_0xe81c60['forEach'](({id:_0xcc2d00,type:_0x1f01e6,author:_0x25ef26,created_at:_0x5ef941})=>{const _0x47bfbe={'id':_0xcc2d00,'type':_0x1f01e6,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x25ef26,'createdAt':_0x5ef941?new Date(_0x5ef941):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x47bfbe);});}}class ft extends _0x31fcb9{['afterInit'](){const _0x30a19d=this['editor'],_0x276097=_0x30a19d['plugins']['get']('TrackChangesEditing');if(_0x30a19d['plugins']['has']('IndentEditing')&&(_0x276097['enableCommand']('indent'),_0x276097['enableCommand']('outdent')),_0x30a19d['plugins']['has']('IndentBlock')){for(const _0x5ebd60 of['indentBlock','outdentBlock'])_0x276097['enableDefaultAttributesIntegration'](_0x5ebd60);}const _0x130dfe=_0x30a19d['locale'];_0x276097['registerBlockAttribute']('blockIndent'),_0x276097['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x130dfe,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bc201=this['editor'],_0x4692c6=_0x1bc201['locale'],_0x938079=_0x1bc201['plugins']['get']('TrackChangesEditing');_0x938079['descriptionFactory']['registerDescriptionCallback'](_0x14c79e=>{if('formatBlock'!=_0x14c79e['type'])return;const {data:_0x4c9c4a}=_0x14c79e;if(!_0x4c9c4a)return;if('indentBlock'!=_0x4c9c4a['commandName']&&'outdentBlock'!=_0x4c9c4a['commandName'])return;const _0x545add=_0x14c79e['getItems']()[0x0],_0xca0c70=_0x938079['descriptionFactory']['getItemLabel'](_0x545add);return'indentBlock'==_0x4c9c4a['commandName']?{'type':'format','content':c(_0x4692c6,'*Indent:*\x20%0',_0xca0c70)}:'outdentBlock'==_0x4c9c4a['commandName']?{'type':'format','content':c(_0x4692c6,'*Outdent:*\x20%0',_0xca0c70)}:void 0x0;});}}class ht extends _0x31fcb9{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x31fcb9{['afterInit'](){const _0x1d366b=this['editor'];if(!_0x1d366b['plugins']['has']('LinkEditing'))return;const _0x5b041b=_0x1d366b['plugins']['get']('TrackChangesEditing'),_0x249a55=_0x1d366b['commands']['get']('link');_0x5b041b['enableDefaultAttributesIntegration']('link'),_0x5b041b['enableDefaultAttributesIntegration']('unlink'),_0x5b041b['registerInlineAttribute']('linkHref');for(const _0x54de1c of _0x249a55['manualDecorators'])_0x5b041b['registerInlineAttribute'](_0x54de1c['id']),_0x5b041b['descriptionFactory']['registerAttributeLabel'](_0x54de1c['id'],'link\x20('+_0x54de1c['label']['toLowerCase']()+')');_0x5b041b['descriptionFactory']['registerDescriptionCallback'](_0x1881bc=>{if('attribute'!=_0x1881bc['type'])return;const {data:_0x3461b7}=_0x1881bc;if(!_0x3461b7||'linkHref'!=_0x3461b7['key'])return;const _0x4becb6=_0x3461b7['newValue'],_0x78ad05=_0x1d366b['locale'];return{'type':'format','content':null==_0x4becb6?c(_0x78ad05,'*Remove\x20link*'):c(_0x78ad05,'*Set\x20link:*\x20%0','\x22'+_0x4becb6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a94e5=this['editor'],_0x493e0e=_0x2a94e5['locale'];_0x2a94e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c8c07=>{if('formatInline'!=_0x3c8c07['type'])return;const {data:_0x250a4b}=_0x3c8c07;if(_0x250a4b){if('link'==_0x250a4b['commandName']){const _0x3c6ee1=_0x250a4b['commandParams'][0x0];return{'type':'format','content':c(_0x493e0e,'*Set\x20link:*\x20%0','\x22'+_0x3c6ee1+'\x22')};}return'unlink'==_0x250a4b['commandName']?{'type':'format','content':c(_0x493e0e,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x31fcb9{['afterInit'](){const _0xd6ee4f=this['editor'],_0x52672a=_0xd6ee4f['locale'];if(!_0xd6ee4f['plugins']['has']('LegacyListEditing'))return;const _0x1f9838=_0xd6ee4f['plugins']['get']('TrackChangesEditing'),_0x5461b5=_0xd6ee4f['plugins']['has']('LegacyTodoListEditing');function _0x50d20d(_0x50c570){return()=>{const _0x4ce6b3=_0xd6ee4f['model']['document']['selection'],_0xa38567=_0xd6ee4f['commands']['get'](_0x50c570);if(_0xa38567['value'])return void _0xd6ee4f['execute']('paragraph',{});const _0xa26fe1=_0x50c570['slice'](0x0,-0x4),_0x2a31da=function(_0x1f368a,_0x5d25f5,_0x5e15f5){let _0x586eb3=Array['from'](_0x1f368a)['filter'](_0x35717a=>function(_0x37a2f9,_0x2c5a25){return _0x2c5a25['checkChild'](_0x37a2f9['parent'],'listItem')&&!_0x2c5a25['isObject'](_0x37a2f9);}(_0x35717a,_0x5e15f5));_0x586eb3=_0x586eb3['filter'](_0x12cf92=>!_0x12cf92['is']('element','listItem')||_0x12cf92['getAttribute']('listType')!=_0x5d25f5);const _0x6d4cf9=new Set();for(const _0x189959 of _0x586eb3)_0x189959['is']('element','listItem')?_0x6d4cf9['add'](Le(_0x189959)):_0x6d4cf9['add'](_0x189959);return Array['from'](_0x6d4cf9);}(_0x4ce6b3['getSelectedBlocks'](),_0xa26fe1,_0xd6ee4f['model']['schema']);_0xd6ee4f['model']['change'](()=>{for(const _0xc3aaaa of _0x2a31da)_0x1f9838['markBlockFormat'](_0xc3aaaa,{'commandName':_0x50c570,'commandParams':[{'forceValue':!_0xa38567['value']}],'formatGroupId':'blockName'},Ee(_0xc3aaaa));});};}function _0x3f979f(_0x589702){return()=>{const _0x81742a=function(_0x2e5718){let _0x2abe54=Array['from'](_0x2e5718);const _0x527fa6=_0x2abe54['findIndex'](_0x382124=>'listItem'!=_0x382124['name']);return _0x527fa6>-0x1&&(_0x2abe54=_0x2abe54['slice'](0x0,_0x527fa6)),_0x2abe54;}(_0xd6ee4f['model']['document']['selection']['getSelectedBlocks']()),_0xa76c13=_0xd6ee4f['model']['createRange'](_0xd6ee4f['model']['createPositionAt'](_0x81742a[0x0],'before'),_0xd6ee4f['model']['createPositionAt'](_0x81742a[_0x81742a['length']-0x1],'end'));_0xd6ee4f['model']['change'](()=>{_0x1f9838['markBlockFormat'](_0xa76c13,{'commandName':_0x589702,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2393c3){const _0xb84fbc=new Set();for(const _0x2c895e of _0x2393c3){let _0x50f094=_0x2c895e['nextSibling'];for(;_0x50f094&&_0x50f094['getAttribute']('listIndent')>_0x2c895e['getAttribute']('listIndent');)_0xb84fbc['add'](_0x50f094),_0x50f094=_0x50f094['nextSibling'];}return Array['from'](_0xb84fbc);}(_0x81742a));});};}_0x1f9838['enableCommand']('numberedList',_0x50d20d('numberedList')),_0x1f9838['enableCommand']('bulletedList',_0x50d20d('bulletedList')),_0x5461b5&&_0x1f9838['enableCommand']('todoList',_0x50d20d('todoList')),_0x1f9838['enableCommand']('indentList',_0x3f979f('indentList')),_0x1f9838['enableCommand']('outdentList',_0x3f979f('outdentList')),_0x5461b5&&_0x1f9838['enableCommand']('checkTodoList',()=>{const _0x42e32e=_0xd6ee4f['commands']['get']('checkTodoList'),_0xbd6813=Array['from'](_0x42e32e['_selectedElements']);_0xbd6813['filter'](_0x144b3b=>_0x144b3b['getAttribute']('todoListChecked')!=_0x42e32e['value']),_0xd6ee4f['model']['change'](()=>{for(const _0x53c5af of _0xbd6813)_0x1f9838['markBlockFormat'](_0x53c5af,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x42e32e['value']}]});});}),_0x1f9838['descriptionFactory']['registerElementLabel']('listItem',_0x32bd68=>c(_0x52672a,'ELEMENT_LIST_ITEM',_0x32bd68)),_0x1f9838['descriptionFactory']['registerDescriptionCallback'](_0x4be96f=>{if('formatBlock'!=_0x4be96f['type']&&'formatInline'!=_0x4be96f['type'])return;const {data:_0x533be3}=_0x4be96f;if(_0x533be3){if('numberedList'==_0x533be3['commandName']||'bulletedList'==_0x533be3['commandName']||'todoList'==_0x533be3['commandName'])switch(_0x533be3['commandName']['replace']('List','')){case'bulleted':return _0x1db3b3(c(_0x52672a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1db3b3(c(_0x52672a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1db3b3(c(_0x52672a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x533be3['commandName'])return{'type':'format','content':c(_0x52672a,'*Indent:*\x20%0',c(_0x52672a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x533be3['commandName'])return{'type':'format','content':c(_0x52672a,'*Outdent:*\x20%0',c(_0x52672a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x533be3['commandName'])return _0x533be3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x52672a,'*Check\x20item*')}:{'type':'format','content':c(_0x52672a,'*Uncheck\x20item*')};}function _0x1db3b3(_0x32c8fe){return{'type':'format','content':c(_0x52672a,'*Change\x20to:*\x20%0',_0x32c8fe)};}});}}function Le(_0x151bc3){const _0x5a466e=_0x151bc3['getAttribute']('listIndent');if(0x0==_0x5a466e)return _0x151bc3;let _0x47fe8a=_0x151bc3;for(;_0x151bc3['previousSibling']&&_0x151bc3['previousSibling']['is']('element','listItem');){const _0x603bd0=_0x151bc3['previousSibling']['getAttribute']('listIndent');if(_0x603bd0==_0x5a466e)_0x47fe8a=_0x151bc3['previousSibling'];else{if(_0x603bd0<_0x5a466e)break;}_0x151bc3=_0x151bc3['previousSibling'];}return _0x47fe8a;}function Ee(_0x55e2df){const _0x5d1277=[];if(_0x55e2df['is']('element','listItem')&&_0x55e2df['getAttribute']('listIndent')>0x0){let _0x420cb9=_0x55e2df['nextSibling'];for(;_0x420cb9&&'listItem'==_0x420cb9['name']&&_0x420cb9['getAttribute']('listIndent')==_0x55e2df['getAttribute']('listIndent');)_0x5d1277['push'](_0x420cb9),_0x420cb9=_0x420cb9['nextSibling'];}return _0x5d1277;}class Q extends _0x31fcb9{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x10fe82=this['editor']['config']['get']('list.properties'),_0x11cb4a=this['editor']['plugins']['get']('TrackChangesEditing');_0x10fe82['styles']&&_0x11cb4a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x10fe82['reversed']&&_0x11cb4a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x10fe82['startIndex']&&_0x11cb4a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x11cb4a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x20528c,_0x19942f={}){const _0x3cc0c7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x584cf6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3cc0c7['markMultiRangeBlockFormat'](_0x584cf6,{'commandName':'listStyle','commandParams':[{'type':_0x19942f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x208e39,_0x45d719={}){const _0xc85e69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d7509=this['_getSuggestionBlocks'](_0x1fd74e=>_0x1fd74e['is']('element','listItem')&&'numbered'===_0x1fd74e['getAttribute']('listType'));if(_0x3d7509['length']<0x1)return;const _0x24502a=_0x3d7509['map'](_0x2f85a3=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2f85a3,'before'),this['editor']['model']['createPositionAt'](_0x2f85a3,0x0)));this['editor']['model']['change'](()=>{_0xc85e69['markMultiRangeBlockFormat'](_0x24502a,{'commandName':'listReversed','commandParams':[{'reversed':_0x45d719['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x329ccc,_0x3d6a13={}){const _0x4b449e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d2f4d=this['_getSuggestionBlocks'](_0x324517=>_0x324517['is']('element','listItem')&&'numbered'===_0x324517['getAttribute']('listType'));if(_0x4d2f4d['length']<0x1)return;const _0x485b99=_0x4d2f4d['map'](_0x3fe43c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3fe43c,'before'),this['editor']['model']['createPositionAt'](_0x3fe43c,0x0)));this['editor']['model']['change'](()=>{_0x4b449e['markMultiRangeBlockFormat'](_0x485b99,{'commandName':'listStart','commandParams':[{'startIndex':_0x3d6a13['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x468e71){if('formatBlock'!=_0x468e71['type']&&'formatInline'!=_0x468e71['type'])return;const _0x5b5427=this['editor']['locale'],{data:_0x533b2e}=_0x468e71;if(!_0x533b2e)return;let _0x9551da,_0x39a24e;switch(_0x533b2e['commandName']){case'listStyle':_0x9551da='*Change\x20to:*\x20%0',_0x39a24e={'type':'format','content':c(_0x5b5427,_0x9551da,c(_0x5b5427,this['_getTranslationKeyForListStyle'](_0x533b2e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x9551da=_0x533b2e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39a24e={'type':'format','content':c(_0x5b5427,_0x9551da)};break;case'listStart':_0x9551da='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39a24e={'type':'format','content':c(_0x5b5427,_0x9551da,_0x533b2e['commandParams'][0x0]['startIndex'])};}return _0x39a24e;}['_getSuggestionBlocksForListStyle'](){const _0x159f03=this['editor']['plugins']['get']('LegacyListUtils');let _0x3284f8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3284f8[0x0]?.['is']('element','listItem')&&_0x3284f8['unshift'](..._0x159f03['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3284f8[_0x3284f8['length']-0x1]?.['is']('element','listItem')&&_0x3284f8['push'](..._0x159f03['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3284f8=[...new Set(_0x3284f8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3284f8=_0x3284f8['filter'](_0x46e47c=>_0x46e47c['is']('element','listItem'))),_0x3284f8;}['_getSuggestionBlocks'](_0x253ef4){const _0xae5af7=this['editor']['plugins']['get']('LegacyListUtils');let _0x7e725f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x253ef4)['map'](_0x3c6770=>{const _0x44813a=this['editor']['model']['createPositionAt'](_0x3c6770,0x0);return[..._0xae5af7['getSiblingNodes'](_0x44813a,'backward'),..._0xae5af7['getSiblingNodes'](_0x44813a,'forward')];})['flat']();return _0x7e725f=[...new Set(_0x7e725f)],_0x7e725f;}['_getTranslationKeyForListStyle'](_0x5e0c29){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5e0c29)||'default')['toUpperCase']()+'_LIST_'+_0x5e0c29['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x31fcb9{['afterInit'](){const _0x179360=this['editor'];if(!_0x179360['plugins']['has']('MediaEmbedEditing'))return;const _0x50ea1b=_0x179360['plugins']['get']('TrackChangesEditing'),_0x4348d3=_0x179360['locale'];_0x50ea1b['enableCommand']('mediaEmbed'),_0x50ea1b['descriptionFactory']['registerElementLabel']('media',_0x3b287e=>c(_0x4348d3,'ELEMENT_MEDIA',_0x3b287e)),_0x179360['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xc29d8a,{writer:_0x3d62a4,options:_0x4259e8})=>{if(_0x4259e8['showSuggestionHighlights'])return _0x3d62a4['createEmptyElement']('div');},'converterPriority':'high'}),_0x179360['data']['downcastDispatcher']['on']('attribute:url:media',(_0x7f3f6c,_0x5a286a,_0x5294b8)=>{_0x5294b8['options']['showSuggestionHighlights']&&_0x7f3f6c['stop']();},{'priority':'high'});}}class pt extends _0x31fcb9{['afterInit'](){const _0x5daf6c=this['editor'];_0x5daf6c['plugins']['has']('MentionEditing')&&_0x5daf6c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x31fcb9{['afterInit'](){const _0x1e1fa0=this['editor'];if(!_0x1e1fa0['plugins']['has']('MergeFieldsEditing'))return;const _0x545495=_0x1e1fa0['plugins']['get']('TrackChangesEditing'),_0xc633a3=_0x1e1fa0['locale'];_0x545495['enableCommand']('insertMergeField'),_0x545495['enableCommand']('insertMergeFieldBlock'),_0x545495['enableCommand']('insertMergeFieldImage'),_0x545495['descriptionFactory']['registerElementLabel']('mergeField',_0x42de6b=>c(_0xc633a3,'ELEMENT_MERGE_FIELD',_0x42de6b)),_0x545495['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2f56c0=>c(_0xc633a3,'ELEMENT_MERGE_FIELD',_0x2f56c0)),_0x545495['descriptionFactory']['registerDescriptionCallback'](_0x1daf4d=>{if('insertion'!=_0x1daf4d['type']&&'deletion'!=_0x1daf4d['type'])return;const _0x5ce239=_0x1daf4d['getContainedElement']();if(null==_0x5ce239)return;const _0x5e604c=_0x1e1fa0['plugins']['get']('MergeFieldsEditing');let _0x301c26;switch(_0x5e604c['getMergeFieldType'](_0x5ce239)){case null:return;case'image':{const _0x4c463d=_0x5e604c['unwrapAffixes'](_0x5ce239['getAttribute']('src'));_0x301c26=_0x5e604c['getLabel'](_0x4c463d)||_0x4c463d;break;}default:{const _0x191496=_0x5ce239['getAttribute']('id');_0x301c26=_0x5e604c['getLabel'](_0x191496)||_0x191496;break;}}return'insertion'==_0x1daf4d['type']?{'type':'insertion','content':c(_0xc633a3,'*Insert:*\x20%0','\x22'+_0x301c26+'\x22\x20'+c(_0xc633a3,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xc633a3,'*Remove:*\x20%0','\x22'+_0x301c26+'\x22\x20'+c(_0xc633a3,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x31fcb9{['afterInit'](){const _0x525718=this['editor'],_0x16a21e=_0x525718['plugins']['get']('TrackChangesEditing');_0x525718['plugins']['has']('MultiLevelList')&&(_0x16a21e['enableDefaultAttributesIntegration']('multiLevelList'),_0x16a21e['registerBlockAttribute']('listMarkerStyle'),_0x16a21e['descriptionFactory']['registerDescriptionCallback'](_0x35bd56=>this['handleDescriptions'](_0x35bd56)));}['handleDescriptions'](_0x3310ec){const _0x44a418=this['editor']['locale'],{data:_0x4b518e}=_0x3310ec,_0x47ad7b={'type':'format','content':''};if(_0x4b518e&&'listMarkerStyle'==_0x4b518e['key']){if(!_0x4b518e['oldValue'])return{'type':'format','content':c(_0x44a418,'*Set\x20format:*\x20%0',c(_0x44a418,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b518e['newValue']+')'};if(!_0x4b518e['newValue']){let _0x4d6015=_0x3310ec['head'];for(;_0x4d6015;){if(_0x4d6015['data']&&'listType'==_0x4d6015['data']['key']&&_0x4d6015['data']['newValue'])return _0x47ad7b;_0x4d6015=_0x4d6015['next'];}return{'type':'format','content':c(_0x44a418,'*Remove\x20format:*\x20%0',c(_0x44a418,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b518e['oldValue']+')'};}}}}class bt extends _0x31fcb9{['afterInit'](){const _0x1dfea5=this['editor'];if(!_0x1dfea5['plugins']['has']('PageBreakEditing'))return;_0x1dfea5['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x539359=_0x1dfea5['plugins']['get']('TrackChangesEditing'),_0x4cab8f=_0x1dfea5['locale'];_0x539359['descriptionFactory']['registerElementLabel']('pageBreak',_0x31255f=>c(_0x4cab8f,'ELEMENT_PAGE_BREAK',_0x31255f));}}class yt extends _0x31fcb9{['afterInit'](){const _0x103785=this['editor'];if(!_0x103785['plugins']['has']('Paragraph'))return;const _0xd3cc3f=_0x103785['locale'],_0x307fb4=_0x103785['plugins']['get']('TrackChangesEditing');_0x307fb4['descriptionFactory']['registerElementLabel']('paragraph',_0x2d08ab=>c(_0xd3cc3f,'ELEMENT_PARAGRAPH',_0x2d08ab)),_0x307fb4['enableDefaultAttributesIntegration']('paragraph'),_0x307fb4['enableCommand']('insertParagraph'),_0x103785['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x103785),{'priority':'highest'}),_0x103785['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1d27a7,_0x239da7,_0x3f7fc9)=>{_0x3f7fc9['options']['showSuggestionHighlights']&&nr(_0x103785,{'showActiveMarker':!0x1})(_0x1d27a7,_0x239da7,_0x3f7fc9);},{'priority':'highest'});const _0x560d5b=_0x307fb4['descriptionFactory'];_0x560d5b['registerDescriptionCallback'](_0x1b4683=>{if('insertion'!==_0x1b4683['type'])return;const {start:_0x1bf89d,end:_0x2e9049}=_0x1b4683['getFirstRange']();if(!_0x1bf89d['isTouching'](_0x2e9049)||!_0x1bf89d['nodeAfter'])return;const _0x4b0adb=_0x103785['model']['schema'],_0x48a4e4=_0x1bf89d['nodeAfter'];return _0x4b0adb['isBlock'](_0x48a4e4)&&!_0x4b0adb['isLimit'](_0x48a4e4)&&_0x4b0adb['checkChild'](_0x48a4e4,'$text')?{'type':'insertion','content':c(_0xd3cc3f,'*Insert:*\x20%0',_0x560d5b['getItemLabel'](_0x48a4e4,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x414cc4=this['editor'],_0x484935=_0x414cc4['locale'];_0x414cc4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x281a15=>{if('formatBlock'!=_0x281a15['type'])return;const {data:_0x11b939}=_0x281a15;return _0x11b939&&'paragraph'==_0x11b939['commandName']?{'type':'format','content':c(_0x484935,'*Change\x20to:*\x20%0',c(_0x484935,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3e0203,{showActiveMarker:_0x2ff32f=!0x0}={}){return(_0x144b18,_0xb629b2,_0x22f42b)=>{const _0x527b4a=_0x3e0203['plugins']['get']('TrackChangesEditing'),_0x428876=_0xb629b2['markerRange']['start'],_0x2b9c3a=_0xb629b2['markerRange']['end'],_0x288622=_0x3e0203['model']['schema'];if(!_0x428876['isTouching'](_0x2b9c3a)||!_0x428876['nodeAfter'])return;const _0x54f85a=_0x428876['nodeAfter'];if(_0x288622['isBlock'](_0x54f85a)&&!_0x288622['isLimit'](_0x54f85a)&&_0x288622['checkChild'](_0x54f85a,'$text')){if(!_0x22f42b['consumable']['consume'](_0xb629b2['markerRange'],_0x144b18['name']))return;const {authorId:_0xb84907}=_0x527b4a['_splitMarkerName'](_0xb629b2['markerName']),_0x429cf5=_0x22f42b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0xb84907}),_0x51a260=_0x22f42b['mapper']['toViewPosition'](_0x2b9c3a);_0x2ff32f&&_0x527b4a['activeMarkers']['includes'](_0xb629b2['markerName'])&&_0x22f42b['writer']['addClass']('ck-suggestion-marker--active',_0x429cf5),_0x22f42b['writer']['insert'](_0x51a260,_0x429cf5),_0x22f42b['mapper']['bindElementToMarker'](_0x429cf5,_0xb629b2['markerName']);}};}class jt extends _0x31fcb9{['afterInit'](){const _0x4f1979=this['editor'];_0x4f1979['commands']['get']('replaceSource')&&_0x4f1979['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x31fcb9{['afterInit'](){const _0x305846=this['editor'];if(!_0x305846['plugins']['has']('RemoveFormatEditing'))return;_0x305846['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b7d4e=this['editor'];_0x4b7d4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55671e=>{if('formatBlock'!=_0x55671e['type']&&'formatInline'!=_0x55671e['type'])return;const {data:_0x25154d}=_0x55671e;return _0x25154d&&'removeFormat'==_0x25154d['commandName']?{'type':'format','content':c(_0x4b7d4e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x31fcb9{['afterInit'](){const _0x2ee8d2=this['editor'];if(!_0x2ee8d2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5871c3=_0x2ee8d2['plugins']['get']('TrackChangesEditing');_0x5871c3['enableCommand']('goToPreviousRestrictedEditingException'),_0x5871c3['enableCommand']('goToNextRestrictedEditingException');const _0x225909=_0x2ee8d2['plugins']['get']('RestrictedEditingModeEditing');_0x225909['enableCommand']('trackChanges'),_0x225909['enableCommand']('acceptSuggestion'),_0x225909['enableCommand']('discardSuggestion'),_0x225909['enableCommand']('acceptAllSuggestions'),_0x225909['enableCommand']('discardAllSuggestions'),_0x225909['enableCommand']('acceptSelectedSuggestions'),_0x225909['enableCommand']('discardSelectedSuggestions');}}class It extends _0x31fcb9{static get['requires'](){return[_0x2056d1];}['init'](){const _0x52b647=this['editor'],_0x2b17e7=_0x52b647['plugins']['get']('TrackChangesEditing');_0x2b17e7['enableCommand']('shiftEnter'),_0x52b647['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x52b647),{'priority':'high'}),_0x52b647['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x52b647),{'priority':'high'}),_0x52b647['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2b9002,_0x562444,_0x3388cd)=>{_0x3388cd['options']['showSuggestionHighlights']&&je(_0x52b647,{'showActiveMarker':!0x1})(_0x2b9002,_0x562444,_0x3388cd);}),_0x2b17e7['descriptionFactory']['registerElementLabel']('softBreak',_0x116f03=>c(_0x52b647['locale'],'ELEMENT_LINE_BREAK',_0x116f03));}}function je(_0x5ec423,{showActiveMarker:_0x450c30=!0x0}={}){return(_0x514cbc,_0x36cc7c,_0xca7dc8)=>{const _0x265e45=_0x5ec423['plugins']['get']('TrackChangesEditing');if(!_0xca7dc8['consumable']['test'](_0x36cc7c['markerRange'],_0x514cbc['name']))return;const _0x4afc04=_0x5ec423['model'];for(const _0x8dde1 of _0x36cc7c['markerRange']['getItems']()){if(!_0x8dde1['is']('element','softBreak'))continue;const _0x28c766='deletion'==_0x36cc7c['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x476b85}=_0x265e45['_splitMarkerName'](_0x36cc7c['markerName']),_0x141d65=_0xca7dc8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x28c766,'data-author-id':_0x476b85}),_0x1f5229=_0xca7dc8['mapper']['toViewPosition'](_0x4afc04['createPositionBefore'](_0x8dde1));_0x450c30&&_0x265e45['activeMarkers']['includes'](_0x36cc7c['markerName'])&&_0xca7dc8['writer']['addClass']('ck-suggestion-marker--active',_0x141d65),_0xca7dc8['writer']['insert'](_0x1f5229,_0x141d65),_0xca7dc8['mapper']['bindElementToMarker'](_0x141d65,_0x36cc7c['markerName']);}};}class _t extends _0x31fcb9{['afterInit'](){const _0x59d28a=this['editor'],_0x58d170=_0x59d28a['model'],_0x261190=_0x59d28a['locale'];if(!_0x59d28a['plugins']['has']('StandardEditingModeEditing'))return;const _0xbef0aa=_0x59d28a['plugins']['get']('TrackChangesEditing'),_0x6fef22='restrictedEditingException',_0x4ad45e=_0x59d28a['commands']['get'](_0x6fef22);_0xbef0aa['enableCommand'](_0x6fef22,(_0x4d7400,_0x17b4cd={})=>{const _0x27206f=_0x58d170['document']['selection'];if(_0x27206f['isCollapsed'])return void _0x4d7400(_0x17b4cd);const _0x1aca67=void 0x0!==_0x17b4cd['forceValue']?_0x17b4cd['forceValue']:!_0x4ad45e['value'];_0x58d170['change'](()=>{const _0xc2f8fd=Array['from'](_0x27206f['getRanges']());for(const _0x581c91 of _0xc2f8fd){const _0x10e530=_0x1aca67?[_0x581c91]:io(_0x6fef22,_0x581c91,_0x58d170);for(const _0x170def of _0x10e530)_0xbef0aa['markInlineFormat'](_0x170def,{'commandName':_0x6fef22,'commandParams':[{'forceValue':_0x1aca67}]});}});}),_0xbef0aa['descriptionFactory']['registerDescriptionCallback'](_0x42dcfb=>{if('formatBlock'!=_0x42dcfb['type']&&'formatInline'!=_0x42dcfb['type'])return;const {data:_0x55562c}=_0x42dcfb;return _0x55562c&&_0x55562c['commandName']==_0x6fef22?_0x55562c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x261190,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x261190,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x31fcb9{['afterInit'](){const _0x40cddf=this['editor'];if(!_0x40cddf['plugins']['has']('Style')||!_0x40cddf['plugins']['has']('DataSchema'))return;const _0x2a5b6c=_0x40cddf['plugins']['get']('TrackChangesEditing'),_0x4be3f8=_0x40cddf['locale'],_0x28db83=_0x40cddf['config']['get']('style')||{},_0x38f4c9=_0x40cddf['plugins']['get']('GeneralHtmlSupport'),_0x8f57bf=_0x40cddf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x40cddf['plugins']['get']('DataSchema'),_0x28db83['definitions']);_0x2a5b6c['enableDefaultAttributesIntegration']('style');const _0x967199=new Set();for(const _0x106667 of _0x8f57bf['block']){const _0x599254=_0x38f4c9['getGhsAttributeNameForElement'](_0x106667['element']);_0x967199['add'](_0x599254);}const _0x36bc5b=new Set();for(const _0x10cd21 of _0x8f57bf['inline']){const _0x4ae47f=_0x38f4c9['getGhsAttributeNameForElement'](_0x10cd21['element']);_0x36bc5b['add'](_0x4ae47f);for(const _0x41cc7d of _0x10cd21['ghsAttributes'])_0x36bc5b['add'](_0x41cc7d);}for(const _0x58fbd2 of _0x967199)_0x2a5b6c['registerBlockAttribute'](_0x58fbd2),_0x2a5b6c['descriptionFactory']['registerAttributeLabel'](_0x58fbd2,c(_0x4be3f8,'FORMAT_STYLE'));for(const _0x157233 of _0x36bc5b)_0x2a5b6c['registerInlineAttribute'](_0x157233),_0x2a5b6c['descriptionFactory']['registerAttributeLabel'](_0x157233,c(_0x4be3f8,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5689ae=this['editor'],_0x401c92=_0x5689ae['locale'];_0x5689ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2735d6=>{if('formatBlock'!=_0x2735d6['type']&&'formatInline'!=_0x2735d6['type'])return;const {data:_0x11378b}=_0x2735d6;return _0x11378b&&'style'===_0x11378b['commandName']?_0x11378b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x401c92,'*Set\x20format:*\x20%0',_0x11378b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x401c92,'*Remove\x20format:*\x20%0',_0x11378b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x31fcb9{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2941da){super(_0x2941da),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x208675=this['editor'],_0x5ba543=_0x208675['model']['document']['selection'];if(!_0x208675['plugins']['has']('TableEditing'))return;const _0x2a0789=_0x208675['locale'],_0x38a176=_0x208675['plugins']['get']('TrackChangesEditing'),_0x3af6e2=_0x208675['plugins']['get']('TableUtils');_0x38a176['descriptionFactory']['registerElementLabel']('table',_0x603934=>c(_0x2a0789,'ELEMENT_TABLE',_0x603934)),this['_setupColumnsRowsFixing'](),_0x38a176['enableCommand']('insertTable'),_0x38a176['enableCommand']('selectTableRow'),_0x38a176['enableCommand']('selectTableColumn');for(const _0x306264 of['insertTableRowAbove','insertTableRowBelow']){const _0x4dd0c9=_0x208675['commands']['get'](_0x306264);_0x38a176['enableCommand'](_0x306264,_0x142248=>{_0x208675['model']['change'](_0x287a7f=>{_0x142248();const _0x4d40de='above'===_0x4dd0c9['order'],_0x2db61d=_0x3af6e2['getSelectionAffectedTableCells'](_0x5ba543),_0x417dc1=_0x3af6e2['getRowIndexes'](_0x2db61d),_0x452dcf=_0x4d40de?_0x417dc1['first']-0x1:_0x417dc1['last']+0x1,_0x4df103=_0x2db61d[0x0]['findAncestor']('table'),_0x401e3b=_0x3af6e2['createTableWalker'](_0x4df103,{'startRow':_0x452dcf,'endRow':_0x452dcf}),_0x295ccf=Array['from'](_0x401e3b)['map'](_0x2cd191=>_0x287a7f['createRangeOn'](_0x2cd191['cell']));_0x38a176['markMultiRangeInsertion'](_0x295ccf,'tableRow');});});}for(const _0x39cc0b of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b3beb=_0x208675['commands']['get'](_0x39cc0b);_0x38a176['enableCommand'](_0x39cc0b,_0xc56f09=>{_0x208675['model']['change'](_0x9a85b2=>{_0xc56f09();const _0x2f80d0='left'===_0x5b3beb['order'],_0x39b629=_0x3af6e2['getSelectionAffectedTableCells'](_0x5ba543),_0x58b769=_0x3af6e2['getColumnIndexes'](_0x39b629),_0x5b1213=_0x2f80d0?_0x58b769['first']-0x1:_0x58b769['last']+0x1,_0x46c6f4=_0x39b629[0x0]['findAncestor']('table'),_0x177c67=_0x3af6e2['createTableWalker'](_0x46c6f4,{'startRow':0x0,'column':_0x5b1213,'includeAllSlots':!0x1}),_0x1fba00=Array['from'](_0x177c67)['map'](_0x27a2de=>_0x9a85b2['createRangeOn'](_0x27a2de['cell']));_0x38a176['markMultiRangeInsertion'](_0x1fba00,'tableColumn');});});}for(const _0x438eec of['removeTableRow','removeTableColumn']){const _0x25845a=_0x438eec['substr'](0xb),_0x39f0c0=_0x25845a['toLowerCase'](),_0x2ad783=_0x39f0c0['substr'](0x0,0x3)+'span',_0x527406='table'+_0x25845a,_0x42aadf='min'+_0x25845a,_0x294ee0='max'+_0x25845a;_0x38a176['enableCommand'](_0x438eec,()=>{_0x208675['model']['change'](_0x49c3e7=>{const _0x3bf9de=_0x3af6e2['getSelectionAffectedTableCells'](_0x5ba543),_0x13b13a=_0x3bf9de[0x0]['findAncestor']('table');let _0x40c809;if('removeTableRow'==_0x438eec){const _0x41c4a4=_0x3af6e2['getRowIndexes'](_0x3bf9de);_0x40c809={'startRow':_0x41c4a4['first'],'endRow':_0x41c4a4['last'],'includeAllSlots':!0x0};}else{const _0x469bbc=_0x3af6e2['getColumnIndexes'](_0x3bf9de);_0x40c809={'startColumn':_0x469bbc['first'],'endColumn':_0x469bbc['last'],'includeAllSlots':!0x0};}const _0x49128c=_0x3af6e2['createTableWalker'](_0x13b13a,_0x40c809),_0x477f9a=Array['from'](_0x49128c)['map'](({cell:_0x1febb0})=>_0x1febb0),_0x28f615=Ne(_0x477f9a['filter'](_0x37dae5=>_0x37dae5['hasAttribute'](_0x2ad783))),_0x28e386=Ne(_0x477f9a['filter'](_0x19a00f=>!_0x19a00f['hasAttribute'](_0x2ad783)))['map'](_0x24d3ec=>_0x49c3e7['createRangeOn'](_0x24d3ec)),_0x20a945=_0x38a176['markMultiRangeDeletion'](_0x28e386,_0x527406);if(_0x20a945&&('tableRow'==_0x20a945['subType']||'tableColumn'==_0x20a945['subType'])){const _0x18f048=this['_getSuggestionCoords'](_0x20a945);for(const _0x53f565 of _0x28f615){const _0x1d32c2=_0x49c3e7['createRangeOn'](_0x53f565),_0x34524c=_0x3af6e2['getCellLocation'](_0x53f565),_0x303a1c=_0x53f565['getAttribute'](_0x2ad783)-0x1,_0x132ad6=_0x18f048[_0x42aadf],_0x4f04fc=_0x18f048[_0x294ee0];_0x132ad6<=_0x34524c[_0x39f0c0]&&_0x34524c[_0x39f0c0]+_0x303a1c<=_0x4f04fc&&_0x20a945['addRange'](_0x1d32c2);}}});});}function _0x4e4594(_0x50d3b9){const _0x527f16=Array['from'](_0x5ba543['getRanges']())['map'](_0x33b825=>_0x4324ec['fromRange'](_0x33b825));_0x208675['model']['change'](_0x3bae98=>{const _0x4fb59f=_0x3bae98['batch'];_0x50d3b9=_0x50d3b9['filter'](_0xe9ac68=>'$graveyard'!=_0xe9ac68['root']['rootName']),_0x3bae98['setSelection'](_0x50d3b9),_0x208675['commands']['get']('removeTableRow')['refresh'](),_0x208675['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x208675['model']['enqueueChange'](()=>{_0x208675['model']['enqueueChange'](_0x4fb59f,_0x50eeb3=>{const _0x59c061=_0x527f16['filter'](_0x2b4621=>'$graveyard'!=_0x2b4621['root']['rootName']);_0x59c061['length']>0x0&&_0x50eeb3['setSelection'](_0x59c061);for(const _0x4b2220 of _0x527f16)_0x4b2220['detach']();});});});}function _0x54bc2b(_0x512dc9){_0x208675['model']['change'](_0x230440=>{const _0x1d11a5=Array['from'](_0x5ba543['getRanges']())['map'](_0x3c65fd=>_0x4324ec['fromRange'](_0x3c65fd)),_0xa2e3fb=[];for(const _0x1a9405 of _0x512dc9)for(const _0x2e1547 of _0x1a9405['getItems']({'shallow':!0x0}))_0xa2e3fb['push'](_0x2e1547);for(const _0x24391d of _0xa2e3fb)'$graveyard'!=_0x24391d['root']['rootName']&&(_0x230440['setSelection'](_0x230440['createPositionAt'](_0x24391d,0x0)),_0x208675['commands']['get']('removeTableColumn')['refresh'](),_0x208675['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4a1a5f=_0x1d11a5['filter'](_0x3024e8=>'$graveyard'!=_0x3024e8['root']['rootName']);_0x4a1a5f['length']>0x0&&_0x230440['setSelection'](_0x4a1a5f);for(const _0xa3bd90 of _0x1d11a5)_0xa3bd90['detach']();});}function _0x34ba33(_0x25a4b8,_0x2b5a41){return _0x2b5a41['every'](_0x435a91=>_0x25a4b8['some'](_0x59e4dc=>_0x59e4dc['end']['isEqual'](_0x435a91['start'])||_0x435a91['end']['isEqual'](_0x59e4dc['start'])));}function _0x3f825d(_0x34a10e,_0x474a2d){return!_0x34a10e['some'](_0x42d57d=>_0x474a2d['some'](_0x519ed2=>_0x42d57d['isIntersecting'](_0x519ed2)))&&_0x34a10e['some'](_0x7bbb96=>_0x474a2d['some'](_0x4ff6c2=>_0x7bbb96['end']['isTouching'](_0x4ff6c2['start'])));}_0x208675['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5abc3c,_0x2faa62,_0x112929)=>{if(!_0x112929['options']['showSuggestionHighlights'])return;const _0x36227e=_0x2faa62['item'];if(!_0x36227e)return;const _0x37207c=_0x112929['mapper']['toViewElement'](_0x36227e);function _0x5e358e(_0x2e3a4a){return Array['isArray'](_0x2e3a4a)?_0x2e3a4a:[_0x2e3a4a];}_0x37207c&&'tableCell'===_0x36227e['name']&&_0x533020(_0x37207c,_0x112929['writer'],(_0x7f82db,_0x577979,_0x465065)=>_0x465065['addClass'](_0x5e358e(_0x577979['classes']),_0x7f82db),(_0x430ffb,_0xede87f,_0x22067d)=>_0x22067d['removeClass'](_0x5e358e(_0xede87f['classes']),_0x430ffb));},{'priority':'highest'}),_0x38a176['descriptionFactory']['registerDescriptionCallback'](_0x29706f=>{if('insertion'!=_0x29706f['type']&&'deletion'!=_0x29706f['type'])return;const _0x43c7b6=_0x29706f['getContainedElement']();if(null!=_0x43c7b6&&_0x43c7b6['is']('element','table')){if('insertion'==_0x29706f['type']){const _0x18e764=_0x29706f['getItems']()['filter'](_0x44e8ec=>_0x44e8ec['is']('$textProxy'))['map'](_0xf4956=>_0xf4956['data']);if(_0x18e764['length'])return{'type':'insertion','content':c(_0x2a0789,'*Insert:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x18e764['join']('\x20')+'\x22'))};}if('deletion'==_0x29706f['type']){const _0x3bb4e5=_0x29706f['getItems']()['filter'](_0x43ff73=>_0x43ff73['is']('$textProxy'))['map'](_0x163cc4=>_0x163cc4['data']);if(_0x3bb4e5['length'])return{'type':'deletion','content':c(_0x2a0789,'*Remove:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3bb4e5['join']('\x20')+'\x22'))};}}}),_0x38a176['descriptionFactory']['registerDescriptionCallback'](_0x537cad=>{if('tableRow'==_0x537cad['subType']){const _0x55b6d0=_0x537cad['getItems']()['filter'](_0x6a88f0=>_0x6a88f0['is']('$textProxy'))['map'](_0x2a0070=>_0x2a0070['data']),_0x1d552b=this['_getSuggestionCoords'](_0x537cad),_0x143dfb=_0x1d552b['maxRow']-_0x1d552b['minRow']+0x1;if('insertion'==_0x537cad['type'])return _0x55b6d0['length']?{'type':'insertion','content':c(_0x2a0789,'*Insert:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143dfb,'\x22'+_0x55b6d0['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2a0789,'*Insert:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_ROW',_0x143dfb))};if('deletion'==_0x537cad['type'])return _0x55b6d0['length']?{'type':'deletion','content':c(_0x2a0789,'*Remove:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143dfb,'\x22'+_0x55b6d0['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2a0789,'*Remove:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_ROW',_0x143dfb))};}if('tableColumn'==_0x537cad['subType']){const _0x2e49e5=_0x537cad['getItems']()['filter'](_0x167c44=>_0x167c44['is']('$textProxy'))['map'](_0x2cde81=>_0x2cde81['data']),_0x298ac5=this['_getSuggestionCoords'](_0x537cad),_0x1c3da5=_0x298ac5['maxColumn']-_0x298ac5['minColumn']+0x1;if('insertion'==_0x537cad['type'])return _0x2e49e5['length']?{'type':'insertion','content':c(_0x2a0789,'*Insert:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c3da5,'\x22'+_0x2e49e5['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2a0789,'*Insert:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_COLUMN',_0x1c3da5))};if('deletion'==_0x537cad['type'])return _0x2e49e5['length']?{'type':'deletion','content':c(_0x2a0789,'*Remove:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1c3da5,'\x22'+_0x2e49e5['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2a0789,'*Remove:*\x20%0',c(_0x2a0789,'ELEMENT_TABLE_COLUMN',_0x1c3da5))};}}),_0x38a176['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4e4594),_0x38a176['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4e4594),_0x38a176['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x54bc2b),_0x38a176['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x54bc2b),_0x38a176['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x34ba33),_0x38a176['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x34ba33),_0x38a176['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3f825d),_0x38a176['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3f825d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x20c7fd=this['editor'],_0x156449=_0x20c7fd['model']['document']['selection'];return(_0x47134e,_0x393196)=>{_0x20c7fd['model']['change'](_0x1dd100=>{const {commandName:_0x49adea,commandParams:_0x8459c4}=_0x393196;let _0x3c1b46=_0x47134e[0x0]['end']['nodeBefore'];_0x8459c4&&_0x8459c4[0x0]&&!0x1===_0x8459c4[0x0]['forceValue']&&(_0x3c1b46=_0x47134e[0x0]['start']['nodeAfter']);const _0x32b323=_0x1dd100['createRangeIn'](_0x3c1b46);if('$graveyard'==_0x32b323['root']['rootName'])return;const _0x1f9897=Array['from'](_0x156449['getRanges']())['map'](_0xa5b4ea=>_0x4324ec['fromRange'](_0xa5b4ea));_0x1dd100['setSelection'](_0x32b323),_0x20c7fd['commands']['get'](_0x49adea)['refresh'](),_0x8459c4['push']({'forceDefaultExecution':!0x0}),_0x20c7fd['execute'](_0x49adea,..._0x8459c4);const _0x408bad=_0x1f9897['filter'](_0x1e2dc0=>'$graveyard'!=_0x1e2dc0['root']['rootName']);_0x408bad['length']>0x0&&_0x1dd100['setSelection'](_0x408bad);for(const _0x207ac8 of _0x1f9897)_0x207ac8['detach']();});};}['_getCoordsForCells'](_0x44bd25){const _0x1752c9=this['editor']['plugins']['get']('TableUtils');let _0x73b90a=Number['MAX_SAFE_INTEGER'],_0x3ecce1=Number['MIN_SAFE_INTEGER'],_0x43a29b=Number['MAX_SAFE_INTEGER'],_0x12718c=Number['MIN_SAFE_INTEGER'];for(const _0x14daaf of _0x44bd25){if('$graveyard'==_0x14daaf['root']['rootName'])continue;const {row:_0x5b0276,column:_0x58a14c}=_0x1752c9['getCellLocation'](_0x14daaf),_0x25eb8e=_0x14daaf['hasAttribute']('rowspan')?_0x14daaf['getAttribute']('rowspan')-0x1:0x0,_0x27cce8=_0x14daaf['hasAttribute']('colspan')?_0x14daaf['getAttribute']('colspan')-0x1:0x0;_0x73b90a=_0x5b0276<_0x73b90a?_0x5b0276:_0x73b90a,_0x3ecce1=_0x5b0276+_0x25eb8e>_0x3ecce1?_0x5b0276+_0x25eb8e:_0x3ecce1,_0x43a29b=_0x58a14c<_0x43a29b?_0x58a14c:_0x43a29b,_0x12718c=_0x58a14c+_0x27cce8>_0x12718c?_0x58a14c+_0x27cce8:_0x12718c;}return{'minRow':_0x73b90a,'maxRow':_0x3ecce1,'minColumn':_0x43a29b,'maxColumn':_0x12718c};}['_setupColumnsRowsFixing'](){const _0x3ff5e1=this['editor'],_0xc21990=_0x3ff5e1['plugins']['get']('TrackChangesEditing'),_0x50643b=_0x3ff5e1['plugins']['get']('TableUtils');_0x3ff5e1['model']['document']['on']('change:data',()=>{const _0x1fdded=Array['from'](_0x3ff5e1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10d63e,data:_0x2ebfca}of _0x1fdded){const {group:_0x41b5bb,id:_0x5e4d1b,subType:_0x34d68c}=_0xc21990['_splitMarkerName'](_0x10d63e);if('suggestion'!=_0x41b5bb)continue;if(null!=_0x2ebfca['oldRange'])continue;const _0x1e53bc=_0xc21990['getSuggestion'](_0x5e4d1b);this['_tablePostFixingSubtypes']['includes'](_0x34d68c)&&this['_tableSuggestions']['add'](_0x1e53bc);}},{'priority':'low'});const _0x16db40=(_0x59e623,_0x121045)=>{let _0x4acdf8=!0x1;const _0x3422b9=_0x121045['createRangeOn'](_0x59e623),_0xdb81e6=_0x59e623['findAncestor']('table'),_0x2211d4=_0x50643b['getCellLocation'](_0x59e623);for(const _0x4e0ee2 of this['_tableSuggestions']){const _0x165ca5=_0x4e0ee2['subType'],_0x4cbaf1=_0x165ca5['startsWith']('tablePaste'),_0x3b8a76=_0x165ca5['substr'](_0x4cbaf1?0xa:0x5),_0x209cf1=_0x3b8a76['toLowerCase'](),_0x59b368=_0x209cf1['substr'](0x0,0x3)+'span',_0x525052='min'+_0x3b8a76,_0x45cc3a='max'+_0x3b8a76;if(!_0x4e0ee2['isInContent'])continue;if(_0xdb81e6!=_0x4e0ee2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4e0ee2['isIntersectingWithRange'](_0x3422b9))continue;const _0x111e98=_0x59e623['hasAttribute'](_0x59b368)?_0x59e623['getAttribute'](_0x59b368)-0x1:0x0,_0x335038=this['_getSuggestionCoords'](_0x4e0ee2),_0x7f97e8=_0x335038[_0x525052],_0x246f3d=_0x335038[_0x45cc3a];_0x7f97e8<=_0x2211d4[_0x209cf1]&&_0x2211d4[_0x209cf1]+_0x111e98<=_0x246f3d&&(_0x4e0ee2['addRange'](_0x3422b9),_0x4acdf8=!0x0);}return _0x4acdf8;};_0x3ff5e1['model']['document']['registerPostFixer'](_0x278c98=>{let _0x3d62b5=!0x1;for(const _0x3e07dd of _0x3ff5e1['model']['document']['differ']['getChanges']())if('insert'==_0x3e07dd['type']){if('tableRow'==_0x3e07dd['name']){for(const _0x41ff2b of _0x3e07dd['position']['nodeAfter']['getChildren']())_0x3d62b5=_0x3d62b5||_0x16db40(_0x41ff2b,_0x278c98);}else'tableCell'==_0x3e07dd['name']&&(_0x3d62b5=_0x3d62b5||_0x16db40(_0x3e07dd['position']['nodeAfter'],_0x278c98));}return _0x3d62b5;});}['_getSuggestionCoords'](_0x330d43){return this['_getCoordsForCells'](_0x330d43['getRanges']()['map'](_0x151636=>_0x151636['start']['nodeAfter']));}}function Ne(_0x16acb3){return Array['from'](new Set(_0x16acb3)['values']());}class Nt extends _0x31fcb9{static get['requires'](){return[Ct];}['afterInit'](){const _0x2bf2b2=this['editor'],_0x54f58a=_0x2bf2b2['model']['document']['selection'],_0x33a5ec=_0x2bf2b2['locale'];if(!_0x2bf2b2['plugins']['has']('TableEditing'))return;const _0x39daf5=_0x2bf2b2['plugins']['get']('TrackChangesEditing'),_0x14d114=_0x2bf2b2['plugins']['get']('TableUtils'),_0x15ab25=_0x2bf2b2['plugins']['get'](Ct);_0x15ab25['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x39daf5['enableCommand']('mergeTableCells',()=>{const _0x55dcfe=_0x14d114['getSelectionAffectedTableCells'](_0x2bf2b2['model']['document']['selection']);_0x2bf2b2['model']['change'](()=>{_0x39daf5['markMultiRangeBlockFormat'](_0x55dcfe,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2bf2b2['commands']['get']('mergeTableCells')['on']('execute',(_0x302fb2,_0x3be4bb)=>{_0x2bf2b2['commands']['get']('trackChanges')['value']&&(_0x3be4bb['length']>0x0&&_0x3be4bb[_0x3be4bb['length']-0x1]&&_0x3be4bb[_0x3be4bb['length']-0x1]['forceDefaultExecution']||_0x39daf5['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x302fb2['stop']());},{'priority':'highest'});for(const _0x544e17 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x146375=_0x2bf2b2['commands']['get'](_0x544e17);_0x39daf5['enableCommand'](_0x544e17,()=>{const _0x20eced=_0x2bf2b2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ef959=>_0x4ef959['is']('element','tableCell')),_0x3c7a14=_0x146375['value'];_0x2bf2b2['model']['change'](()=>{_0x39daf5['markMultiRangeBlockFormat']([_0x20eced,_0x3c7a14],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x52b5d9 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x31cdee=_0x2bf2b2['commands']['get'](_0x52b5d9);_0x39daf5['enableCommand'](_0x52b5d9,()=>{const _0x43fe50=_0x14d114['getSelectionAffectedTableCells'](_0x2bf2b2['model']['document']['selection'])[0x0],_0x46d377=_0x43fe50['findAncestor']('table'),{column:_0x4b3c98,row:_0x1ceca4}=_0x14d114['getCellLocation'](_0x43fe50);let _0x411c97=[];if('horizontally'==_0x31cdee['direction']){const _0x558dca=_0x14d114['createTableWalker'](_0x46d377,{'startRow':_0x1ceca4,'endRow':_0x1ceca4,'includeAllSlots':!0x0});_0x411c97=Array['from'](_0x558dca)['map'](_0x428072=>_0x428072['cell']);}else{const _0x5dea8e=_0x14d114['createTableWalker'](_0x46d377,{'column':_0x4b3c98,'includeAllSlots':!0x0});_0x411c97=Array['from'](_0x5dea8e)['map'](_0x37f54f=>_0x37f54f['cell']);}_0x2bf2b2['model']['change'](_0x13676e=>{_0x39daf5['markBlockFormat'](_0x13676e['createRangeOn'](_0x43fe50),{'commandName':_0x52b5d9,'commandParams':[]},_0x411c97,_0x52b5d9);});});}_0x39daf5['descriptionFactory']['registerDescriptionCallback'](_0x32b602=>{if('formatBlock'!=_0x32b602['type']&&'formatInline'!=_0x32b602['type'])return;const {data:_0x33e30e}=_0x32b602;return _0x33e30e&&'mergeTableCells'==_0x33e30e['commandName']?{'type':'format','content':c(_0x33a5ec,'*Merge\x20cells*')}:void 0x0;}),_0x39daf5['descriptionFactory']['registerDescriptionCallback'](_0x128671=>{if('formatBlock'!=_0x128671['type']&&'formatInline'!=_0x128671['type'])return;const {data:_0x20086d}=_0x128671;return _0x20086d?'splitTableCellVertically'==_0x20086d['commandName']?{'type':'format','content':c(_0x33a5ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x20086d['commandName']?{'type':'format','content':c(_0x33a5ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20f6de=_0x15ab25['_acceptFormatSuggestionCallbackFactory']();for(const _0x1063d5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x39daf5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1063d5,'accept',_0x20f6de);for(const _0x15df5b of['splitTableCellVertically','splitTableCellHorizontally'])_0x39daf5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x15df5b,'accept',_0x20f6de);_0x39daf5['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x18f175=>{_0x2bf2b2['model']['change'](_0x585c7d=>{const _0x55a1d5=Array['from'](_0x54f58a['getRanges']())['map'](_0x3aaf4e=>_0x4324ec['fromRange'](_0x3aaf4e));_0x585c7d['setSelection'](_0x18f175),_0x2bf2b2['commands']['get']('mergeTableCells')['refresh'](),_0x2bf2b2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x44ef37=_0x55a1d5['filter'](_0x4b99e9=>'$graveyard'!=_0x4b99e9['root']['rootName']);_0x44ef37['length']>0x0&&_0x585c7d['setSelection'](_0x44ef37);for(const _0x1a2037 of _0x55a1d5)_0x1a2037['detach']();});});for(const _0x494a4f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3f70b3=_0x2bf2b2['commands']['get'](_0x494a4f);_0x3f70b3['on']('set:isEnabled',(_0x54c986,_0x720a30,_0x481c05)=>{if(_0x481c05){const _0x1abb33=_0x2bf2b2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53ab3f=>_0x53ab3f['is']('element','tableCell'));this['_areMergableCells'](_0x3f70b3['value'],_0x1abb33)||(_0x54c986['return']=!0x1,_0x54c986['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x50e6db=this['editor']['commands']['get']('mergeTableCells'),_0x1e5b20=this['editor']['plugins']['get']('TableUtils');if(!_0x50e6db['isEnabled'])return!0x1;const _0x36891d=_0x1e5b20['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x36aae6 of _0x36891d)for(const _0xd17a4c of _0x36891d)if(_0x36aae6!=_0xd17a4c&&!this['_areMergableCells'](_0x36aae6,_0xd17a4c))return!0x1;return!0x0;}['_areMergableCells'](_0x1cc8e2,_0x47a964){const _0x32483e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc2fabf=this['editor']['model']['createRangeOn'](_0x1cc8e2),_0x27cc1b=this['editor']['model']['createRangeOn'](_0x47a964),_0x3b898a=new Set(),_0x19008f=new Set();for(const _0x39478d of _0x32483e['getSuggestions']())if(('insertion'==_0x39478d['type']||'deletion'==_0x39478d['type']||'mergeTableCells'==_0x39478d['subType'])&&_0x39478d['isInContent']){for(const _0x3e55f8 of _0x39478d['getRanges']())_0x3e55f8['containsRange'](_0xc2fabf,!0x0)&&_0x3b898a['add'](_0x39478d['type']+':'+_0x39478d['author']['id']),_0x3e55f8['containsRange'](_0x27cc1b,!0x0)&&_0x19008f['add'](_0x39478d['type']+':'+_0x39478d['author']['id']);}if(_0x3b898a['size']!=_0x19008f['size'])return!0x1;for(const _0xd66111 of _0x3b898a)if(!_0x19008f['has'](_0xd66111))return!0x1;return!0x0;}}class Dt extends _0x31fcb9{static get['requires'](){return[Ct];}['afterInit'](){const _0x2d66f7=this['editor'];if(!_0x2d66f7['plugins']['has']('TableEditing'))return;const _0x3948f9=_0x2d66f7['locale'],_0x143dc4=_0x2d66f7['plugins']['get']('TrackChangesEditing');_0x143dc4['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x143dc4['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x143dc4['registerBlockAttribute']('headingRows'),_0x143dc4['registerBlockAttribute']('headingColumns'),_0x143dc4['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3948f9,'FORMAT_HEADER_ROW')),_0x143dc4['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3948f9,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a730a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x23e39e=this['editor']['plugins']['get']('TableUtils'),_0x346d8f=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xd035b({showActiveMarker:_0x2aa0cc=!0x0,setDataAttribute:_0x536f60=!0x0}={}){return(_0x5d1628,_0x13bee2,_0x126743)=>{const {type:_0x4d0185,id:_0x4a1e72}=_0x5a730a['_splitMarkerName'](_0x13bee2['markerName']),_0x426385=_0x5a730a['getSuggestion'](_0x4a1e72),_0x2489c0=_0x426385['data'];if('formatBlock'!=_0x426385['type']||!_0x2489c0||'setTableColumnHeader'!=_0x2489c0['commandName'])return;if(_0x13bee2['item'])return void _0x5d1628['stop']();if(!_0x126743['consumable']['consume'](_0x13bee2['markerRange'],_0x5d1628['name']))return;const _0x295576=_0x13bee2['markerRange']['start']['nodeAfter'],_0x20854f=_0x13bee2['markerRange']['end']['nodeBefore'],_0x9ad0d=_0x295576['parent']['parent'],{column:_0x17348f}=_0x23e39e['getCellLocation'](_0x295576),{column:_0x43b717}=_0x23e39e['getCellLocation'](_0x20854f);for(let _0x17b384=_0x17348f;_0x17b384<=_0x43b717;_0x17b384++){const _0x3532d9=_0x23e39e['createTableWalker'](_0x9ad0d,{'column':_0x17b384,'includeAllSlots':!0x1});for(const _0x44f8d1 of _0x3532d9){const _0x3b59d5=_0x44f8d1['cell'],_0x49f38e=_0x126743['mapper']['toViewElement'](_0x3b59d5);_0x126743['writer']['addClass']('ck-suggestion-marker-'+_0x4d0185,_0x49f38e),_0x536f60&&_0x126743['writer']['setAttribute']('data-suggestion',_0x4a1e72,_0x49f38e),_0x126743['mapper']['bindElementToMarker'](_0x49f38e,_0x13bee2['markerName']),_0x2aa0cc&&(_0x5a730a['activeMarkers']['includes'](_0x13bee2['markerName'])?_0x126743['writer']['addClass']('ck-suggestion-marker--active',_0x49f38e):_0x126743['writer']['removeClass']('ck-suggestion-marker--active',_0x49f38e));}}};}_0x5a730a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x346d8f),_0x5a730a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x346d8f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xd035b(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e3b9e,_0x1fac29,_0x21c752)=>{_0x21c752['options']['showSuggestionHighlights']&&_0xd035b({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4e3b9e,_0x1fac29,_0x21c752);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x399c62,_0x2b7f08,_0x266ac3)=>{const {type:_0x30caf6,id:_0x42a70c}=_0x5a730a['_splitMarkerName'](_0x2b7f08['markerName']),_0x415f7b=_0x5a730a['getSuggestion'](_0x42a70c),_0x5435ad=_0x415f7b['data'];if('formatBlock'!=_0x415f7b['type']||!_0x5435ad||'setTableColumnHeader'!=_0x5435ad['commandName'])return;const _0x295963=_0x266ac3['mapper']['markerNameToElements'](_0x2b7f08['markerName']);if(_0x295963){for(const _0x3c5bc9 of _0x295963)_0x266ac3['writer']['removeClass']('ck-suggestion-marker-'+_0x30caf6,_0x3c5bc9),_0x266ac3['writer']['removeClass']('ck-suggestion-marker--active',_0x3c5bc9),_0x266ac3['writer']['removeAttribute']('data-suggestion',_0x3c5bc9),_0x266ac3['mapper']['unbindElementFromMarkerName'](_0x3c5bc9,_0x2b7f08['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5083e5=this['editor'],_0x217962=_0x5083e5['locale'];function _0x42647f(_0x5d7afa){return{'type':'format','content':c(_0x217962,'*Format:*\x20%0',_0x5d7afa)};}_0x5083e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc68ec7=>{if('formatBlock'!=_0xc68ec7['type'])return;const {data:_0x2c9fc9}=_0xc68ec7;if(_0x2c9fc9){if('setTableRowHeader'==_0x2c9fc9['commandName']){const _0x5fc32=_0x2c9fc9['commandParams'][0x0]['forceValue'];return _0x42647f(c(_0x217962,_0x5fc32?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2c9fc9['commandName']){const _0x5548c8=_0x2c9fc9['commandParams'][0x0]['forceValue'];return _0x42647f(c(_0x217962,_0x5548c8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x5749d6=>[_0x5749d6,null]));class Mt extends _0x31fcb9{static get['requires'](){return[Ct];}['afterInit'](){const _0x3c2a79=this['editor'];if(!_0x3c2a79['plugins']['has']('TableClipboard'))return;const _0xe99da8=_0x3c2a79['plugins']['get']('TrackChangesEditing'),_0x4566bb=_0x3c2a79['plugins']['get']('TableUtils'),_0x4f7515=_0x3c2a79['plugins']['get'](Ct),_0x1dbc63=_0x3c2a79['plugins']['get']('TableClipboard');_0x4f7515['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3c2a79['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3c2a79['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x444cf3=null;_0x3c2a79['model']['on']('insertContent',(_0x3f0d52,_0x329ee3)=>{const [_0x38ba2a,_0x146430]=_0x329ee3,_0x39011a=_0x329ee3[_0x329ee3['length']-0x1];_0x39011a&&_0x39011a['forceDefaultExecution']||_0xe99da8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x545fa4,_0x177879,_0x218146,_0x32056d,_0x5a3442){if(_0x177879&&!_0x177879['is']('documentSelection'))return!0x1;const _0x4fe919=_0x5a3442['getTableIfOnlyTableInContent'](_0x545fa4,_0x218146);if(!_0x4fe919||!Ue(_0x4fe919,void 0x0,_0x32056d))return!0x1;const _0x33edc8=_0x32056d['getSelectionAffectedTableCells'](_0x218146['document']['selection']);if(!_0x33edc8['length'])return!0x1;const _0x46f9f2=_0x33edc8[0x0]['findAncestor']('table'),_0x5dea7a=_0x32056d['getRowIndexes'](_0x33edc8),_0x3801e3=_0x32056d['getColumnIndexes'](_0x33edc8),_0x57fac6={'startRow':_0x5dea7a['first'],'endRow':_0x5dea7a['last'],'startColumn':_0x3801e3['first'],'endColumn':_0x3801e3['last']};return 0x1==_0x33edc8['length']&&(_0x57fac6['endRow']+=_0x32056d['getRows'](_0x4fe919)-0x1,_0x57fac6['endColumn']+=_0x32056d['getColumns'](_0x4fe919)-0x1),Ue(_0x46f9f2,_0x57fac6,_0x32056d);}(_0x38ba2a,_0x146430,_0x3c2a79['model'],_0x4566bb,_0x1dbc63)&&(_0x3f0d52['stop'](),_0x444cf3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3c2a79['model']['change'](()=>{_0x3c2a79['model']['insertContent'](_0x329ee3[0x0],_0x329ee3[0x1],_0x329ee3[0x2],{'forceDefaultExecution':!0x0});const _0x2a59ea=_0x4597bc(),{rowInsertionRanges:_0x11a389,columnInsertionRanges:_0x3f6b87,insertionRanges:_0x102e72,deletionRanges:_0x55105b,cells:_0x50a131}=_0x444cf3;_0x11a389['length']&&_0xe99da8['markMultiRangeInsertion'](_0x11a389,'tablePasteRow',{'tablePasteChainId':_0x2a59ea}),_0x3f6b87['length']&&_0xe99da8['markMultiRangeInsertion'](_0x3f6b87,'tablePasteColumn',{'tablePasteChainId':_0x2a59ea}),_0x102e72['length']&&(_0xe99da8['markMultiRangeInsertion'](_0x102e72,'tablePaste',{'tablePasteChainId':_0x2a59ea,'skipNestingCheck':!0x0}),_0x102e72['forEach'](_0x23c6eb=>_0x23c6eb['detach']?.())),_0x55105b['length']&&(_0xe99da8['markMultiRangeDeletion'](_0x55105b,'tablePaste',{'tablePasteChainId':_0x2a59ea,'skipNestingCheck':!0x0}),_0x55105b['forEach'](_0x570ec4=>_0x570ec4['detach']?.()));const _0x1f854b=_0xe99da8['markMultiRangeBlockFormat'](_0x50a131['map'](({element:_0x51740a})=>_0x51740a),{'formatGroupId':_0x4597bc()},[],'tablePasteCell',{'tablePasteChainId':_0x2a59ea});if(_0x1f854b){const _0x423c2a=_0x1f854b['getMarkers'](),_0x2ab65c=[];for(const {element:_0x395ec1,attributes:_0x4453ba}of _0x50a131){if(!_0x4453ba)continue;const _0x1f6b7d=_0x3c2a79['model']['createRangeOn'](_0x395ec1),_0x1bb23a=_0x423c2a['find'](_0x17f522=>_0x17f522['getRange']()['isEqual'](_0x1f6b7d));_0x1bb23a&&_0x2ab65c['push']([_0x1bb23a['name'],_0x4453ba]);}_0x2ab65c['length']&&_0x1f854b['setAttribute']('markerAttributes',Object['fromEntries'](_0x2ab65c));}_0x444cf3=null;}));},{'priority':_0x4b5085['high']+0xa}),_0x3c2a79['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x238a1c,_0x488543)=>{const [_0x4424fd,_0xf5eb1e,,_0x22942f]=_0x488543;if(!_0x444cf3)return;_0x238a1c['stop']();const _0x2bd6f6=_0x4424fd['cell'],_0x431c5a=_0xf5eb1e,_0x4586df=Oe(_0x2bd6f6),_0x1c55fb=Oe(_0x431c5a);_0x238a1c['return']=_0x2bd6f6;let _0x23057f=null,_0x5f4dee=null;if(_0x1c55fb||_0x4586df){if(_0x4586df&&!_0x1c55fb){_0x22942f['remove'](_0x2bd6f6['getChild'](0x0));for(const _0x5431e5 of Array['from'](_0x431c5a['getChildren']()))_0x22942f['insert'](_0x5431e5,_0x2bd6f6,'end');const _0x47ddfa=_0x444cf3['rowInsertionIndexes']['includes'](_0x4424fd['row']),_0x369630=_0x444cf3['columnInsertionIndexes']['includes'](_0x4424fd['column']);_0x47ddfa||_0x369630||(_0x23057f=_0x4324ec['fromRange'](_0x22942f['createRangeIn'](_0x2bd6f6)));}else _0x1c55fb&&!_0x4586df&&(_0x5f4dee=_0x22942f['createRangeIn'](_0x2bd6f6));}else{const _0x15c330=_0x22942f['createElement']('tableCellSuggestion'),_0x2cda49=_0x22942f['createElement']('tableCellSuggestion');_0x22942f['wrap'](_0x22942f['createRangeIn'](_0x2bd6f6),_0x2cda49),_0x22942f['insert'](_0x15c330,_0x2bd6f6,0x0);for(const _0xd540b3 of Array['from'](_0x431c5a['getChildren']()))_0x22942f['insert'](_0xd540b3,_0x15c330,'end');_0x23057f=_0x4324ec['fromRange'](_0x22942f['createRangeOn'](_0x15c330)),_0x5f4dee=_0x4324ec['fromRange'](_0x22942f['createRangeOn'](_0x2cda49));}const _0x2db3ee=Array['from'](_0x431c5a['getAttributes']())['filter'](([_0x11147d])=>Be['includes'](_0x11147d));_0x444cf3['cells']['push']({'element':_0x2bd6f6,'attributes':_0x2db3ee['length']?Object['fromEntries'](_0x2db3ee):null}),_0x23057f&&_0x444cf3['insertionRanges']['push'](_0x23057f),_0x5f4dee&&_0x444cf3['deletionRanges']['push'](_0x5f4dee);},{'priority':'high'}),_0x4566bb['on']('insertColumns',(_0x465d7a,_0xfc154e)=>{const [_0x1d5606,_0x40871b={}]=_0xfc154e;if(!_0x444cf3)return;const _0x5164df=_0x40871b['at']||0x0,_0x5846f0=_0x40871b['columns']||0x1;_0x444cf3['columnInsertionIndexes']=new Array(_0x5846f0)['fill'](_0x5164df)['map']((_0x4cc3ab,_0x5643e9)=>_0x4cc3ab+_0x5643e9);for(const {cell:_0x54c552}of _0x4566bb['createTableWalker'](_0x1d5606,{'startColumn':_0x5164df,'endColumn':_0x5164df+_0x5846f0-0x1}))_0x444cf3['columnInsertionRanges']['push'](_0x3c2a79['model']['createRangeOn'](_0x54c552));},{'priority':'low'}),_0x4566bb['on']('insertRows',(_0x10a31d,_0x1639d7)=>{const [_0xb71f5,_0x480e54={}]=_0x1639d7;if(!_0x444cf3)return;const _0x5ab8b5=_0x480e54['at']||0x0,_0x51d7d7=_0x480e54['rows']||0x1;_0x444cf3['rowInsertionIndexes']=new Array(_0x51d7d7)['fill'](_0x5ab8b5)['map']((_0xfa2266,_0x334405)=>_0xfa2266+_0x334405);for(const {cell:_0xac5c06}of _0x4566bb['createTableWalker'](_0xb71f5,{'startRow':_0x5ab8b5,'endRow':_0x5ab8b5+_0x51d7d7-0x1}))_0x444cf3['rowInsertionRanges']['push'](_0x3c2a79['model']['createRangeOn'](_0xac5c06));},{'priority':'low'}),_0xe99da8['descriptionFactory']['registerDescriptionCallback'](_0x3a4fb3=>{if(_0x3a4fb3['subType']&&_0x3a4fb3['subType']['startsWith']('tablePaste'))return _0x3a4fb3['previous']?{}:{'type':'insertion','content':c(_0x3c2a79['locale'],'*Replace\x20table\x20cells*')};});const _0x43e657=()=>!0x1;for(const _0x1408d7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xe99da8['_suggestionFactory']['registerCustomCallback']('insertion',_0x1408d7,'join',_0x43e657),_0xe99da8['_suggestionFactory']['registerCustomCallback']('deletion',_0x1408d7,'join',_0x43e657),_0xe99da8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1408d7,'join',_0x43e657);_0xe99da8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x43e657),_0xe99da8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x144f13,_0x1eff20,_0x261d8f)=>{const _0x1925d8=_0x144f13['map'](_0x350540=>_0x350540['getContainedElement']())['filter'](_0x6faa00=>_0x6faa00),_0x6f44d8=new Map(_0x1925d8['map'](_0xae22a2=>[_0xae22a2,null]));if(_0x444cf3){for(const {element:_0x1592f8,attributes:_0x11d7c6}of _0x444cf3['cells'])_0x11d7c6&&_0x6f44d8['set'](_0x1592f8,_0x11d7c6);}else{if(_0x261d8f&&_0x261d8f['markerAttributes'])for(const [_0x21de79,_0x54c8fc]of Object['entries'](_0x261d8f['markerAttributes'])){const _0x3a64b7=_0x3c2a79['model']['markers']['get'](_0x21de79),_0xd2f36c=_0x3a64b7?_0x3a64b7['getRange']()['getContainedElement']():null;_0xd2f36c&&_0x6f44d8['set'](_0xd2f36c,_0x54c8fc);}}_0x3c2a79['model']['change'](_0x3f45b0=>{for(const [_0xe0720b,_0x20c577]of _0x6f44d8)_0x3f45b0['setAttributes']({...xe,..._0x20c577},_0xe0720b);});});const _0x1b1157=(_0x47781e,_0x56031f)=>{_0xe99da8['_suggestionFactory']['registerCustomCallback'](_0x47781e,'tablePaste',_0x56031f,(_0x9a573,_0x4ebe2f,_0x42bd1f)=>{_0x3c2a79['model']['change'](_0x5a4e06=>{const _0x284c6c=[];for(const _0x254b5a of _0x9a573){const _0x20ac5b=_0x254b5a['start']['nodeAfter'];_0x20ac5b['is']('element','tableCellSuggestion')&&_0x284c6c['push'](_0x20ac5b);}_0xe99da8['_suggestionFactory']['getSuggestionCallback'](_0x47781e,null,_0x56031f)(_0x9a573,_0x4ebe2f,_0x42bd1f);for(const _0x5d85f9 of _0x284c6c)'$graveyard'!=_0x5d85f9['root']['rootName']&&_0x5a4e06['unwrap'](_0x5d85f9);});});};_0x1b1157('insertion','accept'),_0x1b1157('insertion','discard'),_0x1b1157('deletion','accept'),_0x1b1157('deletion','discard'),_0xe99da8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xa37149=>{const _0x18e63a=_0xa37149['map'](_0x32b944=>_0x32b944['getContainedElement']()),_0x3f0490=_0x18e63a[0x0]['findAncestor']('table'),{minRow:_0x5deba4,maxRow:_0x106dc8}=_0x4f7515['_getCoordsForCells'](_0x18e63a);_0x4566bb['removeRows'](_0x3f0490,{'at':_0x5deba4,'rows':_0x106dc8-_0x5deba4+0x1});}),_0xe99da8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x260a23=>{const _0x49a776=_0x260a23['map'](_0x4ab346=>_0x4ab346['getContainedElement']()),_0x38239a=_0x49a776[0x0]['findAncestor']('table'),{minColumn:_0x51cb9b,maxColumn:_0x55bd46}=_0x4f7515['_getCoordsForCells'](_0x49a776);_0x4566bb['removeColumns'](_0x38239a,{'at':_0x51cb9b,'columns':_0x55bd46-_0x51cb9b+0x1});});const _0x2dc6a5=(_0x80dce1,_0x206471)=>{if(!_0x206471['subType']||!_0x206471['subType']['startsWith']('tablePaste'))return;const _0x32fa7a=_0x206471['attributes']['tablePasteChainId'],_0x651a26=_0xe99da8['getSuggestions']()['filter'](_0x552cb8=>_0x552cb8['isInContent']&&_0x552cb8['attributes']&&_0x552cb8['attributes']['tablePasteChainId']==_0x32fa7a);_0x651a26['length']&&_0x206471['getAllAdjacentSuggestions']()['length']!=_0x651a26['length']&&_0x651a26['reduce']((_0x4855b7,_0x3258a7)=>(_0x4855b7['next']=_0x3258a7,_0x3258a7['previous']=_0x4855b7,_0x3258a7));};function _0x3800b9(_0x5f36ec,_0x4708c1=!0x0){const {id:_0x31fed8,authorId:_0x53327a}=_0xe99da8['_splitMarkerName'](_0x5f36ec['markerName']),_0x46eddd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x457e67=_0xe99da8['activeMarkers']['includes'](_0x5f36ec['markerName']);return _0x457e67&&_0x46eddd['push']('ck-suggestion-marker--active'),{'classes':_0x46eddd,'attributes':{'data-suggestion':_0x31fed8,'data-author-id':_0x53327a},'priority':_0x457e67&&_0x4708c1?0xbc2:0xbb8};}_0xe99da8['on']('suggestionLoaded',_0x2dc6a5,{'priority':'high'}),_0xe99da8['on']('suggestionUnloaded',_0x2dc6a5,{'priority':'high'}),_0x3c2a79['model']['document']['registerPostFixer'](()=>{let _0x385e99=!0x1;const _0xd13f54=Array['from'](_0x3c2a79['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e0f18,data:_0x14e43a}of _0xd13f54){const {group:_0x5aed64,type:_0x34af3d,id:_0x2d34e8}=_0xe99da8['_splitMarkerName'](_0x5e0f18);if('suggestion'!=_0x5aed64||'deletion'!=_0x34af3d||_0x14e43a['oldRange'])continue;if(!_0xe99da8['hasSuggestion'](_0x2d34e8))continue;const _0x47f35e=_0xe99da8['getSuggestion'](_0x2d34e8)['getRanges'](),_0x2236f9=_0x3c2a79['plugins']['get']('Users')['me'];for(const _0x14c661 of _0xe99da8['getSuggestions']()){if(!_0x14c661['isInContent']||_0x14c661['author']!=_0x2236f9)continue;if('formatBlock'!=_0x14c661['type']||'tablePasteCell'!=_0x14c661['subType'])continue;if(_0x14c661['getRanges']()['every'](_0x288647=>_0x47f35e['some'](_0x34e9db=>_0x34e9db['containsRange'](_0x288647,!0x0)))){for(const _0x46ead9 of _0x14c661['getAllAdjacentSuggestions']())_0x46ead9['isInContent']&&(_0x46ead9['discard'](),_0x385e99=!0x0);}}}return _0x385e99;}),_0x3c2a79['model']['document']['registerPostFixer'](_0x597079=>{const _0x58a6b4=_0x3c2a79['commands']['get']('redo');if(!_0x58a6b4||!_0x58a6b4['_createdBatches']['has'](_0x597079['batch']))return!0x1;let _0x46c415=!0x1;const _0x53d518=_0x3c2a79['plugins']['get']('Users')['me'],_0x6c5443=_0x3c2a79['model']['document']['differ']['getChanges'](),_0x58fc61=Array['from'](_0x3c2a79['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x505f9e,data:_0x42608c})=>{const {group:_0x3da126,subType:_0x33f629,authorId:_0xbfc670}=_0xe99da8['_splitMarkerName'](_0x505f9e);return'suggestion'==_0x3da126&&'tablePaste'==_0x33f629&&_0xbfc670==_0x53d518['id']&&!_0x42608c['oldRange'];});for(const _0xae6d92 of _0x6c5443){if('insert'!=_0xae6d92['type']||'tableCellSuggestion'!=_0xae6d92['name']||0x1!=_0xae6d92['length'])continue;const _0x40c604=_0x597079['createRange'](_0xae6d92['position'],_0xae6d92['position']['getShiftedBy'](0x1));if(!_0x58fc61['find'](({data:_0x4b8a1d})=>_0x4b8a1d['newRange']['isEqual'](_0x40c604))){for(const {name:_0x61b28e,data:_0x42ae3c}of _0x58fc61)if(_0x40c604['containsRange'](_0x42ae3c['newRange'])){_0x597079['updateMarker'](_0x61b28e,{'range':_0x40c604}),_0x46c415=!0x0;break;}}}return _0x46c415;}),_0x3c2a79['model']['document']['registerPostFixer'](_0xba9a56=>{let _0x36ae10=!0x1;const _0x13a80b=_0x3c2a79['plugins']['get']('Users')['me'],_0x49a5c7=_0xe99da8['getSuggestions']()['filter'](_0x3e35a6=>_0x3e35a6['isInContent']&&_0x3e35a6['author']==_0x13a80b),_0x154304=new Set(),_0x3896c7=new Set();for(const _0x5776db of _0x49a5c7)if('tablePaste'==_0x5776db['subType'])for(const _0x4e4483 of _0x5776db['getMarkers']()){const _0x4a8ea4=_0x4e4483['getRange']()['getContainedElement']();if(_0x4a8ea4){if(_0x4a8ea4['is']('element','tableCellSuggestion')&&Oe(_0x4a8ea4)){_0x5776db['removeMarker'](_0x4e4483['name']),_0x154304['add'](_0x4a8ea4),_0x36ae10=!0x0;const _0xa17093=_0x4a8ea4['nextSibling'],_0x572a4a=_0x4a8ea4['previousSibling'],_0x2cbfda=_0xa17093&&_0xa17093['is']('element','tableCellSuggestion'),_0x562601=_0x572a4a&&_0x572a4a['is']('element','tableCellSuggestion');_0x2cbfda&&!_0x154304['has'](_0xa17093)&&_0x3896c7['add'](_0xa17093),_0x562601&&!_0x154304['has'](_0x572a4a)&&_0x3896c7['add'](_0x572a4a);}else _0x4a8ea4['is']('element','paragraph')&&_0x4a8ea4['isEmpty']&&(_0x5776db['removeMarker'](_0x4e4483['name']),_0x36ae10=!0x0);}}else{if('tablePasteCell'==_0x5776db['subType']){if(!_0x5776db['attributes']||!_0x5776db['attributes']['tablePasteChainId'])continue;const _0x5b94bd=_0x5776db['attributes']['markerAttributes'];if(_0x5b94bd&&Object['keys'](_0x5b94bd)['length'])continue;const _0x564419=_0x5776db['attributes']['tablePasteChainId'];let _0xdc4b37=!0x0,_0xee12d9=!0x0;for(const _0x454aa2 of _0x49a5c7)if(_0x454aa2['subType']&&_0x454aa2['subType']['startsWith']('tablePaste')){if(!_0x454aa2['attributes']['tablePasteChainId']){_0xee12d9=!0x1;break;}if(_0x454aa2['id']!=_0x5776db['id']&&_0x454aa2['attributes']['tablePasteChainId']==_0x564419){_0xdc4b37=!0x1;break;}}_0xee12d9&&_0xdc4b37&&(_0x5776db['removeMarkers'](),_0x36ae10=!0x0);}}for(const _0x31fe07 of _0x154304)_0xba9a56['remove'](_0x31fe07);for(const _0x1e435e of _0x3896c7)_0xba9a56['unwrap'](_0x1e435e);return _0x36ae10;}),_0x3c2a79['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xd8f298=>_0x3800b9(_0xd8f298),'converterPriority':'high'}),_0x3c2a79['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x549168,_0x3d5347)=>_0x3d5347['options']['showSuggestionHighlights']?_0x3800b9(_0x549168,!0x1):null,'converterPriority':'high'});const _0x2c8005=_0x3c2a79['editing']['view'];this['listenTo'](_0x2c8005['document'],'clipboardOutput',(_0x523c97,_0x52a9c2)=>{const _0x226c26=[];for(const _0x3a3fd8 of _0x2c8005['createRangeIn'](_0x52a9c2['content'])['getItems']())_0x3a3fd8['is']('element','suggestion-td')&&_0x226c26['push'](_0x3a3fd8);_0x2c8005['change'](_0x511a5b=>{for(const _0x81fbf5 of _0x226c26)_0x511a5b['move'](_0x511a5b['createRangeIn'](_0x81fbf5),_0x511a5b['createPositionBefore'](_0x81fbf5)),_0x511a5b['remove'](_0x81fbf5);});});}}function Oe(_0x4956d6){if(_0x4956d6['isEmpty'])return!0x0;const _0x1a019a=_0x4956d6['getChild'](0x0);return _0x1a019a['is']('element','paragraph')&&_0x1a019a['isEmpty'];}function Ue(_0x3e807f,_0x21996f={},_0x2924d3){for(const {isAnchor:_0x24b243,cellHeight:_0x2b36ab,cellWidth:_0x431e4c}of _0x2924d3['createTableWalker'](_0x3e807f,{'includeAllSlots':!0x0,..._0x21996f}))if(!_0x24b243||0x1!=_0x2b36ab||0x1!=_0x431e4c)return!0x1;return!0x0;}class $t extends _0x31fcb9{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4fdb85=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fdb85['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4fdb85['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4fdb85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fdb85['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4fdb85['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4fdb85['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x250b1d,_0x1348e8){const _0x10cb86=this['editor']['plugins']['get']('TrackChangesEditing'),_0x531e54=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2a24b9=_0x1348e8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xe9868f=_0x531e54['getColumnGroupElement'](_0x2a24b9);let _0x1cfdcc=_0xe9868f?_0x531e54['getTableColumnsWidths'](_0xe9868f):null,_0x34bf26=_0x2a24b9['getAttribute']('tableWidth')||null;const _0x425713=_0x1348e8['tableWidth']||_0x34bf26,_0x4c758a=_0x1348e8['columnWidths']||_0x1cfdcc,_0x510fed=this['editor']['plugins']['get']('Users')['me'];for(const _0x2c2101 of _0x10cb86['getSuggestions']()){const _0x4f6a53=_0x2c2101['getContainedElement']();if('resizeTable'===_0x2c2101['subType']&&_0x4f6a53===_0x2a24b9){_0x2c2101['author']!==_0x510fed&&_0x2c2101['discard']();const _0x40f2d6=_0x2c2101['data']['commandParams'];_0x34bf26=_0x40f2d6[0x0]['tableWidth'],_0x1cfdcc=_0x40f2d6[0x0]['columnWidths'];break;}}_0x250b1d({'table':_0x2a24b9,'tableWidth':_0x425713,'columnWidths':_0x4c758a}),_0x10cb86['markBlockFormat'](_0x2a24b9,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x34bf26,'columnWidths':_0x1cfdcc}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x416727){if('formatBlock'!=_0x416727['type']&&'formatInline'!=_0x416727['type'])return;const {data:_0x446400}=_0x416727;if(_0x446400&&'resizeTable'===_0x446400['formatGroupId']){const _0x18c5f8='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x18c5f8)};}}}class Bt extends _0x31fcb9{['afterInit'](){const _0x35729e=this['editor'];_0x35729e['plugins']['has']('Template')&&_0x35729e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x31fcb9{['afterInit'](){const _0x8a4d8d=this['editor'];if(!_0x8a4d8d['commands']['get']('insertTableOfContents'))return;_0x8a4d8d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x24532b=_0x8a4d8d['plugins']['get']('TrackChangesEditing'),_0x2ff197=_0x8a4d8d['locale'];_0x24532b['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2f8741=>c(_0x2ff197,'ELEMENT_TABLE_OF_CONTENTS',_0x2f8741));}}class Rt extends _0x31fcb9{['afterInit'](){const _0x44df47=this['editor'];if(!_0x44df47['plugins']['has']('Title'))return;const _0x59f195=_0x44df47['plugins']['get']('TrackChangesEditing');_0x59f195['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x44df47['locale'],'ELEMENT_TITLE')),_0x44df47['model']['document']['registerPostFixer'](_0x3c08ed=>{let _0x2ddd79=!0x1;const _0x68f0e0=Array['from'](_0x44df47['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ed9dd,data:_0x3979c2}of _0x68f0e0){const {group:_0x3ad58c}=_0x59f195['_splitMarkerName'](_0x1ed9dd);if('suggestion'!==_0x3ad58c||!_0x3979c2['newRange'])continue;const _0x3f40a1=_0x3979c2['newRange'],_0x1ad96b=_0x3f40a1['end']['nodeBefore'];if(!_0x1ad96b||!_0x1ad96b['is']('element','title-content'))continue;if(!_0x3f40a1['start']['isTouching'](_0x3f40a1['end']))continue;const _0x154bba=_0x44df47['model']['schema']['getNearestSelectionRange'](_0x3f40a1['end'],'forward');if(_0x154bba&&_0x154bba['isCollapsed']){const _0x4535f5=_0x3c08ed['createRange'](_0x3f40a1['start'],_0x154bba['start']);_0x4535f5['isEqual'](_0x3f40a1)||(_0x3c08ed['updateMarker'](_0x1ed9dd,{'range':_0x4535f5}),_0x2ddd79=!0x0);}_0x2ddd79||(_0x3c08ed['removeMarker'](_0x1ed9dd),_0x2ddd79=!0x0);}return _0x2ddd79;});}}class xt extends _0x31fcb9{['afterInit'](){const _0x2c6ad3=this['editor'],_0x2913d2=_0x2c6ad3['plugins']['get']('TrackChangesEditing');_0x2c6ad3['plugins']['has']('Uploadcare')&&(_0x2913d2['enableCommand']('uploadcare'),_0x2c6ad3['plugins']['has']('UploadcareImageEdit')&&(_0x2913d2['enableCommand']('uploadcareImageEdit'),_0x2913d2['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x2913d2['registerBlockAttribute']('uploadcareImageId'),_0x2913d2['descriptionFactory']['registerDescriptionCallback'](_0x579479=>{if('attribute'!=_0x579479['type'])return;const {data:_0x381ec4}=_0x579479;return _0x381ec4&&'uploadcareImageId'==_0x381ec4['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x31fcb9{['afterInit'](){const _0x5044ed=this['editor'],_0x2ab720=_0x5044ed['plugins']['get']('TrackChangesEditing');_0x5044ed['plugins']['has']('UndoEditing')&&(_0x2ab720['enableCommand']('undo'),_0x2ab720['enableCommand']('redo'));}}class Et extends _0x31fcb9{static get['requires'](){return[Ct];}['afterInit'](){const _0x3ea4da=this['editor'];if(!_0x3ea4da['plugins']['has']('TableCaptionEditing'))return;_0x3ea4da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x31fcb9{['tableProperties'];['tableCellProperties'];constructor(_0x1cd26d){super(_0x1cd26d),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x3ccc21=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x24358b of this['tableProperties'])_0x3ccc21['enableCommand'](_0x24358b,(_0x2793a9,_0x37eac3)=>{const _0x111532=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x24358b,[_0x111532],this['tableProperties'],'tableProperties',_0x2793a9,_0x37eac3);});_0x3ccc21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3ccc21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ccc21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4dd4b4,_0x1974fe)=>this['handleDiscardAction'](this['tableProperties'],_0x4dd4b4,_0x1974fe)),_0x3ccc21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x33c1eb of this['tableCellProperties'])_0x3ccc21['enableCommand'](_0x33c1eb,(_0x383c4f,_0x5b38ff)=>{const _0xb7513d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x33c1eb,_0xb7513d,this['tableCellProperties'],'tableCellProperties',_0x383c4f,_0x5b38ff);});_0x3ccc21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3ccc21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ccc21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xfaa3,_0x18f36d)=>this['handleDiscardAction'](this['tableCellProperties'],_0xfaa3,_0x18f36d)),_0x3ccc21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3ccc21['descriptionFactory']['registerDescriptionCallback'](_0x120e60=>this['handleSuggestionDescription'](_0x120e60));}['_handlePropertyChange'](_0x4e0777,_0x5ac995,_0x364b3c,_0x255ad5,_0x324347,_0xd651a3){const _0xbae298=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xd651a3['batch'],()=>{for(const _0x46bf97 of _0x5ac995){if(this['_getSuggestion'](_0x46bf97,_0x255ad5))_0x324347(_0xd651a3);else{const _0x2e6bac={};for(const _0x4e33d3 of _0x364b3c){const _0xafd374=_0x46bf97['getAttribute'](_0x4e33d3);void 0x0!==_0xafd374&&(_0x2e6bac[_0x4e33d3]=_0xafd374);}_0x324347(_0xd651a3),_0xbae298['markBlockFormat'](_0x46bf97,{'commandParams':[_0x2e6bac]},[],_0x255ad5);}}});}['handleDiscardAction'](_0x1e6e5d,_0x1802b6,_0x1df919){const _0x263a67=_0x1802b6[0x0]['start']['nodeAfter'],_0x29beb4=_0x1df919['commandParams'][0x0];this['editor']['model']['change'](_0x5889a2=>{for(const _0x25d571 of _0x1e6e5d)void 0x0!==_0x29beb4[_0x25d571]?_0x5889a2['setAttribute'](_0x25d571,_0x29beb4[_0x25d571],_0x263a67):_0x5889a2['removeAttribute'](_0x25d571,_0x263a67);});}['handleSuggestionDescription'](_0x540c48){if(_0x540c48['data'])switch(_0x540c48['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3ce42b,_0x4a9c80){const _0x4f3c27=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x3435c3 of _0x4f3c27['getSuggestions']({'skipNotAttached':!0x0})){const _0x483b9c=_0x3435c3['getContainedElement']();if(_0x3435c3['subType']===_0x4a9c80&&_0x483b9c===_0x3ce42b)return _0x3435c3;}return null;}}const u='$elementName';class p extends _0x31fcb9{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2f85e5,_0x220d9c,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2bbb41){super(_0x2bbb41),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2e132b,_0x4b7b2a,_0x4a0bf9,_0x21fcb3)=>{this['_model']['change'](()=>{for(const _0x260f53 of[..._0x21fcb3,..._0x4a0bf9])this['_model']['markers']['has'](_0x260f53)&&_0x2bbb41['editing']['reconvertMarker'](_0x260f53);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2bbb41['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x2bbb41['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2bbb41['config']['get']('trackChanges.trackFormatChanges'),_0x2bbb41['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2bbb41['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2bbb41,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2a2a5c=this['editor'],_0x3613fb=(_0x4730d0,_0x2ec0d7)=>{if('attribute'!=_0x4730d0)return'ck-suggestion-marker-'+_0x4730d0;const _0x483ba6=_0x2ec0d7['split']('|')[0x0];return this['_isBlockAttribute'](_0x483ba6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2a2a5c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5d817c=>{const {id:_0x173d1d,authorId:_0x24d4f4,type:_0x259933,subType:_0x3717b4}=this['_splitMarkerName'](_0x5d817c['markerName']),_0x34a683=['ck-suggestion-marker',_0x3613fb(_0x259933,_0x3717b4)];let _0x46c57d=0xbb8;return this['activeMarkers']['includes'](_0x5d817c['markerName'])&&(_0x34a683['push']('ck-suggestion-marker--active'),_0x46c57d=0xbc2),'deletion'==_0x259933&&(_0x46c57d+=0x5),{'classes':_0x34a683,'attributes':{'data-suggestion':_0x173d1d,'data-author-id':_0x24d4f4},'priority':_0x46c57d};}}),_0x2a2a5c['conversion']['for']('dataDowncast')['add'](_0x175e3e=>{_0x175e3e['on']('addMarker:suggestion',(_0x2bbdfc,_0x286098,_0x3d45c9)=>{if(!_0x3d45c9['options']['showSuggestionHighlights'])return;const _0x174377=_0x286098['item'];if(!_0x174377)return;const _0x557ac6=_0x3d45c9['mapper']['toViewElement'](_0x174377);_0x2a2a5c['model']['schema']['isObject'](_0x174377)&&_0x557ac6&&!_0x557ac6['getCustomProperty']('widget')&&_0x557ac6['is']('containerElement')&&_0x12a645(_0x557ac6,_0x3d45c9['writer']);},{'priority':'high'});}),_0x2a2a5c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4330f2,_0x343a97)=>{if(!_0x343a97['options']['showSuggestionHighlights'])return null;const {type:_0x1956c3,subType:_0x557fa6}=this['_splitMarkerName'](_0x4330f2['markerName']);return{'classes':['ck-suggestion-marker',_0x3613fb(_0x1956c3,_0x557fa6)],'priority':0xbb8};}});const _0x7f9307=({showActiveMarkers:_0x2e6471=!0x0,isAttributeSuggestion:_0x198338=!0x1}={})=>(_0x275287,_0x2e38ba,_0x5985dd)=>{if(!_0x2e38ba['item'])return;const {id:_0x5be5cb,authorId:_0x11642c}=this['_splitMarkerName'](_0x2e38ba['markerName']);if(_0x198338){const _0x22b5f0=this['_suggestions']['get'](_0x5be5cb),_0x4e8321=this['_getAttributeKey'](_0x22b5f0);if(!this['_isBlockAttribute'](_0x4e8321))return;}if(_0x2e38ba['item']['is']('selection'))return void _0x5985dd['consumable']['consume'](_0x2e38ba['item'],_0x275287['name']);const _0x5bd862=_0x5985dd['mapper']['toViewElement'](_0x2e38ba['item']);if(_0x2e38ba['item']['is']('element')&&_0x2a2a5c['model']['schema']['isBlock'](_0x2e38ba['item'])&&!_0x5bd862['getCustomProperty']('addHighlight')){_0x5985dd['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5bd862),_0x5985dd['writer']['setAttribute']('data-suggestion',_0x5be5cb,_0x5bd862),_0x5985dd['writer']['setAttribute']('data-author-id',_0x11642c,_0x5bd862),_0x5985dd['mapper']['bindElementToMarker'](_0x5bd862,_0x2e38ba['markerName']),_0x2e6471&&(this['activeMarkers']['includes'](_0x2e38ba['markerName'])?_0x5985dd['writer']['addClass']('ck-suggestion-marker--active',_0x5bd862):_0x5985dd['writer']['removeClass']('ck-suggestion-marker--active',_0x5bd862));for(const _0x24e21e of _0x2a2a5c['model']['createRangeIn'](_0x2e38ba['item'])['getItems']())_0x5985dd['consumable']['consume'](_0x24e21e,_0x275287['name']);_0x5985dd['consumable']['consume'](_0x2e38ba['item'],_0x275287['name']);}};_0x2a2a5c['conversion']['for']('dataDowncast')['add'](_0x373121=>{_0x373121['on']('addMarker:suggestion:formatBlock',(_0x726916,_0x353dfb,_0x4bec9f)=>{_0x4bec9f['options']['showSuggestionHighlights']&&_0x7f9307({'showActiveMarkers':!0x1})(_0x726916,_0x353dfb,_0x4bec9f);},{'priority':'highest'});}),_0x2a2a5c['conversion']['for']('dataDowncast')['add'](_0xf402a6=>{_0xf402a6['on']('addMarker:suggestion:attribute',(_0x4c1fd4,_0x4f5cc6,_0x3699ba)=>{_0x3699ba['options']['showSuggestionHighlights']&&_0x7f9307({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4c1fd4,_0x4f5cc6,_0x3699ba);},{'priority':'highest'});}),_0x2a2a5c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x248287,_0x45d82c)=>_0x45d82c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x248287['substr'](0xb)}}),_0x2a2a5c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x313d01,{writer:_0x4d5be0})=>{let _0x47c4af='suggestion:'+_0x313d01['getAttribute']('suggestion-type')+':'+_0x313d01['getAttribute']('id');return _0x313d01['getAttribute']('marker-count')&&(_0x47c4af+=':'+_0x313d01['getAttribute']('marker-count')),_0x4d5be0['createElement']('$marker',{'data-name':_0x47c4af});}}),_0x2a2a5c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2a2a5c['conversion']['for']('editingDowncast')['add'](_0x1dd0e1=>{_0x1dd0e1['on']('addMarker:suggestion:formatBlock',_0x7f9307(),{'priority':'high'});}),_0x2a2a5c['conversion']['for']('editingDowncast')['add'](_0x1d1411=>{_0x1d1411['on']('addMarker:suggestion:attribute',_0x7f9307({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2a2a5c['conversion']['for']('editingDowncast')['add'](_0x3796e8=>{_0x3796e8['on']('removeMarker:suggestion:formatBlock',(_0x39115b,_0x1a1614,_0xf115a3)=>{const _0x2f56bd=_0xf115a3['mapper']['markerNameToElements'](_0x1a1614['markerName']);if(_0x2f56bd){for(const _0x4b0f85 of _0x2f56bd)_0x4b0f85['getCustomProperty']('addHighlight')||(_0xf115a3['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4b0f85),_0xf115a3['writer']['removeAttribute']('data-suggestion',_0x4b0f85),_0xf115a3['writer']['removeAttribute']('data-author-id',_0x4b0f85),_0xf115a3['mapper']['unbindElementFromMarkerName'](_0x4b0f85,_0x1a1614['markerName']));}},{'priority':'high'});}),_0x2a2a5c['conversion']['for']('editingDowncast')['add'](_0x2bbe81=>{_0x2bbe81['on']('removeMarker:suggestion:attribute',(_0x22561a,_0x3bbcd1,_0x386eb2)=>{const _0x4db70e=_0x386eb2['mapper']['markerNameToElements'](_0x3bbcd1['markerName']);if(!_0x4db70e)return;const {id:_0x1e1417}=this['_splitMarkerName'](_0x3bbcd1['markerName']),_0x1f0fad=this['_suggestions']['get'](_0x1e1417),_0x562b26=this['_getAttributeKey'](_0x1f0fad);if(this['_isBlockAttribute'](_0x562b26)){for(const _0x4297e5 of _0x4db70e)_0x4297e5['getCustomProperty']('addHighlight')||(_0x386eb2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4297e5),_0x386eb2['writer']['removeAttribute']('data-suggestion',_0x4297e5),_0x386eb2['writer']['removeAttribute']('data-author-id',_0x4297e5),_0x386eb2['mapper']['unbindElementFromMarkerName'](_0x4297e5,_0x3bbcd1['markerName']));}},{'priority':'high'});}),_0x2a2a5c['model']['document']['registerPostFixer'](_0x54140a=>{let _0x19140=!0x1;const _0x251ee5=Array['from'](_0x2a2a5c['model']['document']['differ']['getChangedMarkers']()),_0x5911c0=new Set();for(const {name:_0x3d879f,data:_0xcdf019}of _0x251ee5){const {group:_0x8404e5,type:_0x41f14e,subType:_0x1b442a,id:_0x44d64c}=this['_splitMarkerName'](_0x3d879f);if('suggestion'!==_0x8404e5)continue;const _0x53a11d=this['_suggestions']['get'](_0x44d64c);if(null!=_0xcdf019['newRange']){'formatInline'==_0x41f14e&&(_0x19140=_0x19140||Lt(_0xcdf019['newRange'],_0x3d879f,_0x54140a,_0x2a2a5c['model']['schema']));const _0x5e73ef='attribute'==_0x41f14e&&this['_isBlockAttribute'](_0x1b442a['split']('|')[0x0]);if(_0xcdf019['newRange']['isCollapsed']||'$graveyard'==_0xcdf019['newRange']['root']['rootName']||'formatBlock'==_0x41f14e&&!Kt(_0xcdf019['newRange'])||_0x5e73ef&&!Kt(_0xcdf019['newRange'])||'deletion'==_0x41f14e&&!(!Gt(_0x4dd069=_0xcdf019['newRange'])&&!function(_0x1d3359){return _0x1d3359['start']['parent']==_0x1d3359['end']['nodeBefore']&&_0x1d3359['start']['isAtEnd'];}(_0x4dd069)))_0x54140a['removeMarker'](_0x3d879f),_0x19140=!0x0;else{if(!_0x53a11d||!_0x53a11d['isInContent'])continue;if(_0xcdf019['newRange']&&_0xcdf019['oldRange']&&_0xcdf019['newRange']['isEqual'](_0xcdf019['oldRange']))continue;_0x5911c0['add'](_0x53a11d);}}}var _0x4dd069;return _0x5911c0['size']>0x0&&(_0x19140=!!this['_joinWithAdjacentSuggestions'](_0x5911c0)||_0x19140),_0x19140;}),_0x2a2a5c['model']['document']['registerPostFixer'](_0x260456=>{let _0x1a9d4c=!0x1;for(const _0x51e3fe of _0x2a2a5c['model']['document']['differ']['getChanges']())if('insert'==_0x51e3fe['type'])for(const _0x253b6f of this['_suggestions']['values']()){if(_0x253b6f['isMultiRange']||!_0x253b6f['isInContent'])continue;const _0x5b6abc='formatBlock'==_0x253b6f['type'],_0x118ea1=this['_getAttributeKey'](_0x253b6f),_0x522573=_0x118ea1&&this['_isBlockAttribute'](_0x118ea1);if(!_0x5b6abc&&!_0x522573)continue;const _0x216813=_0x253b6f['getFirstRange']();if(_0x216813['start']['parent']!=_0x216813['end']['parent']&&!_0x216813['end']['isAtEnd']){const _0x4cd118=_0x2a2a5c['model']['createPositionAt'](_0x216813['start']['nodeAfter'],'end'),_0x17fc77=_0x2a2a5c['model']['createRange'](_0x216813['start'],_0x4cd118);_0x260456['updateMarker'](_0x253b6f['getFirstMarker'](),{'range':_0x17fc77}),_0x1a9d4c=!0x0;}}return _0x1a9d4c;}),_0x2a2a5c['model']['document']['registerPostFixer'](_0x51a04a=>this['_processAttributeChanges'](_0x51a04a)),_0x2a2a5c['model']['document']['registerPostFixer'](_0x4010d3=>!_0x4010d3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4010d3)),_0x2a2a5c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2a2a5c['model']['document']['on']('change:data',(_0x5cd185,_0x4ddb71)=>{if(!_0x4ddb71['isLocal']||_0x4ddb71['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2ea063=_0x2a2a5c['model']['document']['differ']['getChanges']();if(0x0==_0x2ea063['length'])return;const _0x4cc53a=[],_0x2fb6de=_0x2ea063['filter'](_0x37cc96=>'attribute'==_0x37cc96['type']),_0x2bed48=_0x2ea063['filter'](_0xd4f66e=>'insert'==_0xd4f66e['type']&&'$text'!=_0xd4f66e['name']);for(const _0x16af10 of _0x2fb6de)this['_isRegisteredAttribute'](_0x16af10['attributeKey'])&&_0x4cc53a['push']({'key':_0x16af10['attributeKey'],'newValue':_0x16af10['attributeNewValue'],'oldValue':_0x16af10['attributeOldValue'],'range':Ht(_0x16af10['range'],_0x2a2a5c['model'])});for(const _0x192d85 of _0x2bed48){if('rename'!=_0x192d85['action']&&'refresh'!=_0x192d85['action'])continue;const _0x33d630=qt(_0x192d85['position']['nodeAfter'],_0x2a2a5c['model']),_0x42275b=_0x192d85['before'];'rename'==_0x192d85['action']&&_0x4cc53a['push']({'key':u,'newValue':_0x192d85['name'],'oldValue':_0x42275b['name'],'range':_0x33d630});for(const [_0x485177,_0x96ae55]of _0x42275b['attributes']){if(!this['_isRegisteredAttribute'](_0x485177))continue;const _0x36dbb9=_0x192d85['attributes']['get'](_0x485177);_0x96ae55!==_0x36dbb9&&_0x4cc53a['push']({'key':_0x485177,'newValue':_0x36dbb9,'oldValue':_0x96ae55,'range':_0x33d630});}for(const [_0x91929a,_0x13239b]of _0x192d85['attributes'])this['_isRegisteredAttribute'](_0x91929a)&&(_0x42275b['attributes']['has'](_0x91929a)||_0x4cc53a['push']({'key':_0x91929a,'newValue':_0x13239b,'oldValue':null,'range':_0x33d630}));}0x0!=_0x4cc53a['length']&&_0x2a2a5c['model']['enqueueChange'](_0x4ddb71,_0x4d7be7=>{const _0x3d6141=_0x4597bc();for(const {range:_0x540373,key:_0x3ac9fc,oldValue:_0x4ce988,newValue:_0x5469f5}of _0x4cc53a)this['markAttributeChange'](_0x540373,_0x3ac9fc,_0x4ce988,_0x5469f5,{'groupId':_0x3d6141});this['_reduceExistingSuggestions'](_0x4d7be7,_0x4cc53a);});},{'priority':'lowest'}),_0x2a2a5c['model']['markers']['on']('update:suggestion',(_0x352870,_0x225e5c,_0x200bd3)=>{if(null==_0x200bd3){const {id:_0x2d7376}=this['_splitMarkerName'](_0x225e5c['name']),_0x3f5bc0=this['_suggestions']['get'](_0x2d7376);_0x3f5bc0&&_0x3f5bc0['addMarkerName'](_0x225e5c['name']);}}),_0x2a2a5c['model']['document']['on']('change:data',()=>{const _0x2b4d5d=Array['from'](_0x2a2a5c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x26bb56=>'suggestion'===this['_splitMarkerName'](_0x26bb56['name'])['group']);if(0x0===_0x2b4d5d['length'])return;_0x2b4d5d['sort']((_0x33f4ac,_0x5db4b3)=>{const _0x35d8d0=_0x33f4ac['data']['oldRange'],_0x596739=_0x5db4b3['data']['oldRange'];return null===_0x35d8d0&&null===_0x596739?0x0:null===_0x35d8d0&&null!==_0x596739?-0x1:null!==_0x35d8d0&&null===_0x596739?0x1:_0x35d8d0['start']['isBefore'](_0x596739['start'])?-0x1:0x1;});const _0x2fe4eb=new Set(),_0x1b8851=new Set();for(const {name:_0x4b44cf,data:_0x522249}of _0x2b4d5d){const {id:_0x2793e0}=this['_splitMarkerName'](_0x4b44cf);if(null===_0x522249['oldRange']){const _0x22300e=this['_handleNewSuggestionMarker'](_0x4b44cf);_0x1b8851['add'](_0x22300e);}else{const _0xa05ac6=this['_suggestions']['get'](_0x2793e0);null!==_0x522249['newRange']||_0xa05ac6['isInContent']?(_0x2fe4eb['add'](_0xa05ac6['head']),_0x1b8851['add'](_0xa05ac6)):this['_removeSuggestion'](_0xa05ac6);}}_0x1b8851['size']>0x0&&this['_refreshSuggestionsChain'](_0x1b8851);for(const _0x58a4b2 of _0x2fe4eb)this['fire']('suggestionChanged',_0x58a4b2);}),_0x2a2a5c['model']['on']('applyOperation',(_0x29802d,_0x3ae947)=>{const _0x450058=_0x3ae947[0x0];if(!this['_suggestions']['size'])return;if(!_0x450058['isDocumentOperation'])return;if(_0x450058['batch']['isUndo']||!_0x450058['batch']['isLocal'])return;let _0x18960e,_0x44832f;switch(_0x450058['type']){case'insert':_0x18960e=_0x2a2a5c['model']['createPositionAt'](_0x450058['position']),_0x44832f=_0x18960e['getShiftedBy'](_0x450058['howMany']);break;case'split':_0x18960e=_0x2a2a5c['model']['createPositionAt'](_0x450058['splitPosition']),_0x44832f=_0x2a2a5c['model']['createPositionAt'](_0x450058['moveTargetPosition']);break;case'move':_0x18960e=_0x2a2a5c['model']['createPositionAt'](_0x450058['targetPosition']),_0x44832f=_0x18960e['getShiftedBy'](_0x450058['howMany']);break;default:return;}const _0x31357a=_0x2a2a5c['model']['createRange'](_0x18960e,_0x44832f);_0x2a2a5c['model']['change'](()=>{for(const {suggestion:_0x2008b4,meta:_0x26a8a1}of this['_findSuggestions'](_0x31357a)){if(_0x2008b4['isMultiRange'])continue;if('formatInline'==_0x2008b4['type'])continue;const _0x1ed1a6=this['_getAttributeKey'](_0x2008b4);if(_0x1ed1a6&&this['_isBlockAttribute'](_0x1ed1a6)&&'split'!=_0x450058['type'])continue;const _0x326bfe=_0x2008b4['data']&&_0x2008b4['data']['multipleBlocks'];('formatBlock'!=_0x2008b4['type']||'split'==_0x450058['type']&&!_0x326bfe)&&(_0x26a8a1['containsRangeInObject']||'insertion'==_0x2008b4['type']&&_0x26a8a1['isOwn']||_0x2008b4['getFirstRange']()['containsRange'](_0x31357a)&&this['_breakSuggestionMarker'](_0x2008b4,_0x18960e,_0x44832f));}});},{'priority':'lowest'}),_0x2a2a5c['model']['on']('deleteContent',(_0x161c5a,_0x5dcb28)=>{const _0x5d07fe=_0x5dcb28[0x0],_0x5a9ffe=_0x5dcb28[0x1];if(_0x5a9ffe&&_0x5a9ffe['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5d07fe['isCollapsed'])return;const _0x4017bc=_0x2a2a5c['model']['schema'],{start:_0x1292f2,end:_0x314108}=_0x5d07fe['getFirstRange'](),_0x3a3b81=_0x1292f2['nodeAfter']&&_0x4017bc['isLimit'](_0x1292f2['nodeAfter'])?null:_0x4017bc['getNearestSelectionRange'](_0x1292f2,'forward'),_0x3f93f2=_0x314108['nodeBefore']&&_0x4017bc['isLimit'](_0x314108['nodeBefore'])?null:_0x4017bc['getNearestSelectionRange'](_0x314108,'backward'),_0x62af04=_0x2a2a5c['model']['createRange'](_0x3a3b81?_0x3a3b81['start']:_0x1292f2,_0x3f93f2?_0x3f93f2['end']:_0x314108);_0x2a2a5c['model']['change'](_0x140b6e=>{this['markDeletion'](_0x62af04);const _0x4021bb=_0x2a2a5c['model']['schema']['getNearestSelectionRange'](_0x62af04['start']);_0x5d07fe['is']('documentSelection')?_0x140b6e['setSelection'](_0x4021bb):_0x5d07fe['setTo'](_0x4021bb);}),_0x161c5a['stop']();},{'priority':_0x4b5085['normal']+0xa}),_0x2a2a5c['model']['on']('insertContent',(_0x29ff4f,_0x20121d)=>{const _0x436cd3=_0x20121d[_0x20121d['length']-0x1];_0x436cd3&&_0x436cd3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2a2a5c['model']['change'](()=>{let _0x2edad0=_0x2a2a5c['model']['insertContent'](_0x20121d[0x0],_0x20121d[0x1],_0x20121d[0x2],{'forceDefaultExecution':!0x0});if(!_0x2edad0)return;_0x29ff4f['return']=_0x2edad0['clone']();const _0x3a84df=_0x2edad0['end']['nodeBefore'],_0x5b59d7=_0x2a2a5c['model']['schema'];_0x3a84df&&_0x5b59d7['isBlock'](_0x3a84df)&&!_0x5b59d7['isObject'](_0x3a84df)&&(_0x2edad0=_0x2a2a5c['model']['createRange'](_0x2edad0['start'],_0x2a2a5c['model']['createPositionAt'](_0x3a84df,'end'))),this['markInsertion'](_0x2edad0);}),_0x29ff4f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x30cdd1=new O(_0x2a2a5c,this['_suggestions']);_0x2a2a5c['commands']['add']('acceptSuggestion',_0x30cdd1),this['enableCommand']('acceptSuggestion');const _0x5175c3=new R(_0x2a2a5c,this['_suggestions']);_0x2a2a5c['commands']['add']('discardSuggestion',_0x5175c3),this['enableCommand']('discardSuggestion'),_0x2a2a5c['commands']['add']('acceptAllSuggestions',new x(_0x2a2a5c,_0x30cdd1,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2a2a5c['commands']['add']('discardAllSuggestions',new x(_0x2a2a5c,_0x5175c3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2a2a5c['commands']['add']('acceptSelectedSuggestions',new E(_0x2a2a5c,_0x30cdd1,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2a2a5c['commands']['add']('discardSelectedSuggestions',new E(_0x2a2a5c,_0x5175c3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3bb734=_0x2a2a5c['plugins']['get']('CommentsRepository');this['listenTo'](_0x3bb734,'addComment',(_0x4fc371,{threadId:_0x4453dc})=>{const _0x48050c=this['_suggestions']['get'](_0x4453dc);_0x48050c&&_0x48050c['commentThread']&&0x1===_0x48050c['commentThread']['length']&&this['_updateSuggestionData'](_0x4453dc,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3bb734,'removeComment',(_0x319410,{threadId:_0x1ad07b})=>{const _0x3b0c67=this['_suggestions']['get'](_0x1ad07b);_0x3b0c67&&_0x3b0c67['commentThread']&&!_0x3b0c67['commentThread']['length']&&this['_updateSuggestionData'](_0x1ad07b,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1c354c){const _0x8daa3c=_0x12e8e9([0x54,0x66,0x6a,0x69,0x4f,0x31,0x45,0x62,0x50,0x32,0x41,0x72,0x5a,0x79,0x38,0x7a,0x59,0x43,0x4b,0x6b,0x37,0x6d,0x58,0x53,0x77,0x78,0x36,0x6e,0x34,0x47,0x39,0x4c,0x57,0x64,0x4e,0x42,0x48,0x56,0x30,0x74,0x4a,0x52,0x73,0x67,0x6c,0x76,0x68,0x49,0x71,0x6f,0x75,0x35,0x55,0x51,0x4d,0x61,0x46,0x44,0x70,0x33,0x65,0x63]),_0xbe4ea7=0x429d8780,_0xe9d473=0x429ae5f8^_0xbe4ea7,_0x7cadb8=window[_0x12e8e9([0x44,0x61,0x74,0x65])][_0x12e8e9([0x6e,0x6f,0x77])](),_0x4b7542=_0x1c354c[_0x12e8e9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x9e6d70=new window[(_0x12e8e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x220401=>{_0x4b7542[_0x12e8e9([0x6f,0x6e,0x63,0x65])](_0x12e8e9([0x72,0x65,0x61,0x64,0x79]),_0x220401);}),_0xa0b528={[_0x12e8e9([0x6b,0x74,0x79])]:_0x12e8e9([0x45,0x43]),[_0x12e8e9([0x75,0x73,0x65])]:_0x12e8e9([0x73,0x69,0x67]),[_0x12e8e9([0x63,0x72,0x76])]:_0x12e8e9([0x50,0x2d,0x32,0x35,0x36]),[_0x12e8e9([0x78])]:_0x12e8e9([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x12e8e9([0x79])]:_0x12e8e9([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x12e8e9([0x61,0x6c,0x67])]:_0x12e8e9([0x45,0x53,0x32,0x35,0x36])},_0x191d71=_0x4b7542[_0x12e8e9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x12e8e9([0x67,0x65,0x74])](_0x12e8e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x58e038(){let _0x17a6ef,_0x3af0bf=null,_0xf89c3f=null;try{if(_0x191d71==_0x12e8e9([0x47,0x50,0x4c]))return _0x12e8e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17a6ef=_0x40c5ab(),!_0x17a6ef)return _0x12e8e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17a6ef[_0x12e8e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf89c3f=_0x390896(_0x17a6ef[_0x12e8e9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17a6ef[_0x12e8e9([0x6a,0x74,0x69])])),await _0x59aaa9()?_0x2fc29f()?_0x2084dd()?_0x12e8e9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c26e2()?(_0x17a6ef[_0x12e8e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12e8e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3af0bf=_0xe0742f(_0x12e8e9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17a6ef[_0x12e8e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x12e8e9([0x74,0x72,0x69,0x61,0x6c])&&(_0x3af0bf=_0xe0742f(_0x12e8e9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x459668()):_0x12e8e9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x12e8e9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x12e8e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x173dc8){return _0x12e8e9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2084dd(){const _0x58702f=[_0x12e8e9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x12e8e9([0x74,0x72,0x69,0x61,0x6c])][_0x12e8e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17a6ef[_0x12e8e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7cadb8/0x3e8:0xe10*_0xe9d473;return _0x17a6ef[_0x12e8e9([0x65,0x78,0x70])]<_0x58702f;}function _0x2fc29f(){const _0xa5e510=_0x17a6ef[_0x12e8e9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa5e510)return!0x1;if(_0xa5e510[_0x12e8e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12e8e9([0x2a])))return!0x0;if(_0xa5e510[_0x12e8e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12e8e9([0x54,0x43])))return!0x0;if(_0xa5e510[_0x12e8e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12e8e9([0x52,0x54,0x43]))){if(_0xdd8e31())return!0x0;if(_0x47f51a()||_0x25ccbd())return!0x0;}return!0x1;}function _0x5c26e2(){const _0xe78825=_0x17a6ef[_0x12e8e9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xe78825||0x0==_0xe78825[_0x12e8e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56765}=new URL(window[_0x12e8e9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xe78825[_0x12e8e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56765))return!0x0;const _0x4c0372=_0x56765[_0x12e8e9([0x73,0x70,0x6c,0x69,0x74])](_0x12e8e9([0x2e]));return _0xe78825[_0x12e8e9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb0095a=>_0xb0095a[_0x12e8e9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12e8e9([0x2a])))[_0x12e8e9([0x6d,0x61,0x70])](_0x57bf22=>_0x57bf22[_0x12e8e9([0x73,0x70,0x6c,0x69,0x74])](_0x12e8e9([0x2e])))[_0x12e8e9([0x73,0x6f,0x6d,0x65])](_0x102687=>_0x4c0372[_0x12e8e9([0x65,0x76,0x65,0x72,0x79])]((_0x33b891,_0x2b3099)=>_0x102687[_0x2b3099]===_0x33b891||_0x102687[_0x2b3099]===_0x12e8e9([0x2a])));}function _0x459668(){return _0x3af0bf&&_0xf89c3f?new window[(_0x12e8e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x524dac,_0x284d1b)=>{_0x3af0bf[_0x12e8e9([0x74,0x68,0x65,0x6e])](_0x524dac,_0x284d1b),_0xf89c3f[_0x12e8e9([0x74,0x68,0x65,0x6e])](_0x555c6f=>{_0x555c6f!=_0x12e8e9([0x56,0x61,0x6c,0x69,0x64])&&_0x524dac(_0x555c6f);},_0x284d1b);}):_0x3af0bf||_0xf89c3f||_0x12e8e9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x390896(_0x4efa88,_0x5f4c72){return new window[(_0x12e8e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15b072=>{if(_0x8c4621())return _0x15b072(_0x12e8e9([0x56,0x61,0x6c,0x69,0x64]));_0x172443(),_0x4b7542[_0x12e8e9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x12e8e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x57432d=!0x1;const _0x553a10=_0x4597bc();function _0x37c0b3(_0x37a970){return!!_0x37a970&&(typeof _0x37a970===_0x12e8e9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x37a970===_0x12e8e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x37a970[_0x12e8e9([0x74,0x68,0x65,0x6e])]===_0x12e8e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x37a970[_0x12e8e9([0x63,0x61,0x74,0x63,0x68])]===_0x12e8e9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27ec63(_0x360be9){_0x3cc869(_0x360be9)[_0x12e8e9([0x74,0x68,0x65,0x6e])](_0x28d754=>{if(!_0x28d754||_0x28d754[_0x12e8e9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x12e8e9([0x6f,0x6b]))return _0x12e8e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x97e414(_0x29041b(_0x553a10+_0x5f4c72))!=_0x28d754[_0x12e8e9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x12e8e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x12e8e9([0x56,0x61,0x6c,0x69,0x64]);})[_0x12e8e9([0x74,0x68,0x65,0x6e])](_0x419b36=>(_0x558a1f(),_0x419b36),()=>{const _0x529613=_0x5dfb15();return null==_0x529613?(_0x558a1f(),_0x12e8e9([0x56,0x61,0x6c,0x69,0x64])):_0x12e8e9(_0x7cadb8-_0x529613>(0x66910380^_0xbe4ea7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x12e8e9([0x74,0x68,0x65,0x6e])](_0x15b072)[_0x12e8e9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x15b072(_0x12e8e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x151346=0x42ab6900^_0xbe4ea7;function _0x558a1f(){const _0x46a0de=_0x12e8e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x97e414(_0x29041b(_0x4efa88)),_0x5c92b9=_0x255fbc(_0x97e414(window[_0x12e8e9([0x4d,0x61,0x74,0x68])][_0x12e8e9([0x63,0x65,0x69,0x6c])](_0x7cadb8/_0x151346)));window[_0x12e8e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12e8e9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46a0de,_0x5c92b9);}function _0x5dfb15(){const _0x2c39c2=_0x12e8e9([0x6c,0x6c,0x63,0x74,0x2d])+_0x97e414(_0x29041b(_0x4efa88)),_0x24bc60=window[_0x12e8e9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x12e8e9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c39c2);return _0x24bc60?window[_0x12e8e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x255fbc(_0x24bc60),0x10)*_0x151346:null;}function _0x3cc869(_0x97a60){return new window[(_0x12e8e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b60e1,_0xfd3fbb)=>{_0x97a60[_0x12e8e9([0x74,0x68,0x65,0x6e])](_0x1b60e1,_0xfd3fbb),window[_0x12e8e9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xfd3fbb,0x429c5340^_0xbe4ea7);});}}_0x4b7542[_0x12e8e9([0x6f,0x6e])](_0x12e8e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4faf4c,_0x342d07)=>{if(_0x342d07[0x0]!=_0x4efa88)return _0x15b072(_0x12e8e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x342d07[0x1]={..._0x342d07[0x1],[_0x12e8e9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x553a10};},{[_0x12e8e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12e8e9([0x68,0x69,0x67,0x68])}),_0x4b7542[_0x12e8e9([0x6f,0x6e])](_0x12e8e9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3d3245=>{_0x37c0b3(_0x3d3245[_0x12e8e9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x57432d=!0x0,_0x27ec63(_0x3d3245[_0x12e8e9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x12e8e9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x12e8e9([0x6c,0x6f,0x77])}),_0x9e6d70[_0x12e8e9([0x74,0x68,0x65,0x6e])](()=>{_0x57432d||_0x15b072(_0x12e8e9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x8c4621(){return _0x4b7542[_0x12e8e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12e8e9([0x76,0x69,0x65,0x77])][_0x12e8e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x12e8e9([0x61,0x75,0x74,0x6f]);}function _0x172443(){_0x4b7542[_0x12e8e9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x12e8e9([0x76,0x69,0x65,0x77])][_0x12e8e9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x12e8e9([0x61,0x75,0x74,0x6f]);}}function _0xe0742f(_0xc7732c){const _0xc8d882=[new window[(_0x12e8e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bd274=>setTimeout(_0x1bd274,0x4294b94c^_0xbe4ea7)),_0x9e6d70[_0x12e8e9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x12e8e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1150ad=>{let _0x45b143=0x0;_0x4b7542[_0x12e8e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x12e8e9([0x6f,0x6e])](_0x12e8e9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d0d83,_0x331a3b)=>{_0x331a3b[0x0][_0x12e8e9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x45b143++,_0x45b143==(0x429d8678^_0xbe4ea7)&&(_0x1150ad(),_0x5d0d83[_0x12e8e9([0x6f,0x66,0x66])]());});}))];return window[_0x12e8e9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x12e8e9([0x72,0x61,0x63,0x65])](_0xc8d882)[_0x12e8e9([0x74,0x68,0x65,0x6e])](()=>_0xc7732c);}async function _0x1312b1(){await _0x9e6d70,_0x4b7542[_0x12e8e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x12e8e9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a3de1,_0x4b7542[_0x12e8e9([0x6d,0x6f,0x64,0x65,0x6c])][_0x12e8e9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a3de1,_0x4b7542[_0x12e8e9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x12e8e9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xdd8e31(){return _0x29ab0f(_0x12e8e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xb82535(_0x12e8e9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x12e8e9([0x73,0x74,0x61,0x74,0x65])]==_0x12e8e9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x47f51a(){return _0x29ab0f(_0x12e8e9([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x25ccbd(){return _0x29ab0f(_0x12e8e9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x380d8e(_0x2ece74){const _0x1af1b5=_0x5f35c7();_0x4b7542[_0x1af1b5]=_0x12e8e9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2ece74,_0x2ece74!=_0x12e8e9([0x56,0x61,0x6c,0x69,0x64])&&_0x1312b1();}function _0x5f35c7(){const _0x220b5b=window[_0x12e8e9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x12e8e9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x12e8e9([0x6e,0x6f,0x77])]())[_0x12e8e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x12e8e9([0x2e]),'');let _0x22d7f3=_0x12e8e9([0x54]);for(let _0x16cc03=0x0;_0x16cc03<_0x220b5b[_0x12e8e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16cc03+=0x2){let _0x567c90=window[_0x12e8e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x220b5b[_0x12e8e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16cc03,_0x16cc03+0x2));_0x567c90>=_0x8daa3c[_0x12e8e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x567c90-=_0x8daa3c[_0x12e8e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x22d7f3+=_0x8daa3c[_0x567c90];}return _0x22d7f3;}function _0x40c5ab(){const _0x228e91=_0x191d71[_0x12e8e9([0x73,0x70,0x6c,0x69,0x74])](_0x12e8e9([0x2e]));if(0x3!=_0x228e91[_0x12e8e9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x101f68(_0x228e91[0x1]);function _0x101f68(_0x17f3fa){const _0x726fca=_0x26d6b9(_0x17f3fa);return _0x726fca&&_0x2c3566()?_0x726fca:null;function _0x2c3566(){const _0x1ea51e=_0x726fca[_0x12e8e9([0x6a,0x74,0x69])],_0x4f65bd=window[_0x12e8e9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ea51e[_0x12e8e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ea51e[_0x12e8e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xffb143={..._0x726fca,[_0x12e8e9([0x6a,0x74,0x69])]:_0x1ea51e[_0x12e8e9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ea51e[_0x12e8e9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xffb143[_0x12e8e9([0x76,0x63])],_0x29041b(_0xffb143)==_0x4f65bd;}}}async function _0x59aaa9(){let _0x380190=!0x0;try{const _0x4d41f7=_0x191d71[_0x12e8e9([0x73,0x70,0x6c,0x69,0x74])](_0x12e8e9([0x2e])),[_0x742a77,_0x206ea4,_0x5503fa]=_0x4d41f7;return _0x5b1e69(_0x742a77),await _0x18cb83(_0x742a77,_0x206ea4,_0x5503fa),_0x380190;}catch(_0x2aa4f0){return!0x1;}function _0x5b1e69(_0x56e93f){const _0x284cf3=_0x26d6b9(_0x56e93f);_0x284cf3&&_0x284cf3[_0x12e8e9([0x61,0x6c,0x67])]==_0x12e8e9([0x45,0x53,0x32,0x35,0x36])||(_0x380190=!0x1);}async function _0x18cb83(_0x4c4487,_0x396d7b,_0x3231bb){const _0x71b292=window[_0x12e8e9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x12e8e9([0x66,0x72,0x6f,0x6d])](_0x3642f7(_0x3231bb),_0x55ef3d=>_0x55ef3d[_0x12e8e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f1325=new window[(_0x12e8e9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x12e8e9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c4487+_0x12e8e9([0x2e])+_0x396d7b),_0x10cf62=window[_0x12e8e9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x12e8e9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x10cf62)return;const _0x475955=await _0x10cf62[_0x12e8e9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x12e8e9([0x6a,0x77,0x6b]),_0xa0b528,{[_0x12e8e9([0x6e,0x61,0x6d,0x65])]:_0x12e8e9([0x45,0x43,0x44,0x53,0x41]),[_0x12e8e9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x12e8e9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x12e8e9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x10cf62[_0x12e8e9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x12e8e9([0x6e,0x61,0x6d,0x65])]:_0x12e8e9([0x45,0x43,0x44,0x53,0x41]),[_0x12e8e9([0x68,0x61,0x73,0x68])]:{[_0x12e8e9([0x6e,0x61,0x6d,0x65])]:_0x12e8e9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x475955,_0x71b292,_0x2f1325)||(_0x380190=!0x1);}}function _0x26d6b9(_0x2fe5bc){return _0x2fe5bc[_0x12e8e9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x12e8e9([0x65,0x79]))?JSON[_0x12e8e9([0x70,0x61,0x72,0x73,0x65])](_0x3642f7(_0x2fe5bc)):null;}function _0x3642f7(_0x1534e9){return window[_0x12e8e9([0x61,0x74,0x6f,0x62])](_0x1534e9[_0x12e8e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x12e8e9([0x2b]))[_0x12e8e9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x12e8e9([0x2f])));}function _0x29041b(_0x352776){let _0x522ae0=0x1505;function _0x3c749b(_0x25cb4f){for(let _0x483aa5=0x0;_0x483aa5<_0x25cb4f[_0x12e8e9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x483aa5++){const _0x593916=_0x25cb4f[_0x12e8e9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x483aa5);_0x522ae0=(_0x522ae0<<0x5)+_0x522ae0+_0x593916,_0x522ae0&=_0x522ae0;}}function _0x5739b6(_0x359037){Array[_0x12e8e9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x359037)?_0x359037[_0x12e8e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5739b6):_0x359037&&typeof _0x359037==_0x12e8e9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x12e8e9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x359037)[_0x12e8e9([0x73,0x6f,0x72,0x74])]()[_0x12e8e9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ea0a7,_0x4be5c7])=>{_0x3c749b(_0x1ea0a7),_0x5739b6(_0x4be5c7);}):_0x3c749b(window[_0x12e8e9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x359037));}return _0x5739b6(_0x352776),_0x522ae0>>>0x0;}function _0x97e414(_0x9cd981){return _0x9cd981[_0x12e8e9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x12e8e9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x12e8e9([0x30]));}function _0x255fbc(_0x231471){return _0x231471[_0x12e8e9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x12e8e9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x12e8e9([0x6a,0x6f,0x69,0x6e])]('');}function _0x29ab0f(_0x123a01){return _0x4b7542[_0x12e8e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12e8e9([0x68,0x61,0x73])](_0x123a01);}function _0xb82535(_0x27a53b){return _0x4b7542[_0x12e8e9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x12e8e9([0x67,0x65,0x74])](_0x27a53b);}function _0x5a3de1(){}function _0x12e8e9(_0x109c5f){return _0x109c5f['map'](_0x4aff19=>String['fromCharCode'](_0x4aff19))['join']('');}_0x380d8e(await _0x58e038());}(this);}set['adapter'](_0x30512f){if(this['_adapter'])throw new _0x48f3a9('track-changes-adapter-already-set',this);this['_adapter']=_0x30512f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0xece8c7=!0x1,toJSON:_0x1b7553=!0x1}={}){const _0x57df32=[];for(const _0x1fe598 of this['_suggestions']['values']())_0xece8c7&&!_0x1fe598['isInContent']||_0x57df32['push'](_0x1fe598);return _0x1b7553?_0x57df32['map'](_0x4e4cb7=>_0x4e4cb7['toJSON']()):_0x57df32;}['getSuggestion'](_0x2a2748){const _0x573f4a=this['_suggestions']['get'](_0x2a2748);if(!_0x573f4a)throw new _0x48f3a9('track-changes-suggestion-not-found',this);return _0x573f4a;}['hasSuggestion'](_0x119dd8){return this['_suggestions']['has'](_0x119dd8);}['addSuggestionData'](_0x1cda39){const {authorId:_0x4e9c9a,id:_0x44c64e,attributes:_0x5904e3}=_0x1cda39,[_0xa7483b,_0x34da39]=_0x1cda39['type']['split'](':'),_0x418f93=this['_suggestions']['get'](_0x44c64e)||this['_createSuggestion'](_0xa7483b,_0x34da39,_0x44c64e,_0x4e9c9a,_0x5904e3);if(this['_addThreadToSuggestion'](_0x418f93),this['_checkSuggestionCorrectness'](_0x418f93,_0xa7483b,_0x34da39||null,_0x4e9c9a),_0x418f93['createdAt']=_0x1cda39['createdAt'],_0x418f93['_isDataLoaded']=!0x0,_0x5904e3&&_0x5904e3['@external']){const _0x83c87f=_0x5904e3['@external'],_0x52568e=this['_getExternalAuthor'](_0x83c87f['authorName']);_0x418f93['authoredAt']=_0x83c87f['createdAt'],_0x418f93['author']=_0x52568e,_0x418f93['isExternal']=!0x0;}else _0x418f93['authoredAt']=_0x1cda39['createdAt'];switch(_0x1cda39['data']&&(_0x418f93['data']=_0x1cda39['data']),_0x1cda39['attributes']&&(_0x418f93['attributes']=_0x1cda39['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x418f93['_saved']=!0x0),this['_suggestionState']['get'](_0x418f93)){case'notReady':this['_suggestionState']['set'](_0x418f93,'dataReady');break;case'markerReady':_0x418f93['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x418f93])),this['_refreshSuggestionsChain'](new Set([_0x418f93])),this['_suggestionState']['set'](_0x418f93,'ready'),this['fire']('suggestionLoaded',_0x418f93)):this['_suggestionState']['set'](_0x418f93,'removed');}return _0x418f93;}['acceptSuggestion'](_0x352e6a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b8266 of _0x352e6a['getAllAdjacentSuggestions']())_0x3b8266['accept']();});});}['discardSuggestion'](_0x336b06){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x11aed5 of _0x336b06['getAllAdjacentSuggestions']())_0x11aed5['discard']();});});}['enableCommand'](_0x3f0965,_0x1e0a5a){const _0x39c8df=this['editor']['commands']['get'](_0x3f0965);if(!_0x39c8df)throw new _0x48f3a9('track-changes-command-not-found',this,{'commandName':_0x3f0965});if(this['_enabledCommands']['has'](_0x39c8df))throw new _0x48f3a9('track-changes-enable-command-twice',this,{'commandName':_0x3f0965});this['_enabledCommands']['add'](_0x39c8df),_0x1e0a5a&&_0x39c8df['on']('execute',(_0x291807,_0x3df2be)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3df2be['length']>0x0&&_0x3df2be[_0x3df2be['length']-0x1]&&_0x3df2be[_0x3df2be['length']-0x1]['forceDefaultExecution']?_0x3df2be['pop']():(_0x291807['return']=_0x1e0a5a((..._0x2dab4e)=>_0x39c8df['execute'](..._0x2dab4e,{'forceDefaultExecution':!0x0}),..._0x3df2be),_0x291807['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x592343){let _0x4cd7e3,_0x3811ba;const _0x5abd3b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4cd7e3=_0x592343();}catch(_0xd26fba){_0x3811ba=_0xd26fba;}return _0x5abd3b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x3811ba&&_0x48f3a9['rethrowUnexpectedError'](_0x3811ba,this),_0x4cd7e3;}['markInsertion'](_0x4c9ca0,_0x4d9ad5=null,_0x5edbba={}){if(_0x4c9ca0['isCollapsed'])return null;const _0x4fa115=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5077a6,meta:_0xc1636d}of this['_findSuggestions'](_0x4c9ca0,'insertion'))if(_0xc1636d['isOwn']){if(!_0xc1636d['isNextTo']){if(_0xc1636d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x5077a6,_0x5edbba))continue;return _0x5077a6;}if(Qt(_0x5077a6,_0x5edbba))return _0x5077a6;this['_breakSuggestionMarker'](_0x5077a6,_0x4c9ca0['start'],_0x4c9ca0['end']);break;}if(_0x4d9ad5==_0x5077a6['subType']&&Qt(_0x5077a6,_0x5edbba)){const _0x4ef62f=_0x5077a6['getFirstRange']();return _0x4ef62f['start']['isEqual'](_0x4c9ca0['end'])?this['_setSuggestionRange'](_0x5077a6,this['_model']['createRange'](_0x4c9ca0['start'],_0x4ef62f['end'])):this['_setSuggestionRange'](_0x5077a6,this['_model']['createRange'](_0x4ef62f['start'],_0x4c9ca0['end'])),_0x5077a6;}}const _0x35e2a9=_0x4597bc(),_0x3ec610=_0x4fa115['id'],_0x30bfa9=_0x4d9ad5?'insertion:'+_0x4d9ad5:'insertion',_0x258fda=this['_setSuggestionData']({'id':_0x35e2a9,'type':_0x30bfa9,'createdAt':new Date(),'authorId':_0x3ec610,'attributes':_0x5edbba});return this['_addSuggestionMarker'](_0x30bfa9,_0x35e2a9,_0x3ec610,_0x4c9ca0),_0x258fda;}['markMultiRangeInsertion'](_0x388bc9,_0x47a225='multi',_0x4f8bc3={}){const _0x521f72=this['editor']['plugins']['get']('Users')['me'],_0xd5dfd6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x47a225,'join');for(const _0x1f383b of this['getSuggestions']())if(_0x1f383b['author']['id']==_0x521f72['id']&&'insertion'==_0x1f383b['type']&&_0x1f383b['subType']==_0x47a225&&Qt(_0x1f383b,_0x4f8bc3)&&(_0xd5dfd6(_0x1f383b['getRanges'](),_0x388bc9)||_0xd5dfd6(_0x388bc9,_0x1f383b['getRanges']()))){for(const _0x3620b4 of _0x388bc9)_0x1f383b['addRange'](_0x3620b4);return _0x1f383b;}for(const {suggestion:_0x3633b2,meta:_0x304d2b}of this['_findSuggestions'](_0x388bc9,'insertion')){if(!_0x304d2b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x304d2b['containsRangeInObject'])continue;if(!Qt(_0x3633b2,_0x4f8bc3))continue;let _0x59dcc1=!0x0;for(const _0xaeb3a4 of _0x3633b2['getRanges']())for(const _0x23d7b1 of _0x388bc9)if(!_0xaeb3a4['containsRange'](_0x23d7b1)){_0x59dcc1=!0x1;break;}if(_0x59dcc1)return _0x3633b2;}const _0x4f9d1f=_0x4597bc(),_0x49b4cf=_0x521f72['id'],_0x25628='insertion:'+_0x47a225,_0x1fffa6=this['_setSuggestionData']({'id':_0x4f9d1f,'type':_0x25628,'createdAt':new Date(),'authorId':_0x49b4cf,'attributes':_0x4f8bc3});for(const _0x5ad173 of _0x388bc9)this['_addSuggestionMarker'](_0x25628,_0x4f9d1f,_0x49b4cf,_0x5ad173,o['getMultiRangeId']());return _0x1fffa6;}['markInlineFormat'](_0x4b19e7,_0x114c5c,_0x25ee44=null,_0x2cabd9={}){if(_0x25ee44=_0x25ee44||Jt(_0x114c5c),_0x4b19e7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0xb249fe=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x25ee44,'accept');return this['forceDefaultExecution'](()=>_0xb249fe([_0x4b19e7],_0x114c5c,_0x2cabd9)),null;}const _0x597cde=this['editor']['plugins']['get']('Users')['me'],_0x12ff79=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1ff604,meta:_0x42e2e7}of this['_findSuggestions'](_0x4b19e7,'insertion'))_0x42e2e7['isOwn']&&!_0x42e2e7['isInsideObject']&&_0x12ff79['push'](..._0x1ff604['getRanges']());}const _0x100649=function(_0x27c3ae,_0x471372){const _0x194e4c=[];for(const _0xf90ade of _0x471372){const _0x5cbe62=_0x27c3ae['getIntersection'](_0xf90ade);_0x5cbe62&&_0x194e4c['push'](_0x5cbe62);}return _0x194e4c;}(_0x4b19e7,_0x12ff79),_0x16d58f=function(_0xf0f8f0,_0x1fd4ab){const _0x160a5f=[_0xf0f8f0];for(const _0x2dd318 of _0x1fd4ab){let _0x55029b=0x0;for(;_0x55029b<_0x160a5f['length'];){const _0x45632d=_0x160a5f[_0x55029b]['getDifference'](_0x2dd318);_0x160a5f['splice'](_0x55029b,0x1,..._0x45632d),_0x55029b+=_0x45632d['length'];}}return _0x160a5f;}(_0x4b19e7,_0x12ff79);_0x100649['length']&&this['_model']['change'](()=>{for(const _0x39e672 of _0x100649){const _0x1201c7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x25ee44,'accept');this['forceDefaultExecution'](()=>_0x1201c7([_0x39e672],_0x114c5c,_0x2cabd9));}});for(const _0x5b4d75 of _0x16d58f){let _0x5f2c7f=null,_0x555868=_0x5b4d75['start'],_0xf0cae9=_0x5b4d75['end'];for(const {suggestion:_0x5bebd1,meta:_0x44f6cf}of this['_findSuggestions'](_0x5b4d75,'formatInline')){if(!_0x44f6cf['isOwn'])continue;if(_0x5bebd1['subType']!=_0x25ee44)continue;if(!Qt(_0x5bebd1,_0x2cabd9))continue;const _0x35834c=_0x5bebd1['getFirstRange']();if(_0x35834c['containsRange'](_0x5b4d75,!0x0))return null;_0x555868=_0x555868['isBefore'](_0x35834c['start'])?_0x555868:_0x35834c['start'],_0xf0cae9=_0xf0cae9['isAfter'](_0x35834c['end'])?_0xf0cae9:_0x35834c['end'],_0x5f2c7f?_0x35834c['start']['isBefore'](_0x5f2c7f['getFirstRange']()['start'])?(_0x5f2c7f['removeMarkers'](),_0x5f2c7f=_0x5bebd1):_0x5bebd1['removeMarkers']():_0x5f2c7f=_0x5bebd1;}const _0x3fbac1=this['_model']['createRange'](_0x555868,_0xf0cae9);if(_0x5f2c7f)this['_setSuggestionRange'](_0x5f2c7f,_0x3fbac1);else{const _0xb480dd=_0x4597bc(),_0x3b85b3=_0x597cde['id'];this['_setSuggestionData']({'id':_0xb480dd,'type':'formatInline:'+_0x25ee44,'data':_0x114c5c,'createdAt':new Date(),'authorId':_0x3b85b3,'attributes':_0x2cabd9}),this['_addSuggestionMarker']('formatInline:'+_0x25ee44,_0xb480dd,_0x3b85b3,_0x3fbac1);}}return null;}['markBlockFormat'](_0x57f9df,_0x153094,_0xfc605f=[],_0x271355=null,_0x59dcc4={}){_0x153094['formatGroupId']||(_0x153094['formatGroupId']=_0x153094['commandName']),_0x153094['multipleBlocks']=_0x57f9df['is']('range'),_0x271355=_0x271355||Jt(_0x153094);const _0x380ffb=_0xfc605f['map'](_0x4d0f51=>qt(_0x4d0f51,this['_model'])),_0x25fe5b=_0x57f9df['is']('range')?_0x57f9df:qt(_0x57f9df,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2c2f79=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x271355,'accept');return this['forceDefaultExecution'](()=>_0x2c2f79([_0x25fe5b],_0x153094,_0x59dcc4)),null;}_0x380ffb['push'](_0x25fe5b);let _0x2bb388=!0x0;for(const _0x333290 of _0x380ffb)if(!this['_rangeIsInLocalUserInsertion'](_0x333290)){_0x2bb388=!0x1;break;}if(_0x2bb388&&'always'!==this['_trackFormatChanges']){const _0x5900b8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x271355,'accept');return this['forceDefaultExecution'](()=>_0x5900b8([_0x25fe5b],_0x153094,_0x59dcc4)),null;}let _0x3c2a9d=null,_0x28d3c7=_0x25fe5b['start'],_0x431b67=_0x25fe5b['end'];for(const {suggestion:_0x138cdb,meta:_0x354f32}of this['_findSuggestions'](_0x25fe5b,'formatBlock')){if(!_0x354f32['isOwn'])continue;if(_0x354f32['isNextTo']||_0x354f32['containsRangeInObject']||_0x354f32['isInsideObject'])continue;if(_0x138cdb['data']['formatGroupId']!=_0x153094['formatGroupId'])continue;if(!Qt(_0x138cdb,_0x59dcc4))continue;const _0x40530a=_0x138cdb['getFirstRange']();if(_0x138cdb['subType']==_0x271355){if(_0x40530a['containsRange'](_0x25fe5b,!0x0))return null;_0x28d3c7=_0x28d3c7['isBefore'](_0x40530a['start'])?_0x28d3c7:_0x40530a['start'],_0x431b67=_0x431b67['isAfter'](_0x40530a['end'])?_0x431b67:_0x40530a['end'],_0x3c2a9d?_0x40530a['start']['isBefore'](_0x3c2a9d['getFirstRange']()['start'])?(_0x3c2a9d['removeMarkers'](),_0x3c2a9d=_0x138cdb):_0x138cdb['removeMarkers']():_0x3c2a9d=_0x138cdb;}else{const _0x3ca86=_0x25fe5b['getIntersection'](_0x40530a);this['_cutOutSuggestionMarker'](_0x138cdb,_0x3ca86);}}const _0x2c472d=this['editor']['plugins']['get']('Users')['me'],_0x3ee231=_0x4597bc(),_0x9597ac=_0x2c472d['id'];if(_0x3c2a9d)return this['_setSuggestionRange'](_0x3c2a9d,this['_model']['createRange'](_0x28d3c7,_0x431b67)),_0x3c2a9d;{const _0x732e16=this['_setSuggestionData']({'id':_0x3ee231,'type':'formatBlock:'+_0x271355,'data':_0x153094,'createdAt':new Date(),'authorId':_0x9597ac,'attributes':_0x59dcc4});return this['_addSuggestionMarker']('formatBlock:'+_0x271355,_0x3ee231,_0x9597ac,this['_model']['createRange'](_0x28d3c7,_0x431b67)),_0x732e16;}}['markMultiRangeBlockFormat'](_0x2c1c92,_0x427ded,_0x47ec65=[],_0x443d68=null,_0xd04347={}){_0x427ded['formatGroupId']||(_0x427ded['formatGroupId']=_0x427ded['commandName']);const _0x321445=_0x2c1c92[0x0];_0x427ded['multipleBlocks']=_0x321445['is']('range'),_0x443d68=_0x443d68||Jt(_0x427ded);const _0x52316d=_0x47ec65['map'](_0x4c888a=>qt(_0x4c888a,this['_model'])),_0x4cefec=_0x321445['is']('range')?_0x2c1c92:_0x2c1c92['map'](_0x5e19cf=>qt(_0x5e19cf,this['_model']));if('never'===this['_trackFormatChanges']){const _0x100528=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x443d68,'accept');return this['forceDefaultExecution'](()=>_0x100528(_0x4cefec,_0x427ded,_0xd04347)),null;}_0x52316d['push'](..._0x4cefec);let _0x40358d=!0x0;for(const _0x56e6a5 of _0x52316d)if(!this['_rangeIsInLocalUserInsertion'](_0x56e6a5)){_0x40358d=!0x1;break;}if(_0x40358d&&'always'!==this['_trackFormatChanges']){const _0x17e802=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x443d68,'accept');return this['forceDefaultExecution'](()=>_0x17e802(_0x4cefec,_0x427ded,_0xd04347)),null;}const _0x4ae8aa=this['editor']['plugins']['get']('Users')['me'];for(const _0x195eb1 of this['getSuggestions']()){if(_0x195eb1['author']['id']!=_0x4ae8aa['id'])continue;if('formatBlock'!=_0x195eb1['type']||_0x195eb1['data']['formatGroupId']!=_0x427ded['formatGroupId'])continue;if(!Qt(_0x195eb1,_0xd04347))continue;const _0x13ede9=_0x195eb1['subType']==_0x443d68;for(let _0x18aeca=0x0;_0x18aeca<_0x4cefec['length'];_0x18aeca++){const _0x548cfc=_0x4cefec[_0x18aeca];for(const _0x720b5f of _0x195eb1['getMarkers']()){const _0x5dabc5=_0x720b5f['getRange']();if(_0x548cfc['isEqual'](_0x5dabc5)){_0x13ede9?(_0x4cefec['splice'](_0x18aeca,0x1),_0x18aeca--):_0x195eb1['removeMarker'](_0x720b5f['name']);break;}}}}if(0x0==_0x4cefec['length'])return null;const _0x1e7d8c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x443d68,'join');for(const _0x5db847 of this['getSuggestions']())if(_0x5db847['author']['id']==_0x4ae8aa['id']&&'formatBlock'==_0x5db847['type']&&_0x5db847['data']['formatGroupId']==_0x427ded['formatGroupId']&&_0x5db847['subType']==_0x443d68&&Qt(_0x5db847,_0xd04347)&&(_0x1e7d8c(_0x5db847['getRanges'](),_0x4cefec)||_0x1e7d8c(_0x4cefec,_0x5db847['getRanges']()))){for(const _0x4369e5 of _0x4cefec)_0x5db847['addRange'](_0x4369e5);return _0x5db847;}const _0x40cefc=_0x4597bc(),_0x1f53b4=_0x4ae8aa['id'],_0x38a772='formatBlock:'+_0x443d68,_0x3741a0=this['_setSuggestionData']({'id':_0x40cefc,'type':_0x38a772,'data':_0x427ded,'createdAt':new Date(),'authorId':_0x1f53b4,'attributes':_0xd04347});for(const _0x252963 of _0x4cefec)this['_addSuggestionMarker'](_0x38a772,_0x40cefc,_0x1f53b4,_0x252963,o['getMultiRangeId']());return _0x3741a0;}['markDeletion'](_0x178b7b,_0x38ff23=null,_0x716591={}){if(_0x178b7b['isCollapsed'])return null;const _0x3cf2ac=this['editor']['plugins']['get']('Users')['me'],_0x5304fa=new _0x4324ec(_0x178b7b['start'],_0x178b7b['end']);for(const {suggestion:_0x5703b1,meta:_0x183744}of this['_findSuggestions'](_0x5304fa,'insertion'))if(_0x183744['isOwn']&&!_0x183744['isNextTo']){if(_0x5703b1['isMultiRange']){const _0x110537=_0x5703b1['getRanges']()['filter'](_0x360c6a=>'$graveyard'!=_0x360c6a['root']['rootName']);_0x110537['every'](_0x52470f=>_0x5304fa['containsRange'](_0x52470f,!0x0))&&_0x5703b1['discard']();if(_0x110537['some'](_0x47cc11=>_0x47cc11['containsRange'](_0x5304fa,!0x0))){const _0x28d409=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x38ff23,'accept');return this['forceDefaultExecution'](()=>_0x28d409([_0x5304fa],null,_0x716591)),null;}}else{const _0x447972=_0x5304fa['getIntersection'](_0x5703b1['getFirstRange']());null!==_0x447972&&_0x5703b1['_onDiscard']([_0x447972],null,_0x716591);}}if(_0x5304fa['detach'](),_0x5304fa['isCollapsed']||'$graveyard'==_0x5304fa['root']['rootName'])return null;let _0x5deb6d=null,_0x129f3c=_0x5304fa['start'],_0x1f8da4=_0x5304fa['end'];const _0x162028=this['_findSuggestions'](_0x5304fa,'deletion');for(const {suggestion:_0x236c33,meta:_0x4fe720}of _0x162028){const _0xc1b16d=this['_model']['createRange'](_0x129f3c,_0x1f8da4);if(_0x4fe720['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4fe720['containsRangeInObject']&&!_0x4fe720['isInsideObject'])){if(_0x236c33['isMultiRange']){if(!Qt(_0x236c33,_0x716591))continue;let _0xafbe15=!0x0;for(const _0x3acd48 of _0x236c33['getRanges']()){if(_0x3acd48['containsRange'](_0xc1b16d,!0x0))return _0x236c33;_0xc1b16d['containsRange'](_0x3acd48)||(_0xafbe15=!0x1);}_0xafbe15&&_0x236c33['discard']();}else{const _0x2ea92a=_0x236c33['getFirstRange']();if(_0x2ea92a['containsRange'](_0xc1b16d,!0x0))return _0x236c33;if(!Qt(_0x236c33,_0x716591)){_0xc1b16d['containsRange'](_0x2ea92a)?_0x236c33['removeMarkers']():_0x2ea92a['containsPosition'](_0x129f3c)?_0x129f3c=_0x2ea92a['end']:_0x2ea92a['containsPosition'](_0x1f8da4)&&(_0x1f8da4=_0x2ea92a['start']);continue;}_0x129f3c=_0x129f3c['isBefore'](_0x2ea92a['start'])?_0x129f3c:_0x2ea92a['start'],_0x1f8da4=_0x1f8da4['isAfter'](_0x2ea92a['end'])?_0x1f8da4:_0x2ea92a['end'],_0x716591=Object['assign']({},_0x236c33['attributes']),_0x5deb6d?_0x2ea92a['start']['isBefore'](_0x5deb6d['getFirstRange']()['start'])?(_0x5deb6d['removeMarkers'](),_0x5deb6d=_0x236c33):_0x236c33['removeMarkers']():_0x5deb6d=_0x236c33;}}}if(_0x5deb6d)return this['_setSuggestionRange'](_0x5deb6d,this['_model']['createRange'](_0x129f3c,_0x1f8da4)),_0x5deb6d;{const _0x356f71=_0x4597bc(),_0x831a3a=this['_model']['createRange'](_0x129f3c,_0x1f8da4),_0x19f81e=_0x3cf2ac['id'],_0x51b94e=_0x38ff23?'deletion:'+_0x38ff23:'deletion',_0x523792=this['_setSuggestionData']({'id':_0x356f71,'type':_0x51b94e,'createdAt':new Date(),'authorId':_0x19f81e,'attributes':_0x716591});return this['_addSuggestionMarker'](_0x51b94e,_0x356f71,_0x19f81e,_0x831a3a),_0x523792;}}['markMultiRangeDeletion'](_0x5fef5a,_0x5833ca='multi',_0xea77fa={}){const _0x55b24c=this['editor']['plugins']['get']('Users')['me'],_0x54e4b4=_0x5fef5a['map'](_0x3b45c3=>new _0x4324ec(_0x3b45c3['start'],_0x3b45c3['end'])),_0x52efd2=new Set();for(const {suggestion:_0x1f0dec,meta:_0x5a3314}of this['_findSuggestions'](_0x54e4b4,'insertion'))_0x5a3314['isOwn']&&!_0x5a3314['isNextTo']&&_0x52efd2['add'](_0x1f0dec);for(const _0xc80fcf of _0x52efd2)if(_0xc80fcf['isMultiRange']){const _0x32c2d6=_0xc80fcf['getRanges']();(!_0xc80fcf['attributes']||!_0xc80fcf['attributes']['skipNestingCheck'])&&(_0x32c2d6['every'](_0x1ec200=>_0x54e4b4['some'](_0x151045=>_0x151045['containsRange'](_0x1ec200,!0x0)))&&_0xc80fcf['discard']());if(_0x54e4b4['every'](_0x5caa74=>_0x32c2d6['some'](_0x383de6=>_0x383de6['containsRange'](_0x5caa74,!0x0)))){const _0x513933=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5833ca,'accept');return this['forceDefaultExecution'](()=>_0x513933(_0x5fef5a,null,_0xea77fa)),null;}}else{const _0x5e8503=_0xc80fcf['getFirstRange']();_0x54e4b4['some'](_0x163fad=>_0x163fad['containsRange'](_0x5e8503,!0x0))&&_0xc80fcf['discard']();if(_0x54e4b4['every'](_0x1269c6=>_0x5e8503['containsRange'](_0x1269c6,!0x0))){const _0x5e24f9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5833ca,'accept');return this['forceDefaultExecution'](()=>_0x5e24f9(_0x54e4b4,null,_0xea77fa)),null;}}const _0x5caafc=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5833ca,'join');let _0x24760c=null;for(const _0x523c11 of this['getSuggestions']())if(_0x523c11['author']['id']==_0x55b24c['id']&&_0x523c11['isInContent']&&'deletion'==_0x523c11['type']&&_0x523c11['subType']==_0x5833ca&&Qt(_0x523c11,_0xea77fa)&&(_0x5caafc(_0x523c11['getRanges'](),_0x54e4b4)||_0x5caafc(_0x54e4b4,_0x523c11['getRanges']()))){if(_0x24760c){if(_0x523c11['commentThread']&&_0x523c11['commentThread']['length'])continue;for(const _0x5cf4ea of _0x523c11['getRanges']())_0x24760c['isIntersectingWithRange'](_0x5cf4ea)||_0x24760c['addRange'](_0x5cf4ea);_0x523c11['removeMarkers']();}else{_0x24760c=_0x523c11;for(const _0x1c27e1 of _0x54e4b4)_0x523c11['isIntersectingWithRange'](_0x1c27e1)||_0x523c11['addRange'](_0x1c27e1);}}if(_0x24760c)return _0x24760c;_0x52efd2['clear']();for(const {suggestion:_0x1d80d9,meta:_0x98dd60}of this['_findSuggestions'](_0x54e4b4,'deletion'))_0x98dd60['isOwn']&&(this['_mergeNestedSuggestions']||!_0x98dd60['containsRangeInObject']&&!_0x98dd60['isInsideObject'])&&Qt(_0x1d80d9,_0xea77fa)&&_0x52efd2['add'](_0x1d80d9);for(const _0x7a537e of _0x52efd2){const _0x1c4354=_0x7a537e['getRanges']();if(!_0xea77fa||!_0xea77fa['skipNestingCheck']){if(_0x54e4b4['every'](_0x227f91=>_0x1c4354['some'](_0x1c9b04=>_0x1c9b04['containsRange'](_0x227f91,!0x0))))return _0x7a537e;}(!_0x7a537e['attributes']||!_0x7a537e['attributes']['skipNestingCheck'])&&(_0x1c4354['every'](_0x105556=>_0x54e4b4['some'](_0x19554d=>_0x19554d['containsRange'](_0x105556,!0x0)))&&_0x7a537e['discard']());}const _0x51dcf3=_0x4597bc(),_0x3ae85e=_0x55b24c['id'],_0x189e23='deletion:'+_0x5833ca,_0x11e396=this['_setSuggestionData']({'id':_0x51dcf3,'type':_0x189e23,'createdAt':new Date(),'authorId':_0x3ae85e,'attributes':_0xea77fa});for(const _0xcb5854 of _0x54e4b4)_0xcb5854['detach'](),_0xcb5854['isCollapsed']||'$graveyard'==_0xcb5854['root']['rootName']||this['_addSuggestionMarker'](_0x189e23,_0x51dcf3,_0x3ae85e,_0xcb5854,o['getMultiRangeId']());return _0x11e396;}['markAttributeChange'](_0x4a1617,_0x393af1,_0xb3b28,_0x48ce00,_0x155e14){if(_0x4a1617['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x35ee47=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c3433=Array['from'](this['_suggestions']['values']())['filter'](_0x282d59=>'attribute'==_0x282d59['type']&&_0x282d59['data']['key']==_0x393af1&&_0x282d59['isIntersectingWithRange'](_0x4a1617));if('default'===this['_trackFormatChanges']){const _0x479dec=this['_findSuggestions'](_0x4a1617,'insertion')['filter'](({meta:_0x5b46b4})=>_0x5b46b4['isOwn']&&!_0x5b46b4['isInsideObject']&&!_0x5b46b4['isNextTo'])['map'](({suggestion:_0x3a761f})=>_0x3a761f);_0x5c3433['unshift'](..._0x479dec);}const _0x43cff9=new Map([[_0x4a1617,_0xb3b28]]);for(const _0x3b6f34 of _0x5c3433){const _0x28a627='attribute'==_0x3b6f34['type']?_0x3b6f34['data']['oldValue']:void 0x0,_0x4276c2=_0x3b6f34['getFirstRange'](),_0x877c6f=Array['from'](_0x43cff9['keys']())['find'](_0x2c3457=>_0x2c3457['isIntersecting'](_0x4276c2));if(!_0x877c6f)continue;const _0x3d820a=_0x877c6f['getDifference'](_0x4276c2);this['_isBlockAttribute'](_0x393af1)&&'insertion'==_0x3b6f34['type']&&0x0!=_0x3d820a['length']||(_0x43cff9['delete'](_0x877c6f),_0x3d820a['forEach'](_0x57ef86=>{_0x43cff9['set'](_0x57ef86,_0xb3b28);}),'insertion'!=_0x3b6f34['type']&&_0x28a627!=_0x48ce00&&_0x43cff9['set'](_0x877c6f['getIntersection'](_0x4276c2),_0x28a627));}const _0x10d1dc=[];for(const [_0x4d47a8,_0x364c1f]of _0x43cff9){const _0x388f1b=_0x4597bc(),_0x70c5ab={'key':_0x393af1,'oldValue':_0x364c1f,'newValue':_0x48ce00};_0x393af1['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':_0x393af1});const _0x3b01d5=('attribute:'+(_0x393af1+'|'+Jt({'newValue':_0x48ce00})))['substring'](0x0,0x3c),_0x3e1d79=this['_setSuggestionData']({'id':_0x388f1b,'type':_0x3b01d5,'data':_0x70c5ab,'createdAt':new Date(),'authorId':_0x35ee47,'attributes':_0x155e14});_0x10d1dc['push'](_0x3e1d79),this['_addSuggestionMarker'](_0x3b01d5,_0x388f1b,_0x35ee47,_0x4d47a8);}return _0x10d1dc;}['enableDefaultAttributesIntegration'](_0x3d7e7a){this['enableCommand'](_0x3d7e7a,(_0x1021c7,..._0x6c50f8)=>{this['_recordAttributeChanges'](()=>{_0x1021c7(..._0x6c50f8);});});}['registerBlockAttribute'](_0x1a6a6a){this['_blockAttributeKeys']['add'](_0x1a6a6a);}['registerInlineAttribute'](_0x3cca89){this['_inlineAttributeKeys']['add'](_0x3cca89);}['_getAttributeKey'](_0x2ed8fe){return'attribute'==_0x2ed8fe['type']?_0x2ed8fe['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x17ae1c,_0xb85452){const _0x420be2=_0x17ae1c['getFirstMarker']();this['_model']['change'](_0x1b2bf8=>{_0x1b2bf8['updateMarker'](_0x420be2,{'range':_0xb85452});});}['_addThreadToSuggestion'](_0x40e189){const _0x5c76db=_0x40e189['id'],_0x1c45e0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c76db)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1c45e0,'threadId':_0x5c76db,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x37f435=this['_commentsRepository']['getCommentThread'](_0x5c76db);_0x37f435['unbind']('isRemovable'),_0x37f435['isRemovable']=!0x1,_0x40e189['commentThread']=_0x37f435;}['_checkSuggestionCorrectness'](_0x1e7a5d,_0x55563a,_0x1a66e7,_0x401efb){if(_0x1e7a5d['type']!=_0x55563a||_0x1e7a5d['subType']!=_0x1a66e7||_0x1e7a5d['creator']['id']!=_0x401efb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x48f3a9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5c0089,_0xda3a30){const _0x3866ff=_0x5c0089['getFirstRange']();if(_0xda3a30['isEqual'](_0x3866ff))_0x5c0089['removeMarkers']();else{if(_0x3866ff['containsRange'](_0xda3a30)){const _0x19b792=this['_model']['createPositionAt'](_0xda3a30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c0089,this['_model']['createRange'](_0x3866ff['start'],_0x19b792));const _0x1fd7c2=_0x4597bc(),_0x496e10=_0x5c0089['creator']['id'],_0x57b769=_0x5c0089['type']+':'+_0x5c0089['subType'];this['_setSuggestionData']({'id':_0x1fd7c2,'type':_0x57b769,'createdAt':new Date(),'authorId':_0x496e10,'data':_0x5c0089['data'],'attributes':_0x5c0089['attributes']});const _0x2e6229=this['_model']['createPositionAt'](_0xda3a30['end']['parent'],'after'),_0x28d30a=this['_model']['createRange'](_0x2e6229,_0x3866ff['end']);this['_addSuggestionMarker'](_0x57b769,_0x1fd7c2,_0x496e10,_0x28d30a);}else{if(_0x3866ff['containsPosition'](_0xda3a30['start'])){const _0x53caa8=this['_model']['createPositionAt'](_0xda3a30['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c0089,this['_model']['createRange'](_0x3866ff['start'],_0x53caa8));}else{const _0x1675b4=this['_model']['createPositionAt'](_0xda3a30['end']['parent'],'after');this['_setSuggestionRange'](_0x5c0089,this['_model']['createRange'](_0x1675b4,_0x3866ff['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x427efd){for(const {suggestion:_0x5d5072,meta:_0x2e4daf}of this['_findSuggestions'](_0x427efd,'insertion')){if(!_0x2e4daf['isOwn'])continue;const _0x11c4a3=_0x5d5072['getRanges']();for(const _0x416701 of _0x11c4a3)if(!_0x427efd['getDifference'](_0x416701)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x467723){const _0x218bcd=this['editor']['plugins']['get']('Users')['getUser'](_0x467723);if(!_0x218bcd)throw new _0x48f3a9('track-changes-user-not-found',this);return _0x218bcd;}['_getExternalAuthor'](_0x5dbda9){const _0x1b7689=this['editor']['plugins']['get']('Users'),_0x363b6d=_0x1385d5('external:'+_0x5dbda9),_0x15e7e0=_0x1b7689['getUser'](_0x363b6d);return _0x15e7e0||_0x1b7689['addUser']({'id':_0x363b6d,'name':_0x5dbda9});}['_createSuggestion'](_0x2020f0,_0x514783,_0x201a43,_0x15b54e,_0xce683f){const _0x220fb0=this['_getAuthorFromId'](_0x15b54e),_0x1a9d54=this['_suggestionFactory']['buildSuggestion'](_0x2020f0,_0x514783,_0x201a43,_0x220fb0,_0xce683f,_0x20fc0c=>{this['_updateSuggestionData'](_0x201a43,{'attributes':_0x20fc0c});const _0x920338=this['getSuggestion'](_0x201a43);this['_joinWithAdjacentSuggestions'](new Set([_0x920338])),this['_refreshSuggestionsChain'](new Set([_0x920338]));});return this['listenTo'](_0x1a9d54,'accept',()=>{this['_updateSuggestionData'](_0x201a43,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1a9d54,'discard',()=>{this['_updateSuggestionData'](_0x201a43,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x201a43,_0x1a9d54),this['_suggestionState']['set'](_0x1a9d54,'notReady'),_0x1a9d54;}['_splitMarkerName'](_0x342197){const _0xa86343=_0x342197['split'](':');return{'group':_0xa86343[0x0],'type':_0xa86343[0x1],'subType':_0xa86343['length']>=0x5?_0xa86343[0x2]:null,'id':_0xa86343['length']<0x5?_0xa86343[0x2]:_0xa86343[0x3],'authorId':_0xa86343['length']<0x5?_0xa86343[0x3]:_0xa86343[0x4],'markerCount':0x6==_0xa86343['length']?_0xa86343[0x5]:null};}['_breakSuggestionMarker'](_0x253a19,_0x4b40f6,_0x335f33){const _0x3b949e=_0x253a19['getFirstRange'](),_0x3a79f0=_0x3b949e['start'],_0x17708c=_0x3b949e['end'];this['_setSuggestionRange'](_0x253a19,this['_model']['createRange'](_0x3a79f0,_0x4b40f6));const _0x346050=_0x4597bc(),_0xb00964=_0x253a19['creator']['id'],_0x48b3e2=_0x253a19['type']+(_0x253a19['subType']?':'+_0x253a19['subType']:'');this['_setSuggestionData']({'id':_0x346050,'type':_0x48b3e2,'createdAt':new Date(),'authorId':_0xb00964,'originalSuggestionId':_0x253a19['id'],'attributes':_0x253a19['attributes'],'data':_0x253a19['data']});const _0x3c4812=this['_getAttributeKey'](_0x253a19);('formatBlock'==_0x253a19['type']||_0x3c4812&&this['_isBlockAttribute'](_0x3c4812))&&(_0x335f33=this['_model']['createPositionBefore'](_0x335f33['parent'])),this['_addSuggestionMarker'](_0x48b3e2,_0x346050,_0xb00964,this['_model']['createRange'](_0x335f33,_0x17708c));}['_findSuggestions'](_0x57c674,_0x4acb5b=null){const _0x1bf771=[],_0x3f90c0=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x57c674)||(_0x57c674=[_0x57c674]);for(const _0x4129cc of this['getSuggestions']()){if(!_0x4129cc['isInContent'])continue;if(_0x4acb5b&&_0x4129cc['type']!=_0x4acb5b)continue;let _0x58bfa3=!0x1;for(const _0x2cba1b of _0x4129cc['getRanges']()){for(const _0x3658cb of _0x57c674){const _0x441762=_0x3658cb['start']['isEqual'](_0x2cba1b['end'])||_0x3658cb['end']['isEqual'](_0x2cba1b['start']);if(_0x441762||_0x3658cb['getIntersection'](_0x2cba1b)){const _0x12248c=_0x3658cb['containsRange'](_0x2cba1b)&&Pt(this['_model']['schema'],_0x2cba1b['start'],_0x3658cb),_0x443fb0=_0x2cba1b['containsRange'](_0x3658cb)&&Pt(this['_model']['schema'],_0x3658cb['start'],_0x2cba1b);_0x1bf771['push']({'suggestion':_0x4129cc,'meta':{'isOwn':_0x3f90c0==_0x4129cc['author'],'isNextTo':_0x441762,'isInsideObject':_0x12248c,'containsRangeInObject':_0x443fb0}}),_0x58bfa3=!0x0;break;}}if(_0x58bfa3)break;}}return _0x1bf771;}['_addSuggestionMarker'](_0x396013,_0x5a3335,_0x8f7410,_0x1ddb58,_0x27d4ab){this['_model']['change'](_0x45b221=>{let _0x3eeacf='suggestion:'+_0x396013+':'+_0x5a3335+':'+_0x8f7410;_0x27d4ab&&(_0x3eeacf=_0x3eeacf+':'+_0x27d4ab),_0x45b221['addMarker'](_0x3eeacf,{'range':_0x1ddb58,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2f3113){const _0x14fa43=_0x2f3113['previous'],_0x3a85c3=_0x2f3113['next'];_0x2f3113['previous']=null,_0x2f3113['next']=null,null!=_0x14fa43&&_0x14fa43['next']==_0x2f3113&&(_0x14fa43['next']=_0x3a85c3),null!=_0x3a85c3&&_0x3a85c3['previous']==_0x2f3113&&(_0x3a85c3['previous']=_0x14fa43),'ready'==this['_suggestionState']['get'](_0x2f3113)&&(this['_suggestionState']['set'](_0x2f3113,'removed'),this['fire']('suggestionUnloaded',_0x2f3113,_0x14fa43,_0x3a85c3));}['_setSuggestionData'](_0x3bb4f8){const _0x3b90b0=_0x3bb4f8['id'],_0x67169a=this['addSuggestionData'](_0x3bb4f8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2737cc=this['editor']['plugins']['get']('PendingActions'),_0x42f102=_0x67169a['hasComments'],_0x1de053=_0x67169a['subType']?_0x67169a['type']+':'+_0x67169a['subType']:_0x67169a['type'],_0x4163cc=this['editor']['locale'],_0x2ab0de=_0x2737cc['add'](c(_0x4163cc,'PENDING_ACTION_SUGGESTION')),_0x4fa1cf={'id':_0x3b90b0,'type':_0x1de053,'hasComments':_0x42f102,'data':_0x3bb4f8['data']||null,'originalSuggestionId':_0x3bb4f8['originalSuggestionId']||null,'attributes':_0x67169a['attributes']};this['_adapter']['addSuggestion'](_0x4fa1cf)['then'](_0x2e7338=>{_0x67169a['_saved']=!0x0,_0x2737cc['remove'](_0x2ab0de),_0x2e7338&&_0x2e7338['createdAt']&&(this['_suggestions']['get'](_0x3b90b0)['createdAt']=_0x2e7338['createdAt']);})['catch'](_0x2b3fbc=>{throw _0x569f5a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x67169a['discard']();}),_0x67169a['stopListening'](),this['_suggestions']['delete'](_0x67169a['id']),this['_suggestionState']['delete'](_0x67169a),_0x2b3fbc;});}return _0x67169a;}['_isBlockAttribute'](_0x3b6f22){return this['_blockAttributeKeys']['has'](_0x3b6f22);}['_updateSuggestionData'](_0x3d9295,_0x31fa30){const _0x549810=this['editor']['plugins']['get']('PendingActions'),_0x246e4=this['getSuggestion'](_0x3d9295);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x246e4['_saved']){const _0x3cf6ef=_0x549810['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3d9295,_0x31fa30)['then'](()=>{_0x549810['remove'](_0x3cf6ef);});}else _0x246e4['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3d9295,_0x31fa30);});}}['_getSuggestionData'](_0x45f0fb){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x48f3a9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x45f0fb);}['_handleNewSuggestionMarker'](_0x5cff4d){const {id:_0x177664,type:_0x418e47,subType:_0x357c07,authorId:_0x11096c}=this['_splitMarkerName'](_0x5cff4d),_0x5bb6e4=this['_suggestions']['get'](_0x177664)||this['_createSuggestion'](_0x418e47,_0x357c07,_0x177664,_0x11096c,{});switch(this['_checkSuggestionCorrectness'](_0x5bb6e4,_0x418e47,_0x357c07,_0x11096c),this['_suggestionState']['get'](_0x5bb6e4)){case'notReady':this['_getSuggestionData'](_0x177664)['then'](_0x1d1b5c=>{let _0x29f696=Promise['resolve']();_0x1d1b5c['hasComments']&&(_0x29f696=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x177664})),_0x29f696['then'](()=>{this['addSuggestionData'](_0x1d1b5c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5bb6e4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x177664,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5bb6e4,'ready'),this['fire']('suggestionLoaded',_0x5bb6e4);break;case'ready':this['fire']('suggestionChanged',_0x5bb6e4);}return _0x5bb6e4['addMarkerName'](_0x5cff4d),_0x5bb6e4;}['_refreshSuggestionsChain'](_0x3752a0){const _0x1fb772=Array['from'](_0x3752a0),_0x5e948a=_0x1fb772['filter'](_0x5dcb17=>'attribute'==_0x5dcb17['type']);this['_refreshAttributeSuggestionsChain'](_0x5e948a);const _0x4f65a6=_0x1fb772['filter'](_0x53a062=>!_0x53a062['isMultiRange']&&'attribute'!=_0x53a062['type']),_0x3b550b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x195a7d=>!_0x195a7d['isMultiRange']&&'attribute'!=_0x195a7d['type']),_0x1730f8=_0x3b550b['filter'](_0xa2f057=>!_0x3752a0['has'](_0xa2f057)),_0x45bf55=new Map(_0x3b550b['map'](_0x1917d4=>[_0x1917d4,this['_suggestionFactory']['getSuggestionCallback'](_0x1917d4['type'],_0x1917d4['subType'],'chain')])),_0x272990=new Map(_0x3b550b['map'](_0x1d89a9=>[_0x1d89a9,_0x1d89a9['getFirstRange']()])),_0x4e8d42=new Set(),_0x18a413=new Set();for(let _0x5587c4=0x0;_0x5587c4<_0x4f65a6['length'];_0x5587c4++)_0x335bdb(_0x4f65a6[_0x5587c4],_0x4f65a6,_0x5587c4+0x1);for(let _0x124dac=0x0;_0x124dac<_0x4f65a6['length'];_0x124dac++)_0x335bdb(_0x4f65a6[_0x124dac],_0x1730f8,0x0);const _0x3ee506=new Set();for(let _0x38ba8f=0x0;_0x38ba8f<_0x4f65a6['length'];_0x38ba8f++){const _0x5e1d86=_0x4f65a6[_0x38ba8f];!_0x18a413['has'](_0x5e1d86)&&_0x5e1d86['previous']&&(_0x3ee506['add'](_0x5e1d86['previous']),_0x5e1d86['previous']['next']===_0x5e1d86&&(_0x5e1d86['previous']['next']=null),_0x5e1d86['previous']=null),!_0x4e8d42['has'](_0x5e1d86)&&_0x5e1d86['next']&&(_0x3ee506['add'](_0x5e1d86['next']),_0x5e1d86['next']['previous']===_0x5e1d86&&(_0x5e1d86['next']['previous']=null),_0x5e1d86['next']=null);}function _0x335bdb(_0x301193,_0x684d2b,_0x2cc828){for(let _0x3517d8=_0x2cc828;_0x3517d8<_0x684d2b['length'];_0x3517d8++){const _0x50c5cf=_0x53825c(_0x301193,_0x684d2b[_0x3517d8]);_0x50c5cf&&(_0x50c5cf[0x0]['next']=_0x50c5cf[0x1],_0x50c5cf[0x1]['previous']=_0x50c5cf[0x0],_0x4e8d42['add'](_0x50c5cf[0x0]),_0x18a413['add'](_0x50c5cf[0x1]));}}function _0x53825c(_0x3b1c2e,_0x7dc7be){if(_0x3b1c2e['author']['id']!==_0x7dc7be['author']['id'])return null;const _0x339824=_0x45bf55['get'](_0x3b1c2e)(_0x3b1c2e,_0x7dc7be,_0x272990['get'](_0x3b1c2e),_0x272990['get'](_0x7dc7be));if(!_0x339824)return null;return _0x45bf55['get'](_0x7dc7be)(_0x3b1c2e,_0x7dc7be,_0x272990['get'](_0x3b1c2e),_0x272990['get'](_0x7dc7be))?_0x339824[0x1]['commentThread']&&_0x339824[0x1]['commentThread']['length']?null:_0x339824:null;}_0x3ee506['size']&&this['_refreshSuggestionsChain'](_0x3ee506);}['_refreshAttributeSuggestionsChain'](_0x42ef06){if(0x0==_0x42ef06['length'])return;const _0x7523b5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x430609=>'attribute'==_0x430609['type']&&_0x430609['_isDataLoaded']),_0x2adc1a=[],_0x5b5986=new Map();for(const _0x27bbd9 of _0x7523b5){const _0x39bede=_0x1385d5(_0x27bbd9['attributes']);_0x5b5986['has'](_0x39bede)||(_0x5b5986['set'](_0x39bede,_0x2adc1a['length']),_0x2adc1a['push']([]));const _0x5935ba=_0x5b5986['get'](_0x39bede);_0x2adc1a[_0x5935ba]['push'](_0x27bbd9);}!(function(){_0x2adc1a['sort']((_0x305401,_0x21c27f)=>{const _0x31bef6=_0x305401[0x0]['createdAt'],_0x4c70d5=_0x21c27f[0x0]['createdAt'];return _0x31bef6==_0x4c70d5?_0x305401[0x0]['attributes']['groupId']<_0x21c27f[0x0]['attributes']['groupId']?-0x1:0x1:_0x31bef6<_0x4c70d5?-0x1:0x1;});for(const _0x32067f of _0x2adc1a)_0x32067f['sort']((_0x182fd3,_0xca25f)=>_0x182fd3['id']<_0xca25f['id']?-0x1:0x1);}());for(let _0x5d4be6=0x0;_0x5d4be6<_0x2adc1a['length'];_0x5d4be6++){if(0x0==_0x2adc1a[_0x5d4be6]['length'])continue;const _0x136696=[];for(let _0x31aaeb=_0x5d4be6+0x1;_0x31aaeb<_0x2adc1a['length'];_0x31aaeb++)0x0!=_0x2adc1a[_0x31aaeb]['length']&&_0x1a22a2(_0x2adc1a[_0x5d4be6],_0x2adc1a[_0x31aaeb])&&_0x136696['push'](_0x31aaeb);for(const _0x1cbf53 of _0x136696)_0x2adc1a[_0x5d4be6]=_0x2adc1a[_0x5d4be6]['concat'](_0x2adc1a[_0x1cbf53]),_0x2adc1a[_0x1cbf53]=[];}for(const _0x4f7c39 of _0x2adc1a)for(let _0x1783b0=0x0;_0x1783b0<_0x4f7c39['length'];_0x1783b0++){const _0x535555=_0x4f7c39[_0x1783b0+0x1]||null;_0x4f7c39[_0x1783b0]['next']!==_0x535555&&(_0x4f7c39[_0x1783b0]['next']=_0x535555);}for(const _0x2a3dfe of _0x2adc1a)for(let _0x1b5dbf=0x0;_0x1b5dbf<_0x2a3dfe['length'];_0x1b5dbf++){const _0x1153a8=_0x2a3dfe[_0x1b5dbf-0x1]||null;_0x2a3dfe[_0x1b5dbf]['previous']!==_0x1153a8&&(_0x2a3dfe[_0x1b5dbf]['previous']=_0x1153a8);}function _0x1a22a2(_0x1539a2,_0x377d1a){if(_0x1539a2[0x0]['attributes']['groupId']!==_0x377d1a[0x0]['attributes']['groupId']&&_0x1539a2[0x0]['author']!==_0x377d1a[0x0]['author'])return!0x1;if(!function(_0x53cfe5,_0x27d654){if(!_0x53cfe5['hasComments']&&!_0x27d654['hasComments'])return!0x0;if(_0x53cfe5['hasComments']&&_0x27d654['hasComments'])return!0x1;if(_0x53cfe5['hasComments']&&_0x27d654['createdAt']<_0x53cfe5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x27d654['hasComments']&&_0x53cfe5['createdAt']<_0x27d654['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1539a2[0x0],_0x377d1a[0x0]))return!0x1;const _0x589f93=Vt(_0x1539a2[0x0]['attributes'],'groupId'),_0x463477=Vt(_0x377d1a[0x0]['attributes'],'groupId');if(!_0x1192d6(_0x589f93,_0x463477))return!0x1;return!!_0x1539a2['every'](_0x481b31=>_0x377d1a['some'](_0x1a3b41=>_0x481b31['getFirstRange']()['isEqual'](_0x1a3b41['getFirstRange']())))&&_0x377d1a['every'](_0x535d48=>_0x1539a2['some'](_0x149ed5=>_0x535d48['getFirstRange']()['isEqual'](_0x149ed5['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1252e1){const _0x2343cb=Array['from'](_0x1252e1),_0xa55ddc=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5b851f=_0xa55ddc['filter'](_0x427181=>!_0x1252e1['has'](_0x427181)),_0x231f51=new Map(_0x2343cb['map'](_0x55d73d=>[_0x55d73d,this['_suggestionFactory']['getSuggestionCallback'](_0x55d73d['type'],_0x55d73d['subType'],'join')])),_0x1978e3=new Map(_0xa55ddc['map'](_0x47ea4e=>[_0x47ea4e,_0x47ea4e['getRanges']()]));for(let _0x3d915b=0x0;_0x3d915b<_0x2343cb['length'];_0x3d915b++){if(_0x349f0c(this,_0x2343cb[_0x3d915b],_0x2343cb,_0x3d915b+0x1))return!0x0;}for(let _0x3d1685=0x0;_0x3d1685<_0x2343cb['length'];_0x3d1685++){if(_0x349f0c(this,_0x2343cb[_0x3d1685],_0x5b851f,0x0))return!0x0;}return!0x1;function _0x349f0c(_0x4f69fa,_0x497f3b,_0x4bef13,_0x5ad7e9){for(let _0x1ea293=_0x5ad7e9;_0x1ea293<_0x4bef13['length'];_0x1ea293++){const _0x511b5e=_0x4bef13[_0x1ea293];if(_0x511b5e['type']!==_0x497f3b['type']||_0x511b5e['author']['id']!==_0x497f3b['author']['id']||_0x511b5e['subType']!==_0x497f3b['subType'])continue;if(!Wt(_0x497f3b,_0x511b5e))continue;if('attribute'==_0x497f3b['type']&&_0x497f3b['data']['oldValue']!=_0x511b5e['data']['oldValue'])continue;if('attribute'==_0x497f3b['type']&&_0x4f69fa['_isBlockAttribute'](_0x497f3b['data']['key']))continue;if('formatBlock'==_0x497f3b['type']){const _0xa8e62b=_0x4f69fa['editor']['model'],_0x5ea3f0=_0x497f3b['getContainedElement']();if(_0x5ea3f0&&(_0xa8e62b['schema']['isObject'](_0x5ea3f0)||_0xa8e62b['schema']['isLimit'](_0x5ea3f0)))continue;}const _0x5355da=_0x231f51['get'](_0x497f3b),_0x1c06a0=_0x1978e3['get'](_0x497f3b),_0x24a006=_0x1978e3['get'](_0x511b5e),_0xfdfbe0=_0x497f3b['commentThread']&&_0x497f3b['commentThread']['length'],_0xd6af4f=_0x511b5e['commentThread']&&_0x511b5e['commentThread']['length'];if(!_0xfdfbe0&&_0x5355da(_0x24a006,_0x1c06a0))return _0x4f69fa['_joinSuggestions'](_0x511b5e,_0x497f3b),_0x1978e3['delete'](_0x497f3b),!0x0;if(!_0xd6af4f&&_0x5355da(_0x1c06a0,_0x24a006))return _0x4f69fa['_joinSuggestions'](_0x497f3b,_0x511b5e),_0x1978e3['delete'](_0x511b5e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x106376,_0x39264d){if(_0x106376['isMultiRange']){for(const _0x2dcf84 of _0x39264d['getRanges']())_0x106376['addRange'](_0x2dcf84);}else{const _0x33aecd=_0x39264d['getFirstRange']()['end'];this['_setSuggestionRange'](_0x106376,this['_model']['createRange'](_0x106376['getFirstRange']()['start'],_0x33aecd));}_0x39264d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x538768,_0x28a143,_0x47b8b9){const _0x34cc6c=_0x538768['startsWith']('format')||_0x538768['startsWith']('attribute')?'FORMATTING':_0x538768['toUpperCase']();return c(this['editor']['locale'],_0x28a143+'_'+_0x34cc6c+'_SUGGESTION_ANNOUNCEMENT',_0x47b8b9);}['_initAriaMarkerChangeAnnouncements'](){const _0x2fcd81=this['editor'];if(!_0x2fcd81['ui'])return;const {ariaLiveAnnouncer:_0x56246b}=_0x2fcd81['ui'];_0x65ef11(this['_model'],({left:_0x3039a4,entered:_0x5d1a5d})=>{for(const _0x365c93 of _0x3039a4){const {group:_0xa76bb,type:_0x48e743}=this['_splitMarkerName'](_0x365c93['name']);if('suggestion'===_0xa76bb){_0x56246b['announce'](this['_getMarkerAnnouncementText'](_0x48e743,'LEAVE'));break;}}for(const _0x277869 of _0x5d1a5d){const {group:_0x5df7f6,type:_0x340774}=this['_splitMarkerName'](_0x277869['name']);if('suggestion'===_0x5df7f6){_0x56246b['announce'](this['_getMarkerAnnouncementText'](_0x340774,'ENTER',_0x48f80b(_0x7248d9)));break;}}});}['_processAttributeChanges'](_0x5531f0){if(this['_recordAttributeSuggestions'])return!0x1;const _0x49131f=this['editor'],_0x4ebd55=_0x49131f['model']['document']['differ']['getChanges']();if(0x0==_0x4ebd55['length'])return!0x1;const _0xa5d0e8=[],_0x380ea1=_0x4ebd55['filter'](_0x220dd3=>'attribute'==_0x220dd3['type']),_0x1944f1=_0x4ebd55['filter'](_0x11cb45=>'insert'==_0x11cb45['type']&&'$text'!=_0x11cb45['name']),_0x4200a2=_0x4ebd55['filter'](_0x3843a9=>'remove'==_0x3843a9['type']&&'$text'!=_0x3843a9['name']);for(const _0x252a2f of _0x380ea1)_0xa5d0e8['push']({'key':_0x252a2f['attributeKey'],'newValue':_0x252a2f['attributeNewValue'],'oldValue':_0x252a2f['attributeOldValue'],'range':Ht(_0x252a2f['range'],_0x49131f['model'])});for(const _0xc534b1 of _0x1944f1){const _0x48c45a=_0x4200a2['find'](_0x52bc86=>_0x52bc86['position']['isEqual'](_0xc534b1['position']));_0x48c45a&&_0xa5d0e8['push']({'key':u,'newValue':_0xc534b1['name'],'oldValue':_0x48c45a['name'],'range':_0x49131f['model']['createRangeOn'](_0xc534b1['position']['nodeAfter'])});}return 0x0!=_0xa5d0e8['length']&&this['_reduceExistingSuggestions'](_0x5531f0,_0xa5d0e8);}['_processAttributeSuggestions'](_0x328b3e){let _0x166022=!0x1;const _0x56cc40=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x30c45b=>_0x30c45b['data']['newRange']&&_0x30c45b['name']['startsWith']('suggestion:attribute:'));for(const _0x26b171 of _0x56cc40){const {subType:_0x462696,id:_0x172cce}=this['_splitMarkerName'](_0x26b171['name']),_0x26f54a=_0x462696['split']('|')[0x0];for(const _0x4cbe3c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4cbe3c['id']!=_0x172cce&&'attribute'==_0x4cbe3c['type']&&_0x4cbe3c['data']&&_0x4cbe3c['data']['key']==_0x26f54a&&_0x4cbe3c['getFirstRange']()['isIntersecting'](_0x26b171['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4cbe3c,_0x26b171['data']['newRange'],_0x328b3e),_0x166022=!0x0);}return _0x166022;}['_recordAttributeChanges'](_0x197a81){this['_recordAttributeSuggestions']=!0x0,_0x197a81();}['_isRegisteredAttribute'](_0x52d099){const _0x5cd211=this['_isBlockAttribute'](_0x52d099),_0x154293=this['_inlineAttributeKeys']['has'](_0x52d099);return _0x5cd211||_0x154293;}['_reduceExistingSuggestions'](_0x5efc43,_0x48400a){if(0x0==_0x48400a['length'])return!0x1;let _0x53d311=!0x1;for(const _0x22b860 of _0x48400a){const _0x5d3cb8=this['_findSuggestions'](_0x22b860['range'],'attribute')['filter'](_0x1e450f=>!_0x1e450f['meta']['isNextTo'])['map'](_0x196ea4=>_0x196ea4['suggestion']),_0x14b474=_0x1385d5({'newValue':_0x22b860['newValue']});_0x5d3cb8['filter'](_0x24f638=>{const [_0x548d3a,_0x2749d7]=_0x24f638['subType']['split']('|');return _0x548d3a==_0x22b860['key']&&_0x2749d7!=_0x14b474;})['forEach'](_0x371320=>{this['_reduceSuggestionAttributeRange'](_0x371320,_0x22b860['range'],_0x5efc43),_0x53d311=!0x0;});}return _0x53d311;}['_reduceSuggestionAttributeRange'](_0x4acd76,_0x13f3c9,_0x189831){const _0x46f837=_0x4acd76['getFirstRange']()['getDifference'](_0x13f3c9);0x0!==_0x46f837['length']?0x1!==_0x46f837['length']?this['_breakSuggestionMarker'](_0x4acd76,_0x13f3c9['start'],_0x13f3c9['end']):this['_setSuggestionRange'](_0x4acd76,_0x46f837[0x0]):_0x189831['removeMarker'](_0x4acd76['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x448ce4){this['_editor']=_0x448ce4,this['_model']=_0x448ce4['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x567b9e,_0x297dda,_0x37fcfa,_0x200d7d,_0x53ef6d,_0x1bf399){return new o(this['_model'],{'type':_0x567b9e,'subType':_0x297dda,'id':_0x37fcfa,'author':_0x200d7d,'creator':_0x200d7d,'attributes':_0x53ef6d,'onAttributesChange':_0x1bf399,'onAccept':(..._0x579d1e)=>this['getSuggestionCallback'](_0x567b9e,_0x297dda,'accept')(..._0x579d1e),'onDiscard':(..._0x94a590)=>this['getSuggestionCallback'](_0x567b9e,_0x297dda,'discard')(..._0x94a590)});}['registerCustomCallback'](_0x58e8de,_0x2716d8,_0x1b4f17,_0x1c8147){const _0x182417=_0x58e8de+':'+_0x2716d8+':'+_0x1b4f17;this['_customCallbacks']['set'](_0x182417,_0x1c8147);}['getSuggestionCallback'](_0x47ca4a,_0x42291c,_0x205df9){const _0x59e549=_0x47ca4a+':'+_0x42291c+':'+_0x205df9;return this['_customCallbacks']['get'](_0x59e549)||this['_defaultCallbacks']['get'](_0x47ca4a+':'+_0x205df9);}['_registerDefaultCallbacks'](){const _0x58f729=()=>!0x1,_0x5c922f=_0x2c9109=>{_0x2c9109['sort']((_0x2b54e5,_0x2d733b)=>_0x2b54e5['start']['isBefore'](_0x2d733b['start'])?0x1:-0x1),this['_model']['change'](_0x285e6e=>{for(const _0x27d696 of _0x2c9109){let _0x1f9775;_0x1f9775=_0x27d696['end']['isAtEnd']&&_0x27d696['end']['parent']==_0x27d696['start']['nodeAfter']?_0x285e6e['createSelection'](_0x27d696['start']['nodeAfter'],'on'):_0x285e6e['createSelection'](_0x27d696),this['_model']['deleteContent'](_0x1f9775,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x31cfa5=(_0x137651,_0x11ba95)=>{_0x11ba95&&this['_model']['change'](_0x5daa7a=>{const {commandName:_0x5edb37,commandParams:_0x3b3ef2=[]}=_0x11ba95,_0x59e1d7=_0x137651['map'](_0x2c1bf5=>(Gt(_0x2c1bf5)&&(_0x2c1bf5=this['_model']['createRange'](_0x2c1bf5['end'])),_0x2c1bf5))['filter'](_0x1abd6b=>'$graveyard'!==_0x1abd6b['root']['rootName']);if(_0x59e1d7['length']<0x1)return;const _0x72ef68=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3b97da=>_0x4324ec['fromRange'](_0x3b97da));_0x5daa7a['setSelection'](_0x59e1d7);for(const _0x2fd795 of this['_editor']['commands']['commands']())_0x2fd795['refresh']();_0x3b3ef2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5edb37,..._0x3b3ef2);const _0x4cf8e1=_0x72ef68['filter'](_0xa0e52b=>'$graveyard'!=_0xa0e52b['root']['rootName']);_0x4cf8e1['length']>0x0&&_0x5daa7a['setSelection'](_0x4cf8e1);for(const _0x411c74 of _0x72ef68)_0x411c74['detach']();});},_0x39502d=(_0x5707d5,_0x2a2694)=>0x1==_0x5707d5['length']&&0x1==_0x2a2694['length']&&_0x5707d5[0x0]['end']['isEqual'](_0x2a2694[0x0]['start']),_0x6df7df=(_0x1e2a38,_0x364131,_0x5da8a2,_0x284b64)=>zt(_0x1e2a38,_0x364131,_0x5da8a2,_0x284b64)?[_0x1e2a38,_0x364131]:zt(_0x364131,_0x1e2a38,_0x284b64,_0x5da8a2)?[_0x364131,_0x1e2a38]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x58f729),this['_defaultCallbacks']['set']('insertion:discard',_0x5c922f),this['_defaultCallbacks']['set']('insertion:join',_0x39502d),this['_defaultCallbacks']['set']('insertion:chain',_0x6df7df),this['_defaultCallbacks']['set']('deletion:accept',_0x5c922f),this['_defaultCallbacks']['set']('deletion:discard',_0x58f729),this['_defaultCallbacks']['set']('deletion:join',_0x39502d),this['_defaultCallbacks']['set']('deletion:chain',_0x6df7df),this['_defaultCallbacks']['set']('formatInline:accept',_0x31cfa5),this['_defaultCallbacks']['set']('formatInline:discard',_0x58f729),this['_defaultCallbacks']['set']('formatInline:join',_0x39502d),this['_defaultCallbacks']['set']('formatInline:chain',_0x58f729),this['_defaultCallbacks']['set']('formatBlock:accept',_0x31cfa5),this['_defaultCallbacks']['set']('formatBlock:discard',_0x58f729),this['_defaultCallbacks']['set']('formatBlock:join',_0x39502d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x58f729),this['_defaultCallbacks']['set']('attribute:accept',_0x58f729),this['_defaultCallbacks']['set']('attribute:discard',(_0x1cacd5,_0x2b23f1)=>{if(!_0x2b23f1)return;const _0x4f1318=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xb38f49=>{if(_0x2b23f1['key']==u)for(const _0x13e56c of _0x1cacd5){const _0x4348eb=_0x13e56c['start']['nodeAfter'],_0x463bda=_0x2b23f1['oldValue'];_0xb38f49['rename'](_0x4348eb,_0x463bda);}else{if(_0x4f1318['_isBlockAttribute'](_0x2b23f1['key'])){for(const _0x8cbc21 of _0x1cacd5)void 0x0!==_0x2b23f1['oldValue']?_0xb38f49['setAttribute'](_0x2b23f1['key'],_0x2b23f1['oldValue'],_0x8cbc21['start']['nodeAfter']):_0xb38f49['removeAttribute'](_0x2b23f1['key'],_0x8cbc21['start']['nodeAfter']);}else{for(const _0x3db483 of _0x1cacd5)_0x2b23f1['oldValue']?_0xb38f49['setAttribute'](_0x2b23f1['key'],_0x2b23f1['oldValue'],_0x3db483):_0xb38f49['removeAttribute'](_0x2b23f1['key'],_0x3db483);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x39502d);}}function Pt(_0x2c266f,_0x19ce94,_0x1689ce){for(const _0x55976c of _0x19ce94['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x55976c['root']==_0x55976c)return!0x1;if(!_0x1689ce['containsItem'](_0x55976c))return!0x1;if(_0x2c266f['isObject'](_0x55976c)||_0x2c266f['isLimit'](_0x55976c))return!0x0;}return!0x1;}function Gt(_0x4547a2){return _0x4547a2['end']['parent']==_0x4547a2['start']['nodeAfter']&&_0x4547a2['end']['isAtStart'];}function Lt(_0x23b66b,_0x528e9c,_0x13e863,_0x1b3a69){const _0x2dea0a=_0x257e75=>!_0x257e75['item']['is']('$textProxy')&&!_0x1b3a69['isObject'](_0x257e75['item']),_0x564c7c=_0x23b66b['start']['getLastMatchingPosition'](_0x2dea0a),_0x57df28=_0x23b66b['end']['getLastMatchingPosition'](_0x2dea0a,{'direction':'backward'});return(!_0x23b66b['start']['isEqual'](_0x564c7c)||!_0x23b66b['end']['isEqual'](_0x57df28))&&(_0x564c7c['isBefore'](_0x57df28)?_0x13e863['updateMarker'](_0x528e9c,{'range':_0x13e863['createRange'](_0x564c7c,_0x57df28)}):_0x13e863['removeMarker'](_0x528e9c),!0x0);}function Jt(_0x52a85c){return _0x1385d5(_0x52a85c);}function Kt(_0x300e9e){const _0x307ecf=_0x300e9e['start']['nodeAfter'];return _0x307ecf&&_0x307ecf['is']('element');}function Ht(_0x19475e,_0x450039){return null==_0x19475e['end']['nodeBefore']&&_0x19475e['end']['parent']==_0x19475e['start']['nodeAfter']?qt(_0x19475e['start']['nodeAfter'],_0x450039):_0x19475e;}function qt(_0x12f3d7,_0x2b689c){const _0x18a565=_0x2b689c['schema']['isObject'](_0x12f3d7)||_0x2b689c['schema']['isSelectable'](_0x12f3d7);return _0x2b689c['createRange'](_0x2b689c['createPositionAt'](_0x12f3d7,'before'),_0x18a565?_0x2b689c['createPositionAfter'](_0x12f3d7):_0x2b689c['createPositionAt'](_0x12f3d7,'end'));}function zt(_0x4d7a95,_0x3a286f,_0x141b28,_0x420066){return!!Wt(_0x4d7a95,_0x3a286f)&&_0x141b28['end']['isEqual'](_0x420066['start']);}function Wt(_0x154702,_0x425b73){if(!_0x154702['_isDataLoaded']||!_0x425b73['_isDataLoaded'])return!0x1;const _0x1e428a=new Set(Object['keys'](_0x154702['attributes'])),_0xdd79d0=new Set(Object['keys'](_0x425b73['attributes']));if(_0x1e428a['delete']('groupId'),_0xdd79d0['delete']('groupId'),0x0==_0x1e428a['size']&&0x0==_0xdd79d0['size'])return!0x0;if(_0x1e428a['size']!=_0xdd79d0['size'])return!0x1;const _0x94c918={..._0x154702['attributes']},_0x7d3480={..._0x425b73['attributes']};return delete _0x94c918['groupId'],delete _0x7d3480['groupId'],JSON['stringify'](_0x94c918)==JSON['stringify'](_0x7d3480);}function Qt(_0x1bf7a4,_0x363505){const _0x578446=Xt(_0x1bf7a4['attributes']),_0xcd6dd3=Xt(_0x363505);if(!_0x1bf7a4['_isDataLoaded'])return!0x1;for(const _0x4eeeab of Object['keys'](_0xcd6dd3))if(!_0x1192d6(_0x578446[_0x4eeeab],_0xcd6dd3[_0x4eeeab]))return!0x1;return!0x0;}function Xt(_0x4b360f){const _0x21ac7c=Object['assign']({},_0x4b360f);return delete _0x21ac7c['skipNestingCheck'],delete _0x21ac7c['tablePasteChainId'],_0x21ac7c;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x1fd685(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1e2ea8,_0x1323be,_0x145ca1,_0x4ae213){super(),this['model']=_0x1323be,this['view']=_0x145ca1,this['commentThreadController']=_0x4ae213,this['_editor']=_0x1e2ea8,this['_acceptCommand']=_0x1e2ea8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1e2ea8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x33cc84,_0x40c5f6)=>_0x33cc84||_0x40c5f6),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x525654=>_0x525654&&this['_editor']['model']['canEditAt'](_0x1323be['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2a4217=>_0x2a4217&&this['_editor']['model']['canEditAt'](_0x1323be['getRanges']())),this['_pendingAction']=null,_0x145ca1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x145ca1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x145ca1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x145ca1,'change:isDirty',()=>{_0x145ca1['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 _0x40fb72=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x40fb72);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4ae8c9{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4119a6,_0x1bf1c0,_0x220f08,_0x10e1b9){super(_0x4119a6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3a7851(_0x4119a6,c(_0x4119a6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1bf1c0['authoredAt']),this['bind']('authoredAt')['to'](_0x1bf1c0),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',_0x1bf1c0,'authoredAt',this,'descriptionParts',(_0x59dfc0,_0x312967,_0x3af3cf)=>{const _0x4647e1=_0x3af3cf['map'](_0x1c307c=>ls(_0x1c307c['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x59dfc0-0x1,_0x1bf1c0['author']['name'],_0x312967?_0x10e1b9['formatDateTime'](_0x312967):'',new DOMParser()['parseFromString'](_0x4647e1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x16d4fb(),this['focusTracker']=new _0x22daf1(),this['keystrokes']=new _0x57148b(),this['focusCycler']=new _0x214354({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x365204=>_0x365204['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1bf1c0,this['_localUser']=_0x220f08,this['_config']=_0x10e1b9,_0x10e1b9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x42b3a6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4e20b8}=this['_config'];this['commentsListView']=new _0x4e20b8(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',_0x44ba07=>_0x44ba07+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x548902,_0x2d4dbf)=>_0x548902||!!_0x2d4dbf);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2543cd}=this['_config'],_0x5a00e0=new _0x2543cd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5194fa=_0x5a00e0['commentInputView'];return _0x5a00e0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5194fa,'value',(_0xbd2bfd,_0x35f0bd,_0x4b0e36)=>!!_0x4b0e36||_0xbd2bfd&&!_0x35f0bd),_0x5194fa['on']('submit',(_0x53d763,_0xacab57)=>{this['fire']('addComment',_0xacab57),_0x5194fa['editor']['setData']('');}),_0x5194fa['on']('cancel',()=>this['focus']()),_0x5194fa['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a00e0;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x592634,_0x19549e,_0x397027,_0x14eb73){super(_0x592634,_0x19549e,_0x397027,_0x14eb73),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x12b1fb=>_0x12b1fb&&_0x12b1fb[0x0]?_0x12b1fb[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x8ba7d6,_0x4dbf3c)=>{let _0x31fb6a='';for(const _0x5d6905 of _0x8ba7d6)_0x31fb6a+='<p>'+ls(_0x5d6905['content'],_0x5d6905['color'])+'</p>';return _0x4dbf3c?_0x31fb6a:ti(_0x31fb6a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x14eb73['SuggestionView'](_0x592634,_0x19549e,{'formatDateTime':_0x14eb73['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x528146=this['bindTemplate'],_0x37149f=[this['suggestionView']];return this['commentsListView']&&_0x37149f['push'](this['commentsListView']),this['commentThreadInputView']&&_0x37149f['push'](this['commentThreadInputView']),_0x37149f['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x528146['if']('isActive','ck-suggestion-wrapper--active'),_0x528146['to']('type',_0x3ba863=>'ck-suggestion-'+_0x3ba863),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':_0x528146['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x37149f};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x4ae8c9{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5baeaf,_0x59c51c,_0xfe9804){super(_0x5baeaf),this['_model']=_0x59c51c,this['_config']=_0xfe9804,this['set']('description',''),this['bind']('authoredAt')['to'](_0x59c51c),this['acceptButton']=this['_createButton'](c(_0x5baeaf,'Accept\x20suggestion'),_0x2364be,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x5baeaf,'Discard\x20suggestion'),_0x3838f5,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4622cb(_0x5baeaf,_0x59c51c['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x16d4fb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x22daf1(),this['keystrokes']=new _0x57148b(),this['focusCycler']=new _0x214354({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5341df=>_0x5341df['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xe4ea06=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xe4ea06['innerHTML']=this['description'],this['on']('change:description',(_0x300c7b,_0x89b1d6,_0x1e25e9)=>{_0xe4ea06['innerHTML']=_0x1e25e9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x212a00=this['bindTemplate'],_0x46b574=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x212a00['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x212a00['to']('authoredAt',_0x4c2d00=>this['_config']['formatDateTime'](_0x4c2d00))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x46b574['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x46b574}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x33e574,_0x320cbc,_0x1cd67c,_0x273001,_0x46a378){const _0x3d680d=new _0x4deedd(this['locale']);return _0x3d680d['set']({'label':_0x33e574,'icon':_0x320cbc,'tooltip':!0x0,'tooltipPosition':_0x46a378}),_0x3d680d['extendTemplate']({'attributes':{'class':_0x1cd67c}}),_0x3d680d['on']('execute',()=>{this['fire'](_0x273001,this['_model']['id']);}),_0x3d680d;}['_setupKeyboardNavigation'](){const _0x262987=this['element'];this['keystrokes']['listenTo'](_0x262987);for(const _0x232337 of this['focusables'])this['focusTracker']['add'](_0x232337['element']),this['keystrokes']['listenTo'](_0x232337['element']);this['keystrokes']['set']('enter',(_0x48026d,_0x1326a1)=>{_0x262987===_0x48026d['target']&&(this['focusCycler']['focusFirst'](),_0x1326a1());}),this['keystrokes']['set']('esc',(_0x16a08f,_0x20da8e)=>{_0x262987!==_0x16a08f['target']&&(this['focus'](),_0x20da8e());});}}class d extends _0x31fcb9{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2f85e5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14ff64){super(_0x14ff64),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x386719=this['editor']['config'];_0x386719['define']('trackChanges.SuggestionThreadView',fe),_0x386719['define']('trackChanges.SuggestionView',we),_0x386719['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x386719['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3aca2f,_0x1bbe6f){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1813ff,_0x41be01]of this['_handleControllerBuffer']){const _0x28ca82=this['_suggestionToController']['has'](_0x1813ff);_0x28ca82||_0x41be01?_0x28ca82&&_0x41be01&&this['_destroyController'](_0x1813ff):this['_initializeController'](_0x1813ff);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3aca2f,_0x1bbe6f);}['init'](){const _0x45d720=this['editor'],_0x73f9ad=_0x45d720['plugins']['get']('TrackChangesEditing'),_0xc549ad=_0x45d720['plugins']['get']('Annotations'),_0x3dc1d6=_0x45d720['plugins']['get']('EditorAnnotations'),_0x296360=_0x45d720['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3dc1d6['addSourceCollector'](()=>{const _0xa2e821=[];for(const [_0x1ef6a3,_0xab6611]of Array['from'](this['_suggestionToController'])){const _0x49e621=_0x1ef6a3['getAllAdjacentSuggestions'](),_0x4dbb11=[];for(const _0xdc6d28 of _0x49e621){if(!_0xdc6d28['isInContent'])continue;if(_0xdc6d28['isMultiRange']){_0x4dbb11['push'](..._0xdc6d28['getRanges']());continue;}const _0x27c735=_0xdc6d28['getFirstRange']();if(_0x4dbb11['length']>0x0){const _0x34b4ec=_0x4dbb11[0x0]['getJoined'](_0x27c735);if(_0x34b4ec){_0x4dbb11[0x0]=_0x34b4ec;continue;}}_0x4dbb11['push'](_0x27c735);}_0xa2e821['push']([_0xab6611['view'],_0x4dbb11]);}return _0xa2e821;}),this['listenTo'](_0x73f9ad,'suggestionLoaded',(_0x1ba2cd,_0x51299b)=>{this['listenTo'](_0x51299b,'change:previous',(_0x17c163,_0x1b95f9,_0x5cec02,_0x485b1e)=>{_0x51299b['isInContent']&&(null==_0x5cec02?(this['_updateController'](_0x485b1e['head']),this['_handleSuggestionControllerDelayed'](_0x51299b,!0x1)):(this['_updateController'](_0x5cec02['head']),null==_0x485b1e&&this['_handleSuggestionControllerDelayed'](_0x51299b,!0x0)));}),null!==_0x51299b['previous']?this['_updateController'](_0x51299b['head']):this['_handleSuggestionControllerDelayed'](_0x51299b,!0x1);}),this['listenTo'](_0x73f9ad,'suggestionUnloaded',(_0x4c0dff,_0x40b196,_0x1363f0)=>{this['stopListening'](_0x40b196,'change:previous'),this['_handleControllerBuffer']['delete'](_0x40b196),this['_suggestionToController']['has'](_0x40b196)&&this['_destroyController'](_0x40b196),_0x1363f0&&this['_updateController'](_0x1363f0['head']);}),this['listenTo'](_0x73f9ad,'suggestionChanged',(_0x36c2c4,_0x51a631)=>{this['_updateController'](_0x51a631);}),this['listenTo'](_0xc549ad,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x296360,'addComment',(_0x203dee,{threadId:_0x2c91c7,isFromAdapter:_0x18914b})=>{if(_0x18914b||!_0x73f9ad['hasSuggestion'](_0x2c91c7))return;const _0x177bce=_0x73f9ad['getSuggestion'](_0x2c91c7);this['_suggestionToController']['get'](_0x177bce)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x199a1f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x16e872;for(const _0x2fc55e in _0x199a1f){const _0x49be7c=_0x2fc55e,_0x3e26ce=_0x199a1f[_0x49be7c];if('trackChangesLicenseKeyValid'==_0x3e26ce||'trackChangesLicenseKeyInvalid'==_0x3e26ce||'trackChangesLicenseKeyExpired'==_0x3e26ce||'trackChangesLicenseKeyDomainLimit'==_0x3e26ce||'trackChangesLicenseKeyNotAllowed'==_0x3e26ce||'trackChangesLicenseKeyEvaluationLimit'==_0x3e26ce||'trackChangesLicenseKeyTrialLimit'==_0x3e26ce||'trackChangesLicenseKeyUsageLimit'==_0x3e26ce){delete _0x199a1f[_0x49be7c],_0x16e872=_0x3e26ce,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x16e872&&_0x199a1f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x16e872&&_0x199a1f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x16e872&&_0x199a1f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x16e872&&_0x199a1f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x16e872&&_0x199a1f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x16e872&&_0x199a1f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x16e872&&_0x199a1f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x224339=this['editor']['plugins']['get']('Annotations'),_0x48ce42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bc535=Array['from'](_0x224339['activeAnnotations'],_0x1b400d=>_0x1b400d['innerView'])['filter'](_0x49b399=>this['_viewToController']['has'](_0x49b399)),_0x482794=[];for(const _0x575443 of _0x2bc535){const _0x442b13=this['_viewToController']['get'](_0x575443)['model']['getAllAdjacentSuggestions']();_0x482794['push'](..._0x442b13['reduce']((_0x5252b5,_0x4ef44b)=>[..._0x5252b5,..._0x4ef44b['getMarkerNames']()],[]));}_0x48ce42['activeMarkers']=_0x482794;}['_addUIComponentsToFactory'](){const _0xa11ad1=this['editor'],_0x572152=_0xa11ad1['locale'],_0x42ca2e=c(_0x572152,'Track\x20changes'),_0x1c7ec1=new _0x51a241([{'type':'switchbutton','model':new _0x4165bd({'withText':!0x0,'isToggleable':!0x0,'label':_0x42ca2e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4165bd({'withText':!0x0,'label':c(_0x572152,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4165bd({'withText':!0x0,'label':c(_0x572152,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4165bd({'withText':!0x0,'label':c(_0x572152,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4165bd({'withText':!0x0,'label':c(_0x572152,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xa11ad1['plugins']['has']('TrackChangesPreview')&&_0x1c7ec1['addMany']([{'type':'separator'},{'type':'button','model':new _0x4165bd({'withText':!0x0,'label':c(_0x572152,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x561c48 of _0x1c7ec1)if(ke(_0x561c48)){const _0x17ebbc=_0xa11ad1['commands']['get'](_0x561c48['model']['commandName']);_0x561c48['model']['bind']('isOn','isEnabled')['to'](_0x17ebbc,'value','isEnabled');}_0xa11ad1['ui']['componentFactory']['add']('trackChanges',_0x1cc528=>this['_createToolbarButton'](_0x1cc528,_0x1c7ec1,_0x42ca2e)),_0xa11ad1['ui']['componentFactory']['add']('menuBar:trackChanges',_0x12ce1e=>this['_createMenuBarMenu'](_0x12ce1e,_0x1c7ec1,_0x42ca2e));}['_createToolbarButton'](_0x16fab2,_0x797433,_0x31e8f4){const _0xe66a35=_0x51033e(_0x16fab2,_0x1d2ec8),_0x3b44d5=this['editor']['commands']['get']('trackChanges');_0xe66a35['buttonView']['set']({'tooltip':_0x31e8f4,'label':_0x31e8f4,'icon':_0x39f8bd}),_0xe66a35['buttonView']['bind']('isOn')['to'](_0x3b44d5,'value'),_0xe66a35['buttonView']['on']('execute',()=>{_0x3b44d5['execute'](),this['editor']['editing']['view']['focus']();}),_0x2c3ac6(_0xe66a35,_0x797433,{'role':'menu'});const _0x5b12c7=[];for(const _0x276f57 of _0x797433)ke(_0x276f57)&&_0x5b12c7['push'](this['editor']['commands']['get'](_0x276f57['model']['commandName']));const _0xe4a818=_0xe66a35['buttonView'];return _0xe4a818['actionView']['unbind']('isEnabled'),_0xe4a818['arrowView']['unbind']('isEnabled'),_0xe4a818['actionView']['bind']('isEnabled')['to'](_0x3b44d5,'isEnabled'),_0xe4a818['arrowView']['bind']('isEnabled')['toMany'](_0x5b12c7,'isEnabled',(..._0x3e701f)=>_0x3e701f['some'](_0x27b3a2=>_0x27b3a2)),_0xe66a35['on']('execute',_0x2ffe8b=>{this['editor']['execute'](_0x2ffe8b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xe66a35;}['_createMenuBarMenu'](_0x1897a2,_0x30cd62,_0x2aa113){const _0x5339be=new _0x494b26(_0x1897a2),_0x9daaef=this['editor']['commands']['get']('trackChanges');_0x5339be['buttonView']['set']({'label':_0x2aa113,'icon':_0x39f8bd});const _0x174c05=new _0x189788(_0x1897a2);for(const _0x207531 of _0x30cd62){if('separator'==_0x207531['type']){_0x174c05['items']['add'](new _0x5c827d(_0x1897a2));continue;}const _0x24e1c7=new _0x4a918f(_0x1897a2,_0x5339be),_0x1c0cb2=new _0x1dc559(_0x1897a2),_0x407347=_0x207531['model'];_0x1c0cb2['bind'](...Object['keys'](_0x407347))['to'](_0x407347),_0x1c0cb2['delegate']('execute')['to'](_0x5339be),_0x1c0cb2['on']('execute',()=>{this['editor']['execute'](_0x407347['commandName']),this['editor']['editing']['view']['focus']();}),_0x24e1c7['children']['add'](_0x1c0cb2),_0x174c05['items']['add'](_0x24e1c7);}return _0x5339be['bind']('isEnabled')['to'](_0x9daaef,'isEnabled'),_0x5339be['panelView']['children']['add'](_0x174c05),_0x5339be;}['_initializeController'](_0x823fd4){const _0x1ffbd0=this['editor'],_0x5022a1=_0x1ffbd0['config'],_0x27f452=_0x1ffbd0['plugins']['get']('Annotations'),_0x2b2dbf=_0x1ffbd0['plugins']['get']('CommentsRepository'),_0x42963a=_0x1ffbd0['plugins']['get']('EditorAnnotations'),_0x2abde6=_0x1ffbd0['plugins']['get'](_0x2f85e5)['me'],_0x24e810=_0x5022a1['get']('trackChanges')['SuggestionThreadView'],_0x5b4e99=_0x5022a1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5ef3d7,CommentThreadInputView:_0x54b8a8}=_0x1ffbd0['plugins']['get']('CommentsUI');let _0x33e5a9,_0x5f4585,_0x4df238;this['_annotationViews']['has'](_0x823fd4['id'])?(_0x5f4585=this['_annotationViews']['get'](_0x823fd4['id']),_0x33e5a9=_0x5f4585['mainView']):(_0x33e5a9=new _0x24e810(_0x1ffbd0['locale'],_0x823fd4,_0x2abde6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5022a1['get']('comments.editorConfig'),'licenseKey':_0x5022a1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5022a1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5022a1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5022a1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x23b7e8(_0x5022a1['get']('locale')),'CommentView':_0x5022a1['get']('comments')['CommentView'],'CommentsListView':_0x5ef3d7,'CommentThreadInputView':_0x54b8a8,'SuggestionView':_0x5b4e99}),_0x33e5a9['suggestionView']['acceptButton']['on']('execute',()=>{_0x1ffbd0['editing']['view']['focus']();}),_0x33e5a9['suggestionView']['discardButton']['on']('execute',()=>{_0x1ffbd0['editing']['view']['focus']();}),_0x5f4585=_0x27f452['createAnnotationView'](this['editor']['locale'],_0x33e5a9),_0x5f4585['bind']('isDirty')['to'](_0x33e5a9,'isDirty'),_0x5f4585['bind']('length')['to'](_0x33e5a9),_0x5f4585['bind']('type')['to'](_0x33e5a9,'type',_0xb6394b=>'suggestion-'+_0xb6394b),_0x33e5a9['on']('escape',()=>{_0x4df238['fire']('escape');}),this['_annotationViews']['set'](_0x823fd4['id'],_0x5f4585));const _0x2441be=_0x2b2dbf['createCommentThreadController'](_0x823fd4['commentThread'],_0x33e5a9),_0x595339=new pe(_0x1ffbd0,_0x823fd4,_0x33e5a9,_0x2441be),_0x145d96=_0x823fd4['getAllAdjacentSuggestions']()['filter'](_0x5228b=>_0x5228b['isInContent']);_0x33e5a9['descriptionParts']=_0x1ffbd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x145d96),this['_suggestionToController']['set'](_0x823fd4,_0x595339),this['_viewToController']['set'](_0x33e5a9,_0x595339),_0x4df238=_0x27f452['createAnnotation']({'view':_0x5f4585,'target':()=>{const _0xe18442=[],_0x158dd2=_0x823fd4['getAllAdjacentSuggestions']()['filter'](_0x1c212c=>_0x1c212c['isInContent']);for(const _0x4af6d2 of _0x158dd2)_0xe18442['push'](..._0x4af6d2['getMarkers']());return _0x1b012d(_0x1ffbd0['editing'],_0xe18442);},'type':()=>'suggestion-'+_0x595339['view']['type']}),_0x2b2dbf['_bindAnnotationToEditors'](_0x33e5a9,_0x4df238),_0x27f452['add'](_0x4df238),_0x42963a['registerAnnotation'](_0x4df238);}['_destroyController'](_0x4512bd){const _0x95e54d=this['editor']['plugins']['get']('CommentsRepository'),_0x40fc5c=this['editor']['plugins']['get']('Annotations'),_0x1c25bc=this['_suggestionToController']['get'](_0x4512bd),_0x3c6480=_0x1c25bc['view'],_0x46bb44=_0x40fc5c['getByInnerView'](_0x3c6480);_0x95e54d['_unbindEditors'](_0x3c6480),_0x46bb44&&_0x40fc5c['remove'](_0x46bb44),this['_suggestionToController']['delete'](_0x4512bd),this['_viewToController']['delete'](_0x3c6480),_0x1c25bc['destroy']();}['_updateController'](_0x41b331){if(!_0x41b331['isInContent']||!this['_suggestionToController']['has'](_0x41b331))return;const _0x3c6037=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ac03a=this['_suggestionToController']['get'](_0x41b331),_0x300953=_0x41b331['getAllAdjacentSuggestions']();_0x5ac03a['view']['descriptionParts']=_0x3c6037['descriptionFactory']['getDescriptions'](_0x300953);}['destroy'](){for(const _0x28d51c of this['_suggestionToController']['keys']())this['_destroyController'](_0x28d51c);for(const _0x33f0a5 of this['_annotationViews']['values']())_0x33f0a5['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x5402ce){return'model'in _0x5402ce;}class k extends _0x31fcb9{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3df48e){this['editor']['plugins']['get'](p)['adapter']=_0x3df48e;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x16c6d2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x16c6d2);}['getSuggestions']({skipNotAttached:_0x1055b0=!0x1,toJSON:_0x12bc7c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1055b0,'toJSON':_0x12bc7c});}['getSuggestion'](_0xf8af7d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xf8af7d);}}const w=['Pagination'];class T extends _0x31fcb9{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x48cd2f=this['editor'];if(_0x48cd2f['config']['define']('trackChangesData.editorCreator',_0x2da772=>{const _0x20b22f=_0x48cd2f['model']['document']['getRootNames']()['reduce']((_0x5ce39c,_0x6899f8)=>(_0x5ce39c[_0x6899f8]='',_0x5ce39c),{});return _0x48cd2f['constructor']['create'](_0x20b22f,_0x2da772);}),'function'!=typeof _0x48cd2f['config']['get']('trackChangesData')['editorCreator'])throw new _0x48f3a9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x30c004){return N(this['editor'],!0x0,_0x30c004);}['getDataWithDiscardedSuggestions'](_0x6f3ce2){return N(this['editor'],!0x1,_0x6f3ce2);}}class D extends _0x31fcb9{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4be5f8){function _0xcfa94a(_0x136d1d){return _0x136d1d['map'](_0x24057a=>String['fromCharCode'](_0x24057a))['join']('');}super(_0x4be5f8),this['result']='end',_0x4be5f8[_0xcfa94a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xcfa94a([0x76,0x69,0x65,0x77])][_0xcfa94a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xcfa94a([0x61,0x75,0x74,0x6f]),_0x4be5f8[_0xcfa94a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xcfa94a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xcfa94a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xcfa94a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xcfa94a([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x42f070){return void 0x0!==_0x42f070['getRootsAttributes'];}async function N(_0x4a6c1b,_0x351a40,_0x3961ea){const _0xed9f35=_0x58d059(_0x4a6c1b,w);_0xed9f35['plugins']['push'](p,D),_0xed9f35['rootsAttributes']=Fe(_0x4a6c1b)?_0x4a6c1b['getRootsAttributes']():void 0x0;const _0x599742=document['createDocumentFragment'](),_0x506a38=_0x4a6c1b['config']['get']('trackChangesData')['editorCreator'],_0x570856=await _0x506a38(_0xed9f35,()=>function(_0x541720){const _0x2294b9=document['createElement']('div');return _0x541720['appendChild'](_0x2294b9),_0x2294b9;}(_0x599742));!function(_0x2ad320,_0x836241){const _0x170591=_0x2ad320['model']['document']['getRootNames']()['reduce']((_0x4c0e95,_0x18cb24)=>(_0x4c0e95[_0x18cb24]=_0x2ad320['data']['get']({'rootName':_0x18cb24}),_0x4c0e95),{}),_0x53217a=_0x2ad320['plugins']['get']('Users')['users']['map'](_0x3a03fa=>({'id':_0x3a03fa['id'],'name':_0x3a03fa['name']})),_0x2f7a39=_0x2ad320['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x43f206=_0x2ad320['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1c8000=_0x836241['plugins']['get']('Users'),_0x759fe2=_0x836241['plugins']['get']('TrackChangesEditing'),_0x38c474=_0x836241['plugins']['get']('CommentsRepository');for(const _0x1ea9cb of _0x38c474['getCommentThreads']())_0x1ea9cb['remove']();for(const _0x178d24 of _0x53217a)_0x1c8000['getUser'](_0x178d24['id'])||_0x1c8000['addUser'](_0x178d24);_0x1c8000['me']||_0x1c8000['useAnonymousUser']();for(const _0x57a81b of _0x43f206)_0x38c474['addCommentThread'](_0x57a81b);for(const _0x28f96c of _0x2f7a39)_0x759fe2['addSuggestionData'](_0x28f96c);_0x836241['data']['set'](_0x170591);}(_0x4a6c1b,_0x570856),_0x570856['execute'](_0x351a40?'acceptAllSuggestions':'discardAllSuggestions');const _0x5a3fc8=Fe(_0x570856)?_0x570856['getFullData'](_0x3961ea):_0x570856['data']['get'](_0x3961ea);return await _0x570856['destroy'](),_0x5a3fc8;}class Me extends _0x4ae8c9{['options'];constructor(_0x5e1ea1,_0x2b9fe6){super(_0x5e1ea1),this['options']=_0x2b9fe6,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x2ad0fd,_0x3fa7dc){if(!this['element'])return;const _0x99e84e=[];for(const [_0x512a22,_0x3f3149]of _0x2ad0fd){const _0x351b9c=document['createElement']('div');_0x351b9c['setAttribute']('data-ck-root-name',_0x512a22),_0x351b9c['className']=_0x3f3149['classes']+'\x20ck-track-changes-preview__root-container',_0x351b9c['innerHTML']=_0x3f3149['content'],_0x99e84e['push'](_0x351b9c);}_0x3fa7dc(this['element'],_0x99e84e),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5b6e95{constructor(_0x552c45){super(_0x552c45),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5706fe=this['editor'],_0x22e6ca=_0x5706fe['locale'],_0x14f18d=_0x5706fe['plugins']['get']('Dialog');let _0x51eb3f;const _0xe9db9a=function(_0x4f8314){const _0x32fa40={};if('editables'in _0x4f8314['ui']['view']){for(const [_0x1a18d8,_0x27fa8d]of Object['entries'](_0x4f8314['ui']['view']['editables']))_0x32fa40[_0x1a18d8]=_0x27fa8d['element'];}else _0x32fa40[_0x4f8314['model']['document']['getRootNames']()[0x0]]=_0x4f8314['ui']['view']['editable']['element'];return _0x32fa40;}(_0x5706fe),_0x4960a0=function(_0x44965b){let _0x2e14a7=0x0;for(const _0x4ad4cb of Object['values'](_0x44965b))_0x2e14a7=Math['max'](_0x2e14a7,_0x4ad4cb['getBoundingClientRect']()['width']);let _0x3cd5bb=0x0;for(const _0x4ce19f of Object['values'](_0x44965b))_0x3cd5bb+=_0x4ce19f['getBoundingClientRect']()['height'];const _0x3e2d90=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x407ed4=Math['min'](_0x3cd5bb,_0x3e2d90);return{'width':_0x2e14a7,'height':_0x407ed4};}(_0xe9db9a);_0x14f18d['show']({'id':'finalContentPreview','title':c(_0x22e6ca,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x22e6ca,{'dialogRects':_0x4960a0}),'onHide':()=>{_0x51eb3f['detachFromDom']();},'onShow':()=>{_0x5706fe['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x33184c=>{const _0xe748cf=this['_standarizeRootsData'](_0x33184c,_0x5706fe,_0xe9db9a);_0x14f18d['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xe748cf,_0x5706fe['config']['get']('trackChanges.preview.renderFunction'));}),_0x51eb3f=new _0x3e972c(_0x22e6ca,[_0x14f18d['view']]),_0x51eb3f['attachToDom'](),_0x51eb3f['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5706fe['once']('destroy',()=>{_0x51eb3f['detachFromDom']();});const _0xf3c6c6=_0x14f18d['view']['headerView']['class'];_0x14f18d['view']['headerView']['class']=_0xf3c6c6?_0xf3c6c6+'\x20ck-reset_all':'ck-reset_all',_0x14f18d['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x14f18d['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x10e50a=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x423118=_0x10e50a['previewMode'],_0x156052={};if('$labels'===_0x423118){for(const _0x4e3a2c of _0x10e50a['getMergeFieldsIds']())_0x156052[_0x4e3a2c]=_0x10e50a['getLabel'](_0x4e3a2c)||_0x4e3a2c;}else{const _0x3e00d5='$defaultValues'===_0x423118?_0x10e50a['getDefaultValues']():_0x10e50a['getDataSetValues'](_0x423118,!0x0);for(const _0x590221 of Object['entries'](_0x3e00d5)){const [_0x2cb603,_0x500b10]=_0x590221;_0x156052[_0x2cb603]=null!==_0x500b10?_0x500b10:_0x10e50a['getLabel'](_0x2cb603)||_0x2cb603;}}return{'mergeFieldsData':_0x156052};}['_standarizeRootsData'](_0x807798,_0x2e2e0d,_0x3c69e3){let _0x5cc037;if('string'==typeof _0x807798){const _0xf9a334=_0x2e2e0d['model']['document']['getRootNames']()[0x0];_0x5cc037={[_0xf9a334]:_0x807798};}else _0x5cc037=_0x807798;const _0x462762=this['_fixMediaEmbeds'](_0x5cc037,_0x2e2e0d),_0x320769=function(_0x2992b7,_0xa8b2d7){for(const [_0x10e063,_0x590cd0]of _0x2992b7)_0x590cd0['classes']=_0xa8b2d7[_0x10e063]['classList']['value']['replace']('ck-focused','');return _0x2992b7;}(this['_sortRoots'](_0x2e2e0d)['reduce']((_0x47baf9,_0x1b0709)=>(_0x47baf9['push']([_0x1b0709,{'content':_0x462762[_0x1b0709],'classes':''}]),_0x47baf9),[]),_0x3c69e3);return _0x320769;}['_fixMediaEmbeds'](_0x373197,_0x121c24){if(!_0x121c24['plugins']['has']('MediaEmbedEditing'))return _0x373197;const _0xf3e169=_0x121c24['plugins']['get']('MediaEmbedEditing');for(const [_0x2f3d44,_0x5d8f02]of Object['entries'](_0x373197)){const _0x4ec64c=document['createElement']('div');_0x4ec64c['innerHTML']=_0x5d8f02,(_0x4ec64c['querySelectorAll']('figure.media')['forEach'](_0x47fbc6=>{const _0x502589=_0x47fbc6['querySelector']('oembed');if(_0x502589){const _0x2ba33e=_0x502589['getAttribute']('url');if(_0x2ba33e){const _0x3bc6d1=_0xf3e169['registry']['getMediaViewElement'](new _0x4a4f56(_0x121c24['editing']['view']['document']),_0x2ba33e,{'elementName':'','renderForEditingView':!0x0}),_0x321ed9=document['createElement']('div');_0x321ed9['classList']['add']('ck-media__wrapper'),_0x3bc6d1['render'](_0x321ed9,_0x121c24['editing']['view']['domConverter']),_0x502589['replaceWith'](_0x321ed9);}}}),_0x373197[_0x2f3d44]=_0x4ec64c['innerHTML']);}return _0x373197;}['_sortRoots'](_0x2d428e){if(!function(_0x18aeb4){return void 0x0!==_0x18aeb4['getRootsAttributes'];}(_0x2d428e))return _0x2d428e['model']['document']['getRootNames']();const _0xe7c281=[],_0x157276=new Map();for(const _0x4787df of _0x2d428e['model']['document']['getRootNames']()){const _0x410f03=_0x2d428e['editing']['view']['getDomRoot'](_0x4787df)['getClientRects']()['item'](0x0);_0xe7c281['push'](_0x4787df),_0x157276['set'](_0x4787df,_0x410f03);}return _0xe7c281['sort']((_0x3dc91f,_0x46ee45)=>{const _0x4b9291=_0x157276['get'](_0x3dc91f),_0x1ae38b=_0x157276['get'](_0x46ee45);return _0x4b9291['y']-_0x1ae38b['y']||_0x4b9291['x']-_0x1ae38b['x'];}),_0xe7c281;}}class te extends _0x31fcb9{static get['requires'](){return[T,_0x1ecebd];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x30e4be){super(_0x30e4be),_0x30e4be['commands']['add']('previewFinalContent',new re(this['editor'])),_0x30e4be['config']['define']('trackChanges.preview.renderFunction',(_0x502957,_0x3844da)=>{for(const _0x305def of _0x3844da)_0x502957['appendChild'](_0x305def);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x46c601,Plugin as _0x368c11,PendingActions as _0x56125d}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x921117,ObservableMixin as _0x3d99c5,uid as _0x2ea4c3,priorities as _0x79d5b2,insertToPriorityArray as _0x5b49b4,logWarning as _0x58f0f1,getEnvKeystrokeText as _0x3e2c26,FocusTracker as _0x1a4c5d,KeystrokeHandler as _0x5eb6eb,Collection as _0x233d6f}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x48959a,IconCancel as _0x2a4cef,IconTrackChanges as _0x5b2a51}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x511ff4,View as _0x2baa4b,ViewCollection as _0x20fb58,FocusCycler as _0x366294,ViewModel as _0x45532b,createDropdown as _0x4315a1,SplitButtonView as _0x936d1,addListToDropdown as _0x4a36cd,MenuBarMenuView as _0x4e63f9,MenuBarMenuListView as _0x23aa5e,ListSeparatorView as _0x34a850,MenuBarMenuListItemView as _0x2a8dc1,MenuBarMenuListItemButtonView as _0x1b9a32,BodyCollection as _0x287a96,Dialog as _0x165194}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x329083,hashObject as _0x21fcb1,surroundingMarkersDetector as _0x2b0b75,FOCUS_ANNOTATION_KEYSTROKE as _0x16fc57,AriaDescriptionView as _0xc3e34,setupThreadKeyboardNavigation as _0x5f3251,trimHtml as ti,UserView as _0x4112db,LateFocusButtonView as _0x4efd78,getDateTimeFormatter as _0x187b0c,getAllMarkersDomElementsSorted as _0x9fb501,sanitizeEditorConfig as _0x5adfcb}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x33534d,LiveRange as _0x2b7c87,LivePosition as _0x22afac,DowncastWriter as _0x2e2cfe}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x505b5a,toWidget as _0x3d756d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5dd10a,set as _0x214c7d,isEqual as _0x35d3c5,unset as _0x4626ce,omit as Vt}from'es-toolkit/compat';import{Delete as _0x5edd43,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x56df10,ShiftEnter as _0xb8357f}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends _0x46c601{['_enabledCommands'];constructor(_0x198612,_0x280eef){super(_0x198612),this['_enabledCommands']=_0x280eef,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 _0x9dc11c of this['editor']['commands']['commands']())_0x9dc11c['affectsData']&&!this['_enabledCommands']['has'](_0x9dc11c)&&_0x9dc11c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x5c1d14 of this['editor']['commands']['commands']())_0x5c1d14['affectsData']&&!this['_enabledCommands']['has'](_0x5c1d14)&&_0x5c1d14['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x46c601{['_suggestions'];constructor(_0x580ccb,_0x46a8c0){super(_0x580ccb),this['_suggestions']=_0x46a8c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f954c){const _0x2b9a81=this['_suggestions']['get'](_0x3f954c);if(!_0x2b9a81)throw new _0x921117('track-changes-accept-suggestion-not-found',this);const _0x5d81f8=_0x2b9a81['getRanges']();this['editor']['model']['canEditAt'](_0x5d81f8)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2b9a81);}}class R extends _0x46c601{['_suggestions'];constructor(_0x510b5e,_0x15d851){super(_0x510b5e),this['_suggestions']=_0x15d851,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54add2){const _0x214167=this['_suggestions']['get'](_0x54add2);if(!_0x214167)throw new _0x921117('track-changes-discard-suggestion-not-found',this);const _0x55390e=_0x214167['getRanges']();this['editor']['model']['canEditAt'](_0x55390e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x214167);}}function ls(_0x50e9df,_0x29a2ad){let _0x149d3a='';return _0x149d3a+=_0x50e9df['split']('*')['map']((_0x36398c,_0x49905d)=>_0x49905d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x36398c)+'</span>':nn(_0x36398c))['join'](''),_0x29a2ad&&(_0x149d3a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x29a2ad['value']+'\x22\x20title=\x22'+_0x29a2ad['title']+'\x22></span>'),_0x149d3a;}function nn(_0x170dfd){const _0x3f093f=document['createElement']('span');return _0x3f093f['innerText']=_0x170dfd,_0x3f093f['innerHTML'];}function ts(_0x224bab){return _0x224bab['sort']((_0x46daaf,_0x4462b1)=>'deletion'==_0x46daaf['type']&&'deletion'!=_0x4462b1['type']?-0x1:'deletion'!=_0x46daaf['type']&&'deletion'==_0x4462b1['type']?0x1:0x0);}function Zt(_0x462ed5,_0x2f6aa9){let _0x48f272,_0x3a24b9=0x0;const _0x2be1f7=[],_0x359b58=_0x2f6aa9['schema'];for(;_0x3a24b9<_0x462ed5['length'];){const _0x1ff395=_0x462ed5[_0x3a24b9],_0x259a7e=_0x462ed5[_0x3a24b9+0x1];_0x48f272||(_0x48f272=_0x2f6aa9['createPositionBefore'](_0x1ff395)),on(_0x2f6aa9,_0x1ff395,_0x259a7e)||(_0x2be1f7['push'](_0x2f6aa9['createRange'](_0x48f272,_0x359b58['isObject'](_0x1ff395)?_0x2f6aa9['createPositionAfter'](_0x1ff395):_0x2f6aa9['createPositionAt'](_0x1ff395,'end'))),_0x48f272=null),_0x3a24b9++;}return _0x2be1f7;}function on(_0x255624,_0x314952,_0x14ba1c){if(!_0x14ba1c)return!0x1;const _0x3273d5=_0x255624['createPositionAfter'](_0x314952),_0x446407=_0x255624['createPositionBefore'](_0x14ba1c);return _0x3273d5['isTouching'](_0x446407);}function rs(_0x25b240,_0x5ea8ed,_0x1694aa){for(;_0x1694aa['length'];){const _0x38723c=_0x1694aa['splice'](0x0,0x64);_0x25b240['change'](()=>{for(const _0x30546c of _0x38723c)_0x30546c['isInContent']&&_0x5ea8ed['execute'](_0x30546c['id']);});}}class x extends _0x46c601{['_command'];['_suggestions'];constructor(_0x205308,_0x5f09a9,_0x42db24){super(_0x205308),this['_command']=_0x5f09a9,this['_suggestions']=_0x42db24,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5ef731=Array['from'](this['_suggestions']['values']())['some'](_0x3eaa98=>_0x3eaa98['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5ef731;}['execute'](){const _0x3ee3e3=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2da505 of _0x3ee3e3){const _0x4d90d9=_0x2da505['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4d90d9))return;}rs(this['editor']['model'],this['_command'],_0x3ee3e3);}}class E extends _0x46c601{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x294be3,_0x2b9973,_0x4e56cf){super(_0x294be3),this['_command']=_0x2b9973,this['_suggestions']=_0x4e56cf,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2d2386=this['editor']['model']['document']['selection'],_0x1e5fb5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5343c7,_0x312f81){const _0x39625b=Array['from'](_0x5343c7['getRanges']()),_0x3c8089=new Set();for(const _0x44202f of _0x312f81)if(_0x44202f['isInContent']){for(const _0x1fa7fc of _0x39625b)for(const _0x3af545 of _0x44202f['getRanges']())(_0x1fa7fc['isIntersecting'](_0x3af545)||_0x5343c7['isCollapsed']&&!_0x44202f['isMultiRange']&&_0x44202f['next']&&_0x3af545['end']['isTouching'](_0x1fa7fc['start']))&&_0x3c8089['add'](_0x44202f);}return _0x3c8089;}(_0x2d2386,_0x1e5fb5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1f365c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x41f6d6 of _0x1f365c){const _0x5f1e22=_0x41f6d6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5f1e22))return;}rs(this['editor']['model'],this['_command'],_0x1f365c);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3d99c5(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4a71f8,_0x1a5e68){super(),this['id']=_0x1a5e68['id'],this['type']=_0x1a5e68['type'],this['subType']=_0x1a5e68['subType']||null,this['author']=_0x1a5e68['author'],this['creator']=_0x1a5e68['creator']||_0x1a5e68['author'],this['isExternal']=Boolean(_0x1a5e68['attributes']&&_0x1a5e68['attributes']['@external']),this['data']=null,this['_model']=_0x4a71f8,this['_onAccept']=_0x1a5e68['onAccept'],this['_onDiscard']=_0x1a5e68['onDiscard'],this['_onAttributesChange']=_0x1a5e68['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1a5e68['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 _0x255488=this;for(;_0x255488['previous'];)_0x255488=_0x255488['previous'];return _0x255488;}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'](_0x2ca9f2){this['_markerNames']['add'](_0x2ca9f2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x287810=>this['_model']['markers']['get'](_0x287810))['filter'](_0x3c2fc5=>_0x3c2fc5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c70d2=>{for(const _0x29addc of this['getMarkers']())_0x3c70d2['removeMarker'](_0x29addc);}),this['_markerNames']['clear']();}['removeMarker'](_0x578920){this['_model']['change'](_0x16c3c8=>{_0x16c3c8['removeMarker'](_0x578920);}),this['_markerNames']['delete'](_0x578920);}['addRange'](_0x221c6f){const _0xe15ab1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0xe15ab1),this['_model']['change'](_0x3caed1=>{_0x3caed1['addMarker'](_0xe15ab1,{'range':_0x221c6f,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x26ab11){for(const _0x1a406e of this['getRanges']())if(_0x1a406e['isIntersecting'](_0x26ab11))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x7fb8b2=>_0x7fb8b2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2fa479,_0x9cfee2)=>[..._0x2fa479,..._0x9cfee2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x50bd45=this['getRanges']();if(0x1!=_0x50bd45['length'])return null;const _0x2553fd=_0x50bd45[0x0],_0x53fb65=_0x2553fd['start']['nodeAfter'],_0x42ea5f=_0x2553fd['end']['nodeBefore'];return _0x53fb65 instanceof _0x33534d?_0x53fb65!=_0x42ea5f?null:_0x53fb65: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 _0x765253=[];let _0x128d2a=this['head'];for(;_0x128d2a;)_0x765253['push'](_0x128d2a),_0x128d2a=_0x128d2a['next'];return _0x765253;}['setAttribute'](_0xa8e2b1,_0x920c38){const _0x45668c=_0x5dd10a(this['attributes']);_0x214c7d(_0x45668c,_0xa8e2b1,_0x920c38),_0x35d3c5(_0x45668c,this['attributes'])||(this['attributes']=_0x45668c,this['_onAttributesChange'](_0x45668c));}['removeAttribute'](_0x5a1594){const _0x5389b9=_0x5dd10a(this['attributes']);_0x4626ce(_0x5389b9,_0x5a1594),_0x35d3c5(_0x5389b9,this['attributes'])||(this['attributes']=_0x5389b9,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 _0x2ea4c3()['substr'](0x1,0x5);}}function c(_0x12c43c,_0x18c3ca,_0x52c6d8){const _0x5a773b=_0x12c43c['t'],t=_0x12c43c['t'];switch(_0x18c3ca){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'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');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',_0x52c6d8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x52c6d8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x52c6d8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x52c6d8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x52c6d8);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',_0x52c6d8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x52c6d8);case'*Replace\x20image*':return t('*Replace\x20image*');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',_0x52c6d8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x52c6d8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x52c6d8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x52c6d8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x52c6d8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x52c6d8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x52c6d8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x52c6d8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x52c6d8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x52c6d8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x52c6d8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x52c6d8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x52c6d8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x52c6d8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x52c6d8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x52c6d8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x52c6d8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x52c6d8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x52c6d8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x52c6d8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x52c6d8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x52c6d8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x52c6d8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x52c6d8);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'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x52c6d8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x52c6d8);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'},_0x52c6d8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x52c6d8);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 _0x5a773b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x52c6d8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5a773b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x52c6d8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x52c6d8);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'},_0x52c6d8);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'},_0x52c6d8);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'},_0x52c6d8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x18c3ca;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x157282,_0x582590){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x157282,this['_locale']=_0x582590;}['getDescriptions'](_0x5c50b4){const _0xa1f9a7=[],_0x2970a8=new Set(),_0x45e5d1=new Set();for(let _0x361afd=0x0;_0x361afd<_0x5c50b4['length'];_0x361afd++){const _0x350df3=_0x5c50b4[_0x361afd];if(!_0x350df3['isInContent'])continue;const _0x1ff8e6=this['_handleCustomCallbackDescription'](_0x350df3);if(_0x1ff8e6){if(null!=_0x350df3['subType']){if(_0x2970a8['has'](_0x350df3['subType']))continue;_0x2970a8['add'](_0x350df3['subType']);}_0xa1f9a7['push'](_0x1ff8e6);}else{if('attribute'!=_0x350df3['type'])'insertion'!=_0x350df3['type']&&'deletion'!=_0x350df3['type']||this['_handleInsertRemoveSuggestionDescription'](_0xa1f9a7,_0x350df3,_0x5c50b4[_0x361afd+0x1]);else{const _0x4dc30c=_0x350df3['data']['key'];if(_0x45e5d1['has'](_0x4dc30c))continue;_0x45e5d1['add'](_0x350df3['data']['key']),_0x4dc30c==u?this['_handleRenameSuggestionDescription'](_0xa1f9a7,_0x350df3):this['_handleAttributeSuggestionDescription'](_0xa1f9a7,_0x350df3);}}}return this['_resolveDescriptionItems'](_0xa1f9a7);}['registerDescriptionCallback'](_0x3abc72){this['_customCallbacks']['push'](_0x3abc72);}['registerElementLabel'](_0x4b5a84,_0x180394,_0x4f175a=_0x79d5b2['normal']){'function'==typeof _0x4b5a84?_0x5b49b4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4b5a84,'label':_0x180394,'priority':_0x4f175a}):this['_itemLabels']['set'](_0x4b5a84,_0x180394);}['registerAttributeLabel'](_0x114536,_0x3c2db0){this['_attributeLabels']['set'](_0x114536,_0x3c2db0);}['getItemLabel'](_0x15c13f,_0x419736=0x1){let _0xfa0f57;for(const _0x12d4b7 of this['_itemLabelsCallbacks'])if(_0x12d4b7['matchingCallback'](_0x15c13f)){_0xfa0f57=_0x12d4b7['label'];break;}return _0xfa0f57||(_0xfa0f57=this['_itemLabels']['get'](_0x15c13f['name'])),_0xfa0f57?_0xfa0f57(_0x419736):0x1!==_0x419736?_0x419736+'\x20'+_0x15c13f['name']+'s':''+_0x15c13f['name'];}['_addDescriptionItems'](_0x36feae,_0x540941){const _0x5bdf30=_0x540941['getFirstRange']()['getWalker'](),_0x36a9fb='insertion'==_0x540941['type']?'add':'remove';for(const _0x498bf5 of _0x5bdf30){const _0x2fa952=_0x498bf5['item'],_0x5602e0=_0x36feae[_0x36feae['length']-0x1];if(_0x2fa952['is']('$textProxy'))_0x5602e0&&_0x5602e0['type']['indexOf']('Container')>-0x1&&_0x36feae['pop'](),_0x5602e0&&'text'==_0x5602e0['type']?_0x5602e0[_0x36a9fb]+=_0x2fa952['data']:_0x36feae['push']({'type':'text','add':'add'==_0x36a9fb?_0x2fa952['data']:'','remove':'remove'==_0x36a9fb?_0x2fa952['data']:''});else{if(this['_schema']['isObject'](_0x2fa952)){const _0x5d820b=_0x2fa952;if(_0x5602e0&&_0x5602e0['type']['indexOf']('Container')>-0x1&&_0x36feae['pop'](),'elementEnd'==_0x498bf5['type'])continue;_0x5602e0&&_0x5602e0['type']==_0x36a9fb+'Object'&&_0x5602e0['element']['name']==_0x5d820b['name']?_0x5602e0['quantity']++:_0x36feae['push']({'type':_0x36a9fb+'Object','element':_0x5d820b,'quantity':0x1}),_0x5bdf30['skip'](_0x403f8b=>!('elementEnd'==_0x403f8b['type']&&_0x403f8b['item']==_0x2fa952));}else{if(this['_schema']['checkChild'](_0x2fa952,'$text')||_0x2fa952['is']('element','softBreak')){const _0x775225=_0x2fa952;if('add'==_0x36a9fb&&'elementStart'==_0x498bf5['type']||'remove'==_0x36a9fb&&'elementEnd'==_0x498bf5['type'])continue;if(_0x5602e0&&-0x1==_0x5602e0['type']['indexOf']('Container')){'text'==_0x5602e0['type']&&(_0x5602e0[_0x36a9fb]+='\x0a');continue;}let _0x1d2acf;if(_0x1d2acf='add'==_0x36a9fb?_0x775225['nextSibling']&&!this['_schema']['isObject'](_0x775225['nextSibling'])?_0x775225['nextSibling']:null:_0x775225['previousSibling']&&!this['_schema']['isObject'](_0x775225['previousSibling'])?_0x775225['previousSibling']:null,_0x775225['isEmpty']||_0x1d2acf&&_0x1d2acf['isEmpty']){const _0x4ee66e=_0x1d2acf&&_0x1d2acf['isEmpty']?_0x1d2acf:_0x775225;_0x5602e0&&_0x5602e0['type']==_0x36a9fb+'EmptyContainer'&&_0x5602e0['element']['name']==_0x4ee66e['name']?_0x5602e0['quantity']++:_0x36feae['push']({'type':_0x36a9fb+'EmptyContainer','element':_0x4ee66e,'quantity':0x1});}else _0x36feae['push']({'type':_0x36a9fb+'Container','element':_0x775225});}}}}}['_resolveDescriptionItems'](_0x32d02f){const _0x46069f=this['_locale'],_0x28bbd6=[],_0x419cbd=[],_0x30b88c=[];for(const _0x3cbd9b of _0x32d02f)switch(_0x3cbd9b['type']){case'text':if(_0x3cbd9b['add']=_0x3cbd9b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cbd9b['remove']=_0x3cbd9b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cbd9b['add']&&''!=_0x3cbd9b['remove']){_0x28bbd6['push']({'type':'replace','content':c(_0x46069f,'REPLACE_TEXT',['\x22'+_0x3cbd9b['remove']+'\x22','\x22'+_0x3cbd9b['add']+'\x22'])});continue;}if(null!=_0x3cbd9b['add']['match'](/^ +$/)){_0x28bbd6['push']({'type':'insertion','content':c(_0x46069f,'*Insert:*\x20%0',c(_0x46069f,'ELEMENT_SPACE',_0x3cbd9b['add']['length']))});continue;}if(null!=_0x3cbd9b['remove']['match'](/^ +$/)){_0x28bbd6['push']({'type':'deletion','content':c(_0x46069f,'*Remove:*\x20%0',c(_0x46069f,'ELEMENT_SPACE',_0x3cbd9b['remove']['length']))});continue;}if(''!=_0x3cbd9b['add']){_0x28bbd6['push']({'type':'insertion','content':c(_0x46069f,'*Insert:*\x20%0','\x22'+_0x3cbd9b['add']+'\x22')});continue;}_0x28bbd6['push']({'type':'deletion','content':c(_0x46069f,'*Remove:*\x20%0','\x22'+_0x3cbd9b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x28bbd6['push']({'type':'insertion','content':c(_0x46069f,'*Insert:*\x20%0',this['getItemLabel'](_0x3cbd9b['element'],_0x3cbd9b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x28bbd6['push']({'type':'deletion','content':c(_0x46069f,'*Remove:*\x20%0',this['getItemLabel'](_0x3cbd9b['element'],_0x3cbd9b['quantity']))});continue;case'addContainer':_0x28bbd6['push']({'type':'insertion','content':c(_0x46069f,'*Split:*\x20%0',this['getItemLabel'](_0x3cbd9b['element'],_0x3cbd9b['quantity']))});continue;case'removeContainer':_0x28bbd6['push']({'type':'deletion','content':c(_0x46069f,'*Merge:*\x20%0',this['getItemLabel'](_0x3cbd9b['element'],_0x3cbd9b['quantity']))});continue;case'addFormat':_0x419cbd['push'](_0x3cbd9b['key']);continue;case'removeFormat':_0x30b88c['push'](_0x3cbd9b['key']);continue;default:_0x28bbd6['push'](_0x3cbd9b);}if(_0x419cbd['length']){const _0x23e4b6=_0x419cbd['map'](_0xd471c9=>this['_attributeLabels']['has'](_0xd471c9)?this['_attributeLabels']['get'](_0xd471c9):_0xd471c9)['join'](',\x20');_0x28bbd6['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x23e4b6)});}if(_0x30b88c['length']){const _0x460df4=_0x30b88c['map'](_0x3ce821=>this['_attributeLabels']['has'](_0x3ce821)?this['_attributeLabels']['get'](_0x3ce821):_0x3ce821)['join'](',\x20');_0x28bbd6['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x460df4)});}return _0x28bbd6;}['_handleCustomCallbackDescription'](_0x4781c9){for(const _0x5b1ba5 of this['_customCallbacks']){const _0xb398a5=_0x5b1ba5(_0x4781c9);if(_0xb398a5&&'type'in _0xb398a5)return _0xb398a5;}}['_handleAttributeSuggestionDescription'](_0x525082,_0xac5ec9){const _0x335cd3=_0xac5ec9['data'],_0x42484e=void 0x0===_0x335cd3['newValue']?'removeFormat':'addFormat';_0x525082['push']({'type':_0x42484e,'key':_0x335cd3['key']});}['_handleRenameSuggestionDescription'](_0x54947e,_0x50f4d7){_0x54947e['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x50f4d7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3390e0,_0x5d8102,_0x5bd17d){if(this['_addDescriptionItems'](_0x3390e0,_0x5d8102),_0x5bd17d&&_0x5bd17d['getFirstRange']()&&!_0x5d8102['getFirstRange']()['end']['isEqual'](_0x5bd17d['getFirstRange']()['start'])){const _0x23d21e=_0x3390e0[_0x3390e0['length']-0x1],_0xd97438='insertion'==_0x5d8102['type']?'add':'remove';_0x23d21e&&'text'==_0x23d21e['type']&&(_0x23d21e[_0xd97438]+='\x0a');}}}class U extends _0x368c11{['afterInit'](){const _0x4dd570=this['editor'],_0x3e7913=_0x4dd570['plugins']['get']('TrackChangesEditing');_0x4dd570['commands']['get']('showAIAssistant')&&_0x3e7913['enableCommand']('showAIAssistant');}}class V extends _0x368c11{['afterInit'](){const _0x2ad720=this['editor'],_0x5c3db7=_0x2ad720['locale'];if(!_0x2ad720['plugins']['has']('AlignmentEditing'))return;const _0x45f1dc=_0x2ad720['plugins']['get']('TrackChangesEditing');_0x45f1dc['enableDefaultAttributesIntegration']('alignment'),_0x45f1dc['registerBlockAttribute']('alignment'),_0x45f1dc['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5c3db7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f38b0=this['editor'],_0x320a46=_0x1f38b0['locale'];_0x1f38b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30ff66=>{if('formatBlock'!=_0x30ff66['type'])return;const {data:_0x5343b7}=_0x30ff66;if(_0x5343b7&&'alignment'==_0x5343b7['commandName']){const _0x12f1dd=_0x5343b7['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x320a46,'*Format:*\x20%0',function(_0xa4889b){switch(_0xa4889b){case'left':return c(_0x320a46,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x320a46,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x320a46,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x320a46,'FORMAT_JUSTIFY_TEXT');}}(_0x12f1dd))};}});}}const Yt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x368c11{['afterInit'](){const _0x44adc7=this['editor'],_0x531b42=_0x44adc7['plugins']['get']('TrackChangesEditing'),_0x12e35d=_0x44adc7['locale'];for(const _0x5dbeaf of Yt){if(!_0x44adc7['plugins']['has'](_0x5dbeaf))continue;const _0x1428f9=_0x5dbeaf['slice'](0x0,-0x7)['toLowerCase'](),_0x109ea6='FORMAT_'+_0x1428f9['toUpperCase']();_0x531b42['enableDefaultAttributesIntegration'](_0x1428f9),_0x531b42['registerInlineAttribute'](_0x1428f9),_0x531b42['descriptionFactory']['registerAttributeLabel'](_0x1428f9,c(_0x12e35d,_0x109ea6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x378383=this['editor'],_0x58b707=_0x378383['locale'],_0x7ba13a=_0x378383['plugins']['get']('TrackChangesEditing');function _0x32fd2b(_0x44be88,_0x469fd6){_0x7ba13a['descriptionFactory']['registerDescriptionCallback'](_0x1d0157=>{if('formatInline'!=_0x1d0157['type'])return;const {data:_0x1a1c3f}=_0x1d0157;return _0x1a1c3f&&_0x1a1c3f['commandName']===_0x44be88?_0x1a1c3f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x58b707,'*Format:*\x20%0',_0x469fd6)}:{'type':'format','content':c(_0x58b707,'*Remove\x20format:*\x20%0',_0x469fd6)}:void 0x0;});}_0x32fd2b('bold',c(_0x58b707,'FORMAT_BOLD')),_0x32fd2b('italic',c(_0x58b707,'FORMAT_ITALIC')),_0x32fd2b('underline',c(_0x58b707,'FORMAT_UNDERLINE')),_0x32fd2b('code',c(_0x58b707,'FORMAT_CODE')),_0x32fd2b('strikethrough',c(_0x58b707,'FORMAT_STRIKETHROUGH')),_0x32fd2b('subscript',c(_0x58b707,'FORMAT_SUBSCRIPT')),_0x32fd2b('superscript',c(_0x58b707,'FORMAT_SUPERSCRIPT'));}}class G extends _0x368c11{['afterInit'](){const _0x2466ef=this['editor'],_0x57d468=_0x2466ef['locale'];if(!_0x2466ef['plugins']['has']('BlockQuoteEditing'))return;const _0x4fe740=_0x2466ef['plugins']['get']('TrackChangesEditing'),_0x341b42=this['editor']['commands']['get']('blockQuote');_0x4fe740['enableCommand']('blockQuote',(_0x55d567,_0x11895e={})=>{const _0x542dce=this['editor']['model']['document']['selection'],_0x29ee4e=_0x11895e&&void 0x0!==_0x11895e['forceValue']?_0x11895e['forceValue']:!_0x341b42['value'];let _0x423370=[];if(_0x29ee4e){const _0x3b75c7=Array['from'](_0x542dce['getSelectedBlocks']())['filter'](_0x12c376=>to(_0x12c376)||function(_0x21f150,_0x1150d7){const _0xd21df8=_0x1150d7['checkChild'](_0x21f150['parent'],'blockQuote'),_0x5c3bd9=_0x1150d7['checkChild'](['$root','blockQuote'],_0x21f150);return _0xd21df8&&_0x5c3bd9;}(_0x12c376,this['editor']['model']['schema']));_0x423370=Zt(_0x3b75c7,_0x2466ef['model']);}else{const _0x29dd28=Array['from'](_0x542dce['getSelectedBlocks']())['filter'](_0x82247b=>to(_0x82247b));_0x423370=Zt(_0x29dd28,_0x2466ef['model']);}_0x2466ef['model']['change'](()=>{for(const _0x407392 of _0x423370)_0x4fe740['markBlockFormat'](_0x407392,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x29ee4e}]});});}),_0x4fe740['descriptionFactory']['registerDescriptionCallback'](_0x2c0d87=>{const {data:_0x1a56c4}=_0x2c0d87;if(_0x1a56c4&&'blockQuote'==_0x1a56c4['commandName']){const _0x2e1185=c(_0x57d468,'ELEMENT_BLOCK_QUOTE');return _0x1a56c4['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x57d468,'*Set\x20format:*\x20%0',_0x2e1185)}:{'type':'format','content':c(_0x57d468,'*Remove\x20format:*\x20%0',_0x2e1185)};}});}}function to(_0x47eaa5){return'blockQuote'==_0x47eaa5['parent']['name'];}class L extends _0x368c11{['afterInit'](){const _0x2cb10f=this['editor'],_0xcfac0a=_0x2cb10f['locale'],_0x2e7495=_0x2cb10f['plugins']['get']('TrackChangesEditing');_0x2cb10f['plugins']['has']('BookmarkEditing')&&(_0x2e7495['enableCommand']('insertBookmark'),_0x2e7495['enableDefaultAttributesIntegration']('updateBookmark'),_0x2e7495['registerBlockAttribute']('bookmarkId'),_0x2e7495['descriptionFactory']['registerDescriptionCallback'](_0x13951f=>{if('insertion'!=_0x13951f['type']&&'deletion'!=_0x13951f['type']&&'attribute'!=_0x13951f['type'])return;const _0x4bd847=_0x13951f['getContainedElement']();if(null==_0x4bd847)return;if(!_0x4bd847['is']('element','bookmark'))return;const _0x45b28b=_0x4bd847['getAttribute']('bookmarkId');if('insertion'==_0x13951f['type'])return{'type':'insertion','content':c(_0xcfac0a,'*Insert:*\x20%0','\x22'+_0x45b28b+'\x22\x20'+c(_0xcfac0a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x13951f['type'])return{'type':'deletion','content':c(_0xcfac0a,'*Remove:*\x20%0','\x22'+_0x45b28b+'\x22\x20'+c(_0xcfac0a,'ELEMENT_BOOKMARK'))};const {data:_0x6bfea}=_0x13951f;if(!_0x6bfea||'bookmarkId'!=_0x6bfea['key'])return;return{'type':'format','content':c(_0xcfac0a,'*Set\x20bookmark:*\x20%0','\x22'+_0x6bfea['newValue']+'\x22')};}));}}class J extends _0x368c11{['afterInit'](){const _0x3cda30=this['editor'];_0x3cda30['plugins']['has']('CaseChange')&&(_0x3cda30['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3cda30['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3cda30['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x368c11{['afterInit'](){const _0x1d91be=this['editor'];_0x1d91be['commands']['get']('ckbox')&&_0x1d91be['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x368c11{['afterInit'](){const _0xd7e01b=this['editor'];if(!_0xd7e01b['plugins']['has']('CodeBlock'))return;const _0x316910=_0xd7e01b['plugins']['get']('TrackChangesEditing'),_0x9e0b81=_0xd7e01b['locale'],_0x554400=_0xd7e01b['config']['get']('codeBlock')['languages'],_0x18e780=_0xd7e01b['commands']['get']('codeBlock');_0x316910['enableCommand']('indentCodeBlock'),_0x316910['enableCommand']('outdentCodeBlock'),_0x316910['enableCommand']('codeBlock',(_0x15ccd8,_0x4a6009={})=>{const _0x9320dc=_0xd7e01b['model'],_0x576e9c=_0xd7e01b['model']['document']['selection'],_0xd9867c=_0x4a6009&&void 0x0!==_0x4a6009['forceValue']?_0x4a6009['forceValue']:!_0x18e780['value'];let _0x4be31c;_0x4a6009['language']||(_0x4a6009['language']=_0x554400[0x0]['language']),_0x4be31c=_0xd9867c?Array['from'](_0x576e9c['getSelectedBlocks']())['filter'](_0x23346c=>oo(_0x23346c)||function(_0x395466,_0x228d49){if(_0x395466['is']('rootElement')||_0x228d49['isLimit'](_0x395466))return!0x1;return _0x228d49['checkChild'](_0x395466['parent'],'codeBlock');}(_0x23346c,_0x9320dc['schema'])):Array['from'](_0x576e9c['getSelectedBlocks']())['filter'](_0x3bcd92=>oo(_0x3bcd92));const _0x327a45=Zt(_0x4be31c,_0x9320dc);_0x9320dc['change'](()=>{for(const _0xab0443 of _0x327a45)_0x316910['markBlockFormat'](_0xab0443,{'commandName':'codeBlock','commandParams':[{..._0x4a6009,'forceValue':_0xd9867c}],'formatGroupId':'blockName'});});}),(_0x316910['descriptionFactory']['registerElementLabel']('codeBlock',_0x267a6a=>c(_0x9e0b81,'ELEMENT_CODE_BLOCK',_0x267a6a)),_0x316910['descriptionFactory']['registerDescriptionCallback'](_0x45b4df=>{if('formatBlock'!=_0x45b4df['type'])return;const _0x4a438d=_0x9e0b81['t'],{data:_0x12076e}=_0x45b4df;if(!_0x12076e||'codeBlock'!=_0x12076e['commandName'])return;const _0x7c90a3=_0x12076e['commandParams'][0x0]['language'],_0x73ef31=_0x4a438d(_0x554400['find'](_0x58cf53=>_0x58cf53['language']===_0x7c90a3)['label'])['toLowerCase']();return _0x12076e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x9e0b81,'*Set\x20format:*\x20%0',c(_0x9e0b81,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x73ef31+')')}:{'type':'format','content':c(_0x9e0b81,'*Remove\x20format:*\x20%0',c(_0x9e0b81,'ELEMENT_CODE_BLOCK',0x1))};}));}}function oo(_0x3b6efd){return'codeBlock'==_0x3b6efd['name'];}class q extends _0x368c11{['afterInit'](){const _0xe84496=this['editor'];if(!_0xe84496['plugins']['has']('CommentsEditing'))return;_0xe84496['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3fbb08,_0x5f4721,_0x6147d9){const _0x53e264=[];for(const _0x1a2bfe of _0x5f4721['getItems']())_0x1a2bfe['hasAttribute'](_0x3fbb08)&&_0x53e264['push'](_0x6147d9['createRangeOn'](_0x1a2bfe));return _0x53e264;}function De(_0x3f7c8e,_0x3eecb0,{showActiveMarker:_0x316926=!0x0}={}){const _0xe4d1f3=_0x3f7c8e['plugins']['get']('TrackChangesEditing');return(_0x3f391b,_0x318fd7,_0x33af9a)=>{if(!_0x33af9a['consumable']['test'](_0x318fd7['markerRange'],_0x3f391b['name']))return;const _0x326f79=_0x318fd7['markerRange']['getWalker'](),_0x1e2379=_0x318fd7['markerRange']['start'],_0x4e75a5=_0x3f7c8e['model']['schema'];let _0x4b5663=null,_0xce4239=null,_0x3949c2=!0x1,_0x304ac0=!0x1;for(const _0x22c463 of _0x326f79){const _0x2c6c54=_0x22c463['item'];_0x3949c2=_0x3949c2||_0x4e75a5['isContent'](_0x2c6c54);const _0x4eb613=_0x33af9a['mapper']['toViewElement'](_0x2c6c54);if(_0x4eb613&&_0x4eb613['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x22c463['type']&&(_0x4e75a5['isBlock'](_0x2c6c54)&&!_0x4e75a5['isLimit'](_0x2c6c54)&&(_0x2c6c54['nextSibling']||_0x1e2379['isAtEnd']?_0x4b5663&&_0x4b5663['parent']==_0x2c6c54||(_0x4b5663=_0x2c6c54,_0x2859ea(_0x22c463['previousPosition']),_0x304ac0=!0x0):_0xce4239=_0xce4239||_0x22c463['previousPosition']));}function _0x2859ea(_0x5416d2){const {authorId:_0x43e25e}=_0xe4d1f3['_splitMarkerName'](_0x318fd7['markerName']),_0x24bc86=_0x33af9a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3eecb0,'data-author-id':_0x43e25e}),_0x7c8d7d=_0x33af9a['mapper']['toViewPosition'](_0x5416d2);_0x316926&&_0xe4d1f3['activeMarkers']['includes'](_0x318fd7['markerName'])&&_0x33af9a['writer']['addClass']('ck-suggestion-marker--active',_0x24bc86),_0x33af9a['writer']['insert'](_0x7c8d7d,_0x24bc86),_0x33af9a['mapper']['bindElementToMarker'](_0x24bc86,_0x318fd7['markerName']);}_0x3949c2||_0x304ac0||!_0xce4239||_0x2859ea(_0xce4239);};}class z extends _0x368c11{static get['requires'](){return[_0x5edd43];}['init'](){const _0x1b6fd3=this['editor'],_0x388785=_0x1b6fd3['plugins']['get']('TrackChangesEditing');_0x388785['enableCommand']('delete');const _0x419c84=_0x1b6fd3['commands']['get']('deleteForward');_0x388785['enableCommand']('deleteForward',(_0x16882b,_0x2e4e74={})=>{const _0xe84486=_0x1b6fd3['model']['createSelection'](_0x1b6fd3['model']['document']['selection']);_0xe84486['isCollapsed']&&_0x1b6fd3['model']['modifySelection'](_0xe84486,{'direction':'forward','unit':_0x2e4e74['unit']});const _0x24b4b1=_0xe84486['getFirstRange'](),_0x4c7492=_0x2b7c87['fromRange'](_0x24b4b1);let _0x152458;_0x16882b(_0x2e4e74),_0x152458='$graveyard'==_0x4c7492['root']['rootName']?_0x1b6fd3['model']['createRange'](_0x24b4b1['start']):_0x1b6fd3['model']['createRange'](_0x4c7492['start'],_0x4c7492['end']),_0x4c7492['detach'](),_0x1b6fd3['model']['enqueueChange'](_0x419c84['buffer']['batch'],_0x340892=>{_0x419c84['buffer']['lock'](),_0x340892['setSelection'](_0x340892['createRange'](_0x152458['end'])),_0x419c84['buffer']['unlock']();});}),_0x1b6fd3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x1b6fd3,'merge'),{'priority':'high'}),_0x1b6fd3['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x35cb90,_0x346526,_0x35be5a)=>{_0x35be5a['options']['showSuggestionHighlights']&&De(_0x1b6fd3,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x35cb90,_0x346526,_0x35be5a);},{'priority':'high'}),_0x1b6fd3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x17aa57,_0x271b85,_0x47b89e)=>{const _0x3043fe=_0x47b89e['mapper']['markerNameToElements'](_0x271b85['markerName']);if(_0x3043fe){for(const _0x599554 of _0x3043fe)_0x599554['is']('uiElement')&&(_0x47b89e['mapper']['unbindElementFromMarkerName'](_0x599554,_0x271b85['markerName']),_0x47b89e['writer']['remove'](_0x599554));}},{'priority':'high'});}}class W extends _0x368c11{['afterInit'](){const _0x3888a6=this['editor'];if(!_0x3888a6['plugins']['has']('ListEditing'))return;const _0x55e04c=_0x3888a6['locale'],_0x282bc2=_0x3888a6['plugins']['get']('TrackChangesEditing'),_0x38bb92=_0x3888a6['plugins']['has']('TodoListEditing'),_0x1986c7=!!_0x3888a6['config']['get']('list.multiBlock');function _0x5c2dc7(_0x2a5778){return{'type':'format','content':''+c(_0x55e04c,'*Set\x20format:*\x20%0',_0x2a5778)};}function _0x134d07(_0x4176d8){return{'type':'format','content':''+c(_0x55e04c,'*Remove\x20format:*\x20%0',_0x4176d8)};}_0x282bc2['enableDefaultAttributesIntegration']('numberedList'),_0x282bc2['enableDefaultAttributesIntegration']('bulletedList'),_0x282bc2['enableDefaultAttributesIntegration']('customNumberedList'),_0x282bc2['enableDefaultAttributesIntegration']('customBulletedList'),_0x282bc2['enableDefaultAttributesIntegration']('indentList'),_0x282bc2['enableDefaultAttributesIntegration']('outdentList'),_0x282bc2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x282bc2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x282bc2['registerBlockAttribute']('listItemId'),_0x282bc2['registerBlockAttribute']('listType'),_0x282bc2['registerBlockAttribute']('listIndent'),_0x1986c7&&(_0x282bc2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x282bc2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x38bb92&&(_0x282bc2['enableDefaultAttributesIntegration']('todoList'),_0x282bc2['enableDefaultAttributesIntegration']('checkTodoList'),_0x282bc2['registerBlockAttribute']('todoListChecked'),_0x282bc2['descriptionFactory']['registerDescriptionCallback'](_0x58c674=>{const {data:_0x2db663}=_0x58c674;if(_0x2db663&&'todoListChecked'==_0x2db663['key'])return{'type':'format','content':_0x2db663['newValue']?c(_0x55e04c,'*Check\x20item*'):c(_0x55e04c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x338033=>{if(_0x338033['batch']['isUndo'])return!0x1;let _0x38017e=!0x1;const _0x51e86f=_0x282bc2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d9c79=>'todoListChecked'===_0x282bc2['_getAttributeKey'](_0x2d9c79));for(const _0x1938fa of _0x51e86f){'todo'!=_0x1938fa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x282bc2['_findSuggestions'](_0x1938fa['getFirstRange'](),'attribute')['find'](_0x289869=>'listType'===_0x282bc2['_getAttributeKey'](_0x289869['suggestion']))||(_0x338033['removeMarker'](_0x1938fa['getFirstMarker']()),_0x38017e=!0x0));}return _0x38017e;})),_0x282bc2['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x55e04c,'FORMAT_INDENT'));const _0x2a1b22={'type':'format','content':''};_0x282bc2['descriptionFactory']['registerDescriptionCallback'](_0x1ec87a=>{const {data:_0x3a7181}=_0x1ec87a;if(!_0x3a7181||'listType'!=_0x3a7181['key'])return;let _0x38d72a=_0x1ec87a['head'];for(;_0x38d72a;){if(_0x38d72a['data']&&(('listStyle'==_0x38d72a['data']['key']||'listMarkerStyle'==_0x38d72a['data']['key'])&&(_0x38d72a['data']['newValue']&&'default'!=_0x38d72a['data']['newValue']||'default'!=_0x38d72a['data']['oldValue']&&!_0x3a7181['newValue'])||!_0x1986c7&&_0x38d72a['data']['key']==u))return _0x2a1b22;_0x38d72a=_0x38d72a['next'];}if(null==_0x3a7181['newValue'])switch(_0x3a7181['oldValue']){case'bulleted':return _0x134d07(c(_0x55e04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x134d07(c(_0x55e04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x134d07(c(_0x55e04c,'ELEMENT_TODO_LIST'));}switch(_0x3a7181['newValue']){case'bulleted':return _0x5c2dc7(c(_0x55e04c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c2dc7(c(_0x55e04c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c2dc7(c(_0x55e04c,'ELEMENT_TODO_LIST'));}}),_0x282bc2['descriptionFactory']['registerDescriptionCallback'](_0x50e6a7=>{const {data:_0x37e834}=_0x50e6a7;if(_0x37e834&&'listIndent'==_0x37e834['key'])return null==_0x37e834['newValue']||null==_0x37e834['oldValue']&&0x0==_0x37e834['newValue']?_0x2a1b22:void 0x0;}),_0x282bc2['descriptionFactory']['registerDescriptionCallback'](_0x139298=>{if('attribute'!=_0x139298['type'])return;const {data:_0x37dd6b}=_0x139298;if(!_0x37dd6b||'listItemId'!=_0x37dd6b['key'])return;const _0x369659=Te(_0x139298);return'newValue'==_0x369659?{'type':'format','content':c(_0x55e04c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x369659?{'type':'format','content':c(_0x55e04c,'*Split:*\x20list\x20item')}:_0x2a1b22;}),_0x3888a6['model']['document']['registerPostFixer'](_0x18fb78=>this['listItemIdFixer'](_0x18fb78)),_0x3888a6['model']['document']['registerPostFixer'](_0x3929c=>this['noTrackChangesFixer'](_0x3929c)),_0x3888a6['model']['document']['on']('change:data',(_0x24fce2,_0x51bf0a)=>{if(_0x51bf0a['isUndo']||!_0x51bf0a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x171e7f){if(_0x171e7f['batch']['isUndo']||!_0x171e7f['batch']['isLocal'])return!0x1;let _0x10e0b8=!0x1;const _0x181b8c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe704b0=>_0xe704b0['data']&&'listItemId'==_0xe704b0['data']['key'])['filter'](_0x164659=>_0x164659['data']['newValue']&&_0x164659['data']['oldValue']);for(const _0x1a832 of _0x181b8c)Te(_0x1a832)||(_0x171e7f['removeMarker'](_0x1a832['getFirstMarker']()),_0x10e0b8=!0x0);return _0x10e0b8;}['noTrackChangesFixer'](_0x4d7e27){if(_0x4d7e27['batch']['isUndo']||!_0x4d7e27['batch']['isLocal'])return!0x1;const _0x58f404=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x58f404['trackChangesCommand']['value'])return!0x1;let _0x592294=!0x1;const _0x264bf4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x53d130=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3b7edd=>'attribute'==_0x3b7edd['type'])['filter'](_0x4026b8=>_0x264bf4['includes'](_0x4026b8['attributeKey']));if(0x0==_0x53d130['length'])return _0x592294;for(const _0x3fa1ff of _0x53d130){const _0x26465b=_0x58f404['_findSuggestions'](_0x3fa1ff['range'],'attribute')['filter'](_0x39fb22=>!_0x39fb22['meta']['isNextTo'])['map'](_0x113c36=>_0x113c36['suggestion'])['filter'](_0x148ba0=>{const _0x27422f=_0x58f404['_getAttributeKey'](_0x148ba0);return _0x264bf4['includes'](_0x27422f);});if(_0x26465b['length']){for(const _0x245dd9 of _0x26465b)_0x4d7e27['removeMarker'](_0x245dd9['getFirstMarker']());_0x592294=!0x0;}}return _0x592294;}['assureChains'](){const _0x263df8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ceaf5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x551dc6;const _0x13ea8f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5ac5e9=>{if(_0x5ac5e9['data']['oldRange']||!_0x5ac5e9['data']['newRange'])return null;if(!_0x5ac5e9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x26e7f6}=_0x263df8['_splitMarkerName'](_0x5ac5e9['name']);if(!_0x263df8['hasSuggestion'](_0x26e7f6))return null;const _0x18aa26=_0x263df8['getSuggestion'](_0x26e7f6);return _0x5ceaf5['includes'](_0x18aa26['data']['key']);})['map'](_0x293cb0=>{const {id:_0x536da2}=_0x263df8['_splitMarkerName'](_0x293cb0['name']),_0x50b87d=_0x263df8['getSuggestion'](_0x536da2);return _0x551dc6=_0x50b87d['attributes']['groupId'],_0x50b87d['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x13ea8f['size'])return;const _0x216c1a=_0x263df8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x8ed00b=>'attribute'==_0x8ed00b['type']&&_0x8ed00b['data']&&_0x5ceaf5['includes'](_0x8ed00b['data']['key'])&&_0x8ed00b['attributes']['groupId']!=_0x551dc6)['map'](_0x17f8c4=>({'listItem':_0x17f8c4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x17f8c4['attributes']['groupId']})),_0x3a29e7=new Set();for(const {groupId:_0x35f0bb,listItem:_0x5afbb8}of _0x216c1a)_0x13ea8f['has'](_0x5afbb8)&&_0x3a29e7['add'](_0x35f0bb);for(const _0x229b55 of _0x263df8['getSuggestions']())_0x3a29e7['has'](_0x229b55['attributes']['groupId'])&&_0x229b55['setAttribute']('groupId',_0x551dc6);}['_supportLegacySuggestions'](){const _0x284e0f=this['editor'],_0x2e0d0f=_0x284e0f['locale'],_0x17486d=_0x284e0f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x17486d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x51debb,_0xbb81e7){const _0x4d2e1d=[];for(let _0x19a2c5 of _0x51debb)_0x19a2c5['start']['nodeAfter']===_0x19a2c5['end']['parent']&&(_0x19a2c5=_0x284e0f['model']['createRange'](_0x284e0f['model']['createPositionAt'](_0x19a2c5['start']['nodeAfter'],0x0))),_0x4d2e1d['push'](_0x19a2c5);_0x284e0f['model']['change'](_0x339910=>{const _0x393af4=_0x284e0f['model']['document']['selection'],_0x1f63ea=Array['from'](_0x393af4['getRanges']())['map'](_0x37f1ea=>_0x2b7c87['fromRange'](_0x37f1ea));_0x339910['setSelection'](_0x4d2e1d),_0x284e0f['commands']['get'](_0xbb81e7['commandName'])['refresh'](),_0xbb81e7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x284e0f['execute'](_0xbb81e7['commandName'],..._0xbb81e7['commandParams']),_0x339910['setSelection'](_0x1f63ea);for(const _0x2a8580 of _0x1f63ea)_0x2a8580['detach']();});}),_0x17486d['descriptionFactory']['registerElementLabel'](function(_0x2ccc67){const _0x34352b=!_0x284e0f['model']['schema']['isObject'](_0x2ccc67),_0x3069cd=_0x2ccc67['previousSibling'],_0x517705=_0x2ccc67['nextSibling'],_0x95ca3c=_0x2ccc67['getAttribute']('listItemId'),_0x3ad5ef=!_0x3069cd||_0x3069cd['getAttribute']('listItemId')!==_0x95ca3c,_0xb6850c=!_0x517705||_0x517705['getAttribute']('listItemId')!==_0x95ca3c;return _0x34352b&&Boolean(_0x95ca3c)&&_0x3ad5ef&&_0xb6850c;},_0x5ec825=>c(_0x2e0d0f,'ELEMENT_LIST_ITEM',_0x5ec825));}['_registerLegacyDescription'](){const _0x47e573=this['editor'],_0x40d91e=_0x47e573['locale'];function _0x347ff7(_0x2b3141){const _0x5aae9a=_0x47e573['commands']['get']('bulletedList')['value'],_0xd6816c=_0x47e573['commands']['get']('numberedList')['value'];return'numberedList'===_0x2b3141?_0x5aae9a:_0xd6816c;}_0x47e573['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x389b5d){if('formatBlock'!=_0x389b5d['type'])return;const {data:_0x5d6076}=_0x389b5d;if(!_0x5d6076)return;let _0x2f2cbe,_0x4585f1,_0x19ca25,_0x245384;switch(_0x5d6076['commandName']){case'bulletedList':_0x19ca25=_0x5d6076['commandParams'][0x0]['forceValue'],_0x245384=_0x347ff7(_0x5d6076['commandName']),_0x2f2cbe=_0x19ca25?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x245384&&_0x47e573['config']['get']('list.multiBlock')||(_0x2f2cbe='*Change\x20to:*\x20%0'),_0x4585f1={'type':'format','content':c(_0x40d91e,_0x2f2cbe,c(_0x40d91e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x19ca25=_0x5d6076['commandParams'][0x0]['forceValue'],_0x245384=_0x347ff7(_0x5d6076['commandName']),_0x2f2cbe=_0x19ca25?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x245384&&_0x47e573['config']['get']('list.multiBlock')||(_0x2f2cbe='*Change\x20to:*\x20%0'),_0x4585f1={'type':'format','content':c(_0x40d91e,_0x2f2cbe,c(_0x40d91e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2f2cbe='*Indent:*\x20%0',_0x4585f1={'type':'format','content':c(_0x40d91e,_0x2f2cbe,c(_0x40d91e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2f2cbe=function(_0x1c5d83){const _0x25f308=_0x1c5d83['getFirstRange']();let _0x2f7cf9=_0x25f308['start']['nodeAfter'];for(;_0x2f7cf9&&_0x25f308['containsItem'](_0x2f7cf9);){if(_0x2f7cf9['getAttribute']('listIndent')>0x0)return!0x1;_0x2f7cf9=_0x2f7cf9['nextSibling'];}return!0x0;}(_0x389b5d)?c(_0x40d91e,'*Format:*\x20remove\x20from\x20%0',c(_0x40d91e,function(_0x24b977){return'ELEMENT_'+_0x24b977['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x389b5d))):c(_0x40d91e,'*Outdent:*\x20%0',c(_0x40d91e,'ELEMENT_LIST_ITEM')),_0x4585f1={'type':'format','content':_0x2f2cbe};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5d6076['multipleBlocks']&&(_0x2f2cbe='*Merge:*\x20%0',_0x4585f1={'type':'deletion','content':c(_0x40d91e,_0x2f2cbe,c(_0x40d91e,'ELEMENT_LIST_ITEM'))});}return _0x4585f1;});}}function Te(_0x2b41f8){let _0x3fd125=_0x2b41f8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3fd125;){const _0x350c80=_0x3fd125['getAttribute']('listItemId');if(!_0x350c80)return!0x1;if(_0x350c80==_0x2b41f8['data']['newValue'])return'newValue';if(_0x350c80==_0x2b41f8['data']['oldValue'])return'oldValue';_0x3fd125=_0x3fd125['previousSibling'];}return!0x1;}class Se extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x6d5d8c=this['editor']['config']['get']('list.properties'),_0x5dc319=this['editor']['plugins']['get']('TrackChangesEditing');_0x6d5d8c['styles']&&(_0x5dc319['enableDefaultAttributesIntegration']('listStyle'),_0x5dc319['registerBlockAttribute']('listStyle')),_0x6d5d8c['reversed']&&(_0x5dc319['enableDefaultAttributesIntegration']('listReversed'),_0x5dc319['registerBlockAttribute']('listReversed')),_0x6d5d8c['startIndex']&&(_0x5dc319['enableDefaultAttributesIntegration']('listStart'),_0x5dc319['registerBlockAttribute']('listStart'));const _0x3f37bf={'type':'format','content':''};_0x5dc319['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1781d9=this['editor']['locale'];_0x5dc319['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x1781d9,'FORMAT_LIST_REVERSED')),_0x5dc319['descriptionFactory']['registerDescriptionCallback'](_0x3ab210=>{const {data:_0x4d85ce}=_0x3ab210;if(_0x4d85ce&&'listReversed'==_0x4d85ce['key'])return null==_0x4d85ce['newValue']||0x0==_0x4d85ce['newValue']&&null==_0x4d85ce['oldValue']?_0x3f37bf:void 0x0;}),_0x5dc319['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x1781d9,'FORMAT_LIST_START')),_0x5dc319['descriptionFactory']['registerDescriptionCallback'](_0x2b439c=>{const {data:_0x515bdc}=_0x2b439c;if(_0x515bdc&&'listStart'==_0x515bdc['key'])return null==_0x515bdc['newValue']||0x1==_0x515bdc['newValue']&&null==_0x515bdc['oldValue']?_0x3f37bf:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x417e99=>{if(_0x417e99['batch']['isUndo'])return!0x1;let _0x904837=!0x1;const _0x4107ee=_0x5dc319['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x364fe9=>{const _0x581043=_0x5dc319['_getAttributeKey'](_0x364fe9);return'listStart'==_0x581043||'listReversed'==_0x581043;});for(const _0x188ce5 of _0x4107ee){const _0x5179b7=_0x188ce5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5179b7||'customNumbered'==_0x5179b7)continue;_0x5dc319['_findSuggestions'](_0x188ce5['getFirstRange'](),'attribute')['find'](_0x2cefc3=>'listType'==_0x5dc319['_getAttributeKey'](_0x2cefc3['suggestion']))||(_0x417e99['removeMarker'](_0x188ce5['getFirstMarker']()),_0x904837=!0x0);}return _0x904837;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x282bea){const _0x293db2=this['editor']['locale'],{data:_0x389482}=_0x282bea,_0x102027={'type':'format','content':''};if(!_0x389482||'listStyle'!=_0x389482['key'])return;if(!_0x389482['oldValue'])return'default'==_0x389482['newValue']?_0x102027:{'type':'format','content':''+c(_0x293db2,'*Set\x20format:*\x20%0',c(_0x293db2,this['_getTranslationKeyForListStyle'](_0x389482['newValue'])))};if(!_0x389482['newValue']){if('default'==_0x389482['oldValue'])return _0x102027;let _0x493ce5=_0x282bea['head'];for(;_0x493ce5;){if(_0x493ce5['data']&&'listType'==_0x493ce5['data']['key']&&_0x493ce5['data']['newValue'])return _0x102027;_0x493ce5=_0x493ce5['next'];}return{'type':'format','content':''+c(_0x293db2,'*Remove\x20format:*\x20%0',c(_0x293db2,this['_getTranslationKeyForListStyle'](_0x389482['oldValue'])))};}if('default'!=_0x389482['newValue'])return{'type':'format','content':''+c(_0x293db2,'*Set\x20format:*\x20%0',c(_0x293db2,this['_getTranslationKeyForListStyle'](_0x389482['newValue'])))};let _0x54e1a6=_0x282bea['head'];for(;_0x54e1a6;){if(_0x54e1a6['data']&&'listType'==_0x54e1a6['data']['key']&&_0x54e1a6['data']['newValue']&&_0x54e1a6['data']['oldValue'])return _0x102027;_0x54e1a6=_0x54e1a6['next'];}return{'type':'format','content':c(_0x293db2,'*Set\x20format:*\x20%0',c(_0x293db2,'ELEMENT_'+_0x282bea['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2f8f7f=this['editor'],_0x27254c=_0x2f8f7f['locale'];_0x2f8f7f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d5f7f=>{if('formatBlock'!=_0x1d5f7f['type'])return;const {data:_0x533565}=_0x1d5f7f;if(!_0x533565)return;let _0x5413fc,_0x5e2f72;switch(_0x533565['commandName']){case'listStyle':_0x5413fc='*Change\x20to:*\x20%0',_0x5e2f72={'type':'format','content':c(_0x27254c,_0x5413fc,c(_0x27254c,this['_getTranslationKeyForListStyle'](_0x533565['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5413fc=_0x533565['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5e2f72={'type':'format','content':c(_0x27254c,_0x5413fc)};break;case'listStart':_0x5413fc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e2f72={'type':'format','content':c(_0x27254c,_0x5413fc,_0x533565['commandParams'][0x0]['startIndex'])};}return _0x5e2f72;});}['_getTranslationKeyForListStyle'](_0x5260bc){return'ELEMENT_'+function(_0x5ac100){if(_e['includes'](_0x5ac100))return'bulleted';if(Re['includes'](_0x5ac100))return'numbered';return null;}(_0x5260bc)['toUpperCase']()+'_LIST_'+_0x5260bc['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x368c11{['afterInit'](){const _0x18f346=this['editor'];_0x18f346['commands']['get']('emoji')&&_0x18f346['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x368c11{static get['requires'](){return[_0x56df10];}['init'](){const _0x1e7df6=this['editor'],_0x3359ac=_0x1e7df6['plugins']['get']('TrackChangesEditing'),_0x1f0c34=_0x1e7df6['commands']['get']('enter');_0x3359ac['enableCommand']('enter',()=>{_0x1e7df6['model']['change'](_0x8fda3e=>{const _0x5142d3=_0x1e7df6['model']['document']['selection'],_0x4034e3=_0x5142d3['getFirstPosition'](),_0x511e78=_0x2b7c87['fromRange'](_0x5142d3['getFirstRange']());if(_0x1f0c34['enterBlock'](_0x8fda3e)){const _0x4f7beb=_0x1e7df6['model']['createPositionAt'](_0x4034e3['parent']['nextSibling'],0x0),_0x5ac954=_0x8fda3e['createRange'](_0x4034e3,_0x4f7beb);_0x3359ac['markInsertion'](_0x5ac954);}else _0x8fda3e['setSelection'](_0x8fda3e['createRange'](_0x511e78['end']));_0x511e78['detach'](),_0x1f0c34['fire']('afterExecute',{'writer':_0x8fda3e});});}),_0x1e7df6['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1e7df6,'split'),{'priority':'high'}),_0x1e7df6['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4532e1,_0x7af853,_0xff01bc)=>{const _0x35bbee=_0xff01bc['mapper']['markerNameToElements'](_0x7af853['markerName']);if(_0x35bbee){for(const _0x3e4a90 of _0x35bbee)_0x3e4a90['hasClass']('ck-suggestion-marker-split')&&(_0xff01bc['mapper']['unbindElementFromMarkerName'](_0x3e4a90,_0x7af853['markerName']),_0xff01bc['writer']['remove'](_0x3e4a90));}},{'priority':'high'}),_0x1e7df6['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1fd92c,_0x570fee,_0x23a2b1)=>{_0x23a2b1['options']['showSuggestionHighlights']&&De(_0x1e7df6,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1fd92c,_0x570fee,_0x23a2b1);},{'priority':'high'});}}class Z extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1db03b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1db03b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1db03b['enableCommand']('findNext'),_0x1db03b['enableCommand']('findPrevious'),_0x1db03b['enableCommand']('replace'),_0x1db03b['enableCommand']('replaceAll');}['handleFindCommand'](_0x488bc7,_0x1f6e80,_0x1c59ad={}){const _0x8e8968=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x488bc7(_0x52d422=>{let _0x2c78a9=('string'==typeof _0x1f6e80?_0x8e8968['findByTextCallback'](_0x1f6e80,_0x1c59ad):_0x1f6e80)(_0x52d422);Array['isArray'](_0x2c78a9)&&(_0x2c78a9={'results':_0x2c78a9,'searchText':'string'==typeof _0x1f6e80?_0x1f6e80:''});const _0x4200c8=_0x2c78a9['results']['filter'](_0x1717a8=>!0x1===this['_isInDeletionRange'](_0x1717a8,_0x52d422['item']));return{..._0x2c78a9,'results':_0x4200c8};},_0x1c59ad);}['_isInDeletionRange'](_0x56c46d,_0x525db3){const _0x5cbbc1=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x525db3,_0x56c46d['start']),this['editor']['model']['createPositionAt'](_0x525db3,_0x56c46d['end']));for(const _0x3181a4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5cbbc1['getIntersection'](_0x3181a4['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x368c11{['afterInit'](){const _0x50f70f=this['editor']['locale'],_0x30479a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x30f991,commandName:_0x4dff22}of eo)this['editor']['plugins']['has'](_0x30f991)&&(_0x30479a['enableDefaultAttributesIntegration'](_0x4dff22),_0x30479a['registerInlineAttribute'](_0x4dff22));_0x30479a['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x50f70f,'FORMAT_FONT_SIZE')),_0x30479a['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x50f70f,'FORMAT_FONT_FAMILY')),_0x30479a['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x50f70f,'FORMAT_FONT_COLOR')),_0x30479a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x50f70f,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3eee76=this['editor'],_0x477ff9=_0x3eee76['locale'];_0x3eee76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38359c=>{const _0x4bfb61=_0x477ff9['t'];if('formatInline'!=_0x38359c['type'])return;const {data:_0x33cfb9}=_0x38359c;if(null!=_0x33cfb9){if('fontSize'==_0x33cfb9['commandName']){const _0xb56a66=_0x33cfb9['commandParams'][0x0]['value'];if(_0xb56a66){const _0x3152b8=_0x4bfb61(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x39807f=>_0x39807f['model']==_0xb56a66)['title'])['toLowerCase']();return{'type':'format','content':c(_0x477ff9,'*Set\x20font\x20size:*\x20%0',_0x3152b8)};}return{'type':'format','content':c(_0x477ff9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33cfb9['commandName']){const _0x2bf981=_0x33cfb9['commandParams'][0x0]['value'];return _0x2bf981?{'type':'format','content':c(_0x477ff9,'*Set\x20font\x20family:*\x20%0',_0x2bf981)}:{'type':'format','content':c(_0x477ff9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33cfb9['commandName']){const _0x5385fc=_0x33cfb9['commandParams'][0x0]['value'];if(_0x5385fc){const _0x5c2f8e=_0x511ff4(this['editor']['config']['get']('fontColor.colors'))['find'](_0xbd1a34=>_0xbd1a34['model']==_0x5385fc);let _0x5583f0=_0x5385fc,_0xb2f508='';return _0x5c2f8e&&(_0x5583f0=_0x5c2f8e['label'],_0xb2f508=_0x4bfb61(_0x5583f0)['toLowerCase']()),{'type':'format','content':c(_0x477ff9,'*Set\x20font\x20color:*\x20%0',_0xb2f508)['trim'](),'color':{'value':_0x5385fc,'title':_0xb2f508||_0x5583f0}};}return{'type':'format','content':c(_0x477ff9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33cfb9['commandName']){const _0x1fbbce=_0x33cfb9['commandParams'][0x0]['value'];if(_0x1fbbce){const _0x3ee03c=_0x511ff4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x26e7df=>_0x26e7df['model']==_0x1fbbce);let _0x38968c=_0x1fbbce,_0x519fb7='';return _0x3ee03c&&(_0x38968c=_0x3ee03c['label'],_0x519fb7=_0x4bfb61(_0x38968c)['toLowerCase']()),{'type':'format','content':c(_0x477ff9,'*Set\x20font\x20background\x20color:*\x20%0',_0x519fb7)['trim'](),'color':{'value':_0x1fbbce,'title':_0x519fb7||_0x38968c}};}return{'type':'format','content':c(_0x477ff9,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x368c11{['afterInit'](){const _0x45fb35=this['editor'],_0x236934=_0x45fb35['plugins']['get']('TrackChangesEditing'),_0x538652=_0x45fb35['commands']['get']('copyFormat'),_0x470f18=_0x45fb35['commands']['get']('pasteFormat');_0x538652&&_0x470f18&&(_0x236934['enableDefaultAttributesIntegration']('pasteFormat'),_0x236934['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x14d236=this['editor'],_0x2c17cc=_0x14d236['locale'];_0x14d236['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x230859=>{if('formatBlock'!=_0x230859['type']&&'formatInline'!=_0x230859['type'])return;const {data:_0x413ff7}=_0x230859;if(_0x413ff7&&'pasteFormat'===_0x413ff7['commandName']){const _0x159a08=[],_0x49a220=_0x413ff7['commandParams'][0x0];for(const [_0x280e96,_0x301ecc]of Object['entries'](_0x49a220))_0x159a08['push'](ro(_0x14d236,_0x280e96,_0x301ecc));return _0x159a08['length']?{'type':'format','content':c(_0x2c17cc,'*Set\x20format\x20to:*\x20%0',_0x159a08['join'](',\x20'))}:{'type':'format','content':c(_0x2c17cc,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x578f4d,_0x38f306,_0x210fc5){const _0x17f230=_0x578f4d['locale']['t'],_0x27ac25=_0x38f306['split'](/(?=[A-Z])/)['join']('\x20'),_0x237b32=_0x17f230(_0x27ac25['charAt'](0x0)['toUpperCase']()+_0x27ac25['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x210fc5)return _0x237b32;if('fontColor'===_0x38f306||'fontBackgroundColor'===_0x38f306){const _0x3a46f0=_0x511ff4(_0x578f4d['config']['get']('fontColor.colors'))['find'](_0x43f3f3=>_0x43f3f3['model']==_0x210fc5);return _0x237b32+'\x20('+(_0x3a46f0?_0x17f230(_0x3a46f0['label'])['toLowerCase']():_0x210fc5)+')';}if('fontSize'===_0x38f306&&isNaN(parseFloat(_0x210fc5))){const _0x878b08=_0x578f4d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x578f4d['config']['get']('fontSize.options'))['find'](_0x3ec80c=>_0x3ec80c['model']==_0x210fc5);return _0x237b32+'\x20('+(_0x878b08?_0x17f230(_0x878b08['title'])['toLowerCase']():_0x210fc5)+')';}return _0x237b32+'\x20('+_0x210fc5+')';}class nt extends _0x368c11{['_headingOptions'];['afterInit'](){const _0x58d18c=this['editor'];if(!_0x58d18c['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x58d18c['config']['get']('heading.options');const _0x34c88c=_0x58d18c['locale'],_0x1320db=_0x58d18c['plugins']['get']('TrackChangesEditing');_0x1320db['enableDefaultAttributesIntegration']('heading');for(const _0x3647f7 of this['_headingOptions'])'paragraph'!=_0x3647f7['model']&&_0x1320db['descriptionFactory']['registerElementLabel'](_0x3647f7['model'],_0x36b02e=>{const _0x24c901=this['_getHeadingLevel'](_0x3647f7['model']);return null!==_0x24c901?_0x167c91(_0x36b02e,_0x24c901):_0x370260(_0x36b02e,_0x3647f7['title']);});function _0x167c91(_0x3a138b,_0xf6c479){return c(_0x34c88c,'ELEMENT_HEADING',[_0x3a138b,_0xf6c479]);}function _0x370260(_0x4a40b4,_0x3ab56c){return c(_0x34c88c,'ELEMENT_HEADING_CUSTOM',[_0x4a40b4,_0x3ab56c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a69ec=this['editor'],_0x36fd24=_0x2a69ec['locale'];function _0x2499e3(_0x4c80d3,_0x5e25cf){return c(_0x36fd24,'ELEMENT_HEADING_CUSTOM',[_0x4c80d3,_0x5e25cf]);}_0x2a69ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4479a4=>{if('formatBlock'!=_0x4479a4['type'])return;const {data:_0x56708e}=_0x4479a4;if(_0x56708e&&'heading'==_0x56708e['commandName']){const _0xba313f=_0x56708e['commandParams'][0x0]['value'],_0x431ae8=this['_getHeadingLevel'](_0xba313f);if(null!==_0x431ae8)return{'type':'format','content':c(_0x36fd24,'*Change\x20to:*\x20%0',(_0xd2e152=0x1,_0x1539a3=_0x431ae8,c(_0x36fd24,'ELEMENT_HEADING',[_0xd2e152,_0x1539a3])))};const _0xbf90ca=this['_headingOptions']['find'](_0x24d546=>_0x24d546['model']===_0xba313f)['title'];return{'type':'format','content':c(_0x36fd24,'*Change\x20to:*\x20%0',_0x2499e3(0x1,_0xbf90ca))};}var _0xd2e152,_0x1539a3;});}['_getHeadingLevel'](_0xcc4e47){const _0x123fe9=_0xcc4e47['match'](/^heading(\d+)/);if(_0x123fe9)return _0x123fe9[0x1];const _0x218e4d=this['_headingOptions']?.['find'](_0x18ec67=>_0x18ec67['model']==_0xcc4e47);if(_0x218e4d&&_0x218e4d['view']){const _0x9f4156=_0x218e4d['view'],_0x56743c=(_0x9f4156['name']??_0x9f4156)['match'](/^h(\d+)/);if(_0x56743c)return _0x56743c[0x1];}return null;}}class it extends _0x368c11{['afterInit'](){const _0x11bae8=this['editor'];if(!_0x11bae8['plugins']['has']('HighlightEditing'))return;const _0x49d03e=_0x11bae8['plugins']['get']('TrackChangesEditing'),_0x244934=_0x11bae8['locale'];_0x49d03e['enableDefaultAttributesIntegration']('highlight'),_0x49d03e['registerInlineAttribute']('highlight'),_0x49d03e['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x244934,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c40f1=this['editor'],_0x30ac59=_0x4c40f1['locale'];_0x4c40f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb0f7cf=>{if('formatInline'!=_0xb0f7cf['type'])return;const {data:_0x37e78f}=_0xb0f7cf;if(_0x37e78f&&'highlight'==_0x37e78f['commandName']){const _0x3d04e7=_0x30ac59['t'],_0x511a5c=_0x37e78f['commandParams'][0x0]['value'];if(_0x511a5c){const _0x37c28e=_0x4c40f1['config']['get']('highlight.options')['find'](_0x2facef=>_0x2facef['model']==_0x511a5c),_0x5666d9=_0x3d04e7(_0x37c28e['title'])['toLowerCase']();return{'type':'format','content':c(_0x30ac59,'*Set\x20highlight:*\x20%0',_0x5666d9),'color':{'value':_0x37c28e['color'],'title':_0x37c28e['title']}};}return{'type':'format','content':c(_0x30ac59,'*Remove\x20highlight*',c(_0x30ac59,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x368c11{['afterInit'](){const _0x265879=this['editor'];if(!_0x265879['plugins']['has']('HorizontalLineEditing'))return;_0x265879['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3f5959=_0x265879['plugins']['get']('TrackChangesEditing'),_0x36fea4=_0x265879['locale'];_0x3f5959['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5453d0=>c(_0x36fea4,'ELEMENT_HORIZONTAL_LINE',_0x5453d0)),_0x265879['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4342b4,{writer:_0x411dba,options:_0x3caef9})=>{if(!_0x3caef9['showSuggestionHighlights'])return null;const _0x4dba90=_0x411dba['createContainerElement']('div'),_0x391dc8=_0x411dba['createEmptyElement']('hr');return _0x411dba['addClass']('ck-horizontal-line',_0x4dba90),_0x411dba['insert'](_0x411dba['createPositionAt'](_0x4dba90,0x0),_0x391dc8),_0x4dba90;},'converterPriority':'high'});}}class ot extends _0x368c11{['afterInit'](){const _0xb7184=this['editor'];if(!_0xb7184['plugins']['has']('HtmlEmbed'))return;const _0x2c3c68=_0xb7184['plugins']['get']('TrackChangesEditing'),_0x2cb6ce=_0xb7184['locale'];_0x2c3c68['descriptionFactory']['registerElementLabel']('rawHtml',_0x30ca90=>c(_0x2cb6ce,'ELEMENT_HTML_EMBED',_0x30ca90)),_0x2c3c68['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2c3c68['registerBlockAttribute']('value'),_0x2c3c68['descriptionFactory']['registerDescriptionCallback'](_0x78055e=>{if('attribute'!=_0x78055e['type'])return;const {data:_0x481943}=_0x78055e;if(_0x481943&&'value'==_0x481943['key']&&_0x78055e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3be021=c(_0x2cb6ce,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x2cb6ce,'*Change\x20%0\x20content*',_0x3be021)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22e38f=this['editor'],_0x246470=_0x22e38f['locale'];_0x22e38f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53d847=>{if('formatBlock'!=_0x53d847['type'])return;const {data:_0x4f1c85}=_0x53d847;if(_0x4f1c85&&'htmlEmbed'==_0x4f1c85['commandName']){const _0x307825=c(_0x246470,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x246470,'*Change\x20%0\x20content*',_0x307825)};}});}}class rt extends _0x368c11{['afterInit'](){const _0x243301=this['editor'];if(!_0x243301['plugins']['has']('ImageEditing'))return;const _0x524840=_0x243301['plugins']['get']('TrackChangesEditing'),_0x21af0e=_0x243301['plugins']['get']('ImageUtils'),_0xebc128=_0x243301['locale'];_0x524840['enableCommand']('insertImage'),_0x524840['descriptionFactory']['registerElementLabel']('imageBlock',_0xcdfbbf=>c(_0xebc128,'ELEMENT_IMAGE',_0xcdfbbf)),_0x524840['descriptionFactory']['registerElementLabel']('imageInline',_0x1482c1=>c(_0xebc128,'ELEMENT_INLINE_IMAGE',_0x1482c1)),_0x524840['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xebc128,'ELEMENT_CAPTION')),_0x243301['plugins']['has']('ImageUploadEditing')&&_0x524840['enableCommand']('uploadImage'),_0x243301['plugins']['has']('ImageBlockEditing')&&_0x243301['plugins']['has']('ImageInlineEditing')&&(_0x524840['enableCommand']('imageTypeInline',(_0x5164c5,_0x4f1002)=>{const _0x2e1580=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']);_0x243301['model']['change'](()=>{_0x524840['markBlockFormat'](_0x2e1580,{'commandName':'imageTypeInline','commandParams':[_0x4f1002]},[],'convertBlockImageToInline');});}),_0x524840['enableCommand']('imageTypeBlock',(_0x102319,_0x1a3bbb)=>{_0x243301['model']['change'](_0x4da945=>{let _0x46d2a0=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']),_0x4f5bad=_0x4da945['createRangeOn'](_0x46d2a0);const _0x326340=_0x22afac['fromPosition'](_0x4f5bad['start'],'toPrevious'),_0x5a9d4a=_0x22afac['fromPosition'](_0x4f5bad['end'],'toNext');_0x524840['forceDefaultExecution'](()=>_0x102319(_0x1a3bbb)),_0x46d2a0=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']),_0x4f5bad=_0x4da945['createRangeOn'](_0x46d2a0);const _0x24d574=_0x4da945['createRange'](_0x326340,_0x5a9d4a);_0x326340['detach'](),_0x5a9d4a['detach'](),_0x524840['markBlockFormat'](_0x46d2a0,{'commandName':'imageTypeInline','commandParams':[_0x1a3bbb]},[],'convertInlineImageToBlock'),_0x24d574['start']['isBefore'](_0x4f5bad['start'])&&_0x524840['markInsertion'](_0x4da945['createRange'](_0x24d574['start'],_0x4f5bad['start']),'convertInlineImageToBlock'),_0x4f5bad['end']['isBefore'](_0x24d574['end'])&&_0x524840['markInsertion'](_0x4da945['createRange'](_0x4f5bad['end'],_0x24d574['end']),'convertInlineImageToBlock');});}),_0x524840['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x524840['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x524840['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x524840['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x524840['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x524840['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x186480])=>{const _0x14a2eb=_0x524840['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44e856=_0x186480['start'],_0x127e5e=_0x186480['end'];const _0xd6e543=_0x243301['model']['schema']['getNearestSelectionRange'](_0x44e856,'backward'),_0x2f70d7=_0x243301['model']['schema']['getNearestSelectionRange'](_0x127e5e,'forward');_0xd6e543['isCollapsed']&&(_0x44e856=_0xd6e543['start']),_0x2f70d7['isCollapsed']&&(_0x127e5e=_0x2f70d7['end']),_0x14a2eb([_0x243301['model']['createRange'](_0x44e856,_0x127e5e)]);}),_0x524840['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x9c9faf),_0x524840['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x9c9faf)),_0x243301['plugins']['has']('ImageCaptionEditing')&&(_0x524840['enableCommand']('toggleImageCaption',(_0xcde5e8,_0x14930e)=>{const _0x499128=_0x243301['plugins']['get']('ImageCaptionUtils');let _0x59bf4a=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']),_0x34b0bd=_0x499128['getCaptionFromImageModelElement'](_0x59bf4a);_0x243301['model']['change'](()=>{if(_0x34b0bd)return void _0x524840['markDeletion'](_0x243301['model']['createRangeOn'](_0x34b0bd));const _0x5e77d1=_0x21af0e['isBlockImage'](_0x59bf4a);_0xcde5e8(_0x14930e),_0x59bf4a=_0x21af0e['getClosestSelectedImageElement'](_0x243301['model']['document']['selection']),_0x34b0bd=_0x499128['getCaptionFromImageModelElement'](_0x59bf4a),_0x524840['markInsertion'](_0x243301['model']['createRangeOn'](_0x34b0bd),_0x5e77d1?null:'imageCaption');});}),_0x524840['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x9c9faf));const _0x15d3d1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3df4b9(_0x49aa2b,_0x3091f6){const _0x3c83ef=_0x15d3d1['findIndex'](({type:_0x3eb615,subType:_0x143272})=>_0x49aa2b['type']==_0x3eb615&&_0x49aa2b['subType']==_0x143272),_0x139963=_0x15d3d1['findIndex'](({type:_0x1afb3f,subType:_0x2ede60})=>_0x3091f6['type']==_0x1afb3f&&_0x3091f6['subType']==_0x2ede60);if(_0x3c83ef<0x0||_0x139963<0x0)return!0x1;const _0x264ef6=_0x49aa2b['getFirstRange'](),_0x3e92ab=_0x3091f6['getFirstRange']();if((0x0==_0x3c83ef||0x1==_0x3c83ef)&&0x2==_0x139963&&_0x264ef6['isIntersecting'](_0x3e92ab))return!0x0;if(0x2==_0x3c83ef&&0x3==_0x139963){const _0x2ea899=_0x524840['_findSuggestions'](_0x264ef6,'insertion')['filter'](({suggestion:_0x14d5da,meta:_0x494652})=>_0x494652['isOwn']&&'convertInlineImageToBlock'==_0x14d5da['subType']);if(_0x2ea899['length']>0x1&&_0x3e92ab['end']['isEqual'](_0x264ef6['start']))return!0x0;if(0x1==_0x2ea899['length']&&(_0x264ef6['start']['isEqual'](_0x3e92ab['end'])||_0x264ef6['end']['isEqual'](_0x3e92ab['start'])))return!0x0;}if(0x3==_0x3c83ef&&0x3==_0x139963&&_0x264ef6['start']['isBefore'](_0x3e92ab['start'])){const _0x4489f5=_0x264ef6['end']['nodeAfter'],_0x623e6d=_0x3e92ab['start']['nodeBefore'];return _0x21af0e['isBlockImage'](_0x4489f5)&&_0x4489f5===_0x623e6d;}return!0x1;}function _0x9c9faf(_0x166927,_0x542c9b){return _0x3df4b9(_0x166927,_0x542c9b)?[_0x166927,_0x542c9b]:_0x3df4b9(_0x542c9b,_0x166927)?[_0x542c9b,_0x166927]:null;}_0x243301['plugins']['has']('ImageResize')&&(_0x524840['enableDefaultAttributesIntegration']('resizeImage'),_0x524840['registerBlockAttribute']('resizedWidth'),_0x524840['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xebc128,'FORMAT_IMAGE_SIZE'))),_0x243301['plugins']['has']('ImageTextAlternativeEditing')&&(_0x524840['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x524840['registerBlockAttribute']('alt')),_0x243301['plugins']['has']('PictureEditing')&&(_0x524840['registerBlockAttribute']('sources'),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x326cea=>{if('attribute'!=_0x326cea['type'])return;const {data:_0x2c2f16}=_0x326cea;return _0x2c2f16&&'sources'==_0x2c2f16['key']?{'type':'format','content':''}:void 0x0;})),_0x243301['plugins']['has']('ImageSizeAttributes')&&(_0x524840['registerBlockAttribute']('width'),_0x524840['registerBlockAttribute']('height'),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x50a9cd=>{if('attribute'!=_0x50a9cd['type'])return;const {data:_0x22bec5}=_0x50a9cd;return!_0x22bec5||'width'!=_0x22bec5['key']&&'height'!=_0x22bec5['key']?void 0x0:{'type':'format','content':''};})),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x386aca=>{if(!!_0x15d3d1['find'](({type:_0x56cafd,subType:_0x10373d})=>_0x386aca['type']==_0x56cafd&&_0x386aca['subType']==_0x10373d))return _0x386aca['previous']?{}:void 0x0;}),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x28a296=>{if('insertion'==_0x28a296['type']||'deletion'==_0x28a296['type']){const _0x19a746=_0x28a296['getContainedElement']();if(_0x19a746&&_0x19a746['is']('element','caption'))return{'type':'insertion'==_0x28a296['type']?'addObject':'removeObject','element':_0x19a746,'quantity':0x1};}}),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x120199=>'formatBlock'==_0x120199['type']&&'convertInlineImageToBlock'==_0x120199['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x120199['type']&&'convertBlockImageToInline'==_0x120199['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x524840['descriptionFactory']['registerDescriptionCallback'](_0x3c4c3f=>{if('attribute'!=_0x3c4c3f['type'])return;const {data:_0x1f8199}=_0x3c4c3f;if(!_0x1f8199||'alt'!=_0x1f8199['key'])return;const _0x2a398b=_0x1f8199['newValue'];return _0x2a398b?{'type':'format','content':c(_0xebc128,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a398b+'\x22')}:{'type':'format','content':c(_0xebc128,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23db93=this['editor'],_0x55d379=_0x23db93['locale'];_0x23db93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c44e1=>{if('formatBlock'!=_0x4c44e1['type']&&'formatInline'!=_0x4c44e1['type'])return;const {data:_0x27cd92}=_0x4c44e1;if(_0x27cd92){if('imageTextAlternative'==_0x27cd92['commandName']){const _0x266c4a=_0x27cd92['commandParams'][0x0]['newValue'];return _0x266c4a?{'type':'format','content':c(_0x55d379,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x266c4a+'\x22')}:{'type':'format','content':c(_0x55d379,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x27cd92['commandName']){const _0x317e3e=_0x27cd92['commandParams'][0x0]['width'];return _0x317e3e?{'type':'format','content':c(_0x55d379,'*Set\x20image\x20width:*\x20%0',_0x317e3e)}:{'type':'format','content':c(_0x55d379,'*Reset\x20image\x20width*')};}}});}}class at extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5e4656=this['editor']['locale'],_0x4fcee1=this['editor']['plugins']['get']('TrackChangesEditing');_0x4fcee1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4fcee1['registerBlockAttribute']('src'),_0x4fcee1['descriptionFactory']['registerDescriptionCallback'](_0x38af0b=>{if('attribute'!=_0x38af0b['type'])return;const {data:_0x2fb894}=_0x38af0b;return _0x2fb894&&'src'==_0x2fb894['key']?_0x2fb894['newValue']&&_0x2fb894['oldValue']?{'type':'format','content':c(_0x5e4656,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d1fa5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d1fa5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d1fa5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d1fa5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d1fa5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207770=this['editor'],_0x2ac235=_0x207770['locale'];_0x207770['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c7443=>{if('formatBlock'!=_0x5c7443['type']&&'formatInline'!=_0x5c7443['type'])return;const {data:_0x245268}=_0x5c7443;if(!_0x245268||'replaceImageSource'!=_0x245268['commandName'])return;return{'type':'format','content':c(_0x2ac235,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x368c11{['afterInit'](){const _0x9fd7c3=this['editor'];if(!_0x9fd7c3['plugins']['has']('ImageStyleEditing'))return;const _0x2ac0bf=_0x9fd7c3['plugins']['get']('TrackChangesEditing'),_0x5d4b32=_0x9fd7c3['plugins']['get']('ImageUtils'),_0x3c495a={};_0x2ac0bf['enableCommand']('imageStyle',(_0x12e775,_0x32d4b7)=>{const _0x41ea8e=_0x9fd7c3['plugins']['get']('Users')['me'],_0x26d733=_0x9fd7c3['commands']['get']('imageStyle');let _0x46f062=_0x5d4b32['getClosestSelectedImageElement'](_0x9fd7c3['model']['document']['selection']),_0x1719c6=_0x9fd7c3['model']['createRangeOn'](_0x46f062),_0x3e90b3=_0x26d733['value'];if(_0x3e90b3==_0x32d4b7['value'])return;const _0x4263a1={'commandName':'imageStyle','commandParams':[_0x32d4b7],'formatGroupId':_0x2ea4c3()};_0x9fd7c3['model']['change'](()=>{if(_0x2ac0bf['getSuggestions']()['filter'](_0x2f8def=>_0x2f8def['isInContent']&&_0x41ea8e==_0x2f8def['author']&&('formatBlock'==_0x2f8def['type']||'formatInline'==_0x2f8def['type'])&&('imageStylePreApply'==_0x2f8def['subType']||'imageStylePostApply'==_0x2f8def['subType'])&&_0x2f8def['getFirstRange']()['isEqual'](_0x1719c6))['forEach'](_0x45b0e7=>_0x2ac0bf['discardSuggestion'](_0x45b0e7['head'])),_0x46f062=_0x5d4b32['getClosestSelectedImageElement'](_0x9fd7c3['model']['document']['selection']),_0x1719c6=_0x9fd7c3['model']['createRangeOn'](_0x46f062),_0x26d733['refresh'](),_0x9fd7c3['commands']['get']('imageTypeInline')['refresh'](),_0x9fd7c3['commands']['get']('imageTypeBlock')['refresh'](),_0x3e90b3=_0x26d733['value'],_0x3e90b3!=_0x32d4b7['value'])return _0x5d4b32['isInlineImage'](_0x46f062)&&_0x26d733['shouldConvertImageType'](_0x32d4b7['value'],_0x46f062)?(_0x12e775({..._0x32d4b7,'setImageSizes':!0x1}),_0x46f062=_0x5d4b32['getClosestSelectedImageElement'](_0x9fd7c3['model']['document']['selection']),void _0x2ac0bf['markBlockFormat'](_0x46f062,{..._0x4263a1,'commandReversedParams':[{'value':_0x3e90b3||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5d4b32['isBlockImage'](_0x46f062)?_0x2ac0bf['markBlockFormat'](_0x46f062,_0x4263a1,[],'imageStylePostApply'):_0x2ac0bf['markInlineFormat'](_0x1719c6,_0x4263a1,'imageStylePostApply'));});});for(const _0x8f4bb5 of _0x9fd7c3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3c495a[_0x8f4bb5['name']]=_0x8f4bb5['title']['toLowerCase']();_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x151902])=>{_0x5d4b32['setImageNaturalSizeAttributes'](_0x151902['getContainedElement']());}),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x503e90,_0x2e50ce)=>{_0x2ac0bf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x503e90,{'commandName':_0x2e50ce['commandName'],'commandParams':_0x2e50ce['commandReversedParams']});}),_0x2ac0bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x11dedd,_0x16e09f){if(_0x10d6b3(_0x11dedd,_0x16e09f))return[_0x11dedd,_0x16e09f];if(_0x10d6b3(_0x16e09f,_0x11dedd))return[_0x16e09f,_0x11dedd];return null;});const _0x270589=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x10d6b3(_0x4f8467,_0x169131){const _0x19757a=_0x270589['findIndex'](({type:_0x1e5c24,subType:_0x53992a})=>_0x4f8467['type']==_0x1e5c24&&_0x4f8467['subType']==_0x53992a),_0x5b6005=_0x270589['findIndex'](({type:_0x5c2498,subType:_0x2c41ab})=>_0x169131['type']==_0x5c2498&&_0x169131['subType']==_0x2c41ab);if(_0x19757a<0x0||_0x5b6005<0x0)return!0x1;const _0x1b5a09=_0x4f8467['getFirstRange'](),_0x2e78b3=_0x169131['getFirstRange']();if((0x0==_0x19757a||0x1==_0x19757a)&&0x2==_0x5b6005&&_0x1b5a09['isIntersecting'](_0x2e78b3))return!0x0;if(0x2==_0x19757a&&0x3==_0x5b6005){const _0x2b6528=_0x2ac0bf['_findSuggestions'](_0x1b5a09,'insertion')['filter'](({suggestion:_0x56dc74,meta:_0x1ce813})=>_0x1ce813['isOwn']&&'convertInlineImageToBlock'==_0x56dc74['subType']);if(_0x2b6528['length']>0x1&&_0x2e78b3['end']['isEqual'](_0x1b5a09['start']))return!0x0;if(0x1==_0x2b6528['length']&&(_0x1b5a09['start']['isEqual'](_0x2e78b3['end'])||_0x1b5a09['end']['isEqual'](_0x2e78b3['start'])))return!0x0;}if(0x3==_0x19757a&&0x3==_0x5b6005&&_0x1b5a09['start']['isBefore'](_0x2e78b3['start'])){const _0x136031=_0x1b5a09['end']['nodeAfter'],_0x34e38c=_0x2e78b3['start']['nodeBefore'];return _0x5d4b32['isBlockImage'](_0x136031)&&_0x136031===_0x34e38c;}return!0x1;}_0x9fd7c3['model']['document']['registerPostFixer'](()=>{let _0x38ba29=!0x1;const _0x5a52cc=Array['from'](_0x9fd7c3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a955e,data:_0x131bff}of _0x5a52cc){const {group:_0xf82e1f,type:_0x3ad45d,subType:_0x22bf59,id:_0x465210}=_0x2ac0bf['_splitMarkerName'](_0x2a955e);if('suggestion'==_0xf82e1f&&_0x2ac0bf['hasSuggestion'](_0x465210)){if('formatBlock'==_0x3ad45d&&('imageStylePreApply'==_0x22bf59||'imageStylePostApply'==_0x22bf59)){const _0x18a35f=_0x2ac0bf['getSuggestion'](_0x465210);if(_0x131bff['newRange']){const _0x49e673=_0x18a35f['getFirstRange']()['getContainedElement']();if(_0x5d4b32['isBlockImage'](_0x49e673))continue;_0x2ac0bf['discardSuggestion'](_0x18a35f),_0x38ba29=!0x0;}}if('insertion'==_0x3ad45d&&'imageCaption'==_0x22bf59&&!_0x131bff['newRange']){const _0x34ec44=_0x2ac0bf['getSuggestion'](_0x465210);_0x34ec44['next']&&_0x34ec44['next']['isInContent']&&(_0x2ac0bf['discardSuggestion'](_0x34ec44['next']),_0x38ba29=!0x0);}}}return _0x38ba29;}),this['_registerLegacyDescription'](_0x3c495a);}['_registerLegacyDescription'](_0x76e706){const _0x21cbf3=this['editor'],_0x17b3f6=_0x21cbf3['locale'];_0x21cbf3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4421da=>{if('formatBlock'!=_0x4421da['type']&&'formatInline'!=_0x4421da['type'])return;const {data:_0x5c836c}=_0x4421da;if(!_0x5c836c||'imageStyle'!=_0x5c836c['commandName'])return;const _0x572a44=_0x5c836c['commandParams'][0x0]['value'];return _0x354985('side'===_0x572a44?c(_0x17b3f6,'FORMAT_SIDE_IMAGE'):_0x76e706[_0x572a44]||_0x572a44);function _0x354985(_0x857b81){return{'type':'format','content':c(_0x17b3f6,'*Format:*\x20%0',_0x857b81)};}});}}class ut extends _0x368c11{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4478e8){super(_0x4478e8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x29eba6=this['editor'],_0x1e079f=_0x29eba6['commands']['get']('importWord'),_0x1e3c42=_0x29eba6['commands']['get']('trackChanges');_0x1e079f&&(_0x1e079f['on']('execute',(_0x53eda3,[,_0x68a424])=>{this['_trackChangesValueDuringImport']=_0x1e3c42['value'],_0x68a424['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1e079f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1e079f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1e3c42['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x29eba6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x141e8,_0x29a202){const {suggestions:_0xc69f31}=_0x29a202,_0x28f2d1=this['editor']['commands']['get']('trackChanges'),_0x22c6a3=_0x28f2d1['value'];this['_trackChangesValueDuringImport']!==_0x22c6a3&&(_0x28f2d1['execute'](),this['_trackChangesExecuted']=!0x0),_0xc69f31&&_0xc69f31['forEach'](({id:_0x19d673,type:_0x45137c,author:_0x3d24bd,created_at:_0x14eb5d})=>{const _0x3d2679={'id':_0x19d673,'type':_0x45137c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3d24bd,'createdAt':_0x14eb5d?new Date(_0x14eb5d):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3d2679);});}}class ft extends _0x368c11{['afterInit'](){const _0x5ef622=this['editor'],_0x4f3ec5=_0x5ef622['plugins']['get']('TrackChangesEditing');if(_0x5ef622['plugins']['has']('IndentEditing')&&(_0x4f3ec5['enableCommand']('indent'),_0x4f3ec5['enableCommand']('outdent')),_0x5ef622['plugins']['has']('IndentBlock')){for(const _0x31cbc9 of['indentBlock','outdentBlock'])_0x4f3ec5['enableDefaultAttributesIntegration'](_0x31cbc9);}const _0x1ebe12=_0x5ef622['locale'];_0x4f3ec5['registerBlockAttribute']('blockIndent'),_0x4f3ec5['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1ebe12,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46fb44=this['editor'],_0x577965=_0x46fb44['locale'],_0x20ea99=_0x46fb44['plugins']['get']('TrackChangesEditing');_0x20ea99['descriptionFactory']['registerDescriptionCallback'](_0x3a6435=>{if('formatBlock'!=_0x3a6435['type'])return;const {data:_0x1a1e32}=_0x3a6435;if(!_0x1a1e32)return;if('indentBlock'!=_0x1a1e32['commandName']&&'outdentBlock'!=_0x1a1e32['commandName'])return;const _0x5805d7=_0x3a6435['getItems']()[0x0],_0x6ef3fb=_0x20ea99['descriptionFactory']['getItemLabel'](_0x5805d7);return'indentBlock'==_0x1a1e32['commandName']?{'type':'format','content':c(_0x577965,'*Indent:*\x20%0',_0x6ef3fb)}:'outdentBlock'==_0x1a1e32['commandName']?{'type':'format','content':c(_0x577965,'*Outdent:*\x20%0',_0x6ef3fb)}:void 0x0;});}}class ht extends _0x368c11{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x368c11{['afterInit'](){const _0x20d836=this['editor'];if(!_0x20d836['plugins']['has']('LinkEditing'))return;const _0x3613c6=_0x20d836['plugins']['get']('TrackChangesEditing'),_0x353914=_0x20d836['commands']['get']('link');_0x3613c6['enableDefaultAttributesIntegration']('link'),_0x3613c6['enableDefaultAttributesIntegration']('unlink'),_0x3613c6['registerInlineAttribute']('linkHref');for(const _0x467ffa of _0x353914['manualDecorators'])_0x3613c6['registerInlineAttribute'](_0x467ffa['id']),_0x3613c6['descriptionFactory']['registerAttributeLabel'](_0x467ffa['id'],'link\x20('+_0x467ffa['label']['toLowerCase']()+')');_0x3613c6['descriptionFactory']['registerDescriptionCallback'](_0x24c0e6=>{if('attribute'!=_0x24c0e6['type'])return;const {data:_0x325c33}=_0x24c0e6;if(!_0x325c33||'linkHref'!=_0x325c33['key'])return;const _0x1f0d12=_0x325c33['newValue'],_0x58196b=_0x20d836['locale'];return{'type':'format','content':null==_0x1f0d12?c(_0x58196b,'*Remove\x20link*'):c(_0x58196b,'*Set\x20link:*\x20%0','\x22'+_0x1f0d12+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34cf67=this['editor'],_0x465446=_0x34cf67['locale'];_0x34cf67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x410e1c=>{if('formatInline'!=_0x410e1c['type'])return;const {data:_0x1a55b0}=_0x410e1c;if(_0x1a55b0){if('link'==_0x1a55b0['commandName']){const _0x38caaf=_0x1a55b0['commandParams'][0x0];return{'type':'format','content':c(_0x465446,'*Set\x20link:*\x20%0','\x22'+_0x38caaf+'\x22')};}return'unlink'==_0x1a55b0['commandName']?{'type':'format','content':c(_0x465446,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x368c11{['afterInit'](){const _0x3c238a=this['editor'],_0x21bdeb=_0x3c238a['locale'];if(!_0x3c238a['plugins']['has']('LegacyListEditing'))return;const _0x396ce4=_0x3c238a['plugins']['get']('TrackChangesEditing'),_0x44e1ea=_0x3c238a['plugins']['has']('LegacyTodoListEditing');function _0xf00133(_0x156e6b){return()=>{const _0x171b03=_0x3c238a['model']['document']['selection'],_0x4af59d=_0x3c238a['commands']['get'](_0x156e6b);if(_0x4af59d['value'])return void _0x3c238a['execute']('paragraph',{});const _0x5acf88=_0x156e6b['slice'](0x0,-0x4),_0x1c37e1=function(_0x5d0f3f,_0x36ac04,_0x31d054){let _0x535c88=Array['from'](_0x5d0f3f)['filter'](_0x10716d=>function(_0x47180a,_0x551cae){return _0x551cae['checkChild'](_0x47180a['parent'],'listItem')&&!_0x551cae['isObject'](_0x47180a);}(_0x10716d,_0x31d054));_0x535c88=_0x535c88['filter'](_0x5b5bbd=>!_0x5b5bbd['is']('element','listItem')||_0x5b5bbd['getAttribute']('listType')!=_0x36ac04);const _0x5f02cc=new Set();for(const _0x2c7d41 of _0x535c88)_0x2c7d41['is']('element','listItem')?_0x5f02cc['add'](Le(_0x2c7d41)):_0x5f02cc['add'](_0x2c7d41);return Array['from'](_0x5f02cc);}(_0x171b03['getSelectedBlocks'](),_0x5acf88,_0x3c238a['model']['schema']);_0x3c238a['model']['change'](()=>{for(const _0x26cbd5 of _0x1c37e1)_0x396ce4['markBlockFormat'](_0x26cbd5,{'commandName':_0x156e6b,'commandParams':[{'forceValue':!_0x4af59d['value']}],'formatGroupId':'blockName'},Ee(_0x26cbd5));});};}function _0x39c334(_0x2030a9){return()=>{const _0x1310fb=function(_0x24f869){let _0x46baae=Array['from'](_0x24f869);const _0x4bdf67=_0x46baae['findIndex'](_0x4e3d98=>'listItem'!=_0x4e3d98['name']);return _0x4bdf67>-0x1&&(_0x46baae=_0x46baae['slice'](0x0,_0x4bdf67)),_0x46baae;}(_0x3c238a['model']['document']['selection']['getSelectedBlocks']()),_0x510853=_0x3c238a['model']['createRange'](_0x3c238a['model']['createPositionAt'](_0x1310fb[0x0],'before'),_0x3c238a['model']['createPositionAt'](_0x1310fb[_0x1310fb['length']-0x1],'end'));_0x3c238a['model']['change'](()=>{_0x396ce4['markBlockFormat'](_0x510853,{'commandName':_0x2030a9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5033ce){const _0x54d1ec=new Set();for(const _0x2f9579 of _0x5033ce){let _0xa207c9=_0x2f9579['nextSibling'];for(;_0xa207c9&&_0xa207c9['getAttribute']('listIndent')>_0x2f9579['getAttribute']('listIndent');)_0x54d1ec['add'](_0xa207c9),_0xa207c9=_0xa207c9['nextSibling'];}return Array['from'](_0x54d1ec);}(_0x1310fb));});};}_0x396ce4['enableCommand']('numberedList',_0xf00133('numberedList')),_0x396ce4['enableCommand']('bulletedList',_0xf00133('bulletedList')),_0x44e1ea&&_0x396ce4['enableCommand']('todoList',_0xf00133('todoList')),_0x396ce4['enableCommand']('indentList',_0x39c334('indentList')),_0x396ce4['enableCommand']('outdentList',_0x39c334('outdentList')),_0x44e1ea&&_0x396ce4['enableCommand']('checkTodoList',()=>{const _0x513e09=_0x3c238a['commands']['get']('checkTodoList'),_0x121108=Array['from'](_0x513e09['_selectedElements']);_0x121108['filter'](_0x33da30=>_0x33da30['getAttribute']('todoListChecked')!=_0x513e09['value']),_0x3c238a['model']['change'](()=>{for(const _0x49c264 of _0x121108)_0x396ce4['markBlockFormat'](_0x49c264,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x513e09['value']}]});});}),_0x396ce4['descriptionFactory']['registerElementLabel']('listItem',_0x30a012=>c(_0x21bdeb,'ELEMENT_LIST_ITEM',_0x30a012)),_0x396ce4['descriptionFactory']['registerDescriptionCallback'](_0x5ad589=>{if('formatBlock'!=_0x5ad589['type']&&'formatInline'!=_0x5ad589['type'])return;const {data:_0xb6f9dd}=_0x5ad589;if(_0xb6f9dd){if('numberedList'==_0xb6f9dd['commandName']||'bulletedList'==_0xb6f9dd['commandName']||'todoList'==_0xb6f9dd['commandName'])switch(_0xb6f9dd['commandName']['replace']('List','')){case'bulleted':return _0x497e90(c(_0x21bdeb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x497e90(c(_0x21bdeb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x497e90(c(_0x21bdeb,'ELEMENT_TODO_LIST'));}if('indentList'==_0xb6f9dd['commandName'])return{'type':'format','content':c(_0x21bdeb,'*Indent:*\x20%0',c(_0x21bdeb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0xb6f9dd['commandName'])return{'type':'format','content':c(_0x21bdeb,'*Outdent:*\x20%0',c(_0x21bdeb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0xb6f9dd['commandName'])return _0xb6f9dd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x21bdeb,'*Check\x20item*')}:{'type':'format','content':c(_0x21bdeb,'*Uncheck\x20item*')};}function _0x497e90(_0x321be8){return{'type':'format','content':c(_0x21bdeb,'*Change\x20to:*\x20%0',_0x321be8)};}});}}function Le(_0x53060f){const _0x6e9330=_0x53060f['getAttribute']('listIndent');if(0x0==_0x6e9330)return _0x53060f;let _0x140c26=_0x53060f;for(;_0x53060f['previousSibling']&&_0x53060f['previousSibling']['is']('element','listItem');){const _0x2400ac=_0x53060f['previousSibling']['getAttribute']('listIndent');if(_0x2400ac==_0x6e9330)_0x140c26=_0x53060f['previousSibling'];else{if(_0x2400ac<_0x6e9330)break;}_0x53060f=_0x53060f['previousSibling'];}return _0x140c26;}function Ee(_0x32cbe7){const _0x5d6fc2=[];if(_0x32cbe7['is']('element','listItem')&&_0x32cbe7['getAttribute']('listIndent')>0x0){let _0x843ce5=_0x32cbe7['nextSibling'];for(;_0x843ce5&&'listItem'==_0x843ce5['name']&&_0x843ce5['getAttribute']('listIndent')==_0x32cbe7['getAttribute']('listIndent');)_0x5d6fc2['push'](_0x843ce5),_0x843ce5=_0x843ce5['nextSibling'];}return _0x5d6fc2;}class Q extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x574815=this['editor']['config']['get']('list.properties'),_0x20a3a0=this['editor']['plugins']['get']('TrackChangesEditing');_0x574815['styles']&&_0x20a3a0['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x574815['reversed']&&_0x20a3a0['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x574815['startIndex']&&_0x20a3a0['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x20a3a0['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xaca283,_0x2f0cf2={}){const _0x28f419=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49835b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x28f419['markMultiRangeBlockFormat'](_0x49835b,{'commandName':'listStyle','commandParams':[{'type':_0x2f0cf2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd60f10,_0x3a0988={}){const _0x12f023=this['editor']['plugins']['get']('TrackChangesEditing'),_0x949d96=this['_getSuggestionBlocks'](_0x19b72f=>_0x19b72f['is']('element','listItem')&&'numbered'===_0x19b72f['getAttribute']('listType'));if(_0x949d96['length']<0x1)return;const _0x20176e=_0x949d96['map'](_0x583776=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x583776,'before'),this['editor']['model']['createPositionAt'](_0x583776,0x0)));this['editor']['model']['change'](()=>{_0x12f023['markMultiRangeBlockFormat'](_0x20176e,{'commandName':'listReversed','commandParams':[{'reversed':_0x3a0988['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2fe644,_0x2a9555={}){const _0x249cbb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16629d=this['_getSuggestionBlocks'](_0x558313=>_0x558313['is']('element','listItem')&&'numbered'===_0x558313['getAttribute']('listType'));if(_0x16629d['length']<0x1)return;const _0x11ade0=_0x16629d['map'](_0x5afc55=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5afc55,'before'),this['editor']['model']['createPositionAt'](_0x5afc55,0x0)));this['editor']['model']['change'](()=>{_0x249cbb['markMultiRangeBlockFormat'](_0x11ade0,{'commandName':'listStart','commandParams':[{'startIndex':_0x2a9555['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x43932c){if('formatBlock'!=_0x43932c['type']&&'formatInline'!=_0x43932c['type'])return;const _0x1e6727=this['editor']['locale'],{data:_0x39899a}=_0x43932c;if(!_0x39899a)return;let _0x398467,_0x32e075;switch(_0x39899a['commandName']){case'listStyle':_0x398467='*Change\x20to:*\x20%0',_0x32e075={'type':'format','content':c(_0x1e6727,_0x398467,c(_0x1e6727,this['_getTranslationKeyForListStyle'](_0x39899a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x398467=_0x39899a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x32e075={'type':'format','content':c(_0x1e6727,_0x398467)};break;case'listStart':_0x398467='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x32e075={'type':'format','content':c(_0x1e6727,_0x398467,_0x39899a['commandParams'][0x0]['startIndex'])};}return _0x32e075;}['_getSuggestionBlocksForListStyle'](){const _0x156119=this['editor']['plugins']['get']('LegacyListUtils');let _0x4d212e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4d212e[0x0]?.['is']('element','listItem')&&_0x4d212e['unshift'](..._0x156119['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4d212e[_0x4d212e['length']-0x1]?.['is']('element','listItem')&&_0x4d212e['push'](..._0x156119['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4d212e=[...new Set(_0x4d212e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4d212e=_0x4d212e['filter'](_0x408bd6=>_0x408bd6['is']('element','listItem'))),_0x4d212e;}['_getSuggestionBlocks'](_0x4c8e9e){const _0x11dcbc=this['editor']['plugins']['get']('LegacyListUtils');let _0x3bc198=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c8e9e)['map'](_0x4bf835=>{const _0x4848c4=this['editor']['model']['createPositionAt'](_0x4bf835,0x0);return[..._0x11dcbc['getSiblingNodes'](_0x4848c4,'backward'),..._0x11dcbc['getSiblingNodes'](_0x4848c4,'forward')];})['flat']();return _0x3bc198=[...new Set(_0x3bc198)],_0x3bc198;}['_getTranslationKeyForListStyle'](_0x5c15e2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5c15e2)||'default')['toUpperCase']()+'_LIST_'+_0x5c15e2['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x368c11{['afterInit'](){const _0x2b844b=this['editor'];if(!_0x2b844b['plugins']['has']('MediaEmbedEditing'))return;const _0x8a4992=_0x2b844b['plugins']['get']('TrackChangesEditing'),_0x47fe28=_0x2b844b['locale'];_0x8a4992['enableCommand']('mediaEmbed'),_0x8a4992['descriptionFactory']['registerElementLabel']('media',_0x4fc68f=>c(_0x47fe28,'ELEMENT_MEDIA',_0x4fc68f)),_0x2b844b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5ee564,{writer:_0x5e6ebf,options:_0x235c62})=>{if(_0x235c62['showSuggestionHighlights'])return _0x5e6ebf['createEmptyElement']('div');},'converterPriority':'high'}),_0x2b844b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x228bd8,_0x46b5c6,_0x3468c1)=>{_0x3468c1['options']['showSuggestionHighlights']&&_0x228bd8['stop']();},{'priority':'high'});}}class pt extends _0x368c11{['afterInit'](){const _0x1f779a=this['editor'];_0x1f779a['plugins']['has']('MentionEditing')&&_0x1f779a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x368c11{['afterInit'](){const _0x306524=this['editor'];if(!_0x306524['plugins']['has']('MergeFieldsEditing'))return;const _0x3f9ff7=_0x306524['plugins']['get']('TrackChangesEditing'),_0x3987eb=_0x306524['locale'];_0x3f9ff7['enableCommand']('insertMergeField'),_0x3f9ff7['enableCommand']('insertMergeFieldBlock'),_0x3f9ff7['enableCommand']('insertMergeFieldImage'),_0x3f9ff7['descriptionFactory']['registerElementLabel']('mergeField',_0x1f547f=>c(_0x3987eb,'ELEMENT_MERGE_FIELD',_0x1f547f)),_0x3f9ff7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x62d93c=>c(_0x3987eb,'ELEMENT_MERGE_FIELD',_0x62d93c)),_0x3f9ff7['descriptionFactory']['registerDescriptionCallback'](_0x2a37ce=>{if('insertion'!=_0x2a37ce['type']&&'deletion'!=_0x2a37ce['type'])return;const _0x202d1d=_0x2a37ce['getContainedElement']();if(null==_0x202d1d)return;const _0x579848=_0x306524['plugins']['get']('MergeFieldsEditing');let _0x34b7f1;switch(_0x579848['getMergeFieldType'](_0x202d1d)){case null:return;case'image':{const _0x25ff38=_0x579848['unwrapAffixes'](_0x202d1d['getAttribute']('src'));_0x34b7f1=_0x579848['getLabel'](_0x25ff38)||_0x25ff38;break;}default:{const _0x3170cc=_0x202d1d['getAttribute']('id');_0x34b7f1=_0x579848['getLabel'](_0x3170cc)||_0x3170cc;break;}}return'insertion'==_0x2a37ce['type']?{'type':'insertion','content':c(_0x3987eb,'*Insert:*\x20%0','\x22'+_0x34b7f1+'\x22\x20'+c(_0x3987eb,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3987eb,'*Remove:*\x20%0','\x22'+_0x34b7f1+'\x22\x20'+c(_0x3987eb,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x368c11{['afterInit'](){const _0x230d49=this['editor'],_0x129d60=_0x230d49['plugins']['get']('TrackChangesEditing');_0x230d49['plugins']['has']('MultiLevelList')&&(_0x129d60['enableDefaultAttributesIntegration']('multiLevelList'),_0x129d60['registerBlockAttribute']('listMarkerStyle'),_0x129d60['descriptionFactory']['registerDescriptionCallback'](_0x3316d8=>this['handleDescriptions'](_0x3316d8)));}['handleDescriptions'](_0x4051e){const _0x240210=this['editor']['locale'],{data:_0x49db60}=_0x4051e,_0x40c882={'type':'format','content':''};if(_0x49db60&&'listMarkerStyle'==_0x49db60['key']){if(!_0x49db60['oldValue'])return{'type':'format','content':c(_0x240210,'*Set\x20format:*\x20%0',c(_0x240210,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49db60['newValue']+')'};if(!_0x49db60['newValue']){let _0x20fd02=_0x4051e['head'];for(;_0x20fd02;){if(_0x20fd02['data']&&'listType'==_0x20fd02['data']['key']&&_0x20fd02['data']['newValue'])return _0x40c882;_0x20fd02=_0x20fd02['next'];}return{'type':'format','content':c(_0x240210,'*Remove\x20format:*\x20%0',c(_0x240210,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x49db60['oldValue']+')'};}}}}class bt extends _0x368c11{['afterInit'](){const _0x3ca5d8=this['editor'];if(!_0x3ca5d8['plugins']['has']('PageBreakEditing'))return;_0x3ca5d8['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x139fa9=_0x3ca5d8['plugins']['get']('TrackChangesEditing'),_0x49e1d2=_0x3ca5d8['locale'];_0x139fa9['descriptionFactory']['registerElementLabel']('pageBreak',_0x2fe33e=>c(_0x49e1d2,'ELEMENT_PAGE_BREAK',_0x2fe33e));}}class yt extends _0x368c11{['afterInit'](){const _0x270e56=this['editor'];if(!_0x270e56['plugins']['has']('Paragraph'))return;const _0x462c1f=_0x270e56['locale'],_0x4e3e04=_0x270e56['plugins']['get']('TrackChangesEditing');_0x4e3e04['descriptionFactory']['registerElementLabel']('paragraph',_0x26e54f=>c(_0x462c1f,'ELEMENT_PARAGRAPH',_0x26e54f)),_0x4e3e04['enableDefaultAttributesIntegration']('paragraph'),_0x4e3e04['enableCommand']('insertParagraph'),_0x270e56['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x270e56),{'priority':'highest'}),_0x270e56['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x341601,_0x20cefb,_0x3eedb9)=>{_0x3eedb9['options']['showSuggestionHighlights']&&nr(_0x270e56,{'showActiveMarker':!0x1})(_0x341601,_0x20cefb,_0x3eedb9);},{'priority':'highest'});const _0x178e97=_0x4e3e04['descriptionFactory'];_0x178e97['registerDescriptionCallback'](_0x5c3bfd=>{if('insertion'!==_0x5c3bfd['type'])return;const {start:_0x699989,end:_0x53d17d}=_0x5c3bfd['getFirstRange']();if(!_0x699989['isTouching'](_0x53d17d)||!_0x699989['nodeAfter'])return;const _0xb4a8f2=_0x270e56['model']['schema'],_0x41a172=_0x699989['nodeAfter'];return _0xb4a8f2['isBlock'](_0x41a172)&&!_0xb4a8f2['isLimit'](_0x41a172)&&_0xb4a8f2['checkChild'](_0x41a172,'$text')?{'type':'insertion','content':c(_0x462c1f,'*Insert:*\x20%0',_0x178e97['getItemLabel'](_0x41a172,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57fb13=this['editor'],_0x4e482d=_0x57fb13['locale'];_0x57fb13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e02ec=>{if('formatBlock'!=_0x3e02ec['type'])return;const {data:_0x3c721d}=_0x3e02ec;return _0x3c721d&&'paragraph'==_0x3c721d['commandName']?{'type':'format','content':c(_0x4e482d,'*Change\x20to:*\x20%0',c(_0x4e482d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x17d041,{showActiveMarker:_0x5867c7=!0x0}={}){return(_0x5ae999,_0x59cdd8,_0x1bd3ce)=>{const _0xe73585=_0x17d041['plugins']['get']('TrackChangesEditing'),_0x1ae7c2=_0x59cdd8['markerRange']['start'],_0x24d9be=_0x59cdd8['markerRange']['end'],_0x1c68b0=_0x17d041['model']['schema'];if(!_0x1ae7c2['isTouching'](_0x24d9be)||!_0x1ae7c2['nodeAfter'])return;const _0x59533c=_0x1ae7c2['nodeAfter'];if(_0x1c68b0['isBlock'](_0x59533c)&&!_0x1c68b0['isLimit'](_0x59533c)&&_0x1c68b0['checkChild'](_0x59533c,'$text')){if(!_0x1bd3ce['consumable']['consume'](_0x59cdd8['markerRange'],_0x5ae999['name']))return;const {authorId:_0x1b64e4}=_0xe73585['_splitMarkerName'](_0x59cdd8['markerName']),_0x8829bd=_0x1bd3ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1b64e4}),_0xebaf36=_0x1bd3ce['mapper']['toViewPosition'](_0x24d9be);_0x5867c7&&_0xe73585['activeMarkers']['includes'](_0x59cdd8['markerName'])&&_0x1bd3ce['writer']['addClass']('ck-suggestion-marker--active',_0x8829bd),_0x1bd3ce['writer']['insert'](_0xebaf36,_0x8829bd),_0x1bd3ce['mapper']['bindElementToMarker'](_0x8829bd,_0x59cdd8['markerName']);}};}class jt extends _0x368c11{['afterInit'](){const _0x2302c8=this['editor'];_0x2302c8['commands']['get']('replaceSource')&&_0x2302c8['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x368c11{['afterInit'](){const _0x4511d1=this['editor'];if(!_0x4511d1['plugins']['has']('RemoveFormatEditing'))return;_0x4511d1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e36e7=this['editor'];_0x4e36e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bfd41=>{if('formatBlock'!=_0x1bfd41['type']&&'formatInline'!=_0x1bfd41['type'])return;const {data:_0x50dc1d}=_0x1bfd41;return _0x50dc1d&&'removeFormat'==_0x50dc1d['commandName']?{'type':'format','content':c(_0x4e36e7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x368c11{['afterInit'](){const _0x529f70=this['editor'];if(!_0x529f70['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1e9bea=_0x529f70['plugins']['get']('TrackChangesEditing');_0x1e9bea['enableCommand']('goToPreviousRestrictedEditingException'),_0x1e9bea['enableCommand']('goToNextRestrictedEditingException');const _0x23bbb2=_0x529f70['plugins']['get']('RestrictedEditingModeEditing');_0x23bbb2['enableCommand']('trackChanges'),_0x23bbb2['enableCommand']('acceptSuggestion'),_0x23bbb2['enableCommand']('discardSuggestion'),_0x23bbb2['enableCommand']('acceptAllSuggestions'),_0x23bbb2['enableCommand']('discardAllSuggestions'),_0x23bbb2['enableCommand']('acceptSelectedSuggestions'),_0x23bbb2['enableCommand']('discardSelectedSuggestions');}}class It extends _0x368c11{static get['requires'](){return[_0xb8357f];}['init'](){const _0x1eb393=this['editor'],_0xa5a795=_0x1eb393['plugins']['get']('TrackChangesEditing');_0xa5a795['enableCommand']('shiftEnter'),_0x1eb393['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x1eb393),{'priority':'high'}),_0x1eb393['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x1eb393),{'priority':'high'}),_0x1eb393['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xbc448a,_0x78c929,_0x3befbe)=>{_0x3befbe['options']['showSuggestionHighlights']&&je(_0x1eb393,{'showActiveMarker':!0x1})(_0xbc448a,_0x78c929,_0x3befbe);}),_0xa5a795['descriptionFactory']['registerElementLabel']('softBreak',_0x5c3e6f=>c(_0x1eb393['locale'],'ELEMENT_LINE_BREAK',_0x5c3e6f));}}function je(_0xe6f50d,{showActiveMarker:_0x1e50a1=!0x0}={}){return(_0x2fbd73,_0x1b8e8c,_0x5ef941)=>{const _0x1f897e=_0xe6f50d['plugins']['get']('TrackChangesEditing');if(!_0x5ef941['consumable']['test'](_0x1b8e8c['markerRange'],_0x2fbd73['name']))return;const _0x1bea08=_0xe6f50d['model'];for(const _0x4b9777 of _0x1b8e8c['markerRange']['getItems']()){if(!_0x4b9777['is']('element','softBreak'))continue;const _0xc2a221='deletion'==_0x1b8e8c['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x4e6eec}=_0x1f897e['_splitMarkerName'](_0x1b8e8c['markerName']),_0x22aac3=_0x5ef941['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc2a221,'data-author-id':_0x4e6eec}),_0x3c9017=_0x5ef941['mapper']['toViewPosition'](_0x1bea08['createPositionBefore'](_0x4b9777));_0x1e50a1&&_0x1f897e['activeMarkers']['includes'](_0x1b8e8c['markerName'])&&_0x5ef941['writer']['addClass']('ck-suggestion-marker--active',_0x22aac3),_0x5ef941['writer']['insert'](_0x3c9017,_0x22aac3),_0x5ef941['mapper']['bindElementToMarker'](_0x22aac3,_0x1b8e8c['markerName']);}};}class _t extends _0x368c11{['afterInit'](){const _0x539610=this['editor'],_0x3b41c8=_0x539610['model'],_0x20eab7=_0x539610['locale'];if(!_0x539610['plugins']['has']('StandardEditingModeEditing'))return;const _0x35a8a3=_0x539610['plugins']['get']('TrackChangesEditing'),_0x3f3652='restrictedEditingException',_0x306aed=_0x539610['commands']['get'](_0x3f3652);_0x35a8a3['enableCommand'](_0x3f3652,(_0x3fbd13,_0x412680={})=>{const _0xdab9e=_0x3b41c8['document']['selection'];if(_0xdab9e['isCollapsed'])return void _0x3fbd13(_0x412680);const _0x12d072=void 0x0!==_0x412680['forceValue']?_0x412680['forceValue']:!_0x306aed['value'];_0x3b41c8['change'](()=>{const _0x2ec32d=Array['from'](_0xdab9e['getRanges']());for(const _0x4923d5 of _0x2ec32d){const _0x4e831c=_0x12d072?[_0x4923d5]:io(_0x3f3652,_0x4923d5,_0x3b41c8);for(const _0x253243 of _0x4e831c)_0x35a8a3['markInlineFormat'](_0x253243,{'commandName':_0x3f3652,'commandParams':[{'forceValue':_0x12d072}]});}});}),_0x35a8a3['descriptionFactory']['registerDescriptionCallback'](_0x366c1a=>{if('formatBlock'!=_0x366c1a['type']&&'formatInline'!=_0x366c1a['type'])return;const {data:_0x2fac7d}=_0x366c1a;return _0x2fac7d&&_0x2fac7d['commandName']==_0x3f3652?_0x2fac7d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x20eab7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x20eab7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x368c11{['afterInit'](){const _0x1877e1=this['editor'];if(!_0x1877e1['plugins']['has']('Style')||!_0x1877e1['plugins']['has']('DataSchema'))return;const _0x3e41f3=_0x1877e1['plugins']['get']('TrackChangesEditing'),_0x6bf72b=_0x1877e1['locale'],_0x30a950=_0x1877e1['config']['get']('style')||{},_0x14e0c0=_0x1877e1['plugins']['get']('GeneralHtmlSupport'),_0x1f10f9=_0x1877e1['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1877e1['plugins']['get']('DataSchema'),_0x30a950['definitions']);_0x3e41f3['enableDefaultAttributesIntegration']('style');const _0x5b6bea=new Set();for(const _0x2b06f9 of _0x1f10f9['block']){const _0x5f1ce2=_0x14e0c0['getGhsAttributeNameForElement'](_0x2b06f9['element']);_0x5b6bea['add'](_0x5f1ce2);}const _0x3f4477=new Set();for(const _0x576105 of _0x1f10f9['inline']){const _0x5007f2=_0x14e0c0['getGhsAttributeNameForElement'](_0x576105['element']);_0x3f4477['add'](_0x5007f2);for(const _0x58349f of _0x576105['ghsAttributes'])_0x3f4477['add'](_0x58349f);}for(const _0x22508c of _0x5b6bea)_0x3e41f3['registerBlockAttribute'](_0x22508c),_0x3e41f3['descriptionFactory']['registerAttributeLabel'](_0x22508c,c(_0x6bf72b,'FORMAT_STYLE'));for(const _0x2e856f of _0x3f4477)_0x3e41f3['registerInlineAttribute'](_0x2e856f),_0x3e41f3['descriptionFactory']['registerAttributeLabel'](_0x2e856f,c(_0x6bf72b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43bfdb=this['editor'],_0x20f696=_0x43bfdb['locale'];_0x43bfdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2679=>{if('formatBlock'!=_0x5d2679['type']&&'formatInline'!=_0x5d2679['type'])return;const {data:_0x5b954b}=_0x5d2679;return _0x5b954b&&'style'===_0x5b954b['commandName']?_0x5b954b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x20f696,'*Set\x20format:*\x20%0',_0x5b954b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x20f696,'*Remove\x20format:*\x20%0',_0x5b954b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x368c11{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x19d7e8){super(_0x19d7e8),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x415074=this['editor'],_0xd9591b=_0x415074['model']['document']['selection'];if(!_0x415074['plugins']['has']('TableEditing'))return;const _0x4c86cf=_0x415074['locale'],_0x5a3226=_0x415074['plugins']['get']('TrackChangesEditing'),_0x5b5a14=_0x415074['plugins']['get']('TableUtils');_0x5a3226['descriptionFactory']['registerElementLabel']('table',_0x4dc611=>c(_0x4c86cf,'ELEMENT_TABLE',_0x4dc611)),this['_setupColumnsRowsFixing'](),_0x5a3226['enableCommand']('insertTable'),_0x5a3226['enableCommand']('selectTableRow'),_0x5a3226['enableCommand']('selectTableColumn');for(const _0xb937a5 of['insertTableRowAbove','insertTableRowBelow']){const _0x26a217=_0x415074['commands']['get'](_0xb937a5);_0x5a3226['enableCommand'](_0xb937a5,_0x36d5e2=>{_0x415074['model']['change'](_0x1edb2b=>{_0x36d5e2();const _0x4c3483='above'===_0x26a217['order'],_0x60a245=_0x5b5a14['getSelectionAffectedTableCells'](_0xd9591b),_0x200338=_0x5b5a14['getRowIndexes'](_0x60a245),_0x38372e=_0x4c3483?_0x200338['first']-0x1:_0x200338['last']+0x1,_0x3a5d3c=_0x60a245[0x0]['findAncestor']('table'),_0x5da332=_0x5b5a14['createTableWalker'](_0x3a5d3c,{'startRow':_0x38372e,'endRow':_0x38372e}),_0x2ddb85=Array['from'](_0x5da332)['map'](_0x56b4a8=>_0x1edb2b['createRangeOn'](_0x56b4a8['cell']));_0x5a3226['markMultiRangeInsertion'](_0x2ddb85,'tableRow');});});}for(const _0x16ea33 of['insertTableColumnLeft','insertTableColumnRight']){const _0x26c473=_0x415074['commands']['get'](_0x16ea33);_0x5a3226['enableCommand'](_0x16ea33,_0x11fa0d=>{_0x415074['model']['change'](_0x36d43c=>{_0x11fa0d();const _0x3c821c='left'===_0x26c473['order'],_0x522382=_0x5b5a14['getSelectionAffectedTableCells'](_0xd9591b),_0x4a2f06=_0x5b5a14['getColumnIndexes'](_0x522382),_0x1653ea=_0x3c821c?_0x4a2f06['first']-0x1:_0x4a2f06['last']+0x1,_0x18c42f=_0x522382[0x0]['findAncestor']('table'),_0x4d4af6=_0x5b5a14['createTableWalker'](_0x18c42f,{'startRow':0x0,'column':_0x1653ea,'includeAllSlots':!0x1}),_0x35bb6c=Array['from'](_0x4d4af6)['map'](_0x30a6e9=>_0x36d43c['createRangeOn'](_0x30a6e9['cell']));_0x5a3226['markMultiRangeInsertion'](_0x35bb6c,'tableColumn');});});}for(const _0x3e2e95 of['removeTableRow','removeTableColumn']){const _0x50d84b=_0x3e2e95['substr'](0xb),_0x19d87f=_0x50d84b['toLowerCase'](),_0x175205=_0x19d87f['substr'](0x0,0x3)+'span',_0x2fd06b='table'+_0x50d84b,_0x5241ca='min'+_0x50d84b,_0x24c6a5='max'+_0x50d84b;_0x5a3226['enableCommand'](_0x3e2e95,()=>{_0x415074['model']['change'](_0x4f2816=>{const _0x73beef=_0x5b5a14['getSelectionAffectedTableCells'](_0xd9591b),_0x433a60=_0x73beef[0x0]['findAncestor']('table');let _0x22c74c;if('removeTableRow'==_0x3e2e95){const _0x5aa7c9=_0x5b5a14['getRowIndexes'](_0x73beef);_0x22c74c={'startRow':_0x5aa7c9['first'],'endRow':_0x5aa7c9['last'],'includeAllSlots':!0x0};}else{const _0x1483d7=_0x5b5a14['getColumnIndexes'](_0x73beef);_0x22c74c={'startColumn':_0x1483d7['first'],'endColumn':_0x1483d7['last'],'includeAllSlots':!0x0};}const _0x5e124d=_0x5b5a14['createTableWalker'](_0x433a60,_0x22c74c),_0x200cd8=Array['from'](_0x5e124d)['map'](({cell:_0x284847})=>_0x284847),_0x57ec1b=Ne(_0x200cd8['filter'](_0x427f33=>_0x427f33['hasAttribute'](_0x175205))),_0x46cd68=Ne(_0x200cd8['filter'](_0x32a7e4=>!_0x32a7e4['hasAttribute'](_0x175205)))['map'](_0x10d01a=>_0x4f2816['createRangeOn'](_0x10d01a)),_0x283903=_0x5a3226['markMultiRangeDeletion'](_0x46cd68,_0x2fd06b);if(_0x283903&&('tableRow'==_0x283903['subType']||'tableColumn'==_0x283903['subType'])){const _0x53dec3=this['_getSuggestionCoords'](_0x283903);for(const _0x53aae5 of _0x57ec1b){const _0xb04b03=_0x4f2816['createRangeOn'](_0x53aae5),_0x44dd01=_0x5b5a14['getCellLocation'](_0x53aae5),_0x258906=_0x53aae5['getAttribute'](_0x175205)-0x1,_0xa4873f=_0x53dec3[_0x5241ca],_0x38165a=_0x53dec3[_0x24c6a5];_0xa4873f<=_0x44dd01[_0x19d87f]&&_0x44dd01[_0x19d87f]+_0x258906<=_0x38165a&&_0x283903['addRange'](_0xb04b03);}}});});}function _0x236065(_0x317b2a){const _0x217e14=Array['from'](_0xd9591b['getRanges']())['map'](_0x1d75c3=>_0x2b7c87['fromRange'](_0x1d75c3));_0x415074['model']['change'](_0xd60294=>{const _0x40977b=_0xd60294['batch'];_0x317b2a=_0x317b2a['filter'](_0x17483f=>'$graveyard'!=_0x17483f['root']['rootName']),_0xd60294['setSelection'](_0x317b2a),_0x415074['commands']['get']('removeTableRow')['refresh'](),_0x415074['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x415074['model']['enqueueChange'](()=>{_0x415074['model']['enqueueChange'](_0x40977b,_0x6aa4c3=>{const _0x54e854=_0x217e14['filter'](_0x526ffd=>'$graveyard'!=_0x526ffd['root']['rootName']);_0x54e854['length']>0x0&&_0x6aa4c3['setSelection'](_0x54e854);for(const _0x10ea9e of _0x217e14)_0x10ea9e['detach']();});});});}function _0x4815a7(_0x109985){_0x415074['model']['change'](_0x102186=>{const _0x220449=Array['from'](_0xd9591b['getRanges']())['map'](_0x575abf=>_0x2b7c87['fromRange'](_0x575abf)),_0x566b03=[];for(const _0x2c684f of _0x109985)for(const _0x1caa9d of _0x2c684f['getItems']({'shallow':!0x0}))_0x566b03['push'](_0x1caa9d);for(const _0x1e884d of _0x566b03)'$graveyard'!=_0x1e884d['root']['rootName']&&(_0x102186['setSelection'](_0x102186['createPositionAt'](_0x1e884d,0x0)),_0x415074['commands']['get']('removeTableColumn')['refresh'](),_0x415074['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2ddd12=_0x220449['filter'](_0x41e794=>'$graveyard'!=_0x41e794['root']['rootName']);_0x2ddd12['length']>0x0&&_0x102186['setSelection'](_0x2ddd12);for(const _0x32f7a4 of _0x220449)_0x32f7a4['detach']();});}function _0x245f8d(_0x544331,_0x322510){return _0x322510['every'](_0x5cd336=>_0x544331['some'](_0x42db88=>_0x42db88['end']['isEqual'](_0x5cd336['start'])||_0x5cd336['end']['isEqual'](_0x42db88['start'])));}function _0x3fdd18(_0x49af59,_0x3aa8bb){return!_0x49af59['some'](_0x252f94=>_0x3aa8bb['some'](_0x3c7519=>_0x252f94['isIntersecting'](_0x3c7519)))&&_0x49af59['some'](_0xaf54e4=>_0x3aa8bb['some'](_0x172b33=>_0xaf54e4['end']['isTouching'](_0x172b33['start'])));}_0x415074['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x316f86,_0x388cc4,_0x47bc3b)=>{if(!_0x47bc3b['options']['showSuggestionHighlights'])return;const _0xe036d6=_0x388cc4['item'];if(!_0xe036d6)return;const _0x70c66f=_0x47bc3b['mapper']['toViewElement'](_0xe036d6);function _0x5e71c8(_0x9920c2){return Array['isArray'](_0x9920c2)?_0x9920c2:[_0x9920c2];}_0x70c66f&&'tableCell'===_0xe036d6['name']&&_0x505b5a(_0x70c66f,_0x47bc3b['writer'],(_0x24a1cd,_0x1b8dfe,_0x71a2d)=>_0x71a2d['addClass'](_0x5e71c8(_0x1b8dfe['classes']),_0x24a1cd),(_0x24f278,_0x178e4d,_0x411142)=>_0x411142['removeClass'](_0x5e71c8(_0x178e4d['classes']),_0x24f278));},{'priority':'highest'}),_0x5a3226['descriptionFactory']['registerDescriptionCallback'](_0x216942=>{if('insertion'!=_0x216942['type']&&'deletion'!=_0x216942['type'])return;const _0x2c081c=_0x216942['getContainedElement']();if(null!=_0x2c081c&&_0x2c081c['is']('element','table')){if('insertion'==_0x216942['type']){const _0x511970=_0x216942['getItems']()['filter'](_0x310b53=>_0x310b53['is']('$textProxy'))['map'](_0x304872=>_0x304872['data']);if(_0x511970['length'])return{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x511970['join']('\x20')+'\x22'))};}if('deletion'==_0x216942['type']){const _0x368e0e=_0x216942['getItems']()['filter'](_0x6d3ae1=>_0x6d3ae1['is']('$textProxy'))['map'](_0x3624e1=>_0x3624e1['data']);if(_0x368e0e['length'])return{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x368e0e['join']('\x20')+'\x22'))};}}}),_0x5a3226['descriptionFactory']['registerDescriptionCallback'](_0x207adf=>{if('tableRow'==_0x207adf['subType']){const _0x2b08b3=_0x207adf['getItems']()['filter'](_0x29f0d1=>_0x29f0d1['is']('$textProxy'))['map'](_0x23204e=>_0x23204e['data']),_0x10925e=this['_getSuggestionCoords'](_0x207adf),_0x41cf97=_0x10925e['maxRow']-_0x10925e['minRow']+0x1;if('insertion'==_0x207adf['type'])return _0x2b08b3['length']?{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41cf97,'\x22'+_0x2b08b3['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_ROW',_0x41cf97))};if('deletion'==_0x207adf['type'])return _0x2b08b3['length']?{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41cf97,'\x22'+_0x2b08b3['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_ROW',_0x41cf97))};}if('tableColumn'==_0x207adf['subType']){const _0x4f121c=_0x207adf['getItems']()['filter'](_0x2d0f2f=>_0x2d0f2f['is']('$textProxy'))['map'](_0x17e9fa=>_0x17e9fa['data']),_0x419bf8=this['_getSuggestionCoords'](_0x207adf),_0x481b14=_0x419bf8['maxColumn']-_0x419bf8['minColumn']+0x1;if('insertion'==_0x207adf['type'])return _0x4f121c['length']?{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x481b14,'\x22'+_0x4f121c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4c86cf,'*Insert:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_COLUMN',_0x481b14))};if('deletion'==_0x207adf['type'])return _0x4f121c['length']?{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x481b14,'\x22'+_0x4f121c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4c86cf,'*Remove:*\x20%0',c(_0x4c86cf,'ELEMENT_TABLE_COLUMN',_0x481b14))};}}),_0x5a3226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x236065),_0x5a3226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x236065),_0x5a3226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x4815a7),_0x5a3226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x4815a7),_0x5a3226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x245f8d),_0x5a3226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x245f8d),_0x5a3226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3fdd18),_0x5a3226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3fdd18);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9bda59=this['editor'],_0x8837ff=_0x9bda59['model']['document']['selection'];return(_0x5d999b,_0x578a77)=>{_0x9bda59['model']['change'](_0x4b35c4=>{const {commandName:_0x4904ef,commandParams:_0x16972f}=_0x578a77;let _0x3238ec=_0x5d999b[0x0]['end']['nodeBefore'];_0x16972f&&_0x16972f[0x0]&&!0x1===_0x16972f[0x0]['forceValue']&&(_0x3238ec=_0x5d999b[0x0]['start']['nodeAfter']);const _0x55b432=_0x4b35c4['createRangeIn'](_0x3238ec);if('$graveyard'==_0x55b432['root']['rootName'])return;const _0x56e005=Array['from'](_0x8837ff['getRanges']())['map'](_0x2ffa02=>_0x2b7c87['fromRange'](_0x2ffa02));_0x4b35c4['setSelection'](_0x55b432),_0x9bda59['commands']['get'](_0x4904ef)['refresh'](),_0x16972f['push']({'forceDefaultExecution':!0x0}),_0x9bda59['execute'](_0x4904ef,..._0x16972f);const _0x56575a=_0x56e005['filter'](_0x56cbca=>'$graveyard'!=_0x56cbca['root']['rootName']);_0x56575a['length']>0x0&&_0x4b35c4['setSelection'](_0x56575a);for(const _0x2088e0 of _0x56e005)_0x2088e0['detach']();});};}['_getCoordsForCells'](_0x531189){const _0x4810c4=this['editor']['plugins']['get']('TableUtils');let _0x3865fd=Number['MAX_SAFE_INTEGER'],_0x5fd838=Number['MIN_SAFE_INTEGER'],_0x3304a1=Number['MAX_SAFE_INTEGER'],_0x5efd20=Number['MIN_SAFE_INTEGER'];for(const _0x4b84ac of _0x531189){if('$graveyard'==_0x4b84ac['root']['rootName'])continue;const {row:_0x24a12d,column:_0x5af651}=_0x4810c4['getCellLocation'](_0x4b84ac),_0x3275a1=_0x4b84ac['hasAttribute']('rowspan')?_0x4b84ac['getAttribute']('rowspan')-0x1:0x0,_0x9b3878=_0x4b84ac['hasAttribute']('colspan')?_0x4b84ac['getAttribute']('colspan')-0x1:0x0;_0x3865fd=_0x24a12d<_0x3865fd?_0x24a12d:_0x3865fd,_0x5fd838=_0x24a12d+_0x3275a1>_0x5fd838?_0x24a12d+_0x3275a1:_0x5fd838,_0x3304a1=_0x5af651<_0x3304a1?_0x5af651:_0x3304a1,_0x5efd20=_0x5af651+_0x9b3878>_0x5efd20?_0x5af651+_0x9b3878:_0x5efd20;}return{'minRow':_0x3865fd,'maxRow':_0x5fd838,'minColumn':_0x3304a1,'maxColumn':_0x5efd20};}['_setupColumnsRowsFixing'](){const _0x2b451a=this['editor'],_0x5d0194=_0x2b451a['plugins']['get']('TrackChangesEditing'),_0x422fed=_0x2b451a['plugins']['get']('TableUtils');_0x2b451a['model']['document']['on']('change:data',()=>{const _0x367f0f=Array['from'](_0x2b451a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x35d1a7,data:_0x41b5b8}of _0x367f0f){const {group:_0x791c92,id:_0x3c4dbe,subType:_0x5207c5}=_0x5d0194['_splitMarkerName'](_0x35d1a7);if('suggestion'!=_0x791c92)continue;if(null!=_0x41b5b8['oldRange'])continue;const _0x3dd958=_0x5d0194['getSuggestion'](_0x3c4dbe);this['_tablePostFixingSubtypes']['includes'](_0x5207c5)&&this['_tableSuggestions']['add'](_0x3dd958);}},{'priority':'low'});const _0x1fc95b=(_0x2fef4f,_0x35d63a)=>{let _0x444c0a=!0x1;const _0x3f8fe2=_0x35d63a['createRangeOn'](_0x2fef4f),_0x3c0916=_0x2fef4f['findAncestor']('table'),_0x3d36eb=_0x422fed['getCellLocation'](_0x2fef4f);for(const _0x4eb875 of this['_tableSuggestions']){const _0x5a0bda=_0x4eb875['subType'],_0x591275=_0x5a0bda['startsWith']('tablePaste'),_0x1f6411=_0x5a0bda['substr'](_0x591275?0xa:0x5),_0x39dd3e=_0x1f6411['toLowerCase'](),_0x5e92c4=_0x39dd3e['substr'](0x0,0x3)+'span',_0x488cfa='min'+_0x1f6411,_0x3564a2='max'+_0x1f6411;if(!_0x4eb875['isInContent'])continue;if(_0x3c0916!=_0x4eb875['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4eb875['isIntersectingWithRange'](_0x3f8fe2))continue;const _0x43d41b=_0x2fef4f['hasAttribute'](_0x5e92c4)?_0x2fef4f['getAttribute'](_0x5e92c4)-0x1:0x0,_0x2ccd0a=this['_getSuggestionCoords'](_0x4eb875),_0x43a79c=_0x2ccd0a[_0x488cfa],_0x5f47c2=_0x2ccd0a[_0x3564a2];_0x43a79c<=_0x3d36eb[_0x39dd3e]&&_0x3d36eb[_0x39dd3e]+_0x43d41b<=_0x5f47c2&&(_0x4eb875['addRange'](_0x3f8fe2),_0x444c0a=!0x0);}return _0x444c0a;};_0x2b451a['model']['document']['registerPostFixer'](_0x27d673=>{let _0x2fc8c9=!0x1;for(const _0x56cb78 of _0x2b451a['model']['document']['differ']['getChanges']())if('insert'==_0x56cb78['type']){if('tableRow'==_0x56cb78['name']){for(const _0x1112ec of _0x56cb78['position']['nodeAfter']['getChildren']())_0x2fc8c9=_0x2fc8c9||_0x1fc95b(_0x1112ec,_0x27d673);}else'tableCell'==_0x56cb78['name']&&(_0x2fc8c9=_0x2fc8c9||_0x1fc95b(_0x56cb78['position']['nodeAfter'],_0x27d673));}return _0x2fc8c9;});}['_getSuggestionCoords'](_0x150ca6){return this['_getCoordsForCells'](_0x150ca6['getRanges']()['map'](_0x4cf9df=>_0x4cf9df['start']['nodeAfter']));}}function Ne(_0x686a04){return Array['from'](new Set(_0x686a04)['values']());}class Nt extends _0x368c11{static get['requires'](){return[Ct];}['afterInit'](){const _0x5ad620=this['editor'],_0x4dffb4=_0x5ad620['model']['document']['selection'],_0x7e848d=_0x5ad620['locale'];if(!_0x5ad620['plugins']['has']('TableEditing'))return;const _0x1c1b2d=_0x5ad620['plugins']['get']('TrackChangesEditing'),_0x536b00=_0x5ad620['plugins']['get']('TableUtils'),_0x2dbb4e=_0x5ad620['plugins']['get'](Ct);_0x2dbb4e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1c1b2d['enableCommand']('mergeTableCells',()=>{const _0x4ed85f=_0x536b00['getSelectionAffectedTableCells'](_0x5ad620['model']['document']['selection']);_0x5ad620['model']['change'](()=>{_0x1c1b2d['markMultiRangeBlockFormat'](_0x4ed85f,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5ad620['commands']['get']('mergeTableCells')['on']('execute',(_0x26e9c9,_0x5163a2)=>{_0x5ad620['commands']['get']('trackChanges')['value']&&(_0x5163a2['length']>0x0&&_0x5163a2[_0x5163a2['length']-0x1]&&_0x5163a2[_0x5163a2['length']-0x1]['forceDefaultExecution']||_0x1c1b2d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x26e9c9['stop']());},{'priority':'highest'});for(const _0x48c110 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xa2341b=_0x5ad620['commands']['get'](_0x48c110);_0x1c1b2d['enableCommand'](_0x48c110,()=>{const _0x3a35ef=_0x5ad620['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x316089=>_0x316089['is']('element','tableCell')),_0x5756b7=_0xa2341b['value'];_0x5ad620['model']['change'](()=>{_0x1c1b2d['markMultiRangeBlockFormat']([_0x3a35ef,_0x5756b7],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5bfed0 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2c615a=_0x5ad620['commands']['get'](_0x5bfed0);_0x1c1b2d['enableCommand'](_0x5bfed0,()=>{const _0x2fb23c=_0x536b00['getSelectionAffectedTableCells'](_0x5ad620['model']['document']['selection'])[0x0],_0x1f8728=_0x2fb23c['findAncestor']('table'),{column:_0x5d4958,row:_0x463fcf}=_0x536b00['getCellLocation'](_0x2fb23c);let _0x9d266d=[];if('horizontally'==_0x2c615a['direction']){const _0x52c57d=_0x536b00['createTableWalker'](_0x1f8728,{'startRow':_0x463fcf,'endRow':_0x463fcf,'includeAllSlots':!0x0});_0x9d266d=Array['from'](_0x52c57d)['map'](_0x40aba3=>_0x40aba3['cell']);}else{const _0x53edfa=_0x536b00['createTableWalker'](_0x1f8728,{'column':_0x5d4958,'includeAllSlots':!0x0});_0x9d266d=Array['from'](_0x53edfa)['map'](_0x554ee4=>_0x554ee4['cell']);}_0x5ad620['model']['change'](_0x542bb1=>{_0x1c1b2d['markBlockFormat'](_0x542bb1['createRangeOn'](_0x2fb23c),{'commandName':_0x5bfed0,'commandParams':[]},_0x9d266d,_0x5bfed0);});});}_0x1c1b2d['descriptionFactory']['registerDescriptionCallback'](_0x1ef36e=>{if('formatBlock'!=_0x1ef36e['type']&&'formatInline'!=_0x1ef36e['type'])return;const {data:_0xbe5478}=_0x1ef36e;return _0xbe5478&&'mergeTableCells'==_0xbe5478['commandName']?{'type':'format','content':c(_0x7e848d,'*Merge\x20cells*')}:void 0x0;}),_0x1c1b2d['descriptionFactory']['registerDescriptionCallback'](_0x2711a3=>{if('formatBlock'!=_0x2711a3['type']&&'formatInline'!=_0x2711a3['type'])return;const {data:_0xd79125}=_0x2711a3;return _0xd79125?'splitTableCellVertically'==_0xd79125['commandName']?{'type':'format','content':c(_0x7e848d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd79125['commandName']?{'type':'format','content':c(_0x7e848d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2bfbcb=_0x2dbb4e['_acceptFormatSuggestionCallbackFactory']();for(const _0x3d2d5b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1c1b2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d2d5b,'accept',_0x2bfbcb);for(const _0x2d81bf of['splitTableCellVertically','splitTableCellHorizontally'])_0x1c1b2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2d81bf,'accept',_0x2bfbcb);_0x1c1b2d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x567d44=>{_0x5ad620['model']['change'](_0x433fb5=>{const _0xe3016=Array['from'](_0x4dffb4['getRanges']())['map'](_0x36e136=>_0x2b7c87['fromRange'](_0x36e136));_0x433fb5['setSelection'](_0x567d44),_0x5ad620['commands']['get']('mergeTableCells')['refresh'](),_0x5ad620['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3370d7=_0xe3016['filter'](_0x338298=>'$graveyard'!=_0x338298['root']['rootName']);_0x3370d7['length']>0x0&&_0x433fb5['setSelection'](_0x3370d7);for(const _0x1b3829 of _0xe3016)_0x1b3829['detach']();});});for(const _0x6126b9 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x537769=_0x5ad620['commands']['get'](_0x6126b9);_0x537769['on']('set:isEnabled',(_0xa43781,_0x22441f,_0x27977e)=>{if(_0x27977e){const _0x472d87=_0x5ad620['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f1d4c=>_0x3f1d4c['is']('element','tableCell'));this['_areMergableCells'](_0x537769['value'],_0x472d87)||(_0xa43781['return']=!0x1,_0xa43781['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x475a50=this['editor']['commands']['get']('mergeTableCells'),_0x4fe237=this['editor']['plugins']['get']('TableUtils');if(!_0x475a50['isEnabled'])return!0x1;const _0x1e2f2d=_0x4fe237['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x44747b of _0x1e2f2d)for(const _0x4a64b5 of _0x1e2f2d)if(_0x44747b!=_0x4a64b5&&!this['_areMergableCells'](_0x44747b,_0x4a64b5))return!0x1;return!0x0;}['_areMergableCells'](_0x21066d,_0x44e58a){const _0x1d7095=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b8e6=this['editor']['model']['createRangeOn'](_0x21066d),_0x4aeb95=this['editor']['model']['createRangeOn'](_0x44e58a),_0x1cbe96=new Set(),_0x50a71c=new Set();for(const _0x4e9988 of _0x1d7095['getSuggestions']())if(('insertion'==_0x4e9988['type']||'deletion'==_0x4e9988['type']||'mergeTableCells'==_0x4e9988['subType'])&&_0x4e9988['isInContent']){for(const _0x3663ee of _0x4e9988['getRanges']())_0x3663ee['containsRange'](_0x34b8e6,!0x0)&&_0x1cbe96['add'](_0x4e9988['type']+':'+_0x4e9988['author']['id']),_0x3663ee['containsRange'](_0x4aeb95,!0x0)&&_0x50a71c['add'](_0x4e9988['type']+':'+_0x4e9988['author']['id']);}if(_0x1cbe96['size']!=_0x50a71c['size'])return!0x1;for(const _0x2f9bcd of _0x1cbe96)if(!_0x50a71c['has'](_0x2f9bcd))return!0x1;return!0x0;}}class Dt extends _0x368c11{static get['requires'](){return[Ct];}['afterInit'](){const _0x51357c=this['editor'];if(!_0x51357c['plugins']['has']('TableEditing'))return;const _0x132072=_0x51357c['locale'],_0x335924=_0x51357c['plugins']['get']('TrackChangesEditing');_0x335924['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x335924['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x335924['registerBlockAttribute']('headingRows'),_0x335924['registerBlockAttribute']('headingColumns'),_0x335924['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x132072,'FORMAT_HEADER_ROW')),_0x335924['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x132072,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xcd375b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44fe12=this['editor']['plugins']['get']('TableUtils'),_0x36f5bd=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x55a083({showActiveMarker:_0x24fb20=!0x0,setDataAttribute:_0x36cbfc=!0x0}={}){return(_0x2cf19f,_0x996aee,_0x10f34c)=>{const {type:_0xfe7e00,id:_0x470549}=_0xcd375b['_splitMarkerName'](_0x996aee['markerName']),_0x229ac4=_0xcd375b['getSuggestion'](_0x470549),_0x35f80c=_0x229ac4['data'];if('formatBlock'!=_0x229ac4['type']||!_0x35f80c||'setTableColumnHeader'!=_0x35f80c['commandName'])return;if(_0x996aee['item'])return void _0x2cf19f['stop']();if(!_0x10f34c['consumable']['consume'](_0x996aee['markerRange'],_0x2cf19f['name']))return;const _0x4326c6=_0x996aee['markerRange']['start']['nodeAfter'],_0x467b10=_0x996aee['markerRange']['end']['nodeBefore'],_0x38ea7d=_0x4326c6['parent']['parent'],{column:_0x464f21}=_0x44fe12['getCellLocation'](_0x4326c6),{column:_0x402c33}=_0x44fe12['getCellLocation'](_0x467b10);for(let _0x4a7fbb=_0x464f21;_0x4a7fbb<=_0x402c33;_0x4a7fbb++){const _0x5141ab=_0x44fe12['createTableWalker'](_0x38ea7d,{'column':_0x4a7fbb,'includeAllSlots':!0x1});for(const _0x4fc9a3 of _0x5141ab){const _0x2c01bf=_0x4fc9a3['cell'],_0x59f839=_0x10f34c['mapper']['toViewElement'](_0x2c01bf);_0x10f34c['writer']['addClass']('ck-suggestion-marker-'+_0xfe7e00,_0x59f839),_0x36cbfc&&_0x10f34c['writer']['setAttribute']('data-suggestion',_0x470549,_0x59f839),_0x10f34c['mapper']['bindElementToMarker'](_0x59f839,_0x996aee['markerName']),_0x24fb20&&(_0xcd375b['activeMarkers']['includes'](_0x996aee['markerName'])?_0x10f34c['writer']['addClass']('ck-suggestion-marker--active',_0x59f839):_0x10f34c['writer']['removeClass']('ck-suggestion-marker--active',_0x59f839));}}};}_0xcd375b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x36f5bd),_0xcd375b['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x36f5bd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x55a083(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3c96bd,_0xa853d3,_0x11aac3)=>{_0x11aac3['options']['showSuggestionHighlights']&&_0x55a083({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3c96bd,_0xa853d3,_0x11aac3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2bbeca,_0xc5ae3,_0x13efad)=>{const {type:_0x338ba4,id:_0xb836d1}=_0xcd375b['_splitMarkerName'](_0xc5ae3['markerName']),_0x26e530=_0xcd375b['getSuggestion'](_0xb836d1),_0x2b338f=_0x26e530['data'];if('formatBlock'!=_0x26e530['type']||!_0x2b338f||'setTableColumnHeader'!=_0x2b338f['commandName'])return;const _0x5e0195=_0x13efad['mapper']['markerNameToElements'](_0xc5ae3['markerName']);if(_0x5e0195){for(const _0x2bca82 of _0x5e0195)_0x13efad['writer']['removeClass']('ck-suggestion-marker-'+_0x338ba4,_0x2bca82),_0x13efad['writer']['removeClass']('ck-suggestion-marker--active',_0x2bca82),_0x13efad['writer']['removeAttribute']('data-suggestion',_0x2bca82),_0x13efad['mapper']['unbindElementFromMarkerName'](_0x2bca82,_0xc5ae3['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f5c06=this['editor'],_0x275193=_0x5f5c06['locale'];function _0x4b5d97(_0x564df0){return{'type':'format','content':c(_0x275193,'*Format:*\x20%0',_0x564df0)};}_0x5f5c06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x552d57=>{if('formatBlock'!=_0x552d57['type'])return;const {data:_0x194f17}=_0x552d57;if(_0x194f17){if('setTableRowHeader'==_0x194f17['commandName']){const _0xffbe6a=_0x194f17['commandParams'][0x0]['forceValue'];return _0x4b5d97(c(_0x275193,_0xffbe6a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x194f17['commandName']){const _0x42f5ee=_0x194f17['commandParams'][0x0]['forceValue'];return _0x4b5d97(c(_0x275193,_0x42f5ee?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x43cb64=>[_0x43cb64,null]));class Mt extends _0x368c11{static get['requires'](){return[Ct];}['afterInit'](){const _0x170c7c=this['editor'];if(!_0x170c7c['plugins']['has']('TableClipboard'))return;const _0xfd3715=_0x170c7c['plugins']['get']('TrackChangesEditing'),_0x4c6de8=_0x170c7c['plugins']['get']('TableUtils'),_0x59812d=_0x170c7c['plugins']['get'](Ct),_0x20c620=_0x170c7c['plugins']['get']('TableClipboard');_0x59812d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x170c7c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x170c7c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x31506b=null;_0x170c7c['model']['on']('insertContent',(_0x242fa1,_0x2aecf4)=>{const [_0x3afa58,_0x21222b]=_0x2aecf4,_0x3b2f2f=_0x2aecf4[_0x2aecf4['length']-0x1];_0x3b2f2f&&_0x3b2f2f['forceDefaultExecution']||_0xfd3715['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x41d75e,_0x330a0e,_0x512cb5,_0x1605c5,_0x13ddf4){if(_0x330a0e&&!_0x330a0e['is']('documentSelection'))return!0x1;const _0x4875aa=_0x13ddf4['getTableIfOnlyTableInContent'](_0x41d75e,_0x512cb5);if(!_0x4875aa||!Ue(_0x4875aa,void 0x0,_0x1605c5))return!0x1;const _0x2be174=_0x1605c5['getSelectionAffectedTableCells'](_0x512cb5['document']['selection']);if(!_0x2be174['length'])return!0x1;const _0x2bcad7=_0x2be174[0x0]['findAncestor']('table'),_0x324e95=_0x1605c5['getRowIndexes'](_0x2be174),_0x2ecf74=_0x1605c5['getColumnIndexes'](_0x2be174),_0x5ae67c={'startRow':_0x324e95['first'],'endRow':_0x324e95['last'],'startColumn':_0x2ecf74['first'],'endColumn':_0x2ecf74['last']};return 0x1==_0x2be174['length']&&(_0x5ae67c['endRow']+=_0x1605c5['getRows'](_0x4875aa)-0x1,_0x5ae67c['endColumn']+=_0x1605c5['getColumns'](_0x4875aa)-0x1),Ue(_0x2bcad7,_0x5ae67c,_0x1605c5);}(_0x3afa58,_0x21222b,_0x170c7c['model'],_0x4c6de8,_0x20c620)&&(_0x242fa1['stop'](),_0x31506b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x170c7c['model']['change'](()=>{_0x170c7c['model']['insertContent'](_0x2aecf4[0x0],_0x2aecf4[0x1],_0x2aecf4[0x2],{'forceDefaultExecution':!0x0});const _0x5bab0c=_0x2ea4c3(),{rowInsertionRanges:_0xb73b7d,columnInsertionRanges:_0x499c7d,insertionRanges:_0x21ed09,deletionRanges:_0x541ba2,cells:_0x5f12f9}=_0x31506b;_0xb73b7d['length']&&_0xfd3715['markMultiRangeInsertion'](_0xb73b7d,'tablePasteRow',{'tablePasteChainId':_0x5bab0c}),_0x499c7d['length']&&_0xfd3715['markMultiRangeInsertion'](_0x499c7d,'tablePasteColumn',{'tablePasteChainId':_0x5bab0c}),_0x21ed09['length']&&(_0xfd3715['markMultiRangeInsertion'](_0x21ed09,'tablePaste',{'tablePasteChainId':_0x5bab0c,'skipNestingCheck':!0x0}),_0x21ed09['forEach'](_0x1f1687=>_0x1f1687['detach']?.())),_0x541ba2['length']&&(_0xfd3715['markMultiRangeDeletion'](_0x541ba2,'tablePaste',{'tablePasteChainId':_0x5bab0c,'skipNestingCheck':!0x0}),_0x541ba2['forEach'](_0x26e476=>_0x26e476['detach']?.()));const _0x454bea=_0xfd3715['markMultiRangeBlockFormat'](_0x5f12f9['map'](({element:_0x142862})=>_0x142862),{'formatGroupId':_0x2ea4c3()},[],'tablePasteCell',{'tablePasteChainId':_0x5bab0c});if(_0x454bea){const _0x59a782=_0x454bea['getMarkers'](),_0x4d13c3=[];for(const {element:_0x12c0ec,attributes:_0x27fd43}of _0x5f12f9){if(!_0x27fd43)continue;const _0x275e3f=_0x170c7c['model']['createRangeOn'](_0x12c0ec),_0x419015=_0x59a782['find'](_0x9571be=>_0x9571be['getRange']()['isEqual'](_0x275e3f));_0x419015&&_0x4d13c3['push']([_0x419015['name'],_0x27fd43]);}_0x4d13c3['length']&&_0x454bea['setAttribute']('markerAttributes',Object['fromEntries'](_0x4d13c3));}_0x31506b=null;}));},{'priority':_0x79d5b2['high']+0xa}),_0x170c7c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x32ffa1,_0x76e91d)=>{const [_0x1f82d5,_0x4d5c58,,_0x43bb41]=_0x76e91d;if(!_0x31506b)return;_0x32ffa1['stop']();const _0x4ca576=_0x1f82d5['cell'],_0x323547=_0x4d5c58,_0x24ca2c=Oe(_0x4ca576),_0x4fa0c3=Oe(_0x323547);_0x32ffa1['return']=_0x4ca576;let _0x286fd6=null,_0x26c880=null;if(_0x4fa0c3||_0x24ca2c){if(_0x24ca2c&&!_0x4fa0c3){_0x43bb41['remove'](_0x4ca576['getChild'](0x0));for(const _0xcb60fb of Array['from'](_0x323547['getChildren']()))_0x43bb41['insert'](_0xcb60fb,_0x4ca576,'end');const _0x241a9d=_0x31506b['rowInsertionIndexes']['includes'](_0x1f82d5['row']),_0x3a0a2d=_0x31506b['columnInsertionIndexes']['includes'](_0x1f82d5['column']);_0x241a9d||_0x3a0a2d||(_0x286fd6=_0x2b7c87['fromRange'](_0x43bb41['createRangeIn'](_0x4ca576)));}else _0x4fa0c3&&!_0x24ca2c&&(_0x26c880=_0x43bb41['createRangeIn'](_0x4ca576));}else{const _0x31803b=_0x43bb41['createElement']('tableCellSuggestion'),_0x6327ab=_0x43bb41['createElement']('tableCellSuggestion');_0x43bb41['wrap'](_0x43bb41['createRangeIn'](_0x4ca576),_0x6327ab),_0x43bb41['insert'](_0x31803b,_0x4ca576,0x0);for(const _0x5aea59 of Array['from'](_0x323547['getChildren']()))_0x43bb41['insert'](_0x5aea59,_0x31803b,'end');_0x286fd6=_0x2b7c87['fromRange'](_0x43bb41['createRangeOn'](_0x31803b)),_0x26c880=_0x2b7c87['fromRange'](_0x43bb41['createRangeOn'](_0x6327ab));}const _0x2c4f02=Array['from'](_0x323547['getAttributes']())['filter'](([_0x2b0668])=>Be['includes'](_0x2b0668));_0x31506b['cells']['push']({'element':_0x4ca576,'attributes':_0x2c4f02['length']?Object['fromEntries'](_0x2c4f02):null}),_0x286fd6&&_0x31506b['insertionRanges']['push'](_0x286fd6),_0x26c880&&_0x31506b['deletionRanges']['push'](_0x26c880);},{'priority':'high'}),_0x4c6de8['on']('insertColumns',(_0x413afe,_0x560eff)=>{const [_0x4f4777,_0xa0b7d9={}]=_0x560eff;if(!_0x31506b)return;const _0x5be27f=_0xa0b7d9['at']||0x0,_0x51dc81=_0xa0b7d9['columns']||0x1;_0x31506b['columnInsertionIndexes']=new Array(_0x51dc81)['fill'](_0x5be27f)['map']((_0x3fc39b,_0x1db4dc)=>_0x3fc39b+_0x1db4dc);for(const {cell:_0x311121}of _0x4c6de8['createTableWalker'](_0x4f4777,{'startColumn':_0x5be27f,'endColumn':_0x5be27f+_0x51dc81-0x1}))_0x31506b['columnInsertionRanges']['push'](_0x170c7c['model']['createRangeOn'](_0x311121));},{'priority':'low'}),_0x4c6de8['on']('insertRows',(_0x1ce10f,_0x58c3a3)=>{const [_0x3240bd,_0x299488={}]=_0x58c3a3;if(!_0x31506b)return;const _0x1723b6=_0x299488['at']||0x0,_0xe189d4=_0x299488['rows']||0x1;_0x31506b['rowInsertionIndexes']=new Array(_0xe189d4)['fill'](_0x1723b6)['map']((_0x314477,_0x9fd45)=>_0x314477+_0x9fd45);for(const {cell:_0x17a6e7}of _0x4c6de8['createTableWalker'](_0x3240bd,{'startRow':_0x1723b6,'endRow':_0x1723b6+_0xe189d4-0x1}))_0x31506b['rowInsertionRanges']['push'](_0x170c7c['model']['createRangeOn'](_0x17a6e7));},{'priority':'low'}),_0xfd3715['descriptionFactory']['registerDescriptionCallback'](_0x3794da=>{if(_0x3794da['subType']&&_0x3794da['subType']['startsWith']('tablePaste'))return _0x3794da['previous']?{}:{'type':'insertion','content':c(_0x170c7c['locale'],'*Replace\x20table\x20cells*')};});const _0x5d1638=()=>!0x1;for(const _0x24da8a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xfd3715['_suggestionFactory']['registerCustomCallback']('insertion',_0x24da8a,'join',_0x5d1638),_0xfd3715['_suggestionFactory']['registerCustomCallback']('deletion',_0x24da8a,'join',_0x5d1638),_0xfd3715['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x24da8a,'join',_0x5d1638);_0xfd3715['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5d1638),_0xfd3715['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x78674c,_0x48b20f,_0x35dfb5)=>{const _0x4838a0=_0x78674c['map'](_0x1cf5ed=>_0x1cf5ed['getContainedElement']())['filter'](_0x56ebdd=>_0x56ebdd),_0x15fdf0=new Map(_0x4838a0['map'](_0x3edd90=>[_0x3edd90,null]));if(_0x31506b){for(const {element:_0x629de9,attributes:_0x30dd6f}of _0x31506b['cells'])_0x30dd6f&&_0x15fdf0['set'](_0x629de9,_0x30dd6f);}else{if(_0x35dfb5&&_0x35dfb5['markerAttributes'])for(const [_0x3ed781,_0x136cb7]of Object['entries'](_0x35dfb5['markerAttributes'])){const _0x3e57d3=_0x170c7c['model']['markers']['get'](_0x3ed781),_0x2cfa0b=_0x3e57d3?_0x3e57d3['getRange']()['getContainedElement']():null;_0x2cfa0b&&_0x15fdf0['set'](_0x2cfa0b,_0x136cb7);}}_0x170c7c['model']['change'](_0x6b93bb=>{for(const [_0x1047d0,_0x565102]of _0x15fdf0)_0x6b93bb['setAttributes']({...xe,..._0x565102},_0x1047d0);});});const _0x3982b8=(_0x37682d,_0x4fbfe7)=>{_0xfd3715['_suggestionFactory']['registerCustomCallback'](_0x37682d,'tablePaste',_0x4fbfe7,(_0x24de51,_0x4ca0fa,_0x4d3727)=>{_0x170c7c['model']['change'](_0xfafa81=>{const _0x4f94e0=[];for(const _0x2bfedb of _0x24de51){const _0x595601=_0x2bfedb['start']['nodeAfter'];_0x595601['is']('element','tableCellSuggestion')&&_0x4f94e0['push'](_0x595601);}_0xfd3715['_suggestionFactory']['getSuggestionCallback'](_0x37682d,null,_0x4fbfe7)(_0x24de51,_0x4ca0fa,_0x4d3727);for(const _0x144fe4 of _0x4f94e0)'$graveyard'!=_0x144fe4['root']['rootName']&&_0xfafa81['unwrap'](_0x144fe4);});});};_0x3982b8('insertion','accept'),_0x3982b8('insertion','discard'),_0x3982b8('deletion','accept'),_0x3982b8('deletion','discard'),_0xfd3715['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x454841=>{const _0x213f78=_0x454841['map'](_0x3cef0c=>_0x3cef0c['getContainedElement']()),_0x3d4e6d=_0x213f78[0x0]['findAncestor']('table'),{minRow:_0x144b6e,maxRow:_0x41f36d}=_0x59812d['_getCoordsForCells'](_0x213f78);_0x4c6de8['removeRows'](_0x3d4e6d,{'at':_0x144b6e,'rows':_0x41f36d-_0x144b6e+0x1});}),_0xfd3715['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d764d=>{const _0x4b8af3=_0x2d764d['map'](_0x3e7a94=>_0x3e7a94['getContainedElement']()),_0x293468=_0x4b8af3[0x0]['findAncestor']('table'),{minColumn:_0x584670,maxColumn:_0x4a0efc}=_0x59812d['_getCoordsForCells'](_0x4b8af3);_0x4c6de8['removeColumns'](_0x293468,{'at':_0x584670,'columns':_0x4a0efc-_0x584670+0x1});});const _0x33c022=(_0xccda8a,_0x493928)=>{if(!_0x493928['subType']||!_0x493928['subType']['startsWith']('tablePaste'))return;const _0x4f1a30=_0x493928['attributes']['tablePasteChainId'],_0x14ba08=_0xfd3715['getSuggestions']()['filter'](_0x4ff364=>_0x4ff364['isInContent']&&_0x4ff364['attributes']&&_0x4ff364['attributes']['tablePasteChainId']==_0x4f1a30);_0x14ba08['length']&&_0x493928['getAllAdjacentSuggestions']()['length']!=_0x14ba08['length']&&_0x14ba08['reduce']((_0x1b823f,_0x5a3ca6)=>(_0x1b823f['next']=_0x5a3ca6,_0x5a3ca6['previous']=_0x1b823f,_0x5a3ca6));};function _0x36012d(_0x39f31d,_0x1b8949=!0x0){const {id:_0x31fe18,authorId:_0x4be86d}=_0xfd3715['_splitMarkerName'](_0x39f31d['markerName']),_0x47115a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x52bcb7=_0xfd3715['activeMarkers']['includes'](_0x39f31d['markerName']);return _0x52bcb7&&_0x47115a['push']('ck-suggestion-marker--active'),{'classes':_0x47115a,'attributes':{'data-suggestion':_0x31fe18,'data-author-id':_0x4be86d},'priority':_0x52bcb7&&_0x1b8949?0xbc2:0xbb8};}_0xfd3715['on']('suggestionLoaded',_0x33c022,{'priority':'high'}),_0xfd3715['on']('suggestionUnloaded',_0x33c022,{'priority':'high'}),_0x170c7c['model']['document']['registerPostFixer'](()=>{let _0x496862=!0x1;const _0x31f312=Array['from'](_0x170c7c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3412d4,data:_0x18cbe5}of _0x31f312){const {group:_0xfd0c7a,type:_0x550f6b,id:_0x22bfd4}=_0xfd3715['_splitMarkerName'](_0x3412d4);if('suggestion'!=_0xfd0c7a||'deletion'!=_0x550f6b||_0x18cbe5['oldRange'])continue;if(!_0xfd3715['hasSuggestion'](_0x22bfd4))continue;const _0x5f9306=_0xfd3715['getSuggestion'](_0x22bfd4)['getRanges'](),_0x400964=_0x170c7c['plugins']['get']('Users')['me'];for(const _0x43d8bc of _0xfd3715['getSuggestions']()){if(!_0x43d8bc['isInContent']||_0x43d8bc['author']!=_0x400964)continue;if('formatBlock'!=_0x43d8bc['type']||'tablePasteCell'!=_0x43d8bc['subType'])continue;if(_0x43d8bc['getRanges']()['every'](_0x49c69e=>_0x5f9306['some'](_0x555071=>_0x555071['containsRange'](_0x49c69e,!0x0)))){for(const _0x1f5682 of _0x43d8bc['getAllAdjacentSuggestions']())_0x1f5682['isInContent']&&(_0x1f5682['discard'](),_0x496862=!0x0);}}}return _0x496862;}),_0x170c7c['model']['document']['registerPostFixer'](_0x54499b=>{const _0x3718be=_0x170c7c['commands']['get']('redo');if(!_0x3718be||!_0x3718be['_createdBatches']['has'](_0x54499b['batch']))return!0x1;let _0x4c4246=!0x1;const _0x554acb=_0x170c7c['plugins']['get']('Users')['me'],_0x130b30=_0x170c7c['model']['document']['differ']['getChanges'](),_0x238f0b=Array['from'](_0x170c7c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x31ce57,data:_0x193ecb})=>{const {group:_0x29a450,subType:_0x27e724,authorId:_0x3ae91a}=_0xfd3715['_splitMarkerName'](_0x31ce57);return'suggestion'==_0x29a450&&'tablePaste'==_0x27e724&&_0x3ae91a==_0x554acb['id']&&!_0x193ecb['oldRange'];});for(const _0x4e509d of _0x130b30){if('insert'!=_0x4e509d['type']||'tableCellSuggestion'!=_0x4e509d['name']||0x1!=_0x4e509d['length'])continue;const _0x1aa9bf=_0x54499b['createRange'](_0x4e509d['position'],_0x4e509d['position']['getShiftedBy'](0x1));if(!_0x238f0b['find'](({data:_0x1693d8})=>_0x1693d8['newRange']['isEqual'](_0x1aa9bf))){for(const {name:_0x4c6982,data:_0x378990}of _0x238f0b)if(_0x1aa9bf['containsRange'](_0x378990['newRange'])){_0x54499b['updateMarker'](_0x4c6982,{'range':_0x1aa9bf}),_0x4c4246=!0x0;break;}}}return _0x4c4246;}),_0x170c7c['model']['document']['registerPostFixer'](_0x28ef87=>{let _0x2e3457=!0x1;const _0x3abfe7=_0x170c7c['plugins']['get']('Users')['me'],_0x2b426a=_0xfd3715['getSuggestions']()['filter'](_0x137a0a=>_0x137a0a['isInContent']&&_0x137a0a['author']==_0x3abfe7),_0x49f5ae=new Set(),_0x279fe2=new Set();for(const _0x997be6 of _0x2b426a)if('tablePaste'==_0x997be6['subType'])for(const _0x5c708d of _0x997be6['getMarkers']()){const _0x2dd542=_0x5c708d['getRange']()['getContainedElement']();if(_0x2dd542){if(_0x2dd542['is']('element','tableCellSuggestion')&&Oe(_0x2dd542)){_0x997be6['removeMarker'](_0x5c708d['name']),_0x49f5ae['add'](_0x2dd542),_0x2e3457=!0x0;const _0x2b4e8b=_0x2dd542['nextSibling'],_0x35d99e=_0x2dd542['previousSibling'],_0x233f1d=_0x2b4e8b&&_0x2b4e8b['is']('element','tableCellSuggestion'),_0x5b9df1=_0x35d99e&&_0x35d99e['is']('element','tableCellSuggestion');_0x233f1d&&!_0x49f5ae['has'](_0x2b4e8b)&&_0x279fe2['add'](_0x2b4e8b),_0x5b9df1&&!_0x49f5ae['has'](_0x35d99e)&&_0x279fe2['add'](_0x35d99e);}else _0x2dd542['is']('element','paragraph')&&_0x2dd542['isEmpty']&&(_0x997be6['removeMarker'](_0x5c708d['name']),_0x2e3457=!0x0);}}else{if('tablePasteCell'==_0x997be6['subType']){if(!_0x997be6['attributes']||!_0x997be6['attributes']['tablePasteChainId'])continue;const _0x1bb90a=_0x997be6['attributes']['markerAttributes'];if(_0x1bb90a&&Object['keys'](_0x1bb90a)['length'])continue;const _0x2d6518=_0x997be6['attributes']['tablePasteChainId'];let _0x438d38=!0x0,_0x9dd35f=!0x0;for(const _0x30cb2c of _0x2b426a)if(_0x30cb2c['subType']&&_0x30cb2c['subType']['startsWith']('tablePaste')){if(!_0x30cb2c['attributes']['tablePasteChainId']){_0x9dd35f=!0x1;break;}if(_0x30cb2c['id']!=_0x997be6['id']&&_0x30cb2c['attributes']['tablePasteChainId']==_0x2d6518){_0x438d38=!0x1;break;}}_0x9dd35f&&_0x438d38&&(_0x997be6['removeMarkers'](),_0x2e3457=!0x0);}}for(const _0x5bb80f of _0x49f5ae)_0x28ef87['remove'](_0x5bb80f);for(const _0x4334ba of _0x279fe2)_0x28ef87['unwrap'](_0x4334ba);return _0x2e3457;}),_0x170c7c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5186cd=>_0x36012d(_0x5186cd),'converterPriority':'high'}),_0x170c7c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3c562d,_0x404b20)=>_0x404b20['options']['showSuggestionHighlights']?_0x36012d(_0x3c562d,!0x1):null,'converterPriority':'high'});const _0x215ac2=_0x170c7c['editing']['view'];this['listenTo'](_0x215ac2['document'],'clipboardOutput',(_0x47d70a,_0x525b4e)=>{const _0xba4f06=[];for(const _0x57aa63 of _0x215ac2['createRangeIn'](_0x525b4e['content'])['getItems']())_0x57aa63['is']('element','suggestion-td')&&_0xba4f06['push'](_0x57aa63);_0x215ac2['change'](_0xfe97c=>{for(const _0xd72b2a of _0xba4f06)_0xfe97c['move'](_0xfe97c['createRangeIn'](_0xd72b2a),_0xfe97c['createPositionBefore'](_0xd72b2a)),_0xfe97c['remove'](_0xd72b2a);});});}}function Oe(_0xa2d13d){if(_0xa2d13d['isEmpty'])return!0x0;const _0x2b11e0=_0xa2d13d['getChild'](0x0);return _0x2b11e0['is']('element','paragraph')&&_0x2b11e0['isEmpty'];}function Ue(_0x45f82d,_0x16e7cd={},_0x508a3e){for(const {isAnchor:_0x50885f,cellHeight:_0x5698a4,cellWidth:_0x1f6a69}of _0x508a3e['createTableWalker'](_0x45f82d,{'includeAllSlots':!0x0,..._0x16e7cd}))if(!_0x50885f||0x1!=_0x5698a4||0x1!=_0x1f6a69)return!0x1;return!0x0;}class $t extends _0x368c11{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2ad4ce=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ad4ce['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2ad4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2ad4ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2ad4ce['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2ad4ce['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2ad4ce['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x395f2e,_0x563176){const _0x52c961=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c1491=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4f3012=_0x563176['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x30085f=_0x2c1491['getColumnGroupElement'](_0x4f3012);let _0x379cc3=_0x30085f?_0x2c1491['getTableColumnsWidths'](_0x30085f):null,_0x5cbbc7=_0x4f3012['getAttribute']('tableWidth')||null;const _0x3cd7e6=_0x563176['tableWidth']||_0x5cbbc7,_0xd634e9=_0x563176['columnWidths']||_0x379cc3,_0x56e658=this['editor']['plugins']['get']('Users')['me'];for(const _0xfaaace of _0x52c961['getSuggestions']()){const _0x194b5b=_0xfaaace['getContainedElement']();if('resizeTable'===_0xfaaace['subType']&&_0x194b5b===_0x4f3012){_0xfaaace['author']!==_0x56e658&&_0xfaaace['discard']();const _0x20ce69=_0xfaaace['data']['commandParams'];_0x5cbbc7=_0x20ce69[0x0]['tableWidth'],_0x379cc3=_0x20ce69[0x0]['columnWidths'];break;}}_0x395f2e({'table':_0x4f3012,'tableWidth':_0x3cd7e6,'columnWidths':_0xd634e9}),_0x52c961['markBlockFormat'](_0x4f3012,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5cbbc7,'columnWidths':_0x379cc3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xf5c9f7){if('formatBlock'!=_0xf5c9f7['type']&&'formatInline'!=_0xf5c9f7['type'])return;const {data:_0x112992}=_0xf5c9f7;if(_0x112992&&'resizeTable'===_0x112992['formatGroupId']){const _0x3406e6='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3406e6)};}}}class Bt extends _0x368c11{['afterInit'](){const _0x29121a=this['editor'];_0x29121a['plugins']['has']('Template')&&_0x29121a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x368c11{['afterInit'](){const _0x1d1053=this['editor'];if(!_0x1d1053['commands']['get']('insertTableOfContents'))return;_0x1d1053['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x528668=_0x1d1053['plugins']['get']('TrackChangesEditing'),_0x4d3e28=_0x1d1053['locale'];_0x528668['descriptionFactory']['registerElementLabel']('tableOfContents',_0x28960b=>c(_0x4d3e28,'ELEMENT_TABLE_OF_CONTENTS',_0x28960b));}}class Rt extends _0x368c11{['afterInit'](){const _0x15d0ff=this['editor'];if(!_0x15d0ff['plugins']['has']('Title'))return;const _0x35e98d=_0x15d0ff['plugins']['get']('TrackChangesEditing');_0x35e98d['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x15d0ff['locale'],'ELEMENT_TITLE')),_0x15d0ff['model']['document']['registerPostFixer'](_0x3c1ed1=>{let _0x5d7531=!0x1;const _0x380892=Array['from'](_0x15d0ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22eb1c,data:_0xc33a27}of _0x380892){const {group:_0x18af40}=_0x35e98d['_splitMarkerName'](_0x22eb1c);if('suggestion'!==_0x18af40||!_0xc33a27['newRange'])continue;const _0x419c15=_0xc33a27['newRange'],_0x16b120=_0x419c15['end']['nodeBefore'];if(!_0x16b120||!_0x16b120['is']('element','title-content'))continue;if(!_0x419c15['start']['isTouching'](_0x419c15['end']))continue;const _0x3c53e8=_0x15d0ff['model']['schema']['getNearestSelectionRange'](_0x419c15['end'],'forward');if(_0x3c53e8&&_0x3c53e8['isCollapsed']){const _0x46862b=_0x3c1ed1['createRange'](_0x419c15['start'],_0x3c53e8['start']);_0x46862b['isEqual'](_0x419c15)||(_0x3c1ed1['updateMarker'](_0x22eb1c,{'range':_0x46862b}),_0x5d7531=!0x0);}_0x5d7531||(_0x3c1ed1['removeMarker'](_0x22eb1c),_0x5d7531=!0x0);}return _0x5d7531;});}}class xt extends _0x368c11{['afterInit'](){const _0x578be5=this['editor'],_0x5d7374=_0x578be5['plugins']['get']('TrackChangesEditing');_0x578be5['plugins']['has']('Uploadcare')&&(_0x5d7374['enableCommand']('uploadcare'),_0x578be5['plugins']['has']('UploadcareImageEdit')&&(_0x5d7374['enableCommand']('uploadcareImageEdit'),_0x5d7374['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5d7374['registerBlockAttribute']('uploadcareImageId'),_0x5d7374['descriptionFactory']['registerDescriptionCallback'](_0x228753=>{if('attribute'!=_0x228753['type'])return;const {data:_0x1a99b0}=_0x228753;return _0x1a99b0&&'uploadcareImageId'==_0x1a99b0['key']?{'type':'format','content':''}:void 0x0;})));}}class Tt extends _0x368c11{['afterInit'](){const _0x2727c6=this['editor'],_0x3835ba=_0x2727c6['plugins']['get']('TrackChangesEditing');_0x2727c6['plugins']['has']('UndoEditing')&&(_0x3835ba['enableCommand']('undo'),_0x3835ba['enableCommand']('redo'));}}class Et extends _0x368c11{static get['requires'](){return[Ct];}['afterInit'](){const _0x2c7928=this['editor'];if(!_0x2c7928['plugins']['has']('TableCaptionEditing'))return;_0x2c7928['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x368c11{['tableProperties'];['tableCellProperties'];constructor(_0x3d1ab0){super(_0x3d1ab0),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x325678=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3f709f of this['tableProperties'])_0x325678['enableCommand'](_0x3f709f,(_0x3977c2,_0x21737e)=>{const _0x53ebc1=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3f709f,[_0x53ebc1],this['tableProperties'],'tableProperties',_0x3977c2,_0x21737e);});_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x325678['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x103da8,_0x28c3fa)=>this['handleDiscardAction'](this['tableProperties'],_0x103da8,_0x28c3fa)),_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x55fa7a of this['tableCellProperties'])_0x325678['enableCommand'](_0x55fa7a,(_0x19ef88,_0x5a8afc)=>{const _0x324194=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x55fa7a,_0x324194,this['tableCellProperties'],'tableCellProperties',_0x19ef88,_0x5a8afc);});_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x325678['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f48c9,_0x50c167)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f48c9,_0x50c167)),_0x325678['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x325678['descriptionFactory']['registerDescriptionCallback'](_0x205de0=>this['handleSuggestionDescription'](_0x205de0));}['_handlePropertyChange'](_0x4ebc83,_0x1dbec2,_0x1f3a0b,_0x538307,_0x529cf9,_0x1a9eb1){const _0x2a81e9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1a9eb1['batch'],()=>{for(const _0x57c349 of _0x1dbec2){if(this['_getSuggestion'](_0x57c349,_0x538307))_0x529cf9(_0x1a9eb1);else{const _0x5be484={};for(const _0x98c2 of _0x1f3a0b){const _0x5f4abe=_0x57c349['getAttribute'](_0x98c2);void 0x0!==_0x5f4abe&&(_0x5be484[_0x98c2]=_0x5f4abe);}_0x529cf9(_0x1a9eb1),_0x2a81e9['markBlockFormat'](_0x57c349,{'commandParams':[_0x5be484]},[],_0x538307);}}});}['handleDiscardAction'](_0x70476b,_0x1de2cf,_0x500484){const _0x18c0e9=_0x1de2cf[0x0]['start']['nodeAfter'],_0x10b4ca=_0x500484['commandParams'][0x0];this['editor']['model']['change'](_0x2ca1be=>{for(const _0x308251 of _0x70476b)void 0x0!==_0x10b4ca[_0x308251]?_0x2ca1be['setAttribute'](_0x308251,_0x10b4ca[_0x308251],_0x18c0e9):_0x2ca1be['removeAttribute'](_0x308251,_0x18c0e9);});}['handleSuggestionDescription'](_0x4e308d){if(_0x4e308d['data'])switch(_0x4e308d['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3daa58,_0x92aef6){const _0x4ff7ec=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x438a2f of _0x4ff7ec['getSuggestions']({'skipNotAttached':!0x0})){const _0x5a3254=_0x438a2f['getContainedElement']();if(_0x438a2f['subType']===_0x92aef6&&_0x5a3254===_0x3daa58)return _0x438a2f;}return null;}}const u='$elementName';class p extends _0x368c11{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x329083,_0x56125d,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,xt,Tt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x283880){super(_0x283880),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x384da4,_0x367c64,_0x571684,_0x33905c)=>{this['_model']['change'](()=>{for(const _0xed5db8 of[..._0x33905c,..._0x571684])this['_model']['markers']['has'](_0xed5db8)&&_0x283880['editing']['reconvertMarker'](_0xed5db8);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ft(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x283880['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x283880['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x283880['config']['get']('trackChanges.trackFormatChanges'),_0x283880['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x283880['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x283880,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x328940=this['editor'],_0x491416=(_0xc4674b,_0x763578)=>{if('attribute'!=_0xc4674b)return'ck-suggestion-marker-'+_0xc4674b;const _0x27bf01=_0x763578['split']('|')[0x0];return this['_isBlockAttribute'](_0x27bf01)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x328940['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x32bc20=>{const {id:_0x108496,authorId:_0x5a1596,type:_0x1ff4ca,subType:_0x29f339}=this['_splitMarkerName'](_0x32bc20['markerName']),_0x2e7db8=['ck-suggestion-marker',_0x491416(_0x1ff4ca,_0x29f339)];let _0x5e539e=0xbb8;return this['activeMarkers']['includes'](_0x32bc20['markerName'])&&(_0x2e7db8['push']('ck-suggestion-marker--active'),_0x5e539e=0xbc2),'deletion'==_0x1ff4ca&&(_0x5e539e+=0x5),{'classes':_0x2e7db8,'attributes':{'data-suggestion':_0x108496,'data-author-id':_0x5a1596},'priority':_0x5e539e};}}),_0x328940['conversion']['for']('dataDowncast')['add'](_0x557794=>{_0x557794['on']('addMarker:suggestion',(_0xc07096,_0x114586,_0x5b7aff)=>{if(!_0x5b7aff['options']['showSuggestionHighlights'])return;const _0x210ac4=_0x114586['item'];if(!_0x210ac4)return;const _0xf7b221=_0x5b7aff['mapper']['toViewElement'](_0x210ac4);_0x328940['model']['schema']['isObject'](_0x210ac4)&&_0xf7b221&&!_0xf7b221['getCustomProperty']('widget')&&_0xf7b221['is']('containerElement')&&_0x3d756d(_0xf7b221,_0x5b7aff['writer']);},{'priority':'high'});}),_0x328940['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x589cfe,_0x55d4ba)=>{if(!_0x55d4ba['options']['showSuggestionHighlights'])return null;const {type:_0x35bf02,subType:_0x46d866}=this['_splitMarkerName'](_0x589cfe['markerName']);return{'classes':['ck-suggestion-marker',_0x491416(_0x35bf02,_0x46d866)],'priority':0xbb8};}});const _0x1a1f57=({showActiveMarkers:_0x39c1af=!0x0,isAttributeSuggestion:_0x42a7ba=!0x1}={})=>(_0x83de82,_0x2362a2,_0x31e3b7)=>{if(!_0x2362a2['item'])return;const {id:_0x20cefe,authorId:_0x5207ad}=this['_splitMarkerName'](_0x2362a2['markerName']);if(_0x42a7ba){const _0x1e5682=this['_suggestions']['get'](_0x20cefe),_0xe6b966=this['_getAttributeKey'](_0x1e5682);if(!this['_isBlockAttribute'](_0xe6b966))return;}if(_0x2362a2['item']['is']('selection'))return void _0x31e3b7['consumable']['consume'](_0x2362a2['item'],_0x83de82['name']);const _0x3778a2=_0x31e3b7['mapper']['toViewElement'](_0x2362a2['item']);if(_0x2362a2['item']['is']('element')&&_0x328940['model']['schema']['isBlock'](_0x2362a2['item'])&&!_0x3778a2['getCustomProperty']('addHighlight')){_0x31e3b7['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3778a2),_0x31e3b7['writer']['setAttribute']('data-suggestion',_0x20cefe,_0x3778a2),_0x31e3b7['writer']['setAttribute']('data-author-id',_0x5207ad,_0x3778a2),_0x31e3b7['mapper']['bindElementToMarker'](_0x3778a2,_0x2362a2['markerName']),_0x39c1af&&(this['activeMarkers']['includes'](_0x2362a2['markerName'])?_0x31e3b7['writer']['addClass']('ck-suggestion-marker--active',_0x3778a2):_0x31e3b7['writer']['removeClass']('ck-suggestion-marker--active',_0x3778a2));for(const _0xd22043 of _0x328940['model']['createRangeIn'](_0x2362a2['item'])['getItems']())_0x31e3b7['consumable']['consume'](_0xd22043,_0x83de82['name']);_0x31e3b7['consumable']['consume'](_0x2362a2['item'],_0x83de82['name']);}};_0x328940['conversion']['for']('dataDowncast')['add'](_0x5a4a85=>{_0x5a4a85['on']('addMarker:suggestion:formatBlock',(_0x18a360,_0x3d89dd,_0x5fbe38)=>{_0x5fbe38['options']['showSuggestionHighlights']&&_0x1a1f57({'showActiveMarkers':!0x1})(_0x18a360,_0x3d89dd,_0x5fbe38);},{'priority':'highest'});}),_0x328940['conversion']['for']('dataDowncast')['add'](_0x59c9e2=>{_0x59c9e2['on']('addMarker:suggestion:attribute',(_0x1425da,_0x3756c2,_0x18a6e3)=>{_0x18a6e3['options']['showSuggestionHighlights']&&_0x1a1f57({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1425da,_0x3756c2,_0x18a6e3);},{'priority':'highest'});}),_0x328940['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x58609f,_0x238af9)=>_0x238af9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x58609f['substr'](0xb)}}),_0x328940['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xeba576,{writer:_0xf945be})=>{let _0x269464='suggestion:'+_0xeba576['getAttribute']('suggestion-type')+':'+_0xeba576['getAttribute']('id');return _0xeba576['getAttribute']('marker-count')&&(_0x269464+=':'+_0xeba576['getAttribute']('marker-count')),_0xf945be['createElement']('$marker',{'data-name':_0x269464});}}),_0x328940['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x328940['conversion']['for']('editingDowncast')['add'](_0x5b6615=>{_0x5b6615['on']('addMarker:suggestion:formatBlock',_0x1a1f57(),{'priority':'high'});}),_0x328940['conversion']['for']('editingDowncast')['add'](_0x20a095=>{_0x20a095['on']('addMarker:suggestion:attribute',_0x1a1f57({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x328940['conversion']['for']('editingDowncast')['add'](_0x45c229=>{_0x45c229['on']('removeMarker:suggestion:formatBlock',(_0x5107b5,_0x4dc822,_0x3d34ac)=>{const _0x3d4a71=_0x3d34ac['mapper']['markerNameToElements'](_0x4dc822['markerName']);if(_0x3d4a71){for(const _0x5526f6 of _0x3d4a71)_0x5526f6['getCustomProperty']('addHighlight')||(_0x3d34ac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5526f6),_0x3d34ac['writer']['removeAttribute']('data-suggestion',_0x5526f6),_0x3d34ac['writer']['removeAttribute']('data-author-id',_0x5526f6),_0x3d34ac['mapper']['unbindElementFromMarkerName'](_0x5526f6,_0x4dc822['markerName']));}},{'priority':'high'});}),_0x328940['conversion']['for']('editingDowncast')['add'](_0x106814=>{_0x106814['on']('removeMarker:suggestion:attribute',(_0x3f5f38,_0x41c372,_0x584885)=>{const _0x4757a2=_0x584885['mapper']['markerNameToElements'](_0x41c372['markerName']);if(!_0x4757a2)return;const {id:_0x2830a5}=this['_splitMarkerName'](_0x41c372['markerName']),_0x26eb84=this['_suggestions']['get'](_0x2830a5),_0x2fb333=this['_getAttributeKey'](_0x26eb84);if(this['_isBlockAttribute'](_0x2fb333)){for(const _0x1018ec of _0x4757a2)_0x1018ec['getCustomProperty']('addHighlight')||(_0x584885['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1018ec),_0x584885['writer']['removeAttribute']('data-suggestion',_0x1018ec),_0x584885['writer']['removeAttribute']('data-author-id',_0x1018ec),_0x584885['mapper']['unbindElementFromMarkerName'](_0x1018ec,_0x41c372['markerName']));}},{'priority':'high'});}),_0x328940['model']['document']['registerPostFixer'](_0x164dc8=>{let _0x435ed4=!0x1;const _0x203de7=Array['from'](_0x328940['model']['document']['differ']['getChangedMarkers']()),_0x4fab9c=new Set();for(const {name:_0x5806bb,data:_0x14a596}of _0x203de7){const {group:_0x4e771a,type:_0x366d10,subType:_0x1031c5,id:_0x2fef70}=this['_splitMarkerName'](_0x5806bb);if('suggestion'!==_0x4e771a)continue;const _0x122288=this['_suggestions']['get'](_0x2fef70);if(null!=_0x14a596['newRange']){'formatInline'==_0x366d10&&(_0x435ed4=_0x435ed4||Lt(_0x14a596['newRange'],_0x5806bb,_0x164dc8,_0x328940['model']['schema']));const _0x225e06='attribute'==_0x366d10&&this['_isBlockAttribute'](_0x1031c5['split']('|')[0x0]);if(_0x14a596['newRange']['isCollapsed']||'$graveyard'==_0x14a596['newRange']['root']['rootName']||'formatBlock'==_0x366d10&&!Kt(_0x14a596['newRange'])||_0x225e06&&!Kt(_0x14a596['newRange'])||'deletion'==_0x366d10&&!(!Gt(_0x2875b8=_0x14a596['newRange'])&&!function(_0x387610){return _0x387610['start']['parent']==_0x387610['end']['nodeBefore']&&_0x387610['start']['isAtEnd'];}(_0x2875b8)))_0x164dc8['removeMarker'](_0x5806bb),_0x435ed4=!0x0;else{if(!_0x122288||!_0x122288['isInContent'])continue;if(_0x14a596['newRange']&&_0x14a596['oldRange']&&_0x14a596['newRange']['isEqual'](_0x14a596['oldRange']))continue;_0x4fab9c['add'](_0x122288);}}}var _0x2875b8;return _0x4fab9c['size']>0x0&&(_0x435ed4=!!this['_joinWithAdjacentSuggestions'](_0x4fab9c)||_0x435ed4),_0x435ed4;}),_0x328940['model']['document']['registerPostFixer'](_0x436fd1=>{let _0x33eae4=!0x1;for(const _0x37b904 of _0x328940['model']['document']['differ']['getChanges']())if('insert'==_0x37b904['type'])for(const _0x1cf8a0 of this['_suggestions']['values']()){if(_0x1cf8a0['isMultiRange']||!_0x1cf8a0['isInContent'])continue;const _0x1c41ff='formatBlock'==_0x1cf8a0['type'],_0x30294b=this['_getAttributeKey'](_0x1cf8a0),_0x5290e9=_0x30294b&&this['_isBlockAttribute'](_0x30294b);if(!_0x1c41ff&&!_0x5290e9)continue;const _0x4ab65a=_0x1cf8a0['getFirstRange']();if(_0x4ab65a['start']['parent']!=_0x4ab65a['end']['parent']&&!_0x4ab65a['end']['isAtEnd']){const _0x136282=_0x328940['model']['createPositionAt'](_0x4ab65a['start']['nodeAfter'],'end'),_0x650359=_0x328940['model']['createRange'](_0x4ab65a['start'],_0x136282);_0x436fd1['updateMarker'](_0x1cf8a0['getFirstMarker'](),{'range':_0x650359}),_0x33eae4=!0x0;}}return _0x33eae4;}),_0x328940['model']['document']['registerPostFixer'](_0xe003cb=>this['_processAttributeChanges'](_0xe003cb)),_0x328940['model']['document']['registerPostFixer'](_0x122381=>!_0x122381['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x122381)),_0x328940['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x328940['model']['document']['on']('change:data',(_0x102fcc,_0x24b4bf)=>{if(!_0x24b4bf['isLocal']||_0x24b4bf['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1db725=_0x328940['model']['document']['differ']['getChanges']();if(0x0==_0x1db725['length'])return;const _0xd408dc=[],_0x5915da=_0x1db725['filter'](_0x44044f=>'attribute'==_0x44044f['type']),_0x3392f2=_0x1db725['filter'](_0x4da978=>'insert'==_0x4da978['type']&&'$text'!=_0x4da978['name']);for(const _0x70f007 of _0x5915da)this['_isRegisteredAttribute'](_0x70f007['attributeKey'])&&_0xd408dc['push']({'key':_0x70f007['attributeKey'],'newValue':_0x70f007['attributeNewValue'],'oldValue':_0x70f007['attributeOldValue'],'range':Ht(_0x70f007['range'],_0x328940['model'])});for(const _0x5e5128 of _0x3392f2){if('rename'!=_0x5e5128['action']&&'refresh'!=_0x5e5128['action'])continue;const _0x451793=qt(_0x5e5128['position']['nodeAfter'],_0x328940['model']),_0x533bfb=_0x5e5128['before'];'rename'==_0x5e5128['action']&&_0xd408dc['push']({'key':u,'newValue':_0x5e5128['name'],'oldValue':_0x533bfb['name'],'range':_0x451793});for(const [_0xb91a83,_0x22d7bd]of _0x533bfb['attributes']){if(!this['_isRegisteredAttribute'](_0xb91a83))continue;const _0x14a5c9=_0x5e5128['attributes']['get'](_0xb91a83);_0x22d7bd!==_0x14a5c9&&_0xd408dc['push']({'key':_0xb91a83,'newValue':_0x14a5c9,'oldValue':_0x22d7bd,'range':_0x451793});}for(const [_0x2a22c0,_0x21224a]of _0x5e5128['attributes'])this['_isRegisteredAttribute'](_0x2a22c0)&&(_0x533bfb['attributes']['has'](_0x2a22c0)||_0xd408dc['push']({'key':_0x2a22c0,'newValue':_0x21224a,'oldValue':null,'range':_0x451793}));}0x0!=_0xd408dc['length']&&_0x328940['model']['enqueueChange'](_0x24b4bf,_0x225cc8=>{const _0x58edaf=_0x2ea4c3();for(const {range:_0x59b6ce,key:_0x8a860e,oldValue:_0x38c424,newValue:_0x351ecf}of _0xd408dc)this['markAttributeChange'](_0x59b6ce,_0x8a860e,_0x38c424,_0x351ecf,{'groupId':_0x58edaf});this['_reduceExistingSuggestions'](_0x225cc8,_0xd408dc);});},{'priority':'lowest'}),_0x328940['model']['markers']['on']('update:suggestion',(_0x138dcb,_0x1c5c72,_0x45bdfa)=>{if(null==_0x45bdfa){const {id:_0x388df4}=this['_splitMarkerName'](_0x1c5c72['name']),_0x9d04c7=this['_suggestions']['get'](_0x388df4);_0x9d04c7&&_0x9d04c7['addMarkerName'](_0x1c5c72['name']);}}),_0x328940['model']['document']['on']('change:data',()=>{const _0x5a8230=Array['from'](_0x328940['model']['document']['differ']['getChangedMarkers']())['filter'](_0x13e1c1=>'suggestion'===this['_splitMarkerName'](_0x13e1c1['name'])['group']);if(0x0===_0x5a8230['length'])return;_0x5a8230['sort']((_0x271328,_0x43df6d)=>{const _0x1455cf=_0x271328['data']['oldRange'],_0x1a580a=_0x43df6d['data']['oldRange'];return null===_0x1455cf&&null===_0x1a580a?0x0:null===_0x1455cf&&null!==_0x1a580a?-0x1:null!==_0x1455cf&&null===_0x1a580a?0x1:_0x1455cf['start']['isBefore'](_0x1a580a['start'])?-0x1:0x1;});const _0x28f757=new Set(),_0x42642f=new Set();for(const {name:_0x49d5e9,data:_0x4d5da0}of _0x5a8230){const {id:_0x348e12}=this['_splitMarkerName'](_0x49d5e9);if(null===_0x4d5da0['oldRange']){const _0x116d06=this['_handleNewSuggestionMarker'](_0x49d5e9);_0x42642f['add'](_0x116d06);}else{const _0x3d99bd=this['_suggestions']['get'](_0x348e12);null!==_0x4d5da0['newRange']||_0x3d99bd['isInContent']?(_0x28f757['add'](_0x3d99bd['head']),_0x42642f['add'](_0x3d99bd)):this['_removeSuggestion'](_0x3d99bd);}}_0x42642f['size']>0x0&&this['_refreshSuggestionsChain'](_0x42642f);for(const _0x3541e4 of _0x28f757)this['fire']('suggestionChanged',_0x3541e4);}),_0x328940['model']['on']('applyOperation',(_0x60385a,_0x273396)=>{const _0x2cadaa=_0x273396[0x0];if(!this['_suggestions']['size'])return;if(!_0x2cadaa['isDocumentOperation'])return;if(_0x2cadaa['batch']['isUndo']||!_0x2cadaa['batch']['isLocal'])return;let _0x23bde4,_0x1a290f;switch(_0x2cadaa['type']){case'insert':_0x23bde4=_0x328940['model']['createPositionAt'](_0x2cadaa['position']),_0x1a290f=_0x23bde4['getShiftedBy'](_0x2cadaa['howMany']);break;case'split':_0x23bde4=_0x328940['model']['createPositionAt'](_0x2cadaa['splitPosition']),_0x1a290f=_0x328940['model']['createPositionAt'](_0x2cadaa['moveTargetPosition']);break;case'move':_0x23bde4=_0x328940['model']['createPositionAt'](_0x2cadaa['targetPosition']),_0x1a290f=_0x23bde4['getShiftedBy'](_0x2cadaa['howMany']);break;default:return;}const _0x5a0525=_0x328940['model']['createRange'](_0x23bde4,_0x1a290f);_0x328940['model']['change'](()=>{for(const {suggestion:_0x1e638c,meta:_0x178879}of this['_findSuggestions'](_0x5a0525)){if(_0x1e638c['isMultiRange'])continue;if('formatInline'==_0x1e638c['type'])continue;const _0x47b795=this['_getAttributeKey'](_0x1e638c);if(_0x47b795&&this['_isBlockAttribute'](_0x47b795)&&'split'!=_0x2cadaa['type'])continue;const _0x54d4d1=_0x1e638c['data']&&_0x1e638c['data']['multipleBlocks'];('formatBlock'!=_0x1e638c['type']||'split'==_0x2cadaa['type']&&!_0x54d4d1)&&(_0x178879['containsRangeInObject']||'insertion'==_0x1e638c['type']&&_0x178879['isOwn']||_0x1e638c['getFirstRange']()['containsRange'](_0x5a0525)&&this['_breakSuggestionMarker'](_0x1e638c,_0x23bde4,_0x1a290f));}});},{'priority':'lowest'}),_0x328940['model']['on']('deleteContent',(_0x1ff2ee,_0x53d0e)=>{const _0x210c45=_0x53d0e[0x0],_0xa4d31e=_0x53d0e[0x1];if(_0xa4d31e&&_0xa4d31e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x210c45['isCollapsed'])return;const _0x412cb0=_0x328940['model']['schema'],{start:_0x52144c,end:_0x1b7670}=_0x210c45['getFirstRange'](),_0x684a3f=_0x52144c['nodeAfter']&&_0x412cb0['isLimit'](_0x52144c['nodeAfter'])?null:_0x412cb0['getNearestSelectionRange'](_0x52144c,'forward'),_0x2e98fb=_0x1b7670['nodeBefore']&&_0x412cb0['isLimit'](_0x1b7670['nodeBefore'])?null:_0x412cb0['getNearestSelectionRange'](_0x1b7670,'backward'),_0x39432d=_0x328940['model']['createRange'](_0x684a3f?_0x684a3f['start']:_0x52144c,_0x2e98fb?_0x2e98fb['end']:_0x1b7670);_0x328940['model']['change'](_0x649136=>{this['markDeletion'](_0x39432d);const _0x363acf=_0x328940['model']['schema']['getNearestSelectionRange'](_0x39432d['start']);_0x210c45['is']('documentSelection')?_0x649136['setSelection'](_0x363acf):_0x210c45['setTo'](_0x363acf);}),_0x1ff2ee['stop']();},{'priority':_0x79d5b2['normal']+0xa}),_0x328940['model']['on']('insertContent',(_0x4af07c,_0x539d7c)=>{const _0x352148=_0x539d7c[_0x539d7c['length']-0x1];_0x352148&&_0x352148['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x328940['model']['change'](()=>{let _0x33cf4b=_0x328940['model']['insertContent'](_0x539d7c[0x0],_0x539d7c[0x1],_0x539d7c[0x2],{'forceDefaultExecution':!0x0});if(!_0x33cf4b)return;_0x4af07c['return']=_0x33cf4b['clone']();const _0x2433ab=_0x33cf4b['end']['nodeBefore'],_0xec26ee=_0x328940['model']['schema'];_0x2433ab&&_0xec26ee['isBlock'](_0x2433ab)&&!_0xec26ee['isObject'](_0x2433ab)&&(_0x33cf4b=_0x328940['model']['createRange'](_0x33cf4b['start'],_0x328940['model']['createPositionAt'](_0x2433ab,'end'))),this['markInsertion'](_0x33cf4b);}),_0x4af07c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1260a5=new O(_0x328940,this['_suggestions']);_0x328940['commands']['add']('acceptSuggestion',_0x1260a5),this['enableCommand']('acceptSuggestion');const _0x3f6213=new R(_0x328940,this['_suggestions']);_0x328940['commands']['add']('discardSuggestion',_0x3f6213),this['enableCommand']('discardSuggestion'),_0x328940['commands']['add']('acceptAllSuggestions',new x(_0x328940,_0x1260a5,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x328940['commands']['add']('discardAllSuggestions',new x(_0x328940,_0x3f6213,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x328940['commands']['add']('acceptSelectedSuggestions',new E(_0x328940,_0x1260a5,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x328940['commands']['add']('discardSelectedSuggestions',new E(_0x328940,_0x3f6213,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5961c4=_0x328940['plugins']['get']('CommentsRepository');this['listenTo'](_0x5961c4,'addComment',(_0x4b7869,{threadId:_0x5e2bad})=>{const _0x28d03e=this['_suggestions']['get'](_0x5e2bad);_0x28d03e&&_0x28d03e['commentThread']&&0x1===_0x28d03e['commentThread']['length']&&this['_updateSuggestionData'](_0x5e2bad,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5961c4,'removeComment',(_0x1e9423,{threadId:_0x235c40})=>{const _0x5d8fea=this['_suggestions']['get'](_0x235c40);_0x5d8fea&&_0x5d8fea['commentThread']&&!_0x5d8fea['commentThread']['length']&&this['_updateSuggestionData'](_0x235c40,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2f902d){const _0x1a0865=_0x56f17e([0x4a,0x46,0x72,0x70,0x61,0x36,0x48,0x56,0x44,0x64,0x66,0x71,0x75,0x67,0x6b,0x33,0x50,0x6f,0x4c,0x49,0x34,0x55,0x78,0x41,0x53,0x68,0x38,0x73,0x4e,0x58,0x42,0x62,0x7a,0x35,0x5a,0x69,0x31,0x74,0x52,0x6e,0x6d,0x39,0x32,0x59,0x47,0x30,0x65,0x4d,0x77,0x63,0x45,0x6c,0x76,0x4b,0x79,0x51,0x57,0x54,0x37,0x43,0x4f,0x6a]),_0x19609d=0x7f592dba,_0x443e6e=0x7f5e4f2a^_0x19609d,_0x16c835=window[_0x56f17e([0x44,0x61,0x74,0x65])][_0x56f17e([0x6e,0x6f,0x77])](),_0x4cbcd1=_0x2f902d[_0x56f17e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5b438f=new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c41fc=>{_0x4cbcd1[_0x56f17e([0x6f,0x6e,0x63,0x65])](_0x56f17e([0x72,0x65,0x61,0x64,0x79]),_0x5c41fc);}),_0x1c1661={[_0x56f17e([0x6b,0x74,0x79])]:_0x56f17e([0x45,0x43]),[_0x56f17e([0x75,0x73,0x65])]:_0x56f17e([0x73,0x69,0x67]),[_0x56f17e([0x63,0x72,0x76])]:_0x56f17e([0x50,0x2d,0x32,0x35,0x36]),[_0x56f17e([0x78])]:_0x56f17e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x56f17e([0x79])]:_0x56f17e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x56f17e([0x61,0x6c,0x67])]:_0x56f17e([0x45,0x53,0x32,0x35,0x36])},_0x4ebab9=_0x4cbcd1[_0x56f17e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56f17e([0x67,0x65,0x74])](_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3da704(){let _0x4b7bbf,_0x176cfe=null,_0x3f8d19=null;try{if(_0x4ebab9==_0x56f17e([0x47,0x50,0x4c]))return _0x56f17e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4b7bbf=_0x374a79(),!_0x4b7bbf)return _0x56f17e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4b7bbf[_0x56f17e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3f8d19=_0x5a18a8(_0x4b7bbf[_0x56f17e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4b7bbf[_0x56f17e([0x6a,0x74,0x69])])),await _0x3f5d31()?_0x24882a()?_0x1b0063()?_0x56f17e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3c1d72()?(_0x4b7bbf[_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56f17e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x176cfe=_0x3607ea(_0x56f17e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4b7bbf[_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56f17e([0x74,0x72,0x69,0x61,0x6c])&&(_0x176cfe=_0x3607ea(_0x56f17e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5c0d87()):_0x56f17e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56f17e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56f17e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x233818){return _0x56f17e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1b0063(){const _0x55baec=[_0x56f17e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56f17e([0x74,0x72,0x69,0x61,0x6c])][_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7bbf[_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16c835/0x3e8:0xe10*_0x443e6e;return _0x4b7bbf[_0x56f17e([0x65,0x78,0x70])]<_0x55baec;}function _0x24882a(){const _0x378cb2=_0x4b7bbf[_0x56f17e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x378cb2)return!0x1;if(_0x378cb2[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f17e([0x2a])))return!0x0;if(_0x378cb2[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f17e([0x54,0x43])))return!0x0;if(_0x378cb2[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f17e([0x52,0x54,0x43]))){if(_0x505c7f())return!0x0;if(_0x343047()||_0x215bc4())return!0x0;}return!0x1;}function _0x3c1d72(){const _0x3f16fe=_0x4b7bbf[_0x56f17e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3f16fe||0x0==_0x3f16fe[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x447924}=new URL(window[_0x56f17e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3f16fe[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x447924))return!0x0;const _0x2563fa=_0x447924[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])](_0x56f17e([0x2e]));return _0x3f16fe[_0x56f17e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39999f=>_0x39999f[_0x56f17e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f17e([0x2a])))[_0x56f17e([0x6d,0x61,0x70])](_0x5ef074=>_0x5ef074[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])](_0x56f17e([0x2e])))[_0x56f17e([0x73,0x6f,0x6d,0x65])](_0x34377a=>_0x2563fa[_0x56f17e([0x65,0x76,0x65,0x72,0x79])]((_0x409003,_0x25275a)=>_0x34377a[_0x25275a]===_0x409003||_0x34377a[_0x25275a]===_0x56f17e([0x2a])));}function _0x5c0d87(){return _0x176cfe&&_0x3f8d19?new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x27869e,_0x317a4a)=>{_0x176cfe[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x27869e,_0x317a4a),_0x3f8d19[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x23d757=>{_0x23d757!=_0x56f17e([0x56,0x61,0x6c,0x69,0x64])&&_0x27869e(_0x23d757);},_0x317a4a);}):_0x176cfe||_0x3f8d19||_0x56f17e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a18a8(_0x145e30,_0x1f946d){return new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4174af=>{if(_0x6df6ee())return _0x4174af(_0x56f17e([0x56,0x61,0x6c,0x69,0x64]));_0x3ee683(),_0x4cbcd1[_0x56f17e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56f17e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x48a9f7=!0x1;const _0x14fca9=_0x2ea4c3();function _0x26b8cc(_0x499e89){return!!_0x499e89&&(typeof _0x499e89===_0x56f17e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x499e89===_0x56f17e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x499e89[_0x56f17e([0x74,0x68,0x65,0x6e])]===_0x56f17e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x499e89[_0x56f17e([0x63,0x61,0x74,0x63,0x68])]===_0x56f17e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x160ec1(_0x4c1efb){_0x28eb30(_0x4c1efb)[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x491a5e=>{if(!_0x491a5e||_0x491a5e[_0x56f17e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56f17e([0x6f,0x6b]))return _0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3abe9c(_0x292969(_0x14fca9+_0x1f946d))!=_0x491a5e[_0x56f17e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56f17e([0x56,0x61,0x6c,0x69,0x64]);})[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x5e385e=>(_0x458929(),_0x5e385e),()=>{const _0x382bf6=_0x54bf7a();return null==_0x382bf6?(_0x458929(),_0x56f17e([0x56,0x61,0x6c,0x69,0x64])):_0x56f17e(_0x16c835-_0x382bf6>(0x5b55a9ba^_0x19609d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x4174af)[_0x56f17e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4174af(_0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x340655=0x7f6fc33a^_0x19609d;function _0x458929(){const _0x391406=_0x56f17e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3abe9c(_0x292969(_0x145e30)),_0x511594=_0x18e6c3(_0x3abe9c(window[_0x56f17e([0x4d,0x61,0x74,0x68])][_0x56f17e([0x63,0x65,0x69,0x6c])](_0x16c835/_0x340655)));window[_0x56f17e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56f17e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x391406,_0x511594);}function _0x54bf7a(){const _0x1db78e=_0x56f17e([0x6c,0x6c,0x63,0x74,0x2d])+_0x3abe9c(_0x292969(_0x145e30)),_0x564ebd=window[_0x56f17e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56f17e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1db78e);return _0x564ebd?window[_0x56f17e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18e6c3(_0x564ebd),0x10)*_0x340655:null;}function _0x28eb30(_0x46e168){return new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4f708a,_0x1bcd6a)=>{_0x46e168[_0x56f17e([0x74,0x68,0x65,0x6e])](_0x4f708a,_0x1bcd6a),window[_0x56f17e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1bcd6a,0x7f58f97a^_0x19609d);});}}_0x4cbcd1[_0x56f17e([0x6f,0x6e])](_0x56f17e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x30f297,_0xd2bce0)=>{if(_0xd2bce0[0x0]!=_0x145e30)return _0x4174af(_0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xd2bce0[0x1]={..._0xd2bce0[0x1],[_0x56f17e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x14fca9};},{[_0x56f17e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56f17e([0x68,0x69,0x67,0x68])}),_0x4cbcd1[_0x56f17e([0x6f,0x6e])](_0x56f17e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xbe12e1=>{_0x26b8cc(_0xbe12e1[_0x56f17e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x48a9f7=!0x0,_0x160ec1(_0xbe12e1[_0x56f17e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56f17e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56f17e([0x6c,0x6f,0x77])}),_0x5b438f[_0x56f17e([0x74,0x68,0x65,0x6e])](()=>{_0x48a9f7||_0x4174af(_0x56f17e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6df6ee(){return _0x4cbcd1[_0x56f17e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56f17e([0x76,0x69,0x65,0x77])][_0x56f17e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56f17e([0x61,0x75,0x74,0x6f]);}function _0x3ee683(){_0x4cbcd1[_0x56f17e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56f17e([0x76,0x69,0x65,0x77])][_0x56f17e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56f17e([0x61,0x75,0x74,0x6f]);}}function _0x3607ea(_0x1455e2){const _0x3a706a=[new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a7b25=>setTimeout(_0x2a7b25,0x7f501376^_0x19609d)),_0x5b438f[_0x56f17e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53e71f=>{let _0x505f66=0x0;_0x4cbcd1[_0x56f17e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56f17e([0x6f,0x6e])](_0x56f17e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x52a08c,_0x393104)=>{_0x393104[0x0][_0x56f17e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x505f66++,_0x505f66==(0x7f592c42^_0x19609d)&&(_0x53e71f(),_0x52a08c[_0x56f17e([0x6f,0x66,0x66])]());});}))];return window[_0x56f17e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56f17e([0x72,0x61,0x63,0x65])](_0x3a706a)[_0x56f17e([0x74,0x68,0x65,0x6e])](()=>_0x1455e2);}async function _0x378be6(){await _0x5b438f,_0x4cbcd1[_0x56f17e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56f17e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x440569,_0x4cbcd1[_0x56f17e([0x6d,0x6f,0x64,0x65,0x6c])][_0x56f17e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x440569,_0x4cbcd1[_0x56f17e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56f17e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x505c7f(){return _0xf599df(_0x56f17e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1005d7(_0x56f17e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x56f17e([0x73,0x74,0x61,0x74,0x65])]==_0x56f17e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x343047(){return _0xf599df(_0x56f17e([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x215bc4(){return _0xf599df(_0x56f17e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x412995(_0x552e60){const _0x3dbaa6=_0x17f723();_0x4cbcd1[_0x3dbaa6]=_0x56f17e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x552e60,_0x552e60!=_0x56f17e([0x56,0x61,0x6c,0x69,0x64])&&_0x378be6();}function _0x17f723(){const _0xcb5b10=window[_0x56f17e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56f17e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56f17e([0x6e,0x6f,0x77])]())[_0x56f17e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56f17e([0x2e]),'');let _0x3b1890=_0x56f17e([0x4a]);for(let _0x1ec01f=0x0;_0x1ec01f<_0xcb5b10[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ec01f+=0x2){let _0xc4acc2=window[_0x56f17e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcb5b10[_0x56f17e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ec01f,_0x1ec01f+0x2));_0xc4acc2>=_0x1a0865[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc4acc2-=_0x1a0865[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3b1890+=_0x1a0865[_0xc4acc2];}return _0x3b1890;}function _0x374a79(){const _0x323e43=_0x4ebab9[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])](_0x56f17e([0x2e]));if(0x3!=_0x323e43[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x29ff01(_0x323e43[0x1]);function _0x29ff01(_0x373cab){const _0x12a3c0=_0xbf4840(_0x373cab);return _0x12a3c0&&_0x3b450e()?_0x12a3c0:null;function _0x3b450e(){const _0x900005=_0x12a3c0[_0x56f17e([0x6a,0x74,0x69])],_0x154324=window[_0x56f17e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x900005[_0x56f17e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x900005[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d5d91={..._0x12a3c0,[_0x56f17e([0x6a,0x74,0x69])]:_0x900005[_0x56f17e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x900005[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d5d91[_0x56f17e([0x76,0x63])],_0x292969(_0x4d5d91)==_0x154324;}}}async function _0x3f5d31(){let _0x5f3679=!0x0;try{const _0x208adb=_0x4ebab9[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])](_0x56f17e([0x2e])),[_0x5c2c7f,_0x5b3a57,_0x111016]=_0x208adb;return _0x5aab8b(_0x5c2c7f),await _0x508d95(_0x5c2c7f,_0x5b3a57,_0x111016),_0x5f3679;}catch(_0x101691){return!0x1;}function _0x5aab8b(_0x39df48){const _0x438cf1=_0xbf4840(_0x39df48);_0x438cf1&&_0x438cf1[_0x56f17e([0x61,0x6c,0x67])]==_0x56f17e([0x45,0x53,0x32,0x35,0x36])||(_0x5f3679=!0x1);}async function _0x508d95(_0x4f138f,_0x4782fb,_0x7980db){const _0x4bc9cf=window[_0x56f17e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56f17e([0x66,0x72,0x6f,0x6d])](_0x5e5b0c(_0x7980db),_0x68cda4=>_0x68cda4[_0x56f17e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3e326d=new window[(_0x56f17e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56f17e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f138f+_0x56f17e([0x2e])+_0x4782fb),_0x1d7c5c=window[_0x56f17e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56f17e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1d7c5c)return;const _0x38f886=await _0x1d7c5c[_0x56f17e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56f17e([0x6a,0x77,0x6b]),_0x1c1661,{[_0x56f17e([0x6e,0x61,0x6d,0x65])]:_0x56f17e([0x45,0x43,0x44,0x53,0x41]),[_0x56f17e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56f17e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56f17e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1d7c5c[_0x56f17e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56f17e([0x6e,0x61,0x6d,0x65])]:_0x56f17e([0x45,0x43,0x44,0x53,0x41]),[_0x56f17e([0x68,0x61,0x73,0x68])]:{[_0x56f17e([0x6e,0x61,0x6d,0x65])]:_0x56f17e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38f886,_0x4bc9cf,_0x3e326d)||(_0x5f3679=!0x1);}}function _0xbf4840(_0xcb0ed2){return _0xcb0ed2[_0x56f17e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56f17e([0x65,0x79]))?JSON[_0x56f17e([0x70,0x61,0x72,0x73,0x65])](_0x5e5b0c(_0xcb0ed2)):null;}function _0x5e5b0c(_0x19939f){return window[_0x56f17e([0x61,0x74,0x6f,0x62])](_0x19939f[_0x56f17e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56f17e([0x2b]))[_0x56f17e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56f17e([0x2f])));}function _0x292969(_0x2bd224){let _0x7d69e2=0x1505;function _0x19f422(_0x13457e){for(let _0x483b87=0x0;_0x483b87<_0x13457e[_0x56f17e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x483b87++){const _0x49009e=_0x13457e[_0x56f17e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x483b87);_0x7d69e2=(_0x7d69e2<<0x5)+_0x7d69e2+_0x49009e,_0x7d69e2&=_0x7d69e2;}}function _0x167217(_0x19afac){Array[_0x56f17e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19afac)?_0x19afac[_0x56f17e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x167217):_0x19afac&&typeof _0x19afac==_0x56f17e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56f17e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19afac)[_0x56f17e([0x73,0x6f,0x72,0x74])]()[_0x56f17e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3041b2,_0x530222])=>{_0x19f422(_0x3041b2),_0x167217(_0x530222);}):_0x19f422(window[_0x56f17e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19afac));}return _0x167217(_0x2bd224),_0x7d69e2>>>0x0;}function _0x3abe9c(_0x10594b){return _0x10594b[_0x56f17e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56f17e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56f17e([0x30]));}function _0x18e6c3(_0x4b678f){return _0x4b678f[_0x56f17e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56f17e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56f17e([0x6a,0x6f,0x69,0x6e])]('');}function _0xf599df(_0x232860){return _0x4cbcd1[_0x56f17e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x56f17e([0x68,0x61,0x73])](_0x232860);}function _0x1005d7(_0x52c76d){return _0x4cbcd1[_0x56f17e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x56f17e([0x67,0x65,0x74])](_0x52c76d);}function _0x440569(){}function _0x56f17e(_0xe104c1){return _0xe104c1['map'](_0x44ae85=>String['fromCharCode'](_0x44ae85))['join']('');}_0x412995(await _0x3da704());}(this);}set['adapter'](_0x488193){if(this['_adapter'])throw new _0x921117('track-changes-adapter-already-set',this);this['_adapter']=_0x488193;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3d4d2b=!0x1,toJSON:_0x580c6e=!0x1}={}){const _0x5c14bc=[];for(const _0x261863 of this['_suggestions']['values']())_0x3d4d2b&&!_0x261863['isInContent']||_0x5c14bc['push'](_0x261863);return _0x580c6e?_0x5c14bc['map'](_0x531348=>_0x531348['toJSON']()):_0x5c14bc;}['getSuggestion'](_0x2bd6d7){const _0x223e3a=this['_suggestions']['get'](_0x2bd6d7);if(!_0x223e3a)throw new _0x921117('track-changes-suggestion-not-found',this);return _0x223e3a;}['hasSuggestion'](_0x2d0a41){return this['_suggestions']['has'](_0x2d0a41);}['addSuggestionData'](_0x44d616){const {authorId:_0x3164ce,id:_0x45aa17,attributes:_0x4ed7d3}=_0x44d616,[_0x5545eb,_0xd28323]=_0x44d616['type']['split'](':'),_0x941821=this['_suggestions']['get'](_0x45aa17)||this['_createSuggestion'](_0x5545eb,_0xd28323,_0x45aa17,_0x3164ce,_0x4ed7d3);if(this['_addThreadToSuggestion'](_0x941821),this['_checkSuggestionCorrectness'](_0x941821,_0x5545eb,_0xd28323||null,_0x3164ce),_0x941821['createdAt']=_0x44d616['createdAt'],_0x941821['_isDataLoaded']=!0x0,_0x4ed7d3&&_0x4ed7d3['@external']){const _0x4ff9fd=_0x4ed7d3['@external'],_0x12c506=this['_getExternalAuthor'](_0x4ff9fd['authorName']);_0x941821['authoredAt']=_0x4ff9fd['createdAt'],_0x941821['author']=_0x12c506,_0x941821['isExternal']=!0x0;}else _0x941821['authoredAt']=_0x44d616['createdAt'];switch(_0x44d616['data']&&(_0x941821['data']=_0x44d616['data']),_0x44d616['attributes']&&(_0x941821['attributes']=_0x44d616['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x941821['_saved']=!0x0),this['_suggestionState']['get'](_0x941821)){case'notReady':this['_suggestionState']['set'](_0x941821,'dataReady');break;case'markerReady':_0x941821['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x941821])),this['_refreshSuggestionsChain'](new Set([_0x941821])),this['_suggestionState']['set'](_0x941821,'ready'),this['fire']('suggestionLoaded',_0x941821)):this['_suggestionState']['set'](_0x941821,'removed');}return _0x941821;}['acceptSuggestion'](_0x12c553){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x6a38f8 of _0x12c553['getAllAdjacentSuggestions']())_0x6a38f8['accept']();});});}['discardSuggestion'](_0x468331){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x43bed3 of _0x468331['getAllAdjacentSuggestions']())_0x43bed3['discard']();});});}['enableCommand'](_0x5624e8,_0x177fc6){const _0x10c6ae=this['editor']['commands']['get'](_0x5624e8);if(!_0x10c6ae)throw new _0x921117('track-changes-command-not-found',this,{'commandName':_0x5624e8});if(this['_enabledCommands']['has'](_0x10c6ae))throw new _0x921117('track-changes-enable-command-twice',this,{'commandName':_0x5624e8});this['_enabledCommands']['add'](_0x10c6ae),_0x177fc6&&_0x10c6ae['on']('execute',(_0x1a67be,_0x12bbaa)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x12bbaa['length']>0x0&&_0x12bbaa[_0x12bbaa['length']-0x1]&&_0x12bbaa[_0x12bbaa['length']-0x1]['forceDefaultExecution']?_0x12bbaa['pop']():(_0x1a67be['return']=_0x177fc6((..._0x34f767)=>_0x10c6ae['execute'](..._0x34f767,{'forceDefaultExecution':!0x0}),..._0x12bbaa),_0x1a67be['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x20b960){let _0xf54afd,_0x4873be;const _0x1d8fb6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xf54afd=_0x20b960();}catch(_0x2f5033){_0x4873be=_0x2f5033;}return _0x1d8fb6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4873be&&_0x921117['rethrowUnexpectedError'](_0x4873be,this),_0xf54afd;}['markInsertion'](_0x2a6fd4,_0x460b8f=null,_0x53ab29={}){if(_0x2a6fd4['isCollapsed'])return null;const _0x262cee=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x36d285,meta:_0x14cc4b}of this['_findSuggestions'](_0x2a6fd4,'insertion'))if(_0x14cc4b['isOwn']){if(!_0x14cc4b['isNextTo']){if(_0x14cc4b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x36d285,_0x53ab29))continue;return _0x36d285;}if(Qt(_0x36d285,_0x53ab29))return _0x36d285;this['_breakSuggestionMarker'](_0x36d285,_0x2a6fd4['start'],_0x2a6fd4['end']);break;}if(_0x460b8f==_0x36d285['subType']&&Qt(_0x36d285,_0x53ab29)){const _0x35c926=_0x36d285['getFirstRange']();return _0x35c926['start']['isEqual'](_0x2a6fd4['end'])?this['_setSuggestionRange'](_0x36d285,this['_model']['createRange'](_0x2a6fd4['start'],_0x35c926['end'])):this['_setSuggestionRange'](_0x36d285,this['_model']['createRange'](_0x35c926['start'],_0x2a6fd4['end'])),_0x36d285;}}const _0x19270e=_0x2ea4c3(),_0x1baffd=_0x262cee['id'],_0x63b9de=_0x460b8f?'insertion:'+_0x460b8f:'insertion',_0x552023=this['_setSuggestionData']({'id':_0x19270e,'type':_0x63b9de,'createdAt':new Date(),'authorId':_0x1baffd,'attributes':_0x53ab29});return this['_addSuggestionMarker'](_0x63b9de,_0x19270e,_0x1baffd,_0x2a6fd4),_0x552023;}['markMultiRangeInsertion'](_0x410a5b,_0x783245='multi',_0x61f56f={}){const _0x13c0a2=this['editor']['plugins']['get']('Users')['me'],_0x792771=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x783245,'join');for(const _0x5f21c3 of this['getSuggestions']())if(_0x5f21c3['author']['id']==_0x13c0a2['id']&&'insertion'==_0x5f21c3['type']&&_0x5f21c3['subType']==_0x783245&&Qt(_0x5f21c3,_0x61f56f)&&(_0x792771(_0x5f21c3['getRanges'](),_0x410a5b)||_0x792771(_0x410a5b,_0x5f21c3['getRanges']()))){for(const _0x1f7e86 of _0x410a5b)_0x5f21c3['addRange'](_0x1f7e86);return _0x5f21c3;}for(const {suggestion:_0x10980f,meta:_0xbf8a58}of this['_findSuggestions'](_0x410a5b,'insertion')){if(!_0xbf8a58['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xbf8a58['containsRangeInObject'])continue;if(!Qt(_0x10980f,_0x61f56f))continue;let _0x2bd4a2=!0x0;for(const _0xb97736 of _0x10980f['getRanges']())for(const _0x7da770 of _0x410a5b)if(!_0xb97736['containsRange'](_0x7da770)){_0x2bd4a2=!0x1;break;}if(_0x2bd4a2)return _0x10980f;}const _0x334b39=_0x2ea4c3(),_0x1e7051=_0x13c0a2['id'],_0x261e87='insertion:'+_0x783245,_0x38b1f4=this['_setSuggestionData']({'id':_0x334b39,'type':_0x261e87,'createdAt':new Date(),'authorId':_0x1e7051,'attributes':_0x61f56f});for(const _0x1bbff1 of _0x410a5b)this['_addSuggestionMarker'](_0x261e87,_0x334b39,_0x1e7051,_0x1bbff1,o['getMultiRangeId']());return _0x38b1f4;}['markInlineFormat'](_0x157f6f,_0x53fa58,_0x20b8e9=null,_0x272996={}){if(_0x20b8e9=_0x20b8e9||Jt(_0x53fa58),_0x157f6f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x15772b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20b8e9,'accept');return this['forceDefaultExecution'](()=>_0x15772b([_0x157f6f],_0x53fa58,_0x272996)),null;}const _0x18c31e=this['editor']['plugins']['get']('Users')['me'],_0x20a896=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x451780,meta:_0x511e02}of this['_findSuggestions'](_0x157f6f,'insertion'))_0x511e02['isOwn']&&!_0x511e02['isInsideObject']&&_0x20a896['push'](..._0x451780['getRanges']());}const _0x4de700=function(_0x3f7ae9,_0x4025c3){const _0x44abc3=[];for(const _0x12bcf8 of _0x4025c3){const _0x18cad6=_0x3f7ae9['getIntersection'](_0x12bcf8);_0x18cad6&&_0x44abc3['push'](_0x18cad6);}return _0x44abc3;}(_0x157f6f,_0x20a896),_0x4c5f70=function(_0x3f1fe9,_0x2a05bf){const _0x1981f9=[_0x3f1fe9];for(const _0x5da309 of _0x2a05bf){let _0x4ce390=0x0;for(;_0x4ce390<_0x1981f9['length'];){const _0x574136=_0x1981f9[_0x4ce390]['getDifference'](_0x5da309);_0x1981f9['splice'](_0x4ce390,0x1,..._0x574136),_0x4ce390+=_0x574136['length'];}}return _0x1981f9;}(_0x157f6f,_0x20a896);_0x4de700['length']&&this['_model']['change'](()=>{for(const _0x4894f1 of _0x4de700){const _0x2b4943=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x20b8e9,'accept');this['forceDefaultExecution'](()=>_0x2b4943([_0x4894f1],_0x53fa58,_0x272996));}});for(const _0xd4e973 of _0x4c5f70){let _0x2a8a5f=null,_0x5b6302=_0xd4e973['start'],_0x44b821=_0xd4e973['end'];for(const {suggestion:_0x4e134d,meta:_0x2a9509}of this['_findSuggestions'](_0xd4e973,'formatInline')){if(!_0x2a9509['isOwn'])continue;if(_0x4e134d['subType']!=_0x20b8e9)continue;if(!Qt(_0x4e134d,_0x272996))continue;const _0x3aab49=_0x4e134d['getFirstRange']();if(_0x3aab49['containsRange'](_0xd4e973,!0x0))return null;_0x5b6302=_0x5b6302['isBefore'](_0x3aab49['start'])?_0x5b6302:_0x3aab49['start'],_0x44b821=_0x44b821['isAfter'](_0x3aab49['end'])?_0x44b821:_0x3aab49['end'],_0x2a8a5f?_0x3aab49['start']['isBefore'](_0x2a8a5f['getFirstRange']()['start'])?(_0x2a8a5f['removeMarkers'](),_0x2a8a5f=_0x4e134d):_0x4e134d['removeMarkers']():_0x2a8a5f=_0x4e134d;}const _0x186062=this['_model']['createRange'](_0x5b6302,_0x44b821);if(_0x2a8a5f)this['_setSuggestionRange'](_0x2a8a5f,_0x186062);else{const _0x578e52=_0x2ea4c3(),_0x209f98=_0x18c31e['id'];this['_setSuggestionData']({'id':_0x578e52,'type':'formatInline:'+_0x20b8e9,'data':_0x53fa58,'createdAt':new Date(),'authorId':_0x209f98,'attributes':_0x272996}),this['_addSuggestionMarker']('formatInline:'+_0x20b8e9,_0x578e52,_0x209f98,_0x186062);}}return null;}['markBlockFormat'](_0xfe4546,_0xe59862,_0x4e0ae5=[],_0x4c71f5=null,_0x4eeeaf={}){_0xe59862['formatGroupId']||(_0xe59862['formatGroupId']=_0xe59862['commandName']),_0xe59862['multipleBlocks']=_0xfe4546['is']('range'),_0x4c71f5=_0x4c71f5||Jt(_0xe59862);const _0x59666d=_0x4e0ae5['map'](_0x1d6a3d=>qt(_0x1d6a3d,this['_model'])),_0x2a3852=_0xfe4546['is']('range')?_0xfe4546:qt(_0xfe4546,this['_model']);if('never'===this['_trackFormatChanges']){const _0x32f9a8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c71f5,'accept');return this['forceDefaultExecution'](()=>_0x32f9a8([_0x2a3852],_0xe59862,_0x4eeeaf)),null;}_0x59666d['push'](_0x2a3852);let _0x2cc14f=!0x0;for(const _0xa0a1d of _0x59666d)if(!this['_rangeIsInLocalUserInsertion'](_0xa0a1d)){_0x2cc14f=!0x1;break;}if(_0x2cc14f&&'always'!==this['_trackFormatChanges']){const _0xcad6e8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4c71f5,'accept');return this['forceDefaultExecution'](()=>_0xcad6e8([_0x2a3852],_0xe59862,_0x4eeeaf)),null;}let _0x339516=null,_0x45151e=_0x2a3852['start'],_0x53f57=_0x2a3852['end'];for(const {suggestion:_0x2a54a4,meta:_0x174bc6}of this['_findSuggestions'](_0x2a3852,'formatBlock')){if(!_0x174bc6['isOwn'])continue;if(_0x174bc6['isNextTo']||_0x174bc6['containsRangeInObject']||_0x174bc6['isInsideObject'])continue;if(_0x2a54a4['data']['formatGroupId']!=_0xe59862['formatGroupId'])continue;if(!Qt(_0x2a54a4,_0x4eeeaf))continue;const _0x437755=_0x2a54a4['getFirstRange']();if(_0x2a54a4['subType']==_0x4c71f5){if(_0x437755['containsRange'](_0x2a3852,!0x0))return null;_0x45151e=_0x45151e['isBefore'](_0x437755['start'])?_0x45151e:_0x437755['start'],_0x53f57=_0x53f57['isAfter'](_0x437755['end'])?_0x53f57:_0x437755['end'],_0x339516?_0x437755['start']['isBefore'](_0x339516['getFirstRange']()['start'])?(_0x339516['removeMarkers'](),_0x339516=_0x2a54a4):_0x2a54a4['removeMarkers']():_0x339516=_0x2a54a4;}else{const _0x1d4bf2=_0x2a3852['getIntersection'](_0x437755);this['_cutOutSuggestionMarker'](_0x2a54a4,_0x1d4bf2);}}const _0x39f2d6=this['editor']['plugins']['get']('Users')['me'],_0x5471fa=_0x2ea4c3(),_0x276ed3=_0x39f2d6['id'];if(_0x339516)return this['_setSuggestionRange'](_0x339516,this['_model']['createRange'](_0x45151e,_0x53f57)),_0x339516;{const _0x429340=this['_setSuggestionData']({'id':_0x5471fa,'type':'formatBlock:'+_0x4c71f5,'data':_0xe59862,'createdAt':new Date(),'authorId':_0x276ed3,'attributes':_0x4eeeaf});return this['_addSuggestionMarker']('formatBlock:'+_0x4c71f5,_0x5471fa,_0x276ed3,this['_model']['createRange'](_0x45151e,_0x53f57)),_0x429340;}}['markMultiRangeBlockFormat'](_0x1a2887,_0x1b1ab9,_0x5840b7=[],_0x1c7629=null,_0x114bad={}){_0x1b1ab9['formatGroupId']||(_0x1b1ab9['formatGroupId']=_0x1b1ab9['commandName']);const _0x3b0837=_0x1a2887[0x0];_0x1b1ab9['multipleBlocks']=_0x3b0837['is']('range'),_0x1c7629=_0x1c7629||Jt(_0x1b1ab9);const _0x565bcb=_0x5840b7['map'](_0x258dbc=>qt(_0x258dbc,this['_model'])),_0x185943=_0x3b0837['is']('range')?_0x1a2887:_0x1a2887['map'](_0x2a7f1d=>qt(_0x2a7f1d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1e76be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c7629,'accept');return this['forceDefaultExecution'](()=>_0x1e76be(_0x185943,_0x1b1ab9,_0x114bad)),null;}_0x565bcb['push'](..._0x185943);let _0x1cbc62=!0x0;for(const _0x1abb51 of _0x565bcb)if(!this['_rangeIsInLocalUserInsertion'](_0x1abb51)){_0x1cbc62=!0x1;break;}if(_0x1cbc62&&'always'!==this['_trackFormatChanges']){const _0x5e065a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c7629,'accept');return this['forceDefaultExecution'](()=>_0x5e065a(_0x185943,_0x1b1ab9,_0x114bad)),null;}const _0xfef8fa=this['editor']['plugins']['get']('Users')['me'];for(const _0x240fd4 of this['getSuggestions']()){if(_0x240fd4['author']['id']!=_0xfef8fa['id'])continue;if('formatBlock'!=_0x240fd4['type']||_0x240fd4['data']['formatGroupId']!=_0x1b1ab9['formatGroupId'])continue;if(!Qt(_0x240fd4,_0x114bad))continue;const _0x2386cb=_0x240fd4['subType']==_0x1c7629;for(let _0x2a0058=0x0;_0x2a0058<_0x185943['length'];_0x2a0058++){const _0x2d8edf=_0x185943[_0x2a0058];for(const _0x1d163b of _0x240fd4['getMarkers']()){const _0x113487=_0x1d163b['getRange']();if(_0x2d8edf['isEqual'](_0x113487)){_0x2386cb?(_0x185943['splice'](_0x2a0058,0x1),_0x2a0058--):_0x240fd4['removeMarker'](_0x1d163b['name']);break;}}}}if(0x0==_0x185943['length'])return null;const _0x189d69=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1c7629,'join');for(const _0x54bda4 of this['getSuggestions']())if(_0x54bda4['author']['id']==_0xfef8fa['id']&&'formatBlock'==_0x54bda4['type']&&_0x54bda4['data']['formatGroupId']==_0x1b1ab9['formatGroupId']&&_0x54bda4['subType']==_0x1c7629&&Qt(_0x54bda4,_0x114bad)&&(_0x189d69(_0x54bda4['getRanges'](),_0x185943)||_0x189d69(_0x185943,_0x54bda4['getRanges']()))){for(const _0x4bb9e3 of _0x185943)_0x54bda4['addRange'](_0x4bb9e3);return _0x54bda4;}const _0x91ca65=_0x2ea4c3(),_0x4704fe=_0xfef8fa['id'],_0xe3533b='formatBlock:'+_0x1c7629,_0x4a68a9=this['_setSuggestionData']({'id':_0x91ca65,'type':_0xe3533b,'data':_0x1b1ab9,'createdAt':new Date(),'authorId':_0x4704fe,'attributes':_0x114bad});for(const _0x141d5c of _0x185943)this['_addSuggestionMarker'](_0xe3533b,_0x91ca65,_0x4704fe,_0x141d5c,o['getMultiRangeId']());return _0x4a68a9;}['markDeletion'](_0x14c07a,_0x583a53=null,_0x285e2c={}){if(_0x14c07a['isCollapsed'])return null;const _0x24a454=this['editor']['plugins']['get']('Users')['me'],_0x43c4d2=new _0x2b7c87(_0x14c07a['start'],_0x14c07a['end']);for(const {suggestion:_0x4a589c,meta:_0x55564c}of this['_findSuggestions'](_0x43c4d2,'insertion'))if(_0x55564c['isOwn']&&!_0x55564c['isNextTo']){if(_0x4a589c['isMultiRange']){const _0xe45800=_0x4a589c['getRanges']()['filter'](_0x31929d=>'$graveyard'!=_0x31929d['root']['rootName']);_0xe45800['every'](_0x45f75d=>_0x43c4d2['containsRange'](_0x45f75d,!0x0))&&_0x4a589c['discard']();if(_0xe45800['some'](_0x410dc5=>_0x410dc5['containsRange'](_0x43c4d2,!0x0))){const _0x1bd74b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x583a53,'accept');return this['forceDefaultExecution'](()=>_0x1bd74b([_0x43c4d2],null,_0x285e2c)),null;}}else{const _0x41a1ce=_0x43c4d2['getIntersection'](_0x4a589c['getFirstRange']());null!==_0x41a1ce&&_0x4a589c['_onDiscard']([_0x41a1ce],null,_0x285e2c);}}if(_0x43c4d2['detach'](),_0x43c4d2['isCollapsed']||'$graveyard'==_0x43c4d2['root']['rootName'])return null;let _0x5df64b=null,_0x531018=_0x43c4d2['start'],_0x50a656=_0x43c4d2['end'];const _0x73c2ea=this['_findSuggestions'](_0x43c4d2,'deletion');for(const {suggestion:_0x4dd312,meta:_0x1f182f}of _0x73c2ea){const _0x11b875=this['_model']['createRange'](_0x531018,_0x50a656);if(_0x1f182f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f182f['containsRangeInObject']&&!_0x1f182f['isInsideObject'])){if(_0x4dd312['isMultiRange']){if(!Qt(_0x4dd312,_0x285e2c))continue;let _0xcf4147=!0x0;for(const _0x5f4c40 of _0x4dd312['getRanges']()){if(_0x5f4c40['containsRange'](_0x11b875,!0x0))return _0x4dd312;_0x11b875['containsRange'](_0x5f4c40)||(_0xcf4147=!0x1);}_0xcf4147&&_0x4dd312['discard']();}else{const _0xa4f336=_0x4dd312['getFirstRange']();if(_0xa4f336['containsRange'](_0x11b875,!0x0))return _0x4dd312;if(!Qt(_0x4dd312,_0x285e2c)){_0x11b875['containsRange'](_0xa4f336)?_0x4dd312['removeMarkers']():_0xa4f336['containsPosition'](_0x531018)?_0x531018=_0xa4f336['end']:_0xa4f336['containsPosition'](_0x50a656)&&(_0x50a656=_0xa4f336['start']);continue;}_0x531018=_0x531018['isBefore'](_0xa4f336['start'])?_0x531018:_0xa4f336['start'],_0x50a656=_0x50a656['isAfter'](_0xa4f336['end'])?_0x50a656:_0xa4f336['end'],_0x285e2c=Object['assign']({},_0x4dd312['attributes']),_0x5df64b?_0xa4f336['start']['isBefore'](_0x5df64b['getFirstRange']()['start'])?(_0x5df64b['removeMarkers'](),_0x5df64b=_0x4dd312):_0x4dd312['removeMarkers']():_0x5df64b=_0x4dd312;}}}if(_0x5df64b)return this['_setSuggestionRange'](_0x5df64b,this['_model']['createRange'](_0x531018,_0x50a656)),_0x5df64b;{const _0x327952=_0x2ea4c3(),_0x25f874=this['_model']['createRange'](_0x531018,_0x50a656),_0x46ee49=_0x24a454['id'],_0x37d62a=_0x583a53?'deletion:'+_0x583a53:'deletion',_0x4742c6=this['_setSuggestionData']({'id':_0x327952,'type':_0x37d62a,'createdAt':new Date(),'authorId':_0x46ee49,'attributes':_0x285e2c});return this['_addSuggestionMarker'](_0x37d62a,_0x327952,_0x46ee49,_0x25f874),_0x4742c6;}}['markMultiRangeDeletion'](_0x5c4a6a,_0xc7fd33='multi',_0x55bcff={}){const _0x36e3a1=this['editor']['plugins']['get']('Users')['me'],_0x34e325=_0x5c4a6a['map'](_0x374643=>new _0x2b7c87(_0x374643['start'],_0x374643['end'])),_0x32482d=new Set();for(const {suggestion:_0x210e31,meta:_0x3b5e83}of this['_findSuggestions'](_0x34e325,'insertion'))_0x3b5e83['isOwn']&&!_0x3b5e83['isNextTo']&&_0x32482d['add'](_0x210e31);for(const _0x14a675 of _0x32482d)if(_0x14a675['isMultiRange']){const _0x24637c=_0x14a675['getRanges']();(!_0x14a675['attributes']||!_0x14a675['attributes']['skipNestingCheck'])&&(_0x24637c['every'](_0x4842ab=>_0x34e325['some'](_0x105aa=>_0x105aa['containsRange'](_0x4842ab,!0x0)))&&_0x14a675['discard']());if(_0x34e325['every'](_0x5e651d=>_0x24637c['some'](_0x2bfd2c=>_0x2bfd2c['containsRange'](_0x5e651d,!0x0)))){const _0x3303a2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc7fd33,'accept');return this['forceDefaultExecution'](()=>_0x3303a2(_0x5c4a6a,null,_0x55bcff)),null;}}else{const _0x23e474=_0x14a675['getFirstRange']();_0x34e325['some'](_0x2104ef=>_0x2104ef['containsRange'](_0x23e474,!0x0))&&_0x14a675['discard']();if(_0x34e325['every'](_0x591d4a=>_0x23e474['containsRange'](_0x591d4a,!0x0))){const _0xe5a0c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc7fd33,'accept');return this['forceDefaultExecution'](()=>_0xe5a0c2(_0x34e325,null,_0x55bcff)),null;}}const _0x19ed58=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xc7fd33,'join');let _0x583afb=null;for(const _0x2b792b of this['getSuggestions']())if(_0x2b792b['author']['id']==_0x36e3a1['id']&&_0x2b792b['isInContent']&&'deletion'==_0x2b792b['type']&&_0x2b792b['subType']==_0xc7fd33&&Qt(_0x2b792b,_0x55bcff)&&(_0x19ed58(_0x2b792b['getRanges'](),_0x34e325)||_0x19ed58(_0x34e325,_0x2b792b['getRanges']()))){if(_0x583afb){if(_0x2b792b['commentThread']&&_0x2b792b['commentThread']['length'])continue;for(const _0x33a04d of _0x2b792b['getRanges']())_0x583afb['isIntersectingWithRange'](_0x33a04d)||_0x583afb['addRange'](_0x33a04d);_0x2b792b['removeMarkers']();}else{_0x583afb=_0x2b792b;for(const _0xff9535 of _0x34e325)_0x2b792b['isIntersectingWithRange'](_0xff9535)||_0x2b792b['addRange'](_0xff9535);}}if(_0x583afb)return _0x583afb;_0x32482d['clear']();for(const {suggestion:_0xbc682,meta:_0x6299be}of this['_findSuggestions'](_0x34e325,'deletion'))_0x6299be['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6299be['containsRangeInObject']&&!_0x6299be['isInsideObject'])&&Qt(_0xbc682,_0x55bcff)&&_0x32482d['add'](_0xbc682);for(const _0x40a5c4 of _0x32482d){const _0x7de4ce=_0x40a5c4['getRanges']();if(!_0x55bcff||!_0x55bcff['skipNestingCheck']){if(_0x34e325['every'](_0x1b71ab=>_0x7de4ce['some'](_0x414696=>_0x414696['containsRange'](_0x1b71ab,!0x0))))return _0x40a5c4;}(!_0x40a5c4['attributes']||!_0x40a5c4['attributes']['skipNestingCheck'])&&(_0x7de4ce['every'](_0x4fd8e6=>_0x34e325['some'](_0xb645dd=>_0xb645dd['containsRange'](_0x4fd8e6,!0x0)))&&_0x40a5c4['discard']());}const _0x5a73d4=_0x2ea4c3(),_0x168aca=_0x36e3a1['id'],_0x2ac590='deletion:'+_0xc7fd33,_0x35f417=this['_setSuggestionData']({'id':_0x5a73d4,'type':_0x2ac590,'createdAt':new Date(),'authorId':_0x168aca,'attributes':_0x55bcff});for(const _0x244f15 of _0x34e325)_0x244f15['detach'](),_0x244f15['isCollapsed']||'$graveyard'==_0x244f15['root']['rootName']||this['_addSuggestionMarker'](_0x2ac590,_0x5a73d4,_0x168aca,_0x244f15,o['getMultiRangeId']());return _0x35f417;}['markAttributeChange'](_0xc57cdf,_0x362f8f,_0x37ac81,_0x30fc01,_0x59baa7){if(_0xc57cdf['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2e5ed3=this['editor']['plugins']['get']('Users')['me']['id'],_0x3640dd=Array['from'](this['_suggestions']['values']())['filter'](_0x2f9319=>'attribute'==_0x2f9319['type']&&_0x2f9319['data']['key']==_0x362f8f&&_0x2f9319['isIntersectingWithRange'](_0xc57cdf));if('default'===this['_trackFormatChanges']){const _0x472551=this['_findSuggestions'](_0xc57cdf,'insertion')['filter'](({meta:_0x2584ba})=>_0x2584ba['isOwn']&&!_0x2584ba['isInsideObject']&&!_0x2584ba['isNextTo'])['map'](({suggestion:_0x4c9ba9})=>_0x4c9ba9);_0x3640dd['unshift'](..._0x472551);}const _0x154719=new Map([[_0xc57cdf,_0x37ac81]]);for(const _0x2a3823 of _0x3640dd){const _0x56997c='attribute'==_0x2a3823['type']?_0x2a3823['data']['oldValue']:void 0x0,_0x355069=_0x2a3823['getFirstRange'](),_0x2f7659=Array['from'](_0x154719['keys']())['find'](_0x1b551a=>_0x1b551a['isIntersecting'](_0x355069));if(!_0x2f7659)continue;const _0x208c92=_0x2f7659['getDifference'](_0x355069);this['_isBlockAttribute'](_0x362f8f)&&'insertion'==_0x2a3823['type']&&0x0!=_0x208c92['length']||(_0x154719['delete'](_0x2f7659),_0x208c92['forEach'](_0x5c7e12=>{_0x154719['set'](_0x5c7e12,_0x37ac81);}),'insertion'!=_0x2a3823['type']&&_0x56997c!=_0x30fc01&&_0x154719['set'](_0x2f7659['getIntersection'](_0x355069),_0x56997c));}const _0x2c9212=[];for(const [_0x43dfe9,_0x2e722c]of _0x154719){const _0xeda78a=_0x2ea4c3(),_0x2476f4={'key':_0x362f8f,'oldValue':_0x2e722c,'newValue':_0x30fc01};_0x362f8f['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':_0x362f8f});const _0x43bc60=('attribute:'+(_0x362f8f+'|'+Jt({'newValue':_0x30fc01})))['substring'](0x0,0x3c),_0x302a06=this['_setSuggestionData']({'id':_0xeda78a,'type':_0x43bc60,'data':_0x2476f4,'createdAt':new Date(),'authorId':_0x2e5ed3,'attributes':_0x59baa7});_0x2c9212['push'](_0x302a06),this['_addSuggestionMarker'](_0x43bc60,_0xeda78a,_0x2e5ed3,_0x43dfe9);}return _0x2c9212;}['enableDefaultAttributesIntegration'](_0x576fdd){this['enableCommand'](_0x576fdd,(_0x549630,..._0x471967)=>{this['_recordAttributeChanges'](()=>{_0x549630(..._0x471967);});});}['registerBlockAttribute'](_0x450cba){this['_blockAttributeKeys']['add'](_0x450cba);}['registerInlineAttribute'](_0x142319){this['_inlineAttributeKeys']['add'](_0x142319);}['_getAttributeKey'](_0xd12df){return'attribute'==_0xd12df['type']?_0xd12df['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x37180e,_0x3479f8){const _0x155a51=_0x37180e['getFirstMarker']();this['_model']['change'](_0x5d732d=>{_0x5d732d['updateMarker'](_0x155a51,{'range':_0x3479f8});});}['_addThreadToSuggestion'](_0x4e7d7a){const _0x5e7ed6=_0x4e7d7a['id'],_0x44278c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e7ed6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x44278c,'threadId':_0x5e7ed6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x283908=this['_commentsRepository']['getCommentThread'](_0x5e7ed6);_0x283908['unbind']('isRemovable'),_0x283908['isRemovable']=!0x1,_0x4e7d7a['commentThread']=_0x283908;}['_checkSuggestionCorrectness'](_0x5de7e2,_0x2dca68,_0x5eddb5,_0x21986a){if(_0x5de7e2['type']!=_0x2dca68||_0x5de7e2['subType']!=_0x5eddb5||_0x5de7e2['creator']['id']!=_0x21986a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x921117('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4dab7a,_0x4eb7ea){const _0x30c78e=_0x4dab7a['getFirstRange']();if(_0x4eb7ea['isEqual'](_0x30c78e))_0x4dab7a['removeMarkers']();else{if(_0x30c78e['containsRange'](_0x4eb7ea)){const _0x36ab6f=this['_model']['createPositionAt'](_0x4eb7ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4dab7a,this['_model']['createRange'](_0x30c78e['start'],_0x36ab6f));const _0x24496d=_0x2ea4c3(),_0x43b17b=_0x4dab7a['creator']['id'],_0x22f64c=_0x4dab7a['type']+':'+_0x4dab7a['subType'];this['_setSuggestionData']({'id':_0x24496d,'type':_0x22f64c,'createdAt':new Date(),'authorId':_0x43b17b,'data':_0x4dab7a['data'],'attributes':_0x4dab7a['attributes']});const _0x270a4c=this['_model']['createPositionAt'](_0x4eb7ea['end']['parent'],'after'),_0x29d4b5=this['_model']['createRange'](_0x270a4c,_0x30c78e['end']);this['_addSuggestionMarker'](_0x22f64c,_0x24496d,_0x43b17b,_0x29d4b5);}else{if(_0x30c78e['containsPosition'](_0x4eb7ea['start'])){const _0xad805a=this['_model']['createPositionAt'](_0x4eb7ea['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4dab7a,this['_model']['createRange'](_0x30c78e['start'],_0xad805a));}else{const _0x2ef0f0=this['_model']['createPositionAt'](_0x4eb7ea['end']['parent'],'after');this['_setSuggestionRange'](_0x4dab7a,this['_model']['createRange'](_0x2ef0f0,_0x30c78e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1e5bee){for(const {suggestion:_0x15b2a9,meta:_0x2dd4d0}of this['_findSuggestions'](_0x1e5bee,'insertion')){if(!_0x2dd4d0['isOwn'])continue;const _0x527b1c=_0x15b2a9['getRanges']();for(const _0x100c89 of _0x527b1c)if(!_0x1e5bee['getDifference'](_0x100c89)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x535272){const _0x22bd79=this['editor']['plugins']['get']('Users')['getUser'](_0x535272);if(!_0x22bd79)throw new _0x921117('track-changes-user-not-found',this);return _0x22bd79;}['_getExternalAuthor'](_0x271095){const _0x168a44=this['editor']['plugins']['get']('Users'),_0xeaf5bf=_0x21fcb1('external:'+_0x271095),_0x2b4aa3=_0x168a44['getUser'](_0xeaf5bf);return _0x2b4aa3||_0x168a44['addUser']({'id':_0xeaf5bf,'name':_0x271095});}['_createSuggestion'](_0x4ad2d2,_0x3b6041,_0x1825c1,_0xbd5bf2,_0x512bf3){const _0x3b7c71=this['_getAuthorFromId'](_0xbd5bf2),_0x179a6f=this['_suggestionFactory']['buildSuggestion'](_0x4ad2d2,_0x3b6041,_0x1825c1,_0x3b7c71,_0x512bf3,_0x44d75e=>{this['_updateSuggestionData'](_0x1825c1,{'attributes':_0x44d75e});const _0x1e8b8a=this['getSuggestion'](_0x1825c1);this['_joinWithAdjacentSuggestions'](new Set([_0x1e8b8a])),this['_refreshSuggestionsChain'](new Set([_0x1e8b8a]));});return this['listenTo'](_0x179a6f,'accept',()=>{this['_updateSuggestionData'](_0x1825c1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x179a6f,'discard',()=>{this['_updateSuggestionData'](_0x1825c1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1825c1,_0x179a6f),this['_suggestionState']['set'](_0x179a6f,'notReady'),_0x179a6f;}['_splitMarkerName'](_0x19ade3){const _0x5a276e=_0x19ade3['split'](':');return{'group':_0x5a276e[0x0],'type':_0x5a276e[0x1],'subType':_0x5a276e['length']>=0x5?_0x5a276e[0x2]:null,'id':_0x5a276e['length']<0x5?_0x5a276e[0x2]:_0x5a276e[0x3],'authorId':_0x5a276e['length']<0x5?_0x5a276e[0x3]:_0x5a276e[0x4],'markerCount':0x6==_0x5a276e['length']?_0x5a276e[0x5]:null};}['_breakSuggestionMarker'](_0x1ecf62,_0xcdadff,_0x94582a){const _0x1aab15=_0x1ecf62['getFirstRange'](),_0x35d517=_0x1aab15['start'],_0x2f9f5c=_0x1aab15['end'];this['_setSuggestionRange'](_0x1ecf62,this['_model']['createRange'](_0x35d517,_0xcdadff));const _0x4e0771=_0x2ea4c3(),_0x489860=_0x1ecf62['creator']['id'],_0x1d8444=_0x1ecf62['type']+(_0x1ecf62['subType']?':'+_0x1ecf62['subType']:'');this['_setSuggestionData']({'id':_0x4e0771,'type':_0x1d8444,'createdAt':new Date(),'authorId':_0x489860,'originalSuggestionId':_0x1ecf62['id'],'attributes':_0x1ecf62['attributes'],'data':_0x1ecf62['data']});const _0x2ba829=this['_getAttributeKey'](_0x1ecf62);('formatBlock'==_0x1ecf62['type']||_0x2ba829&&this['_isBlockAttribute'](_0x2ba829))&&(_0x94582a=this['_model']['createPositionBefore'](_0x94582a['parent'])),this['_addSuggestionMarker'](_0x1d8444,_0x4e0771,_0x489860,this['_model']['createRange'](_0x94582a,_0x2f9f5c));}['_findSuggestions'](_0x3b231d,_0x28e89c=null){const _0xb7e82f=[],_0x47f6df=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3b231d)||(_0x3b231d=[_0x3b231d]);for(const _0x29207c of this['getSuggestions']()){if(!_0x29207c['isInContent'])continue;if(_0x28e89c&&_0x29207c['type']!=_0x28e89c)continue;let _0x11742=!0x1;for(const _0x17a879 of _0x29207c['getRanges']()){for(const _0x4611df of _0x3b231d){const _0x39931f=_0x4611df['start']['isEqual'](_0x17a879['end'])||_0x4611df['end']['isEqual'](_0x17a879['start']);if(_0x39931f||_0x4611df['getIntersection'](_0x17a879)){const _0x1ee1dd=_0x4611df['containsRange'](_0x17a879)&&Pt(this['_model']['schema'],_0x17a879['start'],_0x4611df),_0x276371=_0x17a879['containsRange'](_0x4611df)&&Pt(this['_model']['schema'],_0x4611df['start'],_0x17a879);_0xb7e82f['push']({'suggestion':_0x29207c,'meta':{'isOwn':_0x47f6df==_0x29207c['author'],'isNextTo':_0x39931f,'isInsideObject':_0x1ee1dd,'containsRangeInObject':_0x276371}}),_0x11742=!0x0;break;}}if(_0x11742)break;}}return _0xb7e82f;}['_addSuggestionMarker'](_0x16019b,_0x427d95,_0x3d14e0,_0x3045d7,_0x588abf){this['_model']['change'](_0x10f417=>{let _0x22606d='suggestion:'+_0x16019b+':'+_0x427d95+':'+_0x3d14e0;_0x588abf&&(_0x22606d=_0x22606d+':'+_0x588abf),_0x10f417['addMarker'](_0x22606d,{'range':_0x3045d7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18f60e){const _0x2cd3a8=_0x18f60e['previous'],_0x4d62f0=_0x18f60e['next'];_0x18f60e['previous']=null,_0x18f60e['next']=null,null!=_0x2cd3a8&&_0x2cd3a8['next']==_0x18f60e&&(_0x2cd3a8['next']=_0x4d62f0),null!=_0x4d62f0&&_0x4d62f0['previous']==_0x18f60e&&(_0x4d62f0['previous']=_0x2cd3a8),'ready'==this['_suggestionState']['get'](_0x18f60e)&&(this['_suggestionState']['set'](_0x18f60e,'removed'),this['fire']('suggestionUnloaded',_0x18f60e,_0x2cd3a8,_0x4d62f0));}['_setSuggestionData'](_0x571c7c){const _0x3c6f67=_0x571c7c['id'],_0x1941d8=this['addSuggestionData'](_0x571c7c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1ee810=this['editor']['plugins']['get']('PendingActions'),_0xb33563=_0x1941d8['hasComments'],_0x4e77b8=_0x1941d8['subType']?_0x1941d8['type']+':'+_0x1941d8['subType']:_0x1941d8['type'],_0x4b2fb2=this['editor']['locale'],_0x38072c=_0x1ee810['add'](c(_0x4b2fb2,'PENDING_ACTION_SUGGESTION')),_0x193ab7={'id':_0x3c6f67,'type':_0x4e77b8,'hasComments':_0xb33563,'data':_0x571c7c['data']||null,'originalSuggestionId':_0x571c7c['originalSuggestionId']||null,'attributes':_0x1941d8['attributes']};this['_adapter']['addSuggestion'](_0x193ab7)['then'](_0xd7b4b9=>{_0x1941d8['_saved']=!0x0,_0x1ee810['remove'](_0x38072c),_0xd7b4b9&&_0xd7b4b9['createdAt']&&(this['_suggestions']['get'](_0x3c6f67)['createdAt']=_0xd7b4b9['createdAt']);})['catch'](_0x3082e1=>{throw _0x58f0f1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1941d8['discard']();}),_0x1941d8['stopListening'](),this['_suggestions']['delete'](_0x1941d8['id']),this['_suggestionState']['delete'](_0x1941d8),_0x3082e1;});}return _0x1941d8;}['_isBlockAttribute'](_0x9898ed){return this['_blockAttributeKeys']['has'](_0x9898ed);}['_updateSuggestionData'](_0x4ff250,_0x23dc7c){const _0x49e398=this['editor']['plugins']['get']('PendingActions'),_0x21cb02=this['getSuggestion'](_0x4ff250);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x21cb02['_saved']){const _0x318a3a=_0x49e398['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4ff250,_0x23dc7c)['then'](()=>{_0x49e398['remove'](_0x318a3a);});}else _0x21cb02['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4ff250,_0x23dc7c);});}}['_getSuggestionData'](_0x51ec00){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x921117('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x51ec00);}['_handleNewSuggestionMarker'](_0x2e052f){const {id:_0x46810e,type:_0x9ee1b4,subType:_0x4e05a8,authorId:_0x5584d5}=this['_splitMarkerName'](_0x2e052f),_0x4ff0df=this['_suggestions']['get'](_0x46810e)||this['_createSuggestion'](_0x9ee1b4,_0x4e05a8,_0x46810e,_0x5584d5,{});switch(this['_checkSuggestionCorrectness'](_0x4ff0df,_0x9ee1b4,_0x4e05a8,_0x5584d5),this['_suggestionState']['get'](_0x4ff0df)){case'notReady':this['_getSuggestionData'](_0x46810e)['then'](_0x1aff75=>{let _0x54cf8f=Promise['resolve']();_0x1aff75['hasComments']&&(_0x54cf8f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x46810e})),_0x54cf8f['then'](()=>{this['addSuggestionData'](_0x1aff75)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4ff0df,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x46810e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4ff0df,'ready'),this['fire']('suggestionLoaded',_0x4ff0df);break;case'ready':this['fire']('suggestionChanged',_0x4ff0df);}return _0x4ff0df['addMarkerName'](_0x2e052f),_0x4ff0df;}['_refreshSuggestionsChain'](_0x474936){const _0x46a5d7=Array['from'](_0x474936),_0x4f2a77=_0x46a5d7['filter'](_0x1fb00f=>'attribute'==_0x1fb00f['type']);this['_refreshAttributeSuggestionsChain'](_0x4f2a77);const _0x5a9252=_0x46a5d7['filter'](_0x3bac84=>!_0x3bac84['isMultiRange']&&'attribute'!=_0x3bac84['type']),_0x53c0d4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ae899=>!_0x1ae899['isMultiRange']&&'attribute'!=_0x1ae899['type']),_0x123c48=_0x53c0d4['filter'](_0x5dbb38=>!_0x474936['has'](_0x5dbb38)),_0x26042a=new Map(_0x53c0d4['map'](_0x225a0d=>[_0x225a0d,this['_suggestionFactory']['getSuggestionCallback'](_0x225a0d['type'],_0x225a0d['subType'],'chain')])),_0x15e838=new Map(_0x53c0d4['map'](_0xf54805=>[_0xf54805,_0xf54805['getFirstRange']()])),_0x46916b=new Set(),_0x17fc89=new Set();for(let _0x1fd13d=0x0;_0x1fd13d<_0x5a9252['length'];_0x1fd13d++)_0x5268be(_0x5a9252[_0x1fd13d],_0x5a9252,_0x1fd13d+0x1);for(let _0x51d61f=0x0;_0x51d61f<_0x5a9252['length'];_0x51d61f++)_0x5268be(_0x5a9252[_0x51d61f],_0x123c48,0x0);const _0xd3d11a=new Set();for(let _0xeebd00=0x0;_0xeebd00<_0x5a9252['length'];_0xeebd00++){const _0x3c8251=_0x5a9252[_0xeebd00];!_0x17fc89['has'](_0x3c8251)&&_0x3c8251['previous']&&(_0xd3d11a['add'](_0x3c8251['previous']),_0x3c8251['previous']['next']===_0x3c8251&&(_0x3c8251['previous']['next']=null),_0x3c8251['previous']=null),!_0x46916b['has'](_0x3c8251)&&_0x3c8251['next']&&(_0xd3d11a['add'](_0x3c8251['next']),_0x3c8251['next']['previous']===_0x3c8251&&(_0x3c8251['next']['previous']=null),_0x3c8251['next']=null);}function _0x5268be(_0x358943,_0x5f3983,_0x26763d){for(let _0x21fc5f=_0x26763d;_0x21fc5f<_0x5f3983['length'];_0x21fc5f++){const _0x29c193=_0x14a9f8(_0x358943,_0x5f3983[_0x21fc5f]);_0x29c193&&(_0x29c193[0x0]['next']=_0x29c193[0x1],_0x29c193[0x1]['previous']=_0x29c193[0x0],_0x46916b['add'](_0x29c193[0x0]),_0x17fc89['add'](_0x29c193[0x1]));}}function _0x14a9f8(_0x3c64d8,_0x2c3dd0){if(_0x3c64d8['author']['id']!==_0x2c3dd0['author']['id'])return null;const _0x331f30=_0x26042a['get'](_0x3c64d8)(_0x3c64d8,_0x2c3dd0,_0x15e838['get'](_0x3c64d8),_0x15e838['get'](_0x2c3dd0));if(!_0x331f30)return null;return _0x26042a['get'](_0x2c3dd0)(_0x3c64d8,_0x2c3dd0,_0x15e838['get'](_0x3c64d8),_0x15e838['get'](_0x2c3dd0))?_0x331f30[0x1]['commentThread']&&_0x331f30[0x1]['commentThread']['length']?null:_0x331f30:null;}_0xd3d11a['size']&&this['_refreshSuggestionsChain'](_0xd3d11a);}['_refreshAttributeSuggestionsChain'](_0x61f484){if(0x0==_0x61f484['length'])return;const _0x4a1100=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ce41a=>'attribute'==_0x2ce41a['type']&&_0x2ce41a['_isDataLoaded']),_0x18547a=[],_0xdea289=new Map();for(const _0x5a0e6f of _0x4a1100){const _0x1e0e24=_0x21fcb1(_0x5a0e6f['attributes']);_0xdea289['has'](_0x1e0e24)||(_0xdea289['set'](_0x1e0e24,_0x18547a['length']),_0x18547a['push']([]));const _0x1501fc=_0xdea289['get'](_0x1e0e24);_0x18547a[_0x1501fc]['push'](_0x5a0e6f);}!(function(){_0x18547a['sort']((_0x1e9a25,_0x2e501f)=>{const _0x4e6e1c=_0x1e9a25[0x0]['createdAt'],_0xf12407=_0x2e501f[0x0]['createdAt'];return _0x4e6e1c==_0xf12407?_0x1e9a25[0x0]['attributes']['groupId']<_0x2e501f[0x0]['attributes']['groupId']?-0x1:0x1:_0x4e6e1c<_0xf12407?-0x1:0x1;});for(const _0x23a220 of _0x18547a)_0x23a220['sort']((_0x31856f,_0xa6a174)=>_0x31856f['id']<_0xa6a174['id']?-0x1:0x1);}());for(let _0x5d1325=0x0;_0x5d1325<_0x18547a['length'];_0x5d1325++){if(0x0==_0x18547a[_0x5d1325]['length'])continue;const _0x4c30e5=[];for(let _0xe2d1c=_0x5d1325+0x1;_0xe2d1c<_0x18547a['length'];_0xe2d1c++)0x0!=_0x18547a[_0xe2d1c]['length']&&_0x4dad47(_0x18547a[_0x5d1325],_0x18547a[_0xe2d1c])&&_0x4c30e5['push'](_0xe2d1c);for(const _0x141b2c of _0x4c30e5)_0x18547a[_0x5d1325]=_0x18547a[_0x5d1325]['concat'](_0x18547a[_0x141b2c]),_0x18547a[_0x141b2c]=[];}for(const _0x454a44 of _0x18547a)for(let _0x28eb43=0x0;_0x28eb43<_0x454a44['length'];_0x28eb43++){const _0x44ce89=_0x454a44[_0x28eb43+0x1]||null;_0x454a44[_0x28eb43]['next']!==_0x44ce89&&(_0x454a44[_0x28eb43]['next']=_0x44ce89);}for(const _0x489296 of _0x18547a)for(let _0xa89375=0x0;_0xa89375<_0x489296['length'];_0xa89375++){const _0x334547=_0x489296[_0xa89375-0x1]||null;_0x489296[_0xa89375]['previous']!==_0x334547&&(_0x489296[_0xa89375]['previous']=_0x334547);}function _0x4dad47(_0x474e7d,_0x36c8c1){if(_0x474e7d[0x0]['attributes']['groupId']!==_0x36c8c1[0x0]['attributes']['groupId']&&_0x474e7d[0x0]['author']!==_0x36c8c1[0x0]['author'])return!0x1;if(!function(_0x30ee92,_0x4c7eca){if(!_0x30ee92['hasComments']&&!_0x4c7eca['hasComments'])return!0x0;if(_0x30ee92['hasComments']&&_0x4c7eca['hasComments'])return!0x1;if(_0x30ee92['hasComments']&&_0x4c7eca['createdAt']<_0x30ee92['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4c7eca['hasComments']&&_0x30ee92['createdAt']<_0x4c7eca['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x474e7d[0x0],_0x36c8c1[0x0]))return!0x1;const _0x4b09a0=Vt(_0x474e7d[0x0]['attributes'],'groupId'),_0x18e5cc=Vt(_0x36c8c1[0x0]['attributes'],'groupId');if(!_0x35d3c5(_0x4b09a0,_0x18e5cc))return!0x1;return!!_0x474e7d['every'](_0x234283=>_0x36c8c1['some'](_0x87cad6=>_0x234283['getFirstRange']()['isEqual'](_0x87cad6['getFirstRange']())))&&_0x36c8c1['every'](_0x932b29=>_0x474e7d['some'](_0x1bf265=>_0x932b29['getFirstRange']()['isEqual'](_0x1bf265['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x317f4c){const _0x53c09a=Array['from'](_0x317f4c),_0x6b810b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3831a9=_0x6b810b['filter'](_0x35d524=>!_0x317f4c['has'](_0x35d524)),_0x26b7e0=new Map(_0x53c09a['map'](_0x552a67=>[_0x552a67,this['_suggestionFactory']['getSuggestionCallback'](_0x552a67['type'],_0x552a67['subType'],'join')])),_0x5e5f3b=new Map(_0x6b810b['map'](_0x31e91d=>[_0x31e91d,_0x31e91d['getRanges']()]));for(let _0x1177e6=0x0;_0x1177e6<_0x53c09a['length'];_0x1177e6++){if(_0x4b4ad7(this,_0x53c09a[_0x1177e6],_0x53c09a,_0x1177e6+0x1))return!0x0;}for(let _0x104eaf=0x0;_0x104eaf<_0x53c09a['length'];_0x104eaf++){if(_0x4b4ad7(this,_0x53c09a[_0x104eaf],_0x3831a9,0x0))return!0x0;}return!0x1;function _0x4b4ad7(_0x2d240d,_0x5d39f7,_0x133807,_0x51bb82){for(let _0x3afd60=_0x51bb82;_0x3afd60<_0x133807['length'];_0x3afd60++){const _0x1220f3=_0x133807[_0x3afd60];if(_0x1220f3['type']!==_0x5d39f7['type']||_0x1220f3['author']['id']!==_0x5d39f7['author']['id']||_0x1220f3['subType']!==_0x5d39f7['subType'])continue;if(!Wt(_0x5d39f7,_0x1220f3))continue;if('attribute'==_0x5d39f7['type']&&_0x5d39f7['data']['oldValue']!=_0x1220f3['data']['oldValue'])continue;if('attribute'==_0x5d39f7['type']&&_0x2d240d['_isBlockAttribute'](_0x5d39f7['data']['key']))continue;if('formatBlock'==_0x5d39f7['type']){const _0x33feb=_0x2d240d['editor']['model'],_0x5d4223=_0x5d39f7['getContainedElement']();if(_0x5d4223&&(_0x33feb['schema']['isObject'](_0x5d4223)||_0x33feb['schema']['isLimit'](_0x5d4223)))continue;}const _0x565795=_0x26b7e0['get'](_0x5d39f7),_0x425286=_0x5e5f3b['get'](_0x5d39f7),_0x5e0eef=_0x5e5f3b['get'](_0x1220f3),_0x412805=_0x5d39f7['commentThread']&&_0x5d39f7['commentThread']['length'],_0x11a2c7=_0x1220f3['commentThread']&&_0x1220f3['commentThread']['length'];if(!_0x412805&&_0x565795(_0x5e0eef,_0x425286))return _0x2d240d['_joinSuggestions'](_0x1220f3,_0x5d39f7),_0x5e5f3b['delete'](_0x5d39f7),!0x0;if(!_0x11a2c7&&_0x565795(_0x425286,_0x5e0eef))return _0x2d240d['_joinSuggestions'](_0x5d39f7,_0x1220f3),_0x5e5f3b['delete'](_0x1220f3),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4aba35,_0x412698){if(_0x4aba35['isMultiRange']){for(const _0xb38702 of _0x412698['getRanges']())_0x4aba35['addRange'](_0xb38702);}else{const _0x3342a6=_0x412698['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4aba35,this['_model']['createRange'](_0x4aba35['getFirstRange']()['start'],_0x3342a6));}_0x412698['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1a5c08,_0x25c090,_0xd34c9f){const _0x542f1e=_0x1a5c08['startsWith']('format')||_0x1a5c08['startsWith']('attribute')?'FORMATTING':_0x1a5c08['toUpperCase']();return c(this['editor']['locale'],_0x25c090+'_'+_0x542f1e+'_SUGGESTION_ANNOUNCEMENT',_0xd34c9f);}['_initAriaMarkerChangeAnnouncements'](){const _0x322366=this['editor'];if(!_0x322366['ui'])return;const {ariaLiveAnnouncer:_0x4583f5}=_0x322366['ui'];_0x2b0b75(this['_model'],({left:_0x2b3bf9,entered:_0x1e48ab})=>{for(const _0x553d61 of _0x2b3bf9){const {group:_0x1526cf,type:_0x29d945}=this['_splitMarkerName'](_0x553d61['name']);if('suggestion'===_0x1526cf){_0x4583f5['announce'](this['_getMarkerAnnouncementText'](_0x29d945,'LEAVE'));break;}}for(const _0xa46c71 of _0x1e48ab){const {group:_0x2ab2c9,type:_0x293e9e}=this['_splitMarkerName'](_0xa46c71['name']);if('suggestion'===_0x2ab2c9){_0x4583f5['announce'](this['_getMarkerAnnouncementText'](_0x293e9e,'ENTER',_0x3e2c26(_0x16fc57)));break;}}});}['_processAttributeChanges'](_0x1f6242){if(this['_recordAttributeSuggestions'])return!0x1;const _0x597b4d=this['editor'],_0x41e4c4=_0x597b4d['model']['document']['differ']['getChanges']();if(0x0==_0x41e4c4['length'])return!0x1;const _0x211e5c=[],_0x13e689=_0x41e4c4['filter'](_0x2bc607=>'attribute'==_0x2bc607['type']),_0x428332=_0x41e4c4['filter'](_0x56fb24=>'insert'==_0x56fb24['type']&&'$text'!=_0x56fb24['name']),_0x5eddb1=_0x41e4c4['filter'](_0x3f74f6=>'remove'==_0x3f74f6['type']&&'$text'!=_0x3f74f6['name']);for(const _0x3cd2ce of _0x13e689)_0x211e5c['push']({'key':_0x3cd2ce['attributeKey'],'newValue':_0x3cd2ce['attributeNewValue'],'oldValue':_0x3cd2ce['attributeOldValue'],'range':Ht(_0x3cd2ce['range'],_0x597b4d['model'])});for(const _0x5d5819 of _0x428332){const _0x2b4584=_0x5eddb1['find'](_0x52eda5=>_0x52eda5['position']['isEqual'](_0x5d5819['position']));_0x2b4584&&_0x211e5c['push']({'key':u,'newValue':_0x5d5819['name'],'oldValue':_0x2b4584['name'],'range':_0x597b4d['model']['createRangeOn'](_0x5d5819['position']['nodeAfter'])});}return 0x0!=_0x211e5c['length']&&this['_reduceExistingSuggestions'](_0x1f6242,_0x211e5c);}['_processAttributeSuggestions'](_0x3e2acc){let _0x191e94=!0x1;const _0x1593ff=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4c69f9=>_0x4c69f9['data']['newRange']&&_0x4c69f9['name']['startsWith']('suggestion:attribute:'));for(const _0xa86fb8 of _0x1593ff){const {subType:_0x600007,id:_0xcb5b9b}=this['_splitMarkerName'](_0xa86fb8['name']),_0x731584=_0x600007['split']('|')[0x0];for(const _0x23fbed of this['getSuggestions']({'skipNotAttached':!0x0}))_0x23fbed['id']!=_0xcb5b9b&&'attribute'==_0x23fbed['type']&&_0x23fbed['data']&&_0x23fbed['data']['key']==_0x731584&&_0x23fbed['getFirstRange']()['isIntersecting'](_0xa86fb8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x23fbed,_0xa86fb8['data']['newRange'],_0x3e2acc),_0x191e94=!0x0);}return _0x191e94;}['_recordAttributeChanges'](_0x13277c){this['_recordAttributeSuggestions']=!0x0,_0x13277c();}['_isRegisteredAttribute'](_0x2e3f0c){const _0x450380=this['_isBlockAttribute'](_0x2e3f0c),_0x10f85c=this['_inlineAttributeKeys']['has'](_0x2e3f0c);return _0x450380||_0x10f85c;}['_reduceExistingSuggestions'](_0x15708e,_0x2088b7){if(0x0==_0x2088b7['length'])return!0x1;let _0x1b9ccf=!0x1;for(const _0x2ed7d9 of _0x2088b7){const _0x4feb17=this['_findSuggestions'](_0x2ed7d9['range'],'attribute')['filter'](_0x2a91e8=>!_0x2a91e8['meta']['isNextTo'])['map'](_0x1521f2=>_0x1521f2['suggestion']),_0x47661c=_0x21fcb1({'newValue':_0x2ed7d9['newValue']});_0x4feb17['filter'](_0x1cc579=>{const [_0x1c9b99,_0x4f9452]=_0x1cc579['subType']['split']('|');return _0x1c9b99==_0x2ed7d9['key']&&_0x4f9452!=_0x47661c;})['forEach'](_0x160f95=>{this['_reduceSuggestionAttributeRange'](_0x160f95,_0x2ed7d9['range'],_0x15708e),_0x1b9ccf=!0x0;});}return _0x1b9ccf;}['_reduceSuggestionAttributeRange'](_0x9453fd,_0xf4d3e5,_0x146a4b){const _0x5b199b=_0x9453fd['getFirstRange']()['getDifference'](_0xf4d3e5);0x0!==_0x5b199b['length']?0x1!==_0x5b199b['length']?this['_breakSuggestionMarker'](_0x9453fd,_0xf4d3e5['start'],_0xf4d3e5['end']):this['_setSuggestionRange'](_0x9453fd,_0x5b199b[0x0]):_0x146a4b['removeMarker'](_0x9453fd['getFirstMarker']());}}class Ft{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x569b68){this['_editor']=_0x569b68,this['_model']=_0x569b68['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4735f7,_0x418ec1,_0x258e51,_0x4c6a2f,_0x85db9b,_0x342ae6){return new o(this['_model'],{'type':_0x4735f7,'subType':_0x418ec1,'id':_0x258e51,'author':_0x4c6a2f,'creator':_0x4c6a2f,'attributes':_0x85db9b,'onAttributesChange':_0x342ae6,'onAccept':(..._0x5e1e3a)=>this['getSuggestionCallback'](_0x4735f7,_0x418ec1,'accept')(..._0x5e1e3a),'onDiscard':(..._0x45a8fb)=>this['getSuggestionCallback'](_0x4735f7,_0x418ec1,'discard')(..._0x45a8fb)});}['registerCustomCallback'](_0x1c4964,_0x1ca5c2,_0x4131ee,_0x112b08){const _0x496eb8=_0x1c4964+':'+_0x1ca5c2+':'+_0x4131ee;this['_customCallbacks']['set'](_0x496eb8,_0x112b08);}['getSuggestionCallback'](_0x4d8abf,_0x18427a,_0x4d602a){const _0x5155e6=_0x4d8abf+':'+_0x18427a+':'+_0x4d602a;return this['_customCallbacks']['get'](_0x5155e6)||this['_defaultCallbacks']['get'](_0x4d8abf+':'+_0x4d602a);}['_registerDefaultCallbacks'](){const _0xd847cf=()=>!0x1,_0x236880=_0xbe718f=>{_0xbe718f['sort']((_0x43034d,_0x524c35)=>_0x43034d['start']['isBefore'](_0x524c35['start'])?0x1:-0x1),this['_model']['change'](_0x26105e=>{for(const _0x2e930e of _0xbe718f){let _0x189a1b;_0x189a1b=_0x2e930e['end']['isAtEnd']&&_0x2e930e['end']['parent']==_0x2e930e['start']['nodeAfter']?_0x26105e['createSelection'](_0x2e930e['start']['nodeAfter'],'on'):_0x26105e['createSelection'](_0x2e930e),this['_model']['deleteContent'](_0x189a1b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0xa2b066=(_0x3823b4,_0x1b7769)=>{_0x1b7769&&this['_model']['change'](_0x3b230e=>{const {commandName:_0x562193,commandParams:_0x3f778e=[]}=_0x1b7769,_0x1b7493=_0x3823b4['map'](_0x322217=>(Gt(_0x322217)&&(_0x322217=this['_model']['createRange'](_0x322217['end'])),_0x322217))['filter'](_0x4d7279=>'$graveyard'!==_0x4d7279['root']['rootName']);if(_0x1b7493['length']<0x1)return;const _0x183914=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xea4447=>_0x2b7c87['fromRange'](_0xea4447));_0x3b230e['setSelection'](_0x1b7493);for(const _0x5a5d6c of this['_editor']['commands']['commands']())_0x5a5d6c['refresh']();_0x3f778e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x562193,..._0x3f778e);const _0xa95a6e=_0x183914['filter'](_0xb4942f=>'$graveyard'!=_0xb4942f['root']['rootName']);_0xa95a6e['length']>0x0&&_0x3b230e['setSelection'](_0xa95a6e);for(const _0x4aad80 of _0x183914)_0x4aad80['detach']();});},_0x3b029d=(_0x29d503,_0x529fea)=>0x1==_0x29d503['length']&&0x1==_0x529fea['length']&&_0x29d503[0x0]['end']['isEqual'](_0x529fea[0x0]['start']),_0x153c03=(_0x54c5fb,_0x44ab12,_0x5af8ae,_0x315937)=>zt(_0x54c5fb,_0x44ab12,_0x5af8ae,_0x315937)?[_0x54c5fb,_0x44ab12]:zt(_0x44ab12,_0x54c5fb,_0x315937,_0x5af8ae)?[_0x44ab12,_0x54c5fb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd847cf),this['_defaultCallbacks']['set']('insertion:discard',_0x236880),this['_defaultCallbacks']['set']('insertion:join',_0x3b029d),this['_defaultCallbacks']['set']('insertion:chain',_0x153c03),this['_defaultCallbacks']['set']('deletion:accept',_0x236880),this['_defaultCallbacks']['set']('deletion:discard',_0xd847cf),this['_defaultCallbacks']['set']('deletion:join',_0x3b029d),this['_defaultCallbacks']['set']('deletion:chain',_0x153c03),this['_defaultCallbacks']['set']('formatInline:accept',_0xa2b066),this['_defaultCallbacks']['set']('formatInline:discard',_0xd847cf),this['_defaultCallbacks']['set']('formatInline:join',_0x3b029d),this['_defaultCallbacks']['set']('formatInline:chain',_0xd847cf),this['_defaultCallbacks']['set']('formatBlock:accept',_0xa2b066),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd847cf),this['_defaultCallbacks']['set']('formatBlock:join',_0x3b029d),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd847cf),this['_defaultCallbacks']['set']('attribute:accept',_0xd847cf),this['_defaultCallbacks']['set']('attribute:discard',(_0x2e0db4,_0x52f4c5)=>{if(!_0x52f4c5)return;const _0x40d0f0=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x50f546=>{if(_0x52f4c5['key']==u)for(const _0x103163 of _0x2e0db4){const _0x5e1ac7=_0x103163['start']['nodeAfter'],_0x44c0f9=_0x52f4c5['oldValue'];_0x50f546['rename'](_0x5e1ac7,_0x44c0f9);}else{if(_0x40d0f0['_isBlockAttribute'](_0x52f4c5['key'])){for(const _0x1b48d1 of _0x2e0db4)void 0x0!==_0x52f4c5['oldValue']?_0x50f546['setAttribute'](_0x52f4c5['key'],_0x52f4c5['oldValue'],_0x1b48d1['start']['nodeAfter']):_0x50f546['removeAttribute'](_0x52f4c5['key'],_0x1b48d1['start']['nodeAfter']);}else{for(const _0x2a6218 of _0x2e0db4)_0x52f4c5['oldValue']?_0x50f546['setAttribute'](_0x52f4c5['key'],_0x52f4c5['oldValue'],_0x2a6218):_0x50f546['removeAttribute'](_0x52f4c5['key'],_0x2a6218);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3b029d);}}function Pt(_0x55087f,_0x452f29,_0x3ebe79){for(const _0xbd3203 of _0x452f29['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xbd3203['root']==_0xbd3203)return!0x1;if(!_0x3ebe79['containsItem'](_0xbd3203))return!0x1;if(_0x55087f['isObject'](_0xbd3203)||_0x55087f['isLimit'](_0xbd3203))return!0x0;}return!0x1;}function Gt(_0xe29e96){return _0xe29e96['end']['parent']==_0xe29e96['start']['nodeAfter']&&_0xe29e96['end']['isAtStart'];}function Lt(_0x29dbfb,_0x5ad36f,_0x119020,_0x45de77){const _0x4ae031=_0x23b2f4=>!_0x23b2f4['item']['is']('$textProxy')&&!_0x45de77['isObject'](_0x23b2f4['item']),_0x44a829=_0x29dbfb['start']['getLastMatchingPosition'](_0x4ae031),_0x246406=_0x29dbfb['end']['getLastMatchingPosition'](_0x4ae031,{'direction':'backward'});return(!_0x29dbfb['start']['isEqual'](_0x44a829)||!_0x29dbfb['end']['isEqual'](_0x246406))&&(_0x44a829['isBefore'](_0x246406)?_0x119020['updateMarker'](_0x5ad36f,{'range':_0x119020['createRange'](_0x44a829,_0x246406)}):_0x119020['removeMarker'](_0x5ad36f),!0x0);}function Jt(_0xfa950){return _0x21fcb1(_0xfa950);}function Kt(_0x1aa491){const _0x1f541c=_0x1aa491['start']['nodeAfter'];return _0x1f541c&&_0x1f541c['is']('element');}function Ht(_0x1a75dc,_0x889c35){return null==_0x1a75dc['end']['nodeBefore']&&_0x1a75dc['end']['parent']==_0x1a75dc['start']['nodeAfter']?qt(_0x1a75dc['start']['nodeAfter'],_0x889c35):_0x1a75dc;}function qt(_0x541d60,_0x5b1248){const _0xb0cf1c=_0x5b1248['schema']['isObject'](_0x541d60)||_0x5b1248['schema']['isSelectable'](_0x541d60);return _0x5b1248['createRange'](_0x5b1248['createPositionAt'](_0x541d60,'before'),_0xb0cf1c?_0x5b1248['createPositionAfter'](_0x541d60):_0x5b1248['createPositionAt'](_0x541d60,'end'));}function zt(_0x297707,_0x36b017,_0x2f4573,_0x27d7fa){return!!Wt(_0x297707,_0x36b017)&&_0x2f4573['end']['isEqual'](_0x27d7fa['start']);}function Wt(_0x579a47,_0x181511){if(!_0x579a47['_isDataLoaded']||!_0x181511['_isDataLoaded'])return!0x1;const _0x497ac3=new Set(Object['keys'](_0x579a47['attributes'])),_0x21ad12=new Set(Object['keys'](_0x181511['attributes']));if(_0x497ac3['delete']('groupId'),_0x21ad12['delete']('groupId'),0x0==_0x497ac3['size']&&0x0==_0x21ad12['size'])return!0x0;if(_0x497ac3['size']!=_0x21ad12['size'])return!0x1;const _0x5909bc={..._0x579a47['attributes']},_0x2b59af={..._0x181511['attributes']};return delete _0x5909bc['groupId'],delete _0x2b59af['groupId'],JSON['stringify'](_0x5909bc)==JSON['stringify'](_0x2b59af);}function Qt(_0x5c5df8,_0x14fdce){const _0xf4cf51=Xt(_0x5c5df8['attributes']),_0x4ff6cc=Xt(_0x14fdce);if(!_0x5c5df8['_isDataLoaded'])return!0x1;for(const _0x2c6db7 of Object['keys'](_0x4ff6cc))if(!_0x35d3c5(_0xf4cf51[_0x2c6db7],_0x4ff6cc[_0x2c6db7]))return!0x1;return!0x0;}function Xt(_0x3a30f6){const _0x4b398d=Object['assign']({},_0x3a30f6);return delete _0x4b398d['skipNestingCheck'],delete _0x4b398d['tablePasteChainId'],_0x4b398d;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3d99c5(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4a3272,_0x7d2b29,_0x2619b7,_0x22193d){super(),this['model']=_0x7d2b29,this['view']=_0x2619b7,this['commentThreadController']=_0x22193d,this['_editor']=_0x4a3272,this['_acceptCommand']=_0x4a3272['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4a3272['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x353efb,_0x4bca06)=>_0x353efb||_0x4bca06),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1b5de1=>_0x1b5de1&&this['_editor']['model']['canEditAt'](_0x7d2b29['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x503458=>_0x503458&&this['_editor']['model']['canEditAt'](_0x7d2b29['getRanges']())),this['_pendingAction']=null,_0x2619b7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2619b7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2619b7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2619b7,'change:isDirty',()=>{_0x2619b7['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 _0x149835=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x149835);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2baa4b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x161ac1,_0x2d9196,_0x418d78,_0x5b0eb2){super(_0x161ac1),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xc3e34(_0x161ac1,c(_0x161ac1,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2d9196['authoredAt']),this['bind']('authoredAt')['to'](_0x2d9196),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',_0x2d9196,'authoredAt',this,'descriptionParts',(_0x102aaf,_0x2dc7cc,_0x31d3a1)=>{const _0xed0e38=_0x31d3a1['map'](_0x46d1d3=>ls(_0x46d1d3['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x102aaf-0x1,_0x2d9196['author']['name'],_0x2dc7cc?_0x5b0eb2['formatDateTime'](_0x2dc7cc):'',new DOMParser()['parseFromString'](_0xed0e38,'text/html')['body']['textContent']]);}),this['focusables']=new _0x20fb58(),this['focusTracker']=new _0x1a4c5d(),this['keystrokes']=new _0x5eb6eb(),this['focusCycler']=new _0x366294({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x61daf3=>_0x61daf3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2d9196,this['_localUser']=_0x418d78,this['_config']=_0x5b0eb2,_0x5b0eb2['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5f3251(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5db7ac}=this['_config'];this['commentsListView']=new _0x5db7ac(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',_0x4b5e65=>_0x4b5e65+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1a335b,_0x11eacd)=>_0x1a335b||!!_0x11eacd);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x6d54a}=this['_config'],_0x373856=new _0x6d54a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x893ba=_0x373856['commentInputView'];return _0x373856['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x893ba,'value',(_0x4f3c9a,_0x21515d,_0x449f6a)=>!!_0x449f6a||_0x4f3c9a&&!_0x21515d),_0x893ba['on']('submit',(_0x3f2ca3,_0x5a7722)=>{this['fire']('addComment',_0x5a7722),_0x893ba['editor']['setData']('');}),_0x893ba['on']('cancel',()=>this['focus']()),_0x893ba['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x373856;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x21422a,_0x1cf241,_0x39087f,_0x35485a){super(_0x21422a,_0x1cf241,_0x39087f,_0x35485a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3562c2=>_0x3562c2&&_0x3562c2[0x0]?_0x3562c2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x19475b,_0x3cda3e)=>{let _0x1db3c8='';for(const _0x2f6aa8 of _0x19475b)_0x1db3c8+='<p>'+ls(_0x2f6aa8['content'],_0x2f6aa8['color'])+'</p>';return _0x3cda3e?_0x1db3c8:ti(_0x1db3c8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x35485a['SuggestionView'](_0x21422a,_0x1cf241,{'formatDateTime':_0x35485a['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x857240=this['bindTemplate'],_0x5628fb=[this['suggestionView']];return this['commentsListView']&&_0x5628fb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5628fb['push'](this['commentThreadInputView']),_0x5628fb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x857240['if']('isActive','ck-suggestion-wrapper--active'),_0x857240['to']('type',_0x4fc6e0=>'ck-suggestion-'+_0x4fc6e0),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':_0x857240['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5628fb};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x2baa4b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2e4af5,_0x5895ec,_0x2c1efb){super(_0x2e4af5),this['_model']=_0x5895ec,this['_config']=_0x2c1efb,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5895ec),this['acceptButton']=this['_createButton'](c(_0x2e4af5,'Accept\x20suggestion'),_0x48959a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x2e4af5,'Discard\x20suggestion'),_0x2a4cef,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4112db(_0x2e4af5,_0x5895ec['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x20fb58([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1a4c5d(),this['keystrokes']=new _0x5eb6eb(),this['focusCycler']=new _0x366294({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x16e4cc=>_0x16e4cc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x328ea5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x328ea5['innerHTML']=this['description'],this['on']('change:description',(_0x4d5215,_0x2aac06,_0x37d989)=>{_0x328ea5['innerHTML']=_0x37d989;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5013f1=this['bindTemplate'],_0x2d9dc3=[{'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'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5013f1['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5013f1['to']('authoredAt',_0xad5d27=>this['_config']['formatDateTime'](_0xad5d27))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x2d9dc3['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x2d9dc3}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5f538f,_0x361ca0,_0xc77ccd,_0x1d43a6,_0xfec734){const _0x1dc707=new _0x4efd78(this['locale']);return _0x1dc707['set']({'label':_0x5f538f,'icon':_0x361ca0,'tooltip':!0x0,'tooltipPosition':_0xfec734}),_0x1dc707['extendTemplate']({'attributes':{'class':_0xc77ccd}}),_0x1dc707['on']('execute',()=>{this['fire'](_0x1d43a6,this['_model']['id']);}),_0x1dc707;}['_setupKeyboardNavigation'](){const _0x37ac26=this['element'];this['keystrokes']['listenTo'](_0x37ac26);for(const _0x260323 of this['focusables'])this['focusTracker']['add'](_0x260323['element']),this['keystrokes']['listenTo'](_0x260323['element']);this['keystrokes']['set']('enter',(_0x499813,_0xb13dfc)=>{_0x37ac26===_0x499813['target']&&(this['focusCycler']['focusFirst'](),_0xb13dfc());}),this['keystrokes']['set']('esc',(_0x13c6a7,_0x50780b)=>{_0x37ac26!==_0x13c6a7['target']&&(this['focus'](),_0x50780b());});}}class d extends _0x368c11{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x329083,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x126d13){super(_0x126d13),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x45acab=this['editor']['config'];_0x45acab['define']('trackChanges.SuggestionThreadView',fe),_0x45acab['define']('trackChanges.SuggestionView',we),_0x45acab['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x45acab['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2d10ac,_0x29b17b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x44a9fc,_0x238a80]of this['_handleControllerBuffer']){const _0x497b49=this['_suggestionToController']['has'](_0x44a9fc);_0x497b49||_0x238a80?_0x497b49&&_0x238a80&&this['_destroyController'](_0x44a9fc):this['_initializeController'](_0x44a9fc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2d10ac,_0x29b17b);}['init'](){const _0x350dfc=this['editor'],_0x558ae9=_0x350dfc['plugins']['get']('TrackChangesEditing'),_0x14be24=_0x350dfc['plugins']['get']('Annotations'),_0x34c79f=_0x350dfc['plugins']['get']('EditorAnnotations'),_0x31c7d5=_0x350dfc['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x34c79f['addSourceCollector'](()=>{const _0x19fa1d=[];for(const [_0x277c85,_0x508fd8]of Array['from'](this['_suggestionToController'])){const _0x5b9063=_0x277c85['getAllAdjacentSuggestions'](),_0x30a7ac=[];for(const _0xf60c71 of _0x5b9063){if(!_0xf60c71['isInContent'])continue;if(_0xf60c71['isMultiRange']){_0x30a7ac['push'](..._0xf60c71['getRanges']());continue;}const _0x39d4a0=_0xf60c71['getFirstRange']();if(_0x30a7ac['length']>0x0){const _0x3ffb6f=_0x30a7ac[0x0]['getJoined'](_0x39d4a0);if(_0x3ffb6f){_0x30a7ac[0x0]=_0x3ffb6f;continue;}}_0x30a7ac['push'](_0x39d4a0);}_0x19fa1d['push']([_0x508fd8['view'],_0x30a7ac]);}return _0x19fa1d;}),this['listenTo'](_0x558ae9,'suggestionLoaded',(_0x39aeea,_0xdccbd5)=>{this['listenTo'](_0xdccbd5,'change:previous',(_0x551c9d,_0x2249ff,_0x46449c,_0xde4259)=>{_0xdccbd5['isInContent']&&(null==_0x46449c?(this['_updateController'](_0xde4259['head']),this['_handleSuggestionControllerDelayed'](_0xdccbd5,!0x1)):(this['_updateController'](_0x46449c['head']),null==_0xde4259&&this['_handleSuggestionControllerDelayed'](_0xdccbd5,!0x0)));}),null!==_0xdccbd5['previous']?this['_updateController'](_0xdccbd5['head']):this['_handleSuggestionControllerDelayed'](_0xdccbd5,!0x1);}),this['listenTo'](_0x558ae9,'suggestionUnloaded',(_0x3119e9,_0x427e75,_0x413ce3)=>{this['stopListening'](_0x427e75,'change:previous'),this['_handleControllerBuffer']['delete'](_0x427e75),this['_suggestionToController']['has'](_0x427e75)&&this['_destroyController'](_0x427e75),_0x413ce3&&this['_updateController'](_0x413ce3['head']);}),this['listenTo'](_0x558ae9,'suggestionChanged',(_0x391dc1,_0x49ed0f)=>{this['_updateController'](_0x49ed0f);}),this['listenTo'](_0x14be24,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x31c7d5,'addComment',(_0x493a70,{threadId:_0x381fda,isFromAdapter:_0x4a0e82})=>{if(_0x4a0e82||!_0x558ae9['hasSuggestion'](_0x381fda))return;const _0x4d0023=_0x558ae9['getSuggestion'](_0x381fda);this['_suggestionToController']['get'](_0x4d0023)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x25058f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x358cf3;for(const _0x1874f8 in _0x25058f){const _0xc0bb7e=_0x1874f8,_0xfdc385=_0x25058f[_0xc0bb7e];if('trackChangesLicenseKeyValid'==_0xfdc385||'trackChangesLicenseKeyInvalid'==_0xfdc385||'trackChangesLicenseKeyExpired'==_0xfdc385||'trackChangesLicenseKeyDomainLimit'==_0xfdc385||'trackChangesLicenseKeyNotAllowed'==_0xfdc385||'trackChangesLicenseKeyEvaluationLimit'==_0xfdc385||'trackChangesLicenseKeyTrialLimit'==_0xfdc385||'trackChangesLicenseKeyUsageLimit'==_0xfdc385){delete _0x25058f[_0xc0bb7e],_0x358cf3=_0xfdc385,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x358cf3&&_0x25058f['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x358cf3&&_0x25058f['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x358cf3&&_0x25058f['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x358cf3&&_0x25058f['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x358cf3&&_0x25058f['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x358cf3&&_0x25058f['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x358cf3&&_0x25058f['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1aa545=this['editor']['plugins']['get']('Annotations'),_0x2d336e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40e142=Array['from'](_0x1aa545['activeAnnotations'],_0x2942b6=>_0x2942b6['innerView'])['filter'](_0xaf79ce=>this['_viewToController']['has'](_0xaf79ce)),_0x40e6cb=[];for(const _0x378315 of _0x40e142){const _0x1d2c36=this['_viewToController']['get'](_0x378315)['model']['getAllAdjacentSuggestions']();_0x40e6cb['push'](..._0x1d2c36['reduce']((_0x161c3e,_0x22ef32)=>[..._0x161c3e,..._0x22ef32['getMarkerNames']()],[]));}_0x2d336e['activeMarkers']=_0x40e6cb;}['_addUIComponentsToFactory'](){const _0x51ab43=this['editor'],_0x1562e0=_0x51ab43['locale'],_0x368caf=c(_0x1562e0,'Track\x20changes'),_0x10f91d=new _0x233d6f([{'type':'switchbutton','model':new _0x45532b({'withText':!0x0,'isToggleable':!0x0,'label':_0x368caf,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x51ab43['plugins']['has']('TrackChangesPreview')&&_0x10f91d['addMany']([{'type':'separator'},{'type':'button','model':new _0x45532b({'withText':!0x0,'label':c(_0x1562e0,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2b188c of _0x10f91d)if(ke(_0x2b188c)){const _0x270d71=_0x51ab43['commands']['get'](_0x2b188c['model']['commandName']);_0x2b188c['model']['bind']('isOn','isEnabled')['to'](_0x270d71,'value','isEnabled');}_0x51ab43['ui']['componentFactory']['add']('trackChanges',_0x3fac38=>this['_createToolbarButton'](_0x3fac38,_0x10f91d,_0x368caf)),_0x51ab43['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5cd0fa=>this['_createMenuBarMenu'](_0x5cd0fa,_0x10f91d,_0x368caf));}['_createToolbarButton'](_0x5dd251,_0x2267cb,_0x584cd3){const _0xb2c09c=_0x4315a1(_0x5dd251,_0x936d1),_0x108f23=this['editor']['commands']['get']('trackChanges');_0xb2c09c['buttonView']['set']({'tooltip':_0x584cd3,'label':_0x584cd3,'icon':_0x5b2a51}),_0xb2c09c['buttonView']['bind']('isOn')['to'](_0x108f23,'value'),_0xb2c09c['buttonView']['on']('execute',()=>{_0x108f23['execute'](),this['editor']['editing']['view']['focus']();}),_0x4a36cd(_0xb2c09c,_0x2267cb,{'role':'menu'});const _0x1f0711=[];for(const _0x4671a4 of _0x2267cb)ke(_0x4671a4)&&_0x1f0711['push'](this['editor']['commands']['get'](_0x4671a4['model']['commandName']));const _0x1646db=_0xb2c09c['buttonView'];return _0x1646db['actionView']['unbind']('isEnabled'),_0x1646db['arrowView']['unbind']('isEnabled'),_0x1646db['actionView']['bind']('isEnabled')['to'](_0x108f23,'isEnabled'),_0x1646db['arrowView']['bind']('isEnabled')['toMany'](_0x1f0711,'isEnabled',(..._0x17d55a)=>_0x17d55a['some'](_0x51f682=>_0x51f682)),_0xb2c09c['on']('execute',_0x22a5e1=>{this['editor']['execute'](_0x22a5e1['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xb2c09c;}['_createMenuBarMenu'](_0x4219ff,_0x38decf,_0x527349){const _0x870a2f=new _0x4e63f9(_0x4219ff),_0x2335a0=this['editor']['commands']['get']('trackChanges');_0x870a2f['buttonView']['set']({'label':_0x527349,'icon':_0x5b2a51});const _0x55e025=new _0x23aa5e(_0x4219ff);for(const _0xe11c13 of _0x38decf){if('separator'==_0xe11c13['type']){_0x55e025['items']['add'](new _0x34a850(_0x4219ff));continue;}const _0x353a7d=new _0x2a8dc1(_0x4219ff,_0x870a2f),_0x49b320=new _0x1b9a32(_0x4219ff),_0x545e9d=_0xe11c13['model'];_0x49b320['bind'](...Object['keys'](_0x545e9d))['to'](_0x545e9d),_0x49b320['delegate']('execute')['to'](_0x870a2f),_0x49b320['on']('execute',()=>{this['editor']['execute'](_0x545e9d['commandName']),this['editor']['editing']['view']['focus']();}),_0x353a7d['children']['add'](_0x49b320),_0x55e025['items']['add'](_0x353a7d);}return _0x870a2f['bind']('isEnabled')['to'](_0x2335a0,'isEnabled'),_0x870a2f['panelView']['children']['add'](_0x55e025),_0x870a2f;}['_initializeController'](_0x18275b){const _0x1d1dbb=this['editor'],_0x18ca0d=_0x1d1dbb['config'],_0x44b4d6=_0x1d1dbb['plugins']['get']('Annotations'),_0xfde516=_0x1d1dbb['plugins']['get']('CommentsRepository'),_0x419a79=_0x1d1dbb['plugins']['get']('EditorAnnotations'),_0x2d628e=_0x1d1dbb['plugins']['get'](_0x329083)['me'],_0x390b57=_0x18ca0d['get']('trackChanges')['SuggestionThreadView'],_0x51c092=_0x18ca0d['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2cf3b8,CommentThreadInputView:_0x698e37}=_0x1d1dbb['plugins']['get']('CommentsUI');let _0x40fdfe,_0x57711e,_0x4c7821;this['_annotationViews']['has'](_0x18275b['id'])?(_0x57711e=this['_annotationViews']['get'](_0x18275b['id']),_0x40fdfe=_0x57711e['mainView']):(_0x40fdfe=new _0x390b57(_0x1d1dbb['locale'],_0x18275b,_0x2d628e,{'disableComments':this['_disableComments'],'editorConfig':{..._0x18ca0d['get']('comments.editorConfig'),'licenseKey':_0x18ca0d['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x18ca0d['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x18ca0d['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x18ca0d['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x187b0c(_0x18ca0d['get']('locale')),'CommentView':_0x18ca0d['get']('comments')['CommentView'],'CommentsListView':_0x2cf3b8,'CommentThreadInputView':_0x698e37,'SuggestionView':_0x51c092}),_0x40fdfe['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d1dbb['editing']['view']['focus']();}),_0x40fdfe['suggestionView']['discardButton']['on']('execute',()=>{_0x1d1dbb['editing']['view']['focus']();}),_0x57711e=_0x44b4d6['createAnnotationView'](this['editor']['locale'],_0x40fdfe),_0x57711e['bind']('isDirty')['to'](_0x40fdfe,'isDirty'),_0x57711e['bind']('length')['to'](_0x40fdfe),_0x57711e['bind']('type')['to'](_0x40fdfe,'type',_0xb2659e=>'suggestion-'+_0xb2659e),_0x40fdfe['on']('escape',()=>{_0x4c7821['fire']('escape');}),this['_annotationViews']['set'](_0x18275b['id'],_0x57711e));const _0x447ef1=_0xfde516['createCommentThreadController'](_0x18275b['commentThread'],_0x40fdfe),_0x25e300=new pe(_0x1d1dbb,_0x18275b,_0x40fdfe,_0x447ef1),_0x1f62ba=_0x18275b['getAllAdjacentSuggestions']()['filter'](_0x48a458=>_0x48a458['isInContent']);_0x40fdfe['descriptionParts']=_0x1d1dbb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f62ba),this['_suggestionToController']['set'](_0x18275b,_0x25e300),this['_viewToController']['set'](_0x40fdfe,_0x25e300),_0x4c7821=_0x44b4d6['createAnnotation']({'view':_0x57711e,'target':()=>{const _0xce4f1a=[],_0x26c342=_0x18275b['getAllAdjacentSuggestions']()['filter'](_0x1804f2=>_0x1804f2['isInContent']);for(const _0x25dd4e of _0x26c342)_0xce4f1a['push'](..._0x25dd4e['getMarkers']());return _0x9fb501(_0x1d1dbb['editing'],_0xce4f1a);},'type':()=>'suggestion-'+_0x25e300['view']['type']}),_0xfde516['_bindAnnotationToEditors'](_0x40fdfe,_0x4c7821),_0x44b4d6['add'](_0x4c7821),_0x419a79['registerAnnotation'](_0x4c7821);}['_destroyController'](_0x32bc88){const _0x22519d=this['editor']['plugins']['get']('CommentsRepository'),_0x3cf10d=this['editor']['plugins']['get']('Annotations'),_0x3a1d2f=this['_suggestionToController']['get'](_0x32bc88),_0x3ceb37=_0x3a1d2f['view'],_0x140df1=_0x3cf10d['getByInnerView'](_0x3ceb37);_0x22519d['_unbindEditors'](_0x3ceb37),_0x140df1&&_0x3cf10d['remove'](_0x140df1),this['_suggestionToController']['delete'](_0x32bc88),this['_viewToController']['delete'](_0x3ceb37),_0x3a1d2f['destroy']();}['_updateController'](_0x24f78f){if(!_0x24f78f['isInContent']||!this['_suggestionToController']['has'](_0x24f78f))return;const _0x42a97e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33aac3=this['_suggestionToController']['get'](_0x24f78f),_0x4a6972=_0x24f78f['getAllAdjacentSuggestions']();_0x33aac3['view']['descriptionParts']=_0x42a97e['descriptionFactory']['getDescriptions'](_0x4a6972);}['destroy'](){for(const _0x45c3e2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x45c3e2);for(const _0xb7cd5d of this['_annotationViews']['values']())_0xb7cd5d['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3e93bd){return'model'in _0x3e93bd;}class k extends _0x368c11{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x4504a8){this['editor']['plugins']['get'](p)['adapter']=_0x4504a8;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x202cfe){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x202cfe);}['getSuggestions']({skipNotAttached:_0x21bd85=!0x1,toJSON:_0x2e9734=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x21bd85,'toJSON':_0x2e9734});}['getSuggestion'](_0x3ed92c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3ed92c);}}const w=['Pagination'];class T extends _0x368c11{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x2a2f52=this['editor'];if(_0x2a2f52['config']['define']('trackChangesData.editorCreator',_0x48cf76=>{const _0x5fe0ba=_0x2a2f52['model']['document']['getRootNames']()['reduce']((_0xd01fd4,_0x2456f7)=>(_0xd01fd4[_0x2456f7]='',_0xd01fd4),{});return _0x2a2f52['constructor']['create'](_0x5fe0ba,_0x48cf76);}),'function'!=typeof _0x2a2f52['config']['get']('trackChangesData')['editorCreator'])throw new _0x921117('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x18cfcb){return N(this['editor'],!0x0,_0x18cfcb);}['getDataWithDiscardedSuggestions'](_0xb615cb){return N(this['editor'],!0x1,_0xb615cb);}}class D extends _0x368c11{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a527a){function _0x4591cf(_0x1078fb){return _0x1078fb['map'](_0x1a4614=>String['fromCharCode'](_0x1a4614))['join']('');}super(_0x5a527a),this['result']='end',_0x5a527a[_0x4591cf([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4591cf([0x76,0x69,0x65,0x77])][_0x4591cf([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4591cf([0x61,0x75,0x74,0x6f]),_0x5a527a[_0x4591cf([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4591cf([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4591cf([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4591cf([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4591cf([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x1226a3){return void 0x0!==_0x1226a3['getRootsAttributes'];}async function N(_0x3ed57d,_0x531b2d,_0x578bdf){const _0x293406=_0x5adfcb(_0x3ed57d,w);_0x293406['plugins']['push'](p,D),_0x293406['rootsAttributes']=Fe(_0x3ed57d)?_0x3ed57d['getRootsAttributes']():void 0x0;const _0x3c0082=document['createDocumentFragment'](),_0x20911e=_0x3ed57d['config']['get']('trackChangesData')['editorCreator'],_0x5368f6=await _0x20911e(_0x293406,()=>function(_0x2a2e2e){const _0x2ff742=document['createElement']('div');return _0x2a2e2e['appendChild'](_0x2ff742),_0x2ff742;}(_0x3c0082));!function(_0x335295,_0x43a663){const _0x2eed62=_0x335295['model']['document']['getRootNames']()['reduce']((_0x3762f0,_0x544ad1)=>(_0x3762f0[_0x544ad1]=_0x335295['data']['get']({'rootName':_0x544ad1}),_0x3762f0),{}),_0x2b1160=_0x335295['plugins']['get']('Users')['users']['map'](_0x3fb90c=>({'id':_0x3fb90c['id'],'name':_0x3fb90c['name']})),_0x2be34a=_0x335295['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26144b=_0x335295['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x424586=_0x43a663['plugins']['get']('Users'),_0x99fe40=_0x43a663['plugins']['get']('TrackChangesEditing'),_0x3d40fe=_0x43a663['plugins']['get']('CommentsRepository');for(const _0x4ebc09 of _0x3d40fe['getCommentThreads']())_0x4ebc09['remove']();for(const _0x43f5c8 of _0x2b1160)_0x424586['getUser'](_0x43f5c8['id'])||_0x424586['addUser'](_0x43f5c8);_0x424586['me']||_0x424586['useAnonymousUser']();for(const _0x38c6b1 of _0x26144b)_0x3d40fe['addCommentThread'](_0x38c6b1);for(const _0x39def2 of _0x2be34a)_0x99fe40['addSuggestionData'](_0x39def2);_0x43a663['data']['set'](_0x2eed62);}(_0x3ed57d,_0x5368f6),_0x5368f6['execute'](_0x531b2d?'acceptAllSuggestions':'discardAllSuggestions');const _0xcd5fb2=Fe(_0x5368f6)?_0x5368f6['getFullData'](_0x578bdf):_0x5368f6['data']['get'](_0x578bdf);return await _0x5368f6['destroy'](),_0xcd5fb2;}class Me extends _0x2baa4b{['options'];constructor(_0x1a7ac1,_0x445e6d){super(_0x1a7ac1),this['options']=_0x445e6d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x561199,_0x180ff7){if(!this['element'])return;const _0x182a24=[];for(const [_0x567f5e,_0x16acf9]of _0x561199){const _0x512450=document['createElement']('div');_0x512450['setAttribute']('data-ck-root-name',_0x567f5e),_0x512450['className']=_0x16acf9['classes']+'\x20ck-track-changes-preview__root-container',_0x512450['innerHTML']=_0x16acf9['content'],_0x182a24['push'](_0x512450);}_0x180ff7(this['element'],_0x182a24),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x46c601{constructor(_0x56f716){super(_0x56f716),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x92830d=this['editor'],_0x3b6dc1=_0x92830d['locale'],_0x145926=_0x92830d['plugins']['get']('Dialog');let _0x453813;const _0x4bb6f4=function(_0x4c62bf){const _0x2cc911={};if('editables'in _0x4c62bf['ui']['view']){for(const [_0x3c8294,_0x3c95e4]of Object['entries'](_0x4c62bf['ui']['view']['editables']))_0x2cc911[_0x3c8294]=_0x3c95e4['element'];}else _0x2cc911[_0x4c62bf['model']['document']['getRootNames']()[0x0]]=_0x4c62bf['ui']['view']['editable']['element'];return _0x2cc911;}(_0x92830d),_0x5b46af=function(_0x20dcaf){let _0x4cbbd7=0x0;for(const _0x18edef of Object['values'](_0x20dcaf))_0x4cbbd7=Math['max'](_0x4cbbd7,_0x18edef['getBoundingClientRect']()['width']);let _0x88627e=0x0;for(const _0x49e442 of Object['values'](_0x20dcaf))_0x88627e+=_0x49e442['getBoundingClientRect']()['height'];const _0x22d56e=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x56e9f3=Math['min'](_0x88627e,_0x22d56e);return{'width':_0x4cbbd7,'height':_0x56e9f3};}(_0x4bb6f4);_0x145926['show']({'id':'finalContentPreview','title':c(_0x3b6dc1,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x3b6dc1,{'dialogRects':_0x5b46af}),'onHide':()=>{_0x453813['detachFromDom']();},'onShow':()=>{_0x92830d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x48c730=>{const _0x54b48a=this['_standarizeRootsData'](_0x48c730,_0x92830d,_0x4bb6f4);_0x145926['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54b48a,_0x92830d['config']['get']('trackChanges.preview.renderFunction'));}),_0x453813=new _0x287a96(_0x3b6dc1,[_0x145926['view']]),_0x453813['attachToDom'](),_0x453813['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x92830d['once']('destroy',()=>{_0x453813['detachFromDom']();});const _0x4af3df=_0x145926['view']['headerView']['class'];_0x145926['view']['headerView']['class']=_0x4af3df?_0x4af3df+'\x20ck-reset_all':'ck-reset_all',_0x145926['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x145926['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x244edf=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x59ac7a=_0x244edf['previewMode'],_0x45178a={};if('$labels'===_0x59ac7a){for(const _0x40c1a1 of _0x244edf['getMergeFieldsIds']())_0x45178a[_0x40c1a1]=_0x244edf['getLabel'](_0x40c1a1)||_0x40c1a1;}else{const _0x1bcbef='$defaultValues'===_0x59ac7a?_0x244edf['getDefaultValues']():_0x244edf['getDataSetValues'](_0x59ac7a,!0x0);for(const _0x937c0 of Object['entries'](_0x1bcbef)){const [_0x300556,_0x55ecce]=_0x937c0;_0x45178a[_0x300556]=null!==_0x55ecce?_0x55ecce:_0x244edf['getLabel'](_0x300556)||_0x300556;}}return{'mergeFieldsData':_0x45178a};}['_standarizeRootsData'](_0x10bd2e,_0x3809e,_0x68c4ea){let _0x2edaa7;if('string'==typeof _0x10bd2e){const _0x2b25c9=_0x3809e['model']['document']['getRootNames']()[0x0];_0x2edaa7={[_0x2b25c9]:_0x10bd2e};}else _0x2edaa7=_0x10bd2e;const _0x59597b=this['_fixMediaEmbeds'](_0x2edaa7,_0x3809e),_0x2b0f8e=function(_0x5b3056,_0xc52f6){for(const [_0x441ca1,_0x2f9a0c]of _0x5b3056)_0x2f9a0c['classes']=_0xc52f6[_0x441ca1]['classList']['value']['replace']('ck-focused','');return _0x5b3056;}(this['_sortRoots'](_0x3809e)['reduce']((_0x148f54,_0x52b6bf)=>(_0x148f54['push']([_0x52b6bf,{'content':_0x59597b[_0x52b6bf],'classes':''}]),_0x148f54),[]),_0x68c4ea);return _0x2b0f8e;}['_fixMediaEmbeds'](_0x5a31ed,_0x18a319){if(!_0x18a319['plugins']['has']('MediaEmbedEditing'))return _0x5a31ed;const _0xf45f45=_0x18a319['plugins']['get']('MediaEmbedEditing');for(const [_0x333686,_0x3fd0d5]of Object['entries'](_0x5a31ed)){const _0x203b9d=document['createElement']('div');_0x203b9d['innerHTML']=_0x3fd0d5,(_0x203b9d['querySelectorAll']('figure.media')['forEach'](_0x420c57=>{const _0x23c074=_0x420c57['querySelector']('oembed');if(_0x23c074){const _0x4ad22a=_0x23c074['getAttribute']('url');if(_0x4ad22a){const _0x38463f=_0xf45f45['registry']['getMediaViewElement'](new _0x2e2cfe(_0x18a319['editing']['view']['document']),_0x4ad22a,{'elementName':'','renderForEditingView':!0x0}),_0x132d25=document['createElement']('div');_0x132d25['classList']['add']('ck-media__wrapper'),_0x38463f['render'](_0x132d25,_0x18a319['editing']['view']['domConverter']),_0x23c074['replaceWith'](_0x132d25);}}}),_0x5a31ed[_0x333686]=_0x203b9d['innerHTML']);}return _0x5a31ed;}['_sortRoots'](_0x41ca57){if(!function(_0x5ef9bf){return void 0x0!==_0x5ef9bf['getRootsAttributes'];}(_0x41ca57))return _0x41ca57['model']['document']['getRootNames']();const _0x2dae39=[],_0x483b6a=new Map();for(const _0x2014f6 of _0x41ca57['model']['document']['getRootNames']()){const _0x198db6=_0x41ca57['editing']['view']['getDomRoot'](_0x2014f6)['getClientRects']()['item'](0x0);_0x2dae39['push'](_0x2014f6),_0x483b6a['set'](_0x2014f6,_0x198db6);}return _0x2dae39['sort']((_0x5e11bd,_0x338888)=>{const _0xffd6f9=_0x483b6a['get'](_0x5e11bd),_0x52518e=_0x483b6a['get'](_0x338888);return _0xffd6f9['y']-_0x52518e['y']||_0xffd6f9['x']-_0x52518e['x'];}),_0x2dae39;}}class te extends _0x368c11{static get['requires'](){return[T,_0x165194];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x397215){super(_0x397215),_0x397215['commands']['add']('previewFinalContent',new re(this['editor'])),_0x397215['config']['define']('trackChanges.preview.renderFunction',(_0x134732,_0x372213)=>{for(const _0x47ad76 of _0x372213)_0x134732['appendChild'](_0x47ad76);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|