@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250525.0 → 0.0.0-nightly-20250526.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 +27 -27
- 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
|
-
_0x76456b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5c612b,_0x25a7c6){super(),this['id']=_0x25a7c6['id'],this['type']=_0x25a7c6['type'],this['subType']=_0x25a7c6['subType']||null,this['author']=_0x25a7c6['author'],this['creator']=_0x25a7c6['creator']||_0x25a7c6['author'],this['isExternal']=Boolean(_0x25a7c6['attributes']&&_0x25a7c6['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x25a7c6['originalSuggestionId']||null,this['_model']=_0x5c612b,this['_onAccept']=_0x25a7c6['onAccept'],this['_onDiscard']=_0x25a7c6['onDiscard'],this['_onAttributesChange']=_0x25a7c6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x25a7c6['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 _0x29c843=this;for(;_0x29c843['previous'];)_0x29c843=_0x29c843['previous'];return _0x29c843;}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'](_0x18c38e){this['_markerNames']['add'](_0x18c38e);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2826f5=>this['_model']['markers']['get'](_0x2826f5))['filter'](_0x3aab4b=>_0x3aab4b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2252d6=>{for(const _0x2e4b67 of this['getMarkers']())_0x2252d6['removeMarker'](_0x2e4b67);}),this['_markerNames']['clear']();}['removeMarker'](_0x4a5094){this['_model']['change'](_0x7a0c5e=>{_0x7a0c5e['removeMarker'](_0x4a5094);}),this['_markerNames']['delete'](_0x4a5094);}['addRange'](_0x39652b){const _0x1564d1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1564d1),this['_model']['change'](_0x3d7712=>{_0x3d7712['addMarker'](_0x1564d1,{'range':_0x39652b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x203b1c){for(const _0x2b2e82 of this['getRanges']())if(_0x2b2e82['isIntersecting'](_0x203b1c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x32c98b=>_0x32c98b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x504471,_0x54abfe)=>[..._0x504471,..._0x54abfe['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3355c4=this['getRanges']();if(0x1!=_0x3355c4['length'])return null;const _0x2b1061=_0x3355c4[0x0],_0x59a10c=_0x2b1061['start']['nodeAfter'],_0x5a3b65=_0x2b1061['end']['nodeBefore'];return _0x59a10c instanceof _0x18db3f?_0x59a10c!=_0x5a3b65?null:_0x59a10c: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 _0x1c641e=[];let _0xf51e51=this['head'];for(;_0xf51e51;)_0x1c641e['push'](_0xf51e51),_0xf51e51=_0xf51e51['next'];return _0x1c641e;}['setAttribute'](_0x3a94d4,_0x17abdb){const _0x536e25=_0x4163f7(this['attributes']);_0x40bc7c(_0x536e25,_0x3a94d4,_0x17abdb),_0x164cf0(_0x536e25,this['attributes'])||(this['attributes']=_0x536e25,this['_onAttributesChange'](_0x536e25));}['removeAttribute'](_0x2807ff){const _0x2421f2=_0x4163f7(this['attributes']);_0xd3c075(_0x2421f2,_0x2807ff),_0x164cf0(_0x2421f2,this['attributes'])||(this['attributes']=_0x2421f2,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 _0x3c2271()['substr'](0x1,0x5);}}function c(_0x495a4e,_0xf3bad0,_0x337684){const _0x3e5a3e=_0x495a4e['t'],t=_0x495a4e['t'];switch(_0xf3bad0){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',_0x337684);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x337684);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x337684);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x337684);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x337684);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',_0x337684);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x337684);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',_0x337684);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x337684);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x337684);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x337684);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x337684);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x337684);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x337684);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x337684);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x337684);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x337684);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x337684);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x337684);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x337684);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x337684);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x337684);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x337684);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x337684);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x337684);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'},_0x337684);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x337684);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x337684);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x337684);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x337684);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x337684);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x337684);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x337684);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'},_0x337684);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x337684);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x337684);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x337684);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x337684);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'},_0x337684);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x337684);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'},_0x337684);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'},_0x337684);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x337684);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'},_0x337684);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x337684);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'},_0x337684);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x337684);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x337684);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'},_0x337684);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x337684);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 _0x3e5a3e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x337684);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3e5a3e({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x337684);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x337684);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'},_0x337684);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'},_0x337684);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'},_0x337684);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xf3bad0;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x210447,_0x1802aa){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x210447,this['_locale']=_0x1802aa;}['getDescriptions'](_0x3ec638){const _0x2cba89=[],_0xad7862=new Set(),_0x3c9a5f=new Set();for(let _0x31c2d9=0x0;_0x31c2d9<_0x3ec638['length'];_0x31c2d9++){const _0x1a6903=_0x3ec638[_0x31c2d9];if(!_0x1a6903['isInContent'])continue;const _0x1aa8de=this['_handleCustomCallbackDescription'](_0x1a6903);if(_0x1aa8de){if(null!=_0x1a6903['subType']){if(_0xad7862['has'](_0x1a6903['subType']))continue;_0xad7862['add'](_0x1a6903['subType']);}_0x2cba89['push'](_0x1aa8de);}else{if('attribute'!=_0x1a6903['type'])'insertion'!=_0x1a6903['type']&&'deletion'!=_0x1a6903['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2cba89,_0x1a6903,_0x3ec638[_0x31c2d9+0x1]);else{const _0xc050d5=_0x1a6903['data']['key'];if(_0x3c9a5f['has'](_0xc050d5))continue;_0x3c9a5f['add'](_0x1a6903['data']['key']),_0xc050d5==u?this['_handleRenameSuggestionDescription'](_0x2cba89,_0x1a6903):this['_handleAttributeSuggestionDescription'](_0x2cba89,_0x1a6903);}}}return this['_resolveDescriptionItems'](_0x2cba89);}['registerDescriptionCallback'](_0x494d31){this['_customCallbacks']['push'](_0x494d31);}['registerElementLabel'](_0x43056f,_0x131903,_0x1acfd2=_0x55292e['normal']){'function'==typeof _0x43056f?_0x21284a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x43056f,'label':_0x131903,'priority':_0x1acfd2}):this['_itemLabels']['set'](_0x43056f,_0x131903);}['registerAttributeLabel'](_0x425f4d,_0x541628){this['_attributeLabels']['set'](_0x425f4d,_0x541628);}['getItemLabel'](_0x2df606,_0x23d067=0x1){let _0x55e06d;for(const _0x53832d of this['_itemLabelsCallbacks'])if(_0x53832d['matchingCallback'](_0x2df606)){_0x55e06d=_0x53832d['label'];break;}return _0x55e06d||(_0x55e06d=this['_itemLabels']['get'](_0x2df606['name'])),_0x55e06d?_0x55e06d(_0x23d067):0x1!==_0x23d067?_0x23d067+'\x20'+_0x2df606['name']+'s':''+_0x2df606['name'];}['_addDescriptionItems'](_0x5da676,_0x54d0c9){const _0x28d128=_0x54d0c9['getFirstRange']()['getWalker'](),_0x204311='insertion'==_0x54d0c9['type']?'add':'remove';for(const _0x165740 of _0x28d128){const _0x28f465=_0x165740['item'],_0x3fff74=_0x5da676[_0x5da676['length']-0x1];if(_0x28f465['is']('$textProxy'))_0x3fff74&&_0x3fff74['type']['indexOf']('Container')>-0x1&&_0x5da676['pop'](),_0x3fff74&&'text'==_0x3fff74['type']?_0x3fff74[_0x204311]+=_0x28f465['data']:_0x5da676['push']({'type':'text','add':'add'==_0x204311?_0x28f465['data']:'','remove':'remove'==_0x204311?_0x28f465['data']:''});else{if(this['_schema']['isObject'](_0x28f465)){const _0x3a014e=_0x28f465;if(_0x3fff74&&_0x3fff74['type']['indexOf']('Container')>-0x1&&_0x5da676['pop'](),'elementEnd'==_0x165740['type'])continue;_0x3fff74&&_0x3fff74['type']==_0x204311+'Object'&&_0x3fff74['element']['name']==_0x3a014e['name']?_0x3fff74['quantity']++:_0x5da676['push']({'type':_0x204311+'Object','element':_0x3a014e,'quantity':0x1}),_0x28d128['skip'](_0x556601=>!('elementEnd'==_0x556601['type']&&_0x556601['item']==_0x28f465));}else{if(this['_schema']['checkChild'](_0x28f465,'$text')||_0x28f465['is']('element','softBreak')){const _0x2fd845=_0x28f465;if('add'==_0x204311&&'elementStart'==_0x165740['type']||'remove'==_0x204311&&'elementEnd'==_0x165740['type'])continue;if(_0x3fff74&&-0x1==_0x3fff74['type']['indexOf']('Container')){'text'==_0x3fff74['type']&&(_0x3fff74[_0x204311]+='\x0a');continue;}let _0x30acea;if(_0x30acea='add'==_0x204311?_0x2fd845['nextSibling']&&!this['_schema']['isObject'](_0x2fd845['nextSibling'])?_0x2fd845['nextSibling']:null:_0x2fd845['previousSibling']&&!this['_schema']['isObject'](_0x2fd845['previousSibling'])?_0x2fd845['previousSibling']:null,_0x2fd845['isEmpty']||_0x30acea&&_0x30acea['isEmpty']){const _0x573fc4=_0x30acea&&_0x30acea['isEmpty']?_0x30acea:_0x2fd845;_0x3fff74&&_0x3fff74['type']==_0x204311+'EmptyContainer'&&_0x3fff74['element']['name']==_0x573fc4['name']?_0x3fff74['quantity']++:_0x5da676['push']({'type':_0x204311+'EmptyContainer','element':_0x573fc4,'quantity':0x1});}else _0x5da676['push']({'type':_0x204311+'Container','element':_0x2fd845});}}}}}['_resolveDescriptionItems'](_0x2441a7){const _0x16257c=this['_locale'],_0xff06f8=[],_0x36da5a=[],_0x1f6466=[];for(const _0x195242 of _0x2441a7)switch(_0x195242['type']){case'text':if(_0x195242['add']=_0x195242['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x195242['remove']=_0x195242['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x195242['add']&&''!=_0x195242['remove']){_0xff06f8['push']({'type':'replace','content':c(_0x16257c,'REPLACE_TEXT',['\x22'+_0x195242['remove']+'\x22','\x22'+_0x195242['add']+'\x22'])});continue;}if(null!=_0x195242['add']['match'](/^ +$/)){_0xff06f8['push']({'type':'insertion','content':c(_0x16257c,'*Insert:*\x20%0',c(_0x16257c,'ELEMENT_SPACE',_0x195242['add']['length']))});continue;}if(null!=_0x195242['remove']['match'](/^ +$/)){_0xff06f8['push']({'type':'deletion','content':c(_0x16257c,'*Remove:*\x20%0',c(_0x16257c,'ELEMENT_SPACE',_0x195242['remove']['length']))});continue;}if(''!=_0x195242['add']){_0xff06f8['push']({'type':'insertion','content':c(_0x16257c,'*Insert:*\x20%0','\x22'+_0x195242['add']+'\x22')});continue;}_0xff06f8['push']({'type':'deletion','content':c(_0x16257c,'*Remove:*\x20%0','\x22'+_0x195242['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xff06f8['push']({'type':'insertion','content':c(_0x16257c,'*Insert:*\x20%0',this['getItemLabel'](_0x195242['element'],_0x195242['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xff06f8['push']({'type':'deletion','content':c(_0x16257c,'*Remove:*\x20%0',this['getItemLabel'](_0x195242['element'],_0x195242['quantity']))});continue;case'addContainer':_0xff06f8['push']({'type':'insertion','content':c(_0x16257c,'*Split:*\x20%0',this['getItemLabel'](_0x195242['element'],_0x195242['quantity']))});continue;case'removeContainer':_0xff06f8['push']({'type':'deletion','content':c(_0x16257c,'*Merge:*\x20%0',this['getItemLabel'](_0x195242['element'],_0x195242['quantity']))});continue;case'addFormat':_0x36da5a['push'](_0x195242['key']);continue;case'removeFormat':_0x1f6466['push'](_0x195242['key']);continue;default:_0xff06f8['push'](_0x195242);}if(_0x36da5a['length']){const _0x2bf31a=_0x36da5a['map'](_0x351035=>this['_attributeLabels']['has'](_0x351035)?this['_attributeLabels']['get'](_0x351035):_0x351035)['join'](',\x20');_0xff06f8['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2bf31a)});}if(_0x1f6466['length']){const _0x33edda=_0x1f6466['map'](_0x27317b=>this['_attributeLabels']['has'](_0x27317b)?this['_attributeLabels']['get'](_0x27317b):_0x27317b)['join'](',\x20');_0xff06f8['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x33edda)});}return _0xff06f8;}['_handleCustomCallbackDescription'](_0x599c65){for(const _0x4264ae of this['_customCallbacks']){const _0x22ac8b=_0x4264ae(_0x599c65);if(_0x22ac8b&&'type'in _0x22ac8b)return _0x22ac8b;}}['_handleAttributeSuggestionDescription'](_0x3614ef,_0xfcd1a8){const _0x36c6c1=_0xfcd1a8['data'],_0x1c20b2=void 0x0===_0x36c6c1['newValue']?'removeFormat':'addFormat';_0x3614ef['push']({'type':_0x1c20b2,'key':_0x36c6c1['key']});}['_handleRenameSuggestionDescription'](_0x7d75a5,_0x48fef9){_0x7d75a5['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x48fef9['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4e3fbc,_0x32fcac,_0x4497cf){if(this['_addDescriptionItems'](_0x4e3fbc,_0x32fcac),_0x4497cf&&_0x4497cf['getFirstRange']()&&!_0x32fcac['getFirstRange']()['end']['isEqual'](_0x4497cf['getFirstRange']()['start'])){const _0x5849a6=_0x4e3fbc[_0x4e3fbc['length']-0x1],_0x3fe0f4='insertion'==_0x32fcac['type']?'add':'remove';_0x5849a6&&'text'==_0x5849a6['type']&&(_0x5849a6[_0x3fe0f4]+='\x0a');}}}class U extends _0x2ee8de{['afterInit'](){const _0x4e2a08=this['editor'],_0x4d9a26=_0x4e2a08['plugins']['get']('TrackChangesEditing');_0x4e2a08['commands']['get']('showAIAssistant')&&_0x4d9a26['enableCommand']('showAIAssistant');}}class V extends _0x2ee8de{['afterInit'](){const _0x3bdbb6=this['editor'],_0x264748=_0x3bdbb6['locale'];if(!_0x3bdbb6['plugins']['has']('AlignmentEditing'))return;const _0x77dde=_0x3bdbb6['plugins']['get']('TrackChangesEditing');_0x77dde['enableDefaultAttributesIntegration']('alignment'),_0x77dde['registerBlockAttribute']('alignment'),_0x77dde['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x264748,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1504f8=this['editor'],_0x7c664d=_0x1504f8['locale'];_0x1504f8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18e54c=>{if('formatBlock'!=_0x18e54c['type'])return;const {data:_0x190365}=_0x18e54c;if(_0x190365&&'alignment'==_0x190365['commandName']){const _0xaa47fa=_0x190365['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x7c664d,'*Format:*\x20%0',function(_0x2c63f9){switch(_0x2c63f9){case'left':return c(_0x7c664d,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x7c664d,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x7c664d,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x7c664d,'FORMAT_JUSTIFY_TEXT');}}(_0xaa47fa))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2ee8de{['afterInit'](){const _0x2180a9=this['editor'],_0x3b2789=_0x2180a9['plugins']['get']('TrackChangesEditing'),_0x553860=_0x2180a9['locale'];for(const _0x5c6fe3 of Zt){if(!_0x2180a9['plugins']['has'](_0x5c6fe3))continue;const _0x38ea38=_0x5c6fe3['slice'](0x0,-0x7)['toLowerCase'](),_0x533510='FORMAT_'+_0x38ea38['toUpperCase']();_0x3b2789['enableDefaultAttributesIntegration'](_0x38ea38),_0x3b2789['registerInlineAttribute'](_0x38ea38),_0x3b2789['descriptionFactory']['registerAttributeLabel'](_0x38ea38,c(_0x553860,_0x533510));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x200812=this['editor'],_0x393fa2=_0x200812['locale'],_0x52f8a4=_0x200812['plugins']['get']('TrackChangesEditing');function _0x1e08cf(_0x928729,_0x451b4d){_0x52f8a4['descriptionFactory']['registerDescriptionCallback'](_0x41fb2c=>{if('formatInline'!=_0x41fb2c['type'])return;const {data:_0x19deab}=_0x41fb2c;return _0x19deab&&_0x19deab['commandName']===_0x928729?_0x19deab['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x393fa2,'*Format:*\x20%0',_0x451b4d)}:{'type':'format','content':c(_0x393fa2,'*Remove\x20format:*\x20%0',_0x451b4d)}:void 0x0;});}_0x1e08cf('bold',c(_0x393fa2,'FORMAT_BOLD')),_0x1e08cf('italic',c(_0x393fa2,'FORMAT_ITALIC')),_0x1e08cf('underline',c(_0x393fa2,'FORMAT_UNDERLINE')),_0x1e08cf('code',c(_0x393fa2,'FORMAT_CODE')),_0x1e08cf('strikethrough',c(_0x393fa2,'FORMAT_STRIKETHROUGH')),_0x1e08cf('subscript',c(_0x393fa2,'FORMAT_SUBSCRIPT')),_0x1e08cf('superscript',c(_0x393fa2,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2ee8de{['afterInit'](){const _0x4d4cb3=this['editor'],_0x54568d=_0x4d4cb3['locale'];if(!_0x4d4cb3['plugins']['has']('BlockQuoteEditing'))return;const _0x1c637c=_0x4d4cb3['plugins']['get']('TrackChangesEditing'),_0x61a64=this['editor']['commands']['get']('blockQuote');_0x1c637c['enableCommand']('blockQuote',(_0x1660ba,_0x4cc551={})=>{const _0xf25fe2=this['editor']['model']['document']['selection'],_0x32fa0e=_0x4cc551&&void 0x0!==_0x4cc551['forceValue']?_0x4cc551['forceValue']:!_0x61a64['value'];let _0x3893aa=[];if(_0x32fa0e){const _0x41e2fd=Array['from'](_0xf25fe2['getSelectedBlocks']())['filter'](_0x3c7ed3=>oo(_0x3c7ed3)||function(_0x354c4b,_0x6957c2){const _0x435998=_0x6957c2['checkChild'](_0x354c4b['parent'],'blockQuote'),_0x2de014=_0x6957c2['checkChild'](['$root','blockQuote'],_0x354c4b);return _0x435998&&_0x2de014;}(_0x3c7ed3,this['editor']['model']['schema']));_0x3893aa=to(_0x41e2fd,_0x4d4cb3['model']);}else{const _0x340974=Array['from'](_0xf25fe2['getSelectedBlocks']())['filter'](_0x127bec=>oo(_0x127bec));_0x3893aa=to(_0x340974,_0x4d4cb3['model']);}_0x4d4cb3['model']['change'](()=>{for(const _0x46fed6 of _0x3893aa)_0x1c637c['markBlockFormat'](_0x46fed6,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x32fa0e}]});});}),_0x1c637c['descriptionFactory']['registerDescriptionCallback'](_0x3a0105=>{const {data:_0xc262b6}=_0x3a0105;if(_0xc262b6&&'blockQuote'==_0xc262b6['commandName']){const _0x537830=c(_0x54568d,'ELEMENT_BLOCK_QUOTE');return _0xc262b6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x54568d,'*Set\x20format:*\x20%0',_0x537830)}:{'type':'format','content':c(_0x54568d,'*Remove\x20format:*\x20%0',_0x537830)};}});}}function oo(_0xc258aa){return'blockQuote'==_0xc258aa['parent']['name'];}class L extends _0x2ee8de{['afterInit'](){const _0x304d83=this['editor'],_0x363b87=_0x304d83['locale'],_0x194885=_0x304d83['plugins']['get']('TrackChangesEditing');_0x304d83['plugins']['has']('BookmarkEditing')&&(_0x194885['enableCommand']('insertBookmark'),_0x194885['enableDefaultAttributesIntegration']('updateBookmark'),_0x194885['registerBlockAttribute']('bookmarkId'),_0x194885['descriptionFactory']['registerDescriptionCallback'](_0x4517c4=>{if('insertion'!=_0x4517c4['type']&&'deletion'!=_0x4517c4['type']&&'attribute'!=_0x4517c4['type'])return;const _0x24f172=_0x4517c4['getContainedElement']();if(null==_0x24f172)return;if(!_0x24f172['is']('element','bookmark'))return;const _0x5916ad=_0x24f172['getAttribute']('bookmarkId');if('insertion'==_0x4517c4['type'])return{'type':'insertion','content':c(_0x363b87,'*Insert:*\x20%0','\x22'+_0x5916ad+'\x22\x20'+c(_0x363b87,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4517c4['type'])return{'type':'deletion','content':c(_0x363b87,'*Remove:*\x20%0','\x22'+_0x5916ad+'\x22\x20'+c(_0x363b87,'ELEMENT_BOOKMARK'))};const {data:_0x19505e}=_0x4517c4;if(!_0x19505e||'bookmarkId'!=_0x19505e['key'])return;return{'type':'format','content':c(_0x363b87,'*Set\x20bookmark:*\x20%0','\x22'+_0x19505e['newValue']+'\x22')};}));}}class J extends _0x2ee8de{['afterInit'](){const _0x130509=this['editor'];_0x130509['plugins']['has']('CaseChange')&&(_0x130509['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x130509['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x130509['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2ee8de{['afterInit'](){const _0x57042b=this['editor'];_0x57042b['commands']['get']('ckbox')&&_0x57042b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2ee8de{['afterInit'](){const _0x341ff3=this['editor'];if(!_0x341ff3['plugins']['has']('CodeBlock'))return;const _0x217c23=_0x341ff3['plugins']['get']('TrackChangesEditing'),_0x26710d=_0x341ff3['locale'],_0x4c3ace=_0x341ff3['config']['get']('codeBlock')['languages'],_0x1cb3ad=_0x341ff3['commands']['get']('codeBlock');_0x217c23['enableCommand']('indentCodeBlock'),_0x217c23['enableCommand']('outdentCodeBlock'),_0x217c23['enableCommand']('codeBlock',(_0x176dcc,_0x1b1d1d={})=>{const _0x72d140=_0x341ff3['model'],_0xfc5479=_0x341ff3['model']['document']['selection'],_0x293d55=_0x1b1d1d&&void 0x0!==_0x1b1d1d['forceValue']?_0x1b1d1d['forceValue']:!_0x1cb3ad['value'];let _0x3364d3;_0x1b1d1d['language']||(_0x1b1d1d['language']=_0x4c3ace[0x0]['language']),_0x3364d3=_0x293d55?Array['from'](_0xfc5479['getSelectedBlocks']())['filter'](_0x41b20c=>eo(_0x41b20c)||function(_0x232f56,_0xf6fd5c){if(_0x232f56['is']('rootElement')||_0xf6fd5c['isLimit'](_0x232f56))return!0x1;return _0xf6fd5c['checkChild'](_0x232f56['parent'],'codeBlock');}(_0x41b20c,_0x72d140['schema'])):Array['from'](_0xfc5479['getSelectedBlocks']())['filter'](_0x33bd41=>eo(_0x33bd41));const _0x441dc9=to(_0x3364d3,_0x72d140);_0x72d140['change'](()=>{for(const _0x14ce91 of _0x441dc9)_0x217c23['markBlockFormat'](_0x14ce91,{'commandName':'codeBlock','commandParams':[{..._0x1b1d1d,'forceValue':_0x293d55}],'formatGroupId':'blockName'});});}),(_0x217c23['descriptionFactory']['registerElementLabel']('codeBlock',_0x4dfb29=>c(_0x26710d,'ELEMENT_CODE_BLOCK',_0x4dfb29)),_0x217c23['descriptionFactory']['registerDescriptionCallback'](_0x42e572=>{if('formatBlock'!=_0x42e572['type'])return;const _0x1d11eb=_0x26710d['t'],{data:_0x4bdf01}=_0x42e572;if(!_0x4bdf01||'codeBlock'!=_0x4bdf01['commandName'])return;const _0x216a3=_0x4bdf01['commandParams'][0x0]['language'],_0x260129=_0x1d11eb(_0x4c3ace['find'](_0xe6c61d=>_0xe6c61d['language']===_0x216a3)['label'])['toLowerCase']();return _0x4bdf01['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x26710d,'*Set\x20format:*\x20%0',c(_0x26710d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x260129+')')}:{'type':'format','content':c(_0x26710d,'*Remove\x20format:*\x20%0',c(_0x26710d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x55e04e){return'codeBlock'==_0x55e04e['name'];}class q extends _0x2ee8de{['afterInit'](){const _0x4ef050=this['editor'];if(!_0x4ef050['plugins']['has']('CommentsEditing'))return;_0x4ef050['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x18b76f,_0x465ed8,_0x1dc145){const _0x185232=[];for(const _0x5a9a6f of _0x465ed8['getItems']())_0x5a9a6f['hasAttribute'](_0x18b76f)&&_0x185232['push'](_0x1dc145['createRangeOn'](_0x5a9a6f));return _0x185232;}function Fe(_0x1f5af0,_0x3f4372,{showActiveMarker:_0x437360=!0x0}={}){const _0x3dcca7=_0x1f5af0['plugins']['get']('TrackChangesEditing');return(_0xa6c05a,_0x49fa28,_0x7b0f0d)=>{if(!_0x7b0f0d['consumable']['test'](_0x49fa28['markerRange'],_0xa6c05a['name']))return;const _0x5918aa=_0x49fa28['markerRange']['getWalker'](),_0x5a84c8=_0x49fa28['markerRange']['start'],_0x5f1b05=_0x1f5af0['model']['schema'];let _0x1abb5d=null,_0x4345af=null,_0x2a447e=!0x1,_0x44c195=!0x1;for(const _0x2e54d4 of _0x5918aa){const _0x558e3c=_0x2e54d4['item'];_0x2a447e=_0x2a447e||_0x5f1b05['isContent'](_0x558e3c);const _0x1ccebb=_0x7b0f0d['mapper']['toViewElement'](_0x558e3c);if(_0x1ccebb&&_0x1ccebb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e54d4['type']&&(_0x5f1b05['isBlock'](_0x558e3c)&&!_0x5f1b05['isLimit'](_0x558e3c)&&(_0x558e3c['nextSibling']||_0x5a84c8['isAtEnd']?_0x1abb5d&&_0x1abb5d['parent']==_0x558e3c||(_0x1abb5d=_0x558e3c,_0x4f69e2(_0x2e54d4['previousPosition']),_0x44c195=!0x0):_0x4345af=_0x4345af||_0x2e54d4['previousPosition']));}function _0x4f69e2(_0x35fba0){const {id:_0x22beb7,authorId:_0x7461a4}=_0x3dcca7['_splitMarkerName'](_0x49fa28['markerName']),_0x183bf2=_0x7b0f0d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3f4372,'data-suggestion':_0x22beb7,'data-author-id':_0x7461a4}),_0x57ee38=_0x7b0f0d['mapper']['toViewPosition'](_0x35fba0);_0x437360&&_0x3dcca7['activeMarkers']['includes'](_0x49fa28['markerName'])&&_0x7b0f0d['writer']['addClass']('ck-suggestion-marker--active',_0x183bf2),_0x7b0f0d['writer']['insert'](_0x57ee38,_0x183bf2),_0x7b0f0d['mapper']['bindElementToMarker'](_0x183bf2,_0x49fa28['markerName']);}_0x2a447e||_0x44c195||!_0x4345af||_0x4f69e2(_0x4345af);};}class z extends _0x2ee8de{static get['requires'](){return[_0x4e82e9];}['init'](){const _0x2661b1=this['editor'],_0x36b613=_0x2661b1['plugins']['get']('TrackChangesEditing');_0x36b613['enableCommand']('delete');const _0x23d2e3=_0x2661b1['commands']['get']('deleteForward');_0x36b613['enableCommand']('deleteForward',(_0x518da1,_0x18ab4b={})=>{const _0x52ef25=_0x2661b1['model']['createSelection'](_0x2661b1['model']['document']['selection']);_0x52ef25['isCollapsed']&&_0x2661b1['model']['modifySelection'](_0x52ef25,{'direction':'forward','unit':_0x18ab4b['unit']});const _0x36a1a6=_0x52ef25['getFirstRange'](),_0x49240f=_0x128be7['fromRange'](_0x36a1a6);let _0xcd1daa;_0x518da1(_0x18ab4b),_0xcd1daa='$graveyard'==_0x49240f['root']['rootName']?_0x2661b1['model']['createRange'](_0x36a1a6['start']):_0x2661b1['model']['createRange'](_0x49240f['start'],_0x49240f['end']),_0x49240f['detach'](),_0x2661b1['model']['enqueueChange'](_0x23d2e3['buffer']['batch'],_0x28f805=>{_0x23d2e3['buffer']['lock'](),_0x28f805['setSelection'](_0x28f805['createRange'](_0xcd1daa['end'])),_0x23d2e3['buffer']['unlock']();});}),_0x2661b1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2661b1,'merge'),{'priority':'high'}),_0x2661b1['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4bee37,_0x3e2378,_0x4544a5)=>{_0x4544a5['options']['showSuggestionHighlights']&&Fe(_0x2661b1,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4bee37,_0x3e2378,_0x4544a5);},{'priority':'high'}),_0x2661b1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x236cd2,_0x2e3861,_0x249f14)=>{const _0x4366f2=_0x249f14['mapper']['markerNameToElements'](_0x2e3861['markerName']);if(_0x4366f2){for(const _0x152038 of _0x4366f2)_0x152038['is']('uiElement')&&(_0x249f14['mapper']['unbindElementFromMarkerName'](_0x152038,_0x2e3861['markerName']),_0x249f14['writer']['remove'](_0x152038));}},{'priority':'high'});}}class W extends _0x2ee8de{['afterInit'](){const _0x402d59=this['editor'];if(!_0x402d59['plugins']['has']('ListEditing'))return;const _0xbd0b26=_0x402d59['locale'],_0x482979=_0x402d59['plugins']['get']('TrackChangesEditing'),_0xa6338f=_0x402d59['plugins']['has']('TodoListEditing'),_0x308efc=!!_0x402d59['config']['get']('list.multiBlock');function _0x5dbe6d(_0x8ebd54){return{'type':'format','content':''+c(_0xbd0b26,'*Set\x20format:*\x20%0',_0x8ebd54)};}function _0x5b78a5(_0x5c24d4){return{'type':'format','content':''+c(_0xbd0b26,'*Remove\x20format:*\x20%0',_0x5c24d4)};}_0x482979['enableDefaultAttributesIntegration']('numberedList'),_0x482979['enableDefaultAttributesIntegration']('bulletedList'),_0x482979['enableDefaultAttributesIntegration']('customNumberedList'),_0x482979['enableDefaultAttributesIntegration']('customBulletedList'),_0x482979['enableDefaultAttributesIntegration']('indentList'),_0x482979['enableDefaultAttributesIntegration']('outdentList'),_0x482979['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x482979['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x482979['registerBlockAttribute']('listItemId'),_0x482979['registerBlockAttribute']('listType'),_0x482979['registerBlockAttribute']('listIndent'),_0x308efc&&(_0x482979['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x482979['enableDefaultAttributesIntegration']('mergeListItemForward')),_0xa6338f&&(_0x482979['enableDefaultAttributesIntegration']('todoList'),_0x482979['enableDefaultAttributesIntegration']('checkTodoList'),_0x482979['registerBlockAttribute']('todoListChecked'),_0x482979['descriptionFactory']['registerDescriptionCallback'](_0x5cc15e=>{const {data:_0x4f732b}=_0x5cc15e;if(_0x4f732b&&'todoListChecked'==_0x4f732b['key'])return{'type':'format','content':_0x4f732b['newValue']?c(_0xbd0b26,'*Check\x20item*'):c(_0xbd0b26,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x52adca=>{if(_0x52adca['batch']['isUndo'])return!0x1;let _0x148d42=!0x1;const _0x1879f9=_0x482979['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11606e=>'todoListChecked'===_0x482979['_getAttributeKey'](_0x11606e));for(const _0xeb8f5d of _0x1879f9){'todo'!=_0xeb8f5d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x482979['_findSuggestions'](_0xeb8f5d['getFirstRange'](),'attribute')['find'](_0x55174a=>'listType'===_0x482979['_getAttributeKey'](_0x55174a['suggestion']))||(_0x52adca['removeMarker'](_0xeb8f5d['getFirstMarker']()),_0x148d42=!0x0));}return _0x148d42;})),_0x482979['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0xbd0b26,'FORMAT_INDENT'));const _0x3354c2={'type':'format','content':''};_0x482979['descriptionFactory']['registerDescriptionCallback'](_0x296fbb=>{const {data:_0x1d221a}=_0x296fbb;if(!_0x1d221a||'listType'!=_0x1d221a['key'])return;let _0x558c25=_0x296fbb['head'];for(;_0x558c25;){if(_0x558c25['data']&&(('listStyle'==_0x558c25['data']['key']||'listMarkerStyle'==_0x558c25['data']['key'])&&(_0x558c25['data']['newValue']&&'default'!=_0x558c25['data']['newValue']||'default'!=_0x558c25['data']['oldValue']&&!_0x1d221a['newValue'])||!_0x308efc&&_0x558c25['data']['key']==u))return _0x3354c2;_0x558c25=_0x558c25['next'];}if(null==_0x1d221a['newValue'])switch(_0x1d221a['oldValue']){case'bulleted':return _0x5b78a5(c(_0xbd0b26,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b78a5(c(_0xbd0b26,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b78a5(c(_0xbd0b26,'ELEMENT_TODO_LIST'));}switch(_0x1d221a['newValue']){case'bulleted':return _0x5dbe6d(c(_0xbd0b26,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5dbe6d(c(_0xbd0b26,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5dbe6d(c(_0xbd0b26,'ELEMENT_TODO_LIST'));}}),_0x482979['descriptionFactory']['registerDescriptionCallback'](_0x595911=>{const {data:_0x46d637}=_0x595911;if(_0x46d637&&'listIndent'==_0x46d637['key'])return null==_0x46d637['newValue']||null==_0x46d637['oldValue']&&0x0==_0x46d637['newValue']?_0x3354c2:void 0x0;}),_0x482979['descriptionFactory']['registerDescriptionCallback'](_0x44ea7b=>{if('attribute'!=_0x44ea7b['type'])return;const {data:_0x14d531}=_0x44ea7b;if(!_0x14d531||'listItemId'!=_0x14d531['key'])return;const _0x16b980=Te(_0x44ea7b);return'newValue'==_0x16b980?{'type':'format','content':c(_0xbd0b26,'*Merge:*\x20list\x20item')}:'oldValue'==_0x16b980?{'type':'format','content':c(_0xbd0b26,'*Split:*\x20list\x20item')}:_0x3354c2;}),_0x402d59['model']['document']['registerPostFixer'](_0x3bdf75=>this['listItemIdFixer'](_0x3bdf75)),_0x402d59['model']['document']['registerPostFixer'](_0x43a0f1=>this['noTrackChangesFixer'](_0x43a0f1)),_0x402d59['model']['document']['on']('change:data',(_0x26ebfa,_0x11486e)=>{if(_0x11486e['isUndo']||!_0x11486e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x363791){if(_0x363791['batch']['isUndo']||!_0x363791['batch']['isLocal'])return!0x1;let _0x2de24b=!0x1;const _0x370b35=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35c9ae=>_0x35c9ae['data']&&'listItemId'==_0x35c9ae['data']['key'])['filter'](_0x178a7b=>_0x178a7b['data']['newValue']&&_0x178a7b['data']['oldValue']);for(const _0x5eeb4a of _0x370b35)Te(_0x5eeb4a)||(_0x363791['removeMarker'](_0x5eeb4a['getFirstMarker']()),_0x2de24b=!0x0);return _0x2de24b;}['noTrackChangesFixer'](_0x59b69f){if(_0x59b69f['batch']['isUndo']||!_0x59b69f['batch']['isLocal'])return!0x1;const _0x430230=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x430230['trackChangesCommand']['value'])return!0x1;let _0x67e349=!0x1;const _0x311559=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1f7789=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4e1f47=>'attribute'==_0x4e1f47['type'])['filter'](_0x421958=>_0x311559['includes'](_0x421958['attributeKey']));if(0x0==_0x1f7789['length'])return _0x67e349;for(const _0x57f214 of _0x1f7789){const _0x23525e=_0x430230['_findSuggestions'](_0x57f214['range'],'attribute')['filter'](_0x404fcc=>!_0x404fcc['meta']['isNextTo'])['map'](_0x371fe2=>_0x371fe2['suggestion'])['filter'](_0x417b54=>{const _0x14328c=_0x430230['_getAttributeKey'](_0x417b54);return _0x311559['includes'](_0x14328c);});if(_0x23525e['length']){for(const _0xc98d88 of _0x23525e)_0x59b69f['removeMarker'](_0xc98d88['getFirstMarker']());_0x67e349=!0x0;}}return _0x67e349;}['assureChains'](){const _0x19f23d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18fc63=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x229ed4;const _0x2b4466=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x344020=>{if(_0x344020['data']['oldRange']||!_0x344020['data']['newRange'])return null;if(!_0x344020['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x406b67}=_0x19f23d['_splitMarkerName'](_0x344020['name']);if(!_0x19f23d['hasSuggestion'](_0x406b67))return null;const _0x22ef68=_0x19f23d['getSuggestion'](_0x406b67);return _0x18fc63['includes'](_0x22ef68['data']['key']);})['map'](_0x2459c1=>{const {id:_0x4ff3cd}=_0x19f23d['_splitMarkerName'](_0x2459c1['name']),_0xfef03a=_0x19f23d['getSuggestion'](_0x4ff3cd);return _0x229ed4=_0xfef03a['attributes']['groupId'],_0xfef03a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2b4466['size'])return;const _0x19eff7=_0x19f23d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e6e46=>'attribute'==_0x5e6e46['type']&&_0x5e6e46['data']&&_0x18fc63['includes'](_0x5e6e46['data']['key'])&&_0x5e6e46['attributes']['groupId']!=_0x229ed4)['map'](_0x18516c=>({'listItem':_0x18516c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x18516c['attributes']['groupId']})),_0x1d2e84=new Set();for(const {groupId:_0x5f3236,listItem:_0x1453b9}of _0x19eff7)_0x2b4466['has'](_0x1453b9)&&_0x1d2e84['add'](_0x5f3236);for(const _0x4cb62e of _0x19f23d['getSuggestions']())_0x1d2e84['has'](_0x4cb62e['attributes']['groupId'])&&_0x4cb62e['setAttribute']('groupId',_0x229ed4);}['_supportLegacySuggestions'](){const _0x3812a3=this['editor'],_0x101be2=_0x3812a3['locale'],_0x351368=_0x3812a3['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x351368['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5bb166,_0x94652b){const _0x5283ac=[];for(let _0x16a3e4 of _0x5bb166)_0x16a3e4['start']['nodeAfter']===_0x16a3e4['end']['parent']&&(_0x16a3e4=_0x3812a3['model']['createRange'](_0x3812a3['model']['createPositionAt'](_0x16a3e4['start']['nodeAfter'],0x0))),_0x5283ac['push'](_0x16a3e4);_0x3812a3['model']['change'](_0x1a1ab6=>{const _0x1b52b6=_0x3812a3['model']['document']['selection'],_0x28393a=Array['from'](_0x1b52b6['getRanges']())['map'](_0x1d56ac=>_0x128be7['fromRange'](_0x1d56ac));_0x1a1ab6['setSelection'](_0x5283ac),_0x3812a3['commands']['get'](_0x94652b['commandName'])['refresh'](),_0x94652b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3812a3['execute'](_0x94652b['commandName'],..._0x94652b['commandParams']),_0x1a1ab6['setSelection'](_0x28393a);for(const _0x5803f7 of _0x28393a)_0x5803f7['detach']();});}),_0x351368['descriptionFactory']['registerElementLabel'](function(_0x2a94c7){const _0x665df9=!_0x3812a3['model']['schema']['isObject'](_0x2a94c7),_0x232411=_0x2a94c7['previousSibling'],_0x2506bc=_0x2a94c7['nextSibling'],_0x263d9a=_0x2a94c7['getAttribute']('listItemId'),_0x542f36=!_0x232411||_0x232411['getAttribute']('listItemId')!==_0x263d9a,_0x569b41=!_0x2506bc||_0x2506bc['getAttribute']('listItemId')!==_0x263d9a;return _0x665df9&&Boolean(_0x263d9a)&&_0x542f36&&_0x569b41;},_0x193d29=>c(_0x101be2,'ELEMENT_LIST_ITEM',_0x193d29));}['_registerLegacyDescription'](){const _0x2c4f1e=this['editor'],_0x58c606=_0x2c4f1e['locale'];function _0x59ad79(_0xd1d192){const _0x1a10bc=_0x2c4f1e['commands']['get']('bulletedList')['value'],_0x5d658b=_0x2c4f1e['commands']['get']('numberedList')['value'];return'numberedList'===_0xd1d192?_0x1a10bc:_0x5d658b;}_0x2c4f1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x21b080){if('formatBlock'!=_0x21b080['type'])return;const {data:_0x3fe8f0}=_0x21b080;if(!_0x3fe8f0)return;let _0xfd253c,_0x23169e,_0x1aca49,_0x47261d;switch(_0x3fe8f0['commandName']){case'bulletedList':_0x1aca49=_0x3fe8f0['commandParams'][0x0]['forceValue'],_0x47261d=_0x59ad79(_0x3fe8f0['commandName']),_0xfd253c=_0x1aca49?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x47261d&&_0x2c4f1e['config']['get']('list.multiBlock')||(_0xfd253c='*Change\x20to:*\x20%0'),_0x23169e={'type':'format','content':c(_0x58c606,_0xfd253c,c(_0x58c606,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1aca49=_0x3fe8f0['commandParams'][0x0]['forceValue'],_0x47261d=_0x59ad79(_0x3fe8f0['commandName']),_0xfd253c=_0x1aca49?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x47261d&&_0x2c4f1e['config']['get']('list.multiBlock')||(_0xfd253c='*Change\x20to:*\x20%0'),_0x23169e={'type':'format','content':c(_0x58c606,_0xfd253c,c(_0x58c606,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xfd253c='*Indent:*\x20%0',_0x23169e={'type':'format','content':c(_0x58c606,_0xfd253c,c(_0x58c606,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xfd253c=function(_0x19e1ef){const _0x264085=_0x19e1ef['getFirstRange']();let _0x902cba=_0x264085['start']['nodeAfter'];for(;_0x902cba&&_0x264085['containsItem'](_0x902cba);){if(_0x902cba['getAttribute']('listIndent')>0x0)return!0x1;_0x902cba=_0x902cba['nextSibling'];}return!0x0;}(_0x21b080)?c(_0x58c606,'*Format:*\x20remove\x20from\x20%0',c(_0x58c606,function(_0x488b51){return'ELEMENT_'+_0x488b51['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x21b080))):c(_0x58c606,'*Outdent:*\x20%0',c(_0x58c606,'ELEMENT_LIST_ITEM')),_0x23169e={'type':'format','content':_0xfd253c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3fe8f0['multipleBlocks']&&(_0xfd253c='*Merge:*\x20%0',_0x23169e={'type':'deletion','content':c(_0x58c606,_0xfd253c,c(_0x58c606,'ELEMENT_LIST_ITEM'))});}return _0x23169e;});}}function Te(_0x1bdd1a){let _0xa7c87d=_0x1bdd1a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xa7c87d;){const _0x4896af=_0xa7c87d['getAttribute']('listItemId');if(!_0x4896af)return!0x1;if(_0x4896af==_0x1bdd1a['data']['newValue'])return'newValue';if(_0x4896af==_0x1bdd1a['data']['oldValue'])return'oldValue';_0xa7c87d=_0xa7c87d['previousSibling'];}return!0x1;}class Se extends _0x2ee8de{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x46f7e7=this['editor']['config']['get']('list.properties'),_0x309fb1=this['editor']['plugins']['get']('TrackChangesEditing');_0x46f7e7['styles']&&(_0x309fb1['enableDefaultAttributesIntegration']('listStyle'),_0x309fb1['registerBlockAttribute']('listStyle')),_0x46f7e7['reversed']&&(_0x309fb1['enableDefaultAttributesIntegration']('listReversed'),_0x309fb1['registerBlockAttribute']('listReversed')),_0x46f7e7['startIndex']&&(_0x309fb1['enableDefaultAttributesIntegration']('listStart'),_0x309fb1['registerBlockAttribute']('listStart'));const _0x8cade6={'type':'format','content':''};_0x309fb1['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x15f4a6=this['editor']['locale'];_0x309fb1['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x15f4a6,'FORMAT_LIST_REVERSED')),_0x309fb1['descriptionFactory']['registerDescriptionCallback'](_0xc7a931=>{const {data:_0x31b147}=_0xc7a931;if(_0x31b147&&'listReversed'==_0x31b147['key'])return null==_0x31b147['newValue']||0x0==_0x31b147['newValue']&&null==_0x31b147['oldValue']?_0x8cade6:void 0x0;}),_0x309fb1['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x15f4a6,'FORMAT_LIST_START')),_0x309fb1['descriptionFactory']['registerDescriptionCallback'](_0x395e76=>{const {data:_0x241c2e}=_0x395e76;if(_0x241c2e&&'listStart'==_0x241c2e['key'])return null==_0x241c2e['newValue']||0x1==_0x241c2e['newValue']&&null==_0x241c2e['oldValue']?_0x8cade6:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x406828=>{if(_0x406828['batch']['isUndo'])return!0x1;let _0x9d7559=!0x1;const _0x35ed9d=_0x309fb1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f2d73=>{const _0x8319a0=_0x309fb1['_getAttributeKey'](_0x4f2d73);return'listStart'==_0x8319a0||'listReversed'==_0x8319a0;});for(const _0xabf7b4 of _0x35ed9d){const _0x537e5a=_0xabf7b4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x537e5a||'customNumbered'==_0x537e5a)continue;_0x309fb1['_findSuggestions'](_0xabf7b4['getFirstRange'](),'attribute')['find'](_0x33e6a7=>'listType'==_0x309fb1['_getAttributeKey'](_0x33e6a7['suggestion']))||(_0x406828['removeMarker'](_0xabf7b4['getFirstMarker']()),_0x9d7559=!0x0);}return _0x9d7559;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x269a56){const _0x59af23=this['editor']['locale'],{data:_0x2eb765}=_0x269a56,_0x1aefd1={'type':'format','content':''};if(!_0x2eb765||'listStyle'!=_0x2eb765['key'])return;if(!_0x2eb765['oldValue'])return'default'==_0x2eb765['newValue']?_0x1aefd1:{'type':'format','content':''+c(_0x59af23,'*Set\x20format:*\x20%0',c(_0x59af23,this['_getTranslationKeyForListStyle'](_0x2eb765['newValue'])))};if(!_0x2eb765['newValue']){if('default'==_0x2eb765['oldValue'])return _0x1aefd1;let _0x56cdc0=_0x269a56['head'];for(;_0x56cdc0;){if(_0x56cdc0['data']&&'listType'==_0x56cdc0['data']['key']&&_0x56cdc0['data']['newValue'])return _0x1aefd1;_0x56cdc0=_0x56cdc0['next'];}return{'type':'format','content':''+c(_0x59af23,'*Remove\x20format:*\x20%0',c(_0x59af23,this['_getTranslationKeyForListStyle'](_0x2eb765['oldValue'])))};}if('default'!=_0x2eb765['newValue'])return{'type':'format','content':''+c(_0x59af23,'*Set\x20format:*\x20%0',c(_0x59af23,this['_getTranslationKeyForListStyle'](_0x2eb765['newValue'])))};let _0x2101ad=_0x269a56['head'];for(;_0x2101ad;){if(_0x2101ad['data']&&'listType'==_0x2101ad['data']['key']&&_0x2101ad['data']['newValue']&&_0x2101ad['data']['oldValue'])return _0x1aefd1;_0x2101ad=_0x2101ad['next'];}return{'type':'format','content':c(_0x59af23,'*Set\x20format:*\x20%0',c(_0x59af23,'ELEMENT_'+_0x269a56['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43b610=this['editor'],_0x1fe7a7=_0x43b610['locale'];_0x43b610['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cc732=>{if('formatBlock'!=_0x4cc732['type'])return;const {data:_0x201703}=_0x4cc732;if(!_0x201703)return;let _0x4fa269,_0x2d2e84;switch(_0x201703['commandName']){case'listStyle':_0x4fa269='*Change\x20to:*\x20%0',_0x2d2e84={'type':'format','content':c(_0x1fe7a7,_0x4fa269,c(_0x1fe7a7,this['_getTranslationKeyForListStyle'](_0x201703['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4fa269=_0x201703['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2d2e84={'type':'format','content':c(_0x1fe7a7,_0x4fa269)};break;case'listStart':_0x4fa269='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2d2e84={'type':'format','content':c(_0x1fe7a7,_0x4fa269,_0x201703['commandParams'][0x0]['startIndex'])};}return _0x2d2e84;});}['_getTranslationKeyForListStyle'](_0x202f98){return'ELEMENT_'+function(_0x405eb6){if(_e['includes'](_0x405eb6))return'bulleted';if(Re['includes'](_0x405eb6))return'numbered';return null;}(_0x202f98)['toUpperCase']()+'_LIST_'+_0x202f98['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2ee8de{['afterInit'](){const _0x5ab8eb=this['editor'];_0x5ab8eb['commands']['get']('emoji')&&_0x5ab8eb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x2ee8de{static get['requires'](){return[_0x145083];}['init'](){const _0x107ac2=this['editor'],_0x1a0710=_0x107ac2['plugins']['get']('TrackChangesEditing'),_0x1a5836=_0x107ac2['commands']['get']('enter');_0x1a0710['enableCommand']('enter',()=>{_0x107ac2['model']['change'](_0x340191=>{const _0x54fe79=_0x107ac2['model']['document']['selection'],_0x3bd7bb=_0x54fe79['getFirstPosition'](),_0x1adf21=_0x128be7['fromRange'](_0x54fe79['getFirstRange']());if(_0x1a5836['enterBlock'](_0x340191)){const _0x59ab1e=_0x107ac2['model']['createPositionAt'](_0x3bd7bb['parent']['nextSibling'],0x0),_0x348a45=_0x340191['createRange'](_0x3bd7bb,_0x59ab1e);_0x1a0710['markInsertion'](_0x348a45);}else _0x340191['setSelection'](_0x340191['createRange'](_0x1adf21['end']));_0x1adf21['detach'](),_0x1a5836['fire']('afterExecute',{'writer':_0x340191});});}),_0x107ac2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x107ac2,'split'),{'priority':'high'}),_0x107ac2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0xb48376,_0x498a53,_0x5701d5)=>{const _0xf14625=_0x5701d5['mapper']['markerNameToElements'](_0x498a53['markerName']);if(_0xf14625){for(const _0x5e0fc0 of _0xf14625)_0x5e0fc0['hasClass']('ck-suggestion-marker-split')&&(_0x5701d5['mapper']['unbindElementFromMarkerName'](_0x5e0fc0,_0x498a53['markerName']),_0x5701d5['writer']['remove'](_0x5e0fc0));}},{'priority':'high'}),_0x107ac2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3aa137,_0x4fc651,_0x13c566)=>{_0x13c566['options']['showSuggestionHighlights']&&Fe(_0x107ac2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3aa137,_0x4fc651,_0x13c566);},{'priority':'high'});}}class Z extends _0x2ee8de{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xd85286=this['editor']['plugins']['get']('TrackChangesEditing');_0xd85286['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xd85286['enableCommand']('findNext'),_0xd85286['enableCommand']('findPrevious'),_0xd85286['enableCommand']('replace'),_0xd85286['enableCommand']('replaceAll');}['handleFindCommand'](_0x520863,_0x15d7bb,_0x470d9c={}){const _0x49f289=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x520863(_0x4fff69=>{let _0x180a25=('string'==typeof _0x15d7bb?_0x49f289['findByTextCallback'](_0x15d7bb,_0x470d9c):_0x15d7bb)(_0x4fff69);Array['isArray'](_0x180a25)&&(_0x180a25={'results':_0x180a25,'searchText':'string'==typeof _0x15d7bb?_0x15d7bb:''});const _0x47323c=_0x180a25['results']['filter'](_0x1c586d=>!0x1===this['_isInDeletionRange'](_0x1c586d,_0x4fff69['item']));return{..._0x180a25,'results':_0x47323c};},_0x470d9c);}['_isInDeletionRange'](_0x386367,_0x2bfc1a){const _0x27e7bc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2bfc1a,_0x386367['start']),this['editor']['model']['createPositionAt'](_0x2bfc1a,_0x386367['end']));for(const _0x444cb6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x27e7bc['getIntersection'](_0x444cb6['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x2ee8de{['afterInit'](){const _0x22b151=this['editor']['locale'],_0x5a4432=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xe17f99,commandName:_0x41c16d}of ro)this['editor']['plugins']['has'](_0xe17f99)&&(_0x5a4432['enableDefaultAttributesIntegration'](_0x41c16d),_0x5a4432['registerInlineAttribute'](_0x41c16d));_0x5a4432['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x22b151,'FORMAT_FONT_SIZE')),_0x5a4432['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x22b151,'FORMAT_FONT_FAMILY')),_0x5a4432['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x22b151,'FORMAT_FONT_COLOR')),_0x5a4432['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x22b151,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52bc05=this['editor'],_0xf50aa=_0x52bc05['locale'];_0x52bc05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xeca65e=>{const _0x5dbb25=_0xf50aa['t'];if('formatInline'!=_0xeca65e['type'])return;const {data:_0x1c046f}=_0xeca65e;if(null!=_0x1c046f){if('fontSize'==_0x1c046f['commandName']){const _0x5bdffd=_0x1c046f['commandParams'][0x0]['value'];if(_0x5bdffd){const _0x3bd3cc=_0x5dbb25(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1da251=>_0x1da251['model']==_0x5bdffd)['title'])['toLowerCase']();return{'type':'format','content':c(_0xf50aa,'*Set\x20font\x20size:*\x20%0',_0x3bd3cc)};}return{'type':'format','content':c(_0xf50aa,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1c046f['commandName']){const _0x2cd434=_0x1c046f['commandParams'][0x0]['value'];return _0x2cd434?{'type':'format','content':c(_0xf50aa,'*Set\x20font\x20family:*\x20%0',_0x2cd434)}:{'type':'format','content':c(_0xf50aa,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1c046f['commandName']){const _0x266647=_0x1c046f['commandParams'][0x0]['value'];if(_0x266647){const _0x19d794=_0x203d56(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1a1438=>_0x1a1438['model']==_0x266647);let _0x26ea2f=_0x266647,_0x32be48='';return _0x19d794&&(_0x26ea2f=_0x19d794['label'],_0x32be48=_0x5dbb25(_0x26ea2f)['toLowerCase']()),{'type':'format','content':c(_0xf50aa,'*Set\x20font\x20color:*\x20%0',_0x32be48)['trim'](),'color':{'value':_0x266647,'title':_0x32be48||_0x26ea2f}};}return{'type':'format','content':c(_0xf50aa,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1c046f['commandName']){const _0x23ec98=_0x1c046f['commandParams'][0x0]['value'];if(_0x23ec98){const _0x201317=_0x203d56(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5c1fcb=>_0x5c1fcb['model']==_0x23ec98);let _0x2852fe=_0x23ec98,_0x247750='';return _0x201317&&(_0x2852fe=_0x201317['label'],_0x247750=_0x5dbb25(_0x2852fe)['toLowerCase']()),{'type':'format','content':c(_0xf50aa,'*Set\x20font\x20background\x20color:*\x20%0',_0x247750)['trim'](),'color':{'value':_0x23ec98,'title':_0x247750||_0x2852fe}};}return{'type':'format','content':c(_0xf50aa,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x2ee8de{['afterInit'](){const _0x2d737d=this['editor'],_0x13b681=_0x2d737d['plugins']['get']('TrackChangesEditing'),_0x14d85e=_0x2d737d['commands']['get']('copyFormat'),_0x558276=_0x2d737d['commands']['get']('pasteFormat');_0x14d85e&&_0x558276&&(_0x13b681['enableDefaultAttributesIntegration']('pasteFormat'),_0x13b681['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x378192=this['editor'],_0x590323=_0x378192['locale'];_0x378192['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48a8db=>{if('formatBlock'!=_0x48a8db['type']&&'formatInline'!=_0x48a8db['type'])return;const {data:_0x31abb7}=_0x48a8db;if(_0x31abb7&&'pasteFormat'===_0x31abb7['commandName']){const _0x111aad=[],_0x53a989=_0x31abb7['commandParams'][0x0];for(const [_0x148067,_0x2d6b3f]of Object['entries'](_0x53a989))_0x111aad['push'](so(_0x378192,_0x148067,_0x2d6b3f));return _0x111aad['length']?{'type':'format','content':c(_0x590323,'*Set\x20format\x20to:*\x20%0',_0x111aad['join'](',\x20'))}:{'type':'format','content':c(_0x590323,'*Remove\x20all\x20formatting*')};}});}}function so(_0x58fbb1,_0x45e4db,_0xb41fc){const _0x503bf6=_0x58fbb1['locale']['t'],_0x365929=_0x45e4db['split'](/(?=[A-Z])/)['join']('\x20'),_0x4e99cb=_0x503bf6(_0x365929['charAt'](0x0)['toUpperCase']()+_0x365929['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xb41fc)return _0x4e99cb;if('fontColor'===_0x45e4db||'fontBackgroundColor'===_0x45e4db){const _0x3056c9=_0x203d56(_0x58fbb1['config']['get']('fontColor.colors'))['find'](_0x44da40=>_0x44da40['model']==_0xb41fc);return _0x4e99cb+'\x20('+(_0x3056c9?_0x503bf6(_0x3056c9['label'])['toLowerCase']():_0xb41fc)+')';}if('fontSize'===_0x45e4db&&isNaN(parseFloat(_0xb41fc))){const _0x3019a8=_0x58fbb1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x58fbb1['config']['get']('fontSize.options'))['find'](_0xde3d7d=>_0xde3d7d['model']==_0xb41fc);return _0x4e99cb+'\x20('+(_0x3019a8?_0x503bf6(_0x3019a8['title'])['toLowerCase']():_0xb41fc)+')';}return _0x4e99cb+'\x20('+_0xb41fc+')';}class et extends _0x2ee8de{['_headingOptions'];['afterInit'](){const _0x8f2d3b=this['editor'];if(!_0x8f2d3b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x8f2d3b['config']['get']('heading.options');const _0x2e9e81=_0x8f2d3b['locale'],_0x3b6c9e=_0x8f2d3b['plugins']['get']('TrackChangesEditing');_0x3b6c9e['enableDefaultAttributesIntegration']('heading');for(const _0x145157 of this['_headingOptions'])'paragraph'!=_0x145157['model']&&_0x3b6c9e['descriptionFactory']['registerElementLabel'](_0x145157['model'],_0x171a24=>{const _0x3b48cd=this['_getHeadingLevel'](_0x145157['model']);return null!==_0x3b48cd?_0x4055f8(_0x171a24,_0x3b48cd):_0x35f49d(_0x171a24,_0x145157['title']);});function _0x4055f8(_0x4e29f0,_0x381831){return c(_0x2e9e81,'ELEMENT_HEADING',[_0x4e29f0,_0x381831]);}function _0x35f49d(_0x35a0a3,_0x23cc4d){return c(_0x2e9e81,'ELEMENT_HEADING_CUSTOM',[_0x35a0a3,_0x23cc4d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x558366=this['editor'],_0x1e4e0=_0x558366['locale'];function _0x14d6f6(_0x9c72a4,_0x3d38b7){return c(_0x1e4e0,'ELEMENT_HEADING_CUSTOM',[_0x9c72a4,_0x3d38b7]);}_0x558366['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1bdbef=>{if('formatBlock'!=_0x1bdbef['type'])return;const {data:_0x16da69}=_0x1bdbef;if(_0x16da69&&'heading'==_0x16da69['commandName']){const _0x4d0558=_0x16da69['commandParams'][0x0]['value'],_0x336839=this['_getHeadingLevel'](_0x4d0558);if(null!==_0x336839)return{'type':'format','content':c(_0x1e4e0,'*Change\x20to:*\x20%0',(_0x167b0f=0x1,_0x1a2dc3=_0x336839,c(_0x1e4e0,'ELEMENT_HEADING',[_0x167b0f,_0x1a2dc3])))};const _0x4401c5=this['_headingOptions']['find'](_0x3cc220=>_0x3cc220['model']===_0x4d0558)['title'];return{'type':'format','content':c(_0x1e4e0,'*Change\x20to:*\x20%0',_0x14d6f6(0x1,_0x4401c5))};}var _0x167b0f,_0x1a2dc3;});}['_getHeadingLevel'](_0x38508c){const _0x363c0f=_0x38508c['match'](/^heading(\d+)/);if(_0x363c0f)return _0x363c0f[0x1];const _0x3a6b5d=this['_headingOptions']?.['find'](_0x89d419=>_0x89d419['model']==_0x38508c);if(_0x3a6b5d&&_0x3a6b5d['view']){const _0x1d1507=_0x3a6b5d['view'],_0x5c0e8b=(_0x1d1507['name']??_0x1d1507)['match'](/^h(\d+)/);if(_0x5c0e8b)return _0x5c0e8b[0x1];}return null;}}class nt extends _0x2ee8de{['afterInit'](){const _0x1ee26b=this['editor'];if(!_0x1ee26b['plugins']['has']('HighlightEditing'))return;const _0x3c3a6b=_0x1ee26b['plugins']['get']('TrackChangesEditing'),_0x5aba78=_0x1ee26b['locale'];_0x3c3a6b['enableDefaultAttributesIntegration']('highlight'),_0x3c3a6b['registerInlineAttribute']('highlight'),_0x3c3a6b['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5aba78,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5963cf=this['editor'],_0x462bc7=_0x5963cf['locale'];_0x5963cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1714c0=>{if('formatInline'!=_0x1714c0['type'])return;const {data:_0x126fb0}=_0x1714c0;if(_0x126fb0&&'highlight'==_0x126fb0['commandName']){const _0x2465e6=_0x462bc7['t'],_0x1406ec=_0x126fb0['commandParams'][0x0]['value'];if(_0x1406ec){const _0x4e1f84=_0x5963cf['config']['get']('highlight.options')['find'](_0xcf2726=>_0xcf2726['model']==_0x1406ec),_0x4d24b6=_0x2465e6(_0x4e1f84['title'])['toLowerCase']();return{'type':'format','content':c(_0x462bc7,'*Set\x20highlight:*\x20%0',_0x4d24b6),'color':{'value':_0x4e1f84['color'],'title':_0x4e1f84['title']}};}return{'type':'format','content':c(_0x462bc7,'*Remove\x20highlight*',c(_0x462bc7,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2ee8de{['afterInit'](){const _0x16adbc=this['editor'];if(!_0x16adbc['plugins']['has']('HorizontalLineEditing'))return;_0x16adbc['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4576fb=_0x16adbc['plugins']['get']('TrackChangesEditing'),_0x2eac9e=_0x16adbc['locale'];_0x4576fb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1c21cb=>c(_0x2eac9e,'ELEMENT_HORIZONTAL_LINE',_0x1c21cb)),_0x16adbc['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x27ab62,{writer:_0x141df9,options:_0x1ae353})=>{if(!_0x1ae353['showSuggestionHighlights'])return null;const _0x78dae1=_0x141df9['createContainerElement']('div'),_0x47ff83=_0x141df9['createEmptyElement']('hr');return _0x141df9['addClass']('ck-horizontal-line',_0x78dae1),_0x141df9['insert'](_0x141df9['createPositionAt'](_0x78dae1,0x0),_0x47ff83),_0x78dae1;},'converterPriority':'high'});}}class ot extends _0x2ee8de{['afterInit'](){const _0x377194=this['editor'];if(!_0x377194['plugins']['has']('HtmlEmbed'))return;const _0x4a6037=_0x377194['plugins']['get']('TrackChangesEditing'),_0x3a724b=_0x377194['locale'];_0x4a6037['descriptionFactory']['registerElementLabel']('rawHtml',_0x2203d6=>c(_0x3a724b,'ELEMENT_HTML_EMBED',_0x2203d6)),_0x4a6037['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4a6037['registerBlockAttribute']('value'),_0x4a6037['descriptionFactory']['registerDescriptionCallback'](_0x4d0301=>{if('attribute'!=_0x4d0301['type'])return;const {data:_0x2ead16}=_0x4d0301;if(_0x2ead16&&'value'==_0x2ead16['key']&&_0x4d0301['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x92038f=c(_0x3a724b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x3a724b,'*Change\x20%0\x20content*',_0x92038f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c06b6=this['editor'],_0x53e141=_0x5c06b6['locale'];_0x5c06b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e4f93=>{if('formatBlock'!=_0x3e4f93['type'])return;const {data:_0x5b2e82}=_0x3e4f93;if(_0x5b2e82&&'htmlEmbed'==_0x5b2e82['commandName']){const _0x21d370=c(_0x53e141,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x53e141,'*Change\x20%0\x20content*',_0x21d370)};}});}}class rt extends _0x2ee8de{['afterInit'](){const _0x332321=this['editor'];if(!_0x332321['plugins']['has']('ImageEditing'))return;const _0x359653=_0x332321['plugins']['get']('TrackChangesEditing'),_0x515bc0=_0x332321['plugins']['get']('ImageUtils'),_0x772bd7=_0x332321['locale'];_0x359653['enableCommand']('insertImage'),_0x359653['descriptionFactory']['registerElementLabel']('imageBlock',_0x3233c5=>c(_0x772bd7,'ELEMENT_IMAGE',_0x3233c5)),_0x359653['descriptionFactory']['registerElementLabel']('imageInline',_0x3acbb0=>c(_0x772bd7,'ELEMENT_INLINE_IMAGE',_0x3acbb0)),_0x359653['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x772bd7,'ELEMENT_CAPTION')),_0x332321['plugins']['has']('ImageUploadEditing')&&_0x359653['enableCommand']('uploadImage'),_0x332321['plugins']['has']('ImageBlockEditing')&&_0x332321['plugins']['has']('ImageInlineEditing')&&(_0x359653['enableCommand']('imageTypeInline',(_0x508d8e,_0x1fdd7b)=>{const _0x5420a6=_0x515bc0['getClosestSelectedImageElement'](_0x332321['model']['document']['selection']);_0x332321['model']['change'](()=>{_0x359653['markBlockFormat'](_0x5420a6,{'commandName':'imageTypeInline','commandParams':[_0x1fdd7b]},[],'convertBlockImageToInline');});}),_0x359653['enableCommand']('imageTypeBlock',(_0x12041f,_0x49a689)=>{_0x332321['model']['change'](_0x5c1c3b=>{let _0x23deea=_0x515bc0['getClosestSelectedImageElement'](_0x332321['model']['document']['selection']),_0xa7104d=_0x5c1c3b['createRangeOn'](_0x23deea);const _0xf33623=_0x4bbc6c['fromPosition'](_0xa7104d['start'],'toPrevious'),_0x5962da=_0x4bbc6c['fromPosition'](_0xa7104d['end'],'toNext');_0x359653['forceDefaultExecution'](()=>_0x12041f(_0x49a689)),_0x23deea=_0x515bc0['getClosestSelectedImageElement'](_0x332321['model']['document']['selection']),_0xa7104d=_0x5c1c3b['createRangeOn'](_0x23deea);const _0x56b395=_0x5c1c3b['createRange'](_0xf33623,_0x5962da);_0xf33623['detach'](),_0x5962da['detach'](),_0x359653['markBlockFormat'](_0x23deea,{'commandName':'imageTypeInline','commandParams':[_0x49a689]},[],'convertInlineImageToBlock'),_0x56b395['start']['isBefore'](_0xa7104d['start'])&&_0x359653['markInsertion'](_0x5c1c3b['createRange'](_0x56b395['start'],_0xa7104d['start']),'convertInlineImageToBlock'),_0xa7104d['end']['isBefore'](_0x56b395['end'])&&_0x359653['markInsertion'](_0x5c1c3b['createRange'](_0xa7104d['end'],_0x56b395['end']),'convertInlineImageToBlock');});}),_0x359653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x359653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x359653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x359653['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x359653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x359653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x36943b])=>{const _0x500ee4=_0x359653['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3a88a0=_0x36943b['start'],_0x4c0703=_0x36943b['end'];const _0x32e2ae=_0x332321['model']['schema']['getNearestSelectionRange'](_0x3a88a0,'backward'),_0x1dc7b4=_0x332321['model']['schema']['getNearestSelectionRange'](_0x4c0703,'forward');_0x32e2ae['isCollapsed']&&(_0x3a88a0=_0x32e2ae['start']),_0x1dc7b4['isCollapsed']&&(_0x4c0703=_0x1dc7b4['end']),_0x500ee4([_0x332321['model']['createRange'](_0x3a88a0,_0x4c0703)]);}),_0x359653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2b3c14),_0x359653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2b3c14)),_0x332321['plugins']['has']('ImageCaptionEditing')&&(_0x359653['enableCommand']('toggleImageCaption',(_0x5cf345,_0x16bc1e)=>{const _0x4da5e7=_0x332321['plugins']['get']('ImageCaptionUtils');let _0x3a855c=_0x515bc0['getClosestSelectedImageElement'](_0x332321['model']['document']['selection']),_0x446293=_0x4da5e7['getCaptionFromImageModelElement'](_0x3a855c);_0x332321['model']['change'](()=>{if(_0x446293)return void _0x359653['markDeletion'](_0x332321['model']['createRangeOn'](_0x446293));const _0x192da5=_0x515bc0['isBlockImage'](_0x3a855c);_0x5cf345(_0x16bc1e),_0x3a855c=_0x515bc0['getClosestSelectedImageElement'](_0x332321['model']['document']['selection']),_0x446293=_0x4da5e7['getCaptionFromImageModelElement'](_0x3a855c),_0x359653['markInsertion'](_0x332321['model']['createRangeOn'](_0x446293),_0x192da5?null:'imageCaption');});}),_0x359653['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2b3c14));const _0x821a97=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x37bf62(_0xc21103,_0x5ad1c8){const _0x17cf9f=_0x821a97['findIndex'](({type:_0x40bfd5,subType:_0x16f6ce})=>_0xc21103['type']==_0x40bfd5&&_0xc21103['subType']==_0x16f6ce),_0x5cbef5=_0x821a97['findIndex'](({type:_0x269a00,subType:_0x27b886})=>_0x5ad1c8['type']==_0x269a00&&_0x5ad1c8['subType']==_0x27b886);if(_0x17cf9f<0x0||_0x5cbef5<0x0)return!0x1;const _0x27a37d=_0xc21103['getFirstRange'](),_0x4d1fa1=_0x5ad1c8['getFirstRange']();if((0x0==_0x17cf9f||0x1==_0x17cf9f)&&0x2==_0x5cbef5&&_0x27a37d['isIntersecting'](_0x4d1fa1))return!0x0;if(0x2==_0x17cf9f&&0x3==_0x5cbef5){const _0x15a44e=_0x359653['_findSuggestions'](_0x27a37d,'insertion')['filter'](({suggestion:_0x2b241d,meta:_0x56f8d7})=>_0x56f8d7['isOwn']&&'convertInlineImageToBlock'==_0x2b241d['subType']);if(_0x15a44e['length']>0x1&&_0x4d1fa1['end']['isEqual'](_0x27a37d['start']))return!0x0;if(0x1==_0x15a44e['length']&&(_0x27a37d['start']['isEqual'](_0x4d1fa1['end'])||_0x27a37d['end']['isEqual'](_0x4d1fa1['start'])))return!0x0;}if(0x3==_0x17cf9f&&0x3==_0x5cbef5&&_0x27a37d['start']['isBefore'](_0x4d1fa1['start'])){const _0x11a282=_0x27a37d['end']['nodeAfter'],_0x56d3c9=_0x4d1fa1['start']['nodeBefore'];return _0x515bc0['isBlockImage'](_0x11a282)&&_0x11a282===_0x56d3c9;}return!0x1;}function _0x2b3c14(_0x29393e,_0x448587){return _0x37bf62(_0x29393e,_0x448587)?[_0x29393e,_0x448587]:_0x37bf62(_0x448587,_0x29393e)?[_0x448587,_0x29393e]:null;}_0x332321['plugins']['has']('ImageResize')&&(_0x359653['enableDefaultAttributesIntegration']('resizeImage'),_0x359653['registerBlockAttribute']('resizedWidth'),_0x359653['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x772bd7,'FORMAT_IMAGE_SIZE'))),_0x332321['plugins']['has']('ImageTextAlternativeEditing')&&(_0x359653['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x359653['registerBlockAttribute']('alt')),_0x332321['plugins']['has']('PictureEditing')&&(_0x359653['registerBlockAttribute']('sources'),_0x359653['descriptionFactory']['registerDescriptionCallback'](_0xb88109=>{if('attribute'!=_0xb88109['type'])return;const {data:_0x242448}=_0xb88109;return _0x242448&&'sources'==_0x242448['key']?{'type':'format','content':''}:void 0x0;})),_0x332321['plugins']['has']('ImageSizeAttributes')&&(_0x359653['registerBlockAttribute']('width'),_0x359653['registerBlockAttribute']('height'),_0x359653['descriptionFactory']['registerDescriptionCallback'](_0x3e19d7=>{if('attribute'!=_0x3e19d7['type'])return;const {data:_0x41d6a4}=_0x3e19d7;return!_0x41d6a4||'width'!=_0x41d6a4['key']&&'height'!=_0x41d6a4['key']?void 0x0:{'type':'format','content':''};})),_0x359653['descriptionFactory']['registerDescriptionCallback'](_0x45ff9c=>{if(!!_0x821a97['find'](({type:_0x5b8fe5,subType:_0x56c92a})=>_0x45ff9c['type']==_0x5b8fe5&&_0x45ff9c['subType']==_0x56c92a))return _0x45ff9c['previous']?{}:void 0x0;}),_0x359653['descriptionFactory']['registerDescriptionCallback'](_0x18328d=>{if('insertion'==_0x18328d['type']||'deletion'==_0x18328d['type']){const _0x45bb88=_0x18328d['getContainedElement']();if(_0x45bb88&&_0x45bb88['is']('element','caption'))return{'type':'insertion'==_0x18328d['type']?'addObject':'removeObject','element':_0x45bb88,'quantity':0x1};}}),_0x359653['descriptionFactory']['registerDescriptionCallback'](_0x39b81b=>'formatBlock'==_0x39b81b['type']&&'convertInlineImageToBlock'==_0x39b81b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x39b81b['type']&&'convertBlockImageToInline'==_0x39b81b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x359653['descriptionFactory']['registerDescriptionCallback'](_0x70e4d6=>{if('attribute'!=_0x70e4d6['type'])return;const {data:_0x57f0b0}=_0x70e4d6;if(!_0x57f0b0||'alt'!=_0x57f0b0['key'])return;const _0x54dd82=_0x57f0b0['newValue'];return _0x54dd82?{'type':'format','content':c(_0x772bd7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x54dd82+'\x22')}:{'type':'format','content':c(_0x772bd7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41acbe=this['editor'],_0x39c097=_0x41acbe['locale'];_0x41acbe['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d174a=>{if('formatBlock'!=_0x4d174a['type']&&'formatInline'!=_0x4d174a['type'])return;const {data:_0x57a8b3}=_0x4d174a;if(_0x57a8b3){if('imageTextAlternative'==_0x57a8b3['commandName']){const _0x4354be=_0x57a8b3['commandParams'][0x0]['newValue'];return _0x4354be?{'type':'format','content':c(_0x39c097,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4354be+'\x22')}:{'type':'format','content':c(_0x39c097,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x57a8b3['commandName']){const _0x582a0f=_0x57a8b3['commandParams'][0x0]['width'];return _0x582a0f?{'type':'format','content':c(_0x39c097,'*Set\x20image\x20width:*\x20%0',_0x582a0f)}:{'type':'format','content':c(_0x39c097,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2ee8de{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x221034=this['editor']['locale'],_0x4393cb=this['editor']['plugins']['get']('TrackChangesEditing');_0x4393cb['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4393cb['registerBlockAttribute']('src'),_0x4393cb['descriptionFactory']['registerDescriptionCallback'](_0x38a4ed=>{if('attribute'!=_0x38a4ed['type'])return;const {data:_0x3d9377}=_0x38a4ed;return _0x3d9377&&'src'==_0x3d9377['key']?_0x3d9377['newValue']&&_0x3d9377['oldValue']?{'type':'format','content':c(_0x221034,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x12465f=this['editor']['plugins']['get']('TrackChangesEditing');_0x12465f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x12465f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12465f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x12465f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32eac0=this['editor'],_0x2fce3e=_0x32eac0['locale'];_0x32eac0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1256ee=>{if('formatBlock'!=_0x1256ee['type']&&'formatInline'!=_0x1256ee['type'])return;const {data:_0x22d0f8}=_0x1256ee;if(!_0x22d0f8||'replaceImageSource'!=_0x22d0f8['commandName'])return;return{'type':'format','content':c(_0x2fce3e,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2ee8de{['afterInit'](){const _0x10818d=this['editor'];if(!_0x10818d['plugins']['has']('ImageStyleEditing'))return;const _0x22622b=_0x10818d['plugins']['get']('TrackChangesEditing'),_0x323e6a=_0x10818d['plugins']['get']('ImageUtils'),_0x1ab290={};_0x22622b['enableCommand']('imageStyle',(_0x58d5ba,_0x3bdf54)=>{const _0x2231ba=_0x10818d['plugins']['get']('Users')['me'],_0x3c5bf3=_0x10818d['commands']['get']('imageStyle');let _0xc063cd=_0x323e6a['getClosestSelectedImageElement'](_0x10818d['model']['document']['selection']),_0xb3c532=_0x10818d['model']['createRangeOn'](_0xc063cd),_0x2872ad=_0x3c5bf3['value'];if(_0x2872ad==_0x3bdf54['value'])return;const _0x3a82ba={'commandName':'imageStyle','commandParams':[_0x3bdf54],'formatGroupId':_0x3c2271()};_0x10818d['model']['change'](()=>{if(_0x22622b['getSuggestions']()['filter'](_0x2f4472=>_0x2f4472['isInContent']&&_0x2231ba==_0x2f4472['author']&&('formatBlock'==_0x2f4472['type']||'formatInline'==_0x2f4472['type'])&&('imageStylePreApply'==_0x2f4472['subType']||'imageStylePostApply'==_0x2f4472['subType'])&&_0x2f4472['getFirstRange']()['isEqual'](_0xb3c532))['forEach'](_0x2208a6=>_0x22622b['discardSuggestion'](_0x2208a6['head'])),_0xc063cd=_0x323e6a['getClosestSelectedImageElement'](_0x10818d['model']['document']['selection']),_0xb3c532=_0x10818d['model']['createRangeOn'](_0xc063cd),_0x3c5bf3['refresh'](),_0x10818d['commands']['get']('imageTypeInline')['refresh'](),_0x10818d['commands']['get']('imageTypeBlock')['refresh'](),_0x2872ad=_0x3c5bf3['value'],_0x2872ad!=_0x3bdf54['value'])return _0x323e6a['isInlineImage'](_0xc063cd)&&_0x3c5bf3['shouldConvertImageType'](_0x3bdf54['value'],_0xc063cd)?(_0x58d5ba({..._0x3bdf54,'setImageSizes':!0x1}),_0xc063cd=_0x323e6a['getClosestSelectedImageElement'](_0x10818d['model']['document']['selection']),void _0x22622b['markBlockFormat'](_0xc063cd,{..._0x3a82ba,'commandReversedParams':[{'value':_0x2872ad||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x323e6a['isBlockImage'](_0xc063cd)?_0x22622b['markBlockFormat'](_0xc063cd,_0x3a82ba,[],'imageStylePostApply'):_0x22622b['markInlineFormat'](_0xb3c532,_0x3a82ba,'imageStylePostApply'));});});for(const _0xe947a0 of _0x10818d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1ab290[_0xe947a0['name']]=_0xe947a0['title']['toLowerCase']();_0x22622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x22622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x22622b['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x22622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x241947])=>{_0x323e6a['setImageNaturalSizeAttributes'](_0x241947['getContainedElement']());}),_0x22622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xa593ed,_0x58efa8)=>{_0x22622b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xa593ed,{'commandName':_0x58efa8['commandName'],'commandParams':_0x58efa8['commandReversedParams']});}),_0x22622b['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x21f2cf,_0x4801d7){if(_0x3eb8a8(_0x21f2cf,_0x4801d7))return[_0x21f2cf,_0x4801d7];if(_0x3eb8a8(_0x4801d7,_0x21f2cf))return[_0x4801d7,_0x21f2cf];return null;});const _0x5caa53=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3eb8a8(_0x21c560,_0x88dede){const _0x21fe97=_0x5caa53['findIndex'](({type:_0x448fd0,subType:_0x3f3e77})=>_0x21c560['type']==_0x448fd0&&_0x21c560['subType']==_0x3f3e77),_0x14d1f3=_0x5caa53['findIndex'](({type:_0x18548f,subType:_0x31e8e4})=>_0x88dede['type']==_0x18548f&&_0x88dede['subType']==_0x31e8e4);if(_0x21fe97<0x0||_0x14d1f3<0x0)return!0x1;const _0x41f0ed=_0x21c560['getFirstRange'](),_0x588c8f=_0x88dede['getFirstRange']();if((0x0==_0x21fe97||0x1==_0x21fe97)&&0x2==_0x14d1f3&&_0x41f0ed['isIntersecting'](_0x588c8f))return!0x0;if(0x2==_0x21fe97&&0x3==_0x14d1f3){const _0x4e8c8f=_0x22622b['_findSuggestions'](_0x41f0ed,'insertion')['filter'](({suggestion:_0x5e7c27,meta:_0x456862})=>_0x456862['isOwn']&&'convertInlineImageToBlock'==_0x5e7c27['subType']);if(_0x4e8c8f['length']>0x1&&_0x588c8f['end']['isEqual'](_0x41f0ed['start']))return!0x0;if(0x1==_0x4e8c8f['length']&&(_0x41f0ed['start']['isEqual'](_0x588c8f['end'])||_0x41f0ed['end']['isEqual'](_0x588c8f['start'])))return!0x0;}if(0x3==_0x21fe97&&0x3==_0x14d1f3&&_0x41f0ed['start']['isBefore'](_0x588c8f['start'])){const _0x30d430=_0x41f0ed['end']['nodeAfter'],_0x20a6ee=_0x588c8f['start']['nodeBefore'];return _0x323e6a['isBlockImage'](_0x30d430)&&_0x30d430===_0x20a6ee;}return!0x1;}_0x10818d['model']['document']['registerPostFixer'](()=>{let _0x3a0251=!0x1;const _0x34e421=Array['from'](_0x10818d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24be61,data:_0x16eda7}of _0x34e421){const {group:_0x1684ee,type:_0x20e1d8,subType:_0x30cbe3,id:_0x2fde81}=_0x22622b['_splitMarkerName'](_0x24be61);if('suggestion'==_0x1684ee&&_0x22622b['hasSuggestion'](_0x2fde81)){if('formatBlock'==_0x20e1d8&&('imageStylePreApply'==_0x30cbe3||'imageStylePostApply'==_0x30cbe3)){const _0xe3e1ff=_0x22622b['getSuggestion'](_0x2fde81);if(_0x16eda7['newRange']){const _0x15d146=_0xe3e1ff['getFirstRange']()['getContainedElement']();if(_0x323e6a['isBlockImage'](_0x15d146))continue;_0x22622b['discardSuggestion'](_0xe3e1ff),_0x3a0251=!0x0;}}if('insertion'==_0x20e1d8&&'imageCaption'==_0x30cbe3&&!_0x16eda7['newRange']){const _0x5695cb=_0x22622b['getSuggestion'](_0x2fde81);_0x5695cb['next']&&_0x5695cb['next']['isInContent']&&(_0x22622b['discardSuggestion'](_0x5695cb['next']),_0x3a0251=!0x0);}}}return _0x3a0251;}),this['_registerLegacyDescription'](_0x1ab290);}['_registerLegacyDescription'](_0x29a88a){const _0x521d70=this['editor'],_0x1ea7be=_0x521d70['locale'];_0x521d70['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd820=>{if('formatBlock'!=_0x1cd820['type']&&'formatInline'!=_0x1cd820['type'])return;const {data:_0x15b3d8}=_0x1cd820;if(!_0x15b3d8||'imageStyle'!=_0x15b3d8['commandName'])return;const _0x7517d=_0x15b3d8['commandParams'][0x0]['value'];return _0x31c633('side'===_0x7517d?c(_0x1ea7be,'FORMAT_SIDE_IMAGE'):_0x29a88a[_0x7517d]||_0x7517d);function _0x31c633(_0x300956){return{'type':'format','content':c(_0x1ea7be,'*Format:*\x20%0',_0x300956)};}});}}class ut extends _0x2ee8de{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5640ad){super(_0x5640ad),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xa644a1=this['editor'],_0x498eee=_0xa644a1['commands']['get']('importWord'),_0x3326cc=_0xa644a1['commands']['get']('trackChanges');_0x498eee&&(_0x498eee['on']('execute',(_0x35df68,[,_0x6a25d5])=>{this['_trackChangesValueDuringImport']=_0x3326cc['value'],_0x6a25d5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x498eee,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x498eee,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3326cc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xa644a1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x353ad3,_0x2199e5){const {suggestions:_0x43d9ef}=_0x2199e5,_0x7b603=this['editor']['commands']['get']('trackChanges'),_0x2ae678=_0x7b603['value'];this['_trackChangesValueDuringImport']!==_0x2ae678&&(_0x7b603['execute'](),this['_trackChangesExecuted']=!0x0),_0x43d9ef&&_0x43d9ef['forEach'](({id:_0x2206de,type:_0x1ad711,author:_0x1cd50d,created_at:_0x2079e0})=>{const _0x1be718={'id':_0x2206de,'type':_0x1ad711,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1cd50d,'createdAt':_0x2079e0?new Date(_0x2079e0):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1be718);});}}class ft extends _0x2ee8de{['afterInit'](){const _0x2b46e3=this['editor'],_0x287f6c=_0x2b46e3['plugins']['get']('TrackChangesEditing');if(_0x2b46e3['plugins']['has']('IndentEditing')&&(_0x287f6c['enableCommand']('indent'),_0x287f6c['enableCommand']('outdent')),_0x2b46e3['plugins']['has']('IndentBlock')){for(const _0x2be1a3 of['indentBlock','outdentBlock'])_0x287f6c['enableDefaultAttributesIntegration'](_0x2be1a3);}const _0x4be38e=_0x2b46e3['locale'];_0x287f6c['registerBlockAttribute']('blockIndent'),_0x287f6c['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x4be38e,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a8453=this['editor'],_0x3a7651=_0x2a8453['locale'],_0x1f1011=_0x2a8453['plugins']['get']('TrackChangesEditing');_0x1f1011['descriptionFactory']['registerDescriptionCallback'](_0x1eba4a=>{if('formatBlock'!=_0x1eba4a['type'])return;const {data:_0x599074}=_0x1eba4a;if(!_0x599074)return;if('indentBlock'!=_0x599074['commandName']&&'outdentBlock'!=_0x599074['commandName'])return;const _0x34386d=_0x1eba4a['getItems']()[0x0],_0x2fd95b=_0x1f1011['descriptionFactory']['getItemLabel'](_0x34386d);return'indentBlock'==_0x599074['commandName']?{'type':'format','content':c(_0x3a7651,'*Indent:*\x20%0',_0x2fd95b)}:'outdentBlock'==_0x599074['commandName']?{'type':'format','content':c(_0x3a7651,'*Outdent:*\x20%0',_0x2fd95b)}:void 0x0;});}}class ht extends _0x2ee8de{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x2ee8de{['afterInit'](){const _0x543e69=this['editor'];if(!_0x543e69['plugins']['has']('LinkEditing'))return;const _0x4dfaf1=_0x543e69['plugins']['get']('TrackChangesEditing'),_0x3fbfc4=_0x543e69['commands']['get']('link');_0x4dfaf1['enableDefaultAttributesIntegration']('link'),_0x4dfaf1['enableDefaultAttributesIntegration']('unlink'),_0x4dfaf1['registerInlineAttribute']('linkHref');for(const _0x3483f0 of _0x3fbfc4['manualDecorators'])_0x4dfaf1['registerInlineAttribute'](_0x3483f0['id']),_0x4dfaf1['descriptionFactory']['registerAttributeLabel'](_0x3483f0['id'],'link\x20('+_0x3483f0['label']['toLowerCase']()+')');_0x4dfaf1['descriptionFactory']['registerDescriptionCallback'](_0x1bcf27=>{if('attribute'!=_0x1bcf27['type'])return;const {data:_0x60b521}=_0x1bcf27;if(!_0x60b521||'linkHref'!=_0x60b521['key'])return;const _0x18e93b=_0x60b521['newValue'],_0x59eca7=_0x543e69['locale'];return{'type':'format','content':null==_0x18e93b?c(_0x59eca7,'*Remove\x20link*'):c(_0x59eca7,'*Set\x20link:*\x20%0','\x22'+_0x18e93b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d13b5=this['editor'],_0x2c56f6=_0x6d13b5['locale'];_0x6d13b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x97b102=>{if('formatInline'!=_0x97b102['type'])return;const {data:_0x69c7f1}=_0x97b102;if(_0x69c7f1){if('link'==_0x69c7f1['commandName']){const _0x4a18d4=_0x69c7f1['commandParams'][0x0];return{'type':'format','content':c(_0x2c56f6,'*Set\x20link:*\x20%0','\x22'+_0x4a18d4+'\x22')};}return'unlink'==_0x69c7f1['commandName']?{'type':'format','content':c(_0x2c56f6,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x2ee8de{['afterInit'](){const _0x3f6417=this['editor'],_0x312796=_0x3f6417['locale'];if(!_0x3f6417['plugins']['has']('LegacyListEditing'))return;const _0x4d49ec=_0x3f6417['plugins']['get']('TrackChangesEditing'),_0x32be87=_0x3f6417['plugins']['has']('LegacyTodoListEditing');function _0x23700d(_0x751bd3){return()=>{const _0x3098fc=_0x3f6417['model']['document']['selection'],_0x4c8769=_0x3f6417['commands']['get'](_0x751bd3);if(_0x4c8769['value'])return void _0x3f6417['execute']('paragraph',{});const _0x3c88e7=_0x751bd3['slice'](0x0,-0x4),_0x4b0af6=function(_0xc092d4,_0x3b3308,_0x468e0a){let _0x44b599=Array['from'](_0xc092d4)['filter'](_0x522caf=>function(_0x58a143,_0x3114a0){return _0x3114a0['checkChild'](_0x58a143['parent'],'listItem')&&!_0x3114a0['isObject'](_0x58a143);}(_0x522caf,_0x468e0a));_0x44b599=_0x44b599['filter'](_0x3cda78=>!_0x3cda78['is']('element','listItem')||_0x3cda78['getAttribute']('listType')!=_0x3b3308);const _0x1d156a=new Set();for(const _0x33d8f6 of _0x44b599)_0x33d8f6['is']('element','listItem')?_0x1d156a['add'](Le(_0x33d8f6)):_0x1d156a['add'](_0x33d8f6);return Array['from'](_0x1d156a);}(_0x3098fc['getSelectedBlocks'](),_0x3c88e7,_0x3f6417['model']['schema']);_0x3f6417['model']['change'](()=>{for(const _0x5274cd of _0x4b0af6)_0x4d49ec['markBlockFormat'](_0x5274cd,{'commandName':_0x751bd3,'commandParams':[{'forceValue':!_0x4c8769['value']}],'formatGroupId':'blockName'},Ee(_0x5274cd));});};}function _0x10a19e(_0x5de0cb){return()=>{const _0x1018df=function(_0x14e090){let _0x127eb6=Array['from'](_0x14e090);const _0x2102a7=_0x127eb6['findIndex'](_0x566251=>'listItem'!=_0x566251['name']);return _0x2102a7>-0x1&&(_0x127eb6=_0x127eb6['slice'](0x0,_0x2102a7)),_0x127eb6;}(_0x3f6417['model']['document']['selection']['getSelectedBlocks']()),_0x42d4d4=_0x3f6417['model']['createRange'](_0x3f6417['model']['createPositionAt'](_0x1018df[0x0],'before'),_0x3f6417['model']['createPositionAt'](_0x1018df[_0x1018df['length']-0x1],'end'));_0x3f6417['model']['change'](()=>{_0x4d49ec['markBlockFormat'](_0x42d4d4,{'commandName':_0x5de0cb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1382f6){const _0x3a34a8=new Set();for(const _0x21c5b6 of _0x1382f6){let _0x4d2886=_0x21c5b6['nextSibling'];for(;_0x4d2886&&_0x4d2886['getAttribute']('listIndent')>_0x21c5b6['getAttribute']('listIndent');)_0x3a34a8['add'](_0x4d2886),_0x4d2886=_0x4d2886['nextSibling'];}return Array['from'](_0x3a34a8);}(_0x1018df));});};}_0x4d49ec['enableCommand']('numberedList',_0x23700d('numberedList')),_0x4d49ec['enableCommand']('bulletedList',_0x23700d('bulletedList')),_0x32be87&&_0x4d49ec['enableCommand']('todoList',_0x23700d('todoList')),_0x4d49ec['enableCommand']('indentList',_0x10a19e('indentList')),_0x4d49ec['enableCommand']('outdentList',_0x10a19e('outdentList')),_0x32be87&&_0x4d49ec['enableCommand']('checkTodoList',()=>{const _0x682868=_0x3f6417['commands']['get']('checkTodoList'),_0x1322b9=Array['from'](_0x682868['_selectedElements']);_0x1322b9['filter'](_0xdd3efc=>_0xdd3efc['getAttribute']('todoListChecked')!=_0x682868['value']),_0x3f6417['model']['change'](()=>{for(const _0x542735 of _0x1322b9)_0x4d49ec['markBlockFormat'](_0x542735,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x682868['value']}]});});}),_0x4d49ec['descriptionFactory']['registerElementLabel']('listItem',_0x458ae3=>c(_0x312796,'ELEMENT_LIST_ITEM',_0x458ae3)),_0x4d49ec['descriptionFactory']['registerDescriptionCallback'](_0x274814=>{if('formatBlock'!=_0x274814['type']&&'formatInline'!=_0x274814['type'])return;const {data:_0x3a5095}=_0x274814;if(_0x3a5095){if('numberedList'==_0x3a5095['commandName']||'bulletedList'==_0x3a5095['commandName']||'todoList'==_0x3a5095['commandName'])switch(_0x3a5095['commandName']['replace']('List','')){case'bulleted':return _0x4b5bf2(c(_0x312796,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b5bf2(c(_0x312796,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b5bf2(c(_0x312796,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3a5095['commandName'])return{'type':'format','content':c(_0x312796,'*Indent:*\x20%0',c(_0x312796,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3a5095['commandName'])return{'type':'format','content':c(_0x312796,'*Outdent:*\x20%0',c(_0x312796,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3a5095['commandName'])return _0x3a5095['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x312796,'*Check\x20item*')}:{'type':'format','content':c(_0x312796,'*Uncheck\x20item*')};}function _0x4b5bf2(_0x56e455){return{'type':'format','content':c(_0x312796,'*Change\x20to:*\x20%0',_0x56e455)};}});}}function Le(_0x40c831){const _0x371336=_0x40c831['getAttribute']('listIndent');if(0x0==_0x371336)return _0x40c831;let _0x5e0ba9=_0x40c831;for(;_0x40c831['previousSibling']&&_0x40c831['previousSibling']['is']('element','listItem');){const _0x1934a9=_0x40c831['previousSibling']['getAttribute']('listIndent');if(_0x1934a9==_0x371336)_0x5e0ba9=_0x40c831['previousSibling'];else{if(_0x1934a9<_0x371336)break;}_0x40c831=_0x40c831['previousSibling'];}return _0x5e0ba9;}function Ee(_0x4fbda1){const _0x4cf62f=[];if(_0x4fbda1['is']('element','listItem')&&_0x4fbda1['getAttribute']('listIndent')>0x0){let _0x38ad28=_0x4fbda1['nextSibling'];for(;_0x38ad28&&'listItem'==_0x38ad28['name']&&_0x38ad28['getAttribute']('listIndent')==_0x4fbda1['getAttribute']('listIndent');)_0x4cf62f['push'](_0x38ad28),_0x38ad28=_0x38ad28['nextSibling'];}return _0x4cf62f;}class Q extends _0x2ee8de{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x11cac0=this['editor']['config']['get']('list.properties'),_0xc5a833=this['editor']['plugins']['get']('TrackChangesEditing');_0x11cac0['styles']&&_0xc5a833['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x11cac0['reversed']&&_0xc5a833['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x11cac0['startIndex']&&_0xc5a833['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xc5a833['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x50bdf3,_0x123068={}){const _0x409441=this['editor']['plugins']['get']('TrackChangesEditing'),_0x430cae=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x409441['markMultiRangeBlockFormat'](_0x430cae,{'commandName':'listStyle','commandParams':[{'type':_0x123068['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x329a34,_0x5c5ba2={}){const _0x42035d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f941c=this['_getSuggestionBlocks'](_0x4b8a28=>_0x4b8a28['is']('element','listItem')&&'numbered'===_0x4b8a28['getAttribute']('listType'));if(_0x4f941c['length']<0x1)return;const _0x2deede=_0x4f941c['map'](_0xbabdf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xbabdf,'before'),this['editor']['model']['createPositionAt'](_0xbabdf,0x0)));this['editor']['model']['change'](()=>{_0x42035d['markMultiRangeBlockFormat'](_0x2deede,{'commandName':'listReversed','commandParams':[{'reversed':_0x5c5ba2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1de513,_0x23e9d6={}){const _0x4c2e45=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37b6ba=this['_getSuggestionBlocks'](_0x2ddfc3=>_0x2ddfc3['is']('element','listItem')&&'numbered'===_0x2ddfc3['getAttribute']('listType'));if(_0x37b6ba['length']<0x1)return;const _0xd44c50=_0x37b6ba['map'](_0x26a548=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x26a548,'before'),this['editor']['model']['createPositionAt'](_0x26a548,0x0)));this['editor']['model']['change'](()=>{_0x4c2e45['markMultiRangeBlockFormat'](_0xd44c50,{'commandName':'listStart','commandParams':[{'startIndex':_0x23e9d6['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x332e7b){if('formatBlock'!=_0x332e7b['type']&&'formatInline'!=_0x332e7b['type'])return;const _0x46382d=this['editor']['locale'],{data:_0x475bb2}=_0x332e7b;if(!_0x475bb2)return;let _0x4f85e5,_0x33eb89;switch(_0x475bb2['commandName']){case'listStyle':_0x4f85e5='*Change\x20to:*\x20%0',_0x33eb89={'type':'format','content':c(_0x46382d,_0x4f85e5,c(_0x46382d,this['_getTranslationKeyForListStyle'](_0x475bb2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f85e5=_0x475bb2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x33eb89={'type':'format','content':c(_0x46382d,_0x4f85e5)};break;case'listStart':_0x4f85e5='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x33eb89={'type':'format','content':c(_0x46382d,_0x4f85e5,_0x475bb2['commandParams'][0x0]['startIndex'])};}return _0x33eb89;}['_getSuggestionBlocksForListStyle'](){const _0x52c4f0=this['editor']['plugins']['get']('LegacyListUtils');let _0x455e23=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x455e23[0x0]?.['is']('element','listItem')&&_0x455e23['unshift'](..._0x52c4f0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x455e23[_0x455e23['length']-0x1]?.['is']('element','listItem')&&_0x455e23['push'](..._0x52c4f0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x455e23=[...new Set(_0x455e23)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x455e23=_0x455e23['filter'](_0x5cb0b7=>_0x5cb0b7['is']('element','listItem'))),_0x455e23;}['_getSuggestionBlocks'](_0xe698ee){const _0xf841bf=this['editor']['plugins']['get']('LegacyListUtils');let _0x43d094=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xe698ee)['map'](_0xdc58ec=>{const _0x4d6890=this['editor']['model']['createPositionAt'](_0xdc58ec,0x0);return[..._0xf841bf['getSiblingNodes'](_0x4d6890,'backward'),..._0xf841bf['getSiblingNodes'](_0x4d6890,'forward')];})['flat']();return _0x43d094=[...new Set(_0x43d094)],_0x43d094;}['_getTranslationKeyForListStyle'](_0x4d17f1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4d17f1)||'default')['toUpperCase']()+'_LIST_'+_0x4d17f1['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x2ee8de{['afterInit'](){const _0x49e52e=this['editor'];if(!_0x49e52e['plugins']['has']('MediaEmbedEditing'))return;const _0x4ce114=_0x49e52e['plugins']['get']('TrackChangesEditing'),_0x59cf5c=_0x49e52e['locale'];_0x4ce114['enableCommand']('mediaEmbed'),_0x4ce114['descriptionFactory']['registerElementLabel']('media',_0x538065=>c(_0x59cf5c,'ELEMENT_MEDIA',_0x538065)),_0x49e52e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x20b4a2,{writer:_0xd8fcde,options:_0x32a638})=>{if(_0x32a638['showSuggestionHighlights'])return _0xd8fcde['createEmptyElement']('div');},'converterPriority':'high'}),_0x49e52e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x47b608,_0xbf3f7a,_0x58f470)=>{_0x58f470['options']['showSuggestionHighlights']&&_0x47b608['stop']();},{'priority':'high'});}}class pt extends _0x2ee8de{['afterInit'](){const _0x5735a5=this['editor'];_0x5735a5['plugins']['has']('MentionEditing')&&_0x5735a5['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x2ee8de{['afterInit'](){const _0x3896ef=this['editor'];if(!_0x3896ef['plugins']['has']('MergeFieldsEditing'))return;const _0x13bde2=_0x3896ef['plugins']['get']('TrackChangesEditing'),_0x4f5e4d=_0x3896ef['locale'];_0x13bde2['enableCommand']('insertMergeField'),_0x13bde2['enableCommand']('insertMergeFieldBlock'),_0x13bde2['enableCommand']('insertMergeFieldImage'),_0x13bde2['descriptionFactory']['registerElementLabel']('mergeField',_0x3d2557=>c(_0x4f5e4d,'ELEMENT_MERGE_FIELD',_0x3d2557)),_0x13bde2['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x417be6=>c(_0x4f5e4d,'ELEMENT_MERGE_FIELD',_0x417be6)),_0x13bde2['descriptionFactory']['registerDescriptionCallback'](_0x2839fe=>{if('insertion'!=_0x2839fe['type']&&'deletion'!=_0x2839fe['type'])return;const _0x5c7d24=_0x2839fe['getContainedElement']();if(null==_0x5c7d24)return;const _0x18e2f8=_0x3896ef['plugins']['get']('MergeFieldsEditing');let _0x1dab7c;switch(_0x18e2f8['getMergeFieldType'](_0x5c7d24)){case null:return;case'image':{const _0x55ab4b=_0x18e2f8['unwrapAffixes'](_0x5c7d24['getAttribute']('src'));_0x1dab7c=_0x18e2f8['getLabel'](_0x55ab4b)||_0x55ab4b;break;}default:{const _0x18ad6e=_0x5c7d24['getAttribute']('id');_0x1dab7c=_0x18e2f8['getLabel'](_0x18ad6e)||_0x18ad6e;break;}}return'insertion'==_0x2839fe['type']?{'type':'insertion','content':c(_0x4f5e4d,'*Insert:*\x20%0','\x22'+_0x1dab7c+'\x22\x20'+c(_0x4f5e4d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x4f5e4d,'*Remove:*\x20%0','\x22'+_0x1dab7c+'\x22\x20'+c(_0x4f5e4d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x2ee8de{['afterInit'](){const _0x5d96d7=this['editor'],_0x88b28f=_0x5d96d7['plugins']['get']('TrackChangesEditing');_0x5d96d7['plugins']['has']('MultiLevelList')&&(_0x88b28f['enableDefaultAttributesIntegration']('multiLevelList'),_0x88b28f['registerBlockAttribute']('listMarkerStyle'),_0x88b28f['descriptionFactory']['registerDescriptionCallback'](_0x3ddfd9=>this['handleDescriptions'](_0x3ddfd9)));}['handleDescriptions'](_0x58a25d){const _0x2b47ca=this['editor']['locale'],{data:_0x42ee17}=_0x58a25d,_0x31eda0={'type':'format','content':''};if(_0x42ee17&&'listMarkerStyle'==_0x42ee17['key']){if(!_0x42ee17['oldValue'])return{'type':'format','content':c(_0x2b47ca,'*Set\x20format:*\x20%0',c(_0x2b47ca,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42ee17['newValue']+')'};if(!_0x42ee17['newValue']){let _0x39018a=_0x58a25d['head'];for(;_0x39018a;){if(_0x39018a['data']&&'listType'==_0x39018a['data']['key']&&_0x39018a['data']['newValue'])return _0x31eda0;_0x39018a=_0x39018a['next'];}return{'type':'format','content':c(_0x2b47ca,'*Remove\x20format:*\x20%0',c(_0x2b47ca,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x42ee17['oldValue']+')'};}}}}class bt extends _0x2ee8de{['afterInit'](){const _0xaab2ef=this['editor'];if(!_0xaab2ef['plugins']['has']('PageBreakEditing'))return;_0xaab2ef['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x531680=_0xaab2ef['plugins']['get']('TrackChangesEditing'),_0x4c74f6=_0xaab2ef['locale'];_0x531680['descriptionFactory']['registerElementLabel']('pageBreak',_0x5b04b0=>c(_0x4c74f6,'ELEMENT_PAGE_BREAK',_0x5b04b0));}}class yt extends _0x2ee8de{['afterInit'](){const _0x2c809f=this['editor'];if(!_0x2c809f['plugins']['has']('Paragraph'))return;const _0x716263=_0x2c809f['locale'],_0x1075dc=_0x2c809f['plugins']['get']('TrackChangesEditing');_0x1075dc['descriptionFactory']['registerElementLabel']('paragraph',_0x5eab6b=>c(_0x716263,'ELEMENT_PARAGRAPH',_0x5eab6b)),_0x1075dc['enableDefaultAttributesIntegration']('paragraph'),_0x1075dc['enableCommand']('insertParagraph'),_0x2c809f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2c809f),{'priority':'highest'}),_0x2c809f['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x501b7d,_0x42ab94,_0xf80652)=>{_0xf80652['options']['showSuggestionHighlights']&&nr(_0x2c809f,{'showActiveMarker':!0x1})(_0x501b7d,_0x42ab94,_0xf80652);},{'priority':'highest'});const _0x416d79=_0x1075dc['descriptionFactory'];_0x416d79['registerDescriptionCallback'](_0x12efed=>{if('insertion'!==_0x12efed['type'])return;const {start:_0x2c8076,end:_0x5d3bcd}=_0x12efed['getFirstRange']();if(!_0x2c8076['isTouching'](_0x5d3bcd)||!_0x2c8076['nodeAfter'])return;const _0x514a7d=_0x2c809f['model']['schema'],_0x423b07=_0x2c8076['nodeAfter'];return _0x514a7d['isBlock'](_0x423b07)&&!_0x514a7d['isLimit'](_0x423b07)&&_0x514a7d['checkChild'](_0x423b07,'$text')?{'type':'insertion','content':c(_0x716263,'*Insert:*\x20%0',_0x416d79['getItemLabel'](_0x423b07,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d4001=this['editor'],_0x1d7842=_0x2d4001['locale'];_0x2d4001['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x213462=>{if('formatBlock'!=_0x213462['type'])return;const {data:_0x57ad90}=_0x213462;return _0x57ad90&&'paragraph'==_0x57ad90['commandName']?{'type':'format','content':c(_0x1d7842,'*Change\x20to:*\x20%0',c(_0x1d7842,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3f5bf4,{showActiveMarker:_0x171ac1=!0x0}={}){return(_0x33d372,_0x2586ee,_0x4fdfdc)=>{const _0x1a1603=_0x3f5bf4['plugins']['get']('TrackChangesEditing'),_0x46d17f=_0x2586ee['markerRange']['start'],_0xfbe60e=_0x2586ee['markerRange']['end'],_0xa29d1=_0x3f5bf4['model']['schema'];if(!_0x46d17f['isTouching'](_0xfbe60e)||!_0x46d17f['nodeAfter'])return;const _0x1544ee=_0x46d17f['nodeAfter'];if(_0xa29d1['isBlock'](_0x1544ee)&&!_0xa29d1['isLimit'](_0x1544ee)&&_0xa29d1['checkChild'](_0x1544ee,'$text')){if(!_0x4fdfdc['consumable']['consume'](_0x2586ee['markerRange'],_0x33d372['name']))return;const {id:_0x5be21d,authorId:_0x55ca77}=_0x1a1603['_splitMarkerName'](_0x2586ee['markerName']),_0x167715=_0x4fdfdc['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5be21d,'data-author-id':_0x55ca77}),_0x4ef278=_0x4fdfdc['mapper']['toViewPosition'](_0xfbe60e);_0x171ac1&&_0x1a1603['activeMarkers']['includes'](_0x2586ee['markerName'])&&_0x4fdfdc['writer']['addClass']('ck-suggestion-marker--active',_0x167715),_0x4fdfdc['writer']['insert'](_0x4ef278,_0x167715),_0x4fdfdc['mapper']['bindElementToMarker'](_0x167715,_0x2586ee['markerName']);}};}class St extends _0x2ee8de{['afterInit'](){const _0x3cc9dd=this['editor'];_0x3cc9dd['commands']['get']('replaceSource')&&_0x3cc9dd['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x2ee8de{['afterInit'](){const _0x53bbb9=this['editor'];if(!_0x53bbb9['plugins']['has']('RemoveFormatEditing'))return;_0x53bbb9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3830a5=this['editor'];_0x3830a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6528fc=>{if('formatBlock'!=_0x6528fc['type']&&'formatInline'!=_0x6528fc['type'])return;const {data:_0x324d26}=_0x6528fc;return _0x324d26&&'removeFormat'==_0x324d26['commandName']?{'type':'format','content':c(_0x3830a5['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2ee8de{['afterInit'](){const _0x5c653e=this['editor'];if(!_0x5c653e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46acfc=_0x5c653e['plugins']['get']('TrackChangesEditing');_0x46acfc['enableCommand']('goToPreviousRestrictedEditingException'),_0x46acfc['enableCommand']('goToNextRestrictedEditingException');const _0x4bb477=_0x5c653e['plugins']['get']('RestrictedEditingModeEditing');_0x4bb477['enableCommand']('trackChanges'),_0x4bb477['enableCommand']('acceptSuggestion'),_0x4bb477['enableCommand']('discardSuggestion'),_0x4bb477['enableCommand']('acceptAllSuggestions'),_0x4bb477['enableCommand']('discardAllSuggestions'),_0x4bb477['enableCommand']('acceptSelectedSuggestions'),_0x4bb477['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2ee8de{['afterInit'](){const _0x3b8acf=this['editor'];if(!_0x3b8acf['plugins']['has']('ShiftEnter'))return;const _0x160340=_0x3b8acf['plugins']['get']('TrackChangesEditing');_0x160340['enableCommand']('shiftEnter'),_0x3b8acf['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3b8acf),{'priority':'high'}),_0x3b8acf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3b8acf),{'priority':'high'}),_0x3b8acf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2cceb7,_0x8dbbb8,_0x3002dd)=>{_0x3002dd['options']['showSuggestionHighlights']&&je(_0x3b8acf,{'showActiveMarker':!0x1})(_0x2cceb7,_0x8dbbb8,_0x3002dd);}),_0x160340['descriptionFactory']['registerElementLabel']('softBreak',_0x6eae05=>c(_0x3b8acf['locale'],'ELEMENT_LINE_BREAK',_0x6eae05));}}function je(_0x4cfd72,{showActiveMarker:_0xcb9fc2=!0x0}={}){return(_0x3da2ae,_0x580ef2,_0x5835a1)=>{const _0x9a9fa6=_0x4cfd72['plugins']['get']('TrackChangesEditing');if(!_0x5835a1['consumable']['test'](_0x580ef2['markerRange'],_0x3da2ae['name']))return;const _0x11250d=_0x4cfd72['model'];for(const _0x55af6a of _0x580ef2['markerRange']['getItems']()){if(!_0x55af6a['is']('element','softBreak'))continue;const _0x3357f0='deletion'==_0x580ef2['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x370e7c,authorId:_0x222f67}=_0x9a9fa6['_splitMarkerName'](_0x580ef2['markerName']),_0x11afbe=_0x5835a1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3357f0,'data-suggestion':_0x370e7c,'data-author-id':_0x222f67}),_0x1f60bd=_0x5835a1['mapper']['toViewPosition'](_0x11250d['createPositionBefore'](_0x55af6a));_0xcb9fc2&&_0x9a9fa6['activeMarkers']['includes'](_0x580ef2['markerName'])&&_0x5835a1['writer']['addClass']('ck-suggestion-marker--active',_0x11afbe),_0x5835a1['writer']['insert'](_0x1f60bd,_0x11afbe),_0x5835a1['mapper']['bindElementToMarker'](_0x11afbe,_0x580ef2['markerName']);}};}class _t extends _0x2ee8de{['afterInit'](){const _0x4b2f0a=this['editor'],_0x43eb85=_0x4b2f0a['model'],_0x5a948c=_0x4b2f0a['locale'];if(!_0x4b2f0a['plugins']['has']('StandardEditingModeEditing'))return;const _0x12bd16=_0x4b2f0a['plugins']['get']('TrackChangesEditing'),_0x22078c='restrictedEditingException',_0x4d7621=_0x4b2f0a['commands']['get'](_0x22078c);_0x12bd16['enableCommand'](_0x22078c,(_0x69480,_0x2cf26d={})=>{const _0xe537b9=_0x43eb85['document']['selection'];if(_0xe537b9['isCollapsed'])return void _0x69480(_0x2cf26d);const _0x387389=void 0x0!==_0x2cf26d['forceValue']?_0x2cf26d['forceValue']:!_0x4d7621['value'];_0x43eb85['change'](()=>{const _0x30be24=Array['from'](_0xe537b9['getRanges']());for(const _0x14dc7c of _0x30be24){const _0x2d7c6c=_0x387389?[_0x14dc7c]:io(_0x22078c,_0x14dc7c,_0x43eb85);for(const _0x54d646 of _0x2d7c6c)_0x12bd16['markInlineFormat'](_0x54d646,{'commandName':_0x22078c,'commandParams':[{'forceValue':_0x387389}]});}});}),_0x12bd16['descriptionFactory']['registerDescriptionCallback'](_0x518d78=>{if('formatBlock'!=_0x518d78['type']&&'formatInline'!=_0x518d78['type'])return;const {data:_0x22330c}=_0x518d78;return _0x22330c&&_0x22330c['commandName']==_0x22078c?_0x22330c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5a948c,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x5a948c,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x2ee8de{['afterInit'](){const _0x5a943c=this['editor'];if(!_0x5a943c['plugins']['has']('Style')||!_0x5a943c['plugins']['has']('DataSchema'))return;const _0x54b75e=_0x5a943c['plugins']['get']('TrackChangesEditing'),_0x2214a9=_0x5a943c['locale'],_0x35e6da=_0x5a943c['config']['get']('style')||{},_0x2c7188=_0x5a943c['plugins']['get']('GeneralHtmlSupport'),_0x2e94a4=_0x5a943c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5a943c['plugins']['get']('DataSchema'),_0x35e6da['definitions']);_0x54b75e['enableDefaultAttributesIntegration']('style');const _0x325eca=new Set();for(const _0x56871e of _0x2e94a4['block']){const _0x3d996c=_0x2c7188['getGhsAttributeNameForElement'](_0x56871e['element']);_0x325eca['add'](_0x3d996c);}const _0x43c125=new Set();for(const _0x421898 of _0x2e94a4['inline']){const _0x1b9d57=_0x2c7188['getGhsAttributeNameForElement'](_0x421898['element']);_0x43c125['add'](_0x1b9d57);for(const _0x2bd55d of _0x421898['ghsAttributes'])_0x43c125['add'](_0x2bd55d);}for(const _0x1a97c4 of _0x325eca)_0x54b75e['registerBlockAttribute'](_0x1a97c4),_0x54b75e['descriptionFactory']['registerAttributeLabel'](_0x1a97c4,c(_0x2214a9,'FORMAT_STYLE'));for(const _0x3a38cc of _0x43c125)_0x54b75e['registerInlineAttribute'](_0x3a38cc),_0x54b75e['descriptionFactory']['registerAttributeLabel'](_0x3a38cc,c(_0x2214a9,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x187a65=this['editor'],_0x61e715=_0x187a65['locale'];_0x187a65['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d7dcc=>{if('formatBlock'!=_0x3d7dcc['type']&&'formatInline'!=_0x3d7dcc['type'])return;const {data:_0x94c385}=_0x3d7dcc;return _0x94c385&&'style'===_0x94c385['commandName']?_0x94c385['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x61e715,'*Set\x20format:*\x20%0',_0x94c385['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x61e715,'*Remove\x20format:*\x20%0',_0x94c385['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x2ee8de{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x79e752){super(_0x79e752),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xb6c16=this['editor'],_0x39bd01=_0xb6c16['model']['document']['selection'];if(!_0xb6c16['plugins']['has']('TableEditing'))return;const _0x4cfe72=_0xb6c16['locale'],_0x3c0a62=_0xb6c16['plugins']['get']('TrackChangesEditing'),_0x5573c9=_0xb6c16['plugins']['get']('TableUtils');_0x3c0a62['descriptionFactory']['registerElementLabel']('table',_0x19f3de=>c(_0x4cfe72,'ELEMENT_TABLE',_0x19f3de)),this['_setupColumnsRowsFixing'](),_0x3c0a62['enableCommand']('insertTable'),_0x3c0a62['enableCommand']('selectTableRow'),_0x3c0a62['enableCommand']('selectTableColumn');for(const _0x2cbe41 of['insertTableRowAbove','insertTableRowBelow']){const _0x3023b7=_0xb6c16['commands']['get'](_0x2cbe41);_0x3c0a62['enableCommand'](_0x2cbe41,_0x324879=>{_0xb6c16['model']['change'](_0x586b7b=>{_0x324879();const _0x22fc2b='above'===_0x3023b7['order'],_0x452936=_0x5573c9['getSelectionAffectedTableCells'](_0x39bd01),_0xbe5ac8=_0x5573c9['getRowIndexes'](_0x452936),_0x123602=_0x22fc2b?_0xbe5ac8['first']-0x1:_0xbe5ac8['last']+0x1,_0x11b04f=_0x452936[0x0]['findAncestor']('table'),_0x37c366=_0x5573c9['createTableWalker'](_0x11b04f,{'startRow':_0x123602,'endRow':_0x123602}),_0x2da80c=Array['from'](_0x37c366)['map'](_0x25f407=>_0x586b7b['createRangeOn'](_0x25f407['cell']));_0x3c0a62['markMultiRangeInsertion'](_0x2da80c,'tableRow');});});}for(const _0x4a72c4 of['insertTableColumnLeft','insertTableColumnRight']){const _0x5798ab=_0xb6c16['commands']['get'](_0x4a72c4);_0x3c0a62['enableCommand'](_0x4a72c4,_0x2901e2=>{_0xb6c16['model']['change'](_0x18f4ba=>{_0x2901e2();const _0x554ebc='left'===_0x5798ab['order'],_0x261b30=_0x5573c9['getSelectionAffectedTableCells'](_0x39bd01),_0x1d0ab4=_0x5573c9['getColumnIndexes'](_0x261b30),_0x10d548=_0x554ebc?_0x1d0ab4['first']-0x1:_0x1d0ab4['last']+0x1,_0x1fb710=_0x261b30[0x0]['findAncestor']('table'),_0x40e1aa=_0x5573c9['createTableWalker'](_0x1fb710,{'startRow':0x0,'column':_0x10d548,'includeAllSlots':!0x1}),_0x530384=Array['from'](_0x40e1aa)['map'](_0x218567=>_0x18f4ba['createRangeOn'](_0x218567['cell']));_0x3c0a62['markMultiRangeInsertion'](_0x530384,'tableColumn');});});}for(const _0x27fe89 of['removeTableRow','removeTableColumn']){const _0x56f322=_0x27fe89['substr'](0xb),_0x433cf1=_0x56f322['toLowerCase'](),_0x31d83e=_0x433cf1['substr'](0x0,0x3)+'span',_0x49a10b='table'+_0x56f322,_0x5fbfd7='min'+_0x56f322,_0x10e00b='max'+_0x56f322;_0x3c0a62['enableCommand'](_0x27fe89,()=>{_0xb6c16['model']['change'](_0x2d221c=>{const _0x193518=_0x5573c9['getSelectionAffectedTableCells'](_0x39bd01),_0x3354a9=_0x193518[0x0]['findAncestor']('table');let _0x2c5032;if('removeTableRow'==_0x27fe89){const _0x1e2a8f=_0x5573c9['getRowIndexes'](_0x193518);_0x2c5032={'startRow':_0x1e2a8f['first'],'endRow':_0x1e2a8f['last'],'includeAllSlots':!0x0};}else{const _0x43b691=_0x5573c9['getColumnIndexes'](_0x193518);_0x2c5032={'startColumn':_0x43b691['first'],'endColumn':_0x43b691['last'],'includeAllSlots':!0x0};}const _0x58b524=_0x5573c9['createTableWalker'](_0x3354a9,_0x2c5032),_0x6eab55=Array['from'](_0x58b524)['map'](({cell:_0x260ba})=>_0x260ba),_0x4c4794=xe(_0x6eab55['filter'](_0x2f32a6=>_0x2f32a6['hasAttribute'](_0x31d83e))),_0x1ca9ca=xe(_0x6eab55['filter'](_0x51a0d6=>!_0x51a0d6['hasAttribute'](_0x31d83e)))['map'](_0x2baa6a=>_0x2d221c['createRangeOn'](_0x2baa6a)),_0x4635a5=_0x3c0a62['markMultiRangeDeletion'](_0x1ca9ca,_0x49a10b);if(_0x4635a5&&('tableRow'==_0x4635a5['subType']||'tableColumn'==_0x4635a5['subType'])){const _0x22abd7=this['_getSuggestionCoords'](_0x4635a5);for(const _0x1d0b53 of _0x4c4794){const _0x166d29=_0x2d221c['createRangeOn'](_0x1d0b53),_0x4cc0bd=_0x5573c9['getCellLocation'](_0x1d0b53),_0x4753b4=_0x1d0b53['getAttribute'](_0x31d83e)-0x1,_0x40c67f=_0x22abd7[_0x5fbfd7],_0x4a10c5=_0x22abd7[_0x10e00b];_0x40c67f<=_0x4cc0bd[_0x433cf1]&&_0x4cc0bd[_0x433cf1]+_0x4753b4<=_0x4a10c5&&_0x4635a5['addRange'](_0x166d29);}}});});}function _0x8e4d33(_0x214e48){const _0x1e62f7=Array['from'](_0x39bd01['getRanges']())['map'](_0x8416a5=>_0x128be7['fromRange'](_0x8416a5));_0xb6c16['model']['change'](_0x289b22=>{const _0x1529ac=_0x289b22['batch'];_0x214e48=_0x214e48['filter'](_0x435725=>'$graveyard'!=_0x435725['root']['rootName']),_0x289b22['setSelection'](_0x214e48),_0xb6c16['commands']['get']('removeTableRow')['refresh'](),_0xb6c16['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xb6c16['model']['enqueueChange'](()=>{_0xb6c16['model']['enqueueChange'](_0x1529ac,_0xd78da1=>{const _0x60d67a=_0x1e62f7['filter'](_0x5c7212=>'$graveyard'!=_0x5c7212['root']['rootName']);_0x60d67a['length']>0x0&&_0xd78da1['setSelection'](_0x60d67a);for(const _0xc76350 of _0x1e62f7)_0xc76350['detach']();});});});}function _0x317e93(_0x3b915c){_0xb6c16['model']['change'](_0xcb3c42=>{const _0x3938fd=Array['from'](_0x39bd01['getRanges']())['map'](_0x4f0d09=>_0x128be7['fromRange'](_0x4f0d09)),_0x27239e=[];for(const _0x4bb078 of _0x3b915c)for(const _0x2d00d6 of _0x4bb078['getItems']({'shallow':!0x0}))_0x27239e['push'](_0x2d00d6);for(const _0x4b5b2e of _0x27239e)'$graveyard'!=_0x4b5b2e['root']['rootName']&&(_0xcb3c42['setSelection'](_0xcb3c42['createPositionAt'](_0x4b5b2e,0x0)),_0xb6c16['commands']['get']('removeTableColumn')['refresh'](),_0xb6c16['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x29c2b2=_0x3938fd['filter'](_0x35936c=>'$graveyard'!=_0x35936c['root']['rootName']);_0x29c2b2['length']>0x0&&_0xcb3c42['setSelection'](_0x29c2b2);for(const _0x35ecac of _0x3938fd)_0x35ecac['detach']();});}function _0x35414d(_0x11a44c,_0x2a6866){return _0x2a6866['every'](_0x26081f=>_0x11a44c['some'](_0x2d7f0c=>_0x2d7f0c['end']['isEqual'](_0x26081f['start'])||_0x26081f['end']['isEqual'](_0x2d7f0c['start'])));}function _0x238bdd(_0x314249,_0x370720){return!_0x314249['some'](_0x15cbb5=>_0x370720['some'](_0x61ee61=>_0x15cbb5['isIntersecting'](_0x61ee61)))&&_0x314249['some'](_0x3383a9=>_0x370720['some'](_0x4a64d0=>_0x3383a9['end']['isTouching'](_0x4a64d0['start'])));}_0xb6c16['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4e7226,_0x2abc6e,_0x43deaf)=>{if(!_0x43deaf['options']['showSuggestionHighlights'])return;const _0xfc5593=_0x2abc6e['item'];if(!_0xfc5593||!_0xfc5593['is']('element','tableCell'))return;const _0x1a36f7=_0x43deaf['mapper']['toViewElement'](_0xfc5593);if(_0x1a36f7){const {id:_0x537d1b,authorId:_0x26651d}=_0x3c0a62['_splitMarkerName'](_0x2abc6e['markerName']);_0x25fcab(_0x1a36f7,_0x43deaf['writer'],(_0x140518,_0x48c06c,_0x2cd1f8)=>{_0x2cd1f8['addClass'](_0x3756d1(_0x48c06c['classes']),_0x140518),_0x2cd1f8['setAttribute']('data-suggestion-id',_0x537d1b,_0x140518),_0x2cd1f8['setAttribute']('data-author-id',_0x26651d,_0x140518);},(_0x2a6e50,_0x4f9d3f,_0x48e16c)=>{_0x48e16c['removeClass'](_0x3756d1(_0x4f9d3f['classes']),_0x2a6e50),_0x48e16c['removeAttribute']('data-suggestion-id',_0x2a6e50),_0x48e16c['removeAttribute']('data-author-id',_0x2a6e50);});}},{'priority':'highest'}),_0x3c0a62['descriptionFactory']['registerDescriptionCallback'](_0x4b18d2=>{if('insertion'!=_0x4b18d2['type']&&'deletion'!=_0x4b18d2['type'])return;const _0x251f2c=_0x4b18d2['getContainedElement']();if(null!=_0x251f2c&&_0x251f2c['is']('element','table')){if('insertion'==_0x4b18d2['type']){const _0x1cd5ea=_0x4b18d2['getItems']()['filter'](_0x2983a1=>_0x2983a1['is']('$textProxy'))['map'](_0x344f7a=>_0x344f7a['data']);if(_0x1cd5ea['length'])return{'type':'insertion','content':c(_0x4cfe72,'*Insert:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1cd5ea['join']('\x20')+'\x22'))};}if('deletion'==_0x4b18d2['type']){const _0x1a6a84=_0x4b18d2['getItems']()['filter'](_0x1d1a15=>_0x1d1a15['is']('$textProxy'))['map'](_0x11e157=>_0x11e157['data']);if(_0x1a6a84['length'])return{'type':'deletion','content':c(_0x4cfe72,'*Remove:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1a6a84['join']('\x20')+'\x22'))};}}}),_0x3c0a62['descriptionFactory']['registerDescriptionCallback'](_0x39d2d0=>{if('tableRow'==_0x39d2d0['subType']){const _0x2eb9eb=_0x39d2d0['getItems']()['filter'](_0x14205c=>_0x14205c['is']('$textProxy'))['map'](_0x487382=>_0x487382['data']),_0x2f6c3f=this['_getSuggestionCoords'](_0x39d2d0),_0x594e51=_0x2f6c3f['maxRow']-_0x2f6c3f['minRow']+0x1;if('insertion'==_0x39d2d0['type'])return _0x2eb9eb['length']?{'type':'insertion','content':c(_0x4cfe72,'*Insert:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x594e51,'\x22'+_0x2eb9eb['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4cfe72,'*Insert:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_ROW',_0x594e51))};if('deletion'==_0x39d2d0['type'])return _0x2eb9eb['length']?{'type':'deletion','content':c(_0x4cfe72,'*Remove:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x594e51,'\x22'+_0x2eb9eb['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4cfe72,'*Remove:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_ROW',_0x594e51))};}if('tableColumn'==_0x39d2d0['subType']){const _0x3b467b=_0x39d2d0['getItems']()['filter'](_0x6f06b9=>_0x6f06b9['is']('$textProxy'))['map'](_0x25d428=>_0x25d428['data']),_0x5139aa=this['_getSuggestionCoords'](_0x39d2d0),_0x15e1f1=_0x5139aa['maxColumn']-_0x5139aa['minColumn']+0x1;if('insertion'==_0x39d2d0['type'])return _0x3b467b['length']?{'type':'insertion','content':c(_0x4cfe72,'*Insert:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15e1f1,'\x22'+_0x3b467b['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x4cfe72,'*Insert:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_COLUMN',_0x15e1f1))};if('deletion'==_0x39d2d0['type'])return _0x3b467b['length']?{'type':'deletion','content':c(_0x4cfe72,'*Remove:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x15e1f1,'\x22'+_0x3b467b['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x4cfe72,'*Remove:*\x20%0',c(_0x4cfe72,'ELEMENT_TABLE_COLUMN',_0x15e1f1))};}}),_0x3c0a62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x8e4d33),_0x3c0a62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x8e4d33),_0x3c0a62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x317e93),_0x3c0a62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x317e93),_0x3c0a62['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x35414d),_0x3c0a62['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x35414d),_0x3c0a62['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x238bdd),_0x3c0a62['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x238bdd);}['_acceptFormatSuggestionCallbackFactory'](){const _0xb7163c=this['editor'],_0x111425=_0xb7163c['model']['document']['selection'];return(_0x4ca4d8,_0x4fc49c)=>{_0xb7163c['model']['change'](_0x2761e7=>{const {commandName:_0x5e7d30,commandParams:_0x33a4d5}=_0x4fc49c;let _0x301c69=_0x4ca4d8[0x0]['end']['nodeBefore'];_0x33a4d5&&_0x33a4d5[0x0]&&!0x1===_0x33a4d5[0x0]['forceValue']&&(_0x301c69=_0x4ca4d8[0x0]['start']['nodeAfter']);const _0xb516f7=_0x2761e7['createRangeIn'](_0x301c69);if('$graveyard'==_0xb516f7['root']['rootName'])return;const _0x1b9a5b=Array['from'](_0x111425['getRanges']())['map'](_0x4e1328=>_0x128be7['fromRange'](_0x4e1328));_0x2761e7['setSelection'](_0xb516f7),_0xb7163c['commands']['get'](_0x5e7d30)['refresh'](),_0x33a4d5['push']({'forceDefaultExecution':!0x0}),_0xb7163c['execute'](_0x5e7d30,..._0x33a4d5);const _0x5b8ba7=_0x1b9a5b['filter'](_0x481bf4=>'$graveyard'!=_0x481bf4['root']['rootName']);_0x5b8ba7['length']>0x0&&_0x2761e7['setSelection'](_0x5b8ba7);for(const _0x14b843 of _0x1b9a5b)_0x14b843['detach']();});};}['_getCoordsForCells'](_0x1e3035){const _0x2bc3cf=this['editor']['plugins']['get']('TableUtils');let _0x1157e3=Number['MAX_SAFE_INTEGER'],_0x2a70ac=Number['MIN_SAFE_INTEGER'],_0x10b41e=Number['MAX_SAFE_INTEGER'],_0x23c88e=Number['MIN_SAFE_INTEGER'];for(const _0x26099a of _0x1e3035){if('$graveyard'==_0x26099a['root']['rootName'])continue;const {row:_0x1af7c0,column:_0x400673}=_0x2bc3cf['getCellLocation'](_0x26099a),_0x412ecc=_0x26099a['hasAttribute']('rowspan')?_0x26099a['getAttribute']('rowspan')-0x1:0x0,_0x2aee4d=_0x26099a['hasAttribute']('colspan')?_0x26099a['getAttribute']('colspan')-0x1:0x0;_0x1157e3=_0x1af7c0<_0x1157e3?_0x1af7c0:_0x1157e3,_0x2a70ac=_0x1af7c0+_0x412ecc>_0x2a70ac?_0x1af7c0+_0x412ecc:_0x2a70ac,_0x10b41e=_0x400673<_0x10b41e?_0x400673:_0x10b41e,_0x23c88e=_0x400673+_0x2aee4d>_0x23c88e?_0x400673+_0x2aee4d:_0x23c88e;}return{'minRow':_0x1157e3,'maxRow':_0x2a70ac,'minColumn':_0x10b41e,'maxColumn':_0x23c88e};}['_setupColumnsRowsFixing'](){const _0x2d094d=this['editor'],_0x507a21=_0x2d094d['plugins']['get']('TrackChangesEditing'),_0xc1d26=_0x2d094d['plugins']['get']('TableUtils');_0x2d094d['model']['document']['on']('change:data',()=>{const _0x5ed93a=Array['from'](_0x2d094d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x448341,data:_0xc3de24}of _0x5ed93a){const {group:_0x3182b9,id:_0x121f7d,subType:_0xbc7fdf}=_0x507a21['_splitMarkerName'](_0x448341);if('suggestion'!=_0x3182b9)continue;if(null!=_0xc3de24['oldRange'])continue;const _0x4f4ddb=_0x507a21['getSuggestion'](_0x121f7d);this['_tablePostFixingSubtypes']['includes'](_0xbc7fdf)&&this['_tableSuggestions']['add'](_0x4f4ddb);}},{'priority':'low'});const _0xf509c0=(_0x49066b,_0x54e9c9)=>{let _0x3ffffe=!0x1;const _0x16b5b2=_0x54e9c9['createRangeOn'](_0x49066b),_0x46927b=_0x49066b['findAncestor']('table'),_0x1fb7d1=_0xc1d26['getCellLocation'](_0x49066b);for(const _0x24ba37 of this['_tableSuggestions']){const _0x4ae0df=_0x24ba37['subType'],_0x733ddd=_0x4ae0df['startsWith']('tablePaste'),_0x22ab3b=_0x4ae0df['substr'](_0x733ddd?0xa:0x5),_0x1629a0=_0x22ab3b['toLowerCase'](),_0x304563=_0x1629a0['substr'](0x0,0x3)+'span',_0x1a05cf='min'+_0x22ab3b,_0x4ef6e4='max'+_0x22ab3b;if(!_0x24ba37['isInContent'])continue;if(_0x46927b!=_0x24ba37['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x24ba37['isIntersectingWithRange'](_0x16b5b2))continue;const _0x163e07=_0x49066b['hasAttribute'](_0x304563)?_0x49066b['getAttribute'](_0x304563)-0x1:0x0,_0x238a0f=this['_getSuggestionCoords'](_0x24ba37),_0x651ab1=_0x238a0f[_0x1a05cf],_0x4d395b=_0x238a0f[_0x4ef6e4];_0x651ab1<=_0x1fb7d1[_0x1629a0]&&_0x1fb7d1[_0x1629a0]+_0x163e07<=_0x4d395b&&(_0x24ba37['addRange'](_0x16b5b2),_0x3ffffe=!0x0);}return _0x3ffffe;};_0x2d094d['model']['document']['registerPostFixer'](_0x5185cd=>{let _0x5c1fa4=!0x1;for(const _0x571d6d of _0x2d094d['model']['document']['differ']['getChanges']())if('insert'==_0x571d6d['type']){if('tableRow'==_0x571d6d['name']){for(const _0x4c4ea0 of _0x571d6d['position']['nodeAfter']['getChildren']())_0x5c1fa4=_0x5c1fa4||_0xf509c0(_0x4c4ea0,_0x5185cd);}else'tableCell'==_0x571d6d['name']&&(_0x5c1fa4=_0x5c1fa4||_0xf509c0(_0x571d6d['position']['nodeAfter'],_0x5185cd));}return _0x5c1fa4;});}['_getSuggestionCoords'](_0x39e5dd){return this['_getCoordsForCells'](_0x39e5dd['getRanges']()['map'](_0x35bcb0=>_0x35bcb0['start']['nodeAfter']));}}function xe(_0x31b84f){return Array['from'](new Set(_0x31b84f)['values']());}class Nt extends _0x2ee8de{static get['requires'](){return[Ct];}['afterInit'](){const _0x489d83=this['editor'],_0x34de13=_0x489d83['model']['document']['selection'],_0x10222e=_0x489d83['locale'];if(!_0x489d83['plugins']['has']('TableEditing'))return;const _0x3496ab=_0x489d83['plugins']['get']('TrackChangesEditing'),_0x398bf0=_0x489d83['plugins']['get']('TableUtils'),_0x1157c7=_0x489d83['plugins']['get'](Ct);_0x1157c7['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3496ab['enableCommand']('mergeTableCells',()=>{const _0x317310=_0x398bf0['getSelectionAffectedTableCells'](_0x489d83['model']['document']['selection']);_0x489d83['model']['change'](()=>{_0x3496ab['markMultiRangeBlockFormat'](_0x317310,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x489d83['commands']['get']('mergeTableCells')['on']('execute',(_0x151f8d,_0x3825be)=>{_0x489d83['commands']['get']('trackChanges')['value']&&(_0x3825be['length']>0x0&&_0x3825be[_0x3825be['length']-0x1]&&_0x3825be[_0x3825be['length']-0x1]['forceDefaultExecution']||_0x3496ab['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x151f8d['stop']());},{'priority':'highest'});for(const _0x3285aa of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x26b70c=_0x489d83['commands']['get'](_0x3285aa);_0x3496ab['enableCommand'](_0x3285aa,()=>{const _0x269702=_0x489d83['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x598b0b=>_0x598b0b['is']('element','tableCell')),_0x535b12=_0x26b70c['value'];_0x489d83['model']['change'](()=>{_0x3496ab['markMultiRangeBlockFormat']([_0x269702,_0x535b12],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2295a2 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x44ee56=_0x489d83['commands']['get'](_0x2295a2);_0x3496ab['enableCommand'](_0x2295a2,()=>{const _0x24f1f3=_0x398bf0['getSelectionAffectedTableCells'](_0x489d83['model']['document']['selection'])[0x0],_0x427670=_0x24f1f3['findAncestor']('table'),{column:_0x592eee,row:_0x361e0f}=_0x398bf0['getCellLocation'](_0x24f1f3);let _0x29ee3b=[];if('horizontally'==_0x44ee56['direction']){const _0x2ad15c=_0x398bf0['createTableWalker'](_0x427670,{'startRow':_0x361e0f,'endRow':_0x361e0f,'includeAllSlots':!0x0});_0x29ee3b=Array['from'](_0x2ad15c)['map'](_0x3aebc4=>_0x3aebc4['cell']);}else{const _0x146738=_0x398bf0['createTableWalker'](_0x427670,{'column':_0x592eee,'includeAllSlots':!0x0});_0x29ee3b=Array['from'](_0x146738)['map'](_0x479341=>_0x479341['cell']);}_0x489d83['model']['change'](_0x516080=>{_0x3496ab['markBlockFormat'](_0x516080['createRangeOn'](_0x24f1f3),{'commandName':_0x2295a2,'commandParams':[]},_0x29ee3b,_0x2295a2);});});}_0x3496ab['descriptionFactory']['registerDescriptionCallback'](_0x5c0b4c=>{if('formatBlock'!=_0x5c0b4c['type']&&'formatInline'!=_0x5c0b4c['type'])return;const {data:_0x8593f6}=_0x5c0b4c;return _0x8593f6&&'mergeTableCells'==_0x8593f6['commandName']?{'type':'format','content':c(_0x10222e,'*Merge\x20cells*')}:void 0x0;}),_0x3496ab['descriptionFactory']['registerDescriptionCallback'](_0x337986=>{if('formatBlock'!=_0x337986['type']&&'formatInline'!=_0x337986['type'])return;const {data:_0x5dbf4a}=_0x337986;return _0x5dbf4a?'splitTableCellVertically'==_0x5dbf4a['commandName']?{'type':'format','content':c(_0x10222e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5dbf4a['commandName']?{'type':'format','content':c(_0x10222e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5cb32e=_0x1157c7['_acceptFormatSuggestionCallbackFactory']();for(const _0x36a595 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3496ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36a595,'accept',_0x5cb32e);for(const _0x3ecbe1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3496ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ecbe1,'accept',_0x5cb32e);_0x3496ab['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x114bf4=>{_0x489d83['model']['change'](_0x5d1080=>{const _0x24bb76=Array['from'](_0x34de13['getRanges']())['map'](_0xcd8971=>_0x128be7['fromRange'](_0xcd8971));_0x5d1080['setSelection'](_0x114bf4),_0x489d83['commands']['get']('mergeTableCells')['refresh'](),_0x489d83['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3ce80f=_0x24bb76['filter'](_0x3eb7a3=>'$graveyard'!=_0x3eb7a3['root']['rootName']);_0x3ce80f['length']>0x0&&_0x5d1080['setSelection'](_0x3ce80f);for(const _0x29df14 of _0x24bb76)_0x29df14['detach']();});});for(const _0xd74a67 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2fc58b=_0x489d83['commands']['get'](_0xd74a67);_0x2fc58b['on']('set:isEnabled',(_0x26e5e8,_0x4d6030,_0x1b1972)=>{if(_0x1b1972){const _0x437d66=_0x489d83['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3ac9db=>_0x3ac9db['is']('element','tableCell'));this['_areMergableCells'](_0x2fc58b['value'],_0x437d66)||(_0x26e5e8['return']=!0x1,_0x26e5e8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4bdbb8=this['editor']['commands']['get']('mergeTableCells'),_0x33c449=this['editor']['plugins']['get']('TableUtils');if(!_0x4bdbb8['isEnabled'])return!0x1;const _0x123c92=_0x33c449['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x81e83c of _0x123c92)for(const _0x3dd1e0 of _0x123c92)if(_0x81e83c!=_0x3dd1e0&&!this['_areMergableCells'](_0x81e83c,_0x3dd1e0))return!0x1;return!0x0;}['_areMergableCells'](_0x5e2965,_0x53ba6e){const _0x44277a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x14275e=this['editor']['model']['createRangeOn'](_0x5e2965),_0x193bdc=this['editor']['model']['createRangeOn'](_0x53ba6e),_0x5a0efb=new Set(),_0x3b18e7=new Set();for(const _0x6d3a9a of _0x44277a['getSuggestions']())if(('insertion'==_0x6d3a9a['type']||'deletion'==_0x6d3a9a['type']||'mergeTableCells'==_0x6d3a9a['subType'])&&_0x6d3a9a['isInContent']){for(const _0x3289bf of _0x6d3a9a['getRanges']())_0x3289bf['containsRange'](_0x14275e,!0x0)&&_0x5a0efb['add'](_0x6d3a9a['type']+':'+_0x6d3a9a['author']['id']),_0x3289bf['containsRange'](_0x193bdc,!0x0)&&_0x3b18e7['add'](_0x6d3a9a['type']+':'+_0x6d3a9a['author']['id']);}if(_0x5a0efb['size']!=_0x3b18e7['size'])return!0x1;for(const _0x3b829d of _0x5a0efb)if(!_0x3b18e7['has'](_0x3b829d))return!0x1;return!0x0;}}class Dt extends _0x2ee8de{static get['requires'](){return[Ct];}['afterInit'](){const _0x4d7832=this['editor'];if(!_0x4d7832['plugins']['has']('TableEditing'))return;const _0x4eaf45=_0x4d7832['locale'],_0xbdf40d=_0x4d7832['plugins']['get']('TrackChangesEditing');_0xbdf40d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xbdf40d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xbdf40d['registerBlockAttribute']('headingRows'),_0xbdf40d['registerBlockAttribute']('headingColumns'),_0xbdf40d['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4eaf45,'FORMAT_HEADER_ROW')),_0xbdf40d['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4eaf45,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30d537=this['editor']['plugins']['get']('TrackChangesEditing'),_0x94dfca=this['editor']['plugins']['get']('TableUtils'),_0x421b70=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x129ea1({showActiveMarker:_0x186766=!0x0,setDataAttribute:_0x2b1179=!0x0}={}){return(_0x2b13ed,_0x19bfd4,_0x57d4be)=>{const {type:_0x4697be,id:_0x5e2d15}=_0x30d537['_splitMarkerName'](_0x19bfd4['markerName']),_0x580c4=_0x30d537['getSuggestion'](_0x5e2d15),_0x33fc9f=_0x580c4['data'];if('formatBlock'!=_0x580c4['type']||!_0x33fc9f||'setTableColumnHeader'!=_0x33fc9f['commandName'])return;if(_0x19bfd4['item'])return void _0x2b13ed['stop']();if(!_0x57d4be['consumable']['consume'](_0x19bfd4['markerRange'],_0x2b13ed['name']))return;const _0x303aa5=_0x19bfd4['markerRange']['start']['nodeAfter'],_0x422db9=_0x19bfd4['markerRange']['end']['nodeBefore'],_0xe060f1=_0x303aa5['parent']['parent'],{column:_0x14e83a}=_0x94dfca['getCellLocation'](_0x303aa5),{column:_0x28f7d8}=_0x94dfca['getCellLocation'](_0x422db9);for(let _0x2a29f4=_0x14e83a;_0x2a29f4<=_0x28f7d8;_0x2a29f4++){const _0x1de80e=_0x94dfca['createTableWalker'](_0xe060f1,{'column':_0x2a29f4,'includeAllSlots':!0x1});for(const _0x42a0a1 of _0x1de80e){const _0x1668ca=_0x42a0a1['cell'],_0x29b0e1=_0x57d4be['mapper']['toViewElement'](_0x1668ca);_0x57d4be['writer']['addClass']('ck-suggestion-marker-'+_0x4697be,_0x29b0e1),_0x2b1179&&_0x57d4be['writer']['setAttribute']('data-suggestion',_0x5e2d15,_0x29b0e1),_0x57d4be['mapper']['bindElementToMarker'](_0x29b0e1,_0x19bfd4['markerName']),_0x186766&&(_0x30d537['activeMarkers']['includes'](_0x19bfd4['markerName'])?_0x57d4be['writer']['addClass']('ck-suggestion-marker--active',_0x29b0e1):_0x57d4be['writer']['removeClass']('ck-suggestion-marker--active',_0x29b0e1));}}};}_0x30d537['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x421b70),_0x30d537['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x421b70),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x129ea1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x493213,_0x4e2de1,_0x4e51a6)=>{_0x4e51a6['options']['showSuggestionHighlights']&&_0x129ea1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x493213,_0x4e2de1,_0x4e51a6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xb6d9d3,_0x56a6f7,_0x4e54f6)=>{const {type:_0x587cb0,id:_0x13aa6a}=_0x30d537['_splitMarkerName'](_0x56a6f7['markerName']),_0x4aa4fc=_0x30d537['getSuggestion'](_0x13aa6a),_0x1f786d=_0x4aa4fc['data'];if('formatBlock'!=_0x4aa4fc['type']||!_0x1f786d||'setTableColumnHeader'!=_0x1f786d['commandName'])return;const _0x1d7557=_0x4e54f6['mapper']['markerNameToElements'](_0x56a6f7['markerName']);if(_0x1d7557){for(const _0x139f43 of _0x1d7557)_0x4e54f6['writer']['removeClass']('ck-suggestion-marker-'+_0x587cb0,_0x139f43),_0x4e54f6['writer']['removeClass']('ck-suggestion-marker--active',_0x139f43),_0x4e54f6['writer']['removeAttribute']('data-suggestion',_0x139f43),_0x4e54f6['mapper']['unbindElementFromMarkerName'](_0x139f43,_0x56a6f7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2155fb=this['editor'],_0xa77f84=_0x2155fb['locale'];function _0xb7e7b(_0x400700){return{'type':'format','content':c(_0xa77f84,'*Format:*\x20%0',_0x400700)};}_0x2155fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27c97d=>{if('formatBlock'!=_0x27c97d['type'])return;const {data:_0xc0d0a4}=_0x27c97d;if(_0xc0d0a4){if('setTableRowHeader'==_0xc0d0a4['commandName']){const _0x561a38=_0xc0d0a4['commandParams'][0x0]['forceValue'];return _0xb7e7b(c(_0xa77f84,_0x561a38?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xc0d0a4['commandName']){const _0x3993e0=_0xc0d0a4['commandParams'][0x0]['forceValue'];return _0xb7e7b(c(_0xa77f84,_0x3993e0?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x2ee8de{['afterInit'](){const _0x27991f=this['editor'],_0x2eff7b=_0x27991f['locale'],_0x14d83d=_0x27991f['plugins']['get']('TrackChangesEditing');function _0x161414(_0x120ff1){return{'type':'format','content':''+c(_0x2eff7b,'*Set\x20table\x20type:*\x20%0',_0x120ff1)};}_0x27991f['plugins']['has']('TableLayout')&&(_0x14d83d['enableCommand']('insertTableLayout'),_0x14d83d['enableDefaultAttributesIntegration']('tableType'),_0x14d83d['registerBlockAttribute']('tableType'),_0x14d83d['descriptionFactory']['registerElementLabel'](_0x1752f3=>_0x1752f3['is']('element','table')&&'layout'===_0x1752f3['getAttribute']('tableType'),_0x4b4175=>c(_0x2eff7b,'ELEMENT_LAYOUT_TABLE',_0x4b4175)),_0x14d83d['descriptionFactory']['registerDescriptionCallback'](_0x346d01=>{const {data:_0x2914d8}=_0x346d01;if(_0x2914d8&&'tableType'==_0x2914d8['key'])switch(_0x2914d8['newValue']){case'layout':return _0x161414(c(_0x2eff7b,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x161414(c(_0x2eff7b,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x3a201f=>[_0x3a201f,null]));class $t extends _0x2ee8de{static get['requires'](){return[Ct];}['afterInit'](){const _0x3bcde9=this['editor'];if(!_0x3bcde9['plugins']['has']('TableClipboard'))return;const _0x3f5dc9=_0x3bcde9['plugins']['get']('TrackChangesEditing'),_0x440409=_0x3bcde9['plugins']['get']('TableUtils'),_0x1ec80f=_0x3bcde9['plugins']['get'](Ct),_0x1e2556=_0x3bcde9['plugins']['get']('TableClipboard'),_0xa38c=_0x3bcde9['plugins']['get']('TableSelection'),_0x3bb958=_0x3bcde9['plugins']['get'](_0xaaa947);_0x1ec80f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3bcde9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3bcde9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1d3e88=null,_0x26cc6a=!0x1;_0x3bb958['on']('contentInsertion',(_0xadfa32,_0x5612dd)=>{_0x26cc6a='paste'===_0x5612dd['method'];}),_0x3bcde9['model']['on']('insertContent',(_0x4bdb55,_0x5ad2a5)=>{if(!_0x26cc6a&&null===_0xa38c['getSelectedTableCells']())return;const [_0x3cdb5b,_0x4ea589]=_0x5ad2a5,_0x149f5d=_0x5ad2a5[_0x5ad2a5['length']-0x1];_0x149f5d&&_0x149f5d['forceDefaultExecution']||_0x3f5dc9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x54f63c,_0x4fe4e2,_0x530ab2,_0x13ef64,_0x448710){if(_0x4fe4e2&&!_0x4fe4e2['is']('documentSelection'))return!0x1;const _0x479762=_0x448710['getTableIfOnlyTableInContent'](_0x54f63c,_0x530ab2);if(!_0x479762||!He(_0x479762,void 0x0,_0x13ef64))return!0x1;const _0x380d38=_0x13ef64['getSelectionAffectedTableCells'](_0x530ab2['document']['selection']);if(!_0x380d38['length'])return!0x1;const _0x20dc0f=_0x380d38[0x0]['findAncestor']('table'),_0x456e27=_0x13ef64['getRowIndexes'](_0x380d38),_0x177e27=_0x13ef64['getColumnIndexes'](_0x380d38),_0x1007b8={'startRow':_0x456e27['first'],'endRow':_0x456e27['last'],'startColumn':_0x177e27['first'],'endColumn':_0x177e27['last']};return 0x1==_0x380d38['length']&&(_0x1007b8['endRow']+=_0x13ef64['getRows'](_0x479762)-0x1,_0x1007b8['endColumn']+=_0x13ef64['getColumns'](_0x479762)-0x1),He(_0x20dc0f,_0x1007b8,_0x13ef64);}(_0x3cdb5b,_0x4ea589,_0x3bcde9['model'],_0x440409,_0x1e2556)&&(_0x4bdb55['stop'](),_0x1d3e88={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3bcde9['model']['change'](()=>{_0x3bcde9['model']['insertContent'](_0x5ad2a5[0x0],_0x5ad2a5[0x1],_0x5ad2a5[0x2],{'forceDefaultExecution':!0x0});const _0x1a2c7c=_0x3c2271(),{rowInsertionRanges:_0x532993,columnInsertionRanges:_0x46be25,insertionRanges:_0x4456fc,deletionRanges:_0x3b776d,cells:_0x50b84a}=_0x1d3e88;_0x532993['length']&&_0x3f5dc9['markMultiRangeInsertion'](_0x532993,'tablePasteRow',{'tablePasteChainId':_0x1a2c7c}),_0x46be25['length']&&_0x3f5dc9['markMultiRangeInsertion'](_0x46be25,'tablePasteColumn',{'tablePasteChainId':_0x1a2c7c}),_0x4456fc['length']&&(_0x3f5dc9['markMultiRangeInsertion'](_0x4456fc,'tablePaste',{'tablePasteChainId':_0x1a2c7c,'skipNestingCheck':!0x0}),_0x4456fc['forEach'](_0x19a1a9=>_0x19a1a9['detach']?.())),_0x3b776d['length']&&(_0x3f5dc9['markMultiRangeDeletion'](_0x3b776d,'tablePaste',{'tablePasteChainId':_0x1a2c7c,'skipNestingCheck':!0x0}),_0x3b776d['forEach'](_0x449d69=>_0x449d69['detach']?.()));const _0x19b6be=_0x3f5dc9['markMultiRangeBlockFormat'](_0x50b84a['map'](({element:_0x4f9977})=>_0x4f9977),{'formatGroupId':_0x3c2271()},[],'tablePasteCell',{'tablePasteChainId':_0x1a2c7c});if(_0x19b6be){const _0x3bba27=_0x19b6be['getMarkers'](),_0x8dc0f4=[];for(const {element:_0x607b1c,attributes:_0xf16e24}of _0x50b84a){if(!_0xf16e24)continue;const _0x23ed2f=_0x3bcde9['model']['createRangeOn'](_0x607b1c),_0x103eeb=_0x3bba27['find'](_0x23e591=>_0x23e591['getRange']()['isEqual'](_0x23ed2f));_0x103eeb&&_0x8dc0f4['push']([_0x103eeb['name'],_0xf16e24]);}_0x8dc0f4['length']&&_0x19b6be['setAttribute']('markerAttributes',Object['fromEntries'](_0x8dc0f4));}_0x1d3e88=null;}));},{'priority':_0x55292e['high']+0xa}),_0x3bb958['on']('contentInsertion',()=>{_0x26cc6a=!0x1;},{'priority':'lowest'}),_0x3bcde9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2ee180,_0x17b450)=>{const [_0x214cf0,_0x15b2b9,,_0x56e846]=_0x17b450;if(!_0x1d3e88)return;_0x2ee180['stop']();const _0x562ef2=_0x214cf0['cell'],_0x5dc4f6=_0x15b2b9,_0x149595=De(_0x562ef2),_0xa98f56=De(_0x5dc4f6);_0x2ee180['return']=_0x562ef2;let _0x45bc78=null,_0x29414e=null;if(_0xa98f56||_0x149595){if(_0x149595&&!_0xa98f56){_0x56e846['remove'](_0x562ef2['getChild'](0x0));for(const _0x443773 of Array['from'](_0x5dc4f6['getChildren']()))_0x56e846['insert'](_0x443773,_0x562ef2,'end');const _0x3362a4=_0x1d3e88['rowInsertionIndexes']['includes'](_0x214cf0['row']),_0x9cf93d=_0x1d3e88['columnInsertionIndexes']['includes'](_0x214cf0['column']);_0x3362a4||_0x9cf93d||(_0x45bc78=_0x128be7['fromRange'](_0x56e846['createRangeIn'](_0x562ef2)));}else _0xa98f56&&!_0x149595&&(_0x29414e=_0x56e846['createRangeIn'](_0x562ef2));}else{const _0x34d9a8=_0x56e846['createElement']('tableCellSuggestion'),_0x970e5d=_0x56e846['createElement']('tableCellSuggestion');_0x56e846['wrap'](_0x56e846['createRangeIn'](_0x562ef2),_0x970e5d),_0x56e846['insert'](_0x34d9a8,_0x562ef2,0x0);for(const _0x347a2a of Array['from'](_0x5dc4f6['getChildren']()))_0x56e846['insert'](_0x347a2a,_0x34d9a8,'end');_0x45bc78=_0x128be7['fromRange'](_0x56e846['createRangeOn'](_0x34d9a8)),_0x29414e=_0x128be7['fromRange'](_0x56e846['createRangeOn'](_0x970e5d));}const _0x26cca6=Array['from'](_0x5dc4f6['getAttributes']())['filter'](([_0x1e9d00])=>Oe['includes'](_0x1e9d00));_0x1d3e88['cells']['push']({'element':_0x562ef2,'attributes':_0x26cca6['length']?Object['fromEntries'](_0x26cca6):null}),_0x45bc78&&_0x1d3e88['insertionRanges']['push'](_0x45bc78),_0x29414e&&_0x1d3e88['deletionRanges']['push'](_0x29414e);},{'priority':'high'}),_0x440409['on']('insertColumns',(_0x4412ef,_0x3220fb)=>{const [_0x32b284,_0x28cd16={}]=_0x3220fb;if(!_0x1d3e88)return;const _0x47ac04=_0x28cd16['at']||0x0,_0x80df54=_0x28cd16['columns']||0x1;_0x1d3e88['columnInsertionIndexes']=new Array(_0x80df54)['fill'](_0x47ac04)['map']((_0x51b5b5,_0x107b0d)=>_0x51b5b5+_0x107b0d);for(const {cell:_0x1c3f8d}of _0x440409['createTableWalker'](_0x32b284,{'startColumn':_0x47ac04,'endColumn':_0x47ac04+_0x80df54-0x1}))_0x1d3e88['columnInsertionRanges']['push'](_0x3bcde9['model']['createRangeOn'](_0x1c3f8d));},{'priority':'low'}),_0x440409['on']('insertRows',(_0x47eb52,_0x458c17)=>{const [_0x29d37c,_0x2628d8={}]=_0x458c17;if(!_0x1d3e88)return;const _0xb07e8d=_0x2628d8['at']||0x0,_0xe8dfb9=_0x2628d8['rows']||0x1;_0x1d3e88['rowInsertionIndexes']=new Array(_0xe8dfb9)['fill'](_0xb07e8d)['map']((_0x2de016,_0x80a7bb)=>_0x2de016+_0x80a7bb);for(const {cell:_0xe839b5}of _0x440409['createTableWalker'](_0x29d37c,{'startRow':_0xb07e8d,'endRow':_0xb07e8d+_0xe8dfb9-0x1}))_0x1d3e88['rowInsertionRanges']['push'](_0x3bcde9['model']['createRangeOn'](_0xe839b5));},{'priority':'low'}),_0x3f5dc9['descriptionFactory']['registerDescriptionCallback'](_0x504a16=>{if(_0x504a16['subType']&&_0x504a16['subType']['startsWith']('tablePaste'))return _0x504a16['previous']?{}:{'type':'insertion','content':c(_0x3bcde9['locale'],'*Replace\x20table\x20cells*')};});const _0xf426b3=()=>!0x1;for(const _0x562cb0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f5dc9['_suggestionFactory']['registerCustomCallback']('insertion',_0x562cb0,'join',_0xf426b3),_0x3f5dc9['_suggestionFactory']['registerCustomCallback']('deletion',_0x562cb0,'join',_0xf426b3),_0x3f5dc9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x562cb0,'join',_0xf426b3);_0x3f5dc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xf426b3),_0x3f5dc9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3f7a33,_0x370108,_0x11770b)=>{const _0xc12256=_0x3f7a33['map'](_0x180286=>_0x180286['getContainedElement']())['filter'](_0x380c20=>_0x380c20),_0x3e4d92=new Map(_0xc12256['map'](_0x1f209d=>[_0x1f209d,null]));if(_0x1d3e88){for(const {element:_0x581112,attributes:_0x5d74aa}of _0x1d3e88['cells'])_0x5d74aa&&_0x3e4d92['set'](_0x581112,_0x5d74aa);}else{if(_0x11770b&&_0x11770b['markerAttributes'])for(const [_0x26bd8b,_0x66dab4]of Object['entries'](_0x11770b['markerAttributes'])){const _0x245834=_0x3bcde9['model']['markers']['get'](_0x26bd8b),_0x169d1a=_0x245834?_0x245834['getRange']()['getContainedElement']():null;_0x169d1a&&_0x3e4d92['set'](_0x169d1a,_0x66dab4);}}_0x3bcde9['model']['change'](_0x2b6c51=>{for(const [_0x5bac25,_0x441d06]of _0x3e4d92)_0x2b6c51['setAttributes']({...Ue,..._0x441d06},_0x5bac25);});});const _0x445013=(_0x562d2c,_0x38abae)=>{_0x3f5dc9['_suggestionFactory']['registerCustomCallback'](_0x562d2c,'tablePaste',_0x38abae,(_0x49439a,_0x45cafb,_0x1b7140)=>{_0x3bcde9['model']['change'](_0x67efa8=>{const _0x56cfac=[];for(const _0xedebed of _0x49439a){const _0x10f83f=_0xedebed['start']['nodeAfter'];_0x10f83f['is']('element','tableCellSuggestion')&&_0x56cfac['push'](_0x10f83f);}_0x3f5dc9['_suggestionFactory']['getSuggestionCallback'](_0x562d2c,null,_0x38abae)(_0x49439a,_0x45cafb,_0x1b7140);for(const _0x61003c of _0x56cfac)'$graveyard'!=_0x61003c['root']['rootName']&&_0x67efa8['unwrap'](_0x61003c);});});};_0x445013('insertion','accept'),_0x445013('insertion','discard'),_0x445013('deletion','accept'),_0x445013('deletion','discard'),_0x3f5dc9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x505aee=>{const _0x48c180=_0x505aee['map'](_0x41b2e7=>_0x41b2e7['getContainedElement']()),_0xb63d35=_0x48c180[0x0]['findAncestor']('table'),{minRow:_0x805069,maxRow:_0x58ed03}=_0x1ec80f['_getCoordsForCells'](_0x48c180);_0x440409['removeRows'](_0xb63d35,{'at':_0x805069,'rows':_0x58ed03-_0x805069+0x1});}),_0x3f5dc9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4e80a6=>{const _0x3eff7d=_0x4e80a6['map'](_0x11b722=>_0x11b722['getContainedElement']()),_0x4cebdd=_0x3eff7d[0x0]['findAncestor']('table'),{minColumn:_0x1771f1,maxColumn:_0x2f90bb}=_0x1ec80f['_getCoordsForCells'](_0x3eff7d);_0x440409['removeColumns'](_0x4cebdd,{'at':_0x1771f1,'columns':_0x2f90bb-_0x1771f1+0x1});});const _0x53f7b4=(_0x3ce8a2,_0x4bfa69)=>{if(!_0x4bfa69['subType']||!_0x4bfa69['subType']['startsWith']('tablePaste'))return;const _0x22a047=_0x4bfa69['attributes']['tablePasteChainId'],_0x5e6493=_0x3f5dc9['getSuggestions']()['filter'](_0xe40fa3=>_0xe40fa3['isInContent']&&_0xe40fa3['attributes']&&_0xe40fa3['attributes']['tablePasteChainId']==_0x22a047);_0x5e6493['length']&&_0x4bfa69['getAllAdjacentSuggestions']()['length']!=_0x5e6493['length']&&_0x5e6493['reduce']((_0x3388dd,_0x3ef49e)=>(_0x3388dd['next']=_0x3ef49e,_0x3ef49e['previous']=_0x3388dd,_0x3ef49e));};function _0x2302c1(_0x3c1bf6,_0x212603=!0x0){const {id:_0x26e43a,authorId:_0x46f8c8}=_0x3f5dc9['_splitMarkerName'](_0x3c1bf6['markerName']),_0x324fce=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2cb400=_0x3f5dc9['activeMarkers']['includes'](_0x3c1bf6['markerName']);return _0x2cb400&&_0x324fce['push']('ck-suggestion-marker--active'),{'classes':_0x324fce,'attributes':{'data-suggestion':_0x26e43a,'data-author-id':_0x46f8c8},'priority':_0x2cb400&&_0x212603?0xbc2:0xbb8};}_0x3f5dc9['on']('suggestionLoaded',_0x53f7b4,{'priority':'high'}),_0x3f5dc9['on']('suggestionUnloaded',_0x53f7b4,{'priority':'high'}),_0x3bcde9['model']['document']['registerPostFixer'](()=>{let _0x34a8af=!0x1;const _0x91d930=Array['from'](_0x3bcde9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x298c2b,data:_0x5bd95d}of _0x91d930){const {group:_0x518f5e,type:_0x499b4c,id:_0x2ecb5f}=_0x3f5dc9['_splitMarkerName'](_0x298c2b);if('suggestion'!=_0x518f5e||'deletion'!=_0x499b4c||_0x5bd95d['oldRange'])continue;if(!_0x3f5dc9['hasSuggestion'](_0x2ecb5f))continue;const _0x29ba76=_0x3f5dc9['getSuggestion'](_0x2ecb5f)['getRanges'](),_0x50979e=_0x3bcde9['plugins']['get']('Users')['me'];for(const _0x9748f0 of _0x3f5dc9['getSuggestions']()){if(!_0x9748f0['isInContent']||_0x9748f0['author']!=_0x50979e)continue;if('formatBlock'!=_0x9748f0['type']||'tablePasteCell'!=_0x9748f0['subType'])continue;if(_0x9748f0['getRanges']()['every'](_0x1cbeb7=>_0x29ba76['some'](_0x5c9db5=>_0x5c9db5['containsRange'](_0x1cbeb7,!0x0)))){for(const _0x33006d of _0x9748f0['getAllAdjacentSuggestions']())_0x33006d['isInContent']&&(_0x33006d['discard'](),_0x34a8af=!0x0);}}}return _0x34a8af;}),_0x3bcde9['model']['document']['registerPostFixer'](_0x46c73f=>{const _0x53f329=_0x3bcde9['commands']['get']('redo');if(!_0x53f329||!_0x53f329['_createdBatches']['has'](_0x46c73f['batch']))return!0x1;let _0x5929ab=!0x1;const _0x4da7ea=_0x3bcde9['plugins']['get']('Users')['me'],_0x168e5d=_0x3bcde9['model']['document']['differ']['getChanges'](),_0x5d61cd=Array['from'](_0x3bcde9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x73a87d,data:_0x207540})=>{const {group:_0x196e77,subType:_0x1454ea,authorId:_0x541c66}=_0x3f5dc9['_splitMarkerName'](_0x73a87d);return'suggestion'==_0x196e77&&'tablePaste'==_0x1454ea&&_0x541c66==_0x4da7ea['id']&&!_0x207540['oldRange'];});for(const _0x1e5c8e of _0x168e5d){if('insert'!=_0x1e5c8e['type']||'tableCellSuggestion'!=_0x1e5c8e['name']||0x1!=_0x1e5c8e['length'])continue;const _0x10f799=_0x46c73f['createRange'](_0x1e5c8e['position'],_0x1e5c8e['position']['getShiftedBy'](0x1));if(!_0x5d61cd['find'](({data:_0x4178fb})=>_0x4178fb['newRange']['isEqual'](_0x10f799))){for(const {name:_0x1bbc77,data:_0x2df697}of _0x5d61cd)if(_0x10f799['containsRange'](_0x2df697['newRange'])){_0x46c73f['updateMarker'](_0x1bbc77,{'range':_0x10f799}),_0x5929ab=!0x0;break;}}}return _0x5929ab;}),_0x3bcde9['model']['document']['registerPostFixer'](_0x315bc7=>{let _0x5eeb2d=!0x1;const _0x6fd420=_0x3bcde9['plugins']['get']('Users')['me'],_0x4432ff=_0x3f5dc9['getSuggestions']()['filter'](_0x1480df=>_0x1480df['isInContent']&&_0x1480df['author']==_0x6fd420),_0x11fbbe=new Set(),_0x19be60=new Set();for(const _0x106a67 of _0x4432ff)if('tablePaste'==_0x106a67['subType'])for(const _0x24aa96 of _0x106a67['getMarkers']()){const _0x124e62=_0x24aa96['getRange']()['getContainedElement']();if(_0x124e62){if(_0x124e62['is']('element','tableCellSuggestion')&&De(_0x124e62)){_0x106a67['removeMarker'](_0x24aa96['name']),_0x11fbbe['add'](_0x124e62),_0x5eeb2d=!0x0;const _0x7cb40c=_0x124e62['nextSibling'],_0x40f695=_0x124e62['previousSibling'],_0x45fd99=_0x7cb40c&&_0x7cb40c['is']('element','tableCellSuggestion'),_0x5346f6=_0x40f695&&_0x40f695['is']('element','tableCellSuggestion');_0x45fd99&&!_0x11fbbe['has'](_0x7cb40c)&&_0x19be60['add'](_0x7cb40c),_0x5346f6&&!_0x11fbbe['has'](_0x40f695)&&_0x19be60['add'](_0x40f695);}else _0x124e62['is']('element','paragraph')&&_0x124e62['isEmpty']&&(_0x106a67['removeMarker'](_0x24aa96['name']),_0x5eeb2d=!0x0);}}else{if('tablePasteCell'==_0x106a67['subType']){if(!_0x106a67['attributes']||!_0x106a67['attributes']['tablePasteChainId'])continue;const _0x19c587=_0x106a67['attributes']['markerAttributes'];if(_0x19c587&&Object['keys'](_0x19c587)['length'])continue;const _0x2b802=_0x106a67['attributes']['tablePasteChainId'];let _0x4e2c9c=!0x0,_0x57d216=!0x0;for(const _0x1b8537 of _0x4432ff)if(_0x1b8537['subType']&&_0x1b8537['subType']['startsWith']('tablePaste')){if(!_0x1b8537['attributes']['tablePasteChainId']){_0x57d216=!0x1;break;}if(_0x1b8537['id']!=_0x106a67['id']&&_0x1b8537['attributes']['tablePasteChainId']==_0x2b802){_0x4e2c9c=!0x1;break;}}_0x57d216&&_0x4e2c9c&&(_0x106a67['removeMarkers'](),_0x5eeb2d=!0x0);}}for(const _0x2d9034 of _0x11fbbe)_0x315bc7['remove'](_0x2d9034);for(const _0x4932e6 of _0x19be60)_0x315bc7['unwrap'](_0x4932e6);return _0x5eeb2d;}),_0x3bcde9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2c46cf=>_0x2302c1(_0x2c46cf),'converterPriority':'high'}),_0x3bcde9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x321746,_0x48ed4c)=>_0x48ed4c['options']['showSuggestionHighlights']?_0x2302c1(_0x321746,!0x1):null,'converterPriority':'high'});const _0x584165=_0x3bcde9['editing']['view'];this['listenTo'](_0x584165['document'],'clipboardOutput',(_0x4b4341,_0x580889)=>{const _0x41d34d=[];for(const _0xbc13f6 of _0x584165['createRangeIn'](_0x580889['content'])['getItems']())_0xbc13f6['is']('element','suggestion-td')&&_0x41d34d['push'](_0xbc13f6);_0x584165['change'](_0x4cac4e=>{for(const _0xf2a194 of _0x41d34d)_0x4cac4e['move'](_0x4cac4e['createRangeIn'](_0xf2a194),_0x4cac4e['createPositionBefore'](_0xf2a194)),_0x4cac4e['remove'](_0xf2a194);});});}}function De(_0x1c0962){if(_0x1c0962['isEmpty'])return!0x0;const _0x7b4494=_0x1c0962['getChild'](0x0);return _0x7b4494['is']('element','paragraph')&&_0x7b4494['isEmpty'];}function He(_0x37361b,_0x2a63c9={},_0x3a5eff){for(const {isAnchor:_0xbec5af,cellHeight:_0x21290c,cellWidth:_0x526a4f}of _0x3a5eff['createTableWalker'](_0x37361b,{'includeAllSlots':!0x0,..._0x2a63c9}))if(!_0xbec5af||0x1!=_0x21290c||0x1!=_0x526a4f)return!0x1;return!0x0;}class Bt extends _0x2ee8de{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3a2e2f=this['editor']['plugins']['get']('TrackChangesEditing');_0x3a2e2f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3a2e2f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3a2e2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a2e2f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3a2e2f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3a2e2f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3cc6ea,_0x59637a){const _0x145e4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e23df=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5891dd=_0x59637a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x245853=_0x5e23df['getColumnGroupElement'](_0x5891dd);let _0x29d336=_0x245853?_0x5e23df['getTableColumnsWidths'](_0x245853):null,_0x5dd23f=_0x5891dd['getAttribute']('tableWidth')||null;const _0x21c788=_0x59637a['tableWidth']||_0x5dd23f,_0x1cecdb=_0x59637a['columnWidths']||_0x29d336,_0x4bf953=this['editor']['plugins']['get']('Users')['me'];for(const _0xcee741 of _0x145e4a['getSuggestions']()){const _0x2f50a1=_0xcee741['getContainedElement']();if('resizeTable'===_0xcee741['subType']&&_0x2f50a1===_0x5891dd){_0xcee741['author']!==_0x4bf953&&_0xcee741['discard']();const _0x1b117f=_0xcee741['data']['commandParams'];_0x5dd23f=_0x1b117f[0x0]['tableWidth'],_0x29d336=_0x1b117f[0x0]['columnWidths'];break;}}_0x3cc6ea({'table':_0x5891dd,'tableWidth':_0x21c788,'columnWidths':_0x1cecdb}),_0x145e4a['markBlockFormat'](_0x5891dd,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5dd23f,'columnWidths':_0x29d336}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x92f42c){if('formatBlock'!=_0x92f42c['type']&&'formatInline'!=_0x92f42c['type'])return;const {data:_0x140da5}=_0x92f42c;if(_0x140da5&&'resizeTable'===_0x140da5['formatGroupId']){const _0x4a6411='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x4a6411)};}}}class xt extends _0x2ee8de{['afterInit'](){const _0xad86ce=this['editor'];_0xad86ce['plugins']['has']('Template')&&_0xad86ce['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x2ee8de{['afterInit'](){const _0x53d141=this['editor'];if(!_0x53d141['commands']['get']('insertTableOfContents'))return;_0x53d141['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x341b96=_0x53d141['plugins']['get']('TrackChangesEditing'),_0x2444c1=_0x53d141['locale'];_0x341b96['descriptionFactory']['registerElementLabel']('tableOfContents',_0x592622=>c(_0x2444c1,'ELEMENT_TABLE_OF_CONTENTS',_0x592622));}}class Rt extends _0x2ee8de{['afterInit'](){const _0x84bf00=this['editor'];if(!_0x84bf00['plugins']['has']('Title'))return;const _0x2f5a78=_0x84bf00['plugins']['get']('TrackChangesEditing');_0x2f5a78['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x84bf00['locale'],'ELEMENT_TITLE')),_0x84bf00['model']['document']['registerPostFixer'](_0x29663a=>{let _0x398611=!0x1;const _0x24d688=Array['from'](_0x84bf00['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xf6c1ac,data:_0xa841e2}of _0x24d688){const {group:_0xad497d}=_0x2f5a78['_splitMarkerName'](_0xf6c1ac);if('suggestion'!==_0xad497d||!_0xa841e2['newRange'])continue;const _0x32b76a=_0xa841e2['newRange'],_0x22585e=_0x32b76a['end']['nodeBefore'];if(!_0x22585e||!_0x22585e['is']('element','title-content'))continue;if(!_0x32b76a['start']['isTouching'](_0x32b76a['end']))continue;const _0x14f077=_0x84bf00['model']['schema']['getNearestSelectionRange'](_0x32b76a['end'],'forward');if(_0x14f077&&_0x14f077['isCollapsed']){const _0x357dc8=_0x29663a['createRange'](_0x32b76a['start'],_0x14f077['start']);_0x357dc8['isEqual'](_0x32b76a)||(_0x29663a['updateMarker'](_0xf6c1ac,{'range':_0x357dc8}),_0x398611=!0x0);}_0x398611||(_0x29663a['removeMarker'](_0xf6c1ac),_0x398611=!0x0);}return _0x398611;});}}class Tt extends _0x2ee8de{['afterInit'](){const _0x17e7c9=this['editor'],_0x386796=_0x17e7c9['plugins']['get']('TrackChangesEditing');_0x17e7c9['plugins']['has']('Uploadcare')&&(_0x386796['enableCommand']('uploadcare'),_0x17e7c9['plugins']['has']('UploadcareImageEdit')&&(_0x386796['enableCommand']('uploadcareImageEdit'),_0x386796['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x386796['registerBlockAttribute']('uploadcareImageId'),_0x386796['descriptionFactory']['registerDescriptionCallback'](_0x2eda0c=>{if('attribute'!=_0x2eda0c['type'])return;const {data:_0x1df5d3}=_0x2eda0c;return _0x1df5d3&&'uploadcareImageId'==_0x1df5d3['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2ee8de{['afterInit'](){const _0x48bec2=this['editor'],_0x8cfc48=_0x48bec2['plugins']['get']('TrackChangesEditing');_0x48bec2['plugins']['has']('UndoEditing')&&(_0x8cfc48['enableCommand']('undo'),_0x8cfc48['enableCommand']('redo'));}}class Ut extends _0x2ee8de{static get['requires'](){return[Ct];}['afterInit'](){const _0x5eb37e=this['editor'];if(!_0x5eb37e['plugins']['has']('TableCaptionEditing'))return;_0x5eb37e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2ee8de{['tableProperties'];['tableCellProperties'];constructor(_0x26fb69){super(_0x26fb69),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 _0x2cff21=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x15c565 of this['tableProperties'])_0x2cff21['enableCommand'](_0x15c565,(_0x556a0c,_0x566381)=>{const _0x46fa19=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x15c565,[_0x46fa19],this['tableProperties'],'tableProperties',_0x556a0c,_0x566381);});_0x2cff21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2cff21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cff21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x28049f,_0x2c3e0a)=>this['handleDiscardAction'](this['tableProperties'],_0x28049f,_0x2c3e0a)),_0x2cff21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5d7283 of this['tableCellProperties'])_0x2cff21['enableCommand'](_0x5d7283,(_0xe8770a,_0x924ef2)=>{const _0x17860e=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5d7283,_0x17860e,this['tableCellProperties'],'tableCellProperties',_0xe8770a,_0x924ef2);});_0x2cff21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2cff21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cff21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xd77fd3,_0x930358)=>this['handleDiscardAction'](this['tableCellProperties'],_0xd77fd3,_0x930358)),_0x2cff21['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2cff21['descriptionFactory']['registerDescriptionCallback'](_0x103bec=>this['handleSuggestionDescription'](_0x103bec));}['_handlePropertyChange'](_0x30b68f,_0x421884,_0x1537ac,_0x1d2e50,_0x501ad6,_0x31d2b0){const _0x599829=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x31d2b0['batch'],()=>{for(const _0x5b2545 of _0x421884){if(this['_getSuggestion'](_0x5b2545,_0x1d2e50))_0x501ad6(_0x31d2b0);else{const _0xdf93c={};for(const _0x1f6ecb of _0x1537ac){const _0x208a28=_0x5b2545['getAttribute'](_0x1f6ecb);void 0x0!==_0x208a28&&(_0xdf93c[_0x1f6ecb]=_0x208a28);}_0x501ad6(_0x31d2b0),_0x599829['markBlockFormat'](_0x5b2545,{'commandParams':[_0xdf93c]},[],_0x1d2e50);}}});}['handleDiscardAction'](_0x2b63e4,_0x529b57,_0xe26cd4){const _0x160473=_0x529b57[0x0]['start']['nodeAfter'],_0x323c5c=_0xe26cd4['commandParams'][0x0];this['editor']['model']['change'](_0x82c5ed=>{for(const _0x256352 of _0x2b63e4)void 0x0!==_0x323c5c[_0x256352]?_0x82c5ed['setAttribute'](_0x256352,_0x323c5c[_0x256352],_0x160473):_0x82c5ed['removeAttribute'](_0x256352,_0x160473);});}['handleSuggestionDescription'](_0x3d7195){if(_0x3d7195['data'])switch(_0x3d7195['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'](_0x2f3196,_0x406d7e){const _0x2d613d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x178fce of _0x2d613d['getSuggestions']({'skipNotAttached':!0x0})){const _0x5c3c9f=_0x178fce['getContainedElement']();if(_0x178fce['subType']===_0x406d7e&&_0x5c3c9f===_0x2f3196)return _0x178fce;}return null;}}const u='$elementName';class p extends _0x2ee8de{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0xfb1d28,_0x36d2b9,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x301807){super(_0x301807),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x45b19a,_0x4fbb98,_0x580bea,_0x4777ac)=>{this['_model']['change'](()=>{for(const _0x77828a of[..._0x4777ac,..._0x580bea])this['_model']['markers']['has'](_0x77828a)&&_0x301807['editing']['reconvertMarker'](_0x77828a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x301807['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(),_0x301807['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x301807['config']['get']('trackChanges.trackFormatChanges'),_0x301807['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x301807['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x301807,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x42cf17=this['editor'],_0x336e39=(_0x3a898f,_0x401163)=>{if('attribute'!=_0x3a898f)return'ck-suggestion-marker-'+_0x3a898f;const _0x10ec52=_0x401163['split']('|')[0x0];return this['_isBlockAttribute'](_0x10ec52)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x42cf17['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x29d037=>{const {id:_0x4cbf67,authorId:_0x33feb5,type:_0x546de0,subType:_0x314e6e}=this['_splitMarkerName'](_0x29d037['markerName']),_0x57f73a=['ck-suggestion-marker',_0x336e39(_0x546de0,_0x314e6e)];let _0x1a8bf8=0xbb8;return this['activeMarkers']['includes'](_0x29d037['markerName'])&&(_0x57f73a['push']('ck-suggestion-marker--active'),_0x1a8bf8=0xbc2),'deletion'==_0x546de0&&(_0x1a8bf8+=0x5),{'classes':_0x57f73a,'attributes':{'data-suggestion':_0x4cbf67,'data-author-id':_0x33feb5},'priority':_0x1a8bf8};}}),_0x42cf17['conversion']['for']('dataDowncast')['add'](_0x5e8860=>{_0x5e8860['on']('addMarker:suggestion',(_0xdcd174,_0x15f3cc,_0x5dd7b1)=>{if(!_0x5dd7b1['options']['showSuggestionHighlights'])return;const _0x422ce4=_0x15f3cc['item'];if(!_0x422ce4)return;const _0x4225ea=_0x5dd7b1['mapper']['toViewElement'](_0x422ce4);_0x42cf17['model']['schema']['isObject'](_0x422ce4)&&_0x4225ea&&!_0x4225ea['getCustomProperty']('widget')&&_0x4225ea['is']('containerElement')&&_0x5ea56b(_0x4225ea,_0x5dd7b1['writer']);},{'priority':'high'});}),_0x42cf17['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xe01c60,_0x284533)=>{if(!_0x284533['options']['showSuggestionHighlights'])return null;const {id:_0x517ec1,authorId:_0xba225b,type:_0x30cc1f,subType:_0x1183ea}=this['_splitMarkerName'](_0xe01c60['markerName']);return{'classes':['ck-suggestion-marker',_0x336e39(_0x30cc1f,_0x1183ea)],'priority':0xbb8,'attributes':{'data-suggestion':_0x517ec1,'data-author-id':_0xba225b}};}});const _0x26dbb8=({showActiveMarkers:_0x71c77e=!0x0,isAttributeSuggestion:_0x17911f=!0x1}={})=>(_0x392ac8,_0x5a6003,_0x512a2d)=>{if(!_0x5a6003['item'])return;const {id:_0x28cfb9,authorId:_0x101df9}=this['_splitMarkerName'](_0x5a6003['markerName']);if(_0x17911f){const _0x3c1aea=this['_suggestions']['get'](_0x28cfb9),_0x808e2d=this['_getAttributeKey'](_0x3c1aea);if(!this['_isBlockAttribute'](_0x808e2d))return;}if(_0x5a6003['item']['is']('selection'))return void _0x512a2d['consumable']['consume'](_0x5a6003['item'],_0x392ac8['name']);const _0x289809=_0x512a2d['mapper']['toViewElement'](_0x5a6003['item']);if(_0x5a6003['item']['is']('element')&&_0x42cf17['model']['schema']['isBlock'](_0x5a6003['item'])&&!_0x289809['getCustomProperty']('addHighlight')){_0x512a2d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x289809),_0x512a2d['writer']['setAttribute']('data-suggestion',_0x28cfb9,_0x289809),_0x512a2d['writer']['setAttribute']('data-author-id',_0x101df9,_0x289809),_0x512a2d['mapper']['bindElementToMarker'](_0x289809,_0x5a6003['markerName']),_0x71c77e&&(this['activeMarkers']['includes'](_0x5a6003['markerName'])?_0x512a2d['writer']['addClass']('ck-suggestion-marker--active',_0x289809):_0x512a2d['writer']['removeClass']('ck-suggestion-marker--active',_0x289809));for(const _0x260521 of _0x42cf17['model']['createRangeIn'](_0x5a6003['item'])['getItems']())_0x512a2d['consumable']['consume'](_0x260521,_0x392ac8['name']);_0x512a2d['consumable']['consume'](_0x5a6003['item'],_0x392ac8['name']);}};_0x42cf17['conversion']['for']('dataDowncast')['add'](_0x35629f=>{_0x35629f['on']('addMarker:suggestion:formatBlock',(_0x280755,_0x189b25,_0x59d7dc)=>{_0x59d7dc['options']['showSuggestionHighlights']&&_0x26dbb8({'showActiveMarkers':!0x1})(_0x280755,_0x189b25,_0x59d7dc);},{'priority':'highest'});}),_0x42cf17['conversion']['for']('dataDowncast')['add'](_0x387b42=>{_0x387b42['on']('addMarker:suggestion:attribute',(_0x321e03,_0x25926e,_0x3b3efe)=>{_0x3b3efe['options']['showSuggestionHighlights']&&_0x26dbb8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x321e03,_0x25926e,_0x3b3efe);},{'priority':'highest'});}),_0x42cf17['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4f4ba4,_0x39bf12)=>{if(_0x39bf12['options']['showSuggestionHighlights']){const {id:_0xb2acb7,authorId:_0x5c7471}=this['_splitMarkerName'](_0x4f4ba4);return _0x4f4ba4['includes'](':split')||_0x4f4ba4['includes'](':merge')?{'group':'suggestion','name':_0x4f4ba4['substr'](0xb),'attributes':{'data-suggestion':_0xb2acb7,'data-author-id':_0x5c7471}}:null;}return{'group':'suggestion','name':_0x4f4ba4['substr'](0xb)};}}),_0x42cf17['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xf5d0f1,{writer:_0x29bfaf})=>{let _0x132aa7='suggestion:'+_0xf5d0f1['getAttribute']('suggestion-type')+':'+_0xf5d0f1['getAttribute']('id');return _0xf5d0f1['getAttribute']('marker-count')&&(_0x132aa7+=':'+_0xf5d0f1['getAttribute']('marker-count')),_0x29bfaf['createElement']('$marker',{'data-name':_0x132aa7});}}),_0x42cf17['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x42cf17['conversion']['for']('editingDowncast')['add'](_0x3165a0=>{_0x3165a0['on']('addMarker:suggestion:formatBlock',_0x26dbb8(),{'priority':'high'});}),_0x42cf17['conversion']['for']('editingDowncast')['add'](_0x194c77=>{_0x194c77['on']('addMarker:suggestion:attribute',_0x26dbb8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x42cf17['conversion']['for']('editingDowncast')['add'](_0x4a7410=>{_0x4a7410['on']('removeMarker:suggestion:formatBlock',(_0x402be2,_0x388652,_0x28d335)=>{const _0x510807=_0x28d335['mapper']['markerNameToElements'](_0x388652['markerName']);if(_0x510807){for(const _0x535d45 of _0x510807)_0x535d45['getCustomProperty']('addHighlight')||(_0x28d335['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x535d45),_0x28d335['writer']['removeAttribute']('data-suggestion',_0x535d45),_0x28d335['writer']['removeAttribute']('data-author-id',_0x535d45),_0x28d335['mapper']['unbindElementFromMarkerName'](_0x535d45,_0x388652['markerName']));}},{'priority':'high'});}),_0x42cf17['conversion']['for']('editingDowncast')['add'](_0x9c753f=>{_0x9c753f['on']('removeMarker:suggestion:attribute',(_0x195634,_0x288127,_0x4ff705)=>{const _0x6fe757=_0x4ff705['mapper']['markerNameToElements'](_0x288127['markerName']);if(!_0x6fe757)return;const {id:_0x467e9a}=this['_splitMarkerName'](_0x288127['markerName']),_0x220861=this['_suggestions']['get'](_0x467e9a),_0x54f6a7=this['_getAttributeKey'](_0x220861);if(this['_isBlockAttribute'](_0x54f6a7)){for(const _0x15db5a of _0x6fe757)_0x15db5a['getCustomProperty']('addHighlight')||(_0x4ff705['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x15db5a),_0x4ff705['writer']['removeAttribute']('data-suggestion',_0x15db5a),_0x4ff705['writer']['removeAttribute']('data-author-id',_0x15db5a),_0x4ff705['mapper']['unbindElementFromMarkerName'](_0x15db5a,_0x288127['markerName']));}},{'priority':'high'});}),_0x42cf17['model']['document']['registerPostFixer'](_0x18885f=>{let _0x5e31f7=!0x1;const _0x2a78f5=Array['from'](_0x42cf17['model']['document']['differ']['getChangedMarkers']()),_0x1cbe4c=new Set();for(const {name:_0x2c2e62,data:_0x22d29b}of _0x2a78f5){const {group:_0x203913,type:_0x5b6c26,subType:_0x2658b4,id:_0x3bf998}=this['_splitMarkerName'](_0x2c2e62);if('suggestion'!==_0x203913)continue;const _0x4cb8d6=this['_suggestions']['get'](_0x3bf998);if(null!=_0x22d29b['newRange']){'formatInline'==_0x5b6c26&&(_0x5e31f7=_0x5e31f7||Jt(_0x22d29b['newRange'],_0x2c2e62,_0x18885f,_0x42cf17['model']['schema']));const _0x40efc7='attribute'==_0x5b6c26&&this['_isBlockAttribute'](_0x2658b4['split']('|')[0x0]);if(_0x22d29b['newRange']['isCollapsed']||'$graveyard'==_0x22d29b['newRange']['root']['rootName']||'formatBlock'==_0x5b6c26&&!Ht(_0x22d29b['newRange'])||_0x40efc7&&!Ht(_0x22d29b['newRange'])||'deletion'==_0x5b6c26&&!(!Lt(_0x58cad9=_0x22d29b['newRange'])&&!function(_0x1ad88e){return _0x1ad88e['start']['parent']==_0x1ad88e['end']['nodeBefore']&&_0x1ad88e['start']['isAtEnd'];}(_0x58cad9)))_0x18885f['removeMarker'](_0x2c2e62),_0x5e31f7=!0x0;else{if(!_0x4cb8d6||!_0x4cb8d6['isInContent'])continue;if(_0x22d29b['newRange']&&_0x22d29b['oldRange']&&_0x22d29b['newRange']['isEqual'](_0x22d29b['oldRange']))continue;_0x1cbe4c['add'](_0x4cb8d6);}}}var _0x58cad9;return _0x1cbe4c['size']>0x0&&(_0x5e31f7=!!this['_joinWithAdjacentSuggestions'](_0x1cbe4c)||_0x5e31f7),_0x5e31f7;}),_0x42cf17['model']['document']['registerPostFixer'](_0x532bec=>{let _0x3f3ace=!0x1;for(const _0x3218fd of _0x42cf17['model']['document']['differ']['getChanges']())if('insert'==_0x3218fd['type'])for(const _0x589419 of this['_suggestions']['values']()){if(_0x589419['isMultiRange']||!_0x589419['isInContent'])continue;const _0x443748='formatBlock'==_0x589419['type'],_0x30cefa=this['_getAttributeKey'](_0x589419),_0xcc5214=_0x30cefa&&this['_isBlockAttribute'](_0x30cefa);if(!_0x443748&&!_0xcc5214)continue;const _0x4776d1=_0x589419['getFirstRange']();if(_0x4776d1['start']['parent']!=_0x4776d1['end']['parent']&&!_0x4776d1['end']['isAtEnd']){const _0x4d085e=_0x42cf17['model']['createPositionAt'](_0x4776d1['start']['nodeAfter'],'end'),_0x15a106=_0x42cf17['model']['createRange'](_0x4776d1['start'],_0x4d085e);_0x532bec['updateMarker'](_0x589419['getFirstMarker'](),{'range':_0x15a106}),_0x3f3ace=!0x0;}}return _0x3f3ace;}),_0x42cf17['model']['document']['registerPostFixer'](_0x5b2e9a=>this['_processAttributeChanges'](_0x5b2e9a)),_0x42cf17['model']['document']['registerPostFixer'](_0x613d3d=>!_0x613d3d['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x613d3d)),_0x42cf17['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x42cf17['model']['document']['on']('change:data',(_0x20c3e7,_0x8da844)=>{if(!_0x8da844['isLocal']||_0x8da844['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4cc07a=_0x42cf17['model']['document']['differ']['getChanges']();if(0x0==_0x4cc07a['length'])return;const _0x1d91b9=[],_0x3e78e3=_0x4cc07a['filter'](_0x65109a=>'attribute'==_0x65109a['type']),_0x395b04=_0x4cc07a['filter'](_0x1e9e78=>'insert'==_0x1e9e78['type']&&'$text'!=_0x1e9e78['name']);for(const _0x3a6743 of _0x3e78e3)this['_isRegisteredAttribute'](_0x3a6743['attributeKey'])&&_0x1d91b9['push']({'key':_0x3a6743['attributeKey'],'newValue':_0x3a6743['attributeNewValue'],'oldValue':_0x3a6743['attributeOldValue'],'range':qt(_0x3a6743['range'],_0x42cf17['model'])});for(const _0x3b5e18 of _0x395b04){if('rename'!=_0x3b5e18['action']&&'refresh'!=_0x3b5e18['action'])continue;const _0xe06bcb=zt(_0x3b5e18['position']['nodeAfter'],_0x42cf17['model']),_0x55c6cb=_0x3b5e18['before'];'rename'==_0x3b5e18['action']&&_0x1d91b9['push']({'key':u,'newValue':_0x3b5e18['name'],'oldValue':_0x55c6cb['name'],'range':_0xe06bcb});for(const [_0x3c0cc0,_0x384e22]of _0x55c6cb['attributes']){if(!this['_isRegisteredAttribute'](_0x3c0cc0))continue;const _0x50b095=_0x3b5e18['attributes']['get'](_0x3c0cc0);_0x384e22!==_0x50b095&&_0x1d91b9['push']({'key':_0x3c0cc0,'newValue':_0x50b095,'oldValue':_0x384e22,'range':_0xe06bcb});}for(const [_0x2f4f5,_0x328f92]of _0x3b5e18['attributes'])this['_isRegisteredAttribute'](_0x2f4f5)&&(_0x55c6cb['attributes']['has'](_0x2f4f5)||_0x1d91b9['push']({'key':_0x2f4f5,'newValue':_0x328f92,'oldValue':null,'range':_0xe06bcb}));}0x0!=_0x1d91b9['length']&&_0x42cf17['model']['enqueueChange'](_0x8da844,_0x31bebf=>{const _0x659c3b=_0x3c2271();for(const {range:_0x2e24aa,key:_0x2a8249,oldValue:_0x2aa919,newValue:_0x332535}of _0x1d91b9)this['markAttributeChange'](_0x2e24aa,_0x2a8249,_0x2aa919,_0x332535,{'groupId':_0x659c3b});this['_reduceExistingSuggestions'](_0x31bebf,_0x1d91b9);});},{'priority':'lowest'}),_0x42cf17['model']['markers']['on']('update:suggestion',(_0x412f7b,_0x880288,_0xc5bf9b)=>{if(null==_0xc5bf9b){const {id:_0x73680e}=this['_splitMarkerName'](_0x880288['name']),_0x5ede1a=this['_suggestions']['get'](_0x73680e);_0x5ede1a&&_0x5ede1a['addMarkerName'](_0x880288['name']);}}),_0x42cf17['model']['document']['on']('change:data',()=>{const _0x59b248=Array['from'](_0x42cf17['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2f7b56=>'suggestion'===this['_splitMarkerName'](_0x2f7b56['name'])['group']);if(0x0===_0x59b248['length'])return;_0x59b248['sort']((_0x10a8e8,_0x1faa72)=>{const _0x241175=_0x10a8e8['data']['oldRange'],_0x46a982=_0x1faa72['data']['oldRange'];return null===_0x241175&&null===_0x46a982?0x0:null===_0x241175&&null!==_0x46a982?-0x1:null!==_0x241175&&null===_0x46a982?0x1:_0x241175['start']['isBefore'](_0x46a982['start'])?-0x1:0x1;});const _0x27cfae=new Set(),_0x24c7ba=new Set();for(const {name:_0x14047c,data:_0x49ec1b}of _0x59b248){const {id:_0x34ac53}=this['_splitMarkerName'](_0x14047c);if(null===_0x49ec1b['oldRange']){const _0x155032=this['_handleNewSuggestionMarker'](_0x14047c);_0x24c7ba['add'](_0x155032);}else{const _0x2f9b1d=this['_suggestions']['get'](_0x34ac53);null!==_0x49ec1b['newRange']||_0x2f9b1d['isInContent']?(_0x27cfae['add'](_0x2f9b1d['head']),_0x24c7ba['add'](_0x2f9b1d)):this['_removeSuggestion'](_0x2f9b1d);}}_0x24c7ba['size']>0x0&&this['_refreshSuggestionsChain'](_0x24c7ba);for(const _0x52af20 of _0x27cfae)this['fire']('suggestionChanged',_0x52af20);}),_0x42cf17['model']['on']('applyOperation',(_0x217653,_0x46de01)=>{const _0x2d258c=_0x46de01[0x0];if(!this['_suggestions']['size'])return;if(!_0x2d258c['isDocumentOperation'])return;if(_0x2d258c['batch']['isUndo']||!_0x2d258c['batch']['isLocal'])return;let _0x21a7b0,_0x26517f;switch(_0x2d258c['type']){case'insert':_0x21a7b0=_0x42cf17['model']['createPositionAt'](_0x2d258c['position']),_0x26517f=_0x21a7b0['getShiftedBy'](_0x2d258c['howMany']);break;case'split':_0x21a7b0=_0x42cf17['model']['createPositionAt'](_0x2d258c['splitPosition']),_0x26517f=_0x42cf17['model']['createPositionAt'](_0x2d258c['moveTargetPosition']);break;case'move':_0x21a7b0=_0x42cf17['model']['createPositionAt'](_0x2d258c['targetPosition']),_0x26517f=_0x21a7b0['getShiftedBy'](_0x2d258c['howMany']);break;default:return;}const _0x302352=_0x42cf17['model']['createRange'](_0x21a7b0,_0x26517f);_0x42cf17['model']['change'](()=>{for(const {suggestion:_0x193f40,meta:_0x247d04}of this['_findSuggestions'](_0x302352)){if(_0x193f40['isMultiRange'])continue;if('formatInline'==_0x193f40['type'])continue;const _0x467ac5=this['_getAttributeKey'](_0x193f40);if(_0x467ac5&&this['_isBlockAttribute'](_0x467ac5)&&'split'!=_0x2d258c['type'])continue;const _0x38e959=_0x193f40['data']&&_0x193f40['data']['multipleBlocks'];('formatBlock'!=_0x193f40['type']||'split'==_0x2d258c['type']&&!_0x38e959)&&(_0x247d04['containsRangeInObject']||'insertion'==_0x193f40['type']&&_0x247d04['isOwn']||_0x193f40['getFirstRange']()['containsRange'](_0x302352)&&this['_breakSuggestionMarker'](_0x193f40,_0x21a7b0,_0x26517f));}});},{'priority':'lowest'}),_0x42cf17['model']['on']('deleteContent',(_0x28920d,_0x44d443)=>{const _0xd78498=_0x44d443[0x0],_0x2f6e84=_0x44d443[0x1];if(_0x2f6e84&&_0x2f6e84['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd78498['isCollapsed'])return;const _0x2b87bc=_0x42cf17['model']['schema'],{start:_0x3d590c,end:_0x2d0054}=_0xd78498['getFirstRange'](),_0x276202=_0x3d590c['nodeAfter']&&_0x2b87bc['isLimit'](_0x3d590c['nodeAfter'])?null:_0x2b87bc['getNearestSelectionRange'](_0x3d590c,'forward'),_0x3ded9c=_0x2d0054['nodeBefore']&&_0x2b87bc['isLimit'](_0x2d0054['nodeBefore'])?null:_0x2b87bc['getNearestSelectionRange'](_0x2d0054,'backward'),_0x24ea5f=_0x42cf17['model']['createRange'](_0x276202?_0x276202['start']:_0x3d590c,_0x3ded9c?_0x3ded9c['end']:_0x2d0054);_0x42cf17['model']['change'](_0x2f0d4c=>{this['markDeletion'](_0x24ea5f);const _0x7a3c7d=_0x42cf17['model']['schema']['getNearestSelectionRange'](_0x24ea5f['start']);_0xd78498['is']('documentSelection')?_0x2f0d4c['setSelection'](_0x7a3c7d):_0xd78498['setTo'](_0x7a3c7d);}),_0x28920d['stop']();},{'priority':_0x55292e['normal']+0xa}),_0x42cf17['model']['on']('insertContent',(_0x3db0a5,_0x2a5dc4)=>{const _0x4c74f3=_0x2a5dc4[_0x2a5dc4['length']-0x1];_0x4c74f3&&_0x4c74f3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x42cf17['model']['change'](()=>{let _0x143f52=_0x42cf17['model']['insertContent'](_0x2a5dc4[0x0],_0x2a5dc4[0x1],_0x2a5dc4[0x2],{'forceDefaultExecution':!0x0});if(!_0x143f52)return;_0x3db0a5['return']=_0x143f52['clone']();const _0x1ea016=_0x143f52['end']['nodeBefore'],_0x3789e2=_0x42cf17['model']['schema'];_0x1ea016&&_0x3789e2['isBlock'](_0x1ea016)&&!_0x3789e2['isObject'](_0x1ea016)&&(_0x143f52=_0x42cf17['model']['createRange'](_0x143f52['start'],_0x42cf17['model']['createPositionAt'](_0x1ea016,'end'))),this['markInsertion'](_0x143f52);}),_0x3db0a5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x368ead=new x(_0x42cf17,this['_suggestions']);_0x42cf17['commands']['add']('acceptSuggestion',_0x368ead),this['enableCommand']('acceptSuggestion');const _0x59cdd3=new O(_0x42cf17,this['_suggestions']);_0x42cf17['commands']['add']('discardSuggestion',_0x59cdd3),this['enableCommand']('discardSuggestion'),_0x42cf17['commands']['add']('acceptAllSuggestions',new R(_0x42cf17,_0x368ead,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x42cf17['commands']['add']('discardAllSuggestions',new R(_0x42cf17,_0x59cdd3,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x42cf17['commands']['add']('acceptSelectedSuggestions',new E(_0x42cf17,_0x368ead,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x42cf17['commands']['add']('discardSelectedSuggestions',new E(_0x42cf17,_0x59cdd3,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x10d05f=_0x42cf17['plugins']['get']('CommentsRepository');this['listenTo'](_0x10d05f,'addComment',(_0x2872a0,{threadId:_0x57a431})=>{const _0x39f282=this['_suggestions']['get'](_0x57a431);_0x39f282&&_0x39f282['commentThread']&&0x1===_0x39f282['commentThread']['length']&&this['_updateSuggestionData'](_0x57a431,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x10d05f,'removeComment',(_0x1d7d5e,{threadId:_0x536d63})=>{const _0x4a7d1c=this['_suggestions']['get'](_0x536d63);_0x4a7d1c&&_0x4a7d1c['commentThread']&&!_0x4a7d1c['commentThread']['length']&&this['_updateSuggestionData'](_0x536d63,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xf40f25){const _0x420d5b=_0x4e49b9([0x6b,0x75,0x66,0x79,0x47,0x71,0x6a,0x49,0x52,0x7a,0x70,0x53,0x61,0x56,0x65,0x42,0x46,0x44,0x35,0x78,0x51,0x4f,0x6c,0x69,0x6e,0x41,0x50,0x36,0x38,0x45,0x67,0x77,0x48,0x31,0x64,0x4c,0x39,0x4a,0x63,0x4b,0x37,0x59,0x55,0x4e,0x76,0x6d,0x57,0x4d,0x54,0x74,0x73,0x32,0x34,0x58,0x68,0x6f,0x72,0x43,0x30,0x33,0x5a,0x62]),_0x231f7a=0x21459050,_0xcb708c=0x2142f888^_0x231f7a,_0x509bdf=window[_0x4e49b9([0x44,0x61,0x74,0x65])][_0x4e49b9([0x6e,0x6f,0x77])](),_0x395e67=_0xf40f25[_0x4e49b9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c580d=new window[(_0x4e49b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310391=>{_0x395e67[_0x4e49b9([0x6f,0x6e,0x63,0x65])](_0x4e49b9([0x72,0x65,0x61,0x64,0x79]),_0x310391);}),_0xe51401={[_0x4e49b9([0x6b,0x74,0x79])]:_0x4e49b9([0x45,0x43]),[_0x4e49b9([0x75,0x73,0x65])]:_0x4e49b9([0x73,0x69,0x67]),[_0x4e49b9([0x63,0x72,0x76])]:_0x4e49b9([0x50,0x2d,0x32,0x35,0x36]),[_0x4e49b9([0x78])]:_0x4e49b9([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]),[_0x4e49b9([0x79])]:_0x4e49b9([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]),[_0x4e49b9([0x61,0x6c,0x67])]:_0x4e49b9([0x45,0x53,0x32,0x35,0x36])},_0x1afbf8=_0x395e67[_0x4e49b9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4e49b9([0x67,0x65,0x74])](_0x4e49b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5a1b50(){let _0x585d41,_0x1b06bc=null,_0x490ff4=null;try{if(_0x1afbf8==_0x4e49b9([0x47,0x50,0x4c]))return _0x4e49b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x585d41=_0x593783(),!_0x585d41)return _0x4e49b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x585d41[_0x4e49b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x490ff4=_0x2a48da(_0x585d41[_0x4e49b9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x585d41[_0x4e49b9([0x6a,0x74,0x69])])),await _0x484f8c()?_0x50afc1()?_0x1db1c6()?_0x4e49b9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b7295()?(_0x585d41[_0x4e49b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e49b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1b06bc=_0x826358(_0x4e49b9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x585d41[_0x4e49b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4e49b9([0x74,0x72,0x69,0x61,0x6c])&&(_0x1b06bc=_0x826358(_0x4e49b9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x46c709()):_0x4e49b9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4e49b9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4e49b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x199891){return _0x4e49b9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1db1c6(){const _0x1d1ee6=[_0x4e49b9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4e49b9([0x74,0x72,0x69,0x61,0x6c])][_0x4e49b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x585d41[_0x4e49b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x509bdf/0x3e8:0xe10*_0xcb708c;return _0x585d41[_0x4e49b9([0x65,0x78,0x70])]<_0x1d1ee6;}function _0x50afc1(){const _0x1311aa=_0x585d41[_0x4e49b9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1311aa)return!0x1;if(_0x1311aa[_0x4e49b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e49b9([0x2a])))return!0x0;if(_0x1311aa[_0x4e49b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e49b9([0x54,0x43])))return!0x0;if(_0x1311aa[_0x4e49b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e49b9([0x52,0x54,0x43]))){if(_0x21f7fb())return!0x0;if(_0x27e860()||_0x4d2975())return!0x0;}return!0x1;}function _0x5b7295(){const _0x17f67a=_0x585d41[_0x4e49b9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x17f67a||0x0==_0x17f67a[_0x4e49b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9edb4e}=new URL(window[_0x4e49b9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x17f67a[_0x4e49b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9edb4e))return!0x0;const _0x27a397=_0x9edb4e[_0x4e49b9([0x73,0x70,0x6c,0x69,0x74])](_0x4e49b9([0x2e]));return _0x17f67a[_0x4e49b9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e41e9=>_0x1e41e9[_0x4e49b9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e49b9([0x2a])))[_0x4e49b9([0x6d,0x61,0x70])](_0x1c4292=>_0x1c4292[_0x4e49b9([0x73,0x70,0x6c,0x69,0x74])](_0x4e49b9([0x2e])))[_0x4e49b9([0x73,0x6f,0x6d,0x65])](_0x28f44f=>_0x27a397[_0x4e49b9([0x65,0x76,0x65,0x72,0x79])]((_0x3a8821,_0x5bacc4)=>_0x28f44f[_0x5bacc4]===_0x3a8821||_0x28f44f[_0x5bacc4]===_0x4e49b9([0x2a])));}function _0x46c709(){return _0x1b06bc&&_0x490ff4?new window[(_0x4e49b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x136545,_0x50b906)=>{_0x1b06bc[_0x4e49b9([0x74,0x68,0x65,0x6e])](_0x136545,_0x50b906),_0x490ff4[_0x4e49b9([0x74,0x68,0x65,0x6e])](_0x493974=>{_0x493974!=_0x4e49b9([0x56,0x61,0x6c,0x69,0x64])&&_0x136545(_0x493974);},_0x50b906);}):_0x1b06bc||_0x490ff4||_0x4e49b9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a48da(_0xce0367,_0x42cb20){return new window[(_0x4e49b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6355=>{if(_0x6415db())return _0x5c6355(_0x4e49b9([0x56,0x61,0x6c,0x69,0x64]));_0x2e6a78(),_0x395e67[_0x4e49b9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4e49b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1e6467=!0x1;const _0x239fff=_0x3c2271();function _0xf52a8d(_0x278956){return!!_0x278956&&(typeof _0x278956===_0x4e49b9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x278956===_0x4e49b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x278956[_0x4e49b9([0x74,0x68,0x65,0x6e])]===_0x4e49b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x278956[_0x4e49b9([0x63,0x61,0x74,0x63,0x68])]===_0x4e49b9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x152670(_0x4eb04d){_0x1778ea(_0x4eb04d)[_0x4e49b9([0x74,0x68,0x65,0x6e])](_0x135858=>{if(!_0x135858||_0x135858[_0x4e49b9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4e49b9([0x6f,0x6b]))return _0x4e49b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a0dd7(_0x6c940d(_0x239fff+_0x42cb20))!=_0x135858[_0x4e49b9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4e49b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4e49b9([0x56,0x61,0x6c,0x69,0x64]);})[_0x4e49b9([0x74,0x68,0x65,0x6e])](_0x2cbcab=>(_0x10c9a7(),_0x2cbcab),()=>{const _0x44ec90=_0x579011();return null==_0x44ec90?(_0x10c9a7(),_0x4e49b9([0x56,0x61,0x6c,0x69,0x64])):_0x4e49b9(_0x509bdf-_0x44ec90>(0x5491450^_0x231f7a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4e49b9([0x74,0x68,0x65,0x6e])](_0x5c6355)[_0x4e49b9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c6355(_0x4e49b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24d149=0x21737ed0^_0x231f7a;function _0x10c9a7(){const _0x54291=_0x4e49b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a0dd7(_0x6c940d(_0xce0367)),_0x4d7875=_0x4a5aca(_0x5a0dd7(window[_0x4e49b9([0x4d,0x61,0x74,0x68])][_0x4e49b9([0x63,0x65,0x69,0x6c])](_0x509bdf/_0x24d149)));window[_0x4e49b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e49b9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54291,_0x4d7875);}function _0x579011(){const _0x26319e=_0x4e49b9([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a0dd7(_0x6c940d(_0xce0367)),_0x537e07=window[_0x4e49b9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4e49b9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x26319e);return _0x537e07?window[_0x4e49b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a5aca(_0x537e07),0x10)*_0x24d149:null;}function _0x1778ea(_0x244e01){return new window[(_0x4e49b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13421f,_0x5631c5)=>{_0x244e01[_0x4e49b9([0x74,0x68,0x65,0x6e])](_0x13421f,_0x5631c5),window[_0x4e49b9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5631c5,0x21444490^_0x231f7a);});}}_0x395e67[_0x4e49b9([0x6f,0x6e])](_0x4e49b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb20422,_0x5426c6)=>{if(_0x5426c6[0x0]!=_0xce0367)return _0x5c6355(_0x4e49b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5426c6[0x1]={..._0x5426c6[0x1],[_0x4e49b9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x239fff};},{[_0x4e49b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e49b9([0x68,0x69,0x67,0x68])}),_0x395e67[_0x4e49b9([0x6f,0x6e])](_0x4e49b9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x24b4a5=>{_0xf52a8d(_0x24b4a5[_0x4e49b9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1e6467=!0x0,_0x152670(_0x24b4a5[_0x4e49b9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4e49b9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4e49b9([0x6c,0x6f,0x77])}),_0x5c580d[_0x4e49b9([0x74,0x68,0x65,0x6e])](()=>{_0x1e6467||_0x5c6355(_0x4e49b9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6415db(){return _0x395e67[_0x4e49b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e49b9([0x76,0x69,0x65,0x77])][_0x4e49b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4e49b9([0x61,0x75,0x74,0x6f]);}function _0x2e6a78(){_0x395e67[_0x4e49b9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4e49b9([0x76,0x69,0x65,0x77])][_0x4e49b9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4e49b9([0x61,0x75,0x74,0x6f]);}}function _0x826358(_0x381b57){const _0x282e2d=[new window[(_0x4e49b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c84d3=>setTimeout(_0x2c84d3,0x214cae9c^_0x231f7a)),_0x5c580d[_0x4e49b9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4e49b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ee6cd=>{let _0x1d6b4f=0x0;_0x395e67[_0x4e49b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e49b9([0x6f,0x6e])](_0x4e49b9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x53ae59,_0x289ac4)=>{_0x289ac4[0x0][_0x4e49b9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1d6b4f++,_0x1d6b4f==(0x214591a8^_0x231f7a)&&(_0x5ee6cd(),_0x53ae59[_0x4e49b9([0x6f,0x66,0x66])]());});}))];return window[_0x4e49b9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4e49b9([0x72,0x61,0x63,0x65])](_0x282e2d)[_0x4e49b9([0x74,0x68,0x65,0x6e])](()=>_0x381b57);}async function _0x4e7af6(){await _0x5c580d,_0x395e67[_0x4e49b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e49b9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x541a64,_0x395e67[_0x4e49b9([0x6d,0x6f,0x64,0x65,0x6c])][_0x4e49b9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x541a64,_0x395e67[_0x4e49b9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4e49b9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x21f7fb(){return _0x115619(_0x4e49b9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x51b918(_0x4e49b9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4e49b9([0x73,0x74,0x61,0x74,0x65])]==_0x4e49b9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x27e860(){return _0x115619(_0x4e49b9([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 _0x4d2975(){return _0x115619(_0x4e49b9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x127c6c(_0x5e827c){const _0x2c028c=_0x3c0ad5();_0x395e67[_0x2c028c]=_0x4e49b9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5e827c,_0x5e827c!=_0x4e49b9([0x56,0x61,0x6c,0x69,0x64])&&_0x4e7af6();}function _0x3c0ad5(){const _0x29491f=window[_0x4e49b9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4e49b9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4e49b9([0x6e,0x6f,0x77])]())[_0x4e49b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4e49b9([0x2e]),'');let _0x349f07=_0x4e49b9([0x6b]);for(let _0x2cb46a=0x0;_0x2cb46a<_0x29491f[_0x4e49b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2cb46a+=0x2){let _0x305eb9=window[_0x4e49b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29491f[_0x4e49b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cb46a,_0x2cb46a+0x2));_0x305eb9>=_0x420d5b[_0x4e49b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x305eb9-=_0x420d5b[_0x4e49b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x349f07+=_0x420d5b[_0x305eb9];}return _0x349f07;}function _0x593783(){const _0x2b88ce=_0x1afbf8[_0x4e49b9([0x73,0x70,0x6c,0x69,0x74])](_0x4e49b9([0x2e]));if(0x3!=_0x2b88ce[_0x4e49b9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x154fe3(_0x2b88ce[0x1]);function _0x154fe3(_0x177a66){const _0x514a16=_0x1f226c(_0x177a66);return _0x514a16&&_0x337058()?_0x514a16:null;function _0x337058(){const _0x274998=_0x514a16[_0x4e49b9([0x6a,0x74,0x69])],_0x2c6a79=window[_0x4e49b9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x274998[_0x4e49b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x274998[_0x4e49b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x12e06c={..._0x514a16,[_0x4e49b9([0x6a,0x74,0x69])]:_0x274998[_0x4e49b9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x274998[_0x4e49b9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x12e06c[_0x4e49b9([0x76,0x63])],_0x6c940d(_0x12e06c)==_0x2c6a79;}}}async function _0x484f8c(){let _0x3b61f4=!0x0;try{const _0x55ab86=_0x1afbf8[_0x4e49b9([0x73,0x70,0x6c,0x69,0x74])](_0x4e49b9([0x2e])),[_0x336420,_0x3b1d4c,_0x26417d]=_0x55ab86;return _0x2475c1(_0x336420),await _0x5af14f(_0x336420,_0x3b1d4c,_0x26417d),_0x3b61f4;}catch(_0x313333){return!0x1;}function _0x2475c1(_0xc44403){const _0x50c402=_0x1f226c(_0xc44403);_0x50c402&&_0x50c402[_0x4e49b9([0x61,0x6c,0x67])]==_0x4e49b9([0x45,0x53,0x32,0x35,0x36])||(_0x3b61f4=!0x1);}async function _0x5af14f(_0x3f8f35,_0xff0930,_0x313430){const _0x39f341=window[_0x4e49b9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4e49b9([0x66,0x72,0x6f,0x6d])](_0x516a35(_0x313430),_0x2356c4=>_0x2356c4[_0x4e49b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x205a71=new window[(_0x4e49b9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4e49b9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3f8f35+_0x4e49b9([0x2e])+_0xff0930),_0x30688a=window[_0x4e49b9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4e49b9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30688a)return;const _0x5a1e73=await _0x30688a[_0x4e49b9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4e49b9([0x6a,0x77,0x6b]),_0xe51401,{[_0x4e49b9([0x6e,0x61,0x6d,0x65])]:_0x4e49b9([0x45,0x43,0x44,0x53,0x41]),[_0x4e49b9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4e49b9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4e49b9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30688a[_0x4e49b9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4e49b9([0x6e,0x61,0x6d,0x65])]:_0x4e49b9([0x45,0x43,0x44,0x53,0x41]),[_0x4e49b9([0x68,0x61,0x73,0x68])]:{[_0x4e49b9([0x6e,0x61,0x6d,0x65])]:_0x4e49b9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a1e73,_0x39f341,_0x205a71)||(_0x3b61f4=!0x1);}}function _0x1f226c(_0x24ec63){return _0x24ec63[_0x4e49b9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4e49b9([0x65,0x79]))?JSON[_0x4e49b9([0x70,0x61,0x72,0x73,0x65])](_0x516a35(_0x24ec63)):null;}function _0x516a35(_0x7ef20c){return window[_0x4e49b9([0x61,0x74,0x6f,0x62])](_0x7ef20c[_0x4e49b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4e49b9([0x2b]))[_0x4e49b9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4e49b9([0x2f])));}function _0x6c940d(_0x5c46f9){let _0x25105b=0x1505;function _0x330c29(_0x5f11f8){for(let _0x203500=0x0;_0x203500<_0x5f11f8[_0x4e49b9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x203500++){const _0x3d41c8=_0x5f11f8[_0x4e49b9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x203500);_0x25105b=(_0x25105b<<0x5)+_0x25105b+_0x3d41c8,_0x25105b&=_0x25105b;}}function _0x514bff(_0x1199fb){Array[_0x4e49b9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1199fb)?_0x1199fb[_0x4e49b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x514bff):_0x1199fb&&typeof _0x1199fb==_0x4e49b9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4e49b9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1199fb)[_0x4e49b9([0x73,0x6f,0x72,0x74])]()[_0x4e49b9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x328e2a,_0x2880db])=>{_0x330c29(_0x328e2a),_0x514bff(_0x2880db);}):_0x330c29(window[_0x4e49b9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1199fb));}return _0x514bff(_0x5c46f9),_0x25105b>>>0x0;}function _0x5a0dd7(_0x4d2e1d){return _0x4d2e1d[_0x4e49b9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4e49b9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4e49b9([0x30]));}function _0x4a5aca(_0x188c26){return _0x188c26[_0x4e49b9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4e49b9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4e49b9([0x6a,0x6f,0x69,0x6e])]('');}function _0x115619(_0x5b37c2){return _0x395e67[_0x4e49b9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e49b9([0x68,0x61,0x73])](_0x5b37c2);}function _0x51b918(_0x5d9259){return _0x395e67[_0x4e49b9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4e49b9([0x67,0x65,0x74])](_0x5d9259);}function _0x541a64(){}function _0x4e49b9(_0x541391){return _0x541391['map'](_0x4339b5=>String['fromCharCode'](_0x4339b5))['join']('');}_0x127c6c(await _0x5a1b50());}(this);}set['adapter'](_0x414fbe){if(this['_adapter'])throw new _0x127c25('track-changes-adapter-already-set',this);this['_adapter']=_0x414fbe;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3c7541=!0x1,toJSON:_0x549045=!0x1}={}){const _0x4a8dff=[];for(const _0x4078db of this['_suggestions']['values']())_0x3c7541&&!_0x4078db['isInContent']||_0x4a8dff['push'](_0x4078db);return _0x549045?_0x4a8dff['map'](_0x389850=>_0x389850['toJSON']()):_0x4a8dff;}['getSuggestion'](_0x395576){const _0x316ea3=this['_suggestions']['get'](_0x395576);if(!_0x316ea3)throw new _0x127c25('track-changes-suggestion-not-found',this);return _0x316ea3;}['hasSuggestion'](_0x3d04fb){return this['_suggestions']['has'](_0x3d04fb);}['addSuggestionData'](_0x5e5f32){const {authorId:_0x5e7727,id:_0x54613b,originalSuggestionId:_0x572c7d,attributes:_0x43ad9a}=_0x5e5f32,[_0x54c9d2,_0x40b4c1]=_0x5e5f32['type']['split'](':'),_0x4b7872=this['_suggestions']['get'](_0x54613b)||this['_createSuggestion'](_0x54c9d2,_0x40b4c1,_0x54613b,_0x5e7727,_0x43ad9a,_0x572c7d);if(this['_addThreadToSuggestion'](_0x4b7872),this['_checkSuggestionCorrectness'](_0x4b7872,_0x54c9d2,_0x40b4c1||null,_0x5e7727),_0x4b7872['createdAt']=_0x5e5f32['createdAt'],_0x4b7872['_isDataLoaded']=!0x0,_0x43ad9a&&_0x43ad9a['@external']){const _0x40e913=_0x43ad9a['@external'],_0x555ab5=this['_getExternalAuthor'](_0x40e913['authorName']);_0x4b7872['authoredAt']=_0x40e913['createdAt'],_0x4b7872['author']=_0x555ab5,_0x4b7872['isExternal']=!0x0;}else _0x4b7872['authoredAt']=_0x5e5f32['createdAt'];switch(_0x5e5f32['data']&&(_0x4b7872['data']=_0x5e5f32['data']),_0x5e5f32['attributes']&&(_0x4b7872['attributes']=_0x5e5f32['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4b7872['_saved']=!0x0),this['_suggestionState']['get'](_0x4b7872)){case'notReady':this['_suggestionState']['set'](_0x4b7872,'dataReady');break;case'markerReady':_0x4b7872['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4b7872])),this['_refreshSuggestionsChain'](new Set([_0x4b7872])),this['_suggestionState']['set'](_0x4b7872,'ready'),this['fire']('suggestionLoaded',_0x4b7872)):this['_suggestionState']['set'](_0x4b7872,'removed');}return _0x4b7872;}['acceptSuggestion'](_0x3d3b45){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x246c9a of _0x3d3b45['getAllAdjacentSuggestions']())_0x246c9a['accept']();});});}['discardSuggestion'](_0x1de7f5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x132fe7 of _0x1de7f5['getAllAdjacentSuggestions']())_0x132fe7['discard']();});});}['enableCommand'](_0x55e3ff,_0x4d9524){const _0x221ecf=this['editor']['commands']['get'](_0x55e3ff);if(!_0x221ecf)throw new _0x127c25('track-changes-command-not-found',this,{'commandName':_0x55e3ff});if(this['_enabledCommands']['has'](_0x221ecf))throw new _0x127c25('track-changes-enable-command-twice',this,{'commandName':_0x55e3ff});this['_enabledCommands']['add'](_0x221ecf),_0x4d9524&&_0x221ecf['on']('execute',(_0xccb814,_0x5dca99)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5dca99['length']>0x0&&_0x5dca99[_0x5dca99['length']-0x1]&&_0x5dca99[_0x5dca99['length']-0x1]['forceDefaultExecution']?_0x5dca99['pop']():(_0xccb814['return']=_0x4d9524((..._0x27c39b)=>_0x221ecf['execute'](..._0x27c39b,{'forceDefaultExecution':!0x0}),..._0x5dca99),_0xccb814['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x42234a){let _0x56569b,_0x313ebb;const _0x375ff1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x56569b=_0x42234a();}catch(_0x4e8d80){_0x313ebb=_0x4e8d80;}return _0x375ff1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x313ebb&&_0x127c25['rethrowUnexpectedError'](_0x313ebb,this),_0x56569b;}['markInsertion'](_0x340304,_0x263a09=null,_0x4be1fc={}){if(_0x340304['isCollapsed'])return null;const _0x47c1fd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x4be1fc['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1496be,meta:_0x4f2808}of this['_findSuggestions'](_0x340304,'insertion'))if(_0x4f2808['isOwn']){if(!_0x4f2808['isNextTo']){if(_0x4f2808['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1496be,_0x4be1fc))continue;return _0x1496be;}if(Xt(_0x1496be,_0x4be1fc))return _0x1496be;this['_breakSuggestionMarker'](_0x1496be,_0x340304['start'],_0x340304['end']);break;}if(_0x263a09==_0x1496be['subType']&&Xt(_0x1496be,_0x4be1fc)){const _0x215d1b=_0x1496be['getFirstRange']();return _0x215d1b['start']['isEqual'](_0x340304['end'])?this['_setSuggestionRange'](_0x1496be,this['_model']['createRange'](_0x340304['start'],_0x215d1b['end'])):this['_setSuggestionRange'](_0x1496be,this['_model']['createRange'](_0x215d1b['start'],_0x340304['end'])),_0x1496be;}}const _0x11d28e=_0x3c2271(),_0x1e696b=_0x47c1fd['id'],_0x2e987e=_0x263a09?'insertion:'+_0x263a09:'insertion',_0xc72db5=this['_setSuggestionData']({'id':_0x11d28e,'type':_0x2e987e,'createdAt':new Date(),'authorId':_0x1e696b,'attributes':_0x4be1fc});return this['_addSuggestionMarker'](_0x2e987e,_0x11d28e,_0x1e696b,_0x340304),_0xc72db5;}['markMultiRangeInsertion'](_0x3df954,_0xdb0bf4='multi',_0x3ef318={}){const _0x4077c8=this['editor']['plugins']['get']('Users')['me'],_0x5806cd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xdb0bf4,'join');this['_trackingSessionId']&&(_0x3ef318['trackingSessionId']=this['_trackingSessionId']);for(const _0x394116 of this['getSuggestions']())if(_0x394116['author']['id']==_0x4077c8['id']&&'insertion'==_0x394116['type']&&_0x394116['subType']==_0xdb0bf4&&Xt(_0x394116,_0x3ef318)&&(_0x5806cd(_0x394116['getRanges'](),_0x3df954)||_0x5806cd(_0x3df954,_0x394116['getRanges']()))){for(const _0x1f58f0 of _0x3df954)_0x394116['addRange'](_0x1f58f0);return _0x394116;}for(const {suggestion:_0x5da548,meta:_0x102e98}of this['_findSuggestions'](_0x3df954,'insertion')){if(!_0x102e98['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x102e98['containsRangeInObject'])continue;if(!Xt(_0x5da548,_0x3ef318))continue;let _0x45e61a=!0x0;for(const _0x1b133c of _0x5da548['getRanges']())for(const _0x50c3bf of _0x3df954)if(!_0x1b133c['containsRange'](_0x50c3bf)){_0x45e61a=!0x1;break;}if(_0x45e61a)return _0x5da548;}const _0x1dab56=_0x3c2271(),_0x2c87c1=_0x4077c8['id'],_0x59aac3='insertion:'+_0xdb0bf4,_0x408603=this['_setSuggestionData']({'id':_0x1dab56,'type':_0x59aac3,'createdAt':new Date(),'authorId':_0x2c87c1,'attributes':_0x3ef318});for(const _0x46981d of _0x3df954)this['_addSuggestionMarker'](_0x59aac3,_0x1dab56,_0x2c87c1,_0x46981d,o['getMultiRangeId']());return _0x408603;}['markInlineFormat'](_0x36424b,_0x41100c,_0xc052c9=null,_0x41ff02={}){if(_0xc052c9=_0xc052c9||Kt(_0x41100c),_0x36424b['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x41ff02['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4d256c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xc052c9,'accept');return this['forceDefaultExecution'](()=>_0x4d256c([_0x36424b],_0x41100c,_0x41ff02)),null;}const _0x4babc2=this['editor']['plugins']['get']('Users')['me'],_0x438430=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x222444,meta:_0x39795c}of this['_findSuggestions'](_0x36424b,'insertion'))_0x39795c['isOwn']&&!_0x39795c['isInsideObject']&&_0x438430['push'](..._0x222444['getRanges']());}const _0x5c8ccb=function(_0x7dfb0d,_0x586855){const _0x4779aa=[];for(const _0x38616c of _0x586855){const _0x47c864=_0x7dfb0d['getIntersection'](_0x38616c);_0x47c864&&_0x4779aa['push'](_0x47c864);}return _0x4779aa;}(_0x36424b,_0x438430),_0xeb39fe=function(_0x27ee98,_0x5dd2f5){const _0x31639e=[_0x27ee98];for(const _0x49232f of _0x5dd2f5){let _0x145f86=0x0;for(;_0x145f86<_0x31639e['length'];){const _0x42a008=_0x31639e[_0x145f86]['getDifference'](_0x49232f);_0x31639e['splice'](_0x145f86,0x1,..._0x42a008),_0x145f86+=_0x42a008['length'];}}return _0x31639e;}(_0x36424b,_0x438430);_0x5c8ccb['length']&&this['_model']['change'](()=>{for(const _0x35404a of _0x5c8ccb){const _0x56ac64=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xc052c9,'accept');this['forceDefaultExecution'](()=>_0x56ac64([_0x35404a],_0x41100c,_0x41ff02));}});for(const _0x5df99b of _0xeb39fe){let _0xe26493=null,_0x4167ac=_0x5df99b['start'],_0x536851=_0x5df99b['end'];for(const {suggestion:_0x3eb663,meta:_0x3a6f70}of this['_findSuggestions'](_0x5df99b,'formatInline')){if(!_0x3a6f70['isOwn'])continue;if(_0x3eb663['subType']!=_0xc052c9)continue;if(!Xt(_0x3eb663,_0x41ff02))continue;const _0x4f6842=_0x3eb663['getFirstRange']();if(_0x4f6842['containsRange'](_0x5df99b,!0x0))return null;_0x4167ac=_0x4167ac['isBefore'](_0x4f6842['start'])?_0x4167ac:_0x4f6842['start'],_0x536851=_0x536851['isAfter'](_0x4f6842['end'])?_0x536851:_0x4f6842['end'],_0xe26493?_0x4f6842['start']['isBefore'](_0xe26493['getFirstRange']()['start'])?(_0xe26493['removeMarkers'](),_0xe26493=_0x3eb663):_0x3eb663['removeMarkers']():_0xe26493=_0x3eb663;}const _0x59e5fc=this['_model']['createRange'](_0x4167ac,_0x536851);if(_0xe26493)this['_setSuggestionRange'](_0xe26493,_0x59e5fc);else{const _0xb689f5=_0x3c2271(),_0x3665c3=_0x4babc2['id'];this['_setSuggestionData']({'id':_0xb689f5,'type':'formatInline:'+_0xc052c9,'data':_0x41100c,'createdAt':new Date(),'authorId':_0x3665c3,'attributes':_0x41ff02}),this['_addSuggestionMarker']('formatInline:'+_0xc052c9,_0xb689f5,_0x3665c3,_0x59e5fc);}}return null;}['markBlockFormat'](_0x3f60c0,_0x3988a7,_0x1bfa75=[],_0x3c214f=null,_0x22872c={}){_0x3988a7['formatGroupId']||(_0x3988a7['formatGroupId']=_0x3988a7['commandName']),_0x3988a7['multipleBlocks']=_0x3f60c0['is']('range'),_0x3c214f=_0x3c214f||Kt(_0x3988a7);const _0x4fa0a4=_0x1bfa75['map'](_0x5b7e9d=>zt(_0x5b7e9d,this['_model'])),_0x11ab21=_0x3f60c0['is']('range')?_0x3f60c0:zt(_0x3f60c0,this['_model']);if(this['_trackingSessionId']&&(_0x22872c['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x243eb5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c214f,'accept');return this['forceDefaultExecution'](()=>_0x243eb5([_0x11ab21],_0x3988a7,_0x22872c)),null;}_0x4fa0a4['push'](_0x11ab21);let _0x36ca3d=!0x0;for(const _0x32cca2 of _0x4fa0a4)if(!this['_rangeIsInLocalUserInsertion'](_0x32cca2)){_0x36ca3d=!0x1;break;}if(_0x36ca3d&&'always'!==this['_trackFormatChanges']){const _0x3b4b2b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3c214f,'accept');return this['forceDefaultExecution'](()=>_0x3b4b2b([_0x11ab21],_0x3988a7,_0x22872c)),null;}let _0x51748e=null,_0x2565e2=_0x11ab21['start'],_0x1a24ca=_0x11ab21['end'];for(const {suggestion:_0x1a86a8,meta:_0x5383d5}of this['_findSuggestions'](_0x11ab21,'formatBlock')){if(!_0x5383d5['isOwn'])continue;if(_0x5383d5['isNextTo']||_0x5383d5['containsRangeInObject']||_0x5383d5['isInsideObject'])continue;if(_0x1a86a8['data']['formatGroupId']!=_0x3988a7['formatGroupId'])continue;if(!Xt(_0x1a86a8,_0x22872c))continue;const _0x30cbed=_0x1a86a8['getFirstRange']();if(_0x1a86a8['subType']==_0x3c214f){if(_0x30cbed['containsRange'](_0x11ab21,!0x0))return null;_0x2565e2=_0x2565e2['isBefore'](_0x30cbed['start'])?_0x2565e2:_0x30cbed['start'],_0x1a24ca=_0x1a24ca['isAfter'](_0x30cbed['end'])?_0x1a24ca:_0x30cbed['end'],_0x51748e?_0x30cbed['start']['isBefore'](_0x51748e['getFirstRange']()['start'])?(_0x51748e['removeMarkers'](),_0x51748e=_0x1a86a8):_0x1a86a8['removeMarkers']():_0x51748e=_0x1a86a8;}else{const _0x13de46=_0x11ab21['getIntersection'](_0x30cbed);this['_cutOutSuggestionMarker'](_0x1a86a8,_0x13de46);}}const _0x2301b4=this['editor']['plugins']['get']('Users')['me'],_0x5adde9=_0x3c2271(),_0x5ce9c2=_0x2301b4['id'];if(_0x51748e)return this['_setSuggestionRange'](_0x51748e,this['_model']['createRange'](_0x2565e2,_0x1a24ca)),_0x51748e;{const _0x5358b5=this['_setSuggestionData']({'id':_0x5adde9,'type':'formatBlock:'+_0x3c214f,'data':_0x3988a7,'createdAt':new Date(),'authorId':_0x5ce9c2,'attributes':_0x22872c});return this['_addSuggestionMarker']('formatBlock:'+_0x3c214f,_0x5adde9,_0x5ce9c2,this['_model']['createRange'](_0x2565e2,_0x1a24ca)),_0x5358b5;}}['markMultiRangeBlockFormat'](_0x207fb9,_0x1afa28,_0x586589=[],_0x173a13=null,_0x2a8990={}){_0x1afa28['formatGroupId']||(_0x1afa28['formatGroupId']=_0x1afa28['commandName']);const _0x3e33b9=_0x207fb9[0x0];_0x1afa28['multipleBlocks']=_0x3e33b9['is']('range'),_0x173a13=_0x173a13||Kt(_0x1afa28);const _0x5ec6f2=_0x586589['map'](_0x3cd1ff=>zt(_0x3cd1ff,this['_model'])),_0x1d15da=_0x3e33b9['is']('range')?_0x207fb9:_0x207fb9['map'](_0x1a74ea=>zt(_0x1a74ea,this['_model']));if(this['_trackingSessionId']&&(_0x2a8990['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x556ca7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x173a13,'accept');return this['forceDefaultExecution'](()=>_0x556ca7(_0x1d15da,_0x1afa28,_0x2a8990)),null;}_0x5ec6f2['push'](..._0x1d15da);let _0x4f19af=!0x0;for(const _0x55b4a7 of _0x5ec6f2)if(!this['_rangeIsInLocalUserInsertion'](_0x55b4a7)){_0x4f19af=!0x1;break;}if(_0x4f19af&&'always'!==this['_trackFormatChanges']){const _0x4eac9e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x173a13,'accept');return this['forceDefaultExecution'](()=>_0x4eac9e(_0x1d15da,_0x1afa28,_0x2a8990)),null;}const _0x24eccd=this['editor']['plugins']['get']('Users')['me'];for(const _0x394bae of this['getSuggestions']()){if(_0x394bae['author']['id']!=_0x24eccd['id'])continue;if('formatBlock'!=_0x394bae['type']||_0x394bae['data']['formatGroupId']!=_0x1afa28['formatGroupId'])continue;if(!Xt(_0x394bae,_0x2a8990))continue;const _0x32e9b0=_0x394bae['subType']==_0x173a13;for(let _0x4ac0fa=0x0;_0x4ac0fa<_0x1d15da['length'];_0x4ac0fa++){const _0x404bc4=_0x1d15da[_0x4ac0fa];for(const _0xf7e279 of _0x394bae['getMarkers']()){const _0x9cdefb=_0xf7e279['getRange']();if(_0x404bc4['isEqual'](_0x9cdefb)){_0x32e9b0?(_0x1d15da['splice'](_0x4ac0fa,0x1),_0x4ac0fa--):_0x394bae['removeMarker'](_0xf7e279['name']);break;}}}}if(0x0==_0x1d15da['length'])return null;const _0x559af2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x173a13,'join');for(const _0x4c7b48 of this['getSuggestions']())if(_0x4c7b48['author']['id']==_0x24eccd['id']&&'formatBlock'==_0x4c7b48['type']&&_0x4c7b48['data']['formatGroupId']==_0x1afa28['formatGroupId']&&_0x4c7b48['subType']==_0x173a13&&Xt(_0x4c7b48,_0x2a8990)&&(_0x559af2(_0x4c7b48['getRanges'](),_0x1d15da)||_0x559af2(_0x1d15da,_0x4c7b48['getRanges']()))){for(const _0x3a4189 of _0x1d15da)_0x4c7b48['addRange'](_0x3a4189);return _0x4c7b48;}const _0x589652=_0x3c2271(),_0x470011=_0x24eccd['id'],_0x12374b='formatBlock:'+_0x173a13,_0x1a6281=this['_setSuggestionData']({'id':_0x589652,'type':_0x12374b,'data':_0x1afa28,'createdAt':new Date(),'authorId':_0x470011,'attributes':_0x2a8990});for(const _0x1c0e6a of _0x1d15da)this['_addSuggestionMarker'](_0x12374b,_0x589652,_0x470011,_0x1c0e6a,o['getMultiRangeId']());return _0x1a6281;}['markDeletion'](_0x411017,_0x22bc25=null,_0x3080ae={}){if(_0x411017['isCollapsed'])return null;const _0x282019=this['editor']['plugins']['get']('Users')['me'],_0x435f8c=new _0x128be7(_0x411017['start'],_0x411017['end']);this['_trackingSessionId']&&(_0x3080ae['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x599a5b,meta:_0x43c9f8}of this['_findSuggestions'](_0x435f8c,'insertion'))if(_0x43c9f8['isOwn']&&!_0x43c9f8['isNextTo']){if(_0x599a5b['isMultiRange']){const _0x173e94=_0x599a5b['getRanges']()['filter'](_0x3eb235=>'$graveyard'!=_0x3eb235['root']['rootName']);_0x173e94['every'](_0x4b0ca4=>_0x435f8c['containsRange'](_0x4b0ca4,!0x0))&&_0x599a5b['discard']();if(_0x173e94['some'](_0x5313fe=>_0x5313fe['containsRange'](_0x435f8c,!0x0))){const _0x11986a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x22bc25,'accept');return this['forceDefaultExecution'](()=>_0x11986a([_0x435f8c],null,_0x3080ae)),null;}}else{const _0x46a7d3=_0x435f8c['getIntersection'](_0x599a5b['getFirstRange']());null!==_0x46a7d3&&_0x599a5b['_onDiscard']([_0x46a7d3],null,_0x3080ae);}}if(_0x435f8c['detach'](),_0x435f8c['isCollapsed']||'$graveyard'==_0x435f8c['root']['rootName'])return null;let _0x18818c=null,_0x4a2a54=_0x435f8c['start'],_0x30a2f6=_0x435f8c['end'];const _0x210ccd=this['_findSuggestions'](_0x435f8c,'deletion');for(const {suggestion:_0x3cfde2,meta:_0x282f59}of _0x210ccd){const _0x7a1ccb=this['_model']['createRange'](_0x4a2a54,_0x30a2f6);if(_0x282f59['isOwn']&&(this['_mergeNestedSuggestions']||!_0x282f59['containsRangeInObject']&&!_0x282f59['isInsideObject'])){if(_0x3cfde2['isMultiRange']){if(!Xt(_0x3cfde2,_0x3080ae))continue;let _0x3c6ec8=!0x0;for(const _0x131187 of _0x3cfde2['getRanges']()){if(_0x131187['containsRange'](_0x7a1ccb,!0x0))return _0x3cfde2;_0x7a1ccb['containsRange'](_0x131187)||(_0x3c6ec8=!0x1);}_0x3c6ec8&&_0x3cfde2['discard']();}else{const _0x39667e=_0x3cfde2['getFirstRange']();if(_0x39667e['containsRange'](_0x7a1ccb,!0x0))return _0x3cfde2;if(!Xt(_0x3cfde2,_0x3080ae)){_0x7a1ccb['containsRange'](_0x39667e)?_0x3cfde2['removeMarkers']():_0x39667e['containsPosition'](_0x4a2a54)?_0x4a2a54=_0x39667e['end']:_0x39667e['containsPosition'](_0x30a2f6)&&(_0x30a2f6=_0x39667e['start']);continue;}_0x4a2a54=_0x4a2a54['isBefore'](_0x39667e['start'])?_0x4a2a54:_0x39667e['start'],_0x30a2f6=_0x30a2f6['isAfter'](_0x39667e['end'])?_0x30a2f6:_0x39667e['end'],_0x3080ae=Object['assign']({},_0x3cfde2['attributes']),_0x18818c?_0x39667e['start']['isBefore'](_0x18818c['getFirstRange']()['start'])?(_0x18818c['removeMarkers'](),_0x18818c=_0x3cfde2):_0x3cfde2['removeMarkers']():_0x18818c=_0x3cfde2;}}}if(_0x18818c)return this['_setSuggestionRange'](_0x18818c,this['_model']['createRange'](_0x4a2a54,_0x30a2f6)),_0x18818c;{const _0x482665=_0x3c2271(),_0x283754=this['_model']['createRange'](_0x4a2a54,_0x30a2f6),_0x2cd24e=_0x282019['id'],_0x3ef41c=_0x22bc25?'deletion:'+_0x22bc25:'deletion',_0x476b85=this['_setSuggestionData']({'id':_0x482665,'type':_0x3ef41c,'createdAt':new Date(),'authorId':_0x2cd24e,'attributes':_0x3080ae});return this['_addSuggestionMarker'](_0x3ef41c,_0x482665,_0x2cd24e,_0x283754),_0x476b85;}}['markMultiRangeDeletion'](_0x4b22f0,_0x35f42d='multi',_0x42e9c1={}){const _0x2f5279=this['editor']['plugins']['get']('Users')['me'],_0x44a46e=_0x4b22f0['map'](_0x2b42c3=>new _0x128be7(_0x2b42c3['start'],_0x2b42c3['end'])),_0x570653=new Set();this['_trackingSessionId']&&(_0x42e9c1['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x538e6b,meta:_0x3c3c84}of this['_findSuggestions'](_0x44a46e,'insertion'))_0x3c3c84['isOwn']&&!_0x3c3c84['isNextTo']&&_0x570653['add'](_0x538e6b);for(const _0xccab84 of _0x570653)if(_0xccab84['isMultiRange']){const _0x3291b2=_0xccab84['getRanges']();(!_0xccab84['attributes']||!_0xccab84['attributes']['skipNestingCheck'])&&(_0x3291b2['every'](_0x376d53=>_0x44a46e['some'](_0x225875=>_0x225875['containsRange'](_0x376d53,!0x0)))&&_0xccab84['discard']());if(_0x44a46e['every'](_0x256b18=>_0x3291b2['some'](_0x13cd90=>_0x13cd90['containsRange'](_0x256b18,!0x0)))){const _0x593dff=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35f42d,'accept');return this['forceDefaultExecution'](()=>_0x593dff(_0x4b22f0,null,_0x42e9c1)),null;}}else{const _0x1c0abb=_0xccab84['getFirstRange']();_0x44a46e['some'](_0x543d17=>_0x543d17['containsRange'](_0x1c0abb,!0x0))&&_0xccab84['discard']();if(_0x44a46e['every'](_0x474f80=>_0x1c0abb['containsRange'](_0x474f80,!0x0))){const _0xaacedb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35f42d,'accept');return this['forceDefaultExecution'](()=>_0xaacedb(_0x44a46e,null,_0x42e9c1)),null;}}const _0x23916d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x35f42d,'join');let _0x1c18c5=null;for(const _0x4746ea of this['getSuggestions']())if(_0x4746ea['author']['id']==_0x2f5279['id']&&_0x4746ea['isInContent']&&'deletion'==_0x4746ea['type']&&_0x4746ea['subType']==_0x35f42d&&Xt(_0x4746ea,_0x42e9c1)&&(_0x23916d(_0x4746ea['getRanges'](),_0x44a46e)||_0x23916d(_0x44a46e,_0x4746ea['getRanges']()))){if(_0x1c18c5){if(_0x4746ea['commentThread']&&_0x4746ea['commentThread']['length'])continue;for(const _0x2dab9a of _0x4746ea['getRanges']())_0x1c18c5['isIntersectingWithRange'](_0x2dab9a)||_0x1c18c5['addRange'](_0x2dab9a);_0x4746ea['removeMarkers']();}else{_0x1c18c5=_0x4746ea;for(const _0x37a544 of _0x44a46e)_0x4746ea['isIntersectingWithRange'](_0x37a544)||_0x4746ea['addRange'](_0x37a544);}}if(_0x1c18c5)return _0x1c18c5;_0x570653['clear']();for(const {suggestion:_0x5dd2f4,meta:_0x54c00e}of this['_findSuggestions'](_0x44a46e,'deletion'))_0x54c00e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x54c00e['containsRangeInObject']&&!_0x54c00e['isInsideObject'])&&Xt(_0x5dd2f4,_0x42e9c1)&&_0x570653['add'](_0x5dd2f4);for(const _0x4e4208 of _0x570653){const _0x2d1888=_0x4e4208['getRanges']();if(!_0x42e9c1||!_0x42e9c1['skipNestingCheck']){if(_0x44a46e['every'](_0x365da8=>_0x2d1888['some'](_0x149a1b=>_0x149a1b['containsRange'](_0x365da8,!0x0))))return _0x4e4208;}(!_0x4e4208['attributes']||!_0x4e4208['attributes']['skipNestingCheck'])&&(_0x2d1888['every'](_0x2bbc07=>_0x44a46e['some'](_0x13bcc8=>_0x13bcc8['containsRange'](_0x2bbc07,!0x0)))&&_0x4e4208['discard']());}const _0x2d3bd8=_0x3c2271(),_0x4afa1e=_0x2f5279['id'],_0x53da79='deletion:'+_0x35f42d,_0x108581=this['_setSuggestionData']({'id':_0x2d3bd8,'type':_0x53da79,'createdAt':new Date(),'authorId':_0x4afa1e,'attributes':_0x42e9c1});for(const _0x4e4192 of _0x44a46e)_0x4e4192['detach'](),_0x4e4192['isCollapsed']||'$graveyard'==_0x4e4192['root']['rootName']||this['_addSuggestionMarker'](_0x53da79,_0x2d3bd8,_0x4afa1e,_0x4e4192,o['getMultiRangeId']());return _0x108581;}['markAttributeChange'](_0x4e7b15,_0xdfcc25,_0x36cc7f,_0x1f7a97,_0x5cb2dc){if(_0x4e7b15['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5b0c1f=this['editor']['plugins']['get']('Users')['me']['id'],_0x5c6835=Array['from'](this['_suggestions']['values']())['filter'](_0x47c9b2=>'attribute'==_0x47c9b2['type']&&_0x47c9b2['data']['key']==_0xdfcc25&&_0x47c9b2['isIntersectingWithRange'](_0x4e7b15));if(this['_trackingSessionId']&&(_0x5cb2dc['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x22b859=this['_findSuggestions'](_0x4e7b15,'insertion')['filter'](({meta:_0x2f82ee})=>_0x2f82ee['isOwn']&&!_0x2f82ee['isInsideObject']&&!_0x2f82ee['isNextTo'])['map'](({suggestion:_0x5f2245})=>_0x5f2245);_0x5c6835['unshift'](..._0x22b859);}const _0x8026d7=new Map([[_0x4e7b15,_0x36cc7f]]);for(const _0x1c8dd8 of _0x5c6835){const _0x4daaa4='attribute'==_0x1c8dd8['type']?_0x1c8dd8['data']['oldValue']:void 0x0,_0x13a653=_0x1c8dd8['getFirstRange'](),_0x7cd7d9=Array['from'](_0x8026d7['keys']())['find'](_0x16b945=>_0x16b945['isIntersecting'](_0x13a653));if(!_0x7cd7d9)continue;const _0x23e28b=_0x7cd7d9['getDifference'](_0x13a653);this['_isBlockAttribute'](_0xdfcc25)&&'insertion'==_0x1c8dd8['type']&&0x0!=_0x23e28b['length']||(_0x8026d7['delete'](_0x7cd7d9),_0x23e28b['forEach'](_0x20cae8=>{_0x8026d7['set'](_0x20cae8,_0x36cc7f);}),'insertion'!=_0x1c8dd8['type']&&_0x4daaa4!=_0x1f7a97&&_0x8026d7['set'](_0x7cd7d9['getIntersection'](_0x13a653),_0x4daaa4));}const _0x453876=[];for(const [_0x80a797,_0x2c8bdd]of _0x8026d7){const _0x5a248e=_0x3c2271(),_0x3a08fe={'key':_0xdfcc25,'oldValue':_0x2c8bdd,'newValue':_0x1f7a97};_0xdfcc25['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':_0xdfcc25});const _0x3d9748=('attribute:'+(_0xdfcc25+'|'+Kt({'newValue':_0x1f7a97})))['substring'](0x0,0x3c),_0x47fe4b=this['_setSuggestionData']({'id':_0x5a248e,'type':_0x3d9748,'data':_0x3a08fe,'createdAt':new Date(),'authorId':_0x5b0c1f,'attributes':_0x5cb2dc});_0x453876['push'](_0x47fe4b),this['_addSuggestionMarker'](_0x3d9748,_0x5a248e,_0x5b0c1f,_0x80a797);}return _0x453876;}['enableDefaultAttributesIntegration'](_0x285d14){this['enableCommand'](_0x285d14,(_0x516dfd,..._0x41c2c3)=>{this['_recordAttributeChanges'](()=>{_0x516dfd(..._0x41c2c3);});});}['registerBlockAttribute'](_0x10ff73){this['_blockAttributeKeys']['add'](_0x10ff73);}['registerInlineAttribute'](_0x47569c){this['_inlineAttributeKeys']['add'](_0x47569c);}['startTrackingSession'](_0x188c33){return this['_trackingSessionId']=void 0x0!==_0x188c33?_0x188c33:_0x3c2271(),this['_trackingSessionId'];}['_getAttributeKey'](_0x52011c){return'attribute'==_0x52011c['type']?_0x52011c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x43bfe8,_0x5eff89){const _0x1f3899=_0x43bfe8['getFirstMarker']();this['_model']['change'](_0x219436=>{_0x219436['updateMarker'](_0x1f3899,{'range':_0x5eff89});});}['_addThreadToSuggestion'](_0x42d959){const _0x57b0be=_0x42d959['id'],_0x4bbdc2=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x57b0be)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4bbdc2,'threadId':_0x57b0be,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x44d86e=this['_commentsRepository']['getCommentThread'](_0x57b0be);_0x44d86e['unbind']('isRemovable'),_0x44d86e['isRemovable']=!0x1,_0x42d959['commentThread']=_0x44d86e;}['_checkSuggestionCorrectness'](_0x579f81,_0x17a1a6,_0x5830b0,_0x12a22a){if(_0x579f81['type']!=_0x17a1a6||_0x579f81['subType']!=_0x5830b0||_0x579f81['creator']['id']!=_0x12a22a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x127c25('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x44db5e,_0x4936bd){const _0x85fb00=_0x44db5e['getFirstRange']();if(_0x4936bd['isEqual'](_0x85fb00))_0x44db5e['removeMarkers']();else{if(_0x85fb00['containsRange'](_0x4936bd)){const _0x421bc2=this['_model']['createPositionAt'](_0x4936bd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44db5e,this['_model']['createRange'](_0x85fb00['start'],_0x421bc2));const _0x349e06=_0x3c2271(),_0x2a9270=_0x44db5e['creator']['id'],_0x70abea=_0x44db5e['type']+':'+_0x44db5e['subType'];this['_setSuggestionData']({'id':_0x349e06,'type':_0x70abea,'createdAt':new Date(),'authorId':_0x2a9270,'data':_0x44db5e['data'],'attributes':_0x44db5e['attributes']});const _0x28be5d=this['_model']['createPositionAt'](_0x4936bd['end']['parent'],'after'),_0x1828bb=this['_model']['createRange'](_0x28be5d,_0x85fb00['end']);this['_addSuggestionMarker'](_0x70abea,_0x349e06,_0x2a9270,_0x1828bb);}else{if(_0x85fb00['containsPosition'](_0x4936bd['start'])){const _0x1f4143=this['_model']['createPositionAt'](_0x4936bd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44db5e,this['_model']['createRange'](_0x85fb00['start'],_0x1f4143));}else{const _0x410fb1=this['_model']['createPositionAt'](_0x4936bd['end']['parent'],'after');this['_setSuggestionRange'](_0x44db5e,this['_model']['createRange'](_0x410fb1,_0x85fb00['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x236b1c){for(const {suggestion:_0x37f695,meta:_0x54930b}of this['_findSuggestions'](_0x236b1c,'insertion')){if(!_0x54930b['isOwn'])continue;const _0x706bb3=_0x37f695['getRanges']();for(const _0x1c721d of _0x706bb3)if(!_0x236b1c['getDifference'](_0x1c721d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5c42ff){const _0x3d51ee=this['editor']['plugins']['get']('Users')['getUser'](_0x5c42ff);if(!_0x3d51ee)throw new _0x127c25('track-changes-user-not-found',this);return _0x3d51ee;}['_getExternalAuthor'](_0x12f09f){const _0xbd0163=this['editor']['plugins']['get']('Users'),_0x30d085=_0x1ee75b('external:'+_0x12f09f),_0x38761f=_0xbd0163['getUser'](_0x30d085);return _0x38761f||_0xbd0163['addUser']({'id':_0x30d085,'name':_0x12f09f});}['_createSuggestion'](_0x1188c5,_0x227880,_0x1bffe7,_0x2929f9,_0x3bb9fa,_0x220186){const _0x1aeb46=this['_getAuthorFromId'](_0x2929f9),_0xce6a47=this['_suggestionFactory']['buildSuggestion'](_0x1188c5,_0x227880,_0x1bffe7,_0x1aeb46,_0x3bb9fa,_0x48d32a=>{this['_updateSuggestionData'](_0x1bffe7,{'attributes':_0x48d32a});const _0x586235=this['getSuggestion'](_0x1bffe7);this['_joinWithAdjacentSuggestions'](new Set([_0x586235])),this['_refreshSuggestionsChain'](new Set([_0x586235]));},_0x220186);return this['listenTo'](_0xce6a47,'accept',()=>{this['_updateSuggestionData'](_0x1bffe7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xce6a47,'discard',()=>{this['_updateSuggestionData'](_0x1bffe7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1bffe7,_0xce6a47),this['_suggestionState']['set'](_0xce6a47,'notReady'),_0xce6a47;}['_splitMarkerName'](_0x3ab8ab){const _0x36a2e9=_0x3ab8ab['split'](':');return{'group':_0x36a2e9[0x0],'type':_0x36a2e9[0x1],'subType':_0x36a2e9['length']>=0x5?_0x36a2e9[0x2]:null,'id':_0x36a2e9['length']<0x5?_0x36a2e9[0x2]:_0x36a2e9[0x3],'authorId':_0x36a2e9['length']<0x5?_0x36a2e9[0x3]:_0x36a2e9[0x4],'markerCount':0x6==_0x36a2e9['length']?_0x36a2e9[0x5]:null};}['_breakSuggestionMarker'](_0x5c8e21,_0x236a4c,_0xe15c90){const _0x38e913=_0x5c8e21['getFirstRange'](),_0x16a6ed=_0x38e913['start'],_0x429433=_0x38e913['end'];this['_setSuggestionRange'](_0x5c8e21,this['_model']['createRange'](_0x16a6ed,_0x236a4c));const _0x5776d1=_0x3c2271(),_0x4e03fe=_0x5c8e21['creator']['id'],_0x36b51=_0x5c8e21['type']+(_0x5c8e21['subType']?':'+_0x5c8e21['subType']:'');this['_setSuggestionData']({'id':_0x5776d1,'type':_0x36b51,'createdAt':new Date(),'authorId':_0x4e03fe,'originalSuggestionId':_0x5c8e21['_originalSuggestionId']||_0x5c8e21['id'],'attributes':_0x5c8e21['attributes'],'data':_0x5c8e21['data']});const _0x301629=this['_getAttributeKey'](_0x5c8e21);('formatBlock'==_0x5c8e21['type']||_0x301629&&this['_isBlockAttribute'](_0x301629))&&(_0xe15c90=this['_model']['createPositionBefore'](_0xe15c90['parent'])),this['_addSuggestionMarker'](_0x36b51,_0x5776d1,_0x4e03fe,this['_model']['createRange'](_0xe15c90,_0x429433));}['_findSuggestions'](_0x2c35fc,_0x24645f=null){const _0x446276=[],_0x54ec02=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2c35fc)||(_0x2c35fc=[_0x2c35fc]);for(const _0x408ee4 of this['getSuggestions']()){if(!_0x408ee4['isInContent'])continue;if(_0x24645f&&_0x408ee4['type']!=_0x24645f)continue;let _0x64f44f=!0x1;for(const _0x410cb4 of _0x408ee4['getRanges']()){for(const _0x47f36b of _0x2c35fc){const _0x2fb969=_0x47f36b['start']['isEqual'](_0x410cb4['end'])||_0x47f36b['end']['isEqual'](_0x410cb4['start']);if(_0x2fb969||_0x47f36b['getIntersection'](_0x410cb4)){const _0x158664=_0x47f36b['containsRange'](_0x410cb4)&&Gt(this['_model']['schema'],_0x410cb4['start'],_0x47f36b),_0x3caf1c=_0x410cb4['containsRange'](_0x47f36b)&&Gt(this['_model']['schema'],_0x47f36b['start'],_0x410cb4);_0x446276['push']({'suggestion':_0x408ee4,'meta':{'isOwn':_0x54ec02==_0x408ee4['author'],'isNextTo':_0x2fb969,'isInsideObject':_0x158664,'containsRangeInObject':_0x3caf1c}}),_0x64f44f=!0x0;break;}}if(_0x64f44f)break;}}return _0x446276;}['_addSuggestionMarker'](_0x11744d,_0x2543bd,_0x5963fc,_0x14719d,_0x15e284){this['_model']['change'](_0x226cc9=>{let _0x47d8d1='suggestion:'+_0x11744d+':'+_0x2543bd+':'+_0x5963fc;_0x15e284&&(_0x47d8d1=_0x47d8d1+':'+_0x15e284),_0x226cc9['addMarker'](_0x47d8d1,{'range':_0x14719d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3385e4){const _0x307b03=_0x3385e4['previous'],_0x57c873=_0x3385e4['next'];_0x3385e4['previous']=null,_0x3385e4['next']=null,null!=_0x307b03&&_0x307b03['next']==_0x3385e4&&(_0x307b03['next']=_0x57c873),null!=_0x57c873&&_0x57c873['previous']==_0x3385e4&&(_0x57c873['previous']=_0x307b03),'ready'==this['_suggestionState']['get'](_0x3385e4)&&(this['_suggestionState']['set'](_0x3385e4,'removed'),this['fire']('suggestionUnloaded',_0x3385e4,_0x307b03,_0x57c873));}['_setSuggestionData'](_0x33e764){const _0x5cbc29=_0x33e764['id'],_0x5c9cce=this['addSuggestionData'](_0x33e764);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1458dc=this['editor']['plugins']['get']('PendingActions'),_0x28bfbb=_0x5c9cce['hasComments'],_0x551a98=_0x5c9cce['subType']?_0x5c9cce['type']+':'+_0x5c9cce['subType']:_0x5c9cce['type'],_0x1c0297=this['editor']['locale'],_0x11b674=_0x1458dc['add'](c(_0x1c0297,'PENDING_ACTION_SUGGESTION')),_0xcecb59={'id':_0x5cbc29,'type':_0x551a98,'hasComments':_0x28bfbb,'data':_0x33e764['data']||null,'originalSuggestionId':_0x33e764['originalSuggestionId']||null,'attributes':_0x5c9cce['attributes']};this['_adapter']['addSuggestion'](_0xcecb59)['then'](_0x208a93=>{_0x5c9cce['_saved']=!0x0,_0x1458dc['remove'](_0x11b674),_0x208a93&&_0x208a93['createdAt']&&(this['_suggestions']['get'](_0x5cbc29)['createdAt']=_0x208a93['createdAt']);})['catch'](_0x498381=>{throw _0x4e4bd5('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5c9cce['discard']();}),_0x5c9cce['stopListening'](),this['_suggestions']['delete'](_0x5c9cce['id']),this['_suggestionState']['delete'](_0x5c9cce),_0x498381;});}return _0x5c9cce;}['_isBlockAttribute'](_0x2a0193){return this['_blockAttributeKeys']['has'](_0x2a0193);}['_updateSuggestionData'](_0x12015e,_0x41f0b3){const _0x5f09c0=this['editor']['plugins']['get']('PendingActions'),_0x4dc064=this['getSuggestion'](_0x12015e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4dc064['_saved']){const _0x4aef49=_0x5f09c0['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x12015e,_0x41f0b3)['then'](()=>{_0x5f09c0['remove'](_0x4aef49);});}else _0x4dc064['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x12015e,_0x41f0b3);});}}['_getSuggestionData'](_0x1cc7b8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x127c25('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1cc7b8);}['_handleNewSuggestionMarker'](_0x2c134f){const {id:_0x58f233,type:_0x3d6f13,subType:_0x425d35,authorId:_0x109150}=this['_splitMarkerName'](_0x2c134f),_0x5163d4=this['_suggestions']['get'](_0x58f233)||this['_createSuggestion'](_0x3d6f13,_0x425d35,_0x58f233,_0x109150,{});switch(this['_checkSuggestionCorrectness'](_0x5163d4,_0x3d6f13,_0x425d35,_0x109150),this['_suggestionState']['get'](_0x5163d4)){case'notReady':this['_getSuggestionData'](_0x58f233)['then'](_0x2dd863=>{let _0x44f793=Promise['resolve']();_0x2dd863['hasComments']&&(_0x44f793=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x58f233})),_0x44f793['then'](()=>{this['addSuggestionData'](_0x2dd863)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5163d4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x58f233,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5163d4,'ready'),this['fire']('suggestionLoaded',_0x5163d4);break;case'ready':this['fire']('suggestionChanged',_0x5163d4);}return _0x5163d4['addMarkerName'](_0x2c134f),_0x5163d4;}['_refreshSuggestionsChain'](_0x2142f7){const _0x30c176=Array['from'](_0x2142f7),_0x188f17=_0x30c176['filter'](_0x12ffb3=>'attribute'==_0x12ffb3['type']);this['_refreshAttributeSuggestionsChain'](_0x188f17);const _0x553173=_0x30c176['filter'](_0x460284=>!_0x460284['isMultiRange']&&'attribute'!=_0x460284['type']),_0xa7c491=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ee06d=>!_0x2ee06d['isMultiRange']&&'attribute'!=_0x2ee06d['type']),_0x1de958=_0xa7c491['filter'](_0x103ca4=>!_0x2142f7['has'](_0x103ca4)),_0x44af8e=new Map(_0xa7c491['map'](_0xb5d1f=>[_0xb5d1f,this['_suggestionFactory']['getSuggestionCallback'](_0xb5d1f['type'],_0xb5d1f['subType'],'chain')])),_0x3f2492=new Map(_0xa7c491['map'](_0x43224f=>[_0x43224f,_0x43224f['getFirstRange']()])),_0x1413cf=new Set(),_0x261b92=new Set();for(let _0xba7b49=0x0;_0xba7b49<_0x553173['length'];_0xba7b49++)_0x59ee66(_0x553173[_0xba7b49],_0x553173,_0xba7b49+0x1);for(let _0x1181c4=0x0;_0x1181c4<_0x553173['length'];_0x1181c4++)_0x59ee66(_0x553173[_0x1181c4],_0x1de958,0x0);const _0x26b905=new Set();for(let _0x508b05=0x0;_0x508b05<_0x553173['length'];_0x508b05++){const _0x59d153=_0x553173[_0x508b05];!_0x261b92['has'](_0x59d153)&&_0x59d153['previous']&&(_0x26b905['add'](_0x59d153['previous']),_0x59d153['previous']['next']===_0x59d153&&(_0x59d153['previous']['next']=null),_0x59d153['previous']=null),!_0x1413cf['has'](_0x59d153)&&_0x59d153['next']&&(_0x26b905['add'](_0x59d153['next']),_0x59d153['next']['previous']===_0x59d153&&(_0x59d153['next']['previous']=null),_0x59d153['next']=null);}function _0x59ee66(_0x2aabb8,_0x5ae92d,_0x2e53c1){for(let _0x561244=_0x2e53c1;_0x561244<_0x5ae92d['length'];_0x561244++){const _0x1eb7dc=_0x17438c(_0x2aabb8,_0x5ae92d[_0x561244]);_0x1eb7dc&&(_0x1eb7dc[0x0]['next']=_0x1eb7dc[0x1],_0x1eb7dc[0x1]['previous']=_0x1eb7dc[0x0],_0x1413cf['add'](_0x1eb7dc[0x0]),_0x261b92['add'](_0x1eb7dc[0x1]));}}function _0x17438c(_0x43b2f5,_0x30b036){if(_0x43b2f5['author']['id']!==_0x30b036['author']['id'])return null;const _0xec19a7=_0x44af8e['get'](_0x43b2f5)(_0x43b2f5,_0x30b036,_0x3f2492['get'](_0x43b2f5),_0x3f2492['get'](_0x30b036));if(!_0xec19a7)return null;return _0x44af8e['get'](_0x30b036)(_0x43b2f5,_0x30b036,_0x3f2492['get'](_0x43b2f5),_0x3f2492['get'](_0x30b036))?_0xec19a7[0x1]['commentThread']&&_0xec19a7[0x1]['commentThread']['length']?null:_0xec19a7:null;}_0x26b905['size']&&this['_refreshSuggestionsChain'](_0x26b905);}['_refreshAttributeSuggestionsChain'](_0x18b210){if(0x0==_0x18b210['length'])return;const _0x5a3fd0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x513796=>'attribute'==_0x513796['type']&&_0x513796['_isDataLoaded']),_0x374e2d=[],_0x48238b=new Map();for(const _0xcdf061 of _0x5a3fd0){const _0x55519e=_0x1ee75b(_0xcdf061['attributes']);_0x48238b['has'](_0x55519e)||(_0x48238b['set'](_0x55519e,_0x374e2d['length']),_0x374e2d['push']([]));const _0x283305=_0x48238b['get'](_0x55519e);_0x374e2d[_0x283305]['push'](_0xcdf061);}!(function(){_0x374e2d['sort']((_0x355572,_0x580487)=>{const _0x70fd22=_0x355572[0x0]['createdAt'],_0xff942c=_0x580487[0x0]['createdAt'];return _0x70fd22==_0xff942c?_0x355572[0x0]['attributes']['groupId']<_0x580487[0x0]['attributes']['groupId']?-0x1:0x1:_0x70fd22<_0xff942c?-0x1:0x1;});for(const _0x17028e of _0x374e2d)_0x17028e['sort']((_0xe44b0e,_0x233828)=>_0xe44b0e['id']<_0x233828['id']?-0x1:0x1);}());for(let _0x519b7a=0x0;_0x519b7a<_0x374e2d['length'];_0x519b7a++){if(0x0==_0x374e2d[_0x519b7a]['length'])continue;const _0x4e14a8=[];for(let _0x4adf6a=_0x519b7a+0x1;_0x4adf6a<_0x374e2d['length'];_0x4adf6a++)0x0!=_0x374e2d[_0x4adf6a]['length']&&_0x9205f1(_0x374e2d[_0x519b7a],_0x374e2d[_0x4adf6a])&&_0x4e14a8['push'](_0x4adf6a);for(const _0x3ceba9 of _0x4e14a8)_0x374e2d[_0x519b7a]=_0x374e2d[_0x519b7a]['concat'](_0x374e2d[_0x3ceba9]),_0x374e2d[_0x3ceba9]=[];}for(const _0x2f8a62 of _0x374e2d)for(let _0x805b23=0x0;_0x805b23<_0x2f8a62['length'];_0x805b23++){const _0x498a09=_0x2f8a62[_0x805b23+0x1]||null;_0x2f8a62[_0x805b23]['next']!==_0x498a09&&(_0x2f8a62[_0x805b23]['next']=_0x498a09);}for(const _0x21891c of _0x374e2d)for(let _0x5a86dd=0x0;_0x5a86dd<_0x21891c['length'];_0x5a86dd++){const _0x1361fe=_0x21891c[_0x5a86dd-0x1]||null;_0x21891c[_0x5a86dd]['previous']!==_0x1361fe&&(_0x21891c[_0x5a86dd]['previous']=_0x1361fe);}function _0x9205f1(_0x2b61ea,_0x1316b4){if(_0x2b61ea[0x0]['attributes']['groupId']!==_0x1316b4[0x0]['attributes']['groupId']&&_0x2b61ea[0x0]['author']!==_0x1316b4[0x0]['author'])return!0x1;if(!function(_0x4e2932,_0x23e949){if(!_0x4e2932['hasComments']&&!_0x23e949['hasComments'])return!0x0;if(_0x4e2932['hasComments']&&_0x23e949['hasComments'])return!0x1;if(_0x4e2932['hasComments']&&_0x23e949['createdAt']<_0x4e2932['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x23e949['hasComments']&&_0x4e2932['createdAt']<_0x23e949['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2b61ea[0x0],_0x1316b4[0x0]))return!0x1;const _0x263690=Ft(_0x2b61ea[0x0]['attributes'],['groupId','trackingSessionId']),_0x1f692d=Ft(_0x1316b4[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x164cf0(_0x263690,_0x1f692d))return!0x1;if(_0x2b61ea[0x0]['attributes']['groupId']==_0x1316b4[0x0]['attributes']['groupId'])return!0x0;if(_0x2b61ea[0x0]['attributes']['trackingSessionId']!==_0x1316b4[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2b61ea['every'](_0x28c9e5=>_0x1316b4['some'](_0x44e1c5=>_0x28c9e5['getFirstRange']()['isEqual'](_0x44e1c5['getFirstRange']())))&&_0x1316b4['every'](_0x2cdde4=>_0x2b61ea['some'](_0x35dc2f=>_0x2cdde4['getFirstRange']()['isEqual'](_0x35dc2f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x247cf2){const _0x4a1960=Array['from'](_0x247cf2),_0x3886ac=this['getSuggestions']({'skipNotAttached':!0x0}),_0x348337=_0x3886ac['filter'](_0x4f5f6e=>!_0x247cf2['has'](_0x4f5f6e)),_0x3255c8=new Map(_0x4a1960['map'](_0x4246a4=>[_0x4246a4,this['_suggestionFactory']['getSuggestionCallback'](_0x4246a4['type'],_0x4246a4['subType'],'join')])),_0xa51af0=new Map(_0x3886ac['map'](_0xf14f0=>[_0xf14f0,_0xf14f0['getRanges']()]));for(let _0x3d7fbf=0x0;_0x3d7fbf<_0x4a1960['length'];_0x3d7fbf++){if(_0x4219b5(this,_0x4a1960[_0x3d7fbf],_0x4a1960,_0x3d7fbf+0x1))return!0x0;}for(let _0x4e1f19=0x0;_0x4e1f19<_0x4a1960['length'];_0x4e1f19++){if(_0x4219b5(this,_0x4a1960[_0x4e1f19],_0x348337,0x0))return!0x0;}return!0x1;function _0x4219b5(_0x3722d2,_0x138059,_0x50f242,_0xa20557){for(let _0x5c24f4=_0xa20557;_0x5c24f4<_0x50f242['length'];_0x5c24f4++){const _0x1a743f=_0x50f242[_0x5c24f4];if(_0x1a743f['type']!==_0x138059['type']||_0x1a743f['author']['id']!==_0x138059['author']['id']||_0x1a743f['subType']!==_0x138059['subType'])continue;if(!Qt(_0x138059,_0x1a743f))continue;if('attribute'==_0x138059['type']&&_0x138059['data']['oldValue']!=_0x1a743f['data']['oldValue'])continue;if('attribute'==_0x138059['type']&&_0x3722d2['_isBlockAttribute'](_0x138059['data']['key']))continue;if('formatBlock'==_0x138059['type']){const _0xaf447d=_0x3722d2['editor']['model'],_0x4166bf=_0x138059['getContainedElement']();if(_0x4166bf&&(_0xaf447d['schema']['isObject'](_0x4166bf)||_0xaf447d['schema']['isLimit'](_0x4166bf)))continue;}const _0x108e24=_0x3255c8['get'](_0x138059),_0x28c169=_0xa51af0['get'](_0x138059),_0x52e4aa=_0xa51af0['get'](_0x1a743f),_0x50289d=_0x138059['commentThread']&&_0x138059['commentThread']['length'],_0x5f29b4=_0x1a743f['commentThread']&&_0x1a743f['commentThread']['length'];if(!_0x50289d&&_0x108e24(_0x52e4aa,_0x28c169))return _0x3722d2['_joinSuggestions'](_0x1a743f,_0x138059),_0xa51af0['delete'](_0x138059),!0x0;if(!_0x5f29b4&&_0x108e24(_0x28c169,_0x52e4aa))return _0x3722d2['_joinSuggestions'](_0x138059,_0x1a743f),_0xa51af0['delete'](_0x1a743f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2ae8c5,_0x383a95){if(_0x2ae8c5['isMultiRange']){for(const _0x2bcb7f of _0x383a95['getRanges']())_0x2ae8c5['addRange'](_0x2bcb7f);}else{const _0x2fab95=_0x383a95['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2ae8c5,this['_model']['createRange'](_0x2ae8c5['getFirstRange']()['start'],_0x2fab95));}_0x383a95['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3f51ce,_0x530560,_0x200e09){const _0x109d7f=_0x3f51ce['startsWith']('format')||_0x3f51ce['startsWith']('attribute')?'FORMATTING':_0x3f51ce['toUpperCase']();return c(this['editor']['locale'],_0x530560+'_'+_0x109d7f+'_SUGGESTION_ANNOUNCEMENT',_0x200e09);}['_initAriaMarkerChangeAnnouncements'](){const _0x2fdf94=this['editor'];if(!_0x2fdf94['ui'])return;const {ariaLiveAnnouncer:_0x847944}=_0x2fdf94['ui'];_0x3d4d11(this['_model'],({left:_0x23ae6b,entered:_0x22a906})=>{for(const _0x1d0142 of _0x23ae6b){const {group:_0x986961,type:_0x32fcad}=this['_splitMarkerName'](_0x1d0142['name']);if('suggestion'===_0x986961){_0x847944['announce'](this['_getMarkerAnnouncementText'](_0x32fcad,'LEAVE'));break;}}for(const _0x35098b of _0x22a906){const {group:_0xce3312,type:_0x5e562e}=this['_splitMarkerName'](_0x35098b['name']);if('suggestion'===_0xce3312){_0x847944['announce'](this['_getMarkerAnnouncementText'](_0x5e562e,'ENTER',_0x209177(_0x45906b)));break;}}});}['_processAttributeChanges'](_0x14d31a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x39d040=this['editor'],_0x13930f=_0x39d040['model']['document']['differ']['getChanges']();if(0x0==_0x13930f['length'])return!0x1;const _0x362881=[],_0x2c4eff=_0x13930f['filter'](_0x126a1c=>'attribute'==_0x126a1c['type']),_0x4948fa=_0x13930f['filter'](_0x53f948=>'insert'==_0x53f948['type']&&'$text'!=_0x53f948['name']),_0x1ef462=_0x13930f['filter'](_0x529195=>'remove'==_0x529195['type']&&'$text'!=_0x529195['name']);for(const _0x322d0a of _0x2c4eff)_0x362881['push']({'key':_0x322d0a['attributeKey'],'newValue':_0x322d0a['attributeNewValue'],'oldValue':_0x322d0a['attributeOldValue'],'range':qt(_0x322d0a['range'],_0x39d040['model'])});for(const _0x416c5f of _0x4948fa){const _0xea91b3=_0x1ef462['find'](_0x3ffedf=>_0x3ffedf['position']['isEqual'](_0x416c5f['position']));_0xea91b3&&_0x362881['push']({'key':u,'newValue':_0x416c5f['name'],'oldValue':_0xea91b3['name'],'range':_0x39d040['model']['createRangeOn'](_0x416c5f['position']['nodeAfter'])});}return 0x0!=_0x362881['length']&&this['_reduceExistingSuggestions'](_0x14d31a,_0x362881);}['_processAttributeSuggestions'](_0x2ac070){let _0x85ab51=!0x1;const _0x3866a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5c52e5=>_0x5c52e5['data']['newRange']&&_0x5c52e5['name']['startsWith']('suggestion:attribute:'));for(const _0x415344 of _0x3866a){const {subType:_0x56f51f,id:_0x3f5067}=this['_splitMarkerName'](_0x415344['name']),_0x26ecb7=_0x56f51f['split']('|')[0x0];for(const _0x160a9e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x160a9e['id']!=_0x3f5067&&'attribute'==_0x160a9e['type']&&_0x160a9e['data']&&_0x160a9e['data']['key']==_0x26ecb7&&_0x160a9e['getFirstRange']()['isIntersecting'](_0x415344['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x160a9e,_0x415344['data']['newRange'],_0x2ac070),_0x85ab51=!0x0);}return _0x85ab51;}['_recordAttributeChanges'](_0x4d2c2f){this['_recordAttributeSuggestions']=!0x0,_0x4d2c2f();}['_isRegisteredAttribute'](_0x34ff7a){const _0xa2382f=this['_isBlockAttribute'](_0x34ff7a),_0x172913=this['_inlineAttributeKeys']['has'](_0x34ff7a);return _0xa2382f||_0x172913;}['_reduceExistingSuggestions'](_0x5985dd,_0x1cf482){if(0x0==_0x1cf482['length'])return!0x1;let _0x4b871b=!0x1;for(const _0xd90b15 of _0x1cf482){const _0x27af3a=this['_findSuggestions'](_0xd90b15['range'],'attribute')['filter'](_0x11e41c=>!_0x11e41c['meta']['isNextTo'])['map'](_0x26b4a8=>_0x26b4a8['suggestion']),_0x139a43=_0x1ee75b({'newValue':_0xd90b15['newValue']});_0x27af3a['filter'](_0x5460e4=>{const [_0x2639b7,_0x342f61]=_0x5460e4['subType']['split']('|');return _0x2639b7==_0xd90b15['key']&&_0x342f61!=_0x139a43;})['forEach'](_0x45da78=>{this['_reduceSuggestionAttributeRange'](_0x45da78,_0xd90b15['range'],_0x5985dd),_0x4b871b=!0x0;});}return _0x4b871b;}['_reduceSuggestionAttributeRange'](_0x9f24c4,_0x1a714f,_0x517c7f){const _0x49dd9c=_0x9f24c4['getFirstRange']()['getDifference'](_0x1a714f);0x0!==_0x49dd9c['length']?0x1!==_0x49dd9c['length']?this['_breakSuggestionMarker'](_0x9f24c4,_0x1a714f['start'],_0x1a714f['end']):this['_setSuggestionRange'](_0x9f24c4,_0x49dd9c[0x0]):_0x517c7f['removeMarker'](_0x9f24c4['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x55af1b){this['_editor']=_0x55af1b,this['_model']=_0x55af1b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2bbac8,_0x27495d,_0x1ebfae,_0x13bb9d,_0x284dbe,_0x2c5b1e,_0x107cf9){return new o(this['_model'],{'type':_0x2bbac8,'subType':_0x27495d,'id':_0x1ebfae,'originalSuggestionId':_0x107cf9,'author':_0x13bb9d,'creator':_0x13bb9d,'attributes':_0x284dbe,'onAttributesChange':_0x2c5b1e,'onAccept':(..._0x4c01f2)=>this['getSuggestionCallback'](_0x2bbac8,_0x27495d,'accept')(..._0x4c01f2),'onDiscard':(..._0x149a6b)=>this['getSuggestionCallback'](_0x2bbac8,_0x27495d,'discard')(..._0x149a6b)});}['registerCustomCallback'](_0x4f305f,_0x3a04a9,_0x143c6f,_0x410c12){const _0x347168=_0x4f305f+':'+_0x3a04a9+':'+_0x143c6f;this['_customCallbacks']['set'](_0x347168,_0x410c12);}['getSuggestionCallback'](_0x4f35ae,_0x396113,_0x475aac){const _0x32bc88=_0x4f35ae+':'+_0x396113+':'+_0x475aac;return this['_customCallbacks']['get'](_0x32bc88)||this['_defaultCallbacks']['get'](_0x4f35ae+':'+_0x475aac);}['_registerDefaultCallbacks'](){const _0x33039d=()=>!0x1,_0x583454=_0x3f2253=>{_0x3f2253['sort']((_0x5eaa6e,_0x2f2017)=>_0x5eaa6e['start']['isBefore'](_0x2f2017['start'])?0x1:-0x1),this['_model']['change'](_0x5ddcfb=>{for(const _0x2768c1 of _0x3f2253){let _0x3bd6a0;_0x3bd6a0=_0x2768c1['end']['isAtEnd']&&_0x2768c1['end']['parent']==_0x2768c1['start']['nodeAfter']?_0x5ddcfb['createSelection'](_0x2768c1['start']['nodeAfter'],'on'):_0x5ddcfb['createSelection'](_0x2768c1),this['_model']['deleteContent'](_0x3bd6a0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x47cfd7=(_0x4bec0b,_0x21bb3b)=>{_0x21bb3b&&this['_model']['change'](_0xaf94a0=>{const {commandName:_0x1e7d9d,commandParams:_0x47d0ba=[]}=_0x21bb3b,_0x2436ca=_0x4bec0b['map'](_0xd48f2a=>(Lt(_0xd48f2a)&&(_0xd48f2a=this['_model']['createRange'](_0xd48f2a['end'])),_0xd48f2a))['filter'](_0x2cef0a=>'$graveyard'!==_0x2cef0a['root']['rootName']);if(_0x2436ca['length']<0x1)return;const _0x204be2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1bf8ee=>_0x128be7['fromRange'](_0x1bf8ee));_0xaf94a0['setSelection'](_0x2436ca);for(const _0x4d6c5d of this['_editor']['commands']['commands']())_0x4d6c5d['refresh']();_0x47d0ba['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1e7d9d,..._0x47d0ba);const _0x4ebcca=_0x204be2['filter'](_0x4ecbbc=>'$graveyard'!=_0x4ecbbc['root']['rootName']);_0x4ebcca['length']>0x0&&_0xaf94a0['setSelection'](_0x4ebcca);for(const _0x56005e of _0x204be2)_0x56005e['detach']();});},_0x264745=(_0x3f4103,_0x4150c6)=>0x1==_0x3f4103['length']&&0x1==_0x4150c6['length']&&_0x3f4103[0x0]['end']['isEqual'](_0x4150c6[0x0]['start']),_0x24090e=(_0x168f81,_0xc1c74,_0x275dfa,_0x1aee86)=>Wt(_0x168f81,_0xc1c74,_0x275dfa,_0x1aee86)?[_0x168f81,_0xc1c74]:Wt(_0xc1c74,_0x168f81,_0x1aee86,_0x275dfa)?[_0xc1c74,_0x168f81]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x33039d),this['_defaultCallbacks']['set']('insertion:discard',_0x583454),this['_defaultCallbacks']['set']('insertion:join',_0x264745),this['_defaultCallbacks']['set']('insertion:chain',_0x24090e),this['_defaultCallbacks']['set']('deletion:accept',_0x583454),this['_defaultCallbacks']['set']('deletion:discard',_0x33039d),this['_defaultCallbacks']['set']('deletion:join',_0x264745),this['_defaultCallbacks']['set']('deletion:chain',_0x24090e),this['_defaultCallbacks']['set']('formatInline:accept',_0x47cfd7),this['_defaultCallbacks']['set']('formatInline:discard',_0x33039d),this['_defaultCallbacks']['set']('formatInline:join',_0x264745),this['_defaultCallbacks']['set']('formatInline:chain',_0x33039d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x47cfd7),this['_defaultCallbacks']['set']('formatBlock:discard',_0x33039d),this['_defaultCallbacks']['set']('formatBlock:join',_0x264745),this['_defaultCallbacks']['set']('formatBlock:chain',_0x33039d),this['_defaultCallbacks']['set']('attribute:accept',_0x33039d),this['_defaultCallbacks']['set']('attribute:discard',(_0x1f6665,_0x24972f)=>{if(!_0x24972f)return;const _0x22b94f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x32163a=>{if(_0x24972f['key']==u)for(const _0x5f122e of _0x1f6665){const _0x54cc62=_0x5f122e['start']['nodeAfter'],_0x422cf8=_0x24972f['oldValue'];_0x32163a['rename'](_0x54cc62,_0x422cf8);}else{if(_0x22b94f['_isBlockAttribute'](_0x24972f['key'])){for(const _0x50877b of _0x1f6665)void 0x0!==_0x24972f['oldValue']?_0x32163a['setAttribute'](_0x24972f['key'],_0x24972f['oldValue'],_0x50877b['start']['nodeAfter']):_0x32163a['removeAttribute'](_0x24972f['key'],_0x50877b['start']['nodeAfter']);}else{for(const _0x32aaad of _0x1f6665)_0x24972f['oldValue']?_0x32163a['setAttribute'](_0x24972f['key'],_0x24972f['oldValue'],_0x32aaad):_0x32163a['removeAttribute'](_0x24972f['key'],_0x32aaad);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x264745);}}function Gt(_0x2ed125,_0xd57743,_0x337d69){for(const _0x25d97d of _0xd57743['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x25d97d['root']==_0x25d97d)return!0x1;if(!_0x337d69['containsItem'](_0x25d97d))return!0x1;if(_0x2ed125['isObject'](_0x25d97d)||_0x2ed125['isLimit'](_0x25d97d))return!0x0;}return!0x1;}function Lt(_0x343d04){return _0x343d04['end']['parent']==_0x343d04['start']['nodeAfter']&&_0x343d04['end']['isAtStart'];}function Jt(_0x51620a,_0x398c8f,_0x17790d,_0x50f944){const _0x4f8f8c=_0xf08fda=>!_0xf08fda['item']['is']('$textProxy')&&!_0x50f944['isObject'](_0xf08fda['item']),_0x214723=_0x51620a['start']['getLastMatchingPosition'](_0x4f8f8c),_0x3b20da=_0x51620a['end']['getLastMatchingPosition'](_0x4f8f8c,{'direction':'backward'});return(!_0x51620a['start']['isEqual'](_0x214723)||!_0x51620a['end']['isEqual'](_0x3b20da))&&(_0x214723['isBefore'](_0x3b20da)?_0x17790d['updateMarker'](_0x398c8f,{'range':_0x17790d['createRange'](_0x214723,_0x3b20da)}):_0x17790d['removeMarker'](_0x398c8f),!0x0);}function Kt(_0x436052){return _0x1ee75b(_0x436052);}function Ht(_0x47cde7){const _0x2217b7=_0x47cde7['start']['nodeAfter'];return _0x2217b7&&_0x2217b7['is']('element');}function qt(_0x16fd75,_0x21e627){return null==_0x16fd75['end']['nodeBefore']&&_0x16fd75['end']['parent']==_0x16fd75['start']['nodeAfter']?zt(_0x16fd75['start']['nodeAfter'],_0x21e627):_0x16fd75;}function zt(_0x2d6f4a,_0xdd6773){const _0x362e80=_0xdd6773['schema']['isObject'](_0x2d6f4a)||_0xdd6773['schema']['isSelectable'](_0x2d6f4a);return _0xdd6773['createRange'](_0xdd6773['createPositionAt'](_0x2d6f4a,'before'),_0x362e80?_0xdd6773['createPositionAfter'](_0x2d6f4a):_0xdd6773['createPositionAt'](_0x2d6f4a,'end'));}function Wt(_0xf086ea,_0x2ef4ff,_0x30fef6,_0x5ec007){return!!Qt(_0xf086ea,_0x2ef4ff)&&_0x30fef6['end']['isEqual'](_0x5ec007['start']);}function Qt(_0x3dcfda,_0x1b8631){if(!_0x3dcfda['_isDataLoaded']||!_0x1b8631['_isDataLoaded'])return!0x1;const _0x1d300e=new Set(Object['keys'](_0x3dcfda['attributes'])),_0x5058fb=new Set(Object['keys'](_0x1b8631['attributes']));if(_0x1d300e['delete']('groupId'),_0x5058fb['delete']('groupId'),0x0==_0x1d300e['size']&&0x0==_0x5058fb['size'])return!0x0;if(_0x1d300e['size']!=_0x5058fb['size'])return!0x1;const _0xf7de5f={..._0x3dcfda['attributes']},_0x51523b={..._0x1b8631['attributes']};return delete _0xf7de5f['groupId'],delete _0x51523b['groupId'],JSON['stringify'](_0xf7de5f)==JSON['stringify'](_0x51523b);}function Xt(_0x1eefd9,_0x2d414e){const _0x95ab4f=Yt(_0x1eefd9['attributes']),_0x2f7910=Yt(_0x2d414e);if(!_0x1eefd9['_isDataLoaded'])return!0x1;for(const _0x21eeea of Object['keys'](_0x2f7910))if(!_0x164cf0(_0x95ab4f[_0x21eeea],_0x2f7910[_0x21eeea]))return!0x1;return!0x0;}function Yt(_0x48d90f){const _0x40cd7a=Object['assign']({},_0x48d90f);return delete _0x40cd7a['skipNestingCheck'],delete _0x40cd7a['tablePasteChainId'],_0x40cd7a;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x76456b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x40770f,_0x2e63dc,_0x592254,_0x5266b4){super(),this['model']=_0x2e63dc,this['view']=_0x592254,this['commentThreadController']=_0x5266b4,this['_editor']=_0x40770f,this['_acceptCommand']=_0x40770f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x40770f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x424d9f,_0x5a3ad4)=>_0x424d9f||_0x5a3ad4),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1e4921=>_0x1e4921&&this['_editor']['model']['canEditAt'](_0x2e63dc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x11b92b=>_0x11b92b&&this['_editor']['model']['canEditAt'](_0x2e63dc['getRanges']())),this['_pendingAction']=null,_0x592254['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x592254,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x592254,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x592254,'change:isDirty',()=>{_0x592254['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 _0x372400=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x372400);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x19dd4f{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1b0e19,_0x56312d,_0x320f66,_0x2c7e20){super(_0x1b0e19),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2b84d6(_0x1b0e19,c(_0x1b0e19,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x56312d['authoredAt']),this['bind']('authoredAt')['to'](_0x56312d),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',_0x56312d,'authoredAt',this,'descriptionParts',(_0x1bf455,_0x2924bb,_0x2791ac)=>{const _0x50dbcc=_0x2791ac['map'](_0x1bdbe0=>ls(_0x1bdbe0['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1bf455-0x1,_0x56312d['author']['name'],_0x2924bb?_0x2c7e20['formatDateTime'](_0x2924bb):'',new DOMParser()['parseFromString'](_0x50dbcc,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3f4bd0(),this['focusTracker']=new _0x5a26a3(),this['keystrokes']=new _0x34f86a(),this['focusCycler']=new _0x4474bb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x288948=>_0x288948['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x56312d,this['_localUser']=_0x320f66,this['_config']=_0x2c7e20,_0x2c7e20['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x521cf7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2822a4}=this['_config'];this['commentsListView']=new _0x2822a4(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',_0x432962=>_0x432962+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1811bb,_0x5a51b9)=>_0x1811bb||!!_0x5a51b9);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3c7447}=this['_config'],_0x2aaf89=new _0x3c7447(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3f60db=_0x2aaf89['commentInputView'];return _0x2aaf89['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3f60db,'value',(_0x50a6da,_0x100982,_0x113123)=>!!_0x113123||_0x50a6da&&!_0x100982),_0x3f60db['on']('submit',(_0x1486b,_0x5e3428)=>{this['fire']('addComment',_0x5e3428),_0x3f60db['editor']['setData']('');}),_0x3f60db['on']('cancel',()=>this['focus']()),_0x3f60db['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2aaf89;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0xf81af9,_0x2d8396,_0xd3c526,_0x2cc788){super(_0xf81af9,_0x2d8396,_0xd3c526,_0x2cc788),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5e158b=>_0x5e158b&&_0x5e158b[0x0]?_0x5e158b[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x47a9dd,_0x504c34)=>{let _0x4a0233='';for(const _0x3c3592 of _0x47a9dd)_0x4a0233+='<p>'+ls(_0x3c3592['content'],_0x3c3592['color'])+'</p>';return _0x504c34?_0x4a0233:ti(_0x4a0233,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2cc788['SuggestionView'](_0xf81af9,_0x2d8396,{'formatDateTime':_0x2cc788['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 _0x494b5b=this['bindTemplate'],_0x3decf4=[this['suggestionView']];return this['commentsListView']&&_0x3decf4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3decf4['push'](this['commentThreadInputView']),_0x3decf4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x494b5b['if']('isActive','ck-suggestion-wrapper--active'),_0x494b5b['to']('type',_0x3352be=>'ck-suggestion-'+_0x3352be),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':_0x494b5b['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3decf4};}['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 _0x19dd4f{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4404e8,_0x3debb6,_0x54aa2c){super(_0x4404e8),this['_model']=_0x3debb6,this['_config']=_0x54aa2c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3debb6),this['acceptButton']=this['_createButton'](c(_0x4404e8,'Accept\x20suggestion'),_0x30805a,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x4404e8,'Discard\x20suggestion'),_0x453bac,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x594d16(_0x4404e8,_0x3debb6['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3f4bd0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5a26a3(),this['keystrokes']=new _0x34f86a(),this['focusCycler']=new _0x4474bb({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x532dee=>_0x532dee['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x494eae=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x494eae['innerHTML']=this['description'],this['on']('change:description',(_0x3b0e09,_0x4c9511,_0x247d2d)=>{_0x494eae['innerHTML']=_0x247d2d;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e2fb6=this['bindTemplate'],_0x46d2f2=[{'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':_0x1e2fb6['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e2fb6['to']('authoredAt',_0xb8c1a7=>this['_config']['formatDateTime'](_0xb8c1a7))}]}]},{'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']&&_0x46d2f2['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':_0x46d2f2}]};}['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'](_0x17ca76,_0x3ae240,_0x3c0d50,_0x12aede,_0x244da4){const _0x4fbebb=new _0x4e40e5(this['locale']);return _0x4fbebb['set']({'label':_0x17ca76,'icon':_0x3ae240,'tooltip':!0x0,'tooltipPosition':_0x244da4}),_0x4fbebb['extendTemplate']({'attributes':{'class':_0x3c0d50}}),_0x4fbebb['on']('execute',()=>{this['fire'](_0x12aede,this['_model']['id']);}),_0x4fbebb;}['_setupKeyboardNavigation'](){const _0x1a270c=this['element'];this['keystrokes']['listenTo'](_0x1a270c);for(const _0x41f2e1 of this['focusables'])this['focusTracker']['add'](_0x41f2e1['element']),this['keystrokes']['listenTo'](_0x41f2e1['element']);this['keystrokes']['set']('enter',(_0x5d99d0,_0x3fdae4)=>{_0x1a270c===_0x5d99d0['target']&&(this['focusCycler']['focusFirst'](),_0x3fdae4());}),this['keystrokes']['set']('esc',(_0x16a806,_0x19f735)=>{_0x1a270c!==_0x16a806['target']&&(this['focus'](),_0x19f735());});}}class d extends _0x2ee8de{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xfb1d28,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bf515){super(_0x4bf515),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4c4194=this['editor']['config'];_0x4c4194['define']('trackChanges.SuggestionThreadView',fe),_0x4c4194['define']('trackChanges.SuggestionView',we),_0x4c4194['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4c4194['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3cb643,_0x32098b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x524b9a,_0x35a65b]of this['_handleControllerBuffer']){const _0x339dd0=this['_suggestionToController']['has'](_0x524b9a);_0x339dd0||_0x35a65b?_0x339dd0&&_0x35a65b&&this['_destroyController'](_0x524b9a):this['_initializeController'](_0x524b9a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3cb643,_0x32098b);}['init'](){const _0x5917dd=this['editor'],_0x29808c=_0x5917dd['plugins']['get']('TrackChangesEditing'),_0x3929bf=_0x5917dd['plugins']['get']('Annotations'),_0x2bc340=_0x5917dd['plugins']['get']('EditorAnnotations'),_0x5b274a=_0x5917dd['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2bc340['addSourceCollector'](()=>{const _0x2750a2=[];for(const [_0x3c15f3,_0x376ad0]of Array['from'](this['_suggestionToController'])){const _0x23a78e=_0x3c15f3['getAllAdjacentSuggestions'](),_0x43e94f=[];for(const _0x511108 of _0x23a78e){if(!_0x511108['isInContent'])continue;if(_0x511108['isMultiRange']){_0x43e94f['push'](..._0x511108['getRanges']());continue;}const _0x390cb3=_0x511108['getFirstRange']();if(_0x43e94f['length']>0x0){const _0x5af376=_0x43e94f[0x0]['getJoined'](_0x390cb3);if(_0x5af376){_0x43e94f[0x0]=_0x5af376;continue;}}_0x43e94f['push'](_0x390cb3);}_0x2750a2['push']([_0x376ad0['view'],_0x43e94f]);}return _0x2750a2;}),this['listenTo'](_0x29808c,'suggestionLoaded',(_0x31f812,_0x5b4193)=>{this['listenTo'](_0x5b4193,'change:previous',(_0x59337f,_0xd9c98a,_0x17f6bf,_0x4f12ef)=>{_0x5b4193['isInContent']&&(null==_0x17f6bf?(this['_updateController'](_0x4f12ef['head']),this['_handleSuggestionControllerDelayed'](_0x5b4193,!0x1)):(this['_updateController'](_0x17f6bf['head']),null==_0x4f12ef&&this['_handleSuggestionControllerDelayed'](_0x5b4193,!0x0)));}),null!==_0x5b4193['previous']?this['_updateController'](_0x5b4193['head']):this['_handleSuggestionControllerDelayed'](_0x5b4193,!0x1);}),this['listenTo'](_0x29808c,'suggestionUnloaded',(_0x23916e,_0x38393d,_0x418a41)=>{this['stopListening'](_0x38393d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x38393d),this['_suggestionToController']['has'](_0x38393d)&&this['_destroyController'](_0x38393d),_0x418a41&&this['_updateController'](_0x418a41['head']);}),this['listenTo'](_0x29808c,'suggestionChanged',(_0x2a8d51,_0x128a45)=>{this['_updateController'](_0x128a45);}),this['listenTo'](_0x3929bf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5b274a,'addComment',(_0x1f3c8f,{threadId:_0x2a3b34,isFromAdapter:_0x824cd8})=>{if(_0x824cd8||!_0x29808c['hasSuggestion'](_0x2a3b34))return;const _0x2404fb=_0x29808c['getSuggestion'](_0x2a3b34);this['_suggestionToController']['get'](_0x2404fb)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5296e8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x13aa7d;for(const _0x1eaf02 in _0x5296e8){const _0x31b2aa=_0x1eaf02,_0x29392d=_0x5296e8[_0x31b2aa];if('trackChangesLicenseKeyValid'==_0x29392d||'trackChangesLicenseKeyInvalid'==_0x29392d||'trackChangesLicenseKeyExpired'==_0x29392d||'trackChangesLicenseKeyDomainLimit'==_0x29392d||'trackChangesLicenseKeyNotAllowed'==_0x29392d||'trackChangesLicenseKeyEvaluationLimit'==_0x29392d||'trackChangesLicenseKeyTrialLimit'==_0x29392d||'trackChangesLicenseKeyUsageLimit'==_0x29392d){delete _0x5296e8[_0x31b2aa],_0x13aa7d=_0x29392d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x13aa7d&&_0x5296e8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x13aa7d&&_0x5296e8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x13aa7d&&_0x5296e8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x13aa7d&&_0x5296e8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x13aa7d&&_0x5296e8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x13aa7d&&_0x5296e8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x13aa7d&&_0x5296e8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x211c0c=this['editor']['plugins']['get']('Annotations'),_0x546b64=this['editor']['plugins']['get']('TrackChangesEditing'),_0x253ea7=Array['from'](_0x211c0c['activeAnnotations'],_0x2439de=>_0x2439de['innerView'])['filter'](_0xfccf94=>this['_viewToController']['has'](_0xfccf94)),_0x283a88=[];for(const _0x181f68 of _0x253ea7){const _0x5de911=this['_viewToController']['get'](_0x181f68)['model']['getAllAdjacentSuggestions']();_0x283a88['push'](..._0x5de911['reduce']((_0x2c6e91,_0x556393)=>[..._0x2c6e91,..._0x556393['getMarkerNames']()],[]));}_0x546b64['activeMarkers']=_0x283a88;}['_addUIComponentsToFactory'](){const _0xbcc57=this['editor'],_0x30108e=_0xbcc57['locale'],_0x1082a5=c(_0x30108e,'Track\x20changes'),_0xb9bc1=new _0x2faefe([{'type':'switchbutton','model':new _0x202138({'withText':!0x0,'isToggleable':!0x0,'label':_0x1082a5,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x202138({'withText':!0x0,'label':c(_0x30108e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x202138({'withText':!0x0,'label':c(_0x30108e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x202138({'withText':!0x0,'label':c(_0x30108e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x202138({'withText':!0x0,'label':c(_0x30108e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xbcc57['plugins']['has']('TrackChangesPreview')&&_0xb9bc1['addMany']([{'type':'separator'},{'type':'button','model':new _0x202138({'withText':!0x0,'label':c(_0x30108e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x45b400 of _0xb9bc1)if(ke(_0x45b400)){const _0x645827=_0xbcc57['commands']['get'](_0x45b400['model']['commandName']);_0x45b400['model']['bind']('isOn','isEnabled')['to'](_0x645827,'value','isEnabled');}_0xbcc57['ui']['componentFactory']['add']('trackChanges',_0x55416a=>this['_createToolbarButton'](_0x55416a,_0xb9bc1,_0x1082a5)),_0xbcc57['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3ca200=>this['_createMenuBarMenu'](_0x3ca200,_0xb9bc1,_0x1082a5));}['_createToolbarButton'](_0x1b1d27,_0x3a3f37,_0x3e8862){const _0x41d07f=_0x7aa00f(_0x1b1d27,_0x7cd5e),_0x3f3326=this['editor']['commands']['get']('trackChanges');_0x41d07f['buttonView']['set']({'tooltip':_0x3e8862,'label':_0x3e8862,'icon':_0x25f84a}),_0x41d07f['buttonView']['bind']('isOn')['to'](_0x3f3326,'value'),_0x41d07f['buttonView']['on']('execute',()=>{_0x3f3326['execute'](),this['editor']['editing']['view']['focus']();}),_0x521222(_0x41d07f,_0x3a3f37,{'role':'menu'});const _0x582d0c=[];for(const _0xacd5e9 of _0x3a3f37)ke(_0xacd5e9)&&_0x582d0c['push'](this['editor']['commands']['get'](_0xacd5e9['model']['commandName']));const _0x4c5048=_0x41d07f['buttonView'];return _0x4c5048['actionView']['unbind']('isEnabled'),_0x4c5048['arrowView']['unbind']('isEnabled'),_0x4c5048['actionView']['bind']('isEnabled')['to'](_0x3f3326,'isEnabled'),_0x4c5048['arrowView']['bind']('isEnabled')['toMany'](_0x582d0c,'isEnabled',(..._0x5a68c2)=>_0x5a68c2['some'](_0xb18b5c=>_0xb18b5c)),_0x41d07f['on']('execute',_0x319825=>{this['editor']['execute'](_0x319825['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x41d07f;}['_createMenuBarMenu'](_0x21f1ba,_0x5b2bc6,_0x1a01d9){const _0x4c6604=new _0x5e4691(_0x21f1ba),_0x2ceb77=this['editor']['commands']['get']('trackChanges');_0x4c6604['buttonView']['set']({'label':_0x1a01d9,'icon':_0x25f84a});const _0x1795e6=new _0x4f8716(_0x21f1ba);for(const _0x2a0c26 of _0x5b2bc6){if('separator'==_0x2a0c26['type']){_0x1795e6['items']['add'](new _0x242257(_0x21f1ba));continue;}const _0x303b18=new _0x47bb2a(_0x21f1ba,_0x4c6604),_0x2411aa=new _0x4b4813(_0x21f1ba),_0x3279bb=_0x2a0c26['model'];_0x2411aa['bind'](...Object['keys'](_0x3279bb))['to'](_0x3279bb),_0x2411aa['delegate']('execute')['to'](_0x4c6604),_0x2411aa['on']('execute',()=>{this['editor']['execute'](_0x3279bb['commandName']),this['editor']['editing']['view']['focus']();}),_0x303b18['children']['add'](_0x2411aa),_0x1795e6['items']['add'](_0x303b18);}return _0x4c6604['bind']('isEnabled')['to'](_0x2ceb77,'isEnabled'),_0x4c6604['panelView']['children']['add'](_0x1795e6),_0x4c6604;}['_initializeController'](_0x253c56){const _0x18c6a0=this['editor'],_0x6bd72e=_0x18c6a0['config'],_0xd57859=_0x18c6a0['plugins']['get']('Annotations'),_0x3aa0ec=_0x18c6a0['plugins']['get']('CommentsRepository'),_0x593d3b=_0x18c6a0['plugins']['get']('EditorAnnotations'),_0x53a4aa=_0x18c6a0['plugins']['get'](_0xfb1d28)['me'],_0x22261d=_0x6bd72e['get']('trackChanges')['SuggestionThreadView'],_0x1c3805=_0x6bd72e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x17304a,CommentThreadInputView:_0x5e967a}=_0x18c6a0['plugins']['get']('CommentsUI');let _0x2cefdc,_0x105878,_0x473aac;this['_annotationViews']['has'](_0x253c56['id'])?(_0x105878=this['_annotationViews']['get'](_0x253c56['id']),_0x2cefdc=_0x105878['mainView']):(_0x2cefdc=new _0x22261d(_0x18c6a0['locale'],_0x253c56,_0x53a4aa,{'disableComments':this['_disableComments'],'editorConfig':{..._0x6bd72e['get']('comments.editorConfig'),'licenseKey':_0x6bd72e['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x6bd72e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x6bd72e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x6bd72e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x7fd4fa(_0x6bd72e['get']('locale'),_0x18c6a0['locale']),'CommentView':_0x6bd72e['get']('comments')['CommentView'],'CommentsListView':_0x17304a,'CommentThreadInputView':_0x5e967a,'SuggestionView':_0x1c3805}),_0x2cefdc['suggestionView']['acceptButton']['on']('execute',()=>{_0x18c6a0['editing']['view']['focus']();}),_0x2cefdc['suggestionView']['discardButton']['on']('execute',()=>{_0x18c6a0['editing']['view']['focus']();}),_0x105878=_0xd57859['createAnnotationView'](this['editor']['locale'],_0x2cefdc),_0x105878['bind']('isDirty')['to'](_0x2cefdc,'isDirty'),_0x105878['bind']('length')['to'](_0x2cefdc),_0x105878['bind']('type')['to'](_0x2cefdc,'type',_0x378c7d=>'suggestion-'+_0x378c7d),_0x2cefdc['on']('escape',()=>{_0x473aac['fire']('escape');}),this['_annotationViews']['set'](_0x253c56['id'],_0x105878));const _0x4d7cd=_0x3aa0ec['createCommentThreadController'](_0x253c56['commentThread'],_0x2cefdc),_0x21ea59=new pe(_0x18c6a0,_0x253c56,_0x2cefdc,_0x4d7cd),_0x2a181f=_0x253c56['getAllAdjacentSuggestions']()['filter'](_0x2d51b3=>_0x2d51b3['isInContent']);_0x2cefdc['descriptionParts']=_0x18c6a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2a181f),this['_suggestionToController']['set'](_0x253c56,_0x21ea59),this['_viewToController']['set'](_0x2cefdc,_0x21ea59),_0x473aac=_0xd57859['createAnnotation']({'view':_0x105878,'target':()=>{const _0x236fcf=[],_0x26524c=_0x253c56['getAllAdjacentSuggestions']()['filter'](_0xdddd3c=>_0xdddd3c['isInContent']);for(const _0x3e71d0 of _0x26524c)_0x236fcf['push'](..._0x3e71d0['getMarkers']());return _0x306fba(_0x18c6a0['editing'],_0x236fcf);},'type':()=>'suggestion-'+_0x21ea59['view']['type']}),_0x3aa0ec['_bindAnnotationToEditors'](_0x2cefdc,_0x473aac),_0xd57859['add'](_0x473aac),_0x593d3b['registerAnnotation'](_0x473aac);}['_destroyController'](_0x509eb7){const _0x1b3af3=this['editor']['plugins']['get']('CommentsRepository'),_0x4c4991=this['editor']['plugins']['get']('Annotations'),_0x15ac2f=this['_suggestionToController']['get'](_0x509eb7),_0x5d10a1=_0x15ac2f['view'],_0x3b2072=_0x4c4991['getByInnerView'](_0x5d10a1);_0x1b3af3['_unbindEditors'](_0x5d10a1),_0x3b2072&&_0x4c4991['remove'](_0x3b2072),this['_suggestionToController']['delete'](_0x509eb7),this['_viewToController']['delete'](_0x5d10a1),_0x15ac2f['destroy']();}['_updateController'](_0x4d6241){if(!_0x4d6241['isInContent']||!this['_suggestionToController']['has'](_0x4d6241))return;const _0x57ed25=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1c1a7e=this['_suggestionToController']['get'](_0x4d6241),_0x49b9d6=_0x4d6241['getAllAdjacentSuggestions']();_0x1c1a7e['view']['descriptionParts']=_0x57ed25['descriptionFactory']['getDescriptions'](_0x49b9d6);}['destroy'](){for(const _0x7a970d of this['_suggestionToController']['keys']())this['_destroyController'](_0x7a970d);for(const _0x3f502a of this['_annotationViews']['values']())_0x3f502a['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x86b082){return'model'in _0x86b082;}class k extends _0x2ee8de{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x34baf8){this['editor']['plugins']['get'](p)['adapter']=_0x34baf8;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1188b3){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1188b3);}['getSuggestions']({skipNotAttached:_0x2b5a70=!0x1,toJSON:_0x818db1=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2b5a70,'toJSON':_0x818db1});}['getSuggestion'](_0x6b7df5){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x6b7df5);}}const w=['Pagination'];class T extends _0x2ee8de{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x7ae36d=this['editor'];if(_0x7ae36d['config']['define']('trackChangesData.editorCreator',_0x5c7fd7=>{const _0x40f69e=_0x7ae36d['model']['document']['getRootNames']()['reduce']((_0x4d3dfa,_0x166354)=>(_0x4d3dfa[_0x166354]='',_0x4d3dfa),{});return _0x7ae36d['constructor']['create'](_0x40f69e,_0x5c7fd7);}),'function'!=typeof _0x7ae36d['config']['get']('trackChangesData')['editorCreator'])throw new _0x127c25('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3a8b98){return N(this['editor'],!0x0,_0x3a8b98);}['getDataWithDiscardedSuggestions'](_0x5179e9){return N(this['editor'],!0x1,_0x5179e9);}}class D extends _0x2ee8de{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6fb460){function _0x14bc93(_0x4f4ed2){return _0x4f4ed2['map'](_0x491a9d=>String['fromCharCode'](_0x491a9d))['join']('');}super(_0x6fb460),this['result']='end',_0x6fb460[_0x14bc93([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14bc93([0x76,0x69,0x65,0x77])][_0x14bc93([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14bc93([0x61,0x75,0x74,0x6f]),_0x6fb460[_0x14bc93([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x14bc93([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14bc93([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x14bc93([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x14bc93([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 Ge(_0x53df4c){return void 0x0!==_0x53df4c['getRootsAttributes'];}async function N(_0x7a4af3,_0x146bc7,_0x19f149){const _0x15a2a7=_0x507cf3(_0x7a4af3,w);_0x15a2a7['plugins']['push'](p,D),_0x15a2a7['rootsAttributes']=Ge(_0x7a4af3)?_0x7a4af3['getRootsAttributes']():void 0x0;const _0x25e58b=document['createDocumentFragment'](),_0x1fa79d=_0x7a4af3['config']['get']('trackChangesData')['editorCreator'],_0xbf6503=await _0x1fa79d(_0x15a2a7,()=>function(_0x58271b){const _0x17d7b6=document['createElement']('div');return _0x58271b['appendChild'](_0x17d7b6),_0x17d7b6;}(_0x25e58b));!function(_0x51d52a,_0x4cefc5){const _0x464e15=_0x51d52a['model']['document']['getRootNames']()['reduce']((_0x5b86fb,_0x246c63)=>(_0x5b86fb[_0x246c63]=_0x51d52a['data']['get']({'rootName':_0x246c63}),_0x5b86fb),{}),_0x20ba64=_0x51d52a['plugins']['get']('Users')['users']['map'](_0x3e1073=>({'id':_0x3e1073['id'],'name':_0x3e1073['name']})),_0x144aeb=_0x51d52a['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x34f813=_0x51d52a['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4ddb02=_0x4cefc5['plugins']['get']('Users'),_0x5a2ff5=_0x4cefc5['plugins']['get']('TrackChangesEditing'),_0x1d2e68=_0x4cefc5['plugins']['get']('CommentsRepository');for(const _0x3ebe9b of _0x1d2e68['getCommentThreads']())_0x3ebe9b['remove']();for(const _0x3f1bc0 of _0x20ba64)_0x4ddb02['getUser'](_0x3f1bc0['id'])||_0x4ddb02['addUser'](_0x3f1bc0);_0x4ddb02['me']||_0x4ddb02['useAnonymousUser']();for(const _0x552cf9 of _0x34f813)_0x1d2e68['addCommentThread'](_0x552cf9);for(const _0x30e7d5 of _0x144aeb)_0x5a2ff5['addSuggestionData'](_0x30e7d5);_0x4cefc5['data']['set'](_0x464e15);}(_0x7a4af3,_0xbf6503),_0xbf6503['execute'](_0x146bc7?'acceptAllSuggestions':'discardAllSuggestions');const _0x1d3ba2=Ge(_0xbf6503)?_0xbf6503['getFullData'](_0x19f149):_0xbf6503['data']['get'](_0x19f149);return await _0xbf6503['destroy'](),_0x1d3ba2;}class Me extends _0x19dd4f{['options'];constructor(_0x26b353,_0x5e8458){super(_0x26b353),this['options']=_0x5e8458,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'](_0x458aa2,_0x5c389c){if(!this['element'])return;const _0x1e6242=[];for(const [_0x57d4a9,_0x7ce856]of _0x458aa2){const _0x4b019d=document['createElement']('div');_0x4b019d['setAttribute']('data-ck-root-name',_0x57d4a9),_0x4b019d['className']=_0x7ce856['classes']+'\x20ck-track-changes-preview__root-container',_0x4b019d['innerHTML']=_0x7ce856['content'],_0x1e6242['push'](_0x4b019d);}_0x5c389c(this['element'],_0x1e6242),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x39e1b5{constructor(_0x399d4d){super(_0x399d4d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3c9dcb=this['editor'],_0x25b65a=_0x3c9dcb['locale'],_0x35cef7=_0x3c9dcb['plugins']['get']('Dialog');let _0x5635e5;const _0xe68bba=function(_0xf7fc82){const _0x3cb730={};if('editables'in _0xf7fc82['ui']['view']){for(const [_0x58c438,_0x161f4e]of Object['entries'](_0xf7fc82['ui']['view']['editables']))_0x3cb730[_0x58c438]=_0x161f4e['element'];}else _0x3cb730[_0xf7fc82['model']['document']['getRootNames']()[0x0]]=_0xf7fc82['ui']['view']['editable']['element'];return _0x3cb730;}(_0x3c9dcb),_0x45970c=function(_0x2eaa15){let _0x2ed043=0x0;for(const _0x152263 of Object['values'](_0x2eaa15))_0x2ed043=Math['max'](_0x2ed043,_0x152263['getBoundingClientRect']()['width']);let _0x502a02=0x0;for(const _0x4625d2 of Object['values'](_0x2eaa15))_0x502a02+=_0x4625d2['getBoundingClientRect']()['height'];const _0xc65732=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x56af7f=Math['min'](_0x502a02,_0xc65732);return{'width':_0x2ed043,'height':_0x56af7f};}(_0xe68bba);_0x35cef7['show']({'id':'finalContentPreview','title':c(_0x25b65a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x25b65a,{'dialogRects':_0x45970c}),'onHide':()=>{_0x5635e5['detachFromDom']();},'onShow':()=>{_0x3c9dcb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1dbd37=>{const _0x2995d4=this['_standarizeRootsData'](_0x1dbd37,_0x3c9dcb,_0xe68bba);_0x35cef7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2995d4,_0x3c9dcb['config']['get']('trackChanges.preview.renderFunction'));}),_0x5635e5=new _0x51c71d(_0x25b65a,[_0x35cef7['view']]),_0x5635e5['attachToDom'](),_0x5635e5['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3c9dcb['once']('destroy',()=>{_0x5635e5['detachFromDom']();});const _0x2b47fd=_0x35cef7['view']['headerView']['class'];_0x35cef7['view']['headerView']['class']=_0x2b47fd?_0x2b47fd+'\x20ck-reset_all':'ck-reset_all',_0x35cef7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x35cef7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4e7f80=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x16a70d=_0x4e7f80['previewMode'],_0x3d5eb0={};if('$labels'===_0x16a70d){for(const _0xbaadc4 of _0x4e7f80['getMergeFieldsIds']())_0x3d5eb0[_0xbaadc4]=_0x4e7f80['getLabel'](_0xbaadc4)||_0xbaadc4;}else{const _0x2ea841='$defaultValues'===_0x16a70d?_0x4e7f80['getDefaultValues']():_0x4e7f80['getDataSetValues'](_0x16a70d,!0x0);for(const _0x8a04c1 of Object['entries'](_0x2ea841)){const [_0x5ea656,_0x3034f9]=_0x8a04c1;_0x3d5eb0[_0x5ea656]=null!==_0x3034f9?_0x3034f9:_0x4e7f80['getLabel'](_0x5ea656)||_0x5ea656;}}return{'mergeFieldsData':_0x3d5eb0};}['_standarizeRootsData'](_0x4e136f,_0x1ee49e,_0x771969){let _0x67da6f;if('string'==typeof _0x4e136f){const _0x533231=_0x1ee49e['model']['document']['getRootNames']()[0x0];_0x67da6f={[_0x533231]:_0x4e136f};}else _0x67da6f=_0x4e136f;const _0x37a7cf=this['_fixMediaEmbeds'](_0x67da6f,_0x1ee49e),_0xf225c6=function(_0x137543,_0x13c5df){for(const [_0x80e1fe,_0x3253ad]of _0x137543)_0x3253ad['classes']=_0x13c5df[_0x80e1fe]['classList']['value']['replace']('ck-focused','');return _0x137543;}(this['_sortRoots'](_0x1ee49e)['reduce']((_0x184b08,_0xcabe12)=>(_0x184b08['push']([_0xcabe12,{'content':_0x37a7cf[_0xcabe12],'classes':''}]),_0x184b08),[]),_0x771969);return _0xf225c6;}['_fixMediaEmbeds'](_0x29e18a,_0x29871d){if(!_0x29871d['plugins']['has']('MediaEmbedEditing'))return _0x29e18a;const _0x2e585e=_0x29871d['plugins']['get']('MediaEmbedEditing');for(const [_0x1a7155,_0x3d1c21]of Object['entries'](_0x29e18a)){const _0x2bd8be=document['createElement']('div');_0x2bd8be['innerHTML']=_0x3d1c21,(_0x2bd8be['querySelectorAll']('figure.media')['forEach'](_0x5eda4b=>{const _0x56155e=_0x5eda4b['querySelector']('oembed');if(_0x56155e){const _0x1b04de=_0x56155e['getAttribute']('url');if(_0x1b04de){const _0x41fd89=_0x2e585e['registry']['getMediaViewElement'](new _0x1f69c0(_0x29871d['editing']['view']['document']),_0x1b04de,{'elementName':'','renderForEditingView':!0x0}),_0x2ad602=document['createElement']('div');_0x2ad602['classList']['add']('ck-media__wrapper'),_0x41fd89['render'](_0x2ad602,_0x29871d['editing']['view']['domConverter']),_0x56155e['replaceWith'](_0x2ad602);}}}),_0x29e18a[_0x1a7155]=_0x2bd8be['innerHTML']);}return _0x29e18a;}['_sortRoots'](_0x14d8b4){if(!function(_0x39fbf0){return void 0x0!==_0x39fbf0['getRootsAttributes'];}(_0x14d8b4))return _0x14d8b4['model']['document']['getRootNames']();const _0x27bb8e=[],_0x9da1a=new Map();for(const _0x48142c of _0x14d8b4['model']['document']['getRootNames']()){const _0x33570d=_0x14d8b4['editing']['view']['getDomRoot'](_0x48142c)['getClientRects']()['item'](0x0);_0x27bb8e['push'](_0x48142c),_0x9da1a['set'](_0x48142c,_0x33570d);}return _0x27bb8e['sort']((_0x2cd67c,_0x50b63e)=>{const _0x4db5c8=_0x9da1a['get'](_0x2cd67c),_0x56436f=_0x9da1a['get'](_0x50b63e);return _0x4db5c8['y']-_0x56436f['y']||_0x4db5c8['x']-_0x56436f['x'];}),_0x27bb8e;}}class te extends _0x2ee8de{static get['requires'](){return[T,_0x1e9249];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51d0e5){super(_0x51d0e5),_0x51d0e5['commands']['add']('previewFinalContent',new re(this['editor'])),_0x51d0e5['config']['define']('trackChanges.preview.renderFunction',(_0x14aa9f,_0x47e8ae)=>{for(const _0x144f32 of _0x47e8ae)_0x14aa9f['appendChild'](_0x144f32);});}}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 _0x1e86e5,Plugin as _0x577ae7,PendingActions as _0x5b2277}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3bf293,ObservableMixin as _0x4b5d5f,uid as _0x147536,priorities as _0x359a13,insertToPriorityArray as _0x298e16,toArray as _0x5894de,logWarning as _0x2257ec,getEnvKeystrokeText as _0x5670bc,FocusTracker as _0x5d45b2,KeystrokeHandler as _0x5b4e17,Collection as _0x2d3f2d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x42c957,IconCancel as _0x3172ec,IconTrackChanges as _0x263ea4}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x1a6ad8,View as _0x36af6d,ViewCollection as _0x3d953b,FocusCycler as _0x582a27,ViewModel as _0x41a0e2,createDropdown as _0x49273c,SplitButtonView as _0x4bcb62,addListToDropdown as _0x45854c,MenuBarMenuView as _0x34d256,MenuBarMenuListView as _0x1706ac,ListSeparatorView as _0x475808,MenuBarMenuListItemView as _0x359a6c,MenuBarMenuListItemButtonView as _0x94c5e9,BodyCollection as _0x45ffab,Dialog as _0x19d789}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x671950,hashObject as _0x39cd73,surroundingMarkersDetector as _0x41b32b,FOCUS_ANNOTATION_KEYSTROKE as _0x3938eb,AriaDescriptionView as _0x1c3831,setupThreadKeyboardNavigation as _0x29d324,trimHtml as ti,UserView as _0x46ccea,LateFocusButtonView as _0x51bdbf,getDateTimeFormatter as _0x49779c,getAllMarkersDomElementsSorted as _0x2a17b3,sanitizeEditorConfig as _0x4ffdbb}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x59b063,LiveRange as _0x3a5e87,LivePosition as _0x303748,DowncastWriter as _0x25b75f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x231675,toWidget as _0x185ea5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x27f738,set as _0x178863,isEqual as _0xe83722,unset as _0x359ae2,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5c99b2,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x530fc1}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1a1079}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1e86e5{['_enabledCommands'];constructor(_0x14c588,_0x25cc5f){super(_0x14c588),this['_enabledCommands']=_0x25cc5f,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 _0x28628c of this['editor']['commands']['commands']())_0x28628c['affectsData']&&!this['_enabledCommands']['has'](_0x28628c)&&_0x28628c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xe40638 of this['editor']['commands']['commands']())_0xe40638['affectsData']&&!this['_enabledCommands']['has'](_0xe40638)&&_0xe40638['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x1e86e5{['_suggestions'];constructor(_0x2c6a43,_0x32cc39){super(_0x2c6a43),this['_suggestions']=_0x32cc39,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2717a1){const _0x56d898=this['_suggestions']['get'](_0x2717a1);if(!_0x56d898)throw new _0x3bf293('track-changes-accept-suggestion-not-found',this);const _0x5f2975=_0x56d898['getRanges']();this['editor']['model']['canEditAt'](_0x5f2975)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x56d898);}}class O extends _0x1e86e5{['_suggestions'];constructor(_0x3a92cb,_0x575ca2){super(_0x3a92cb),this['_suggestions']=_0x575ca2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5979b7){const _0x319d2c=this['_suggestions']['get'](_0x5979b7);if(!_0x319d2c)throw new _0x3bf293('track-changes-discard-suggestion-not-found',this);const _0x5a105b=_0x319d2c['getRanges']();this['editor']['model']['canEditAt'](_0x5a105b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x319d2c);}}function ls(_0x25d0a3,_0x741ad){let _0xe1ba3d='';return _0xe1ba3d+=_0x25d0a3['split']('*')['map']((_0x512ae2,_0x5c4344)=>_0x5c4344%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x512ae2)+'</span>':nn(_0x512ae2))['join'](''),_0x741ad&&(_0xe1ba3d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x741ad['value']+'\x22\x20title=\x22'+_0x741ad['title']+'\x22></span>'),_0xe1ba3d;}function nn(_0x283060){const _0x5bc0e2=document['createElement']('span');return _0x5bc0e2['innerText']=_0x283060,_0x5bc0e2['innerHTML'];}function ts(_0x63917f){return _0x63917f['sort']((_0x5b279f,_0x5f5add)=>'deletion'==_0x5b279f['type']&&'deletion'!=_0x5f5add['type']?-0x1:'deletion'!=_0x5b279f['type']&&'deletion'==_0x5f5add['type']?0x1:0x0);}function to(_0x329275,_0x3a7a56){let _0x5b2647,_0x339601=0x0;const _0x502831=[],_0x30090=_0x3a7a56['schema'];for(;_0x339601<_0x329275['length'];){const _0x249992=_0x329275[_0x339601],_0x1b8eec=_0x329275[_0x339601+0x1];_0x5b2647||(_0x5b2647=_0x3a7a56['createPositionBefore'](_0x249992)),on(_0x3a7a56,_0x249992,_0x1b8eec)||(_0x502831['push'](_0x3a7a56['createRange'](_0x5b2647,_0x30090['isObject'](_0x249992)?_0x3a7a56['createPositionAfter'](_0x249992):_0x3a7a56['createPositionAt'](_0x249992,'end'))),_0x5b2647=null),_0x339601++;}return _0x502831;}function on(_0x155d99,_0x297d6c,_0x358255){if(!_0x358255)return!0x1;const _0x18c789=_0x155d99['createPositionAfter'](_0x297d6c),_0x3c9ce0=_0x155d99['createPositionBefore'](_0x358255);return _0x18c789['isTouching'](_0x3c9ce0);}function rs(_0x5bc5e0,_0x71d519,_0x2e2875){for(;_0x2e2875['length'];){const _0x28cc25=_0x2e2875['splice'](0x0,0x64);_0x5bc5e0['change'](()=>{for(const _0x294938 of _0x28cc25)_0x294938['isInContent']&&_0x71d519['execute'](_0x294938['id']);});}}class R extends _0x1e86e5{['_command'];['_suggestions'];constructor(_0x22004,_0x270de6,_0xed9bee){super(_0x22004),this['_command']=_0x270de6,this['_suggestions']=_0xed9bee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4e585f=Array['from'](this['_suggestions']['values']())['some'](_0x56ccec=>_0x56ccec['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4e585f;}['execute'](){const _0x15ad8a=ts(Array['from'](this['_suggestions']['values']()));for(const _0xa08e4c of _0x15ad8a){const _0x5c57f1=_0xa08e4c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c57f1))return;}rs(this['editor']['model'],this['_command'],_0x15ad8a);}}class E extends _0x1e86e5{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3c0f49,_0x8cad6c,_0x1d20de){super(_0x3c0f49),this['_command']=_0x8cad6c,this['_suggestions']=_0x1d20de,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x46bd7e=this['editor']['model']['document']['selection'],_0xa1f397=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x11eadf,_0x3d246f){const _0x2425a6=Array['from'](_0x11eadf['getRanges']()),_0x4e4f5a=new Set();for(const _0x12a43f of _0x3d246f)if(_0x12a43f['isInContent']){for(const _0xb348a4 of _0x2425a6)for(const _0x2154c0 of _0x12a43f['getRanges']())(_0xb348a4['isIntersecting'](_0x2154c0)||_0x11eadf['isCollapsed']&&!_0x12a43f['isMultiRange']&&_0x12a43f['next']&&_0x2154c0['end']['isTouching'](_0xb348a4['start']))&&_0x4e4f5a['add'](_0x12a43f);}return _0x4e4f5a;}(_0x46bd7e,_0xa1f397),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x401384=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3295f9 of _0x401384){const _0x4b5f0d=_0x3295f9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4b5f0d))return;}rs(this['editor']['model'],this['_command'],_0x401384);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x4b5d5f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2f862a,_0x1f97c0){super(),this['id']=_0x1f97c0['id'],this['type']=_0x1f97c0['type'],this['subType']=_0x1f97c0['subType']||null,this['author']=_0x1f97c0['author'],this['creator']=_0x1f97c0['creator']||_0x1f97c0['author'],this['isExternal']=Boolean(_0x1f97c0['attributes']&&_0x1f97c0['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x1f97c0['originalSuggestionId']||null,this['_model']=_0x2f862a,this['_onAccept']=_0x1f97c0['onAccept'],this['_onDiscard']=_0x1f97c0['onDiscard'],this['_onAttributesChange']=_0x1f97c0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1f97c0['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 _0x2d9610=this;for(;_0x2d9610['previous'];)_0x2d9610=_0x2d9610['previous'];return _0x2d9610;}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'](_0x43e724){this['_markerNames']['add'](_0x43e724);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x470b58=>this['_model']['markers']['get'](_0x470b58))['filter'](_0x1d93dc=>_0x1d93dc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22ca54=>{for(const _0x45d212 of this['getMarkers']())_0x22ca54['removeMarker'](_0x45d212);}),this['_markerNames']['clear']();}['removeMarker'](_0x5e87f4){this['_model']['change'](_0x535b6e=>{_0x535b6e['removeMarker'](_0x5e87f4);}),this['_markerNames']['delete'](_0x5e87f4);}['addRange'](_0x2e39a7){const _0x1ee3ed='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x1ee3ed),this['_model']['change'](_0x1db5d8=>{_0x1db5d8['addMarker'](_0x1ee3ed,{'range':_0x2e39a7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x416933){for(const _0x12b84d of this['getRanges']())if(_0x12b84d['isIntersecting'](_0x416933))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x434c72=>_0x434c72['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4c03f3,_0x30c253)=>[..._0x4c03f3,..._0x30c253['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3df1bc=this['getRanges']();if(0x1!=_0x3df1bc['length'])return null;const _0x303316=_0x3df1bc[0x0],_0x20ca08=_0x303316['start']['nodeAfter'],_0x2610ce=_0x303316['end']['nodeBefore'];return _0x20ca08 instanceof _0x59b063?_0x20ca08!=_0x2610ce?null:_0x20ca08: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 _0x216136=[];let _0x2dd61c=this['head'];for(;_0x2dd61c;)_0x216136['push'](_0x2dd61c),_0x2dd61c=_0x2dd61c['next'];return _0x216136;}['setAttribute'](_0x1234be,_0x431973){const _0x1e04e8=_0x27f738(this['attributes']);_0x178863(_0x1e04e8,_0x1234be,_0x431973),_0xe83722(_0x1e04e8,this['attributes'])||(this['attributes']=_0x1e04e8,this['_onAttributesChange'](_0x1e04e8));}['removeAttribute'](_0x229aae){const _0x16f4a4=_0x27f738(this['attributes']);_0x359ae2(_0x16f4a4,_0x229aae),_0xe83722(_0x16f4a4,this['attributes'])||(this['attributes']=_0x16f4a4,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 _0x147536()['substr'](0x1,0x5);}}function c(_0xec919f,_0x3ff208,_0x5d693c){const _0x496427=_0xec919f['t'],t=_0xec919f['t'];switch(_0x3ff208){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',_0x5d693c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5d693c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5d693c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5d693c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5d693c);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',_0x5d693c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5d693c);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',_0x5d693c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5d693c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5d693c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5d693c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5d693c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5d693c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x5d693c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5d693c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5d693c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5d693c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5d693c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5d693c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5d693c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5d693c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5d693c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5d693c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5d693c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x5d693c);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'},_0x5d693c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x5d693c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x5d693c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5d693c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5d693c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5d693c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5d693c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5d693c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5d693c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5d693c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5d693c);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'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5d693c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5d693c);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'},_0x5d693c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x5d693c);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 _0x496427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x5d693c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x496427({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x5d693c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x5d693c);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'},_0x5d693c);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'},_0x5d693c);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'},_0x5d693c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3ff208;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x107d3d,_0x3f2f01){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x107d3d,this['_locale']=_0x3f2f01;}['getDescriptions'](_0x447f4c){const _0x43a2f9=[],_0x180834=new Set(),_0x3db9b7=new Set();for(let _0xd2e39e=0x0;_0xd2e39e<_0x447f4c['length'];_0xd2e39e++){const _0x2be7ca=_0x447f4c[_0xd2e39e];if(!_0x2be7ca['isInContent'])continue;const _0xb56d76=this['_handleCustomCallbackDescription'](_0x2be7ca);if(_0xb56d76){if(null!=_0x2be7ca['subType']){if(_0x180834['has'](_0x2be7ca['subType']))continue;_0x180834['add'](_0x2be7ca['subType']);}_0x43a2f9['push'](_0xb56d76);}else{if('attribute'!=_0x2be7ca['type'])'insertion'!=_0x2be7ca['type']&&'deletion'!=_0x2be7ca['type']||this['_handleInsertRemoveSuggestionDescription'](_0x43a2f9,_0x2be7ca,_0x447f4c[_0xd2e39e+0x1]);else{const _0x13c8f8=_0x2be7ca['data']['key'];if(_0x3db9b7['has'](_0x13c8f8))continue;_0x3db9b7['add'](_0x2be7ca['data']['key']),_0x13c8f8==u?this['_handleRenameSuggestionDescription'](_0x43a2f9,_0x2be7ca):this['_handleAttributeSuggestionDescription'](_0x43a2f9,_0x2be7ca);}}}return this['_resolveDescriptionItems'](_0x43a2f9);}['registerDescriptionCallback'](_0x145ae6){this['_customCallbacks']['push'](_0x145ae6);}['registerElementLabel'](_0x374ce2,_0x1fb142,_0x589e10=_0x359a13['normal']){'function'==typeof _0x374ce2?_0x298e16(this['_itemLabelsCallbacks'],{'matchingCallback':_0x374ce2,'label':_0x1fb142,'priority':_0x589e10}):this['_itemLabels']['set'](_0x374ce2,_0x1fb142);}['registerAttributeLabel'](_0x52d5bd,_0x1d0e6b){this['_attributeLabels']['set'](_0x52d5bd,_0x1d0e6b);}['getItemLabel'](_0x328a5f,_0x4a64d8=0x1){let _0x1f001f;for(const _0x61d669 of this['_itemLabelsCallbacks'])if(_0x61d669['matchingCallback'](_0x328a5f)){_0x1f001f=_0x61d669['label'];break;}return _0x1f001f||(_0x1f001f=this['_itemLabels']['get'](_0x328a5f['name'])),_0x1f001f?_0x1f001f(_0x4a64d8):0x1!==_0x4a64d8?_0x4a64d8+'\x20'+_0x328a5f['name']+'s':''+_0x328a5f['name'];}['_addDescriptionItems'](_0x3b03e1,_0x264826){const _0x226430=_0x264826['getFirstRange']()['getWalker'](),_0x4b4188='insertion'==_0x264826['type']?'add':'remove';for(const _0x3c141c of _0x226430){const _0x29b6dd=_0x3c141c['item'],_0x870240=_0x3b03e1[_0x3b03e1['length']-0x1];if(_0x29b6dd['is']('$textProxy'))_0x870240&&_0x870240['type']['indexOf']('Container')>-0x1&&_0x3b03e1['pop'](),_0x870240&&'text'==_0x870240['type']?_0x870240[_0x4b4188]+=_0x29b6dd['data']:_0x3b03e1['push']({'type':'text','add':'add'==_0x4b4188?_0x29b6dd['data']:'','remove':'remove'==_0x4b4188?_0x29b6dd['data']:''});else{if(this['_schema']['isObject'](_0x29b6dd)){const _0x344ea1=_0x29b6dd;if(_0x870240&&_0x870240['type']['indexOf']('Container')>-0x1&&_0x3b03e1['pop'](),'elementEnd'==_0x3c141c['type'])continue;_0x870240&&_0x870240['type']==_0x4b4188+'Object'&&_0x870240['element']['name']==_0x344ea1['name']?_0x870240['quantity']++:_0x3b03e1['push']({'type':_0x4b4188+'Object','element':_0x344ea1,'quantity':0x1}),_0x226430['skip'](_0x590006=>!('elementEnd'==_0x590006['type']&&_0x590006['item']==_0x29b6dd));}else{if(this['_schema']['checkChild'](_0x29b6dd,'$text')||_0x29b6dd['is']('element','softBreak')){const _0x3dbb09=_0x29b6dd;if('add'==_0x4b4188&&'elementStart'==_0x3c141c['type']||'remove'==_0x4b4188&&'elementEnd'==_0x3c141c['type'])continue;if(_0x870240&&-0x1==_0x870240['type']['indexOf']('Container')){'text'==_0x870240['type']&&(_0x870240[_0x4b4188]+='\x0a');continue;}let _0x438a93;if(_0x438a93='add'==_0x4b4188?_0x3dbb09['nextSibling']&&!this['_schema']['isObject'](_0x3dbb09['nextSibling'])?_0x3dbb09['nextSibling']:null:_0x3dbb09['previousSibling']&&!this['_schema']['isObject'](_0x3dbb09['previousSibling'])?_0x3dbb09['previousSibling']:null,_0x3dbb09['isEmpty']||_0x438a93&&_0x438a93['isEmpty']){const _0x24e6cb=_0x438a93&&_0x438a93['isEmpty']?_0x438a93:_0x3dbb09;_0x870240&&_0x870240['type']==_0x4b4188+'EmptyContainer'&&_0x870240['element']['name']==_0x24e6cb['name']?_0x870240['quantity']++:_0x3b03e1['push']({'type':_0x4b4188+'EmptyContainer','element':_0x24e6cb,'quantity':0x1});}else _0x3b03e1['push']({'type':_0x4b4188+'Container','element':_0x3dbb09});}}}}}['_resolveDescriptionItems'](_0x8a2212){const _0x4e24e8=this['_locale'],_0x5450d1=[],_0x1167b9=[],_0x13b2ab=[];for(const _0x283f56 of _0x8a2212)switch(_0x283f56['type']){case'text':if(_0x283f56['add']=_0x283f56['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x283f56['remove']=_0x283f56['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x283f56['add']&&''!=_0x283f56['remove']){_0x5450d1['push']({'type':'replace','content':c(_0x4e24e8,'REPLACE_TEXT',['\x22'+_0x283f56['remove']+'\x22','\x22'+_0x283f56['add']+'\x22'])});continue;}if(null!=_0x283f56['add']['match'](/^ +$/)){_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Insert:*\x20%0',c(_0x4e24e8,'ELEMENT_SPACE',_0x283f56['add']['length']))});continue;}if(null!=_0x283f56['remove']['match'](/^ +$/)){_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Remove:*\x20%0',c(_0x4e24e8,'ELEMENT_SPACE',_0x283f56['remove']['length']))});continue;}if(''!=_0x283f56['add']){_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Insert:*\x20%0','\x22'+_0x283f56['add']+'\x22')});continue;}_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Remove:*\x20%0','\x22'+_0x283f56['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Insert:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Remove:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'addContainer':_0x5450d1['push']({'type':'insertion','content':c(_0x4e24e8,'*Split:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'removeContainer':_0x5450d1['push']({'type':'deletion','content':c(_0x4e24e8,'*Merge:*\x20%0',this['getItemLabel'](_0x283f56['element'],_0x283f56['quantity']))});continue;case'addFormat':_0x1167b9['push'](_0x283f56['key']);continue;case'removeFormat':_0x13b2ab['push'](_0x283f56['key']);continue;default:_0x5450d1['push'](_0x283f56);}if(_0x1167b9['length']){const _0x374d6a=_0x1167b9['map'](_0x4c1eec=>this['_attributeLabels']['has'](_0x4c1eec)?this['_attributeLabels']['get'](_0x4c1eec):_0x4c1eec)['join'](',\x20');_0x5450d1['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x374d6a)});}if(_0x13b2ab['length']){const _0x547beb=_0x13b2ab['map'](_0x195603=>this['_attributeLabels']['has'](_0x195603)?this['_attributeLabels']['get'](_0x195603):_0x195603)['join'](',\x20');_0x5450d1['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x547beb)});}return _0x5450d1;}['_handleCustomCallbackDescription'](_0x34a698){for(const _0x2572cd of this['_customCallbacks']){const _0x228266=_0x2572cd(_0x34a698);if(_0x228266&&'type'in _0x228266)return _0x228266;}}['_handleAttributeSuggestionDescription'](_0x1d381e,_0x208416){const _0x3a2582=_0x208416['data'],_0xaa9855=void 0x0===_0x3a2582['newValue']?'removeFormat':'addFormat';_0x1d381e['push']({'type':_0xaa9855,'key':_0x3a2582['key']});}['_handleRenameSuggestionDescription'](_0x172ba4,_0x534db0){_0x172ba4['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x534db0['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x597dfd,_0x49842e,_0xded55f){if(this['_addDescriptionItems'](_0x597dfd,_0x49842e),_0xded55f&&_0xded55f['getFirstRange']()&&!_0x49842e['getFirstRange']()['end']['isEqual'](_0xded55f['getFirstRange']()['start'])){const _0x5f4732=_0x597dfd[_0x597dfd['length']-0x1],_0x389d86='insertion'==_0x49842e['type']?'add':'remove';_0x5f4732&&'text'==_0x5f4732['type']&&(_0x5f4732[_0x389d86]+='\x0a');}}}class U extends _0x577ae7{['afterInit'](){const _0x1333bb=this['editor'],_0x1a0795=_0x1333bb['plugins']['get']('TrackChangesEditing');_0x1333bb['commands']['get']('showAIAssistant')&&_0x1a0795['enableCommand']('showAIAssistant');}}class V extends _0x577ae7{['afterInit'](){const _0x557280=this['editor'],_0xec852d=_0x557280['locale'];if(!_0x557280['plugins']['has']('AlignmentEditing'))return;const _0x41e2c6=_0x557280['plugins']['get']('TrackChangesEditing');_0x41e2c6['enableDefaultAttributesIntegration']('alignment'),_0x41e2c6['registerBlockAttribute']('alignment'),_0x41e2c6['descriptionFactory']['registerAttributeLabel']('alignment',c(_0xec852d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a9a5b=this['editor'],_0x5a5be3=_0x5a9a5b['locale'];_0x5a9a5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56c3b5=>{if('formatBlock'!=_0x56c3b5['type'])return;const {data:_0x1afbe1}=_0x56c3b5;if(_0x1afbe1&&'alignment'==_0x1afbe1['commandName']){const _0x4e131a=_0x1afbe1['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x5a5be3,'*Format:*\x20%0',function(_0x5c3a6){switch(_0x5c3a6){case'left':return c(_0x5a5be3,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x5a5be3,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x5a5be3,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x5a5be3,'FORMAT_JUSTIFY_TEXT');}}(_0x4e131a))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x577ae7{['afterInit'](){const _0x3ba60b=this['editor'],_0x250b3b=_0x3ba60b['plugins']['get']('TrackChangesEditing'),_0x51a983=_0x3ba60b['locale'];for(const _0x123971 of Zt){if(!_0x3ba60b['plugins']['has'](_0x123971))continue;const _0x15c958=_0x123971['slice'](0x0,-0x7)['toLowerCase'](),_0x2e6fb2='FORMAT_'+_0x15c958['toUpperCase']();_0x250b3b['enableDefaultAttributesIntegration'](_0x15c958),_0x250b3b['registerInlineAttribute'](_0x15c958),_0x250b3b['descriptionFactory']['registerAttributeLabel'](_0x15c958,c(_0x51a983,_0x2e6fb2));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21d6b9=this['editor'],_0x37dfd1=_0x21d6b9['locale'],_0xd7c69d=_0x21d6b9['plugins']['get']('TrackChangesEditing');function _0x2af864(_0x3b76ab,_0x45be6a){_0xd7c69d['descriptionFactory']['registerDescriptionCallback'](_0x55d64b=>{if('formatInline'!=_0x55d64b['type'])return;const {data:_0x34ca1d}=_0x55d64b;return _0x34ca1d&&_0x34ca1d['commandName']===_0x3b76ab?_0x34ca1d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x37dfd1,'*Format:*\x20%0',_0x45be6a)}:{'type':'format','content':c(_0x37dfd1,'*Remove\x20format:*\x20%0',_0x45be6a)}:void 0x0;});}_0x2af864('bold',c(_0x37dfd1,'FORMAT_BOLD')),_0x2af864('italic',c(_0x37dfd1,'FORMAT_ITALIC')),_0x2af864('underline',c(_0x37dfd1,'FORMAT_UNDERLINE')),_0x2af864('code',c(_0x37dfd1,'FORMAT_CODE')),_0x2af864('strikethrough',c(_0x37dfd1,'FORMAT_STRIKETHROUGH')),_0x2af864('subscript',c(_0x37dfd1,'FORMAT_SUBSCRIPT')),_0x2af864('superscript',c(_0x37dfd1,'FORMAT_SUPERSCRIPT'));}}class G extends _0x577ae7{['afterInit'](){const _0x5d321b=this['editor'],_0x29bf56=_0x5d321b['locale'];if(!_0x5d321b['plugins']['has']('BlockQuoteEditing'))return;const _0x9d84ac=_0x5d321b['plugins']['get']('TrackChangesEditing'),_0x1a6cb5=this['editor']['commands']['get']('blockQuote');_0x9d84ac['enableCommand']('blockQuote',(_0x5726a1,_0x82cf2f={})=>{const _0x4e0c88=this['editor']['model']['document']['selection'],_0xc5f788=_0x82cf2f&&void 0x0!==_0x82cf2f['forceValue']?_0x82cf2f['forceValue']:!_0x1a6cb5['value'];let _0x3cd731=[];if(_0xc5f788){const _0x3e7034=Array['from'](_0x4e0c88['getSelectedBlocks']())['filter'](_0x2b7bd8=>oo(_0x2b7bd8)||function(_0x3c8392,_0x48cc06){const _0x524e6f=_0x48cc06['checkChild'](_0x3c8392['parent'],'blockQuote'),_0x3eedbc=_0x48cc06['checkChild'](['$root','blockQuote'],_0x3c8392);return _0x524e6f&&_0x3eedbc;}(_0x2b7bd8,this['editor']['model']['schema']));_0x3cd731=to(_0x3e7034,_0x5d321b['model']);}else{const _0x36f02f=Array['from'](_0x4e0c88['getSelectedBlocks']())['filter'](_0x107283=>oo(_0x107283));_0x3cd731=to(_0x36f02f,_0x5d321b['model']);}_0x5d321b['model']['change'](()=>{for(const _0x181653 of _0x3cd731)_0x9d84ac['markBlockFormat'](_0x181653,{'commandName':'blockQuote','commandParams':[{'forceValue':_0xc5f788}]});});}),_0x9d84ac['descriptionFactory']['registerDescriptionCallback'](_0xdea76b=>{const {data:_0x24fddd}=_0xdea76b;if(_0x24fddd&&'blockQuote'==_0x24fddd['commandName']){const _0x367e18=c(_0x29bf56,'ELEMENT_BLOCK_QUOTE');return _0x24fddd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x29bf56,'*Set\x20format:*\x20%0',_0x367e18)}:{'type':'format','content':c(_0x29bf56,'*Remove\x20format:*\x20%0',_0x367e18)};}});}}function oo(_0x4e266c){return'blockQuote'==_0x4e266c['parent']['name'];}class L extends _0x577ae7{['afterInit'](){const _0x3d5cb5=this['editor'],_0x3dc3f9=_0x3d5cb5['locale'],_0x1a5919=_0x3d5cb5['plugins']['get']('TrackChangesEditing');_0x3d5cb5['plugins']['has']('BookmarkEditing')&&(_0x1a5919['enableCommand']('insertBookmark'),_0x1a5919['enableDefaultAttributesIntegration']('updateBookmark'),_0x1a5919['registerBlockAttribute']('bookmarkId'),_0x1a5919['descriptionFactory']['registerDescriptionCallback'](_0x5b1612=>{if('insertion'!=_0x5b1612['type']&&'deletion'!=_0x5b1612['type']&&'attribute'!=_0x5b1612['type'])return;const _0xdef4ed=_0x5b1612['getContainedElement']();if(null==_0xdef4ed)return;if(!_0xdef4ed['is']('element','bookmark'))return;const _0x33944f=_0xdef4ed['getAttribute']('bookmarkId');if('insertion'==_0x5b1612['type'])return{'type':'insertion','content':c(_0x3dc3f9,'*Insert:*\x20%0','\x22'+_0x33944f+'\x22\x20'+c(_0x3dc3f9,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5b1612['type'])return{'type':'deletion','content':c(_0x3dc3f9,'*Remove:*\x20%0','\x22'+_0x33944f+'\x22\x20'+c(_0x3dc3f9,'ELEMENT_BOOKMARK'))};const {data:_0x3d14d4}=_0x5b1612;if(!_0x3d14d4||'bookmarkId'!=_0x3d14d4['key'])return;return{'type':'format','content':c(_0x3dc3f9,'*Set\x20bookmark:*\x20%0','\x22'+_0x3d14d4['newValue']+'\x22')};}));}}class J extends _0x577ae7{['afterInit'](){const _0x25aa7d=this['editor'];_0x25aa7d['plugins']['has']('CaseChange')&&(_0x25aa7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x25aa7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x25aa7d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x577ae7{['afterInit'](){const _0x5d2240=this['editor'];_0x5d2240['commands']['get']('ckbox')&&_0x5d2240['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x577ae7{['afterInit'](){const _0x4da2ec=this['editor'];if(!_0x4da2ec['plugins']['has']('CodeBlock'))return;const _0x2f6da1=_0x4da2ec['plugins']['get']('TrackChangesEditing'),_0x250b04=_0x4da2ec['locale'],_0x60c1db=_0x4da2ec['config']['get']('codeBlock')['languages'],_0x1e58eb=_0x4da2ec['commands']['get']('codeBlock');_0x2f6da1['enableCommand']('indentCodeBlock'),_0x2f6da1['enableCommand']('outdentCodeBlock'),_0x2f6da1['enableCommand']('codeBlock',(_0x2f7ad6,_0x3b03e5={})=>{const _0xf8ded7=_0x4da2ec['model'],_0x1f5206=_0x4da2ec['model']['document']['selection'],_0x3de7d8=_0x3b03e5&&void 0x0!==_0x3b03e5['forceValue']?_0x3b03e5['forceValue']:!_0x1e58eb['value'];let _0x2f9457;_0x3b03e5['language']||(_0x3b03e5['language']=_0x60c1db[0x0]['language']),_0x2f9457=_0x3de7d8?Array['from'](_0x1f5206['getSelectedBlocks']())['filter'](_0x4a5742=>eo(_0x4a5742)||function(_0x26649a,_0xecaa2a){if(_0x26649a['is']('rootElement')||_0xecaa2a['isLimit'](_0x26649a))return!0x1;return _0xecaa2a['checkChild'](_0x26649a['parent'],'codeBlock');}(_0x4a5742,_0xf8ded7['schema'])):Array['from'](_0x1f5206['getSelectedBlocks']())['filter'](_0x1ace0b=>eo(_0x1ace0b));const _0x2b756a=to(_0x2f9457,_0xf8ded7);_0xf8ded7['change'](()=>{for(const _0x26cbfd of _0x2b756a)_0x2f6da1['markBlockFormat'](_0x26cbfd,{'commandName':'codeBlock','commandParams':[{..._0x3b03e5,'forceValue':_0x3de7d8}],'formatGroupId':'blockName'});});}),(_0x2f6da1['descriptionFactory']['registerElementLabel']('codeBlock',_0x273f4c=>c(_0x250b04,'ELEMENT_CODE_BLOCK',_0x273f4c)),_0x2f6da1['descriptionFactory']['registerDescriptionCallback'](_0x491d1b=>{if('formatBlock'!=_0x491d1b['type'])return;const _0x4abaf0=_0x250b04['t'],{data:_0x4d89c6}=_0x491d1b;if(!_0x4d89c6||'codeBlock'!=_0x4d89c6['commandName'])return;const _0x1866d8=_0x4d89c6['commandParams'][0x0]['language'],_0x36828d=_0x4abaf0(_0x60c1db['find'](_0x1596ae=>_0x1596ae['language']===_0x1866d8)['label'])['toLowerCase']();return _0x4d89c6['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x250b04,'*Set\x20format:*\x20%0',c(_0x250b04,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x36828d+')')}:{'type':'format','content':c(_0x250b04,'*Remove\x20format:*\x20%0',c(_0x250b04,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x34fdb0){return'codeBlock'==_0x34fdb0['name'];}class q extends _0x577ae7{['afterInit'](){const _0x2ead1f=this['editor'];if(!_0x2ead1f['plugins']['has']('CommentsEditing'))return;_0x2ead1f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x28dfb2,_0x514be6,_0x241703){const _0x40707d=[];for(const _0x12c998 of _0x514be6['getItems']())_0x12c998['hasAttribute'](_0x28dfb2)&&_0x40707d['push'](_0x241703['createRangeOn'](_0x12c998));return _0x40707d;}function Fe(_0x4e1919,_0x4617e5,{showActiveMarker:_0x1f848d=!0x0}={}){const _0x201816=_0x4e1919['plugins']['get']('TrackChangesEditing');return(_0x6f8413,_0x4062b4,_0x5d6ac3)=>{if(!_0x5d6ac3['consumable']['test'](_0x4062b4['markerRange'],_0x6f8413['name']))return;const _0x3fe3e4=_0x4062b4['markerRange']['getWalker'](),_0x1dfd15=_0x4062b4['markerRange']['start'],_0x379231=_0x4e1919['model']['schema'];let _0x540d58=null,_0x5a7eb1=null,_0x91267f=!0x1,_0x19e4df=!0x1;for(const _0x1730e0 of _0x3fe3e4){const _0x252b50=_0x1730e0['item'];_0x91267f=_0x91267f||_0x379231['isContent'](_0x252b50);const _0xbb234e=_0x5d6ac3['mapper']['toViewElement'](_0x252b50);if(_0xbb234e&&_0xbb234e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1730e0['type']&&(_0x379231['isBlock'](_0x252b50)&&!_0x379231['isLimit'](_0x252b50)&&(_0x252b50['nextSibling']||_0x1dfd15['isAtEnd']?_0x540d58&&_0x540d58['parent']==_0x252b50||(_0x540d58=_0x252b50,_0x229a01(_0x1730e0['previousPosition']),_0x19e4df=!0x0):_0x5a7eb1=_0x5a7eb1||_0x1730e0['previousPosition']));}function _0x229a01(_0x1c5dd6){const {id:_0x123573,authorId:_0x53e571}=_0x201816['_splitMarkerName'](_0x4062b4['markerName']),_0x3024bb=_0x5d6ac3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4617e5,'data-suggestion':_0x123573,'data-author-id':_0x53e571}),_0x45a22e=_0x5d6ac3['mapper']['toViewPosition'](_0x1c5dd6);_0x1f848d&&_0x201816['activeMarkers']['includes'](_0x4062b4['markerName'])&&_0x5d6ac3['writer']['addClass']('ck-suggestion-marker--active',_0x3024bb),_0x5d6ac3['writer']['insert'](_0x45a22e,_0x3024bb),_0x5d6ac3['mapper']['bindElementToMarker'](_0x3024bb,_0x4062b4['markerName']);}_0x91267f||_0x19e4df||!_0x5a7eb1||_0x229a01(_0x5a7eb1);};}class z extends _0x577ae7{static get['requires'](){return[_0x5c99b2];}['init'](){const _0x236b80=this['editor'],_0x3ebadc=_0x236b80['plugins']['get']('TrackChangesEditing');_0x3ebadc['enableCommand']('delete');const _0x5c0506=_0x236b80['commands']['get']('deleteForward');_0x3ebadc['enableCommand']('deleteForward',(_0x288142,_0x3da074={})=>{const _0x2e86b4=_0x236b80['model']['createSelection'](_0x236b80['model']['document']['selection']);_0x2e86b4['isCollapsed']&&_0x236b80['model']['modifySelection'](_0x2e86b4,{'direction':'forward','unit':_0x3da074['unit']});const _0x19eea5=_0x2e86b4['getFirstRange'](),_0x4f1c46=_0x3a5e87['fromRange'](_0x19eea5);let _0x3f4861;_0x288142(_0x3da074),_0x3f4861='$graveyard'==_0x4f1c46['root']['rootName']?_0x236b80['model']['createRange'](_0x19eea5['start']):_0x236b80['model']['createRange'](_0x4f1c46['start'],_0x4f1c46['end']),_0x4f1c46['detach'](),_0x236b80['model']['enqueueChange'](_0x5c0506['buffer']['batch'],_0x38b3b7=>{_0x5c0506['buffer']['lock'](),_0x38b3b7['setSelection'](_0x38b3b7['createRange'](_0x3f4861['end'])),_0x5c0506['buffer']['unlock']();});}),_0x236b80['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x236b80,'merge'),{'priority':'high'}),_0x236b80['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x53f76f,_0x30b426,_0x45888f)=>{_0x45888f['options']['showSuggestionHighlights']&&Fe(_0x236b80,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x53f76f,_0x30b426,_0x45888f);},{'priority':'high'}),_0x236b80['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x113a99,_0x59996d,_0x2fce2c)=>{const _0x50a5ef=_0x2fce2c['mapper']['markerNameToElements'](_0x59996d['markerName']);if(_0x50a5ef){for(const _0x397976 of _0x50a5ef)_0x397976['is']('uiElement')&&(_0x2fce2c['mapper']['unbindElementFromMarkerName'](_0x397976,_0x59996d['markerName']),_0x2fce2c['writer']['remove'](_0x397976));}},{'priority':'high'});}}class W extends _0x577ae7{['afterInit'](){const _0x5947a=this['editor'];if(!_0x5947a['plugins']['has']('ListEditing'))return;const _0x2c3729=_0x5947a['locale'],_0x2ac062=_0x5947a['plugins']['get']('TrackChangesEditing'),_0x504352=_0x5947a['plugins']['has']('TodoListEditing'),_0x58f564=!!_0x5947a['config']['get']('list.multiBlock');function _0x351338(_0x5bfcef){return{'type':'format','content':''+c(_0x2c3729,'*Set\x20format:*\x20%0',_0x5bfcef)};}function _0x18e5bd(_0x1768c0){return{'type':'format','content':''+c(_0x2c3729,'*Remove\x20format:*\x20%0',_0x1768c0)};}_0x2ac062['enableDefaultAttributesIntegration']('numberedList'),_0x2ac062['enableDefaultAttributesIntegration']('bulletedList'),_0x2ac062['enableDefaultAttributesIntegration']('customNumberedList'),_0x2ac062['enableDefaultAttributesIntegration']('customBulletedList'),_0x2ac062['enableDefaultAttributesIntegration']('indentList'),_0x2ac062['enableDefaultAttributesIntegration']('outdentList'),_0x2ac062['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2ac062['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2ac062['registerBlockAttribute']('listItemId'),_0x2ac062['registerBlockAttribute']('listType'),_0x2ac062['registerBlockAttribute']('listIndent'),_0x58f564&&(_0x2ac062['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2ac062['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x504352&&(_0x2ac062['enableDefaultAttributesIntegration']('todoList'),_0x2ac062['enableDefaultAttributesIntegration']('checkTodoList'),_0x2ac062['registerBlockAttribute']('todoListChecked'),_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0x4f4fc0=>{const {data:_0x533794}=_0x4f4fc0;if(_0x533794&&'todoListChecked'==_0x533794['key'])return{'type':'format','content':_0x533794['newValue']?c(_0x2c3729,'*Check\x20item*'):c(_0x2c3729,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x48a8d2=>{if(_0x48a8d2['batch']['isUndo'])return!0x1;let _0x4f1dd0=!0x1;const _0x138a3d=_0x2ac062['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x150369=>'todoListChecked'===_0x2ac062['_getAttributeKey'](_0x150369));for(const _0x41fc09 of _0x138a3d){'todo'!=_0x41fc09['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2ac062['_findSuggestions'](_0x41fc09['getFirstRange'](),'attribute')['find'](_0xfcc173=>'listType'===_0x2ac062['_getAttributeKey'](_0xfcc173['suggestion']))||(_0x48a8d2['removeMarker'](_0x41fc09['getFirstMarker']()),_0x4f1dd0=!0x0));}return _0x4f1dd0;})),_0x2ac062['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x2c3729,'FORMAT_INDENT'));const _0x26ef08={'type':'format','content':''};_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0xfcf2f9=>{const {data:_0x710e99}=_0xfcf2f9;if(!_0x710e99||'listType'!=_0x710e99['key'])return;let _0x540818=_0xfcf2f9['head'];for(;_0x540818;){if(_0x540818['data']&&(('listStyle'==_0x540818['data']['key']||'listMarkerStyle'==_0x540818['data']['key'])&&(_0x540818['data']['newValue']&&'default'!=_0x540818['data']['newValue']||'default'!=_0x540818['data']['oldValue']&&!_0x710e99['newValue'])||!_0x58f564&&_0x540818['data']['key']==u))return _0x26ef08;_0x540818=_0x540818['next'];}if(null==_0x710e99['newValue'])switch(_0x710e99['oldValue']){case'bulleted':return _0x18e5bd(c(_0x2c3729,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18e5bd(c(_0x2c3729,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18e5bd(c(_0x2c3729,'ELEMENT_TODO_LIST'));}switch(_0x710e99['newValue']){case'bulleted':return _0x351338(c(_0x2c3729,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x351338(c(_0x2c3729,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x351338(c(_0x2c3729,'ELEMENT_TODO_LIST'));}}),_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0x22219f=>{const {data:_0x39662f}=_0x22219f;if(_0x39662f&&'listIndent'==_0x39662f['key'])return null==_0x39662f['newValue']||null==_0x39662f['oldValue']&&0x0==_0x39662f['newValue']?_0x26ef08:void 0x0;}),_0x2ac062['descriptionFactory']['registerDescriptionCallback'](_0x2401c3=>{if('attribute'!=_0x2401c3['type'])return;const {data:_0x2ae760}=_0x2401c3;if(!_0x2ae760||'listItemId'!=_0x2ae760['key'])return;const _0x5dedec=Te(_0x2401c3);return'newValue'==_0x5dedec?{'type':'format','content':c(_0x2c3729,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5dedec?{'type':'format','content':c(_0x2c3729,'*Split:*\x20list\x20item')}:_0x26ef08;}),_0x5947a['model']['document']['registerPostFixer'](_0xbe8130=>this['listItemIdFixer'](_0xbe8130)),_0x5947a['model']['document']['registerPostFixer'](_0x405489=>this['noTrackChangesFixer'](_0x405489)),_0x5947a['model']['document']['on']('change:data',(_0x2f4b90,_0x88f0a1)=>{if(_0x88f0a1['isUndo']||!_0x88f0a1['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5e3eaf){if(_0x5e3eaf['batch']['isUndo']||!_0x5e3eaf['batch']['isLocal'])return!0x1;let _0x379355=!0x1;const _0x5752c3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x216cba=>_0x216cba['data']&&'listItemId'==_0x216cba['data']['key'])['filter'](_0xb19590=>_0xb19590['data']['newValue']&&_0xb19590['data']['oldValue']);for(const _0xc21473 of _0x5752c3)Te(_0xc21473)||(_0x5e3eaf['removeMarker'](_0xc21473['getFirstMarker']()),_0x379355=!0x0);return _0x379355;}['noTrackChangesFixer'](_0x13e51b){if(_0x13e51b['batch']['isUndo']||!_0x13e51b['batch']['isLocal'])return!0x1;const _0x1ddf11=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1ddf11['trackChangesCommand']['value'])return!0x1;let _0x39ff0a=!0x1;const _0xae3428=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4404a2=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xb25d2d=>'attribute'==_0xb25d2d['type'])['filter'](_0x600112=>_0xae3428['includes'](_0x600112['attributeKey']));if(0x0==_0x4404a2['length'])return _0x39ff0a;for(const _0x7e6714 of _0x4404a2){const _0x55028a=_0x1ddf11['_findSuggestions'](_0x7e6714['range'],'attribute')['filter'](_0x3cd44b=>!_0x3cd44b['meta']['isNextTo'])['map'](_0xcb4054=>_0xcb4054['suggestion'])['filter'](_0x191dcf=>{const _0x280947=_0x1ddf11['_getAttributeKey'](_0x191dcf);return _0xae3428['includes'](_0x280947);});if(_0x55028a['length']){for(const _0x1fe917 of _0x55028a)_0x13e51b['removeMarker'](_0x1fe917['getFirstMarker']());_0x39ff0a=!0x0;}}return _0x39ff0a;}['assureChains'](){const _0x24f75e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3eae72=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4f6d75;const _0x1643f5=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1b4d9e=>{if(_0x1b4d9e['data']['oldRange']||!_0x1b4d9e['data']['newRange'])return null;if(!_0x1b4d9e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1ffda8}=_0x24f75e['_splitMarkerName'](_0x1b4d9e['name']);if(!_0x24f75e['hasSuggestion'](_0x1ffda8))return null;const _0x20417c=_0x24f75e['getSuggestion'](_0x1ffda8);return _0x3eae72['includes'](_0x20417c['data']['key']);})['map'](_0x10b8c9=>{const {id:_0x5313f1}=_0x24f75e['_splitMarkerName'](_0x10b8c9['name']),_0xf5f052=_0x24f75e['getSuggestion'](_0x5313f1);return _0x4f6d75=_0xf5f052['attributes']['groupId'],_0xf5f052['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1643f5['size'])return;const _0x2778df=_0x24f75e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40b249=>'attribute'==_0x40b249['type']&&_0x40b249['data']&&_0x3eae72['includes'](_0x40b249['data']['key'])&&_0x40b249['attributes']['groupId']!=_0x4f6d75)['map'](_0x37c393=>({'listItem':_0x37c393['getFirstRange']()['start']['nodeAfter'],'groupId':_0x37c393['attributes']['groupId']})),_0x32a0cb=new Set();for(const {groupId:_0xb246ee,listItem:_0x17dd5a}of _0x2778df)_0x1643f5['has'](_0x17dd5a)&&_0x32a0cb['add'](_0xb246ee);for(const _0x5b71cc of _0x24f75e['getSuggestions']())_0x32a0cb['has'](_0x5b71cc['attributes']['groupId'])&&_0x5b71cc['setAttribute']('groupId',_0x4f6d75);}['_supportLegacySuggestions'](){const _0x5f228a=this['editor'],_0x4c34d6=_0x5f228a['locale'],_0xcfadee=_0x5f228a['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xcfadee['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4a10c1,_0x4fe5b7){const _0x226cbb=[];for(let _0x25b3af of _0x4a10c1)_0x25b3af['start']['nodeAfter']===_0x25b3af['end']['parent']&&(_0x25b3af=_0x5f228a['model']['createRange'](_0x5f228a['model']['createPositionAt'](_0x25b3af['start']['nodeAfter'],0x0))),_0x226cbb['push'](_0x25b3af);_0x5f228a['model']['change'](_0x57c0ab=>{const _0x122856=_0x5f228a['model']['document']['selection'],_0x38b97f=Array['from'](_0x122856['getRanges']())['map'](_0x597037=>_0x3a5e87['fromRange'](_0x597037));_0x57c0ab['setSelection'](_0x226cbb),_0x5f228a['commands']['get'](_0x4fe5b7['commandName'])['refresh'](),_0x4fe5b7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5f228a['execute'](_0x4fe5b7['commandName'],..._0x4fe5b7['commandParams']),_0x57c0ab['setSelection'](_0x38b97f);for(const _0xf54159 of _0x38b97f)_0xf54159['detach']();});}),_0xcfadee['descriptionFactory']['registerElementLabel'](function(_0x324c82){const _0x540893=!_0x5f228a['model']['schema']['isObject'](_0x324c82),_0x1c3057=_0x324c82['previousSibling'],_0x82670e=_0x324c82['nextSibling'],_0xa23e91=_0x324c82['getAttribute']('listItemId'),_0x43b81f=!_0x1c3057||_0x1c3057['getAttribute']('listItemId')!==_0xa23e91,_0x30dafc=!_0x82670e||_0x82670e['getAttribute']('listItemId')!==_0xa23e91;return _0x540893&&Boolean(_0xa23e91)&&_0x43b81f&&_0x30dafc;},_0x863b0f=>c(_0x4c34d6,'ELEMENT_LIST_ITEM',_0x863b0f));}['_registerLegacyDescription'](){const _0x542312=this['editor'],_0x30d854=_0x542312['locale'];function _0xa91834(_0x3f095f){const _0x1bf027=_0x542312['commands']['get']('bulletedList')['value'],_0x22fc83=_0x542312['commands']['get']('numberedList')['value'];return'numberedList'===_0x3f095f?_0x1bf027:_0x22fc83;}_0x542312['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4f93d2){if('formatBlock'!=_0x4f93d2['type'])return;const {data:_0x46e0aa}=_0x4f93d2;if(!_0x46e0aa)return;let _0x203d67,_0x1eb523,_0x5ee646,_0x5b1d95;switch(_0x46e0aa['commandName']){case'bulletedList':_0x5ee646=_0x46e0aa['commandParams'][0x0]['forceValue'],_0x5b1d95=_0xa91834(_0x46e0aa['commandName']),_0x203d67=_0x5ee646?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b1d95&&_0x542312['config']['get']('list.multiBlock')||(_0x203d67='*Change\x20to:*\x20%0'),_0x1eb523={'type':'format','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5ee646=_0x46e0aa['commandParams'][0x0]['forceValue'],_0x5b1d95=_0xa91834(_0x46e0aa['commandName']),_0x203d67=_0x5ee646?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5b1d95&&_0x542312['config']['get']('list.multiBlock')||(_0x203d67='*Change\x20to:*\x20%0'),_0x1eb523={'type':'format','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x203d67='*Indent:*\x20%0',_0x1eb523={'type':'format','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x203d67=function(_0x2a68db){const _0x4bfb92=_0x2a68db['getFirstRange']();let _0x4c630a=_0x4bfb92['start']['nodeAfter'];for(;_0x4c630a&&_0x4bfb92['containsItem'](_0x4c630a);){if(_0x4c630a['getAttribute']('listIndent')>0x0)return!0x1;_0x4c630a=_0x4c630a['nextSibling'];}return!0x0;}(_0x4f93d2)?c(_0x30d854,'*Format:*\x20remove\x20from\x20%0',c(_0x30d854,function(_0x4a2555){return'ELEMENT_'+_0x4a2555['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4f93d2))):c(_0x30d854,'*Outdent:*\x20%0',c(_0x30d854,'ELEMENT_LIST_ITEM')),_0x1eb523={'type':'format','content':_0x203d67};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x46e0aa['multipleBlocks']&&(_0x203d67='*Merge:*\x20%0',_0x1eb523={'type':'deletion','content':c(_0x30d854,_0x203d67,c(_0x30d854,'ELEMENT_LIST_ITEM'))});}return _0x1eb523;});}}function Te(_0x1fb6c4){let _0x183eb5=_0x1fb6c4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x183eb5;){const _0x4273d2=_0x183eb5['getAttribute']('listItemId');if(!_0x4273d2)return!0x1;if(_0x4273d2==_0x1fb6c4['data']['newValue'])return'newValue';if(_0x4273d2==_0x1fb6c4['data']['oldValue'])return'oldValue';_0x183eb5=_0x183eb5['previousSibling'];}return!0x1;}class Se extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xeffdae=this['editor']['config']['get']('list.properties'),_0x2a5422=this['editor']['plugins']['get']('TrackChangesEditing');_0xeffdae['styles']&&(_0x2a5422['enableDefaultAttributesIntegration']('listStyle'),_0x2a5422['registerBlockAttribute']('listStyle')),_0xeffdae['reversed']&&(_0x2a5422['enableDefaultAttributesIntegration']('listReversed'),_0x2a5422['registerBlockAttribute']('listReversed')),_0xeffdae['startIndex']&&(_0x2a5422['enableDefaultAttributesIntegration']('listStart'),_0x2a5422['registerBlockAttribute']('listStart'));const _0x1cce8a={'type':'format','content':''};_0x2a5422['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x29fb54=this['editor']['locale'];_0x2a5422['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x29fb54,'FORMAT_LIST_REVERSED')),_0x2a5422['descriptionFactory']['registerDescriptionCallback'](_0x3cd61f=>{const {data:_0x4a29e9}=_0x3cd61f;if(_0x4a29e9&&'listReversed'==_0x4a29e9['key'])return null==_0x4a29e9['newValue']||0x0==_0x4a29e9['newValue']&&null==_0x4a29e9['oldValue']?_0x1cce8a:void 0x0;}),_0x2a5422['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x29fb54,'FORMAT_LIST_START')),_0x2a5422['descriptionFactory']['registerDescriptionCallback'](_0x421aa9=>{const {data:_0x5c7c76}=_0x421aa9;if(_0x5c7c76&&'listStart'==_0x5c7c76['key'])return null==_0x5c7c76['newValue']||0x1==_0x5c7c76['newValue']&&null==_0x5c7c76['oldValue']?_0x1cce8a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3e0488=>{if(_0x3e0488['batch']['isUndo'])return!0x1;let _0x1fab22=!0x1;const _0x8c4348=_0x2a5422['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x368677=>{const _0x5dd125=_0x2a5422['_getAttributeKey'](_0x368677);return'listStart'==_0x5dd125||'listReversed'==_0x5dd125;});for(const _0x314cdb of _0x8c4348){const _0x2ba4a5=_0x314cdb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2ba4a5||'customNumbered'==_0x2ba4a5)continue;_0x2a5422['_findSuggestions'](_0x314cdb['getFirstRange'](),'attribute')['find'](_0x2ceb08=>'listType'==_0x2a5422['_getAttributeKey'](_0x2ceb08['suggestion']))||(_0x3e0488['removeMarker'](_0x314cdb['getFirstMarker']()),_0x1fab22=!0x0);}return _0x1fab22;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x33db75){const _0x692f76=this['editor']['locale'],{data:_0x241472}=_0x33db75,_0x3f4da4={'type':'format','content':''};if(!_0x241472||'listStyle'!=_0x241472['key'])return;if(!_0x241472['oldValue'])return'default'==_0x241472['newValue']?_0x3f4da4:{'type':'format','content':''+c(_0x692f76,'*Set\x20format:*\x20%0',c(_0x692f76,this['_getTranslationKeyForListStyle'](_0x241472['newValue'])))};if(!_0x241472['newValue']){if('default'==_0x241472['oldValue'])return _0x3f4da4;let _0x3a4712=_0x33db75['head'];for(;_0x3a4712;){if(_0x3a4712['data']&&'listType'==_0x3a4712['data']['key']&&_0x3a4712['data']['newValue'])return _0x3f4da4;_0x3a4712=_0x3a4712['next'];}return{'type':'format','content':''+c(_0x692f76,'*Remove\x20format:*\x20%0',c(_0x692f76,this['_getTranslationKeyForListStyle'](_0x241472['oldValue'])))};}if('default'!=_0x241472['newValue'])return{'type':'format','content':''+c(_0x692f76,'*Set\x20format:*\x20%0',c(_0x692f76,this['_getTranslationKeyForListStyle'](_0x241472['newValue'])))};let _0x38d20c=_0x33db75['head'];for(;_0x38d20c;){if(_0x38d20c['data']&&'listType'==_0x38d20c['data']['key']&&_0x38d20c['data']['newValue']&&_0x38d20c['data']['oldValue'])return _0x3f4da4;_0x38d20c=_0x38d20c['next'];}return{'type':'format','content':c(_0x692f76,'*Set\x20format:*\x20%0',c(_0x692f76,'ELEMENT_'+_0x33db75['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3d059d=this['editor'],_0x16e6b2=_0x3d059d['locale'];_0x3d059d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58250e=>{if('formatBlock'!=_0x58250e['type'])return;const {data:_0x2639f7}=_0x58250e;if(!_0x2639f7)return;let _0x796948,_0x3e3fa9;switch(_0x2639f7['commandName']){case'listStyle':_0x796948='*Change\x20to:*\x20%0',_0x3e3fa9={'type':'format','content':c(_0x16e6b2,_0x796948,c(_0x16e6b2,this['_getTranslationKeyForListStyle'](_0x2639f7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x796948=_0x2639f7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e3fa9={'type':'format','content':c(_0x16e6b2,_0x796948)};break;case'listStart':_0x796948='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e3fa9={'type':'format','content':c(_0x16e6b2,_0x796948,_0x2639f7['commandParams'][0x0]['startIndex'])};}return _0x3e3fa9;});}['_getTranslationKeyForListStyle'](_0x13ced7){return'ELEMENT_'+function(_0x4984ba){if(_e['includes'](_0x4984ba))return'bulleted';if(Re['includes'](_0x4984ba))return'numbered';return null;}(_0x13ced7)['toUpperCase']()+'_LIST_'+_0x13ced7['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x577ae7{['afterInit'](){const _0x4d2bbd=this['editor'];_0x4d2bbd['commands']['get']('emoji')&&_0x4d2bbd['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x577ae7{static get['requires'](){return[_0x530fc1];}['init'](){const _0x1d6f3d=this['editor'],_0x3063e2=_0x1d6f3d['plugins']['get']('TrackChangesEditing'),_0x257239=_0x1d6f3d['commands']['get']('enter');_0x3063e2['enableCommand']('enter',()=>{_0x1d6f3d['model']['change'](_0x57f702=>{const _0x1bc125=_0x1d6f3d['model']['document']['selection'],_0x382783=_0x1bc125['getFirstPosition'](),_0x3f42dc=_0x3a5e87['fromRange'](_0x1bc125['getFirstRange']());if(_0x257239['enterBlock'](_0x57f702)){const _0x1c924f=_0x1d6f3d['model']['createPositionAt'](_0x382783['parent']['nextSibling'],0x0),_0x47b831=_0x57f702['createRange'](_0x382783,_0x1c924f);_0x3063e2['markInsertion'](_0x47b831);}else _0x57f702['setSelection'](_0x57f702['createRange'](_0x3f42dc['end']));_0x3f42dc['detach'](),_0x257239['fire']('afterExecute',{'writer':_0x57f702});});}),_0x1d6f3d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x1d6f3d,'split'),{'priority':'high'}),_0x1d6f3d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x47f714,_0x3e889a,_0x2ac779)=>{const _0x5afb27=_0x2ac779['mapper']['markerNameToElements'](_0x3e889a['markerName']);if(_0x5afb27){for(const _0x5d6993 of _0x5afb27)_0x5d6993['hasClass']('ck-suggestion-marker-split')&&(_0x2ac779['mapper']['unbindElementFromMarkerName'](_0x5d6993,_0x3e889a['markerName']),_0x2ac779['writer']['remove'](_0x5d6993));}},{'priority':'high'}),_0x1d6f3d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x198909,_0x5970d2,_0x5dcef0)=>{_0x5dcef0['options']['showSuggestionHighlights']&&Fe(_0x1d6f3d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x198909,_0x5970d2,_0x5dcef0);},{'priority':'high'});}}class Z extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x401dae=this['editor']['plugins']['get']('TrackChangesEditing');_0x401dae['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x401dae['enableCommand']('findNext'),_0x401dae['enableCommand']('findPrevious'),_0x401dae['enableCommand']('replace'),_0x401dae['enableCommand']('replaceAll');}['handleFindCommand'](_0x2669ce,_0x324b8b,_0x52a9ca={}){const _0x56c4ea=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2669ce(_0x5b851c=>{let _0x4f8376=('string'==typeof _0x324b8b?_0x56c4ea['findByTextCallback'](_0x324b8b,_0x52a9ca):_0x324b8b)(_0x5b851c);Array['isArray'](_0x4f8376)&&(_0x4f8376={'results':_0x4f8376,'searchText':'string'==typeof _0x324b8b?_0x324b8b:''});const _0x55d7b1=_0x4f8376['results']['filter'](_0x57b572=>!0x1===this['_isInDeletionRange'](_0x57b572,_0x5b851c['item']));return{..._0x4f8376,'results':_0x55d7b1};},_0x52a9ca);}['_isInDeletionRange'](_0x252f2c,_0x4484fe){const _0x57d9f0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4484fe,_0x252f2c['start']),this['editor']['model']['createPositionAt'](_0x4484fe,_0x252f2c['end']));for(const _0xb4f928 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57d9f0['getIntersection'](_0xb4f928['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x577ae7{['afterInit'](){const _0x43781c=this['editor']['locale'],_0x450b8d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1bfa0e,commandName:_0x6578a9}of ro)this['editor']['plugins']['has'](_0x1bfa0e)&&(_0x450b8d['enableDefaultAttributesIntegration'](_0x6578a9),_0x450b8d['registerInlineAttribute'](_0x6578a9));_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x43781c,'FORMAT_FONT_SIZE')),_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x43781c,'FORMAT_FONT_FAMILY')),_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x43781c,'FORMAT_FONT_COLOR')),_0x450b8d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x43781c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e8ec=this['editor'],_0x50fa8a=_0x36e8ec['locale'];_0x36e8ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b32f5=>{const _0x1bc1a3=_0x50fa8a['t'];if('formatInline'!=_0x4b32f5['type'])return;const {data:_0x468a6f}=_0x4b32f5;if(null!=_0x468a6f){if('fontSize'==_0x468a6f['commandName']){const _0x4e1cef=_0x468a6f['commandParams'][0x0]['value'];if(_0x4e1cef){const _0x2190e1=_0x1bc1a3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2fd64d=>_0x2fd64d['model']==_0x4e1cef)['title'])['toLowerCase']();return{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20size:*\x20%0',_0x2190e1)};}return{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x468a6f['commandName']){const _0x38228e=_0x468a6f['commandParams'][0x0]['value'];return _0x38228e?{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20family:*\x20%0',_0x38228e)}:{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20family*')};}if('fontColor'==_0x468a6f['commandName']){const _0x2b0c86=_0x468a6f['commandParams'][0x0]['value'];if(_0x2b0c86){const _0x139826=_0x1a6ad8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x1e2a64=>_0x1e2a64['model']==_0x2b0c86);let _0x22cf50=_0x2b0c86,_0x55dc7a='';return _0x139826&&(_0x22cf50=_0x139826['label'],_0x55dc7a=_0x1bc1a3(_0x22cf50)['toLowerCase']()),{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20color:*\x20%0',_0x55dc7a)['trim'](),'color':{'value':_0x2b0c86,'title':_0x55dc7a||_0x22cf50}};}return{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x468a6f['commandName']){const _0x27967b=_0x468a6f['commandParams'][0x0]['value'];if(_0x27967b){const _0x379985=_0x1a6ad8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x311936=>_0x311936['model']==_0x27967b);let _0x210162=_0x27967b,_0x418be2='';return _0x379985&&(_0x210162=_0x379985['label'],_0x418be2=_0x1bc1a3(_0x210162)['toLowerCase']()),{'type':'format','content':c(_0x50fa8a,'*Set\x20font\x20background\x20color:*\x20%0',_0x418be2)['trim'](),'color':{'value':_0x27967b,'title':_0x418be2||_0x210162}};}return{'type':'format','content':c(_0x50fa8a,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x577ae7{['afterInit'](){const _0x37f908=this['editor'],_0x5066b5=_0x37f908['plugins']['get']('TrackChangesEditing'),_0x49d446=_0x37f908['commands']['get']('copyFormat'),_0x8a7fe=_0x37f908['commands']['get']('pasteFormat');_0x49d446&&_0x8a7fe&&(_0x5066b5['enableDefaultAttributesIntegration']('pasteFormat'),_0x5066b5['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x103b17=this['editor'],_0x57238e=_0x103b17['locale'];_0x103b17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x466c04=>{if('formatBlock'!=_0x466c04['type']&&'formatInline'!=_0x466c04['type'])return;const {data:_0x345de1}=_0x466c04;if(_0x345de1&&'pasteFormat'===_0x345de1['commandName']){const _0x375a96=[],_0x4f3482=_0x345de1['commandParams'][0x0];for(const [_0x547a4e,_0x3d4b52]of Object['entries'](_0x4f3482))_0x375a96['push'](so(_0x103b17,_0x547a4e,_0x3d4b52));return _0x375a96['length']?{'type':'format','content':c(_0x57238e,'*Set\x20format\x20to:*\x20%0',_0x375a96['join'](',\x20'))}:{'type':'format','content':c(_0x57238e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x89d8d2,_0x315ef3,_0x478f1e){const _0x12a954=_0x89d8d2['locale']['t'],_0x52d316=_0x315ef3['split'](/(?=[A-Z])/)['join']('\x20'),_0x357729=_0x12a954(_0x52d316['charAt'](0x0)['toUpperCase']()+_0x52d316['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x478f1e)return _0x357729;if('fontColor'===_0x315ef3||'fontBackgroundColor'===_0x315ef3){const _0x2d35db=_0x1a6ad8(_0x89d8d2['config']['get']('fontColor.colors'))['find'](_0x15b948=>_0x15b948['model']==_0x478f1e);return _0x357729+'\x20('+(_0x2d35db?_0x12a954(_0x2d35db['label'])['toLowerCase']():_0x478f1e)+')';}if('fontSize'===_0x315ef3&&isNaN(parseFloat(_0x478f1e))){const _0x4d6cf1=_0x89d8d2['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x89d8d2['config']['get']('fontSize.options'))['find'](_0x12cb7a=>_0x12cb7a['model']==_0x478f1e);return _0x357729+'\x20('+(_0x4d6cf1?_0x12a954(_0x4d6cf1['title'])['toLowerCase']():_0x478f1e)+')';}return _0x357729+'\x20('+_0x478f1e+')';}class et extends _0x577ae7{['_headingOptions'];['afterInit'](){const _0x9ef821=this['editor'];if(!_0x9ef821['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x9ef821['config']['get']('heading.options');const _0x5e763a=_0x9ef821['locale'],_0xab3b92=_0x9ef821['plugins']['get']('TrackChangesEditing');_0xab3b92['enableDefaultAttributesIntegration']('heading');for(const _0x598285 of this['_headingOptions'])'paragraph'!=_0x598285['model']&&_0xab3b92['descriptionFactory']['registerElementLabel'](_0x598285['model'],_0x310ada=>{const _0x127566=this['_getHeadingLevel'](_0x598285['model']);return null!==_0x127566?_0x35e3f5(_0x310ada,_0x127566):_0x52ed4b(_0x310ada,_0x598285['title']);});function _0x35e3f5(_0x150c95,_0x57688d){return c(_0x5e763a,'ELEMENT_HEADING',[_0x150c95,_0x57688d]);}function _0x52ed4b(_0x11f9b8,_0x2e9099){return c(_0x5e763a,'ELEMENT_HEADING_CUSTOM',[_0x11f9b8,_0x2e9099]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46d97a=this['editor'],_0x8e4c65=_0x46d97a['locale'];function _0x14ca91(_0x37840c,_0x18551c){return c(_0x8e4c65,'ELEMENT_HEADING_CUSTOM',[_0x37840c,_0x18551c]);}_0x46d97a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c1f72=>{if('formatBlock'!=_0x3c1f72['type'])return;const {data:_0x25dfdc}=_0x3c1f72;if(_0x25dfdc&&'heading'==_0x25dfdc['commandName']){const _0xb003f4=_0x25dfdc['commandParams'][0x0]['value'],_0x15ef22=this['_getHeadingLevel'](_0xb003f4);if(null!==_0x15ef22)return{'type':'format','content':c(_0x8e4c65,'*Change\x20to:*\x20%0',(_0x1d2ac0=0x1,_0x25dfd4=_0x15ef22,c(_0x8e4c65,'ELEMENT_HEADING',[_0x1d2ac0,_0x25dfd4])))};const _0x2ff089=this['_headingOptions']['find'](_0x4d5a3d=>_0x4d5a3d['model']===_0xb003f4)['title'];return{'type':'format','content':c(_0x8e4c65,'*Change\x20to:*\x20%0',_0x14ca91(0x1,_0x2ff089))};}var _0x1d2ac0,_0x25dfd4;});}['_getHeadingLevel'](_0x177382){const _0x234db8=_0x177382['match'](/^heading(\d+)/);if(_0x234db8)return _0x234db8[0x1];const _0xa290a3=this['_headingOptions']?.['find'](_0x4d485c=>_0x4d485c['model']==_0x177382);if(_0xa290a3&&_0xa290a3['view']){const _0x43db38=_0xa290a3['view'],_0x51488b=(_0x43db38['name']??_0x43db38)['match'](/^h(\d+)/);if(_0x51488b)return _0x51488b[0x1];}return null;}}class nt extends _0x577ae7{['afterInit'](){const _0x3c0d28=this['editor'];if(!_0x3c0d28['plugins']['has']('HighlightEditing'))return;const _0x11cb11=_0x3c0d28['plugins']['get']('TrackChangesEditing'),_0x364664=_0x3c0d28['locale'];_0x11cb11['enableDefaultAttributesIntegration']('highlight'),_0x11cb11['registerInlineAttribute']('highlight'),_0x11cb11['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x364664,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27d98f=this['editor'],_0x58ce60=_0x27d98f['locale'];_0x27d98f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2221fb=>{if('formatInline'!=_0x2221fb['type'])return;const {data:_0x47e93f}=_0x2221fb;if(_0x47e93f&&'highlight'==_0x47e93f['commandName']){const _0x544071=_0x58ce60['t'],_0x71491c=_0x47e93f['commandParams'][0x0]['value'];if(_0x71491c){const _0x48c2c7=_0x27d98f['config']['get']('highlight.options')['find'](_0x33f243=>_0x33f243['model']==_0x71491c),_0x2ba268=_0x544071(_0x48c2c7['title'])['toLowerCase']();return{'type':'format','content':c(_0x58ce60,'*Set\x20highlight:*\x20%0',_0x2ba268),'color':{'value':_0x48c2c7['color'],'title':_0x48c2c7['title']}};}return{'type':'format','content':c(_0x58ce60,'*Remove\x20highlight*',c(_0x58ce60,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x577ae7{['afterInit'](){const _0x212b98=this['editor'];if(!_0x212b98['plugins']['has']('HorizontalLineEditing'))return;_0x212b98['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2632f2=_0x212b98['plugins']['get']('TrackChangesEditing'),_0x3671c6=_0x212b98['locale'];_0x2632f2['descriptionFactory']['registerElementLabel']('horizontalLine',_0x32dd01=>c(_0x3671c6,'ELEMENT_HORIZONTAL_LINE',_0x32dd01)),_0x212b98['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2dbb46,{writer:_0x4279ec,options:_0xaa9c06})=>{if(!_0xaa9c06['showSuggestionHighlights'])return null;const _0x2fbc0e=_0x4279ec['createContainerElement']('div'),_0x1b558a=_0x4279ec['createEmptyElement']('hr');return _0x4279ec['addClass']('ck-horizontal-line',_0x2fbc0e),_0x4279ec['insert'](_0x4279ec['createPositionAt'](_0x2fbc0e,0x0),_0x1b558a),_0x2fbc0e;},'converterPriority':'high'});}}class ot extends _0x577ae7{['afterInit'](){const _0x5c9469=this['editor'];if(!_0x5c9469['plugins']['has']('HtmlEmbed'))return;const _0x58b4fc=_0x5c9469['plugins']['get']('TrackChangesEditing'),_0x35f889=_0x5c9469['locale'];_0x58b4fc['descriptionFactory']['registerElementLabel']('rawHtml',_0x23d3c5=>c(_0x35f889,'ELEMENT_HTML_EMBED',_0x23d3c5)),_0x58b4fc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x58b4fc['registerBlockAttribute']('value'),_0x58b4fc['descriptionFactory']['registerDescriptionCallback'](_0x15c083=>{if('attribute'!=_0x15c083['type'])return;const {data:_0x2e5f33}=_0x15c083;if(_0x2e5f33&&'value'==_0x2e5f33['key']&&_0x15c083['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x338b28=c(_0x35f889,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x35f889,'*Change\x20%0\x20content*',_0x338b28)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x223c5e=this['editor'],_0x1c75c9=_0x223c5e['locale'];_0x223c5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cb24b=>{if('formatBlock'!=_0x4cb24b['type'])return;const {data:_0x4a5421}=_0x4cb24b;if(_0x4a5421&&'htmlEmbed'==_0x4a5421['commandName']){const _0x1a0a11=c(_0x1c75c9,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1c75c9,'*Change\x20%0\x20content*',_0x1a0a11)};}});}}class rt extends _0x577ae7{['afterInit'](){const _0x2d221b=this['editor'];if(!_0x2d221b['plugins']['has']('ImageEditing'))return;const _0x5b9a39=_0x2d221b['plugins']['get']('TrackChangesEditing'),_0x42bad2=_0x2d221b['plugins']['get']('ImageUtils'),_0x52f0e6=_0x2d221b['locale'];_0x5b9a39['enableCommand']('insertImage'),_0x5b9a39['descriptionFactory']['registerElementLabel']('imageBlock',_0x1c67a3=>c(_0x52f0e6,'ELEMENT_IMAGE',_0x1c67a3)),_0x5b9a39['descriptionFactory']['registerElementLabel']('imageInline',_0x4ffc51=>c(_0x52f0e6,'ELEMENT_INLINE_IMAGE',_0x4ffc51)),_0x5b9a39['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x52f0e6,'ELEMENT_CAPTION')),_0x2d221b['plugins']['has']('ImageUploadEditing')&&_0x5b9a39['enableCommand']('uploadImage'),_0x2d221b['plugins']['has']('ImageBlockEditing')&&_0x2d221b['plugins']['has']('ImageInlineEditing')&&(_0x5b9a39['enableCommand']('imageTypeInline',(_0x335191,_0x3eafb2)=>{const _0x3275fd=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']);_0x2d221b['model']['change'](()=>{_0x5b9a39['markBlockFormat'](_0x3275fd,{'commandName':'imageTypeInline','commandParams':[_0x3eafb2]},[],'convertBlockImageToInline');});}),_0x5b9a39['enableCommand']('imageTypeBlock',(_0x4add26,_0x51894d)=>{_0x2d221b['model']['change'](_0x4cefd2=>{let _0x46dee4=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x16c6d5=_0x4cefd2['createRangeOn'](_0x46dee4);const _0x41ec38=_0x303748['fromPosition'](_0x16c6d5['start'],'toPrevious'),_0x184870=_0x303748['fromPosition'](_0x16c6d5['end'],'toNext');_0x5b9a39['forceDefaultExecution'](()=>_0x4add26(_0x51894d)),_0x46dee4=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x16c6d5=_0x4cefd2['createRangeOn'](_0x46dee4);const _0x139269=_0x4cefd2['createRange'](_0x41ec38,_0x184870);_0x41ec38['detach'](),_0x184870['detach'](),_0x5b9a39['markBlockFormat'](_0x46dee4,{'commandName':'imageTypeInline','commandParams':[_0x51894d]},[],'convertInlineImageToBlock'),_0x139269['start']['isBefore'](_0x16c6d5['start'])&&_0x5b9a39['markInsertion'](_0x4cefd2['createRange'](_0x139269['start'],_0x16c6d5['start']),'convertInlineImageToBlock'),_0x16c6d5['end']['isBefore'](_0x139269['end'])&&_0x5b9a39['markInsertion'](_0x4cefd2['createRange'](_0x16c6d5['end'],_0x139269['end']),'convertInlineImageToBlock');});}),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5b9a39['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3c02db])=>{const _0x57fd14=_0x5b9a39['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x10e745=_0x3c02db['start'],_0xb0fcd0=_0x3c02db['end'];const _0x173a19=_0x2d221b['model']['schema']['getNearestSelectionRange'](_0x10e745,'backward'),_0xb327ca=_0x2d221b['model']['schema']['getNearestSelectionRange'](_0xb0fcd0,'forward');_0x173a19['isCollapsed']&&(_0x10e745=_0x173a19['start']),_0xb327ca['isCollapsed']&&(_0xb0fcd0=_0xb327ca['end']),_0x57fd14([_0x2d221b['model']['createRange'](_0x10e745,_0xb0fcd0)]);}),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x454921),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x454921)),_0x2d221b['plugins']['has']('ImageCaptionEditing')&&(_0x5b9a39['enableCommand']('toggleImageCaption',(_0x577c28,_0x30486a)=>{const _0x771cf0=_0x2d221b['plugins']['get']('ImageCaptionUtils');let _0x128d2e=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x194de3=_0x771cf0['getCaptionFromImageModelElement'](_0x128d2e);_0x2d221b['model']['change'](()=>{if(_0x194de3)return void _0x5b9a39['markDeletion'](_0x2d221b['model']['createRangeOn'](_0x194de3));const _0x509203=_0x42bad2['isBlockImage'](_0x128d2e);_0x577c28(_0x30486a),_0x128d2e=_0x42bad2['getClosestSelectedImageElement'](_0x2d221b['model']['document']['selection']),_0x194de3=_0x771cf0['getCaptionFromImageModelElement'](_0x128d2e),_0x5b9a39['markInsertion'](_0x2d221b['model']['createRangeOn'](_0x194de3),_0x509203?null:'imageCaption');});}),_0x5b9a39['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x454921));const _0x361512=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x56ceb6(_0x3caf7c,_0x11a1b5){const _0x5a558b=_0x361512['findIndex'](({type:_0x1bf311,subType:_0x511f77})=>_0x3caf7c['type']==_0x1bf311&&_0x3caf7c['subType']==_0x511f77),_0x4fdcfc=_0x361512['findIndex'](({type:_0xada7b7,subType:_0x40f0fb})=>_0x11a1b5['type']==_0xada7b7&&_0x11a1b5['subType']==_0x40f0fb);if(_0x5a558b<0x0||_0x4fdcfc<0x0)return!0x1;const _0x12d9e4=_0x3caf7c['getFirstRange'](),_0x24154c=_0x11a1b5['getFirstRange']();if((0x0==_0x5a558b||0x1==_0x5a558b)&&0x2==_0x4fdcfc&&_0x12d9e4['isIntersecting'](_0x24154c))return!0x0;if(0x2==_0x5a558b&&0x3==_0x4fdcfc){const _0x23cb3b=_0x5b9a39['_findSuggestions'](_0x12d9e4,'insertion')['filter'](({suggestion:_0x3facbb,meta:_0x24d513})=>_0x24d513['isOwn']&&'convertInlineImageToBlock'==_0x3facbb['subType']);if(_0x23cb3b['length']>0x1&&_0x24154c['end']['isEqual'](_0x12d9e4['start']))return!0x0;if(0x1==_0x23cb3b['length']&&(_0x12d9e4['start']['isEqual'](_0x24154c['end'])||_0x12d9e4['end']['isEqual'](_0x24154c['start'])))return!0x0;}if(0x3==_0x5a558b&&0x3==_0x4fdcfc&&_0x12d9e4['start']['isBefore'](_0x24154c['start'])){const _0x2b464d=_0x12d9e4['end']['nodeAfter'],_0x1044ab=_0x24154c['start']['nodeBefore'];return _0x42bad2['isBlockImage'](_0x2b464d)&&_0x2b464d===_0x1044ab;}return!0x1;}function _0x454921(_0x2df606,_0x5026cd){return _0x56ceb6(_0x2df606,_0x5026cd)?[_0x2df606,_0x5026cd]:_0x56ceb6(_0x5026cd,_0x2df606)?[_0x5026cd,_0x2df606]:null;}_0x2d221b['plugins']['has']('ImageResize')&&(_0x5b9a39['enableDefaultAttributesIntegration']('resizeImage'),_0x5b9a39['registerBlockAttribute']('resizedWidth'),_0x5b9a39['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x52f0e6,'FORMAT_IMAGE_SIZE'))),_0x2d221b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5b9a39['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5b9a39['registerBlockAttribute']('alt')),_0x2d221b['plugins']['has']('PictureEditing')&&(_0x5b9a39['registerBlockAttribute']('sources'),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x2acd8a=>{if('attribute'!=_0x2acd8a['type'])return;const {data:_0x4fa5e4}=_0x2acd8a;return _0x4fa5e4&&'sources'==_0x4fa5e4['key']?{'type':'format','content':''}:void 0x0;})),_0x2d221b['plugins']['has']('ImageSizeAttributes')&&(_0x5b9a39['registerBlockAttribute']('width'),_0x5b9a39['registerBlockAttribute']('height'),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x5479d0=>{if('attribute'!=_0x5479d0['type'])return;const {data:_0x453831}=_0x5479d0;return!_0x453831||'width'!=_0x453831['key']&&'height'!=_0x453831['key']?void 0x0:{'type':'format','content':''};})),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x25bfe4=>{if(!!_0x361512['find'](({type:_0x3a497b,subType:_0x4db878})=>_0x25bfe4['type']==_0x3a497b&&_0x25bfe4['subType']==_0x4db878))return _0x25bfe4['previous']?{}:void 0x0;}),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x2a5534=>{if('insertion'==_0x2a5534['type']||'deletion'==_0x2a5534['type']){const _0x121ebb=_0x2a5534['getContainedElement']();if(_0x121ebb&&_0x121ebb['is']('element','caption'))return{'type':'insertion'==_0x2a5534['type']?'addObject':'removeObject','element':_0x121ebb,'quantity':0x1};}}),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0xd2386e=>'formatBlock'==_0xd2386e['type']&&'convertInlineImageToBlock'==_0xd2386e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xd2386e['type']&&'convertBlockImageToInline'==_0xd2386e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5b9a39['descriptionFactory']['registerDescriptionCallback'](_0x398bd2=>{if('attribute'!=_0x398bd2['type'])return;const {data:_0x3299b0}=_0x398bd2;if(!_0x3299b0||'alt'!=_0x3299b0['key'])return;const _0x534579=_0x3299b0['newValue'];return _0x534579?{'type':'format','content':c(_0x52f0e6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x534579+'\x22')}:{'type':'format','content':c(_0x52f0e6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3be477=this['editor'],_0x34ea13=_0x3be477['locale'];_0x3be477['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30693f=>{if('formatBlock'!=_0x30693f['type']&&'formatInline'!=_0x30693f['type'])return;const {data:_0x274ddd}=_0x30693f;if(_0x274ddd){if('imageTextAlternative'==_0x274ddd['commandName']){const _0x35efd0=_0x274ddd['commandParams'][0x0]['newValue'];return _0x35efd0?{'type':'format','content':c(_0x34ea13,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x35efd0+'\x22')}:{'type':'format','content':c(_0x34ea13,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x274ddd['commandName']){const _0x4e6b65=_0x274ddd['commandParams'][0x0]['width'];return _0x4e6b65?{'type':'format','content':c(_0x34ea13,'*Set\x20image\x20width:*\x20%0',_0x4e6b65)}:{'type':'format','content':c(_0x34ea13,'*Reset\x20image\x20width*')};}}});}}class at extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x466565=this['editor']['locale'],_0x59025a=this['editor']['plugins']['get']('TrackChangesEditing');_0x59025a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x59025a['registerBlockAttribute']('src'),_0x59025a['descriptionFactory']['registerDescriptionCallback'](_0x12d17f=>{if('attribute'!=_0x12d17f['type'])return;const {data:_0x347867}=_0x12d17f;return _0x347867&&'src'==_0x347867['key']?_0x347867['newValue']&&_0x347867['oldValue']?{'type':'format','content':c(_0x466565,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4cdb5f=this['editor']['plugins']['get']('TrackChangesEditing');_0x4cdb5f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4cdb5f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4cdb5f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4cdb5f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x597b22=this['editor'],_0x1b0081=_0x597b22['locale'];_0x597b22['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7bce68=>{if('formatBlock'!=_0x7bce68['type']&&'formatInline'!=_0x7bce68['type'])return;const {data:_0x14b9b}=_0x7bce68;if(!_0x14b9b||'replaceImageSource'!=_0x14b9b['commandName'])return;return{'type':'format','content':c(_0x1b0081,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x577ae7{['afterInit'](){const _0x563862=this['editor'];if(!_0x563862['plugins']['has']('ImageStyleEditing'))return;const _0x429077=_0x563862['plugins']['get']('TrackChangesEditing'),_0x3b3fb3=_0x563862['plugins']['get']('ImageUtils'),_0x368208={};_0x429077['enableCommand']('imageStyle',(_0x1c7b4e,_0x506783)=>{const _0x48cbc9=_0x563862['plugins']['get']('Users')['me'],_0x2be0dc=_0x563862['commands']['get']('imageStyle');let _0x489ce6=_0x3b3fb3['getClosestSelectedImageElement'](_0x563862['model']['document']['selection']),_0x538ed2=_0x563862['model']['createRangeOn'](_0x489ce6),_0x5643c2=_0x2be0dc['value'];if(_0x5643c2==_0x506783['value'])return;const _0x405699={'commandName':'imageStyle','commandParams':[_0x506783],'formatGroupId':_0x147536()};_0x563862['model']['change'](()=>{if(_0x429077['getSuggestions']()['filter'](_0xea17e7=>_0xea17e7['isInContent']&&_0x48cbc9==_0xea17e7['author']&&('formatBlock'==_0xea17e7['type']||'formatInline'==_0xea17e7['type'])&&('imageStylePreApply'==_0xea17e7['subType']||'imageStylePostApply'==_0xea17e7['subType'])&&_0xea17e7['getFirstRange']()['isEqual'](_0x538ed2))['forEach'](_0x4a62e2=>_0x429077['discardSuggestion'](_0x4a62e2['head'])),_0x489ce6=_0x3b3fb3['getClosestSelectedImageElement'](_0x563862['model']['document']['selection']),_0x538ed2=_0x563862['model']['createRangeOn'](_0x489ce6),_0x2be0dc['refresh'](),_0x563862['commands']['get']('imageTypeInline')['refresh'](),_0x563862['commands']['get']('imageTypeBlock')['refresh'](),_0x5643c2=_0x2be0dc['value'],_0x5643c2!=_0x506783['value'])return _0x3b3fb3['isInlineImage'](_0x489ce6)&&_0x2be0dc['shouldConvertImageType'](_0x506783['value'],_0x489ce6)?(_0x1c7b4e({..._0x506783,'setImageSizes':!0x1}),_0x489ce6=_0x3b3fb3['getClosestSelectedImageElement'](_0x563862['model']['document']['selection']),void _0x429077['markBlockFormat'](_0x489ce6,{..._0x405699,'commandReversedParams':[{'value':_0x5643c2||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3b3fb3['isBlockImage'](_0x489ce6)?_0x429077['markBlockFormat'](_0x489ce6,_0x405699,[],'imageStylePostApply'):_0x429077['markInlineFormat'](_0x538ed2,_0x405699,'imageStylePostApply'));});});for(const _0x3d356e of _0x563862['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x368208[_0x3d356e['name']]=_0x3d356e['title']['toLowerCase']();_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x429077['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2d535d])=>{_0x3b3fb3['setImageNaturalSizeAttributes'](_0x2d535d['getContainedElement']());}),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2bc90b,_0x184c2e)=>{_0x429077['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2bc90b,{'commandName':_0x184c2e['commandName'],'commandParams':_0x184c2e['commandReversedParams']});}),_0x429077['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2b6271,_0x3ba11f){if(_0x5e9118(_0x2b6271,_0x3ba11f))return[_0x2b6271,_0x3ba11f];if(_0x5e9118(_0x3ba11f,_0x2b6271))return[_0x3ba11f,_0x2b6271];return null;});const _0x231312=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5e9118(_0x471442,_0x5c2af6){const _0xbc5248=_0x231312['findIndex'](({type:_0x533d08,subType:_0x61cff6})=>_0x471442['type']==_0x533d08&&_0x471442['subType']==_0x61cff6),_0x2a1b37=_0x231312['findIndex'](({type:_0xc9d126,subType:_0x1f315a})=>_0x5c2af6['type']==_0xc9d126&&_0x5c2af6['subType']==_0x1f315a);if(_0xbc5248<0x0||_0x2a1b37<0x0)return!0x1;const _0x550446=_0x471442['getFirstRange'](),_0x2e6094=_0x5c2af6['getFirstRange']();if((0x0==_0xbc5248||0x1==_0xbc5248)&&0x2==_0x2a1b37&&_0x550446['isIntersecting'](_0x2e6094))return!0x0;if(0x2==_0xbc5248&&0x3==_0x2a1b37){const _0x4787ba=_0x429077['_findSuggestions'](_0x550446,'insertion')['filter'](({suggestion:_0x149904,meta:_0xbf7d58})=>_0xbf7d58['isOwn']&&'convertInlineImageToBlock'==_0x149904['subType']);if(_0x4787ba['length']>0x1&&_0x2e6094['end']['isEqual'](_0x550446['start']))return!0x0;if(0x1==_0x4787ba['length']&&(_0x550446['start']['isEqual'](_0x2e6094['end'])||_0x550446['end']['isEqual'](_0x2e6094['start'])))return!0x0;}if(0x3==_0xbc5248&&0x3==_0x2a1b37&&_0x550446['start']['isBefore'](_0x2e6094['start'])){const _0x5ae04c=_0x550446['end']['nodeAfter'],_0x245629=_0x2e6094['start']['nodeBefore'];return _0x3b3fb3['isBlockImage'](_0x5ae04c)&&_0x5ae04c===_0x245629;}return!0x1;}_0x563862['model']['document']['registerPostFixer'](()=>{let _0x2061ec=!0x1;const _0x465fe8=Array['from'](_0x563862['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x102173,data:_0x4440a2}of _0x465fe8){const {group:_0x481da7,type:_0x33104a,subType:_0x4f78d8,id:_0x33ce9e}=_0x429077['_splitMarkerName'](_0x102173);if('suggestion'==_0x481da7&&_0x429077['hasSuggestion'](_0x33ce9e)){if('formatBlock'==_0x33104a&&('imageStylePreApply'==_0x4f78d8||'imageStylePostApply'==_0x4f78d8)){const _0x34cbe6=_0x429077['getSuggestion'](_0x33ce9e);if(_0x4440a2['newRange']){const _0x5a6a87=_0x34cbe6['getFirstRange']()['getContainedElement']();if(_0x3b3fb3['isBlockImage'](_0x5a6a87))continue;_0x429077['discardSuggestion'](_0x34cbe6),_0x2061ec=!0x0;}}if('insertion'==_0x33104a&&'imageCaption'==_0x4f78d8&&!_0x4440a2['newRange']){const _0x283534=_0x429077['getSuggestion'](_0x33ce9e);_0x283534['next']&&_0x283534['next']['isInContent']&&(_0x429077['discardSuggestion'](_0x283534['next']),_0x2061ec=!0x0);}}}return _0x2061ec;}),this['_registerLegacyDescription'](_0x368208);}['_registerLegacyDescription'](_0x5f4fa5){const _0x17732e=this['editor'],_0x5b00ca=_0x17732e['locale'];_0x17732e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9507=>{if('formatBlock'!=_0x3c9507['type']&&'formatInline'!=_0x3c9507['type'])return;const {data:_0x3c3a04}=_0x3c9507;if(!_0x3c3a04||'imageStyle'!=_0x3c3a04['commandName'])return;const _0x161279=_0x3c3a04['commandParams'][0x0]['value'];return _0x508371('side'===_0x161279?c(_0x5b00ca,'FORMAT_SIDE_IMAGE'):_0x5f4fa5[_0x161279]||_0x161279);function _0x508371(_0x2e7407){return{'type':'format','content':c(_0x5b00ca,'*Format:*\x20%0',_0x2e7407)};}});}}class ut extends _0x577ae7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2f5201){super(_0x2f5201),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x30c698=this['editor'],_0x5d69e2=_0x30c698['commands']['get']('importWord'),_0x1e71d5=_0x30c698['commands']['get']('trackChanges');_0x5d69e2&&(_0x5d69e2['on']('execute',(_0xfd6a9,[,_0x527f6f])=>{this['_trackChangesValueDuringImport']=_0x1e71d5['value'],_0x527f6f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5d69e2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5d69e2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1e71d5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x30c698['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x339552,_0x355ad1){const {suggestions:_0x58e7de}=_0x355ad1,_0x566a0c=this['editor']['commands']['get']('trackChanges'),_0x54f7eb=_0x566a0c['value'];this['_trackChangesValueDuringImport']!==_0x54f7eb&&(_0x566a0c['execute'](),this['_trackChangesExecuted']=!0x0),_0x58e7de&&_0x58e7de['forEach'](({id:_0x4855c0,type:_0x12054a,author:_0x30ad7b,created_at:_0x64b69a})=>{const _0x360680={'id':_0x4855c0,'type':_0x12054a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x30ad7b,'createdAt':_0x64b69a?new Date(_0x64b69a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x360680);});}}class ft extends _0x577ae7{['afterInit'](){const _0x3b6496=this['editor'],_0x355876=_0x3b6496['plugins']['get']('TrackChangesEditing');if(_0x3b6496['plugins']['has']('IndentEditing')&&(_0x355876['enableCommand']('indent'),_0x355876['enableCommand']('outdent')),_0x3b6496['plugins']['has']('IndentBlock')){for(const _0x8db10c of['indentBlock','outdentBlock'])_0x355876['enableDefaultAttributesIntegration'](_0x8db10c);}const _0x5b6b09=_0x3b6496['locale'];_0x355876['registerBlockAttribute']('blockIndent'),_0x355876['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5b6b09,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x300db0=this['editor'],_0x4f46dc=_0x300db0['locale'],_0x134af8=_0x300db0['plugins']['get']('TrackChangesEditing');_0x134af8['descriptionFactory']['registerDescriptionCallback'](_0x3232d5=>{if('formatBlock'!=_0x3232d5['type'])return;const {data:_0x9b9d6c}=_0x3232d5;if(!_0x9b9d6c)return;if('indentBlock'!=_0x9b9d6c['commandName']&&'outdentBlock'!=_0x9b9d6c['commandName'])return;const _0x5abc1b=_0x3232d5['getItems']()[0x0],_0x6867b3=_0x134af8['descriptionFactory']['getItemLabel'](_0x5abc1b);return'indentBlock'==_0x9b9d6c['commandName']?{'type':'format','content':c(_0x4f46dc,'*Indent:*\x20%0',_0x6867b3)}:'outdentBlock'==_0x9b9d6c['commandName']?{'type':'format','content':c(_0x4f46dc,'*Outdent:*\x20%0',_0x6867b3)}:void 0x0;});}}class ht extends _0x577ae7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x577ae7{['afterInit'](){const _0x2869e2=this['editor'];if(!_0x2869e2['plugins']['has']('LinkEditing'))return;const _0x144ae2=_0x2869e2['plugins']['get']('TrackChangesEditing'),_0x1002d7=_0x2869e2['commands']['get']('link');_0x144ae2['enableDefaultAttributesIntegration']('link'),_0x144ae2['enableDefaultAttributesIntegration']('unlink'),_0x144ae2['registerInlineAttribute']('linkHref');for(const _0x43a8c7 of _0x1002d7['manualDecorators'])_0x144ae2['registerInlineAttribute'](_0x43a8c7['id']),_0x144ae2['descriptionFactory']['registerAttributeLabel'](_0x43a8c7['id'],'link\x20('+_0x43a8c7['label']['toLowerCase']()+')');_0x144ae2['descriptionFactory']['registerDescriptionCallback'](_0x3251da=>{if('attribute'!=_0x3251da['type'])return;const {data:_0x52a83b}=_0x3251da;if(!_0x52a83b||'linkHref'!=_0x52a83b['key'])return;const _0x4ac586=_0x52a83b['newValue'],_0x2043a9=_0x2869e2['locale'];return{'type':'format','content':null==_0x4ac586?c(_0x2043a9,'*Remove\x20link*'):c(_0x2043a9,'*Set\x20link:*\x20%0','\x22'+_0x4ac586+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2979b1=this['editor'],_0x413ff7=_0x2979b1['locale'];_0x2979b1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x789deb=>{if('formatInline'!=_0x789deb['type'])return;const {data:_0xfdaa15}=_0x789deb;if(_0xfdaa15){if('link'==_0xfdaa15['commandName']){const _0x1e8809=_0xfdaa15['commandParams'][0x0];return{'type':'format','content':c(_0x413ff7,'*Set\x20link:*\x20%0','\x22'+_0x1e8809+'\x22')};}return'unlink'==_0xfdaa15['commandName']?{'type':'format','content':c(_0x413ff7,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x577ae7{['afterInit'](){const _0x1c515d=this['editor'],_0x47f2d6=_0x1c515d['locale'];if(!_0x1c515d['plugins']['has']('LegacyListEditing'))return;const _0x403b71=_0x1c515d['plugins']['get']('TrackChangesEditing'),_0x10bdd3=_0x1c515d['plugins']['has']('LegacyTodoListEditing');function _0x15f939(_0x4fd3f3){return()=>{const _0x4c32d4=_0x1c515d['model']['document']['selection'],_0x5998d6=_0x1c515d['commands']['get'](_0x4fd3f3);if(_0x5998d6['value'])return void _0x1c515d['execute']('paragraph',{});const _0x27f2ee=_0x4fd3f3['slice'](0x0,-0x4),_0x3f9b8a=function(_0x4e6a20,_0x4c6764,_0x4e9d1d){let _0x376ab0=Array['from'](_0x4e6a20)['filter'](_0x541a5d=>function(_0xac1659,_0x45c31f){return _0x45c31f['checkChild'](_0xac1659['parent'],'listItem')&&!_0x45c31f['isObject'](_0xac1659);}(_0x541a5d,_0x4e9d1d));_0x376ab0=_0x376ab0['filter'](_0x59d80b=>!_0x59d80b['is']('element','listItem')||_0x59d80b['getAttribute']('listType')!=_0x4c6764);const _0x4510b2=new Set();for(const _0x1176e7 of _0x376ab0)_0x1176e7['is']('element','listItem')?_0x4510b2['add'](Le(_0x1176e7)):_0x4510b2['add'](_0x1176e7);return Array['from'](_0x4510b2);}(_0x4c32d4['getSelectedBlocks'](),_0x27f2ee,_0x1c515d['model']['schema']);_0x1c515d['model']['change'](()=>{for(const _0x5233e4 of _0x3f9b8a)_0x403b71['markBlockFormat'](_0x5233e4,{'commandName':_0x4fd3f3,'commandParams':[{'forceValue':!_0x5998d6['value']}],'formatGroupId':'blockName'},Ee(_0x5233e4));});};}function _0x29bd2(_0x247bcd){return()=>{const _0x10421a=function(_0x1494f9){let _0x1dc843=Array['from'](_0x1494f9);const _0x502bfa=_0x1dc843['findIndex'](_0x5b2b31=>'listItem'!=_0x5b2b31['name']);return _0x502bfa>-0x1&&(_0x1dc843=_0x1dc843['slice'](0x0,_0x502bfa)),_0x1dc843;}(_0x1c515d['model']['document']['selection']['getSelectedBlocks']()),_0x4a493f=_0x1c515d['model']['createRange'](_0x1c515d['model']['createPositionAt'](_0x10421a[0x0],'before'),_0x1c515d['model']['createPositionAt'](_0x10421a[_0x10421a['length']-0x1],'end'));_0x1c515d['model']['change'](()=>{_0x403b71['markBlockFormat'](_0x4a493f,{'commandName':_0x247bcd,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5b1b3e){const _0x33983e=new Set();for(const _0x307289 of _0x5b1b3e){let _0x26d852=_0x307289['nextSibling'];for(;_0x26d852&&_0x26d852['getAttribute']('listIndent')>_0x307289['getAttribute']('listIndent');)_0x33983e['add'](_0x26d852),_0x26d852=_0x26d852['nextSibling'];}return Array['from'](_0x33983e);}(_0x10421a));});};}_0x403b71['enableCommand']('numberedList',_0x15f939('numberedList')),_0x403b71['enableCommand']('bulletedList',_0x15f939('bulletedList')),_0x10bdd3&&_0x403b71['enableCommand']('todoList',_0x15f939('todoList')),_0x403b71['enableCommand']('indentList',_0x29bd2('indentList')),_0x403b71['enableCommand']('outdentList',_0x29bd2('outdentList')),_0x10bdd3&&_0x403b71['enableCommand']('checkTodoList',()=>{const _0x57ebe2=_0x1c515d['commands']['get']('checkTodoList'),_0x2b5061=Array['from'](_0x57ebe2['_selectedElements']);_0x2b5061['filter'](_0xecf996=>_0xecf996['getAttribute']('todoListChecked')!=_0x57ebe2['value']),_0x1c515d['model']['change'](()=>{for(const _0x351242 of _0x2b5061)_0x403b71['markBlockFormat'](_0x351242,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x57ebe2['value']}]});});}),_0x403b71['descriptionFactory']['registerElementLabel']('listItem',_0x3f2dd2=>c(_0x47f2d6,'ELEMENT_LIST_ITEM',_0x3f2dd2)),_0x403b71['descriptionFactory']['registerDescriptionCallback'](_0x608893=>{if('formatBlock'!=_0x608893['type']&&'formatInline'!=_0x608893['type'])return;const {data:_0x5bee6b}=_0x608893;if(_0x5bee6b){if('numberedList'==_0x5bee6b['commandName']||'bulletedList'==_0x5bee6b['commandName']||'todoList'==_0x5bee6b['commandName'])switch(_0x5bee6b['commandName']['replace']('List','')){case'bulleted':return _0x47f516(c(_0x47f2d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x47f516(c(_0x47f2d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x47f516(c(_0x47f2d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5bee6b['commandName'])return{'type':'format','content':c(_0x47f2d6,'*Indent:*\x20%0',c(_0x47f2d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5bee6b['commandName'])return{'type':'format','content':c(_0x47f2d6,'*Outdent:*\x20%0',c(_0x47f2d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5bee6b['commandName'])return _0x5bee6b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47f2d6,'*Check\x20item*')}:{'type':'format','content':c(_0x47f2d6,'*Uncheck\x20item*')};}function _0x47f516(_0x61bc59){return{'type':'format','content':c(_0x47f2d6,'*Change\x20to:*\x20%0',_0x61bc59)};}});}}function Le(_0x2750a3){const _0xdb0ab4=_0x2750a3['getAttribute']('listIndent');if(0x0==_0xdb0ab4)return _0x2750a3;let _0x137133=_0x2750a3;for(;_0x2750a3['previousSibling']&&_0x2750a3['previousSibling']['is']('element','listItem');){const _0x47d5e6=_0x2750a3['previousSibling']['getAttribute']('listIndent');if(_0x47d5e6==_0xdb0ab4)_0x137133=_0x2750a3['previousSibling'];else{if(_0x47d5e6<_0xdb0ab4)break;}_0x2750a3=_0x2750a3['previousSibling'];}return _0x137133;}function Ee(_0x43c7bb){const _0x5de819=[];if(_0x43c7bb['is']('element','listItem')&&_0x43c7bb['getAttribute']('listIndent')>0x0){let _0x1fa4a1=_0x43c7bb['nextSibling'];for(;_0x1fa4a1&&'listItem'==_0x1fa4a1['name']&&_0x1fa4a1['getAttribute']('listIndent')==_0x43c7bb['getAttribute']('listIndent');)_0x5de819['push'](_0x1fa4a1),_0x1fa4a1=_0x1fa4a1['nextSibling'];}return _0x5de819;}class Q extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5406c9=this['editor']['config']['get']('list.properties'),_0x23743e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5406c9['styles']&&_0x23743e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5406c9['reversed']&&_0x23743e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5406c9['startIndex']&&_0x23743e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x23743e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1f0d5e,_0xe8bd43={}){const _0x345420=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e43b5=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x345420['markMultiRangeBlockFormat'](_0x2e43b5,{'commandName':'listStyle','commandParams':[{'type':_0xe8bd43['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5088a3,_0xcf236={}){const _0x5836ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d43e3=this['_getSuggestionBlocks'](_0xa3dada=>_0xa3dada['is']('element','listItem')&&'numbered'===_0xa3dada['getAttribute']('listType'));if(_0x5d43e3['length']<0x1)return;const _0x4140a4=_0x5d43e3['map'](_0x4f71c9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4f71c9,'before'),this['editor']['model']['createPositionAt'](_0x4f71c9,0x0)));this['editor']['model']['change'](()=>{_0x5836ae['markMultiRangeBlockFormat'](_0x4140a4,{'commandName':'listReversed','commandParams':[{'reversed':_0xcf236['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3b24e0,_0x216a3c={}){const _0x4c6eff=this['editor']['plugins']['get']('TrackChangesEditing'),_0x514c43=this['_getSuggestionBlocks'](_0x3dd2f3=>_0x3dd2f3['is']('element','listItem')&&'numbered'===_0x3dd2f3['getAttribute']('listType'));if(_0x514c43['length']<0x1)return;const _0x152226=_0x514c43['map'](_0x2efad7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2efad7,'before'),this['editor']['model']['createPositionAt'](_0x2efad7,0x0)));this['editor']['model']['change'](()=>{_0x4c6eff['markMultiRangeBlockFormat'](_0x152226,{'commandName':'listStart','commandParams':[{'startIndex':_0x216a3c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xf730f4){if('formatBlock'!=_0xf730f4['type']&&'formatInline'!=_0xf730f4['type'])return;const _0xa91fd2=this['editor']['locale'],{data:_0x3619d8}=_0xf730f4;if(!_0x3619d8)return;let _0x14f3d1,_0x118a44;switch(_0x3619d8['commandName']){case'listStyle':_0x14f3d1='*Change\x20to:*\x20%0',_0x118a44={'type':'format','content':c(_0xa91fd2,_0x14f3d1,c(_0xa91fd2,this['_getTranslationKeyForListStyle'](_0x3619d8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x14f3d1=_0x3619d8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x118a44={'type':'format','content':c(_0xa91fd2,_0x14f3d1)};break;case'listStart':_0x14f3d1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x118a44={'type':'format','content':c(_0xa91fd2,_0x14f3d1,_0x3619d8['commandParams'][0x0]['startIndex'])};}return _0x118a44;}['_getSuggestionBlocksForListStyle'](){const _0xda3105=this['editor']['plugins']['get']('LegacyListUtils');let _0xa88fb2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xa88fb2[0x0]?.['is']('element','listItem')&&_0xa88fb2['unshift'](..._0xda3105['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xa88fb2[_0xa88fb2['length']-0x1]?.['is']('element','listItem')&&_0xa88fb2['push'](..._0xda3105['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xa88fb2=[...new Set(_0xa88fb2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xa88fb2=_0xa88fb2['filter'](_0x55f8c6=>_0x55f8c6['is']('element','listItem'))),_0xa88fb2;}['_getSuggestionBlocks'](_0x58359c){const _0x3c86f3=this['editor']['plugins']['get']('LegacyListUtils');let _0x428476=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x58359c)['map'](_0x2ef31d=>{const _0x3c9a73=this['editor']['model']['createPositionAt'](_0x2ef31d,0x0);return[..._0x3c86f3['getSiblingNodes'](_0x3c9a73,'backward'),..._0x3c86f3['getSiblingNodes'](_0x3c9a73,'forward')];})['flat']();return _0x428476=[...new Set(_0x428476)],_0x428476;}['_getTranslationKeyForListStyle'](_0x301514){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x301514)||'default')['toUpperCase']()+'_LIST_'+_0x301514['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x577ae7{['afterInit'](){const _0x23073e=this['editor'];if(!_0x23073e['plugins']['has']('MediaEmbedEditing'))return;const _0x50e6fc=_0x23073e['plugins']['get']('TrackChangesEditing'),_0x2efd2f=_0x23073e['locale'];_0x50e6fc['enableCommand']('mediaEmbed'),_0x50e6fc['descriptionFactory']['registerElementLabel']('media',_0x252c62=>c(_0x2efd2f,'ELEMENT_MEDIA',_0x252c62)),_0x23073e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3ceda5,{writer:_0x17dbcd,options:_0x2eb470})=>{if(_0x2eb470['showSuggestionHighlights'])return _0x17dbcd['createEmptyElement']('div');},'converterPriority':'high'}),_0x23073e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x29a367,_0x1e31b2,_0x37be25)=>{_0x37be25['options']['showSuggestionHighlights']&&_0x29a367['stop']();},{'priority':'high'});}}class pt extends _0x577ae7{['afterInit'](){const _0x628850=this['editor'];_0x628850['plugins']['has']('MentionEditing')&&_0x628850['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x577ae7{['afterInit'](){const _0x2ae281=this['editor'];if(!_0x2ae281['plugins']['has']('MergeFieldsEditing'))return;const _0x5bdf0f=_0x2ae281['plugins']['get']('TrackChangesEditing'),_0x3b13d9=_0x2ae281['locale'];_0x5bdf0f['enableCommand']('insertMergeField'),_0x5bdf0f['enableCommand']('insertMergeFieldBlock'),_0x5bdf0f['enableCommand']('insertMergeFieldImage'),_0x5bdf0f['descriptionFactory']['registerElementLabel']('mergeField',_0x2cdd6a=>c(_0x3b13d9,'ELEMENT_MERGE_FIELD',_0x2cdd6a)),_0x5bdf0f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4f65cf=>c(_0x3b13d9,'ELEMENT_MERGE_FIELD',_0x4f65cf)),_0x5bdf0f['descriptionFactory']['registerDescriptionCallback'](_0x405df0=>{if('insertion'!=_0x405df0['type']&&'deletion'!=_0x405df0['type'])return;const _0x2d0ea0=_0x405df0['getContainedElement']();if(null==_0x2d0ea0)return;const _0x342d98=_0x2ae281['plugins']['get']('MergeFieldsEditing');let _0x6fcdb3;switch(_0x342d98['getMergeFieldType'](_0x2d0ea0)){case null:return;case'image':{const _0x1d20af=_0x342d98['unwrapAffixes'](_0x2d0ea0['getAttribute']('src'));_0x6fcdb3=_0x342d98['getLabel'](_0x1d20af)||_0x1d20af;break;}default:{const _0x4194b3=_0x2d0ea0['getAttribute']('id');_0x6fcdb3=_0x342d98['getLabel'](_0x4194b3)||_0x4194b3;break;}}return'insertion'==_0x405df0['type']?{'type':'insertion','content':c(_0x3b13d9,'*Insert:*\x20%0','\x22'+_0x6fcdb3+'\x22\x20'+c(_0x3b13d9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x3b13d9,'*Remove:*\x20%0','\x22'+_0x6fcdb3+'\x22\x20'+c(_0x3b13d9,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x577ae7{['afterInit'](){const _0x108335=this['editor'],_0x13e700=_0x108335['plugins']['get']('TrackChangesEditing');_0x108335['plugins']['has']('MultiLevelList')&&(_0x13e700['enableDefaultAttributesIntegration']('multiLevelList'),_0x13e700['registerBlockAttribute']('listMarkerStyle'),_0x13e700['descriptionFactory']['registerDescriptionCallback'](_0xdbc52e=>this['handleDescriptions'](_0xdbc52e)));}['handleDescriptions'](_0x211b71){const _0x254191=this['editor']['locale'],{data:_0x4b16e1}=_0x211b71,_0xca4e82={'type':'format','content':''};if(_0x4b16e1&&'listMarkerStyle'==_0x4b16e1['key']){if(!_0x4b16e1['oldValue'])return{'type':'format','content':c(_0x254191,'*Set\x20format:*\x20%0',c(_0x254191,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b16e1['newValue']+')'};if(!_0x4b16e1['newValue']){let _0x255921=_0x211b71['head'];for(;_0x255921;){if(_0x255921['data']&&'listType'==_0x255921['data']['key']&&_0x255921['data']['newValue'])return _0xca4e82;_0x255921=_0x255921['next'];}return{'type':'format','content':c(_0x254191,'*Remove\x20format:*\x20%0',c(_0x254191,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b16e1['oldValue']+')'};}}}}class bt extends _0x577ae7{['afterInit'](){const _0x5e2772=this['editor'];if(!_0x5e2772['plugins']['has']('PageBreakEditing'))return;_0x5e2772['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x555ad2=_0x5e2772['plugins']['get']('TrackChangesEditing'),_0x5dc9f2=_0x5e2772['locale'];_0x555ad2['descriptionFactory']['registerElementLabel']('pageBreak',_0x356878=>c(_0x5dc9f2,'ELEMENT_PAGE_BREAK',_0x356878));}}class yt extends _0x577ae7{['afterInit'](){const _0x2c398a=this['editor'];if(!_0x2c398a['plugins']['has']('Paragraph'))return;const _0x4f3614=_0x2c398a['locale'],_0x5f055f=_0x2c398a['plugins']['get']('TrackChangesEditing');_0x5f055f['descriptionFactory']['registerElementLabel']('paragraph',_0x4feced=>c(_0x4f3614,'ELEMENT_PARAGRAPH',_0x4feced)),_0x5f055f['enableDefaultAttributesIntegration']('paragraph'),_0x5f055f['enableCommand']('insertParagraph'),_0x2c398a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2c398a),{'priority':'highest'}),_0x2c398a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4a9710,_0x1e77c5,_0x213b75)=>{_0x213b75['options']['showSuggestionHighlights']&&nr(_0x2c398a,{'showActiveMarker':!0x1})(_0x4a9710,_0x1e77c5,_0x213b75);},{'priority':'highest'});const _0x578d2a=_0x5f055f['descriptionFactory'];_0x578d2a['registerDescriptionCallback'](_0x38b9c0=>{if('insertion'!==_0x38b9c0['type'])return;const {start:_0x5161d0,end:_0x558212}=_0x38b9c0['getFirstRange']();if(!_0x5161d0['isTouching'](_0x558212)||!_0x5161d0['nodeAfter'])return;const _0x261e06=_0x2c398a['model']['schema'],_0x4d9476=_0x5161d0['nodeAfter'];return _0x261e06['isBlock'](_0x4d9476)&&!_0x261e06['isLimit'](_0x4d9476)&&_0x261e06['checkChild'](_0x4d9476,'$text')?{'type':'insertion','content':c(_0x4f3614,'*Insert:*\x20%0',_0x578d2a['getItemLabel'](_0x4d9476,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1df15c=this['editor'],_0x4972ec=_0x1df15c['locale'];_0x1df15c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x169b4d=>{if('formatBlock'!=_0x169b4d['type'])return;const {data:_0x37543b}=_0x169b4d;return _0x37543b&&'paragraph'==_0x37543b['commandName']?{'type':'format','content':c(_0x4972ec,'*Change\x20to:*\x20%0',c(_0x4972ec,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1ba5ab,{showActiveMarker:_0x3ddc6b=!0x0}={}){return(_0x3cc3ab,_0x3afb79,_0x87b40c)=>{const _0x26da06=_0x1ba5ab['plugins']['get']('TrackChangesEditing'),_0x5819b4=_0x3afb79['markerRange']['start'],_0x2113e2=_0x3afb79['markerRange']['end'],_0x19c203=_0x1ba5ab['model']['schema'];if(!_0x5819b4['isTouching'](_0x2113e2)||!_0x5819b4['nodeAfter'])return;const _0x202b43=_0x5819b4['nodeAfter'];if(_0x19c203['isBlock'](_0x202b43)&&!_0x19c203['isLimit'](_0x202b43)&&_0x19c203['checkChild'](_0x202b43,'$text')){if(!_0x87b40c['consumable']['consume'](_0x3afb79['markerRange'],_0x3cc3ab['name']))return;const {id:_0x414043,authorId:_0x35b238}=_0x26da06['_splitMarkerName'](_0x3afb79['markerName']),_0x126f3c=_0x87b40c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x414043,'data-author-id':_0x35b238}),_0x2f2c51=_0x87b40c['mapper']['toViewPosition'](_0x2113e2);_0x3ddc6b&&_0x26da06['activeMarkers']['includes'](_0x3afb79['markerName'])&&_0x87b40c['writer']['addClass']('ck-suggestion-marker--active',_0x126f3c),_0x87b40c['writer']['insert'](_0x2f2c51,_0x126f3c),_0x87b40c['mapper']['bindElementToMarker'](_0x126f3c,_0x3afb79['markerName']);}};}class St extends _0x577ae7{['afterInit'](){const _0x40b035=this['editor'];_0x40b035['commands']['get']('replaceSource')&&_0x40b035['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x577ae7{['afterInit'](){const _0x3754c6=this['editor'];if(!_0x3754c6['plugins']['has']('RemoveFormatEditing'))return;_0x3754c6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4169b2=this['editor'];_0x4169b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x655fad=>{if('formatBlock'!=_0x655fad['type']&&'formatInline'!=_0x655fad['type'])return;const {data:_0x1b8235}=_0x655fad;return _0x1b8235&&'removeFormat'==_0x1b8235['commandName']?{'type':'format','content':c(_0x4169b2['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x577ae7{['afterInit'](){const _0x47eea1=this['editor'];if(!_0x47eea1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x19f7bf=_0x47eea1['plugins']['get']('TrackChangesEditing');_0x19f7bf['enableCommand']('goToPreviousRestrictedEditingException'),_0x19f7bf['enableCommand']('goToNextRestrictedEditingException');const _0x2ca051=_0x47eea1['plugins']['get']('RestrictedEditingModeEditing');_0x2ca051['enableCommand']('trackChanges'),_0x2ca051['enableCommand']('acceptSuggestion'),_0x2ca051['enableCommand']('discardSuggestion'),_0x2ca051['enableCommand']('acceptAllSuggestions'),_0x2ca051['enableCommand']('discardAllSuggestions'),_0x2ca051['enableCommand']('acceptSelectedSuggestions'),_0x2ca051['enableCommand']('discardSelectedSuggestions');}}class At extends _0x577ae7{['afterInit'](){const _0x3767cc=this['editor'];if(!_0x3767cc['plugins']['has']('ShiftEnter'))return;const _0x1884bb=_0x3767cc['plugins']['get']('TrackChangesEditing');_0x1884bb['enableCommand']('shiftEnter'),_0x3767cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x3767cc),{'priority':'high'}),_0x3767cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x3767cc),{'priority':'high'}),_0x3767cc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5284fe,_0x484c3e,_0x49aaa4)=>{_0x49aaa4['options']['showSuggestionHighlights']&&je(_0x3767cc,{'showActiveMarker':!0x1})(_0x5284fe,_0x484c3e,_0x49aaa4);}),_0x1884bb['descriptionFactory']['registerElementLabel']('softBreak',_0xc41edc=>c(_0x3767cc['locale'],'ELEMENT_LINE_BREAK',_0xc41edc));}}function je(_0x3290e9,{showActiveMarker:_0x19a3b1=!0x0}={}){return(_0x2c1f8a,_0x266c02,_0x469226)=>{const _0x5d31ac=_0x3290e9['plugins']['get']('TrackChangesEditing');if(!_0x469226['consumable']['test'](_0x266c02['markerRange'],_0x2c1f8a['name']))return;const _0x5101df=_0x3290e9['model'];for(const _0x2d366d of _0x266c02['markerRange']['getItems']()){if(!_0x2d366d['is']('element','softBreak'))continue;const _0x2d03eb='deletion'==_0x266c02['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2c14cc,authorId:_0x13512e}=_0x5d31ac['_splitMarkerName'](_0x266c02['markerName']),_0x63594a=_0x469226['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2d03eb,'data-suggestion':_0x2c14cc,'data-author-id':_0x13512e}),_0x28d266=_0x469226['mapper']['toViewPosition'](_0x5101df['createPositionBefore'](_0x2d366d));_0x19a3b1&&_0x5d31ac['activeMarkers']['includes'](_0x266c02['markerName'])&&_0x469226['writer']['addClass']('ck-suggestion-marker--active',_0x63594a),_0x469226['writer']['insert'](_0x28d266,_0x63594a),_0x469226['mapper']['bindElementToMarker'](_0x63594a,_0x266c02['markerName']);}};}class _t extends _0x577ae7{['afterInit'](){const _0x172039=this['editor'],_0x45161d=_0x172039['model'],_0x46f8d8=_0x172039['locale'];if(!_0x172039['plugins']['has']('StandardEditingModeEditing'))return;const _0x102b5a=_0x172039['plugins']['get']('TrackChangesEditing'),_0x1fa80a='restrictedEditingException',_0x1c2e4e=_0x172039['commands']['get'](_0x1fa80a);_0x102b5a['enableCommand'](_0x1fa80a,(_0x160841,_0x1daa7b={})=>{const _0xa9f755=_0x45161d['document']['selection'];if(_0xa9f755['isCollapsed'])return void _0x160841(_0x1daa7b);const _0xec23f5=void 0x0!==_0x1daa7b['forceValue']?_0x1daa7b['forceValue']:!_0x1c2e4e['value'];_0x45161d['change'](()=>{const _0x3624ce=Array['from'](_0xa9f755['getRanges']());for(const _0x5f17ea of _0x3624ce){const _0x21a01b=_0xec23f5?[_0x5f17ea]:io(_0x1fa80a,_0x5f17ea,_0x45161d);for(const _0x4ef508 of _0x21a01b)_0x102b5a['markInlineFormat'](_0x4ef508,{'commandName':_0x1fa80a,'commandParams':[{'forceValue':_0xec23f5}]});}});}),_0x102b5a['descriptionFactory']['registerDescriptionCallback'](_0x3edc9f=>{if('formatBlock'!=_0x3edc9f['type']&&'formatInline'!=_0x3edc9f['type'])return;const {data:_0x1e9c77}=_0x3edc9f;return _0x1e9c77&&_0x1e9c77['commandName']==_0x1fa80a?_0x1e9c77['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x46f8d8,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x46f8d8,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x577ae7{['afterInit'](){const _0x166570=this['editor'];if(!_0x166570['plugins']['has']('Style')||!_0x166570['plugins']['has']('DataSchema'))return;const _0x2266f0=_0x166570['plugins']['get']('TrackChangesEditing'),_0x168a9a=_0x166570['locale'],_0x43e039=_0x166570['config']['get']('style')||{},_0x565f04=_0x166570['plugins']['get']('GeneralHtmlSupport'),_0x2d3d0d=_0x166570['plugins']['get']('StyleUtils')['normalizeConfig'](_0x166570['plugins']['get']('DataSchema'),_0x43e039['definitions']);_0x2266f0['enableDefaultAttributesIntegration']('style');const _0x33caba=new Set();for(const _0x19d815 of _0x2d3d0d['block']){const _0x352adc=_0x565f04['getGhsAttributeNameForElement'](_0x19d815['element']);_0x33caba['add'](_0x352adc);}const _0x1cec18=new Set();for(const _0x5e4d7a of _0x2d3d0d['inline']){const _0x3d2eaa=_0x565f04['getGhsAttributeNameForElement'](_0x5e4d7a['element']);_0x1cec18['add'](_0x3d2eaa);for(const _0x4f0a19 of _0x5e4d7a['ghsAttributes'])_0x1cec18['add'](_0x4f0a19);}for(const _0x1e15ec of _0x33caba)_0x2266f0['registerBlockAttribute'](_0x1e15ec),_0x2266f0['descriptionFactory']['registerAttributeLabel'](_0x1e15ec,c(_0x168a9a,'FORMAT_STYLE'));for(const _0x4a8bc6 of _0x1cec18)_0x2266f0['registerInlineAttribute'](_0x4a8bc6),_0x2266f0['descriptionFactory']['registerAttributeLabel'](_0x4a8bc6,c(_0x168a9a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15d74d=this['editor'],_0x3d8e9f=_0x15d74d['locale'];_0x15d74d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf01857=>{if('formatBlock'!=_0xf01857['type']&&'formatInline'!=_0xf01857['type'])return;const {data:_0x356df8}=_0xf01857;return _0x356df8&&'style'===_0x356df8['commandName']?_0x356df8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3d8e9f,'*Set\x20format:*\x20%0',_0x356df8['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3d8e9f,'*Remove\x20format:*\x20%0',_0x356df8['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x577ae7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x45f30a){super(_0x45f30a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4ac5b3=this['editor'],_0x539c07=_0x4ac5b3['model']['document']['selection'];if(!_0x4ac5b3['plugins']['has']('TableEditing'))return;const _0x6f1c7=_0x4ac5b3['locale'],_0x22060a=_0x4ac5b3['plugins']['get']('TrackChangesEditing'),_0x5ed4c4=_0x4ac5b3['plugins']['get']('TableUtils');_0x22060a['descriptionFactory']['registerElementLabel']('table',_0x1373e7=>c(_0x6f1c7,'ELEMENT_TABLE',_0x1373e7)),this['_setupColumnsRowsFixing'](),_0x22060a['enableCommand']('insertTable'),_0x22060a['enableCommand']('selectTableRow'),_0x22060a['enableCommand']('selectTableColumn');for(const _0x5df13c of['insertTableRowAbove','insertTableRowBelow']){const _0x262182=_0x4ac5b3['commands']['get'](_0x5df13c);_0x22060a['enableCommand'](_0x5df13c,_0x4abc98=>{_0x4ac5b3['model']['change'](_0x389cc0=>{_0x4abc98();const _0x218b5c='above'===_0x262182['order'],_0x37d333=_0x5ed4c4['getSelectionAffectedTableCells'](_0x539c07),_0x2ec529=_0x5ed4c4['getRowIndexes'](_0x37d333),_0x3391d3=_0x218b5c?_0x2ec529['first']-0x1:_0x2ec529['last']+0x1,_0xed1a4b=_0x37d333[0x0]['findAncestor']('table'),_0x48f470=_0x5ed4c4['createTableWalker'](_0xed1a4b,{'startRow':_0x3391d3,'endRow':_0x3391d3}),_0x4f45e0=Array['from'](_0x48f470)['map'](_0xfec156=>_0x389cc0['createRangeOn'](_0xfec156['cell']));_0x22060a['markMultiRangeInsertion'](_0x4f45e0,'tableRow');});});}for(const _0xbad47f of['insertTableColumnLeft','insertTableColumnRight']){const _0x79cb06=_0x4ac5b3['commands']['get'](_0xbad47f);_0x22060a['enableCommand'](_0xbad47f,_0x43041f=>{_0x4ac5b3['model']['change'](_0x2a9418=>{_0x43041f();const _0x58da67='left'===_0x79cb06['order'],_0x3251d2=_0x5ed4c4['getSelectionAffectedTableCells'](_0x539c07),_0x3e9ec7=_0x5ed4c4['getColumnIndexes'](_0x3251d2),_0x3a5623=_0x58da67?_0x3e9ec7['first']-0x1:_0x3e9ec7['last']+0x1,_0x5f3b65=_0x3251d2[0x0]['findAncestor']('table'),_0x530a14=_0x5ed4c4['createTableWalker'](_0x5f3b65,{'startRow':0x0,'column':_0x3a5623,'includeAllSlots':!0x1}),_0x32c2ac=Array['from'](_0x530a14)['map'](_0x36dc1e=>_0x2a9418['createRangeOn'](_0x36dc1e['cell']));_0x22060a['markMultiRangeInsertion'](_0x32c2ac,'tableColumn');});});}for(const _0x38d894 of['removeTableRow','removeTableColumn']){const _0x931bb3=_0x38d894['substr'](0xb),_0x1247ce=_0x931bb3['toLowerCase'](),_0xb32cfc=_0x1247ce['substr'](0x0,0x3)+'span',_0x566fab='table'+_0x931bb3,_0x1a55ec='min'+_0x931bb3,_0x53b3a9='max'+_0x931bb3;_0x22060a['enableCommand'](_0x38d894,()=>{_0x4ac5b3['model']['change'](_0x50eeaf=>{const _0x3aaefd=_0x5ed4c4['getSelectionAffectedTableCells'](_0x539c07),_0x5dd29e=_0x3aaefd[0x0]['findAncestor']('table');let _0x239d66;if('removeTableRow'==_0x38d894){const _0x1399ba=_0x5ed4c4['getRowIndexes'](_0x3aaefd);_0x239d66={'startRow':_0x1399ba['first'],'endRow':_0x1399ba['last'],'includeAllSlots':!0x0};}else{const _0x1d8dd1=_0x5ed4c4['getColumnIndexes'](_0x3aaefd);_0x239d66={'startColumn':_0x1d8dd1['first'],'endColumn':_0x1d8dd1['last'],'includeAllSlots':!0x0};}const _0x2affd1=_0x5ed4c4['createTableWalker'](_0x5dd29e,_0x239d66),_0x275abc=Array['from'](_0x2affd1)['map'](({cell:_0x5dbbf7})=>_0x5dbbf7),_0x146e23=xe(_0x275abc['filter'](_0x123ebe=>_0x123ebe['hasAttribute'](_0xb32cfc))),_0x2cd40d=xe(_0x275abc['filter'](_0x5214f6=>!_0x5214f6['hasAttribute'](_0xb32cfc)))['map'](_0x613ae4=>_0x50eeaf['createRangeOn'](_0x613ae4)),_0x4cea0f=_0x22060a['markMultiRangeDeletion'](_0x2cd40d,_0x566fab);if(_0x4cea0f&&('tableRow'==_0x4cea0f['subType']||'tableColumn'==_0x4cea0f['subType'])){const _0x1addcf=this['_getSuggestionCoords'](_0x4cea0f);for(const _0x10aa57 of _0x146e23){const _0x1d9ce3=_0x50eeaf['createRangeOn'](_0x10aa57),_0x1ca20b=_0x5ed4c4['getCellLocation'](_0x10aa57),_0x252e12=_0x10aa57['getAttribute'](_0xb32cfc)-0x1,_0x56aac3=_0x1addcf[_0x1a55ec],_0x2c1666=_0x1addcf[_0x53b3a9];_0x56aac3<=_0x1ca20b[_0x1247ce]&&_0x1ca20b[_0x1247ce]+_0x252e12<=_0x2c1666&&_0x4cea0f['addRange'](_0x1d9ce3);}}});});}function _0x32b595(_0x4ebbda){const _0x50654a=Array['from'](_0x539c07['getRanges']())['map'](_0x31bcbf=>_0x3a5e87['fromRange'](_0x31bcbf));_0x4ac5b3['model']['change'](_0x2f8b63=>{const _0x2b47fc=_0x2f8b63['batch'];_0x4ebbda=_0x4ebbda['filter'](_0x2a30e5=>'$graveyard'!=_0x2a30e5['root']['rootName']),_0x2f8b63['setSelection'](_0x4ebbda),_0x4ac5b3['commands']['get']('removeTableRow')['refresh'](),_0x4ac5b3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4ac5b3['model']['enqueueChange'](()=>{_0x4ac5b3['model']['enqueueChange'](_0x2b47fc,_0x297126=>{const _0x11942b=_0x50654a['filter'](_0x26af0d=>'$graveyard'!=_0x26af0d['root']['rootName']);_0x11942b['length']>0x0&&_0x297126['setSelection'](_0x11942b);for(const _0x251d41 of _0x50654a)_0x251d41['detach']();});});});}function _0x580c4a(_0x305bfb){_0x4ac5b3['model']['change'](_0x5df0f5=>{const _0x1d7958=Array['from'](_0x539c07['getRanges']())['map'](_0x3e04ea=>_0x3a5e87['fromRange'](_0x3e04ea)),_0x148c25=[];for(const _0x2c88b9 of _0x305bfb)for(const _0x309708 of _0x2c88b9['getItems']({'shallow':!0x0}))_0x148c25['push'](_0x309708);for(const _0x19e084 of _0x148c25)'$graveyard'!=_0x19e084['root']['rootName']&&(_0x5df0f5['setSelection'](_0x5df0f5['createPositionAt'](_0x19e084,0x0)),_0x4ac5b3['commands']['get']('removeTableColumn')['refresh'](),_0x4ac5b3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4d21da=_0x1d7958['filter'](_0x1462b7=>'$graveyard'!=_0x1462b7['root']['rootName']);_0x4d21da['length']>0x0&&_0x5df0f5['setSelection'](_0x4d21da);for(const _0x2b1f82 of _0x1d7958)_0x2b1f82['detach']();});}function _0x125281(_0x494051,_0x538946){return _0x538946['every'](_0x2c0924=>_0x494051['some'](_0xb860f7=>_0xb860f7['end']['isEqual'](_0x2c0924['start'])||_0x2c0924['end']['isEqual'](_0xb860f7['start'])));}function _0x10106e(_0x52dae3,_0x2e4811){return!_0x52dae3['some'](_0x5e4ee3=>_0x2e4811['some'](_0x4a939=>_0x5e4ee3['isIntersecting'](_0x4a939)))&&_0x52dae3['some'](_0x1b7534=>_0x2e4811['some'](_0x3d1e23=>_0x1b7534['end']['isTouching'](_0x3d1e23['start'])));}_0x4ac5b3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3a0c3e,_0x25c71a,_0x424cbd)=>{if(!_0x424cbd['options']['showSuggestionHighlights'])return;const _0x22ca0f=_0x25c71a['item'];if(!_0x22ca0f||!_0x22ca0f['is']('element','tableCell'))return;const _0x282c52=_0x424cbd['mapper']['toViewElement'](_0x22ca0f);if(_0x282c52){const {id:_0x5e02fb,authorId:_0x435dc9}=_0x22060a['_splitMarkerName'](_0x25c71a['markerName']);_0x231675(_0x282c52,_0x424cbd['writer'],(_0x5b5d82,_0x2a9ed8,_0x4b11d5)=>{_0x4b11d5['addClass'](_0x5894de(_0x2a9ed8['classes']),_0x5b5d82),_0x4b11d5['setAttribute']('data-suggestion-id',_0x5e02fb,_0x5b5d82),_0x4b11d5['setAttribute']('data-author-id',_0x435dc9,_0x5b5d82);},(_0x3fc512,_0x3399ba,_0x408542)=>{_0x408542['removeClass'](_0x5894de(_0x3399ba['classes']),_0x3fc512),_0x408542['removeAttribute']('data-suggestion-id',_0x3fc512),_0x408542['removeAttribute']('data-author-id',_0x3fc512);});}},{'priority':'highest'}),_0x22060a['descriptionFactory']['registerDescriptionCallback'](_0x3ed7a2=>{if('insertion'!=_0x3ed7a2['type']&&'deletion'!=_0x3ed7a2['type'])return;const _0x106ef8=_0x3ed7a2['getContainedElement']();if(null!=_0x106ef8&&_0x106ef8['is']('element','table')){if('insertion'==_0x3ed7a2['type']){const _0x554a4d=_0x3ed7a2['getItems']()['filter'](_0x6fb1ab=>_0x6fb1ab['is']('$textProxy'))['map'](_0x16d152=>_0x16d152['data']);if(_0x554a4d['length'])return{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x554a4d['join']('\x20')+'\x22'))};}if('deletion'==_0x3ed7a2['type']){const _0xdebf9e=_0x3ed7a2['getItems']()['filter'](_0x2f6624=>_0x2f6624['is']('$textProxy'))['map'](_0x3bc3b5=>_0x3bc3b5['data']);if(_0xdebf9e['length'])return{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xdebf9e['join']('\x20')+'\x22'))};}}}),_0x22060a['descriptionFactory']['registerDescriptionCallback'](_0x4193db=>{if('tableRow'==_0x4193db['subType']){const _0x2f15db=_0x4193db['getItems']()['filter'](_0xaad521=>_0xaad521['is']('$textProxy'))['map'](_0x18a282=>_0x18a282['data']),_0x57c3a2=this['_getSuggestionCoords'](_0x4193db),_0x4e878a=_0x57c3a2['maxRow']-_0x57c3a2['minRow']+0x1;if('insertion'==_0x4193db['type'])return _0x2f15db['length']?{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e878a,'\x22'+_0x2f15db['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW',_0x4e878a))};if('deletion'==_0x4193db['type'])return _0x2f15db['length']?{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e878a,'\x22'+_0x2f15db['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_ROW',_0x4e878a))};}if('tableColumn'==_0x4193db['subType']){const _0x3f264e=_0x4193db['getItems']()['filter'](_0x12903f=>_0x12903f['is']('$textProxy'))['map'](_0x545653=>_0x545653['data']),_0x1990de=this['_getSuggestionCoords'](_0x4193db),_0x34cae3=_0x1990de['maxColumn']-_0x1990de['minColumn']+0x1;if('insertion'==_0x4193db['type'])return _0x3f264e['length']?{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34cae3,'\x22'+_0x3f264e['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x6f1c7,'*Insert:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN',_0x34cae3))};if('deletion'==_0x4193db['type'])return _0x3f264e['length']?{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34cae3,'\x22'+_0x3f264e['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x6f1c7,'*Remove:*\x20%0',c(_0x6f1c7,'ELEMENT_TABLE_COLUMN',_0x34cae3))};}}),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x32b595),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x32b595),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x580c4a),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x580c4a),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x125281),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x125281),_0x22060a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x10106e),_0x22060a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x10106e);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2f6d12=this['editor'],_0x143cf9=_0x2f6d12['model']['document']['selection'];return(_0x2f0d7e,_0x51e4a9)=>{_0x2f6d12['model']['change'](_0x4ba888=>{const {commandName:_0xa66126,commandParams:_0x31c232}=_0x51e4a9;let _0x20b5f5=_0x2f0d7e[0x0]['end']['nodeBefore'];_0x31c232&&_0x31c232[0x0]&&!0x1===_0x31c232[0x0]['forceValue']&&(_0x20b5f5=_0x2f0d7e[0x0]['start']['nodeAfter']);const _0x57d748=_0x4ba888['createRangeIn'](_0x20b5f5);if('$graveyard'==_0x57d748['root']['rootName'])return;const _0x3b353b=Array['from'](_0x143cf9['getRanges']())['map'](_0x819014=>_0x3a5e87['fromRange'](_0x819014));_0x4ba888['setSelection'](_0x57d748),_0x2f6d12['commands']['get'](_0xa66126)['refresh'](),_0x31c232['push']({'forceDefaultExecution':!0x0}),_0x2f6d12['execute'](_0xa66126,..._0x31c232);const _0x2393ef=_0x3b353b['filter'](_0x32896a=>'$graveyard'!=_0x32896a['root']['rootName']);_0x2393ef['length']>0x0&&_0x4ba888['setSelection'](_0x2393ef);for(const _0x4f679f of _0x3b353b)_0x4f679f['detach']();});};}['_getCoordsForCells'](_0x2e512c){const _0x5491d7=this['editor']['plugins']['get']('TableUtils');let _0x10a7b8=Number['MAX_SAFE_INTEGER'],_0x1988f8=Number['MIN_SAFE_INTEGER'],_0x3f1856=Number['MAX_SAFE_INTEGER'],_0x5f0488=Number['MIN_SAFE_INTEGER'];for(const _0x37f6e2 of _0x2e512c){if('$graveyard'==_0x37f6e2['root']['rootName'])continue;const {row:_0x5a1b30,column:_0x309435}=_0x5491d7['getCellLocation'](_0x37f6e2),_0x2c391d=_0x37f6e2['hasAttribute']('rowspan')?_0x37f6e2['getAttribute']('rowspan')-0x1:0x0,_0x3bc7b8=_0x37f6e2['hasAttribute']('colspan')?_0x37f6e2['getAttribute']('colspan')-0x1:0x0;_0x10a7b8=_0x5a1b30<_0x10a7b8?_0x5a1b30:_0x10a7b8,_0x1988f8=_0x5a1b30+_0x2c391d>_0x1988f8?_0x5a1b30+_0x2c391d:_0x1988f8,_0x3f1856=_0x309435<_0x3f1856?_0x309435:_0x3f1856,_0x5f0488=_0x309435+_0x3bc7b8>_0x5f0488?_0x309435+_0x3bc7b8:_0x5f0488;}return{'minRow':_0x10a7b8,'maxRow':_0x1988f8,'minColumn':_0x3f1856,'maxColumn':_0x5f0488};}['_setupColumnsRowsFixing'](){const _0xc551a=this['editor'],_0x1206d7=_0xc551a['plugins']['get']('TrackChangesEditing'),_0x1668ba=_0xc551a['plugins']['get']('TableUtils');_0xc551a['model']['document']['on']('change:data',()=>{const _0x509fee=Array['from'](_0xc551a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b3333,data:_0x3ec0f7}of _0x509fee){const {group:_0x8e4cfa,id:_0x3134ba,subType:_0x488d61}=_0x1206d7['_splitMarkerName'](_0x3b3333);if('suggestion'!=_0x8e4cfa)continue;if(null!=_0x3ec0f7['oldRange'])continue;const _0x6eb214=_0x1206d7['getSuggestion'](_0x3134ba);this['_tablePostFixingSubtypes']['includes'](_0x488d61)&&this['_tableSuggestions']['add'](_0x6eb214);}},{'priority':'low'});const _0x2b1225=(_0x393483,_0x826c45)=>{let _0x592e99=!0x1;const _0x22c152=_0x826c45['createRangeOn'](_0x393483),_0x4787be=_0x393483['findAncestor']('table'),_0x45e5bc=_0x1668ba['getCellLocation'](_0x393483);for(const _0xaedc25 of this['_tableSuggestions']){const _0x551296=_0xaedc25['subType'],_0x31b4c1=_0x551296['startsWith']('tablePaste'),_0x5e6eb3=_0x551296['substr'](_0x31b4c1?0xa:0x5),_0x3f70a3=_0x5e6eb3['toLowerCase'](),_0x2d2a96=_0x3f70a3['substr'](0x0,0x3)+'span',_0x5e3063='min'+_0x5e6eb3,_0x457b7b='max'+_0x5e6eb3;if(!_0xaedc25['isInContent'])continue;if(_0x4787be!=_0xaedc25['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xaedc25['isIntersectingWithRange'](_0x22c152))continue;const _0x3e8a83=_0x393483['hasAttribute'](_0x2d2a96)?_0x393483['getAttribute'](_0x2d2a96)-0x1:0x0,_0x5a0f33=this['_getSuggestionCoords'](_0xaedc25),_0x388f6c=_0x5a0f33[_0x5e3063],_0xfa2958=_0x5a0f33[_0x457b7b];_0x388f6c<=_0x45e5bc[_0x3f70a3]&&_0x45e5bc[_0x3f70a3]+_0x3e8a83<=_0xfa2958&&(_0xaedc25['addRange'](_0x22c152),_0x592e99=!0x0);}return _0x592e99;};_0xc551a['model']['document']['registerPostFixer'](_0x2e9727=>{let _0x1e4833=!0x1;for(const _0x20a2ef of _0xc551a['model']['document']['differ']['getChanges']())if('insert'==_0x20a2ef['type']){if('tableRow'==_0x20a2ef['name']){for(const _0x32a1ba of _0x20a2ef['position']['nodeAfter']['getChildren']())_0x1e4833=_0x1e4833||_0x2b1225(_0x32a1ba,_0x2e9727);}else'tableCell'==_0x20a2ef['name']&&(_0x1e4833=_0x1e4833||_0x2b1225(_0x20a2ef['position']['nodeAfter'],_0x2e9727));}return _0x1e4833;});}['_getSuggestionCoords'](_0x125d5e){return this['_getCoordsForCells'](_0x125d5e['getRanges']()['map'](_0x2a87df=>_0x2a87df['start']['nodeAfter']));}}function xe(_0x13889e){return Array['from'](new Set(_0x13889e)['values']());}class Nt extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0x347354=this['editor'],_0x1e463c=_0x347354['model']['document']['selection'],_0x25f0ec=_0x347354['locale'];if(!_0x347354['plugins']['has']('TableEditing'))return;const _0x22346d=_0x347354['plugins']['get']('TrackChangesEditing'),_0xd9ffc0=_0x347354['plugins']['get']('TableUtils'),_0xe9e17f=_0x347354['plugins']['get'](Ct);_0xe9e17f['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x22346d['enableCommand']('mergeTableCells',()=>{const _0x4056b1=_0xd9ffc0['getSelectionAffectedTableCells'](_0x347354['model']['document']['selection']);_0x347354['model']['change'](()=>{_0x22346d['markMultiRangeBlockFormat'](_0x4056b1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x347354['commands']['get']('mergeTableCells')['on']('execute',(_0x6eca01,_0x275c47)=>{_0x347354['commands']['get']('trackChanges')['value']&&(_0x275c47['length']>0x0&&_0x275c47[_0x275c47['length']-0x1]&&_0x275c47[_0x275c47['length']-0x1]['forceDefaultExecution']||_0x22346d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x6eca01['stop']());},{'priority':'highest'});for(const _0x1ed8bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4d38bd=_0x347354['commands']['get'](_0x1ed8bd);_0x22346d['enableCommand'](_0x1ed8bd,()=>{const _0x1ff74e=_0x347354['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x541495=>_0x541495['is']('element','tableCell')),_0x5c54d8=_0x4d38bd['value'];_0x347354['model']['change'](()=>{_0x22346d['markMultiRangeBlockFormat']([_0x1ff74e,_0x5c54d8],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3f06b4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x42e9ee=_0x347354['commands']['get'](_0x3f06b4);_0x22346d['enableCommand'](_0x3f06b4,()=>{const _0x298267=_0xd9ffc0['getSelectionAffectedTableCells'](_0x347354['model']['document']['selection'])[0x0],_0xb98314=_0x298267['findAncestor']('table'),{column:_0x12390e,row:_0x1fd7cf}=_0xd9ffc0['getCellLocation'](_0x298267);let _0x431f3b=[];if('horizontally'==_0x42e9ee['direction']){const _0x2ae537=_0xd9ffc0['createTableWalker'](_0xb98314,{'startRow':_0x1fd7cf,'endRow':_0x1fd7cf,'includeAllSlots':!0x0});_0x431f3b=Array['from'](_0x2ae537)['map'](_0x1dd5c2=>_0x1dd5c2['cell']);}else{const _0x248d41=_0xd9ffc0['createTableWalker'](_0xb98314,{'column':_0x12390e,'includeAllSlots':!0x0});_0x431f3b=Array['from'](_0x248d41)['map'](_0x4e97fd=>_0x4e97fd['cell']);}_0x347354['model']['change'](_0x355c97=>{_0x22346d['markBlockFormat'](_0x355c97['createRangeOn'](_0x298267),{'commandName':_0x3f06b4,'commandParams':[]},_0x431f3b,_0x3f06b4);});});}_0x22346d['descriptionFactory']['registerDescriptionCallback'](_0x3e1113=>{if('formatBlock'!=_0x3e1113['type']&&'formatInline'!=_0x3e1113['type'])return;const {data:_0x2fac30}=_0x3e1113;return _0x2fac30&&'mergeTableCells'==_0x2fac30['commandName']?{'type':'format','content':c(_0x25f0ec,'*Merge\x20cells*')}:void 0x0;}),_0x22346d['descriptionFactory']['registerDescriptionCallback'](_0x4dc60c=>{if('formatBlock'!=_0x4dc60c['type']&&'formatInline'!=_0x4dc60c['type'])return;const {data:_0x140299}=_0x4dc60c;return _0x140299?'splitTableCellVertically'==_0x140299['commandName']?{'type':'format','content':c(_0x25f0ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x140299['commandName']?{'type':'format','content':c(_0x25f0ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5d68bd=_0xe9e17f['_acceptFormatSuggestionCallbackFactory']();for(const _0x3c8e39 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x22346d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3c8e39,'accept',_0x5d68bd);for(const _0x595984 of['splitTableCellVertically','splitTableCellHorizontally'])_0x22346d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x595984,'accept',_0x5d68bd);_0x22346d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x475f1a=>{_0x347354['model']['change'](_0x4a4a67=>{const _0x2c690b=Array['from'](_0x1e463c['getRanges']())['map'](_0x12736e=>_0x3a5e87['fromRange'](_0x12736e));_0x4a4a67['setSelection'](_0x475f1a),_0x347354['commands']['get']('mergeTableCells')['refresh'](),_0x347354['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x47c956=_0x2c690b['filter'](_0x4413a3=>'$graveyard'!=_0x4413a3['root']['rootName']);_0x47c956['length']>0x0&&_0x4a4a67['setSelection'](_0x47c956);for(const _0xdd1280 of _0x2c690b)_0xdd1280['detach']();});});for(const _0x3c0d52 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x465859=_0x347354['commands']['get'](_0x3c0d52);_0x465859['on']('set:isEnabled',(_0x442075,_0x2e2a28,_0xdc49c2)=>{if(_0xdc49c2){const _0x7aa78b=_0x347354['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x47aec6=>_0x47aec6['is']('element','tableCell'));this['_areMergableCells'](_0x465859['value'],_0x7aa78b)||(_0x442075['return']=!0x1,_0x442075['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x44a837=this['editor']['commands']['get']('mergeTableCells'),_0x9bee34=this['editor']['plugins']['get']('TableUtils');if(!_0x44a837['isEnabled'])return!0x1;const _0x3af995=_0x9bee34['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d0481 of _0x3af995)for(const _0x17af20 of _0x3af995)if(_0x3d0481!=_0x17af20&&!this['_areMergableCells'](_0x3d0481,_0x17af20))return!0x1;return!0x0;}['_areMergableCells'](_0x21daeb,_0x207c8f){const _0x385d39=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5dd60f=this['editor']['model']['createRangeOn'](_0x21daeb),_0x5d0e79=this['editor']['model']['createRangeOn'](_0x207c8f),_0xa8c6c3=new Set(),_0x15c288=new Set();for(const _0x13d615 of _0x385d39['getSuggestions']())if(('insertion'==_0x13d615['type']||'deletion'==_0x13d615['type']||'mergeTableCells'==_0x13d615['subType'])&&_0x13d615['isInContent']){for(const _0x2c92a4 of _0x13d615['getRanges']())_0x2c92a4['containsRange'](_0x5dd60f,!0x0)&&_0xa8c6c3['add'](_0x13d615['type']+':'+_0x13d615['author']['id']),_0x2c92a4['containsRange'](_0x5d0e79,!0x0)&&_0x15c288['add'](_0x13d615['type']+':'+_0x13d615['author']['id']);}if(_0xa8c6c3['size']!=_0x15c288['size'])return!0x1;for(const _0x3829a9 of _0xa8c6c3)if(!_0x15c288['has'](_0x3829a9))return!0x1;return!0x0;}}class Dt extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0x11d837=this['editor'];if(!_0x11d837['plugins']['has']('TableEditing'))return;const _0x592ac7=_0x11d837['locale'],_0x2b0229=_0x11d837['plugins']['get']('TrackChangesEditing');_0x2b0229['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2b0229['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2b0229['registerBlockAttribute']('headingRows'),_0x2b0229['registerBlockAttribute']('headingColumns'),_0x2b0229['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x592ac7,'FORMAT_HEADER_ROW')),_0x2b0229['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x592ac7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b22a3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0dd1=this['editor']['plugins']['get']('TableUtils'),_0x578104=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x1c1f52({showActiveMarker:_0x4fdbac=!0x0,setDataAttribute:_0x2cf2b8=!0x0}={}){return(_0x17d4a8,_0x2dcc72,_0x101f3a)=>{const {type:_0x24da2c,id:_0x2e358e}=_0x5b22a3['_splitMarkerName'](_0x2dcc72['markerName']),_0x8988c=_0x5b22a3['getSuggestion'](_0x2e358e),_0x2cf9a7=_0x8988c['data'];if('formatBlock'!=_0x8988c['type']||!_0x2cf9a7||'setTableColumnHeader'!=_0x2cf9a7['commandName'])return;if(_0x2dcc72['item'])return void _0x17d4a8['stop']();if(!_0x101f3a['consumable']['consume'](_0x2dcc72['markerRange'],_0x17d4a8['name']))return;const _0x1abff4=_0x2dcc72['markerRange']['start']['nodeAfter'],_0x44b970=_0x2dcc72['markerRange']['end']['nodeBefore'],_0x505c65=_0x1abff4['parent']['parent'],{column:_0x56bce4}=_0x5f0dd1['getCellLocation'](_0x1abff4),{column:_0x53be3c}=_0x5f0dd1['getCellLocation'](_0x44b970);for(let _0x1b97d7=_0x56bce4;_0x1b97d7<=_0x53be3c;_0x1b97d7++){const _0x2960b0=_0x5f0dd1['createTableWalker'](_0x505c65,{'column':_0x1b97d7,'includeAllSlots':!0x1});for(const _0x4fdc3b of _0x2960b0){const _0x596b4d=_0x4fdc3b['cell'],_0x1265fb=_0x101f3a['mapper']['toViewElement'](_0x596b4d);_0x101f3a['writer']['addClass']('ck-suggestion-marker-'+_0x24da2c,_0x1265fb),_0x2cf2b8&&_0x101f3a['writer']['setAttribute']('data-suggestion',_0x2e358e,_0x1265fb),_0x101f3a['mapper']['bindElementToMarker'](_0x1265fb,_0x2dcc72['markerName']),_0x4fdbac&&(_0x5b22a3['activeMarkers']['includes'](_0x2dcc72['markerName'])?_0x101f3a['writer']['addClass']('ck-suggestion-marker--active',_0x1265fb):_0x101f3a['writer']['removeClass']('ck-suggestion-marker--active',_0x1265fb));}}};}_0x5b22a3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x578104),_0x5b22a3['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x578104),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1c1f52(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1f5ccc,_0x46fc50,_0x4f68cc)=>{_0x4f68cc['options']['showSuggestionHighlights']&&_0x1c1f52({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1f5ccc,_0x46fc50,_0x4f68cc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x46c538,_0xc8ac9e,_0x1ecf1c)=>{const {type:_0x56a7e3,id:_0x15f219}=_0x5b22a3['_splitMarkerName'](_0xc8ac9e['markerName']),_0x3d3405=_0x5b22a3['getSuggestion'](_0x15f219),_0x4f53ba=_0x3d3405['data'];if('formatBlock'!=_0x3d3405['type']||!_0x4f53ba||'setTableColumnHeader'!=_0x4f53ba['commandName'])return;const _0x4c66bc=_0x1ecf1c['mapper']['markerNameToElements'](_0xc8ac9e['markerName']);if(_0x4c66bc){for(const _0x1d013e of _0x4c66bc)_0x1ecf1c['writer']['removeClass']('ck-suggestion-marker-'+_0x56a7e3,_0x1d013e),_0x1ecf1c['writer']['removeClass']('ck-suggestion-marker--active',_0x1d013e),_0x1ecf1c['writer']['removeAttribute']('data-suggestion',_0x1d013e),_0x1ecf1c['mapper']['unbindElementFromMarkerName'](_0x1d013e,_0xc8ac9e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48e251=this['editor'],_0x16b15f=_0x48e251['locale'];function _0x27cc4b(_0x2c7acd){return{'type':'format','content':c(_0x16b15f,'*Format:*\x20%0',_0x2c7acd)};}_0x48e251['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2747d7=>{if('formatBlock'!=_0x2747d7['type'])return;const {data:_0x506546}=_0x2747d7;if(_0x506546){if('setTableRowHeader'==_0x506546['commandName']){const _0x4f115d=_0x506546['commandParams'][0x0]['forceValue'];return _0x27cc4b(c(_0x16b15f,_0x4f115d?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x506546['commandName']){const _0x4e94fb=_0x506546['commandParams'][0x0]['forceValue'];return _0x27cc4b(c(_0x16b15f,_0x4e94fb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x577ae7{['afterInit'](){const _0x2d4cdd=this['editor'],_0x488595=_0x2d4cdd['locale'],_0x15d847=_0x2d4cdd['plugins']['get']('TrackChangesEditing');function _0x59095d(_0x4e896d){return{'type':'format','content':''+c(_0x488595,'*Set\x20table\x20type:*\x20%0',_0x4e896d)};}_0x2d4cdd['plugins']['has']('TableLayout')&&(_0x15d847['enableCommand']('insertTableLayout'),_0x15d847['enableDefaultAttributesIntegration']('tableType'),_0x15d847['registerBlockAttribute']('tableType'),_0x15d847['descriptionFactory']['registerElementLabel'](_0x3e6f9f=>_0x3e6f9f['is']('element','table')&&'layout'===_0x3e6f9f['getAttribute']('tableType'),_0x442728=>c(_0x488595,'ELEMENT_LAYOUT_TABLE',_0x442728)),_0x15d847['descriptionFactory']['registerDescriptionCallback'](_0x5924e8=>{const {data:_0x49a09e}=_0x5924e8;if(_0x49a09e&&'tableType'==_0x49a09e['key'])switch(_0x49a09e['newValue']){case'layout':return _0x59095d(c(_0x488595,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x59095d(c(_0x488595,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x26639e=>[_0x26639e,null]));class $t extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0x482315=this['editor'];if(!_0x482315['plugins']['has']('TableClipboard'))return;const _0x4b7845=_0x482315['plugins']['get']('TrackChangesEditing'),_0x48540a=_0x482315['plugins']['get']('TableUtils'),_0x22ee83=_0x482315['plugins']['get'](Ct),_0xe4392f=_0x482315['plugins']['get']('TableClipboard'),_0x5503f5=_0x482315['plugins']['get']('TableSelection'),_0x1df8d3=_0x482315['plugins']['get'](_0x1a1079);_0x22ee83['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x482315['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x482315['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4a1783=null,_0x288cac=!0x1;_0x1df8d3['on']('contentInsertion',(_0x109d89,_0x33dcbf)=>{_0x288cac='paste'===_0x33dcbf['method'];}),_0x482315['model']['on']('insertContent',(_0x18adb0,_0x215d8a)=>{if(!_0x288cac&&null===_0x5503f5['getSelectedTableCells']())return;const [_0x361e3f,_0x2489e7]=_0x215d8a,_0x4c182f=_0x215d8a[_0x215d8a['length']-0x1];_0x4c182f&&_0x4c182f['forceDefaultExecution']||_0x4b7845['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x3449ff,_0x14bfd9,_0x4668bd,_0x5b2f68,_0x4eb0b5){if(_0x14bfd9&&!_0x14bfd9['is']('documentSelection'))return!0x1;const _0x40c5cf=_0x4eb0b5['getTableIfOnlyTableInContent'](_0x3449ff,_0x4668bd);if(!_0x40c5cf||!He(_0x40c5cf,void 0x0,_0x5b2f68))return!0x1;const _0x10578e=_0x5b2f68['getSelectionAffectedTableCells'](_0x4668bd['document']['selection']);if(!_0x10578e['length'])return!0x1;const _0x1ee938=_0x10578e[0x0]['findAncestor']('table'),_0x36ab6d=_0x5b2f68['getRowIndexes'](_0x10578e),_0x32ec32=_0x5b2f68['getColumnIndexes'](_0x10578e),_0x48c56a={'startRow':_0x36ab6d['first'],'endRow':_0x36ab6d['last'],'startColumn':_0x32ec32['first'],'endColumn':_0x32ec32['last']};return 0x1==_0x10578e['length']&&(_0x48c56a['endRow']+=_0x5b2f68['getRows'](_0x40c5cf)-0x1,_0x48c56a['endColumn']+=_0x5b2f68['getColumns'](_0x40c5cf)-0x1),He(_0x1ee938,_0x48c56a,_0x5b2f68);}(_0x361e3f,_0x2489e7,_0x482315['model'],_0x48540a,_0xe4392f)&&(_0x18adb0['stop'](),_0x4a1783={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x482315['model']['change'](()=>{_0x482315['model']['insertContent'](_0x215d8a[0x0],_0x215d8a[0x1],_0x215d8a[0x2],{'forceDefaultExecution':!0x0});const _0x1c6f94=_0x147536(),{rowInsertionRanges:_0x33d819,columnInsertionRanges:_0x36f52b,insertionRanges:_0x114ce6,deletionRanges:_0x30bf25,cells:_0x1a5ce9}=_0x4a1783;_0x33d819['length']&&_0x4b7845['markMultiRangeInsertion'](_0x33d819,'tablePasteRow',{'tablePasteChainId':_0x1c6f94}),_0x36f52b['length']&&_0x4b7845['markMultiRangeInsertion'](_0x36f52b,'tablePasteColumn',{'tablePasteChainId':_0x1c6f94}),_0x114ce6['length']&&(_0x4b7845['markMultiRangeInsertion'](_0x114ce6,'tablePaste',{'tablePasteChainId':_0x1c6f94,'skipNestingCheck':!0x0}),_0x114ce6['forEach'](_0x1db514=>_0x1db514['detach']?.())),_0x30bf25['length']&&(_0x4b7845['markMultiRangeDeletion'](_0x30bf25,'tablePaste',{'tablePasteChainId':_0x1c6f94,'skipNestingCheck':!0x0}),_0x30bf25['forEach'](_0x3dff41=>_0x3dff41['detach']?.()));const _0x4b8304=_0x4b7845['markMultiRangeBlockFormat'](_0x1a5ce9['map'](({element:_0x5833f0})=>_0x5833f0),{'formatGroupId':_0x147536()},[],'tablePasteCell',{'tablePasteChainId':_0x1c6f94});if(_0x4b8304){const _0x26133b=_0x4b8304['getMarkers'](),_0x2d4047=[];for(const {element:_0x28f981,attributes:_0x4610be}of _0x1a5ce9){if(!_0x4610be)continue;const _0x5893d6=_0x482315['model']['createRangeOn'](_0x28f981),_0x2836f6=_0x26133b['find'](_0x424e78=>_0x424e78['getRange']()['isEqual'](_0x5893d6));_0x2836f6&&_0x2d4047['push']([_0x2836f6['name'],_0x4610be]);}_0x2d4047['length']&&_0x4b8304['setAttribute']('markerAttributes',Object['fromEntries'](_0x2d4047));}_0x4a1783=null;}));},{'priority':_0x359a13['high']+0xa}),_0x1df8d3['on']('contentInsertion',()=>{_0x288cac=!0x1;},{'priority':'lowest'}),_0x482315['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3631bc,_0x425a07)=>{const [_0x263c9b,_0x155c79,,_0x1e7e6d]=_0x425a07;if(!_0x4a1783)return;_0x3631bc['stop']();const _0x122ba0=_0x263c9b['cell'],_0x14bb31=_0x155c79,_0x158a98=De(_0x122ba0),_0x2ba8c1=De(_0x14bb31);_0x3631bc['return']=_0x122ba0;let _0x2387b5=null,_0x2e49ff=null;if(_0x2ba8c1||_0x158a98){if(_0x158a98&&!_0x2ba8c1){_0x1e7e6d['remove'](_0x122ba0['getChild'](0x0));for(const _0x467aa0 of Array['from'](_0x14bb31['getChildren']()))_0x1e7e6d['insert'](_0x467aa0,_0x122ba0,'end');const _0x2f4883=_0x4a1783['rowInsertionIndexes']['includes'](_0x263c9b['row']),_0x4c3a66=_0x4a1783['columnInsertionIndexes']['includes'](_0x263c9b['column']);_0x2f4883||_0x4c3a66||(_0x2387b5=_0x3a5e87['fromRange'](_0x1e7e6d['createRangeIn'](_0x122ba0)));}else _0x2ba8c1&&!_0x158a98&&(_0x2e49ff=_0x1e7e6d['createRangeIn'](_0x122ba0));}else{const _0x3025be=_0x1e7e6d['createElement']('tableCellSuggestion'),_0x2db82c=_0x1e7e6d['createElement']('tableCellSuggestion');_0x1e7e6d['wrap'](_0x1e7e6d['createRangeIn'](_0x122ba0),_0x2db82c),_0x1e7e6d['insert'](_0x3025be,_0x122ba0,0x0);for(const _0x25a504 of Array['from'](_0x14bb31['getChildren']()))_0x1e7e6d['insert'](_0x25a504,_0x3025be,'end');_0x2387b5=_0x3a5e87['fromRange'](_0x1e7e6d['createRangeOn'](_0x3025be)),_0x2e49ff=_0x3a5e87['fromRange'](_0x1e7e6d['createRangeOn'](_0x2db82c));}const _0x191292=Array['from'](_0x14bb31['getAttributes']())['filter'](([_0x338087])=>Oe['includes'](_0x338087));_0x4a1783['cells']['push']({'element':_0x122ba0,'attributes':_0x191292['length']?Object['fromEntries'](_0x191292):null}),_0x2387b5&&_0x4a1783['insertionRanges']['push'](_0x2387b5),_0x2e49ff&&_0x4a1783['deletionRanges']['push'](_0x2e49ff);},{'priority':'high'}),_0x48540a['on']('insertColumns',(_0x4975a5,_0x364fb4)=>{const [_0x4c790c,_0x2a9714={}]=_0x364fb4;if(!_0x4a1783)return;const _0x507b5d=_0x2a9714['at']||0x0,_0x228103=_0x2a9714['columns']||0x1;_0x4a1783['columnInsertionIndexes']=new Array(_0x228103)['fill'](_0x507b5d)['map']((_0x83bbd5,_0x2353ed)=>_0x83bbd5+_0x2353ed);for(const {cell:_0x5e069e}of _0x48540a['createTableWalker'](_0x4c790c,{'startColumn':_0x507b5d,'endColumn':_0x507b5d+_0x228103-0x1}))_0x4a1783['columnInsertionRanges']['push'](_0x482315['model']['createRangeOn'](_0x5e069e));},{'priority':'low'}),_0x48540a['on']('insertRows',(_0xc2e3f8,_0x13a7b1)=>{const [_0x376d6c,_0x2c16db={}]=_0x13a7b1;if(!_0x4a1783)return;const _0x277346=_0x2c16db['at']||0x0,_0x445e80=_0x2c16db['rows']||0x1;_0x4a1783['rowInsertionIndexes']=new Array(_0x445e80)['fill'](_0x277346)['map']((_0x5304ec,_0x590a9f)=>_0x5304ec+_0x590a9f);for(const {cell:_0x165aef}of _0x48540a['createTableWalker'](_0x376d6c,{'startRow':_0x277346,'endRow':_0x277346+_0x445e80-0x1}))_0x4a1783['rowInsertionRanges']['push'](_0x482315['model']['createRangeOn'](_0x165aef));},{'priority':'low'}),_0x4b7845['descriptionFactory']['registerDescriptionCallback'](_0x3b6ea4=>{if(_0x3b6ea4['subType']&&_0x3b6ea4['subType']['startsWith']('tablePaste'))return _0x3b6ea4['previous']?{}:{'type':'insertion','content':c(_0x482315['locale'],'*Replace\x20table\x20cells*')};});const _0x2d1b10=()=>!0x1;for(const _0x53d305 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4b7845['_suggestionFactory']['registerCustomCallback']('insertion',_0x53d305,'join',_0x2d1b10),_0x4b7845['_suggestionFactory']['registerCustomCallback']('deletion',_0x53d305,'join',_0x2d1b10),_0x4b7845['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53d305,'join',_0x2d1b10);_0x4b7845['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2d1b10),_0x4b7845['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4e5ead,_0x23103c,_0x434dd4)=>{const _0x464960=_0x4e5ead['map'](_0x32eb01=>_0x32eb01['getContainedElement']())['filter'](_0x5e3f08=>_0x5e3f08),_0x10f492=new Map(_0x464960['map'](_0x4ee15e=>[_0x4ee15e,null]));if(_0x4a1783){for(const {element:_0x4da365,attributes:_0x423135}of _0x4a1783['cells'])_0x423135&&_0x10f492['set'](_0x4da365,_0x423135);}else{if(_0x434dd4&&_0x434dd4['markerAttributes'])for(const [_0x56a5ba,_0x1fedcd]of Object['entries'](_0x434dd4['markerAttributes'])){const _0x570efe=_0x482315['model']['markers']['get'](_0x56a5ba),_0x517013=_0x570efe?_0x570efe['getRange']()['getContainedElement']():null;_0x517013&&_0x10f492['set'](_0x517013,_0x1fedcd);}}_0x482315['model']['change'](_0x4fb462=>{for(const [_0x127890,_0x185169]of _0x10f492)_0x4fb462['setAttributes']({...Ue,..._0x185169},_0x127890);});});const _0x3e7ea8=(_0x20fb9e,_0x124048)=>{_0x4b7845['_suggestionFactory']['registerCustomCallback'](_0x20fb9e,'tablePaste',_0x124048,(_0x35c77b,_0x56803f,_0x3f32ca)=>{_0x482315['model']['change'](_0x44d2c1=>{const _0x4bf245=[];for(const _0x208280 of _0x35c77b){const _0xbbe588=_0x208280['start']['nodeAfter'];_0xbbe588['is']('element','tableCellSuggestion')&&_0x4bf245['push'](_0xbbe588);}_0x4b7845['_suggestionFactory']['getSuggestionCallback'](_0x20fb9e,null,_0x124048)(_0x35c77b,_0x56803f,_0x3f32ca);for(const _0x4366fa of _0x4bf245)'$graveyard'!=_0x4366fa['root']['rootName']&&_0x44d2c1['unwrap'](_0x4366fa);});});};_0x3e7ea8('insertion','accept'),_0x3e7ea8('insertion','discard'),_0x3e7ea8('deletion','accept'),_0x3e7ea8('deletion','discard'),_0x4b7845['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x28ad65=>{const _0x259f3b=_0x28ad65['map'](_0x3da087=>_0x3da087['getContainedElement']()),_0x3156c5=_0x259f3b[0x0]['findAncestor']('table'),{minRow:_0x26020a,maxRow:_0x408add}=_0x22ee83['_getCoordsForCells'](_0x259f3b);_0x48540a['removeRows'](_0x3156c5,{'at':_0x26020a,'rows':_0x408add-_0x26020a+0x1});}),_0x4b7845['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4fac39=>{const _0x4ba7fc=_0x4fac39['map'](_0x43bfef=>_0x43bfef['getContainedElement']()),_0x147018=_0x4ba7fc[0x0]['findAncestor']('table'),{minColumn:_0xaa3fbd,maxColumn:_0x595f5c}=_0x22ee83['_getCoordsForCells'](_0x4ba7fc);_0x48540a['removeColumns'](_0x147018,{'at':_0xaa3fbd,'columns':_0x595f5c-_0xaa3fbd+0x1});});const _0x4244ef=(_0x17ba97,_0x54ec65)=>{if(!_0x54ec65['subType']||!_0x54ec65['subType']['startsWith']('tablePaste'))return;const _0xd6ff20=_0x54ec65['attributes']['tablePasteChainId'],_0x27ce05=_0x4b7845['getSuggestions']()['filter'](_0x4a6eea=>_0x4a6eea['isInContent']&&_0x4a6eea['attributes']&&_0x4a6eea['attributes']['tablePasteChainId']==_0xd6ff20);_0x27ce05['length']&&_0x54ec65['getAllAdjacentSuggestions']()['length']!=_0x27ce05['length']&&_0x27ce05['reduce']((_0x45ef64,_0x5184ac)=>(_0x45ef64['next']=_0x5184ac,_0x5184ac['previous']=_0x45ef64,_0x5184ac));};function _0x44c5b1(_0x11e603,_0x552794=!0x0){const {id:_0x36360a,authorId:_0x3df594}=_0x4b7845['_splitMarkerName'](_0x11e603['markerName']),_0x3bc4cb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xb426c=_0x4b7845['activeMarkers']['includes'](_0x11e603['markerName']);return _0xb426c&&_0x3bc4cb['push']('ck-suggestion-marker--active'),{'classes':_0x3bc4cb,'attributes':{'data-suggestion':_0x36360a,'data-author-id':_0x3df594},'priority':_0xb426c&&_0x552794?0xbc2:0xbb8};}_0x4b7845['on']('suggestionLoaded',_0x4244ef,{'priority':'high'}),_0x4b7845['on']('suggestionUnloaded',_0x4244ef,{'priority':'high'}),_0x482315['model']['document']['registerPostFixer'](()=>{let _0x44c7ba=!0x1;const _0x56bc52=Array['from'](_0x482315['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5dd80c,data:_0x72037}of _0x56bc52){const {group:_0x2689b2,type:_0xb22cc,id:_0x37874b}=_0x4b7845['_splitMarkerName'](_0x5dd80c);if('suggestion'!=_0x2689b2||'deletion'!=_0xb22cc||_0x72037['oldRange'])continue;if(!_0x4b7845['hasSuggestion'](_0x37874b))continue;const _0x39ffef=_0x4b7845['getSuggestion'](_0x37874b)['getRanges'](),_0x279827=_0x482315['plugins']['get']('Users')['me'];for(const _0x442f44 of _0x4b7845['getSuggestions']()){if(!_0x442f44['isInContent']||_0x442f44['author']!=_0x279827)continue;if('formatBlock'!=_0x442f44['type']||'tablePasteCell'!=_0x442f44['subType'])continue;if(_0x442f44['getRanges']()['every'](_0xb0449f=>_0x39ffef['some'](_0x2bb75c=>_0x2bb75c['containsRange'](_0xb0449f,!0x0)))){for(const _0x15c7a8 of _0x442f44['getAllAdjacentSuggestions']())_0x15c7a8['isInContent']&&(_0x15c7a8['discard'](),_0x44c7ba=!0x0);}}}return _0x44c7ba;}),_0x482315['model']['document']['registerPostFixer'](_0x3b976b=>{const _0x2b3876=_0x482315['commands']['get']('redo');if(!_0x2b3876||!_0x2b3876['_createdBatches']['has'](_0x3b976b['batch']))return!0x1;let _0x475018=!0x1;const _0x261858=_0x482315['plugins']['get']('Users')['me'],_0xa4cd5b=_0x482315['model']['document']['differ']['getChanges'](),_0x7f9876=Array['from'](_0x482315['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5e865e,data:_0x49a209})=>{const {group:_0x4881ef,subType:_0x5f55fa,authorId:_0x3faabe}=_0x4b7845['_splitMarkerName'](_0x5e865e);return'suggestion'==_0x4881ef&&'tablePaste'==_0x5f55fa&&_0x3faabe==_0x261858['id']&&!_0x49a209['oldRange'];});for(const _0x51d82b of _0xa4cd5b){if('insert'!=_0x51d82b['type']||'tableCellSuggestion'!=_0x51d82b['name']||0x1!=_0x51d82b['length'])continue;const _0x5ec61e=_0x3b976b['createRange'](_0x51d82b['position'],_0x51d82b['position']['getShiftedBy'](0x1));if(!_0x7f9876['find'](({data:_0x317001})=>_0x317001['newRange']['isEqual'](_0x5ec61e))){for(const {name:_0x2b3e42,data:_0x1d6175}of _0x7f9876)if(_0x5ec61e['containsRange'](_0x1d6175['newRange'])){_0x3b976b['updateMarker'](_0x2b3e42,{'range':_0x5ec61e}),_0x475018=!0x0;break;}}}return _0x475018;}),_0x482315['model']['document']['registerPostFixer'](_0x18ae18=>{let _0x2cc0c6=!0x1;const _0x48b6d8=_0x482315['plugins']['get']('Users')['me'],_0xbf9754=_0x4b7845['getSuggestions']()['filter'](_0x1c2ab0=>_0x1c2ab0['isInContent']&&_0x1c2ab0['author']==_0x48b6d8),_0x13fd81=new Set(),_0x8c564b=new Set();for(const _0x185b4e of _0xbf9754)if('tablePaste'==_0x185b4e['subType'])for(const _0x47c615 of _0x185b4e['getMarkers']()){const _0x49d5d4=_0x47c615['getRange']()['getContainedElement']();if(_0x49d5d4){if(_0x49d5d4['is']('element','tableCellSuggestion')&&De(_0x49d5d4)){_0x185b4e['removeMarker'](_0x47c615['name']),_0x13fd81['add'](_0x49d5d4),_0x2cc0c6=!0x0;const _0x3b391a=_0x49d5d4['nextSibling'],_0x2bc5e5=_0x49d5d4['previousSibling'],_0x9517db=_0x3b391a&&_0x3b391a['is']('element','tableCellSuggestion'),_0x3cf6c9=_0x2bc5e5&&_0x2bc5e5['is']('element','tableCellSuggestion');_0x9517db&&!_0x13fd81['has'](_0x3b391a)&&_0x8c564b['add'](_0x3b391a),_0x3cf6c9&&!_0x13fd81['has'](_0x2bc5e5)&&_0x8c564b['add'](_0x2bc5e5);}else _0x49d5d4['is']('element','paragraph')&&_0x49d5d4['isEmpty']&&(_0x185b4e['removeMarker'](_0x47c615['name']),_0x2cc0c6=!0x0);}}else{if('tablePasteCell'==_0x185b4e['subType']){if(!_0x185b4e['attributes']||!_0x185b4e['attributes']['tablePasteChainId'])continue;const _0x371a45=_0x185b4e['attributes']['markerAttributes'];if(_0x371a45&&Object['keys'](_0x371a45)['length'])continue;const _0x3c7085=_0x185b4e['attributes']['tablePasteChainId'];let _0x39f39d=!0x0,_0x27a8d2=!0x0;for(const _0x12edce of _0xbf9754)if(_0x12edce['subType']&&_0x12edce['subType']['startsWith']('tablePaste')){if(!_0x12edce['attributes']['tablePasteChainId']){_0x27a8d2=!0x1;break;}if(_0x12edce['id']!=_0x185b4e['id']&&_0x12edce['attributes']['tablePasteChainId']==_0x3c7085){_0x39f39d=!0x1;break;}}_0x27a8d2&&_0x39f39d&&(_0x185b4e['removeMarkers'](),_0x2cc0c6=!0x0);}}for(const _0x2e13c of _0x13fd81)_0x18ae18['remove'](_0x2e13c);for(const _0x457320 of _0x8c564b)_0x18ae18['unwrap'](_0x457320);return _0x2cc0c6;}),_0x482315['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x445338=>_0x44c5b1(_0x445338),'converterPriority':'high'}),_0x482315['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36d93e,_0x218b00)=>_0x218b00['options']['showSuggestionHighlights']?_0x44c5b1(_0x36d93e,!0x1):null,'converterPriority':'high'});const _0x5a594b=_0x482315['editing']['view'];this['listenTo'](_0x5a594b['document'],'clipboardOutput',(_0x4f5ab8,_0x8e1bf7)=>{const _0x369c84=[];for(const _0x592bba of _0x5a594b['createRangeIn'](_0x8e1bf7['content'])['getItems']())_0x592bba['is']('element','suggestion-td')&&_0x369c84['push'](_0x592bba);_0x5a594b['change'](_0x52c30c=>{for(const _0x1175b6 of _0x369c84)_0x52c30c['move'](_0x52c30c['createRangeIn'](_0x1175b6),_0x52c30c['createPositionBefore'](_0x1175b6)),_0x52c30c['remove'](_0x1175b6);});});}}function De(_0x1bffc4){if(_0x1bffc4['isEmpty'])return!0x0;const _0x4d859a=_0x1bffc4['getChild'](0x0);return _0x4d859a['is']('element','paragraph')&&_0x4d859a['isEmpty'];}function He(_0x174139,_0x515151={},_0x4f9ff6){for(const {isAnchor:_0x4afadb,cellHeight:_0x4d045f,cellWidth:_0x5394e3}of _0x4f9ff6['createTableWalker'](_0x174139,{'includeAllSlots':!0x0,..._0x515151}))if(!_0x4afadb||0x1!=_0x4d045f||0x1!=_0x5394e3)return!0x1;return!0x0;}class Bt extends _0x577ae7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x44e2e8=this['editor']['plugins']['get']('TrackChangesEditing');_0x44e2e8['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x44e2e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x44e2e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x44e2e8['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x44e2e8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x44e2e8['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f5745,_0x4a75ea){const _0x6e7c3d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26411e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x50b92e=_0x4a75ea['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5ac6d3=_0x26411e['getColumnGroupElement'](_0x50b92e);let _0x5b104c=_0x5ac6d3?_0x26411e['getTableColumnsWidths'](_0x5ac6d3):null,_0xabc62=_0x50b92e['getAttribute']('tableWidth')||null;const _0x41f834=_0x4a75ea['tableWidth']||_0xabc62,_0x42f5ea=_0x4a75ea['columnWidths']||_0x5b104c,_0x3a4623=this['editor']['plugins']['get']('Users')['me'];for(const _0x9450f4 of _0x6e7c3d['getSuggestions']()){const _0x521f87=_0x9450f4['getContainedElement']();if('resizeTable'===_0x9450f4['subType']&&_0x521f87===_0x50b92e){_0x9450f4['author']!==_0x3a4623&&_0x9450f4['discard']();const _0x1a1d7c=_0x9450f4['data']['commandParams'];_0xabc62=_0x1a1d7c[0x0]['tableWidth'],_0x5b104c=_0x1a1d7c[0x0]['columnWidths'];break;}}_0x3f5745({'table':_0x50b92e,'tableWidth':_0x41f834,'columnWidths':_0x42f5ea}),_0x6e7c3d['markBlockFormat'](_0x50b92e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xabc62,'columnWidths':_0x5b104c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x46f11f){if('formatBlock'!=_0x46f11f['type']&&'formatInline'!=_0x46f11f['type'])return;const {data:_0x2e6c12}=_0x46f11f;if(_0x2e6c12&&'resizeTable'===_0x2e6c12['formatGroupId']){const _0x2a9281='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2a9281)};}}}class xt extends _0x577ae7{['afterInit'](){const _0x5cff8f=this['editor'];_0x5cff8f['plugins']['has']('Template')&&_0x5cff8f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x577ae7{['afterInit'](){const _0x2aa0ac=this['editor'];if(!_0x2aa0ac['commands']['get']('insertTableOfContents'))return;_0x2aa0ac['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x49b723=_0x2aa0ac['plugins']['get']('TrackChangesEditing'),_0x2ffa7d=_0x2aa0ac['locale'];_0x49b723['descriptionFactory']['registerElementLabel']('tableOfContents',_0x342409=>c(_0x2ffa7d,'ELEMENT_TABLE_OF_CONTENTS',_0x342409));}}class Rt extends _0x577ae7{['afterInit'](){const _0x5d02c8=this['editor'];if(!_0x5d02c8['plugins']['has']('Title'))return;const _0x4327e7=_0x5d02c8['plugins']['get']('TrackChangesEditing');_0x4327e7['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5d02c8['locale'],'ELEMENT_TITLE')),_0x5d02c8['model']['document']['registerPostFixer'](_0xea1760=>{let _0x204729=!0x1;const _0x33fe4e=Array['from'](_0x5d02c8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x238675,data:_0x34afc0}of _0x33fe4e){const {group:_0x33ae50}=_0x4327e7['_splitMarkerName'](_0x238675);if('suggestion'!==_0x33ae50||!_0x34afc0['newRange'])continue;const _0x120f65=_0x34afc0['newRange'],_0x1fe050=_0x120f65['end']['nodeBefore'];if(!_0x1fe050||!_0x1fe050['is']('element','title-content'))continue;if(!_0x120f65['start']['isTouching'](_0x120f65['end']))continue;const _0xc7d45e=_0x5d02c8['model']['schema']['getNearestSelectionRange'](_0x120f65['end'],'forward');if(_0xc7d45e&&_0xc7d45e['isCollapsed']){const _0x3d8da5=_0xea1760['createRange'](_0x120f65['start'],_0xc7d45e['start']);_0x3d8da5['isEqual'](_0x120f65)||(_0xea1760['updateMarker'](_0x238675,{'range':_0x3d8da5}),_0x204729=!0x0);}_0x204729||(_0xea1760['removeMarker'](_0x238675),_0x204729=!0x0);}return _0x204729;});}}class Tt extends _0x577ae7{['afterInit'](){const _0x2db689=this['editor'],_0xcc23ce=_0x2db689['plugins']['get']('TrackChangesEditing');_0x2db689['plugins']['has']('Uploadcare')&&(_0xcc23ce['enableCommand']('uploadcare'),_0x2db689['plugins']['has']('UploadcareImageEdit')&&(_0xcc23ce['enableCommand']('uploadcareImageEdit'),_0xcc23ce['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xcc23ce['registerBlockAttribute']('uploadcareImageId'),_0xcc23ce['descriptionFactory']['registerDescriptionCallback'](_0x1d0fe1=>{if('attribute'!=_0x1d0fe1['type'])return;const {data:_0x4dd513}=_0x1d0fe1;return _0x4dd513&&'uploadcareImageId'==_0x4dd513['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x577ae7{['afterInit'](){const _0x4dcacf=this['editor'],_0xcb3e45=_0x4dcacf['plugins']['get']('TrackChangesEditing');_0x4dcacf['plugins']['has']('UndoEditing')&&(_0xcb3e45['enableCommand']('undo'),_0xcb3e45['enableCommand']('redo'));}}class Ut extends _0x577ae7{static get['requires'](){return[Ct];}['afterInit'](){const _0xbf0edf=this['editor'];if(!_0xbf0edf['plugins']['has']('TableCaptionEditing'))return;_0xbf0edf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x577ae7{['tableProperties'];['tableCellProperties'];constructor(_0x2b9df7){super(_0x2b9df7),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 _0x100a4b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x29da46 of this['tableProperties'])_0x100a4b['enableCommand'](_0x29da46,(_0x417037,_0x19182c)=>{const _0x4b1de6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x29da46,[_0x4b1de6],this['tableProperties'],'tableProperties',_0x417037,_0x19182c);});_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x100a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x651dcc,_0x6585d2)=>this['handleDiscardAction'](this['tableProperties'],_0x651dcc,_0x6585d2)),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x54644d of this['tableCellProperties'])_0x100a4b['enableCommand'](_0x54644d,(_0x75eea,_0x2dc508)=>{const _0x240419=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x54644d,_0x240419,this['tableCellProperties'],'tableCellProperties',_0x75eea,_0x2dc508);});_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x100a4b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4f56c3,_0x2e27aa)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4f56c3,_0x2e27aa)),_0x100a4b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x100a4b['descriptionFactory']['registerDescriptionCallback'](_0x2cf8d1=>this['handleSuggestionDescription'](_0x2cf8d1));}['_handlePropertyChange'](_0x425a08,_0xace2f,_0x2f167b,_0x1e591c,_0x1f6705,_0x6e5ad9){const _0x2914cc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6e5ad9['batch'],()=>{for(const _0x53ee39 of _0xace2f){if(this['_getSuggestion'](_0x53ee39,_0x1e591c))_0x1f6705(_0x6e5ad9);else{const _0xd8f756={};for(const _0x46fc76 of _0x2f167b){const _0x7c9114=_0x53ee39['getAttribute'](_0x46fc76);void 0x0!==_0x7c9114&&(_0xd8f756[_0x46fc76]=_0x7c9114);}_0x1f6705(_0x6e5ad9),_0x2914cc['markBlockFormat'](_0x53ee39,{'commandParams':[_0xd8f756]},[],_0x1e591c);}}});}['handleDiscardAction'](_0x3dc3f5,_0x2b0ffd,_0x243439){const _0x5afea0=_0x2b0ffd[0x0]['start']['nodeAfter'],_0x43f4b6=_0x243439['commandParams'][0x0];this['editor']['model']['change'](_0x16eea1=>{for(const _0x43385e of _0x3dc3f5)void 0x0!==_0x43f4b6[_0x43385e]?_0x16eea1['setAttribute'](_0x43385e,_0x43f4b6[_0x43385e],_0x5afea0):_0x16eea1['removeAttribute'](_0x43385e,_0x5afea0);});}['handleSuggestionDescription'](_0x31c856){if(_0x31c856['data'])switch(_0x31c856['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'](_0x966b90,_0x1ba077){const _0x25c3b0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x44f175 of _0x25c3b0['getSuggestions']({'skipNotAttached':!0x0})){const _0x2f584a=_0x44f175['getContainedElement']();if(_0x44f175['subType']===_0x1ba077&&_0x2f584a===_0x966b90)return _0x44f175;}return null;}}const u='$elementName';class p extends _0x577ae7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x671950,_0x5b2277,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b03d1){super(_0x5b03d1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x574459,_0x3ce543,_0x242d77,_0x13c2d6)=>{this['_model']['change'](()=>{for(const _0x22dec6 of[..._0x13c2d6,..._0x242d77])this['_model']['markers']['has'](_0x22dec6)&&_0x5b03d1['editing']['reconvertMarker'](_0x22dec6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b03d1['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(),_0x5b03d1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b03d1['config']['get']('trackChanges.trackFormatChanges'),_0x5b03d1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b03d1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5b03d1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5e138f=this['editor'],_0x288406=(_0x168a50,_0x4de13a)=>{if('attribute'!=_0x168a50)return'ck-suggestion-marker-'+_0x168a50;const _0xe871c4=_0x4de13a['split']('|')[0x0];return this['_isBlockAttribute'](_0xe871c4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5e138f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1240f8=>{const {id:_0x4363e2,authorId:_0x34cc61,type:_0x496a3d,subType:_0x34672c}=this['_splitMarkerName'](_0x1240f8['markerName']),_0x1b306c=['ck-suggestion-marker',_0x288406(_0x496a3d,_0x34672c)];let _0x47f62b=0xbb8;return this['activeMarkers']['includes'](_0x1240f8['markerName'])&&(_0x1b306c['push']('ck-suggestion-marker--active'),_0x47f62b=0xbc2),'deletion'==_0x496a3d&&(_0x47f62b+=0x5),{'classes':_0x1b306c,'attributes':{'data-suggestion':_0x4363e2,'data-author-id':_0x34cc61},'priority':_0x47f62b};}}),_0x5e138f['conversion']['for']('dataDowncast')['add'](_0x46a0f9=>{_0x46a0f9['on']('addMarker:suggestion',(_0x10556e,_0x466085,_0x279d7c)=>{if(!_0x279d7c['options']['showSuggestionHighlights'])return;const _0x3cd98c=_0x466085['item'];if(!_0x3cd98c)return;const _0x520748=_0x279d7c['mapper']['toViewElement'](_0x3cd98c);_0x5e138f['model']['schema']['isObject'](_0x3cd98c)&&_0x520748&&!_0x520748['getCustomProperty']('widget')&&_0x520748['is']('containerElement')&&_0x185ea5(_0x520748,_0x279d7c['writer']);},{'priority':'high'});}),_0x5e138f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5c6146,_0x5b599e)=>{if(!_0x5b599e['options']['showSuggestionHighlights'])return null;const {id:_0x5b6fdf,authorId:_0x31d5e0,type:_0x1f4112,subType:_0x1eed32}=this['_splitMarkerName'](_0x5c6146['markerName']);return{'classes':['ck-suggestion-marker',_0x288406(_0x1f4112,_0x1eed32)],'priority':0xbb8,'attributes':{'data-suggestion':_0x5b6fdf,'data-author-id':_0x31d5e0}};}});const _0x14de9f=({showActiveMarkers:_0x37cb31=!0x0,isAttributeSuggestion:_0x10716d=!0x1}={})=>(_0x32d08f,_0x1c95e5,_0x4d337e)=>{if(!_0x1c95e5['item'])return;const {id:_0x1365dd,authorId:_0x4779ad}=this['_splitMarkerName'](_0x1c95e5['markerName']);if(_0x10716d){const _0x38e283=this['_suggestions']['get'](_0x1365dd),_0x1ef158=this['_getAttributeKey'](_0x38e283);if(!this['_isBlockAttribute'](_0x1ef158))return;}if(_0x1c95e5['item']['is']('selection'))return void _0x4d337e['consumable']['consume'](_0x1c95e5['item'],_0x32d08f['name']);const _0x3a4c8e=_0x4d337e['mapper']['toViewElement'](_0x1c95e5['item']);if(_0x1c95e5['item']['is']('element')&&_0x5e138f['model']['schema']['isBlock'](_0x1c95e5['item'])&&!_0x3a4c8e['getCustomProperty']('addHighlight')){_0x4d337e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3a4c8e),_0x4d337e['writer']['setAttribute']('data-suggestion',_0x1365dd,_0x3a4c8e),_0x4d337e['writer']['setAttribute']('data-author-id',_0x4779ad,_0x3a4c8e),_0x4d337e['mapper']['bindElementToMarker'](_0x3a4c8e,_0x1c95e5['markerName']),_0x37cb31&&(this['activeMarkers']['includes'](_0x1c95e5['markerName'])?_0x4d337e['writer']['addClass']('ck-suggestion-marker--active',_0x3a4c8e):_0x4d337e['writer']['removeClass']('ck-suggestion-marker--active',_0x3a4c8e));for(const _0x2212b0 of _0x5e138f['model']['createRangeIn'](_0x1c95e5['item'])['getItems']())_0x4d337e['consumable']['consume'](_0x2212b0,_0x32d08f['name']);_0x4d337e['consumable']['consume'](_0x1c95e5['item'],_0x32d08f['name']);}};_0x5e138f['conversion']['for']('dataDowncast')['add'](_0x1e474e=>{_0x1e474e['on']('addMarker:suggestion:formatBlock',(_0x292d39,_0x1a4df9,_0x4f7050)=>{_0x4f7050['options']['showSuggestionHighlights']&&_0x14de9f({'showActiveMarkers':!0x1})(_0x292d39,_0x1a4df9,_0x4f7050);},{'priority':'highest'});}),_0x5e138f['conversion']['for']('dataDowncast')['add'](_0x108e17=>{_0x108e17['on']('addMarker:suggestion:attribute',(_0x319747,_0x58aefd,_0x454d28)=>{_0x454d28['options']['showSuggestionHighlights']&&_0x14de9f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x319747,_0x58aefd,_0x454d28);},{'priority':'highest'});}),_0x5e138f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x13bc4a,_0x354863)=>{if(_0x354863['options']['showSuggestionHighlights']){const {id:_0x5a4563,authorId:_0x2501f5}=this['_splitMarkerName'](_0x13bc4a);return _0x13bc4a['includes'](':split')||_0x13bc4a['includes'](':merge')?{'group':'suggestion','name':_0x13bc4a['substr'](0xb),'attributes':{'data-suggestion':_0x5a4563,'data-author-id':_0x2501f5}}:null;}return{'group':'suggestion','name':_0x13bc4a['substr'](0xb)};}}),_0x5e138f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b367f,{writer:_0x1cdbc1})=>{let _0x43ce91='suggestion:'+_0x4b367f['getAttribute']('suggestion-type')+':'+_0x4b367f['getAttribute']('id');return _0x4b367f['getAttribute']('marker-count')&&(_0x43ce91+=':'+_0x4b367f['getAttribute']('marker-count')),_0x1cdbc1['createElement']('$marker',{'data-name':_0x43ce91});}}),_0x5e138f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x3061d1=>{_0x3061d1['on']('addMarker:suggestion:formatBlock',_0x14de9f(),{'priority':'high'});}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x374afe=>{_0x374afe['on']('addMarker:suggestion:attribute',_0x14de9f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x5e3a97=>{_0x5e3a97['on']('removeMarker:suggestion:formatBlock',(_0xf1caac,_0x52a823,_0x204e44)=>{const _0x1d446f=_0x204e44['mapper']['markerNameToElements'](_0x52a823['markerName']);if(_0x1d446f){for(const _0x29b015 of _0x1d446f)_0x29b015['getCustomProperty']('addHighlight')||(_0x204e44['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x29b015),_0x204e44['writer']['removeAttribute']('data-suggestion',_0x29b015),_0x204e44['writer']['removeAttribute']('data-author-id',_0x29b015),_0x204e44['mapper']['unbindElementFromMarkerName'](_0x29b015,_0x52a823['markerName']));}},{'priority':'high'});}),_0x5e138f['conversion']['for']('editingDowncast')['add'](_0x131a3b=>{_0x131a3b['on']('removeMarker:suggestion:attribute',(_0x18210f,_0x512445,_0x3db629)=>{const _0x43a3f9=_0x3db629['mapper']['markerNameToElements'](_0x512445['markerName']);if(!_0x43a3f9)return;const {id:_0x525e06}=this['_splitMarkerName'](_0x512445['markerName']),_0x5f031d=this['_suggestions']['get'](_0x525e06),_0x6b5fe1=this['_getAttributeKey'](_0x5f031d);if(this['_isBlockAttribute'](_0x6b5fe1)){for(const _0x9ba0d4 of _0x43a3f9)_0x9ba0d4['getCustomProperty']('addHighlight')||(_0x3db629['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x9ba0d4),_0x3db629['writer']['removeAttribute']('data-suggestion',_0x9ba0d4),_0x3db629['writer']['removeAttribute']('data-author-id',_0x9ba0d4),_0x3db629['mapper']['unbindElementFromMarkerName'](_0x9ba0d4,_0x512445['markerName']));}},{'priority':'high'});}),_0x5e138f['model']['document']['registerPostFixer'](_0x14cfb2=>{let _0x5d0c30=!0x1;const _0x2b2326=Array['from'](_0x5e138f['model']['document']['differ']['getChangedMarkers']()),_0x2714dc=new Set();for(const {name:_0x3422e6,data:_0x2eebdd}of _0x2b2326){const {group:_0x565153,type:_0x453042,subType:_0x3e631a,id:_0x2e84ef}=this['_splitMarkerName'](_0x3422e6);if('suggestion'!==_0x565153)continue;const _0x4f62c6=this['_suggestions']['get'](_0x2e84ef);if(null!=_0x2eebdd['newRange']){'formatInline'==_0x453042&&(_0x5d0c30=_0x5d0c30||Jt(_0x2eebdd['newRange'],_0x3422e6,_0x14cfb2,_0x5e138f['model']['schema']));const _0x2e79cd='attribute'==_0x453042&&this['_isBlockAttribute'](_0x3e631a['split']('|')[0x0]);if(_0x2eebdd['newRange']['isCollapsed']||'$graveyard'==_0x2eebdd['newRange']['root']['rootName']||'formatBlock'==_0x453042&&!Ht(_0x2eebdd['newRange'])||_0x2e79cd&&!Ht(_0x2eebdd['newRange'])||'deletion'==_0x453042&&!(!Lt(_0x24e32a=_0x2eebdd['newRange'])&&!function(_0x5e3662){return _0x5e3662['start']['parent']==_0x5e3662['end']['nodeBefore']&&_0x5e3662['start']['isAtEnd'];}(_0x24e32a)))_0x14cfb2['removeMarker'](_0x3422e6),_0x5d0c30=!0x0;else{if(!_0x4f62c6||!_0x4f62c6['isInContent'])continue;if(_0x2eebdd['newRange']&&_0x2eebdd['oldRange']&&_0x2eebdd['newRange']['isEqual'](_0x2eebdd['oldRange']))continue;_0x2714dc['add'](_0x4f62c6);}}}var _0x24e32a;return _0x2714dc['size']>0x0&&(_0x5d0c30=!!this['_joinWithAdjacentSuggestions'](_0x2714dc)||_0x5d0c30),_0x5d0c30;}),_0x5e138f['model']['document']['registerPostFixer'](_0x1aca30=>{let _0x34e122=!0x1;for(const _0x1abe54 of _0x5e138f['model']['document']['differ']['getChanges']())if('insert'==_0x1abe54['type'])for(const _0x2b7568 of this['_suggestions']['values']()){if(_0x2b7568['isMultiRange']||!_0x2b7568['isInContent'])continue;const _0x221baa='formatBlock'==_0x2b7568['type'],_0xb4aef8=this['_getAttributeKey'](_0x2b7568),_0xac3e00=_0xb4aef8&&this['_isBlockAttribute'](_0xb4aef8);if(!_0x221baa&&!_0xac3e00)continue;const _0x5a6ad7=_0x2b7568['getFirstRange']();if(_0x5a6ad7['start']['parent']!=_0x5a6ad7['end']['parent']&&!_0x5a6ad7['end']['isAtEnd']){const _0x76cd54=_0x5e138f['model']['createPositionAt'](_0x5a6ad7['start']['nodeAfter'],'end'),_0x3383e5=_0x5e138f['model']['createRange'](_0x5a6ad7['start'],_0x76cd54);_0x1aca30['updateMarker'](_0x2b7568['getFirstMarker'](),{'range':_0x3383e5}),_0x34e122=!0x0;}}return _0x34e122;}),_0x5e138f['model']['document']['registerPostFixer'](_0x14fad1=>this['_processAttributeChanges'](_0x14fad1)),_0x5e138f['model']['document']['registerPostFixer'](_0x147510=>!_0x147510['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x147510)),_0x5e138f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5e138f['model']['document']['on']('change:data',(_0x20f509,_0x44042a)=>{if(!_0x44042a['isLocal']||_0x44042a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xa53726=_0x5e138f['model']['document']['differ']['getChanges']();if(0x0==_0xa53726['length'])return;const _0x5b21e1=[],_0x3871fc=_0xa53726['filter'](_0x39676c=>'attribute'==_0x39676c['type']),_0x5491ce=_0xa53726['filter'](_0x2e6b6=>'insert'==_0x2e6b6['type']&&'$text'!=_0x2e6b6['name']);for(const _0x242aff of _0x3871fc)this['_isRegisteredAttribute'](_0x242aff['attributeKey'])&&_0x5b21e1['push']({'key':_0x242aff['attributeKey'],'newValue':_0x242aff['attributeNewValue'],'oldValue':_0x242aff['attributeOldValue'],'range':qt(_0x242aff['range'],_0x5e138f['model'])});for(const _0x212754 of _0x5491ce){if('rename'!=_0x212754['action']&&'refresh'!=_0x212754['action'])continue;const _0x1741bb=zt(_0x212754['position']['nodeAfter'],_0x5e138f['model']),_0x37b56e=_0x212754['before'];'rename'==_0x212754['action']&&_0x5b21e1['push']({'key':u,'newValue':_0x212754['name'],'oldValue':_0x37b56e['name'],'range':_0x1741bb});for(const [_0xa1df9f,_0x544cc6]of _0x37b56e['attributes']){if(!this['_isRegisteredAttribute'](_0xa1df9f))continue;const _0x19de02=_0x212754['attributes']['get'](_0xa1df9f);_0x544cc6!==_0x19de02&&_0x5b21e1['push']({'key':_0xa1df9f,'newValue':_0x19de02,'oldValue':_0x544cc6,'range':_0x1741bb});}for(const [_0x3efc7d,_0x7547fd]of _0x212754['attributes'])this['_isRegisteredAttribute'](_0x3efc7d)&&(_0x37b56e['attributes']['has'](_0x3efc7d)||_0x5b21e1['push']({'key':_0x3efc7d,'newValue':_0x7547fd,'oldValue':null,'range':_0x1741bb}));}0x0!=_0x5b21e1['length']&&_0x5e138f['model']['enqueueChange'](_0x44042a,_0x486860=>{const _0x2d7f24=_0x147536();for(const {range:_0x196255,key:_0x4f7637,oldValue:_0xf6e441,newValue:_0x199714}of _0x5b21e1)this['markAttributeChange'](_0x196255,_0x4f7637,_0xf6e441,_0x199714,{'groupId':_0x2d7f24});this['_reduceExistingSuggestions'](_0x486860,_0x5b21e1);});},{'priority':'lowest'}),_0x5e138f['model']['markers']['on']('update:suggestion',(_0x2bfded,_0xa52872,_0x3b8fea)=>{if(null==_0x3b8fea){const {id:_0x15be2c}=this['_splitMarkerName'](_0xa52872['name']),_0x431b85=this['_suggestions']['get'](_0x15be2c);_0x431b85&&_0x431b85['addMarkerName'](_0xa52872['name']);}}),_0x5e138f['model']['document']['on']('change:data',()=>{const _0x3dd294=Array['from'](_0x5e138f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x476cd7=>'suggestion'===this['_splitMarkerName'](_0x476cd7['name'])['group']);if(0x0===_0x3dd294['length'])return;_0x3dd294['sort']((_0x4ea16b,_0x33cdbe)=>{const _0x2d47cb=_0x4ea16b['data']['oldRange'],_0xf8a3be=_0x33cdbe['data']['oldRange'];return null===_0x2d47cb&&null===_0xf8a3be?0x0:null===_0x2d47cb&&null!==_0xf8a3be?-0x1:null!==_0x2d47cb&&null===_0xf8a3be?0x1:_0x2d47cb['start']['isBefore'](_0xf8a3be['start'])?-0x1:0x1;});const _0x441817=new Set(),_0x1b3d6d=new Set();for(const {name:_0x33c698,data:_0x4f40de}of _0x3dd294){const {id:_0x2f5f56}=this['_splitMarkerName'](_0x33c698);if(null===_0x4f40de['oldRange']){const _0x14ebb3=this['_handleNewSuggestionMarker'](_0x33c698);_0x1b3d6d['add'](_0x14ebb3);}else{const _0x46f77d=this['_suggestions']['get'](_0x2f5f56);null!==_0x4f40de['newRange']||_0x46f77d['isInContent']?(_0x441817['add'](_0x46f77d['head']),_0x1b3d6d['add'](_0x46f77d)):this['_removeSuggestion'](_0x46f77d);}}_0x1b3d6d['size']>0x0&&this['_refreshSuggestionsChain'](_0x1b3d6d);for(const _0x1b4b03 of _0x441817)this['fire']('suggestionChanged',_0x1b4b03);}),_0x5e138f['model']['on']('applyOperation',(_0x10d258,_0x6d558d)=>{const _0x48ab44=_0x6d558d[0x0];if(!this['_suggestions']['size'])return;if(!_0x48ab44['isDocumentOperation'])return;if(_0x48ab44['batch']['isUndo']||!_0x48ab44['batch']['isLocal'])return;let _0x2b07b6,_0x27d1fa;switch(_0x48ab44['type']){case'insert':_0x2b07b6=_0x5e138f['model']['createPositionAt'](_0x48ab44['position']),_0x27d1fa=_0x2b07b6['getShiftedBy'](_0x48ab44['howMany']);break;case'split':_0x2b07b6=_0x5e138f['model']['createPositionAt'](_0x48ab44['splitPosition']),_0x27d1fa=_0x5e138f['model']['createPositionAt'](_0x48ab44['moveTargetPosition']);break;case'move':_0x2b07b6=_0x5e138f['model']['createPositionAt'](_0x48ab44['targetPosition']),_0x27d1fa=_0x2b07b6['getShiftedBy'](_0x48ab44['howMany']);break;default:return;}const _0x9c981b=_0x5e138f['model']['createRange'](_0x2b07b6,_0x27d1fa);_0x5e138f['model']['change'](()=>{for(const {suggestion:_0x29806e,meta:_0x172cac}of this['_findSuggestions'](_0x9c981b)){if(_0x29806e['isMultiRange'])continue;if('formatInline'==_0x29806e['type'])continue;const _0x3a586d=this['_getAttributeKey'](_0x29806e);if(_0x3a586d&&this['_isBlockAttribute'](_0x3a586d)&&'split'!=_0x48ab44['type'])continue;const _0x5fc21d=_0x29806e['data']&&_0x29806e['data']['multipleBlocks'];('formatBlock'!=_0x29806e['type']||'split'==_0x48ab44['type']&&!_0x5fc21d)&&(_0x172cac['containsRangeInObject']||'insertion'==_0x29806e['type']&&_0x172cac['isOwn']||_0x29806e['getFirstRange']()['containsRange'](_0x9c981b)&&this['_breakSuggestionMarker'](_0x29806e,_0x2b07b6,_0x27d1fa));}});},{'priority':'lowest'}),_0x5e138f['model']['on']('deleteContent',(_0xa2badf,_0x3f0c52)=>{const _0x274ed9=_0x3f0c52[0x0],_0x1023b8=_0x3f0c52[0x1];if(_0x1023b8&&_0x1023b8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x274ed9['isCollapsed'])return;const _0x48116c=_0x5e138f['model']['schema'],{start:_0x279467,end:_0x218fb6}=_0x274ed9['getFirstRange'](),_0x46d6ef=_0x279467['nodeAfter']&&_0x48116c['isLimit'](_0x279467['nodeAfter'])?null:_0x48116c['getNearestSelectionRange'](_0x279467,'forward'),_0x26bbf2=_0x218fb6['nodeBefore']&&_0x48116c['isLimit'](_0x218fb6['nodeBefore'])?null:_0x48116c['getNearestSelectionRange'](_0x218fb6,'backward'),_0x1603e9=_0x5e138f['model']['createRange'](_0x46d6ef?_0x46d6ef['start']:_0x279467,_0x26bbf2?_0x26bbf2['end']:_0x218fb6);_0x5e138f['model']['change'](_0x4618cc=>{this['markDeletion'](_0x1603e9);const _0x5bcd1a=_0x5e138f['model']['schema']['getNearestSelectionRange'](_0x1603e9['start']);_0x274ed9['is']('documentSelection')?_0x4618cc['setSelection'](_0x5bcd1a):_0x274ed9['setTo'](_0x5bcd1a);}),_0xa2badf['stop']();},{'priority':_0x359a13['normal']+0xa}),_0x5e138f['model']['on']('insertContent',(_0x59b599,_0x1cb108)=>{const _0x94b0df=_0x1cb108[_0x1cb108['length']-0x1];_0x94b0df&&_0x94b0df['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5e138f['model']['change'](()=>{let _0x7768c4=_0x5e138f['model']['insertContent'](_0x1cb108[0x0],_0x1cb108[0x1],_0x1cb108[0x2],{'forceDefaultExecution':!0x0});if(!_0x7768c4)return;_0x59b599['return']=_0x7768c4['clone']();const _0x3af661=_0x7768c4['end']['nodeBefore'],_0x50b391=_0x5e138f['model']['schema'];_0x3af661&&_0x50b391['isBlock'](_0x3af661)&&!_0x50b391['isObject'](_0x3af661)&&(_0x7768c4=_0x5e138f['model']['createRange'](_0x7768c4['start'],_0x5e138f['model']['createPositionAt'](_0x3af661,'end'))),this['markInsertion'](_0x7768c4);}),_0x59b599['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x566d11=new x(_0x5e138f,this['_suggestions']);_0x5e138f['commands']['add']('acceptSuggestion',_0x566d11),this['enableCommand']('acceptSuggestion');const _0xc1e13d=new O(_0x5e138f,this['_suggestions']);_0x5e138f['commands']['add']('discardSuggestion',_0xc1e13d),this['enableCommand']('discardSuggestion'),_0x5e138f['commands']['add']('acceptAllSuggestions',new R(_0x5e138f,_0x566d11,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5e138f['commands']['add']('discardAllSuggestions',new R(_0x5e138f,_0xc1e13d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5e138f['commands']['add']('acceptSelectedSuggestions',new E(_0x5e138f,_0x566d11,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5e138f['commands']['add']('discardSelectedSuggestions',new E(_0x5e138f,_0xc1e13d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x434d8b=_0x5e138f['plugins']['get']('CommentsRepository');this['listenTo'](_0x434d8b,'addComment',(_0x1760d6,{threadId:_0x535ce3})=>{const _0x11d1ee=this['_suggestions']['get'](_0x535ce3);_0x11d1ee&&_0x11d1ee['commentThread']&&0x1===_0x11d1ee['commentThread']['length']&&this['_updateSuggestionData'](_0x535ce3,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x434d8b,'removeComment',(_0x3f17f9,{threadId:_0x45181f})=>{const _0x3f9d21=this['_suggestions']['get'](_0x45181f);_0x3f9d21&&_0x3f9d21['commentThread']&&!_0x3f9d21['commentThread']['length']&&this['_updateSuggestionData'](_0x45181f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3070d4){const _0x101c3b=_0x21ac9e([0x31,0x6c,0x70,0x6d,0x63,0x4f,0x66,0x49,0x77,0x48,0x73,0x38,0x6a,0x50,0x44,0x41,0x62,0x4d,0x75,0x46,0x53,0x4a,0x45,0x55,0x39,0x57,0x4c,0x56,0x6b,0x30,0x69,0x32,0x5a,0x71,0x64,0x67,0x37,0x74,0x33,0x47,0x34,0x4b,0x36,0x6e,0x6f,0x58,0x68,0x51,0x65,0x7a,0x61,0x43,0x4e,0x79,0x59,0x54,0x78,0x76,0x52,0x72,0x35,0x42]),_0x3efb0f=0x64c1d1b,_0x226d92=0x64b75eb^_0x3efb0f,_0x5f1baa=window[_0x21ac9e([0x44,0x61,0x74,0x65])][_0x21ac9e([0x6e,0x6f,0x77])](),_0x163fea=_0x3070d4[_0x21ac9e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3054cb=new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fa830=>{_0x163fea[_0x21ac9e([0x6f,0x6e,0x63,0x65])](_0x21ac9e([0x72,0x65,0x61,0x64,0x79]),_0x1fa830);}),_0x393004={[_0x21ac9e([0x6b,0x74,0x79])]:_0x21ac9e([0x45,0x43]),[_0x21ac9e([0x75,0x73,0x65])]:_0x21ac9e([0x73,0x69,0x67]),[_0x21ac9e([0x63,0x72,0x76])]:_0x21ac9e([0x50,0x2d,0x32,0x35,0x36]),[_0x21ac9e([0x78])]:_0x21ac9e([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]),[_0x21ac9e([0x79])]:_0x21ac9e([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]),[_0x21ac9e([0x61,0x6c,0x67])]:_0x21ac9e([0x45,0x53,0x32,0x35,0x36])},_0x2947f2=_0x163fea[_0x21ac9e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21ac9e([0x67,0x65,0x74])](_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x68433e(){let _0x1cbb41,_0x26af46=null,_0x320503=null;try{if(_0x2947f2==_0x21ac9e([0x47,0x50,0x4c]))return _0x21ac9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1cbb41=_0x1a4323(),!_0x1cbb41)return _0x21ac9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1cbb41[_0x21ac9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x320503=_0x3efe75(_0x1cbb41[_0x21ac9e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1cbb41[_0x21ac9e([0x6a,0x74,0x69])])),await _0x9e1fef()?_0x1b058a()?_0x26864c()?_0x21ac9e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b4c2c()?(_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ac9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x26af46=_0x84293e(_0x21ac9e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21ac9e([0x74,0x72,0x69,0x61,0x6c])&&(_0x26af46=_0x84293e(_0x21ac9e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x22ad77()):_0x21ac9e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21ac9e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21ac9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x345b14){return _0x21ac9e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x26864c(){const _0x34f909=[_0x21ac9e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21ac9e([0x74,0x72,0x69,0x61,0x6c])][_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f1baa/0x3e8:0xe10*_0x226d92;return _0x1cbb41[_0x21ac9e([0x65,0x78,0x70])]<_0x34f909;}function _0x1b058a(){const _0x29a0d5=_0x1cbb41[_0x21ac9e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x29a0d5)return!0x1;if(_0x29a0d5[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x2a])))return!0x0;if(_0x29a0d5[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x54,0x43])))return!0x0;if(_0x29a0d5[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x52,0x54,0x43]))){if(_0x2090c1())return!0x0;if(_0x615f89()||_0x851004())return!0x0;}return!0x1;}function _0x1b4c2c(){const _0x267ab8=_0x1cbb41[_0x21ac9e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x267ab8||0x0==_0x267ab8[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x397e40}=new URL(window[_0x21ac9e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x267ab8[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x397e40))return!0x0;const _0x84d50e=_0x397e40[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e]));return _0x267ab8[_0x21ac9e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1a5235=>_0x1a5235[_0x21ac9e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21ac9e([0x2a])))[_0x21ac9e([0x6d,0x61,0x70])](_0xa156a6=>_0xa156a6[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e])))[_0x21ac9e([0x73,0x6f,0x6d,0x65])](_0xdab0c5=>_0x84d50e[_0x21ac9e([0x65,0x76,0x65,0x72,0x79])]((_0x1ec56f,_0x1fbb6e)=>_0xdab0c5[_0x1fbb6e]===_0x1ec56f||_0xdab0c5[_0x1fbb6e]===_0x21ac9e([0x2a])));}function _0x22ad77(){return _0x26af46&&_0x320503?new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44623c,_0x7b6f7b)=>{_0x26af46[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x44623c,_0x7b6f7b),_0x320503[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x439c47=>{_0x439c47!=_0x21ac9e([0x56,0x61,0x6c,0x69,0x64])&&_0x44623c(_0x439c47);},_0x7b6f7b);}):_0x26af46||_0x320503||_0x21ac9e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3efe75(_0x131d28,_0x233ff9){return new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x419afe=>{if(_0x479f48())return _0x419afe(_0x21ac9e([0x56,0x61,0x6c,0x69,0x64]));_0x3ace2a(),_0x163fea[_0x21ac9e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21ac9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3d1929=!0x1;const _0x2a2748=_0x147536();function _0x5ab9fe(_0x4ae86e){return!!_0x4ae86e&&(typeof _0x4ae86e===_0x21ac9e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4ae86e===_0x21ac9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4ae86e[_0x21ac9e([0x74,0x68,0x65,0x6e])]===_0x21ac9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4ae86e[_0x21ac9e([0x63,0x61,0x74,0x63,0x68])]===_0x21ac9e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2a81ae(_0x4cb205){_0x47a892(_0x4cb205)[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x1f11eb=>{if(!_0x1f11eb||_0x1f11eb[_0x21ac9e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21ac9e([0x6f,0x6b]))return _0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x11fb78(_0x5ab81b(_0x2a2748+_0x233ff9))!=_0x1f11eb[_0x21ac9e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21ac9e([0x56,0x61,0x6c,0x69,0x64]);})[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x44ab7b=>(_0x1d200f(),_0x44ab7b),()=>{const _0x31b745=_0x5c5483();return null==_0x31b745?(_0x1d200f(),_0x21ac9e([0x56,0x61,0x6c,0x69,0x64])):_0x21ac9e(_0x5f1baa-_0x31b745>(0x2240991b^_0x3efb0f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x419afe)[_0x21ac9e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x419afe(_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x194fcf=0x67af39b^_0x3efb0f;function _0x1d200f(){const _0x1b6295=_0x21ac9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x11fb78(_0x5ab81b(_0x131d28)),_0x32a43f=_0x36039a(_0x11fb78(window[_0x21ac9e([0x4d,0x61,0x74,0x68])][_0x21ac9e([0x63,0x65,0x69,0x6c])](_0x5f1baa/_0x194fcf)));window[_0x21ac9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ac9e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b6295,_0x32a43f);}function _0x5c5483(){const _0x180623=_0x21ac9e([0x6c,0x6c,0x63,0x74,0x2d])+_0x11fb78(_0x5ab81b(_0x131d28)),_0x1b350a=window[_0x21ac9e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21ac9e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x180623);return _0x1b350a?window[_0x21ac9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36039a(_0x1b350a),0x10)*_0x194fcf:null;}function _0x47a892(_0x635836){return new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x423570,_0x3f9cee)=>{_0x635836[_0x21ac9e([0x74,0x68,0x65,0x6e])](_0x423570,_0x3f9cee),window[_0x21ac9e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f9cee,0x64dc9db^_0x3efb0f);});}}_0x163fea[_0x21ac9e([0x6f,0x6e])](_0x21ac9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x350570,_0x537050)=>{if(_0x537050[0x0]!=_0x131d28)return _0x419afe(_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x537050[0x1]={..._0x537050[0x1],[_0x21ac9e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2a2748};},{[_0x21ac9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ac9e([0x68,0x69,0x67,0x68])}),_0x163fea[_0x21ac9e([0x6f,0x6e])](_0x21ac9e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ab3b6=>{_0x5ab9fe(_0x3ab3b6[_0x21ac9e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3d1929=!0x0,_0x2a81ae(_0x3ab3b6[_0x21ac9e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21ac9e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21ac9e([0x6c,0x6f,0x77])}),_0x3054cb[_0x21ac9e([0x74,0x68,0x65,0x6e])](()=>{_0x3d1929||_0x419afe(_0x21ac9e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x479f48(){return _0x163fea[_0x21ac9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ac9e([0x76,0x69,0x65,0x77])][_0x21ac9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21ac9e([0x61,0x75,0x74,0x6f]);}function _0x3ace2a(){_0x163fea[_0x21ac9e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21ac9e([0x76,0x69,0x65,0x77])][_0x21ac9e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21ac9e([0x61,0x75,0x74,0x6f]);}}function _0x84293e(_0x3f9de1){const _0x291898=[new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x111027=>setTimeout(_0x111027,0x64523d7^_0x3efb0f)),_0x3054cb[_0x21ac9e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196cf8=>{let _0x2ea03d=0x0;_0x163fea[_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ac9e([0x6f,0x6e])](_0x21ac9e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x383b24,_0x6ec7a9)=>{_0x6ec7a9[0x0][_0x21ac9e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2ea03d++,_0x2ea03d==(0x64c1ce3^_0x3efb0f)&&(_0x196cf8(),_0x383b24[_0x21ac9e([0x6f,0x66,0x66])]());});}))];return window[_0x21ac9e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21ac9e([0x72,0x61,0x63,0x65])](_0x291898)[_0x21ac9e([0x74,0x68,0x65,0x6e])](()=>_0x3f9de1);}async function _0x3108b3(){await _0x3054cb,_0x163fea[_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ac9e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7e989b,_0x163fea[_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c])][_0x21ac9e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7e989b,_0x163fea[_0x21ac9e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21ac9e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2090c1(){return _0x30bf92(_0x21ac9e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x164eea(_0x21ac9e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x21ac9e([0x73,0x74,0x61,0x74,0x65])]==_0x21ac9e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x615f89(){return _0x30bf92(_0x21ac9e([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 _0x851004(){return _0x30bf92(_0x21ac9e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x28dd71(_0x35af9f){const _0x170dac=_0x3a2e32();_0x163fea[_0x170dac]=_0x21ac9e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x35af9f,_0x35af9f!=_0x21ac9e([0x56,0x61,0x6c,0x69,0x64])&&_0x3108b3();}function _0x3a2e32(){const _0x2ffcbb=window[_0x21ac9e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21ac9e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21ac9e([0x6e,0x6f,0x77])]())[_0x21ac9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21ac9e([0x2e]),'');let _0x5d6f50=_0x21ac9e([0x6c]);for(let _0x954fa4=0x0;_0x954fa4<_0x2ffcbb[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x954fa4+=0x2){let _0xaeadb0=window[_0x21ac9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2ffcbb[_0x21ac9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x954fa4,_0x954fa4+0x2));_0xaeadb0>=_0x101c3b[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xaeadb0-=_0x101c3b[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5d6f50+=_0x101c3b[_0xaeadb0];}return _0x5d6f50;}function _0x1a4323(){const _0x43cfbb=_0x2947f2[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e]));if(0x3!=_0x43cfbb[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x286383(_0x43cfbb[0x1]);function _0x286383(_0x1d8b97){const _0x14efbf=_0x500ad8(_0x1d8b97);return _0x14efbf&&_0x4d54c1()?_0x14efbf:null;function _0x4d54c1(){const _0x496776=_0x14efbf[_0x21ac9e([0x6a,0x74,0x69])],_0x254290=window[_0x21ac9e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x496776[_0x21ac9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x496776[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23e9e2={..._0x14efbf,[_0x21ac9e([0x6a,0x74,0x69])]:_0x496776[_0x21ac9e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x496776[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23e9e2[_0x21ac9e([0x76,0x63])],_0x5ab81b(_0x23e9e2)==_0x254290;}}}async function _0x9e1fef(){let _0x134a72=!0x0;try{const _0x162ce6=_0x2947f2[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])](_0x21ac9e([0x2e])),[_0xeb6147,_0x16b073,_0x11b421]=_0x162ce6;return _0x2430f8(_0xeb6147),await _0x60d117(_0xeb6147,_0x16b073,_0x11b421),_0x134a72;}catch(_0xd37bba){return!0x1;}function _0x2430f8(_0x3552f2){const _0x3c01a0=_0x500ad8(_0x3552f2);_0x3c01a0&&_0x3c01a0[_0x21ac9e([0x61,0x6c,0x67])]==_0x21ac9e([0x45,0x53,0x32,0x35,0x36])||(_0x134a72=!0x1);}async function _0x60d117(_0x27c24b,_0x62a3dc,_0x5095d9){const _0x6e0922=window[_0x21ac9e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21ac9e([0x66,0x72,0x6f,0x6d])](_0x59911f(_0x5095d9),_0xbc6d0e=>_0xbc6d0e[_0x21ac9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x27e496=new window[(_0x21ac9e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21ac9e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27c24b+_0x21ac9e([0x2e])+_0x62a3dc),_0x29daa5=window[_0x21ac9e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21ac9e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29daa5)return;const _0x5a6d03=await _0x29daa5[_0x21ac9e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21ac9e([0x6a,0x77,0x6b]),_0x393004,{[_0x21ac9e([0x6e,0x61,0x6d,0x65])]:_0x21ac9e([0x45,0x43,0x44,0x53,0x41]),[_0x21ac9e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21ac9e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21ac9e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29daa5[_0x21ac9e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21ac9e([0x6e,0x61,0x6d,0x65])]:_0x21ac9e([0x45,0x43,0x44,0x53,0x41]),[_0x21ac9e([0x68,0x61,0x73,0x68])]:{[_0x21ac9e([0x6e,0x61,0x6d,0x65])]:_0x21ac9e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a6d03,_0x6e0922,_0x27e496)||(_0x134a72=!0x1);}}function _0x500ad8(_0x56e022){return _0x56e022[_0x21ac9e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21ac9e([0x65,0x79]))?JSON[_0x21ac9e([0x70,0x61,0x72,0x73,0x65])](_0x59911f(_0x56e022)):null;}function _0x59911f(_0x29a337){return window[_0x21ac9e([0x61,0x74,0x6f,0x62])](_0x29a337[_0x21ac9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21ac9e([0x2b]))[_0x21ac9e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21ac9e([0x2f])));}function _0x5ab81b(_0x27d949){let _0xbb21f1=0x1505;function _0xe2e219(_0x4c0c45){for(let _0x485176=0x0;_0x485176<_0x4c0c45[_0x21ac9e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x485176++){const _0xec537e=_0x4c0c45[_0x21ac9e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x485176);_0xbb21f1=(_0xbb21f1<<0x5)+_0xbb21f1+_0xec537e,_0xbb21f1&=_0xbb21f1;}}function _0x2cbb52(_0xfb8de7){Array[_0x21ac9e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfb8de7)?_0xfb8de7[_0x21ac9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cbb52):_0xfb8de7&&typeof _0xfb8de7==_0x21ac9e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21ac9e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfb8de7)[_0x21ac9e([0x73,0x6f,0x72,0x74])]()[_0x21ac9e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3ddbd1,_0x2562c2])=>{_0xe2e219(_0x3ddbd1),_0x2cbb52(_0x2562c2);}):_0xe2e219(window[_0x21ac9e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfb8de7));}return _0x2cbb52(_0x27d949),_0xbb21f1>>>0x0;}function _0x11fb78(_0x50c645){return _0x50c645[_0x21ac9e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21ac9e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21ac9e([0x30]));}function _0x36039a(_0x5edbea){return _0x5edbea[_0x21ac9e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21ac9e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21ac9e([0x6a,0x6f,0x69,0x6e])]('');}function _0x30bf92(_0x679aff){return _0x163fea[_0x21ac9e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21ac9e([0x68,0x61,0x73])](_0x679aff);}function _0x164eea(_0x4cf371){return _0x163fea[_0x21ac9e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21ac9e([0x67,0x65,0x74])](_0x4cf371);}function _0x7e989b(){}function _0x21ac9e(_0xdc943){return _0xdc943['map'](_0x255c27=>String['fromCharCode'](_0x255c27))['join']('');}_0x28dd71(await _0x68433e());}(this);}set['adapter'](_0x1770a8){if(this['_adapter'])throw new _0x3bf293('track-changes-adapter-already-set',this);this['_adapter']=_0x1770a8;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x56078c=!0x1,toJSON:_0x3ce449=!0x1}={}){const _0x3676fb=[];for(const _0x343e10 of this['_suggestions']['values']())_0x56078c&&!_0x343e10['isInContent']||_0x3676fb['push'](_0x343e10);return _0x3ce449?_0x3676fb['map'](_0x2cf2ea=>_0x2cf2ea['toJSON']()):_0x3676fb;}['getSuggestion'](_0x4659cd){const _0xcd364d=this['_suggestions']['get'](_0x4659cd);if(!_0xcd364d)throw new _0x3bf293('track-changes-suggestion-not-found',this);return _0xcd364d;}['hasSuggestion'](_0x32fd0d){return this['_suggestions']['has'](_0x32fd0d);}['addSuggestionData'](_0x365eb3){const {authorId:_0x493e30,id:_0x4c3f8d,originalSuggestionId:_0x3fa2b8,attributes:_0x52ab35}=_0x365eb3,[_0x14e0d8,_0x21d953]=_0x365eb3['type']['split'](':'),_0x3c9b77=this['_suggestions']['get'](_0x4c3f8d)||this['_createSuggestion'](_0x14e0d8,_0x21d953,_0x4c3f8d,_0x493e30,_0x52ab35,_0x3fa2b8);if(this['_addThreadToSuggestion'](_0x3c9b77),this['_checkSuggestionCorrectness'](_0x3c9b77,_0x14e0d8,_0x21d953||null,_0x493e30),_0x3c9b77['createdAt']=_0x365eb3['createdAt'],_0x3c9b77['_isDataLoaded']=!0x0,_0x52ab35&&_0x52ab35['@external']){const _0x31e79e=_0x52ab35['@external'],_0x338443=this['_getExternalAuthor'](_0x31e79e['authorName']);_0x3c9b77['authoredAt']=_0x31e79e['createdAt'],_0x3c9b77['author']=_0x338443,_0x3c9b77['isExternal']=!0x0;}else _0x3c9b77['authoredAt']=_0x365eb3['createdAt'];switch(_0x365eb3['data']&&(_0x3c9b77['data']=_0x365eb3['data']),_0x365eb3['attributes']&&(_0x3c9b77['attributes']=_0x365eb3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3c9b77['_saved']=!0x0),this['_suggestionState']['get'](_0x3c9b77)){case'notReady':this['_suggestionState']['set'](_0x3c9b77,'dataReady');break;case'markerReady':_0x3c9b77['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3c9b77])),this['_refreshSuggestionsChain'](new Set([_0x3c9b77])),this['_suggestionState']['set'](_0x3c9b77,'ready'),this['fire']('suggestionLoaded',_0x3c9b77)):this['_suggestionState']['set'](_0x3c9b77,'removed');}return _0x3c9b77;}['acceptSuggestion'](_0x3b61a4){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x523232 of _0x3b61a4['getAllAdjacentSuggestions']())_0x523232['accept']();});});}['discardSuggestion'](_0x2687a3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1ffa9d of _0x2687a3['getAllAdjacentSuggestions']())_0x1ffa9d['discard']();});});}['enableCommand'](_0x2f2aa9,_0x3c6b97){const _0x117ec1=this['editor']['commands']['get'](_0x2f2aa9);if(!_0x117ec1)throw new _0x3bf293('track-changes-command-not-found',this,{'commandName':_0x2f2aa9});if(this['_enabledCommands']['has'](_0x117ec1))throw new _0x3bf293('track-changes-enable-command-twice',this,{'commandName':_0x2f2aa9});this['_enabledCommands']['add'](_0x117ec1),_0x3c6b97&&_0x117ec1['on']('execute',(_0x148c6c,_0x424681)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x424681['length']>0x0&&_0x424681[_0x424681['length']-0x1]&&_0x424681[_0x424681['length']-0x1]['forceDefaultExecution']?_0x424681['pop']():(_0x148c6c['return']=_0x3c6b97((..._0x2bc981)=>_0x117ec1['execute'](..._0x2bc981,{'forceDefaultExecution':!0x0}),..._0x424681),_0x148c6c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x34749d){let _0x30dd3b,_0x4913d3;const _0x15ce59=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x30dd3b=_0x34749d();}catch(_0x5d66ae){_0x4913d3=_0x5d66ae;}return _0x15ce59||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4913d3&&_0x3bf293['rethrowUnexpectedError'](_0x4913d3,this),_0x30dd3b;}['markInsertion'](_0x267bec,_0x12a1d1=null,_0x12b0c2={}){if(_0x267bec['isCollapsed'])return null;const _0x26e1bf=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x12b0c2['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1613ea,meta:_0x5004e8}of this['_findSuggestions'](_0x267bec,'insertion'))if(_0x5004e8['isOwn']){if(!_0x5004e8['isNextTo']){if(_0x5004e8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1613ea,_0x12b0c2))continue;return _0x1613ea;}if(Xt(_0x1613ea,_0x12b0c2))return _0x1613ea;this['_breakSuggestionMarker'](_0x1613ea,_0x267bec['start'],_0x267bec['end']);break;}if(_0x12a1d1==_0x1613ea['subType']&&Xt(_0x1613ea,_0x12b0c2)){const _0x91a9dc=_0x1613ea['getFirstRange']();return _0x91a9dc['start']['isEqual'](_0x267bec['end'])?this['_setSuggestionRange'](_0x1613ea,this['_model']['createRange'](_0x267bec['start'],_0x91a9dc['end'])):this['_setSuggestionRange'](_0x1613ea,this['_model']['createRange'](_0x91a9dc['start'],_0x267bec['end'])),_0x1613ea;}}const _0x3a6501=_0x147536(),_0x3714b0=_0x26e1bf['id'],_0x13414f=_0x12a1d1?'insertion:'+_0x12a1d1:'insertion',_0x422fba=this['_setSuggestionData']({'id':_0x3a6501,'type':_0x13414f,'createdAt':new Date(),'authorId':_0x3714b0,'attributes':_0x12b0c2});return this['_addSuggestionMarker'](_0x13414f,_0x3a6501,_0x3714b0,_0x267bec),_0x422fba;}['markMultiRangeInsertion'](_0xfdef8a,_0x1e45cc='multi',_0xc6fcdd={}){const _0x3dec98=this['editor']['plugins']['get']('Users')['me'],_0x4bbcda=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1e45cc,'join');this['_trackingSessionId']&&(_0xc6fcdd['trackingSessionId']=this['_trackingSessionId']);for(const _0x2ca147 of this['getSuggestions']())if(_0x2ca147['author']['id']==_0x3dec98['id']&&'insertion'==_0x2ca147['type']&&_0x2ca147['subType']==_0x1e45cc&&Xt(_0x2ca147,_0xc6fcdd)&&(_0x4bbcda(_0x2ca147['getRanges'](),_0xfdef8a)||_0x4bbcda(_0xfdef8a,_0x2ca147['getRanges']()))){for(const _0x25567f of _0xfdef8a)_0x2ca147['addRange'](_0x25567f);return _0x2ca147;}for(const {suggestion:_0x5ad801,meta:_0x4e9e25}of this['_findSuggestions'](_0xfdef8a,'insertion')){if(!_0x4e9e25['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4e9e25['containsRangeInObject'])continue;if(!Xt(_0x5ad801,_0xc6fcdd))continue;let _0x16b7c4=!0x0;for(const _0x5b36dd of _0x5ad801['getRanges']())for(const _0x512f29 of _0xfdef8a)if(!_0x5b36dd['containsRange'](_0x512f29)){_0x16b7c4=!0x1;break;}if(_0x16b7c4)return _0x5ad801;}const _0x5b58ca=_0x147536(),_0x4495dc=_0x3dec98['id'],_0x166edf='insertion:'+_0x1e45cc,_0x1a2709=this['_setSuggestionData']({'id':_0x5b58ca,'type':_0x166edf,'createdAt':new Date(),'authorId':_0x4495dc,'attributes':_0xc6fcdd});for(const _0x5c8aaf of _0xfdef8a)this['_addSuggestionMarker'](_0x166edf,_0x5b58ca,_0x4495dc,_0x5c8aaf,o['getMultiRangeId']());return _0x1a2709;}['markInlineFormat'](_0x1e1877,_0x54bdf2,_0x2b635a=null,_0xc51c6f={}){if(_0x2b635a=_0x2b635a||Kt(_0x54bdf2),_0x1e1877['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0xc51c6f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4c2575=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b635a,'accept');return this['forceDefaultExecution'](()=>_0x4c2575([_0x1e1877],_0x54bdf2,_0xc51c6f)),null;}const _0x2b0e09=this['editor']['plugins']['get']('Users')['me'],_0x488eaf=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x22f1f1,meta:_0x28364b}of this['_findSuggestions'](_0x1e1877,'insertion'))_0x28364b['isOwn']&&!_0x28364b['isInsideObject']&&_0x488eaf['push'](..._0x22f1f1['getRanges']());}const _0x5dd9aa=function(_0x46b306,_0x1f1685){const _0x829490=[];for(const _0x578ece of _0x1f1685){const _0x580fa6=_0x46b306['getIntersection'](_0x578ece);_0x580fa6&&_0x829490['push'](_0x580fa6);}return _0x829490;}(_0x1e1877,_0x488eaf),_0x41f26a=function(_0x4bc1f4,_0x4ff136){const _0x113662=[_0x4bc1f4];for(const _0x265261 of _0x4ff136){let _0x4d91e8=0x0;for(;_0x4d91e8<_0x113662['length'];){const _0x56170c=_0x113662[_0x4d91e8]['getDifference'](_0x265261);_0x113662['splice'](_0x4d91e8,0x1,..._0x56170c),_0x4d91e8+=_0x56170c['length'];}}return _0x113662;}(_0x1e1877,_0x488eaf);_0x5dd9aa['length']&&this['_model']['change'](()=>{for(const _0xe4889d of _0x5dd9aa){const _0x3a2af2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b635a,'accept');this['forceDefaultExecution'](()=>_0x3a2af2([_0xe4889d],_0x54bdf2,_0xc51c6f));}});for(const _0x5afd43 of _0x41f26a){let _0x303de1=null,_0x1fed1a=_0x5afd43['start'],_0x28b41d=_0x5afd43['end'];for(const {suggestion:_0x340185,meta:_0x24ee03}of this['_findSuggestions'](_0x5afd43,'formatInline')){if(!_0x24ee03['isOwn'])continue;if(_0x340185['subType']!=_0x2b635a)continue;if(!Xt(_0x340185,_0xc51c6f))continue;const _0x26eda1=_0x340185['getFirstRange']();if(_0x26eda1['containsRange'](_0x5afd43,!0x0))return null;_0x1fed1a=_0x1fed1a['isBefore'](_0x26eda1['start'])?_0x1fed1a:_0x26eda1['start'],_0x28b41d=_0x28b41d['isAfter'](_0x26eda1['end'])?_0x28b41d:_0x26eda1['end'],_0x303de1?_0x26eda1['start']['isBefore'](_0x303de1['getFirstRange']()['start'])?(_0x303de1['removeMarkers'](),_0x303de1=_0x340185):_0x340185['removeMarkers']():_0x303de1=_0x340185;}const _0x50ae13=this['_model']['createRange'](_0x1fed1a,_0x28b41d);if(_0x303de1)this['_setSuggestionRange'](_0x303de1,_0x50ae13);else{const _0x56a034=_0x147536(),_0x377cd5=_0x2b0e09['id'];this['_setSuggestionData']({'id':_0x56a034,'type':'formatInline:'+_0x2b635a,'data':_0x54bdf2,'createdAt':new Date(),'authorId':_0x377cd5,'attributes':_0xc51c6f}),this['_addSuggestionMarker']('formatInline:'+_0x2b635a,_0x56a034,_0x377cd5,_0x50ae13);}}return null;}['markBlockFormat'](_0x1a7c27,_0x5ea497,_0x23973b=[],_0x383d51=null,_0x3ebf49={}){_0x5ea497['formatGroupId']||(_0x5ea497['formatGroupId']=_0x5ea497['commandName']),_0x5ea497['multipleBlocks']=_0x1a7c27['is']('range'),_0x383d51=_0x383d51||Kt(_0x5ea497);const _0x2ff65d=_0x23973b['map'](_0x517873=>zt(_0x517873,this['_model'])),_0x44048b=_0x1a7c27['is']('range')?_0x1a7c27:zt(_0x1a7c27,this['_model']);if(this['_trackingSessionId']&&(_0x3ebf49['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xdcb41e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x383d51,'accept');return this['forceDefaultExecution'](()=>_0xdcb41e([_0x44048b],_0x5ea497,_0x3ebf49)),null;}_0x2ff65d['push'](_0x44048b);let _0x2c3209=!0x0;for(const _0x1e3154 of _0x2ff65d)if(!this['_rangeIsInLocalUserInsertion'](_0x1e3154)){_0x2c3209=!0x1;break;}if(_0x2c3209&&'always'!==this['_trackFormatChanges']){const _0x2666d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x383d51,'accept');return this['forceDefaultExecution'](()=>_0x2666d4([_0x44048b],_0x5ea497,_0x3ebf49)),null;}let _0x54c7fc=null,_0xd91bf7=_0x44048b['start'],_0x3ec6b6=_0x44048b['end'];for(const {suggestion:_0x1ba8be,meta:_0x515a1c}of this['_findSuggestions'](_0x44048b,'formatBlock')){if(!_0x515a1c['isOwn'])continue;if(_0x515a1c['isNextTo']||_0x515a1c['containsRangeInObject']||_0x515a1c['isInsideObject'])continue;if(_0x1ba8be['data']['formatGroupId']!=_0x5ea497['formatGroupId'])continue;if(!Xt(_0x1ba8be,_0x3ebf49))continue;const _0x4bb180=_0x1ba8be['getFirstRange']();if(_0x1ba8be['subType']==_0x383d51){if(_0x4bb180['containsRange'](_0x44048b,!0x0))return null;_0xd91bf7=_0xd91bf7['isBefore'](_0x4bb180['start'])?_0xd91bf7:_0x4bb180['start'],_0x3ec6b6=_0x3ec6b6['isAfter'](_0x4bb180['end'])?_0x3ec6b6:_0x4bb180['end'],_0x54c7fc?_0x4bb180['start']['isBefore'](_0x54c7fc['getFirstRange']()['start'])?(_0x54c7fc['removeMarkers'](),_0x54c7fc=_0x1ba8be):_0x1ba8be['removeMarkers']():_0x54c7fc=_0x1ba8be;}else{const _0x354b84=_0x44048b['getIntersection'](_0x4bb180);this['_cutOutSuggestionMarker'](_0x1ba8be,_0x354b84);}}const _0x559886=this['editor']['plugins']['get']('Users')['me'],_0x42459b=_0x147536(),_0x64dfc8=_0x559886['id'];if(_0x54c7fc)return this['_setSuggestionRange'](_0x54c7fc,this['_model']['createRange'](_0xd91bf7,_0x3ec6b6)),_0x54c7fc;{const _0x90078f=this['_setSuggestionData']({'id':_0x42459b,'type':'formatBlock:'+_0x383d51,'data':_0x5ea497,'createdAt':new Date(),'authorId':_0x64dfc8,'attributes':_0x3ebf49});return this['_addSuggestionMarker']('formatBlock:'+_0x383d51,_0x42459b,_0x64dfc8,this['_model']['createRange'](_0xd91bf7,_0x3ec6b6)),_0x90078f;}}['markMultiRangeBlockFormat'](_0x175c35,_0x232e32,_0x444ce4=[],_0x502b90=null,_0x19cd2a={}){_0x232e32['formatGroupId']||(_0x232e32['formatGroupId']=_0x232e32['commandName']);const _0x229199=_0x175c35[0x0];_0x232e32['multipleBlocks']=_0x229199['is']('range'),_0x502b90=_0x502b90||Kt(_0x232e32);const _0x4a653a=_0x444ce4['map'](_0x63feaf=>zt(_0x63feaf,this['_model'])),_0xf3c31=_0x229199['is']('range')?_0x175c35:_0x175c35['map'](_0x380759=>zt(_0x380759,this['_model']));if(this['_trackingSessionId']&&(_0x19cd2a['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x53af88=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x502b90,'accept');return this['forceDefaultExecution'](()=>_0x53af88(_0xf3c31,_0x232e32,_0x19cd2a)),null;}_0x4a653a['push'](..._0xf3c31);let _0x31dd9a=!0x0;for(const _0x4a9904 of _0x4a653a)if(!this['_rangeIsInLocalUserInsertion'](_0x4a9904)){_0x31dd9a=!0x1;break;}if(_0x31dd9a&&'always'!==this['_trackFormatChanges']){const _0x19344c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x502b90,'accept');return this['forceDefaultExecution'](()=>_0x19344c(_0xf3c31,_0x232e32,_0x19cd2a)),null;}const _0x315da8=this['editor']['plugins']['get']('Users')['me'];for(const _0x24997e of this['getSuggestions']()){if(_0x24997e['author']['id']!=_0x315da8['id'])continue;if('formatBlock'!=_0x24997e['type']||_0x24997e['data']['formatGroupId']!=_0x232e32['formatGroupId'])continue;if(!Xt(_0x24997e,_0x19cd2a))continue;const _0x23db89=_0x24997e['subType']==_0x502b90;for(let _0x3d5be5=0x0;_0x3d5be5<_0xf3c31['length'];_0x3d5be5++){const _0x1f97ce=_0xf3c31[_0x3d5be5];for(const _0x3d53cc of _0x24997e['getMarkers']()){const _0x52ded4=_0x3d53cc['getRange']();if(_0x1f97ce['isEqual'](_0x52ded4)){_0x23db89?(_0xf3c31['splice'](_0x3d5be5,0x1),_0x3d5be5--):_0x24997e['removeMarker'](_0x3d53cc['name']);break;}}}}if(0x0==_0xf3c31['length'])return null;const _0x3165c0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x502b90,'join');for(const _0x348d7 of this['getSuggestions']())if(_0x348d7['author']['id']==_0x315da8['id']&&'formatBlock'==_0x348d7['type']&&_0x348d7['data']['formatGroupId']==_0x232e32['formatGroupId']&&_0x348d7['subType']==_0x502b90&&Xt(_0x348d7,_0x19cd2a)&&(_0x3165c0(_0x348d7['getRanges'](),_0xf3c31)||_0x3165c0(_0xf3c31,_0x348d7['getRanges']()))){for(const _0xb78c5a of _0xf3c31)_0x348d7['addRange'](_0xb78c5a);return _0x348d7;}const _0xa8ab15=_0x147536(),_0x304c8b=_0x315da8['id'],_0x21c324='formatBlock:'+_0x502b90,_0x4d073d=this['_setSuggestionData']({'id':_0xa8ab15,'type':_0x21c324,'data':_0x232e32,'createdAt':new Date(),'authorId':_0x304c8b,'attributes':_0x19cd2a});for(const _0x3319df of _0xf3c31)this['_addSuggestionMarker'](_0x21c324,_0xa8ab15,_0x304c8b,_0x3319df,o['getMultiRangeId']());return _0x4d073d;}['markDeletion'](_0x1bfe80,_0x475d3f=null,_0x2952dd={}){if(_0x1bfe80['isCollapsed'])return null;const _0x2ac5df=this['editor']['plugins']['get']('Users')['me'],_0x1e5e13=new _0x3a5e87(_0x1bfe80['start'],_0x1bfe80['end']);this['_trackingSessionId']&&(_0x2952dd['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x18688c,meta:_0x3112c5}of this['_findSuggestions'](_0x1e5e13,'insertion'))if(_0x3112c5['isOwn']&&!_0x3112c5['isNextTo']){if(_0x18688c['isMultiRange']){const _0x400d89=_0x18688c['getRanges']()['filter'](_0x3252fd=>'$graveyard'!=_0x3252fd['root']['rootName']);_0x400d89['every'](_0x5a497b=>_0x1e5e13['containsRange'](_0x5a497b,!0x0))&&_0x18688c['discard']();if(_0x400d89['some'](_0x2bba2b=>_0x2bba2b['containsRange'](_0x1e5e13,!0x0))){const _0x2c615b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x475d3f,'accept');return this['forceDefaultExecution'](()=>_0x2c615b([_0x1e5e13],null,_0x2952dd)),null;}}else{const _0x131962=_0x1e5e13['getIntersection'](_0x18688c['getFirstRange']());null!==_0x131962&&_0x18688c['_onDiscard']([_0x131962],null,_0x2952dd);}}if(_0x1e5e13['detach'](),_0x1e5e13['isCollapsed']||'$graveyard'==_0x1e5e13['root']['rootName'])return null;let _0xa98217=null,_0x3677eb=_0x1e5e13['start'],_0xcfe56b=_0x1e5e13['end'];const _0x3b44cb=this['_findSuggestions'](_0x1e5e13,'deletion');for(const {suggestion:_0x3ce868,meta:_0x434a65}of _0x3b44cb){const _0x1aad77=this['_model']['createRange'](_0x3677eb,_0xcfe56b);if(_0x434a65['isOwn']&&(this['_mergeNestedSuggestions']||!_0x434a65['containsRangeInObject']&&!_0x434a65['isInsideObject'])){if(_0x3ce868['isMultiRange']){if(!Xt(_0x3ce868,_0x2952dd))continue;let _0x31957e=!0x0;for(const _0x32096d of _0x3ce868['getRanges']()){if(_0x32096d['containsRange'](_0x1aad77,!0x0))return _0x3ce868;_0x1aad77['containsRange'](_0x32096d)||(_0x31957e=!0x1);}_0x31957e&&_0x3ce868['discard']();}else{const _0x3b0eaa=_0x3ce868['getFirstRange']();if(_0x3b0eaa['containsRange'](_0x1aad77,!0x0))return _0x3ce868;if(!Xt(_0x3ce868,_0x2952dd)){_0x1aad77['containsRange'](_0x3b0eaa)?_0x3ce868['removeMarkers']():_0x3b0eaa['containsPosition'](_0x3677eb)?_0x3677eb=_0x3b0eaa['end']:_0x3b0eaa['containsPosition'](_0xcfe56b)&&(_0xcfe56b=_0x3b0eaa['start']);continue;}_0x3677eb=_0x3677eb['isBefore'](_0x3b0eaa['start'])?_0x3677eb:_0x3b0eaa['start'],_0xcfe56b=_0xcfe56b['isAfter'](_0x3b0eaa['end'])?_0xcfe56b:_0x3b0eaa['end'],_0x2952dd=Object['assign']({},_0x3ce868['attributes']),_0xa98217?_0x3b0eaa['start']['isBefore'](_0xa98217['getFirstRange']()['start'])?(_0xa98217['removeMarkers'](),_0xa98217=_0x3ce868):_0x3ce868['removeMarkers']():_0xa98217=_0x3ce868;}}}if(_0xa98217)return this['_setSuggestionRange'](_0xa98217,this['_model']['createRange'](_0x3677eb,_0xcfe56b)),_0xa98217;{const _0x39d6e9=_0x147536(),_0x297b44=this['_model']['createRange'](_0x3677eb,_0xcfe56b),_0x35c736=_0x2ac5df['id'],_0x23ccb0=_0x475d3f?'deletion:'+_0x475d3f:'deletion',_0x11ce0e=this['_setSuggestionData']({'id':_0x39d6e9,'type':_0x23ccb0,'createdAt':new Date(),'authorId':_0x35c736,'attributes':_0x2952dd});return this['_addSuggestionMarker'](_0x23ccb0,_0x39d6e9,_0x35c736,_0x297b44),_0x11ce0e;}}['markMultiRangeDeletion'](_0x2a0809,_0x538360='multi',_0x5c27d6={}){const _0x54c8d3=this['editor']['plugins']['get']('Users')['me'],_0x194045=_0x2a0809['map'](_0x5753eb=>new _0x3a5e87(_0x5753eb['start'],_0x5753eb['end'])),_0x2fa9e1=new Set();this['_trackingSessionId']&&(_0x5c27d6['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x1aaf1f,meta:_0x54609d}of this['_findSuggestions'](_0x194045,'insertion'))_0x54609d['isOwn']&&!_0x54609d['isNextTo']&&_0x2fa9e1['add'](_0x1aaf1f);for(const _0x30fa06 of _0x2fa9e1)if(_0x30fa06['isMultiRange']){const _0x448d8e=_0x30fa06['getRanges']();(!_0x30fa06['attributes']||!_0x30fa06['attributes']['skipNestingCheck'])&&(_0x448d8e['every'](_0x1cdd96=>_0x194045['some'](_0x4c087d=>_0x4c087d['containsRange'](_0x1cdd96,!0x0)))&&_0x30fa06['discard']());if(_0x194045['every'](_0x9e98b0=>_0x448d8e['some'](_0x12c849=>_0x12c849['containsRange'](_0x9e98b0,!0x0)))){const _0x2b00da=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538360,'accept');return this['forceDefaultExecution'](()=>_0x2b00da(_0x2a0809,null,_0x5c27d6)),null;}}else{const _0x4696db=_0x30fa06['getFirstRange']();_0x194045['some'](_0x30a0c6=>_0x30a0c6['containsRange'](_0x4696db,!0x0))&&_0x30fa06['discard']();if(_0x194045['every'](_0x306d2a=>_0x4696db['containsRange'](_0x306d2a,!0x0))){const _0x7f517e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538360,'accept');return this['forceDefaultExecution'](()=>_0x7f517e(_0x194045,null,_0x5c27d6)),null;}}const _0x54bfdb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538360,'join');let _0x58bcb6=null;for(const _0x414119 of this['getSuggestions']())if(_0x414119['author']['id']==_0x54c8d3['id']&&_0x414119['isInContent']&&'deletion'==_0x414119['type']&&_0x414119['subType']==_0x538360&&Xt(_0x414119,_0x5c27d6)&&(_0x54bfdb(_0x414119['getRanges'](),_0x194045)||_0x54bfdb(_0x194045,_0x414119['getRanges']()))){if(_0x58bcb6){if(_0x414119['commentThread']&&_0x414119['commentThread']['length'])continue;for(const _0x2d5035 of _0x414119['getRanges']())_0x58bcb6['isIntersectingWithRange'](_0x2d5035)||_0x58bcb6['addRange'](_0x2d5035);_0x414119['removeMarkers']();}else{_0x58bcb6=_0x414119;for(const _0x46ada8 of _0x194045)_0x414119['isIntersectingWithRange'](_0x46ada8)||_0x414119['addRange'](_0x46ada8);}}if(_0x58bcb6)return _0x58bcb6;_0x2fa9e1['clear']();for(const {suggestion:_0x29b788,meta:_0x46b757}of this['_findSuggestions'](_0x194045,'deletion'))_0x46b757['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46b757['containsRangeInObject']&&!_0x46b757['isInsideObject'])&&Xt(_0x29b788,_0x5c27d6)&&_0x2fa9e1['add'](_0x29b788);for(const _0x5a5fdf of _0x2fa9e1){const _0x57ea14=_0x5a5fdf['getRanges']();if(!_0x5c27d6||!_0x5c27d6['skipNestingCheck']){if(_0x194045['every'](_0x588936=>_0x57ea14['some'](_0x1385d5=>_0x1385d5['containsRange'](_0x588936,!0x0))))return _0x5a5fdf;}(!_0x5a5fdf['attributes']||!_0x5a5fdf['attributes']['skipNestingCheck'])&&(_0x57ea14['every'](_0x487f7c=>_0x194045['some'](_0x559fc2=>_0x559fc2['containsRange'](_0x487f7c,!0x0)))&&_0x5a5fdf['discard']());}const _0x2fe5be=_0x147536(),_0x4d6ebf=_0x54c8d3['id'],_0x128214='deletion:'+_0x538360,_0x2f3c14=this['_setSuggestionData']({'id':_0x2fe5be,'type':_0x128214,'createdAt':new Date(),'authorId':_0x4d6ebf,'attributes':_0x5c27d6});for(const _0x3c746a of _0x194045)_0x3c746a['detach'](),_0x3c746a['isCollapsed']||'$graveyard'==_0x3c746a['root']['rootName']||this['_addSuggestionMarker'](_0x128214,_0x2fe5be,_0x4d6ebf,_0x3c746a,o['getMultiRangeId']());return _0x2f3c14;}['markAttributeChange'](_0x250972,_0x65cb46,_0x3a8666,_0x4dd2de,_0x21b46e){if(_0x250972['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x556583=this['editor']['plugins']['get']('Users')['me']['id'],_0x5649e6=Array['from'](this['_suggestions']['values']())['filter'](_0x454f49=>'attribute'==_0x454f49['type']&&_0x454f49['data']['key']==_0x65cb46&&_0x454f49['isIntersectingWithRange'](_0x250972));if(this['_trackingSessionId']&&(_0x21b46e['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x11d016=this['_findSuggestions'](_0x250972,'insertion')['filter'](({meta:_0x326158})=>_0x326158['isOwn']&&!_0x326158['isInsideObject']&&!_0x326158['isNextTo'])['map'](({suggestion:_0x3a3b37})=>_0x3a3b37);_0x5649e6['unshift'](..._0x11d016);}const _0x37eb28=new Map([[_0x250972,_0x3a8666]]);for(const _0x341753 of _0x5649e6){const _0x547274='attribute'==_0x341753['type']?_0x341753['data']['oldValue']:void 0x0,_0x58dcaa=_0x341753['getFirstRange'](),_0x41a9c1=Array['from'](_0x37eb28['keys']())['find'](_0x292c52=>_0x292c52['isIntersecting'](_0x58dcaa));if(!_0x41a9c1)continue;const _0x422f2d=_0x41a9c1['getDifference'](_0x58dcaa);this['_isBlockAttribute'](_0x65cb46)&&'insertion'==_0x341753['type']&&0x0!=_0x422f2d['length']||(_0x37eb28['delete'](_0x41a9c1),_0x422f2d['forEach'](_0x33cbac=>{_0x37eb28['set'](_0x33cbac,_0x3a8666);}),'insertion'!=_0x341753['type']&&_0x547274!=_0x4dd2de&&_0x37eb28['set'](_0x41a9c1['getIntersection'](_0x58dcaa),_0x547274));}const _0x513bbd=[];for(const [_0x2bfc36,_0x3fcc81]of _0x37eb28){const _0xc286de=_0x147536(),_0x5b4f4f={'key':_0x65cb46,'oldValue':_0x3fcc81,'newValue':_0x4dd2de};_0x65cb46['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':_0x65cb46});const _0x9ee8b8=('attribute:'+(_0x65cb46+'|'+Kt({'newValue':_0x4dd2de})))['substring'](0x0,0x3c),_0x114f80=this['_setSuggestionData']({'id':_0xc286de,'type':_0x9ee8b8,'data':_0x5b4f4f,'createdAt':new Date(),'authorId':_0x556583,'attributes':_0x21b46e});_0x513bbd['push'](_0x114f80),this['_addSuggestionMarker'](_0x9ee8b8,_0xc286de,_0x556583,_0x2bfc36);}return _0x513bbd;}['enableDefaultAttributesIntegration'](_0x4fde28){this['enableCommand'](_0x4fde28,(_0x42426a,..._0x46cdfb)=>{this['_recordAttributeChanges'](()=>{_0x42426a(..._0x46cdfb);});});}['registerBlockAttribute'](_0x298102){this['_blockAttributeKeys']['add'](_0x298102);}['registerInlineAttribute'](_0xf02cc0){this['_inlineAttributeKeys']['add'](_0xf02cc0);}['startTrackingSession'](_0x4dbf78){return this['_trackingSessionId']=void 0x0!==_0x4dbf78?_0x4dbf78:_0x147536(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1b7cf4){return'attribute'==_0x1b7cf4['type']?_0x1b7cf4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x35275a,_0x5ee5c1){const _0x27805d=_0x35275a['getFirstMarker']();this['_model']['change'](_0x1af52b=>{_0x1af52b['updateMarker'](_0x27805d,{'range':_0x5ee5c1});});}['_addThreadToSuggestion'](_0x11d5b1){const _0x2672e1=_0x11d5b1['id'],_0x45c14d=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2672e1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x45c14d,'threadId':_0x2672e1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x340ee6=this['_commentsRepository']['getCommentThread'](_0x2672e1);_0x340ee6['unbind']('isRemovable'),_0x340ee6['isRemovable']=!0x1,_0x11d5b1['commentThread']=_0x340ee6;}['_checkSuggestionCorrectness'](_0x19c19c,_0x61229b,_0x2dacfa,_0x288f02){if(_0x19c19c['type']!=_0x61229b||_0x19c19c['subType']!=_0x2dacfa||_0x19c19c['creator']['id']!=_0x288f02)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3bf293('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xed16cc,_0x53a322){const _0x3f3745=_0xed16cc['getFirstRange']();if(_0x53a322['isEqual'](_0x3f3745))_0xed16cc['removeMarkers']();else{if(_0x3f3745['containsRange'](_0x53a322)){const _0xe8686c=this['_model']['createPositionAt'](_0x53a322['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xed16cc,this['_model']['createRange'](_0x3f3745['start'],_0xe8686c));const _0x4341c8=_0x147536(),_0x2b9d1d=_0xed16cc['creator']['id'],_0x28abc6=_0xed16cc['type']+':'+_0xed16cc['subType'];this['_setSuggestionData']({'id':_0x4341c8,'type':_0x28abc6,'createdAt':new Date(),'authorId':_0x2b9d1d,'data':_0xed16cc['data'],'attributes':_0xed16cc['attributes']});const _0x56ca64=this['_model']['createPositionAt'](_0x53a322['end']['parent'],'after'),_0x555098=this['_model']['createRange'](_0x56ca64,_0x3f3745['end']);this['_addSuggestionMarker'](_0x28abc6,_0x4341c8,_0x2b9d1d,_0x555098);}else{if(_0x3f3745['containsPosition'](_0x53a322['start'])){const _0xfed190=this['_model']['createPositionAt'](_0x53a322['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xed16cc,this['_model']['createRange'](_0x3f3745['start'],_0xfed190));}else{const _0x5040e8=this['_model']['createPositionAt'](_0x53a322['end']['parent'],'after');this['_setSuggestionRange'](_0xed16cc,this['_model']['createRange'](_0x5040e8,_0x3f3745['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x67a98e){for(const {suggestion:_0x2072a8,meta:_0x43206f}of this['_findSuggestions'](_0x67a98e,'insertion')){if(!_0x43206f['isOwn'])continue;const _0x28b99a=_0x2072a8['getRanges']();for(const _0x5b4af9 of _0x28b99a)if(!_0x67a98e['getDifference'](_0x5b4af9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x103db7){const _0xe65919=this['editor']['plugins']['get']('Users')['getUser'](_0x103db7);if(!_0xe65919)throw new _0x3bf293('track-changes-user-not-found',this);return _0xe65919;}['_getExternalAuthor'](_0x5cde19){const _0x513464=this['editor']['plugins']['get']('Users'),_0x46d4d2=_0x39cd73('external:'+_0x5cde19),_0x41f5c2=_0x513464['getUser'](_0x46d4d2);return _0x41f5c2||_0x513464['addUser']({'id':_0x46d4d2,'name':_0x5cde19});}['_createSuggestion'](_0x5c1a23,_0x134fca,_0x352144,_0x1df589,_0x5cc4e2,_0x17a195){const _0x51006f=this['_getAuthorFromId'](_0x1df589),_0x628a0a=this['_suggestionFactory']['buildSuggestion'](_0x5c1a23,_0x134fca,_0x352144,_0x51006f,_0x5cc4e2,_0x4e7cb9=>{this['_updateSuggestionData'](_0x352144,{'attributes':_0x4e7cb9});const _0x261619=this['getSuggestion'](_0x352144);this['_joinWithAdjacentSuggestions'](new Set([_0x261619])),this['_refreshSuggestionsChain'](new Set([_0x261619]));},_0x17a195);return this['listenTo'](_0x628a0a,'accept',()=>{this['_updateSuggestionData'](_0x352144,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x628a0a,'discard',()=>{this['_updateSuggestionData'](_0x352144,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x352144,_0x628a0a),this['_suggestionState']['set'](_0x628a0a,'notReady'),_0x628a0a;}['_splitMarkerName'](_0x1ed19e){const _0x23fa78=_0x1ed19e['split'](':');return{'group':_0x23fa78[0x0],'type':_0x23fa78[0x1],'subType':_0x23fa78['length']>=0x5?_0x23fa78[0x2]:null,'id':_0x23fa78['length']<0x5?_0x23fa78[0x2]:_0x23fa78[0x3],'authorId':_0x23fa78['length']<0x5?_0x23fa78[0x3]:_0x23fa78[0x4],'markerCount':0x6==_0x23fa78['length']?_0x23fa78[0x5]:null};}['_breakSuggestionMarker'](_0xba9506,_0x1e332e,_0x2516bd){const _0x3e9df3=_0xba9506['getFirstRange'](),_0x13328a=_0x3e9df3['start'],_0xff918f=_0x3e9df3['end'];this['_setSuggestionRange'](_0xba9506,this['_model']['createRange'](_0x13328a,_0x1e332e));const _0x6fb33f=_0x147536(),_0x42e21f=_0xba9506['creator']['id'],_0x1095a5=_0xba9506['type']+(_0xba9506['subType']?':'+_0xba9506['subType']:'');this['_setSuggestionData']({'id':_0x6fb33f,'type':_0x1095a5,'createdAt':new Date(),'authorId':_0x42e21f,'originalSuggestionId':_0xba9506['_originalSuggestionId']||_0xba9506['id'],'attributes':_0xba9506['attributes'],'data':_0xba9506['data']});const _0x23ead6=this['_getAttributeKey'](_0xba9506);('formatBlock'==_0xba9506['type']||_0x23ead6&&this['_isBlockAttribute'](_0x23ead6))&&(_0x2516bd=this['_model']['createPositionBefore'](_0x2516bd['parent'])),this['_addSuggestionMarker'](_0x1095a5,_0x6fb33f,_0x42e21f,this['_model']['createRange'](_0x2516bd,_0xff918f));}['_findSuggestions'](_0x2af7d5,_0x543bbf=null){const _0x57ebaa=[],_0x42bbbc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2af7d5)||(_0x2af7d5=[_0x2af7d5]);for(const _0x496f92 of this['getSuggestions']()){if(!_0x496f92['isInContent'])continue;if(_0x543bbf&&_0x496f92['type']!=_0x543bbf)continue;let _0x4eb353=!0x1;for(const _0x277252 of _0x496f92['getRanges']()){for(const _0x11eecd of _0x2af7d5){const _0x201adf=_0x11eecd['start']['isEqual'](_0x277252['end'])||_0x11eecd['end']['isEqual'](_0x277252['start']);if(_0x201adf||_0x11eecd['getIntersection'](_0x277252)){const _0x100125=_0x11eecd['containsRange'](_0x277252)&&Gt(this['_model']['schema'],_0x277252['start'],_0x11eecd),_0x3890b4=_0x277252['containsRange'](_0x11eecd)&&Gt(this['_model']['schema'],_0x11eecd['start'],_0x277252);_0x57ebaa['push']({'suggestion':_0x496f92,'meta':{'isOwn':_0x42bbbc==_0x496f92['author'],'isNextTo':_0x201adf,'isInsideObject':_0x100125,'containsRangeInObject':_0x3890b4}}),_0x4eb353=!0x0;break;}}if(_0x4eb353)break;}}return _0x57ebaa;}['_addSuggestionMarker'](_0x4beee0,_0x5acf3d,_0x45e900,_0x3eba63,_0x948f5f){this['_model']['change'](_0x2597a9=>{let _0x4abbb4='suggestion:'+_0x4beee0+':'+_0x5acf3d+':'+_0x45e900;_0x948f5f&&(_0x4abbb4=_0x4abbb4+':'+_0x948f5f),_0x2597a9['addMarker'](_0x4abbb4,{'range':_0x3eba63,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x22a0c7){const _0x8db8d5=_0x22a0c7['previous'],_0xcd6bc6=_0x22a0c7['next'];_0x22a0c7['previous']=null,_0x22a0c7['next']=null,null!=_0x8db8d5&&_0x8db8d5['next']==_0x22a0c7&&(_0x8db8d5['next']=_0xcd6bc6),null!=_0xcd6bc6&&_0xcd6bc6['previous']==_0x22a0c7&&(_0xcd6bc6['previous']=_0x8db8d5),'ready'==this['_suggestionState']['get'](_0x22a0c7)&&(this['_suggestionState']['set'](_0x22a0c7,'removed'),this['fire']('suggestionUnloaded',_0x22a0c7,_0x8db8d5,_0xcd6bc6));}['_setSuggestionData'](_0x381499){const _0xbb5a44=_0x381499['id'],_0x2d483a=this['addSuggestionData'](_0x381499);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x735971=this['editor']['plugins']['get']('PendingActions'),_0x2fb3dc=_0x2d483a['hasComments'],_0x530643=_0x2d483a['subType']?_0x2d483a['type']+':'+_0x2d483a['subType']:_0x2d483a['type'],_0xcfd33c=this['editor']['locale'],_0x3b501d=_0x735971['add'](c(_0xcfd33c,'PENDING_ACTION_SUGGESTION')),_0x423f17={'id':_0xbb5a44,'type':_0x530643,'hasComments':_0x2fb3dc,'data':_0x381499['data']||null,'originalSuggestionId':_0x381499['originalSuggestionId']||null,'attributes':_0x2d483a['attributes']};this['_adapter']['addSuggestion'](_0x423f17)['then'](_0x3a42fa=>{_0x2d483a['_saved']=!0x0,_0x735971['remove'](_0x3b501d),_0x3a42fa&&_0x3a42fa['createdAt']&&(this['_suggestions']['get'](_0xbb5a44)['createdAt']=_0x3a42fa['createdAt']);})['catch'](_0xe2b26b=>{throw _0x2257ec('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d483a['discard']();}),_0x2d483a['stopListening'](),this['_suggestions']['delete'](_0x2d483a['id']),this['_suggestionState']['delete'](_0x2d483a),_0xe2b26b;});}return _0x2d483a;}['_isBlockAttribute'](_0x4f6afd){return this['_blockAttributeKeys']['has'](_0x4f6afd);}['_updateSuggestionData'](_0x1742b9,_0x4d3c9b){const _0x3f7ed2=this['editor']['plugins']['get']('PendingActions'),_0x457eb3=this['getSuggestion'](_0x1742b9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x457eb3['_saved']){const _0x29b86f=_0x3f7ed2['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1742b9,_0x4d3c9b)['then'](()=>{_0x3f7ed2['remove'](_0x29b86f);});}else _0x457eb3['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1742b9,_0x4d3c9b);});}}['_getSuggestionData'](_0x35666a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3bf293('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x35666a);}['_handleNewSuggestionMarker'](_0x1a7997){const {id:_0x53521c,type:_0x443642,subType:_0x147550,authorId:_0x3621f5}=this['_splitMarkerName'](_0x1a7997),_0xfbe6c3=this['_suggestions']['get'](_0x53521c)||this['_createSuggestion'](_0x443642,_0x147550,_0x53521c,_0x3621f5,{});switch(this['_checkSuggestionCorrectness'](_0xfbe6c3,_0x443642,_0x147550,_0x3621f5),this['_suggestionState']['get'](_0xfbe6c3)){case'notReady':this['_getSuggestionData'](_0x53521c)['then'](_0x49cadd=>{let _0x206b0d=Promise['resolve']();_0x49cadd['hasComments']&&(_0x206b0d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x53521c})),_0x206b0d['then'](()=>{this['addSuggestionData'](_0x49cadd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xfbe6c3,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x53521c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xfbe6c3,'ready'),this['fire']('suggestionLoaded',_0xfbe6c3);break;case'ready':this['fire']('suggestionChanged',_0xfbe6c3);}return _0xfbe6c3['addMarkerName'](_0x1a7997),_0xfbe6c3;}['_refreshSuggestionsChain'](_0x433e91){const _0x2dd316=Array['from'](_0x433e91),_0x25346c=_0x2dd316['filter'](_0x363e62=>'attribute'==_0x363e62['type']);this['_refreshAttributeSuggestionsChain'](_0x25346c);const _0x58b58e=_0x2dd316['filter'](_0x200411=>!_0x200411['isMultiRange']&&'attribute'!=_0x200411['type']),_0x4cce1c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc8bb7c=>!_0xc8bb7c['isMultiRange']&&'attribute'!=_0xc8bb7c['type']),_0x2d6cd7=_0x4cce1c['filter'](_0xd9879b=>!_0x433e91['has'](_0xd9879b)),_0x3131fe=new Map(_0x4cce1c['map'](_0x1c4c11=>[_0x1c4c11,this['_suggestionFactory']['getSuggestionCallback'](_0x1c4c11['type'],_0x1c4c11['subType'],'chain')])),_0x45a970=new Map(_0x4cce1c['map'](_0x1eb19c=>[_0x1eb19c,_0x1eb19c['getFirstRange']()])),_0x34ee7e=new Set(),_0x4acd3a=new Set();for(let _0x340d30=0x0;_0x340d30<_0x58b58e['length'];_0x340d30++)_0x254f4f(_0x58b58e[_0x340d30],_0x58b58e,_0x340d30+0x1);for(let _0x3c6aeb=0x0;_0x3c6aeb<_0x58b58e['length'];_0x3c6aeb++)_0x254f4f(_0x58b58e[_0x3c6aeb],_0x2d6cd7,0x0);const _0x79c226=new Set();for(let _0xe14a3c=0x0;_0xe14a3c<_0x58b58e['length'];_0xe14a3c++){const _0x2db79c=_0x58b58e[_0xe14a3c];!_0x4acd3a['has'](_0x2db79c)&&_0x2db79c['previous']&&(_0x79c226['add'](_0x2db79c['previous']),_0x2db79c['previous']['next']===_0x2db79c&&(_0x2db79c['previous']['next']=null),_0x2db79c['previous']=null),!_0x34ee7e['has'](_0x2db79c)&&_0x2db79c['next']&&(_0x79c226['add'](_0x2db79c['next']),_0x2db79c['next']['previous']===_0x2db79c&&(_0x2db79c['next']['previous']=null),_0x2db79c['next']=null);}function _0x254f4f(_0x306a1e,_0x2cdc21,_0x574d08){for(let _0x3bbd15=_0x574d08;_0x3bbd15<_0x2cdc21['length'];_0x3bbd15++){const _0x2a77f2=_0x237753(_0x306a1e,_0x2cdc21[_0x3bbd15]);_0x2a77f2&&(_0x2a77f2[0x0]['next']=_0x2a77f2[0x1],_0x2a77f2[0x1]['previous']=_0x2a77f2[0x0],_0x34ee7e['add'](_0x2a77f2[0x0]),_0x4acd3a['add'](_0x2a77f2[0x1]));}}function _0x237753(_0x38ebb8,_0x2c5a09){if(_0x38ebb8['author']['id']!==_0x2c5a09['author']['id'])return null;const _0x3ec553=_0x3131fe['get'](_0x38ebb8)(_0x38ebb8,_0x2c5a09,_0x45a970['get'](_0x38ebb8),_0x45a970['get'](_0x2c5a09));if(!_0x3ec553)return null;return _0x3131fe['get'](_0x2c5a09)(_0x38ebb8,_0x2c5a09,_0x45a970['get'](_0x38ebb8),_0x45a970['get'](_0x2c5a09))?_0x3ec553[0x1]['commentThread']&&_0x3ec553[0x1]['commentThread']['length']?null:_0x3ec553:null;}_0x79c226['size']&&this['_refreshSuggestionsChain'](_0x79c226);}['_refreshAttributeSuggestionsChain'](_0x9293a3){if(0x0==_0x9293a3['length'])return;const _0x505196=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f212e=>'attribute'==_0x3f212e['type']&&_0x3f212e['_isDataLoaded']),_0x1146bd=[],_0x42fd31=new Map();for(const _0x358d13 of _0x505196){const _0x1f581e=_0x39cd73(_0x358d13['attributes']);_0x42fd31['has'](_0x1f581e)||(_0x42fd31['set'](_0x1f581e,_0x1146bd['length']),_0x1146bd['push']([]));const _0x5cd51b=_0x42fd31['get'](_0x1f581e);_0x1146bd[_0x5cd51b]['push'](_0x358d13);}!(function(){_0x1146bd['sort']((_0x1b97b4,_0xea855b)=>{const _0x5a7741=_0x1b97b4[0x0]['createdAt'],_0x47107f=_0xea855b[0x0]['createdAt'];return _0x5a7741==_0x47107f?_0x1b97b4[0x0]['attributes']['groupId']<_0xea855b[0x0]['attributes']['groupId']?-0x1:0x1:_0x5a7741<_0x47107f?-0x1:0x1;});for(const _0x28b403 of _0x1146bd)_0x28b403['sort']((_0x52e713,_0x489d5d)=>_0x52e713['id']<_0x489d5d['id']?-0x1:0x1);}());for(let _0x36275b=0x0;_0x36275b<_0x1146bd['length'];_0x36275b++){if(0x0==_0x1146bd[_0x36275b]['length'])continue;const _0x2dee93=[];for(let _0x1fa2d1=_0x36275b+0x1;_0x1fa2d1<_0x1146bd['length'];_0x1fa2d1++)0x0!=_0x1146bd[_0x1fa2d1]['length']&&_0x41ede2(_0x1146bd[_0x36275b],_0x1146bd[_0x1fa2d1])&&_0x2dee93['push'](_0x1fa2d1);for(const _0x37a8c2 of _0x2dee93)_0x1146bd[_0x36275b]=_0x1146bd[_0x36275b]['concat'](_0x1146bd[_0x37a8c2]),_0x1146bd[_0x37a8c2]=[];}for(const _0x681478 of _0x1146bd)for(let _0x6c7353=0x0;_0x6c7353<_0x681478['length'];_0x6c7353++){const _0x4e5469=_0x681478[_0x6c7353+0x1]||null;_0x681478[_0x6c7353]['next']!==_0x4e5469&&(_0x681478[_0x6c7353]['next']=_0x4e5469);}for(const _0x5192e4 of _0x1146bd)for(let _0x274a87=0x0;_0x274a87<_0x5192e4['length'];_0x274a87++){const _0x562d45=_0x5192e4[_0x274a87-0x1]||null;_0x5192e4[_0x274a87]['previous']!==_0x562d45&&(_0x5192e4[_0x274a87]['previous']=_0x562d45);}function _0x41ede2(_0x4b1be4,_0x1b2760){if(_0x4b1be4[0x0]['attributes']['groupId']!==_0x1b2760[0x0]['attributes']['groupId']&&_0x4b1be4[0x0]['author']!==_0x1b2760[0x0]['author'])return!0x1;if(!function(_0x22fd60,_0x3fd50d){if(!_0x22fd60['hasComments']&&!_0x3fd50d['hasComments'])return!0x0;if(_0x22fd60['hasComments']&&_0x3fd50d['hasComments'])return!0x1;if(_0x22fd60['hasComments']&&_0x3fd50d['createdAt']<_0x22fd60['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3fd50d['hasComments']&&_0x22fd60['createdAt']<_0x3fd50d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4b1be4[0x0],_0x1b2760[0x0]))return!0x1;const _0x5325d5=Ft(_0x4b1be4[0x0]['attributes'],['groupId','trackingSessionId']),_0x5db4f3=Ft(_0x1b2760[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0xe83722(_0x5325d5,_0x5db4f3))return!0x1;if(_0x4b1be4[0x0]['attributes']['groupId']==_0x1b2760[0x0]['attributes']['groupId'])return!0x0;if(_0x4b1be4[0x0]['attributes']['trackingSessionId']!==_0x1b2760[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4b1be4['every'](_0x4ce521=>_0x1b2760['some'](_0x576824=>_0x4ce521['getFirstRange']()['isEqual'](_0x576824['getFirstRange']())))&&_0x1b2760['every'](_0x19ea71=>_0x4b1be4['some'](_0x4cff40=>_0x19ea71['getFirstRange']()['isEqual'](_0x4cff40['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x21c5f8){const _0x15af51=Array['from'](_0x21c5f8),_0x224512=this['getSuggestions']({'skipNotAttached':!0x0}),_0x96b027=_0x224512['filter'](_0x4a2544=>!_0x21c5f8['has'](_0x4a2544)),_0x4f5cab=new Map(_0x15af51['map'](_0x46fe7c=>[_0x46fe7c,this['_suggestionFactory']['getSuggestionCallback'](_0x46fe7c['type'],_0x46fe7c['subType'],'join')])),_0x3885c0=new Map(_0x224512['map'](_0x449cbb=>[_0x449cbb,_0x449cbb['getRanges']()]));for(let _0x38500c=0x0;_0x38500c<_0x15af51['length'];_0x38500c++){if(_0x3f062e(this,_0x15af51[_0x38500c],_0x15af51,_0x38500c+0x1))return!0x0;}for(let _0x4733c2=0x0;_0x4733c2<_0x15af51['length'];_0x4733c2++){if(_0x3f062e(this,_0x15af51[_0x4733c2],_0x96b027,0x0))return!0x0;}return!0x1;function _0x3f062e(_0x178395,_0x2ef921,_0x3abe5e,_0x2c03ce){for(let _0x4d9753=_0x2c03ce;_0x4d9753<_0x3abe5e['length'];_0x4d9753++){const _0xd4012c=_0x3abe5e[_0x4d9753];if(_0xd4012c['type']!==_0x2ef921['type']||_0xd4012c['author']['id']!==_0x2ef921['author']['id']||_0xd4012c['subType']!==_0x2ef921['subType'])continue;if(!Qt(_0x2ef921,_0xd4012c))continue;if('attribute'==_0x2ef921['type']&&_0x2ef921['data']['oldValue']!=_0xd4012c['data']['oldValue'])continue;if('attribute'==_0x2ef921['type']&&_0x178395['_isBlockAttribute'](_0x2ef921['data']['key']))continue;if('formatBlock'==_0x2ef921['type']){const _0x43d447=_0x178395['editor']['model'],_0x3d2089=_0x2ef921['getContainedElement']();if(_0x3d2089&&(_0x43d447['schema']['isObject'](_0x3d2089)||_0x43d447['schema']['isLimit'](_0x3d2089)))continue;}const _0x507009=_0x4f5cab['get'](_0x2ef921),_0x1b38ea=_0x3885c0['get'](_0x2ef921),_0x29e202=_0x3885c0['get'](_0xd4012c),_0x4ed357=_0x2ef921['commentThread']&&_0x2ef921['commentThread']['length'],_0x5bd5af=_0xd4012c['commentThread']&&_0xd4012c['commentThread']['length'];if(!_0x4ed357&&_0x507009(_0x29e202,_0x1b38ea))return _0x178395['_joinSuggestions'](_0xd4012c,_0x2ef921),_0x3885c0['delete'](_0x2ef921),!0x0;if(!_0x5bd5af&&_0x507009(_0x1b38ea,_0x29e202))return _0x178395['_joinSuggestions'](_0x2ef921,_0xd4012c),_0x3885c0['delete'](_0xd4012c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x8dd2c4,_0x4c97e7){if(_0x8dd2c4['isMultiRange']){for(const _0x1330d2 of _0x4c97e7['getRanges']())_0x8dd2c4['addRange'](_0x1330d2);}else{const _0x170bc0=_0x4c97e7['getFirstRange']()['end'];this['_setSuggestionRange'](_0x8dd2c4,this['_model']['createRange'](_0x8dd2c4['getFirstRange']()['start'],_0x170bc0));}_0x4c97e7['removeMarkers']();}['_getMarkerAnnouncementText'](_0xccb344,_0x10872b,_0xdc40b5){const _0x4d7a82=_0xccb344['startsWith']('format')||_0xccb344['startsWith']('attribute')?'FORMATTING':_0xccb344['toUpperCase']();return c(this['editor']['locale'],_0x10872b+'_'+_0x4d7a82+'_SUGGESTION_ANNOUNCEMENT',_0xdc40b5);}['_initAriaMarkerChangeAnnouncements'](){const _0x41dd59=this['editor'];if(!_0x41dd59['ui'])return;const {ariaLiveAnnouncer:_0x27da15}=_0x41dd59['ui'];_0x41b32b(this['_model'],({left:_0x424d9e,entered:_0x1981e2})=>{for(const _0x186da0 of _0x424d9e){const {group:_0xf9184e,type:_0x5bb957}=this['_splitMarkerName'](_0x186da0['name']);if('suggestion'===_0xf9184e){_0x27da15['announce'](this['_getMarkerAnnouncementText'](_0x5bb957,'LEAVE'));break;}}for(const _0x444e19 of _0x1981e2){const {group:_0x400fed,type:_0x11e71b}=this['_splitMarkerName'](_0x444e19['name']);if('suggestion'===_0x400fed){_0x27da15['announce'](this['_getMarkerAnnouncementText'](_0x11e71b,'ENTER',_0x5670bc(_0x3938eb)));break;}}});}['_processAttributeChanges'](_0x4cba75){if(this['_recordAttributeSuggestions'])return!0x1;const _0xe5b03a=this['editor'],_0x197467=_0xe5b03a['model']['document']['differ']['getChanges']();if(0x0==_0x197467['length'])return!0x1;const _0x144c7f=[],_0x3a24d1=_0x197467['filter'](_0x41362c=>'attribute'==_0x41362c['type']),_0x3204b7=_0x197467['filter'](_0x562db5=>'insert'==_0x562db5['type']&&'$text'!=_0x562db5['name']),_0x4f0a83=_0x197467['filter'](_0x5dd038=>'remove'==_0x5dd038['type']&&'$text'!=_0x5dd038['name']);for(const _0x3257bd of _0x3a24d1)_0x144c7f['push']({'key':_0x3257bd['attributeKey'],'newValue':_0x3257bd['attributeNewValue'],'oldValue':_0x3257bd['attributeOldValue'],'range':qt(_0x3257bd['range'],_0xe5b03a['model'])});for(const _0x2ad83d of _0x3204b7){const _0x1b489f=_0x4f0a83['find'](_0x13a58c=>_0x13a58c['position']['isEqual'](_0x2ad83d['position']));_0x1b489f&&_0x144c7f['push']({'key':u,'newValue':_0x2ad83d['name'],'oldValue':_0x1b489f['name'],'range':_0xe5b03a['model']['createRangeOn'](_0x2ad83d['position']['nodeAfter'])});}return 0x0!=_0x144c7f['length']&&this['_reduceExistingSuggestions'](_0x4cba75,_0x144c7f);}['_processAttributeSuggestions'](_0x3a732e){let _0x520867=!0x1;const _0x4d0ab3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2dffd1=>_0x2dffd1['data']['newRange']&&_0x2dffd1['name']['startsWith']('suggestion:attribute:'));for(const _0x473fed of _0x4d0ab3){const {subType:_0x245e0b,id:_0x3c10ee}=this['_splitMarkerName'](_0x473fed['name']),_0x350aea=_0x245e0b['split']('|')[0x0];for(const _0x2a7988 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2a7988['id']!=_0x3c10ee&&'attribute'==_0x2a7988['type']&&_0x2a7988['data']&&_0x2a7988['data']['key']==_0x350aea&&_0x2a7988['getFirstRange']()['isIntersecting'](_0x473fed['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2a7988,_0x473fed['data']['newRange'],_0x3a732e),_0x520867=!0x0);}return _0x520867;}['_recordAttributeChanges'](_0x6c7569){this['_recordAttributeSuggestions']=!0x0,_0x6c7569();}['_isRegisteredAttribute'](_0x473e0c){const _0x147a67=this['_isBlockAttribute'](_0x473e0c),_0x1a7b17=this['_inlineAttributeKeys']['has'](_0x473e0c);return _0x147a67||_0x1a7b17;}['_reduceExistingSuggestions'](_0x1d444c,_0x54c72c){if(0x0==_0x54c72c['length'])return!0x1;let _0x982332=!0x1;for(const _0x1867d5 of _0x54c72c){const _0x302650=this['_findSuggestions'](_0x1867d5['range'],'attribute')['filter'](_0x4e09fc=>!_0x4e09fc['meta']['isNextTo'])['map'](_0x3da7ad=>_0x3da7ad['suggestion']),_0x4450ad=_0x39cd73({'newValue':_0x1867d5['newValue']});_0x302650['filter'](_0x277e73=>{const [_0x2d0329,_0x4546dc]=_0x277e73['subType']['split']('|');return _0x2d0329==_0x1867d5['key']&&_0x4546dc!=_0x4450ad;})['forEach'](_0x5dbeab=>{this['_reduceSuggestionAttributeRange'](_0x5dbeab,_0x1867d5['range'],_0x1d444c),_0x982332=!0x0;});}return _0x982332;}['_reduceSuggestionAttributeRange'](_0x46a413,_0xb336ce,_0x5c0abd){const _0x3d25fb=_0x46a413['getFirstRange']()['getDifference'](_0xb336ce);0x0!==_0x3d25fb['length']?0x1!==_0x3d25fb['length']?this['_breakSuggestionMarker'](_0x46a413,_0xb336ce['start'],_0xb336ce['end']):this['_setSuggestionRange'](_0x46a413,_0x3d25fb[0x0]):_0x5c0abd['removeMarker'](_0x46a413['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x47fdc6){this['_editor']=_0x47fdc6,this['_model']=_0x47fdc6['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x21ec94,_0x17327b,_0x56567c,_0x5bb6a5,_0x4f1ed4,_0x1fe815,_0x19f31b){return new o(this['_model'],{'type':_0x21ec94,'subType':_0x17327b,'id':_0x56567c,'originalSuggestionId':_0x19f31b,'author':_0x5bb6a5,'creator':_0x5bb6a5,'attributes':_0x4f1ed4,'onAttributesChange':_0x1fe815,'onAccept':(..._0x4cc269)=>this['getSuggestionCallback'](_0x21ec94,_0x17327b,'accept')(..._0x4cc269),'onDiscard':(..._0x1daedf)=>this['getSuggestionCallback'](_0x21ec94,_0x17327b,'discard')(..._0x1daedf)});}['registerCustomCallback'](_0x2d40d0,_0x25690e,_0x17c082,_0x32655b){const _0x1a81d1=_0x2d40d0+':'+_0x25690e+':'+_0x17c082;this['_customCallbacks']['set'](_0x1a81d1,_0x32655b);}['getSuggestionCallback'](_0x5f5cc7,_0x8a2ba8,_0x45468d){const _0x5df56f=_0x5f5cc7+':'+_0x8a2ba8+':'+_0x45468d;return this['_customCallbacks']['get'](_0x5df56f)||this['_defaultCallbacks']['get'](_0x5f5cc7+':'+_0x45468d);}['_registerDefaultCallbacks'](){const _0x41f538=()=>!0x1,_0x1b1119=_0x1883c9=>{_0x1883c9['sort']((_0x3f24d9,_0x5c8c34)=>_0x3f24d9['start']['isBefore'](_0x5c8c34['start'])?0x1:-0x1),this['_model']['change'](_0x5aae05=>{for(const _0x57ff7a of _0x1883c9){let _0x9fe6cb;_0x9fe6cb=_0x57ff7a['end']['isAtEnd']&&_0x57ff7a['end']['parent']==_0x57ff7a['start']['nodeAfter']?_0x5aae05['createSelection'](_0x57ff7a['start']['nodeAfter'],'on'):_0x5aae05['createSelection'](_0x57ff7a),this['_model']['deleteContent'](_0x9fe6cb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x189d71=(_0x47befb,_0x579703)=>{_0x579703&&this['_model']['change'](_0x5bf5c6=>{const {commandName:_0x1c2423,commandParams:_0x339aa2=[]}=_0x579703,_0x4aac45=_0x47befb['map'](_0x30adf6=>(Lt(_0x30adf6)&&(_0x30adf6=this['_model']['createRange'](_0x30adf6['end'])),_0x30adf6))['filter'](_0x346846=>'$graveyard'!==_0x346846['root']['rootName']);if(_0x4aac45['length']<0x1)return;const _0xbc5dcc=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x45fd12=>_0x3a5e87['fromRange'](_0x45fd12));_0x5bf5c6['setSelection'](_0x4aac45);for(const _0x3560a2 of this['_editor']['commands']['commands']())_0x3560a2['refresh']();_0x339aa2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c2423,..._0x339aa2);const _0xb50c2b=_0xbc5dcc['filter'](_0x2d7ba2=>'$graveyard'!=_0x2d7ba2['root']['rootName']);_0xb50c2b['length']>0x0&&_0x5bf5c6['setSelection'](_0xb50c2b);for(const _0x550155 of _0xbc5dcc)_0x550155['detach']();});},_0x1f57de=(_0x2b9e06,_0xe306c1)=>0x1==_0x2b9e06['length']&&0x1==_0xe306c1['length']&&_0x2b9e06[0x0]['end']['isEqual'](_0xe306c1[0x0]['start']),_0x24070c=(_0x5b5b6,_0x41a409,_0x9262d6,_0x1720fe)=>Wt(_0x5b5b6,_0x41a409,_0x9262d6,_0x1720fe)?[_0x5b5b6,_0x41a409]:Wt(_0x41a409,_0x5b5b6,_0x1720fe,_0x9262d6)?[_0x41a409,_0x5b5b6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x41f538),this['_defaultCallbacks']['set']('insertion:discard',_0x1b1119),this['_defaultCallbacks']['set']('insertion:join',_0x1f57de),this['_defaultCallbacks']['set']('insertion:chain',_0x24070c),this['_defaultCallbacks']['set']('deletion:accept',_0x1b1119),this['_defaultCallbacks']['set']('deletion:discard',_0x41f538),this['_defaultCallbacks']['set']('deletion:join',_0x1f57de),this['_defaultCallbacks']['set']('deletion:chain',_0x24070c),this['_defaultCallbacks']['set']('formatInline:accept',_0x189d71),this['_defaultCallbacks']['set']('formatInline:discard',_0x41f538),this['_defaultCallbacks']['set']('formatInline:join',_0x1f57de),this['_defaultCallbacks']['set']('formatInline:chain',_0x41f538),this['_defaultCallbacks']['set']('formatBlock:accept',_0x189d71),this['_defaultCallbacks']['set']('formatBlock:discard',_0x41f538),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f57de),this['_defaultCallbacks']['set']('formatBlock:chain',_0x41f538),this['_defaultCallbacks']['set']('attribute:accept',_0x41f538),this['_defaultCallbacks']['set']('attribute:discard',(_0x501a32,_0x1d11a3)=>{if(!_0x1d11a3)return;const _0x2658a4=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x9e8d8f=>{if(_0x1d11a3['key']==u)for(const _0x3a617a of _0x501a32){const _0x51d45c=_0x3a617a['start']['nodeAfter'],_0x29c7f3=_0x1d11a3['oldValue'];_0x9e8d8f['rename'](_0x51d45c,_0x29c7f3);}else{if(_0x2658a4['_isBlockAttribute'](_0x1d11a3['key'])){for(const _0x337c65 of _0x501a32)void 0x0!==_0x1d11a3['oldValue']?_0x9e8d8f['setAttribute'](_0x1d11a3['key'],_0x1d11a3['oldValue'],_0x337c65['start']['nodeAfter']):_0x9e8d8f['removeAttribute'](_0x1d11a3['key'],_0x337c65['start']['nodeAfter']);}else{for(const _0x4e7a15 of _0x501a32)_0x1d11a3['oldValue']?_0x9e8d8f['setAttribute'](_0x1d11a3['key'],_0x1d11a3['oldValue'],_0x4e7a15):_0x9e8d8f['removeAttribute'](_0x1d11a3['key'],_0x4e7a15);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f57de);}}function Gt(_0x3b4e06,_0x322ea4,_0x5ef840){for(const _0x5abf7a of _0x322ea4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5abf7a['root']==_0x5abf7a)return!0x1;if(!_0x5ef840['containsItem'](_0x5abf7a))return!0x1;if(_0x3b4e06['isObject'](_0x5abf7a)||_0x3b4e06['isLimit'](_0x5abf7a))return!0x0;}return!0x1;}function Lt(_0x5bcff1){return _0x5bcff1['end']['parent']==_0x5bcff1['start']['nodeAfter']&&_0x5bcff1['end']['isAtStart'];}function Jt(_0x260403,_0x4c2c1e,_0x14558e,_0x2bf64c){const _0x3fa447=_0x155760=>!_0x155760['item']['is']('$textProxy')&&!_0x2bf64c['isObject'](_0x155760['item']),_0x4b24a6=_0x260403['start']['getLastMatchingPosition'](_0x3fa447),_0x5d3fdb=_0x260403['end']['getLastMatchingPosition'](_0x3fa447,{'direction':'backward'});return(!_0x260403['start']['isEqual'](_0x4b24a6)||!_0x260403['end']['isEqual'](_0x5d3fdb))&&(_0x4b24a6['isBefore'](_0x5d3fdb)?_0x14558e['updateMarker'](_0x4c2c1e,{'range':_0x14558e['createRange'](_0x4b24a6,_0x5d3fdb)}):_0x14558e['removeMarker'](_0x4c2c1e),!0x0);}function Kt(_0xf829d7){return _0x39cd73(_0xf829d7);}function Ht(_0x325c41){const _0x13d29e=_0x325c41['start']['nodeAfter'];return _0x13d29e&&_0x13d29e['is']('element');}function qt(_0x4d42ba,_0x2f25b3){return null==_0x4d42ba['end']['nodeBefore']&&_0x4d42ba['end']['parent']==_0x4d42ba['start']['nodeAfter']?zt(_0x4d42ba['start']['nodeAfter'],_0x2f25b3):_0x4d42ba;}function zt(_0xec3da4,_0x3e6b69){const _0x23e275=_0x3e6b69['schema']['isObject'](_0xec3da4)||_0x3e6b69['schema']['isSelectable'](_0xec3da4);return _0x3e6b69['createRange'](_0x3e6b69['createPositionAt'](_0xec3da4,'before'),_0x23e275?_0x3e6b69['createPositionAfter'](_0xec3da4):_0x3e6b69['createPositionAt'](_0xec3da4,'end'));}function Wt(_0x567910,_0x139dc2,_0x4d85fa,_0x1b4b24){return!!Qt(_0x567910,_0x139dc2)&&_0x4d85fa['end']['isEqual'](_0x1b4b24['start']);}function Qt(_0x112e72,_0x364835){if(!_0x112e72['_isDataLoaded']||!_0x364835['_isDataLoaded'])return!0x1;const _0x60adfe=new Set(Object['keys'](_0x112e72['attributes'])),_0x25b6b7=new Set(Object['keys'](_0x364835['attributes']));if(_0x60adfe['delete']('groupId'),_0x25b6b7['delete']('groupId'),0x0==_0x60adfe['size']&&0x0==_0x25b6b7['size'])return!0x0;if(_0x60adfe['size']!=_0x25b6b7['size'])return!0x1;const _0x3ac52b={..._0x112e72['attributes']},_0x5d2e8e={..._0x364835['attributes']};return delete _0x3ac52b['groupId'],delete _0x5d2e8e['groupId'],JSON['stringify'](_0x3ac52b)==JSON['stringify'](_0x5d2e8e);}function Xt(_0x519963,_0x44375c){const _0x2fada2=Yt(_0x519963['attributes']),_0xeb6ed7=Yt(_0x44375c);if(!_0x519963['_isDataLoaded'])return!0x1;for(const _0x52deb4 of Object['keys'](_0xeb6ed7))if(!_0xe83722(_0x2fada2[_0x52deb4],_0xeb6ed7[_0x52deb4]))return!0x1;return!0x0;}function Yt(_0x34ad1f){const _0x2d539c=Object['assign']({},_0x34ad1f);return delete _0x2d539c['skipNestingCheck'],delete _0x2d539c['tablePasteChainId'],_0x2d539c;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x4b5d5f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x57c481,_0xfa859d,_0x3d3155,_0x53946c){super(),this['model']=_0xfa859d,this['view']=_0x3d3155,this['commentThreadController']=_0x53946c,this['_editor']=_0x57c481,this['_acceptCommand']=_0x57c481['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x57c481['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x8fcb4f,_0x54cd37)=>_0x8fcb4f||_0x54cd37),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3147b1=>_0x3147b1&&this['_editor']['model']['canEditAt'](_0xfa859d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x153092=>_0x153092&&this['_editor']['model']['canEditAt'](_0xfa859d['getRanges']())),this['_pendingAction']=null,_0x3d3155['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3d3155,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3d3155,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3d3155,'change:isDirty',()=>{_0x3d3155['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 _0x59ad2c=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x59ad2c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x36af6d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x29e354,_0x341ffe,_0x2c87aa,_0x514cb6){super(_0x29e354),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x1c3831(_0x29e354,c(_0x29e354,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x341ffe['authoredAt']),this['bind']('authoredAt')['to'](_0x341ffe),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',_0x341ffe,'authoredAt',this,'descriptionParts',(_0x3736fc,_0x352274,_0xadd331)=>{const _0x34a743=_0xadd331['map'](_0x34d6cf=>ls(_0x34d6cf['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3736fc-0x1,_0x341ffe['author']['name'],_0x352274?_0x514cb6['formatDateTime'](_0x352274):'',new DOMParser()['parseFromString'](_0x34a743,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3d953b(),this['focusTracker']=new _0x5d45b2(),this['keystrokes']=new _0x5b4e17(),this['focusCycler']=new _0x582a27({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x404950=>_0x404950['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x341ffe,this['_localUser']=_0x2c87aa,this['_config']=_0x514cb6,_0x514cb6['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x29d324(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4f5ba2}=this['_config'];this['commentsListView']=new _0x4f5ba2(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',_0x498c2a=>_0x498c2a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x28844a,_0x49e4a1)=>_0x28844a||!!_0x49e4a1);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5975b0}=this['_config'],_0x341d01=new _0x5975b0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x225800=_0x341d01['commentInputView'];return _0x341d01['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x225800,'value',(_0x2f6a38,_0xedfc16,_0x2af167)=>!!_0x2af167||_0x2f6a38&&!_0xedfc16),_0x225800['on']('submit',(_0x313349,_0x52c544)=>{this['fire']('addComment',_0x52c544),_0x225800['editor']['setData']('');}),_0x225800['on']('cancel',()=>this['focus']()),_0x225800['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x341d01;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x141975,_0x20ea24,_0x52ca5f,_0x563697){super(_0x141975,_0x20ea24,_0x52ca5f,_0x563697),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x59bbf1=>_0x59bbf1&&_0x59bbf1[0x0]?_0x59bbf1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x44d6a9,_0x31f966)=>{let _0x3e3fe9='';for(const _0x46bff9 of _0x44d6a9)_0x3e3fe9+='<p>'+ls(_0x46bff9['content'],_0x46bff9['color'])+'</p>';return _0x31f966?_0x3e3fe9:ti(_0x3e3fe9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x563697['SuggestionView'](_0x141975,_0x20ea24,{'formatDateTime':_0x563697['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 _0x48de17=this['bindTemplate'],_0x56b506=[this['suggestionView']];return this['commentsListView']&&_0x56b506['push'](this['commentsListView']),this['commentThreadInputView']&&_0x56b506['push'](this['commentThreadInputView']),_0x56b506['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x48de17['if']('isActive','ck-suggestion-wrapper--active'),_0x48de17['to']('type',_0x5c3893=>'ck-suggestion-'+_0x5c3893),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':_0x48de17['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x56b506};}['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 _0x36af6d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x46bebe,_0x400aa9,_0x58de6e){super(_0x46bebe),this['_model']=_0x400aa9,this['_config']=_0x58de6e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x400aa9),this['acceptButton']=this['_createButton'](c(_0x46bebe,'Accept\x20suggestion'),_0x42c957,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x46bebe,'Discard\x20suggestion'),_0x3172ec,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x46ccea(_0x46bebe,_0x400aa9['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3d953b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5d45b2(),this['keystrokes']=new _0x5b4e17(),this['focusCycler']=new _0x582a27({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x40a38c=>_0x40a38c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3d08e5=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3d08e5['innerHTML']=this['description'],this['on']('change:description',(_0x5e7ec7,_0x58f7d5,_0x292dff)=>{_0x3d08e5['innerHTML']=_0x292dff;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2d4a16=this['bindTemplate'],_0x23051=[{'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':_0x2d4a16['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2d4a16['to']('authoredAt',_0xcc2da6=>this['_config']['formatDateTime'](_0xcc2da6))}]}]},{'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']&&_0x23051['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':_0x23051}]};}['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'](_0x554541,_0x1226a3,_0x24aaee,_0x5c54ed,_0x4a6cad){const _0x30bab1=new _0x51bdbf(this['locale']);return _0x30bab1['set']({'label':_0x554541,'icon':_0x1226a3,'tooltip':!0x0,'tooltipPosition':_0x4a6cad}),_0x30bab1['extendTemplate']({'attributes':{'class':_0x24aaee}}),_0x30bab1['on']('execute',()=>{this['fire'](_0x5c54ed,this['_model']['id']);}),_0x30bab1;}['_setupKeyboardNavigation'](){const _0x386942=this['element'];this['keystrokes']['listenTo'](_0x386942);for(const _0x3956c4 of this['focusables'])this['focusTracker']['add'](_0x3956c4['element']),this['keystrokes']['listenTo'](_0x3956c4['element']);this['keystrokes']['set']('enter',(_0x38251a,_0x1d218b)=>{_0x386942===_0x38251a['target']&&(this['focusCycler']['focusFirst'](),_0x1d218b());}),this['keystrokes']['set']('esc',(_0xfca222,_0x407e14)=>{_0x386942!==_0xfca222['target']&&(this['focus'](),_0x407e14());});}}class d extends _0x577ae7{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x671950,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5932df){super(_0x5932df),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1c3e79=this['editor']['config'];_0x1c3e79['define']('trackChanges.SuggestionThreadView',fe),_0x1c3e79['define']('trackChanges.SuggestionView',we),_0x1c3e79['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1c3e79['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x6f86f,_0x38de6e){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x50d909,_0x5ee1c0]of this['_handleControllerBuffer']){const _0x4f17f2=this['_suggestionToController']['has'](_0x50d909);_0x4f17f2||_0x5ee1c0?_0x4f17f2&&_0x5ee1c0&&this['_destroyController'](_0x50d909):this['_initializeController'](_0x50d909);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x6f86f,_0x38de6e);}['init'](){const _0x37d4e1=this['editor'],_0x28f6f1=_0x37d4e1['plugins']['get']('TrackChangesEditing'),_0x441c86=_0x37d4e1['plugins']['get']('Annotations'),_0x3e4da1=_0x37d4e1['plugins']['get']('EditorAnnotations'),_0x56af90=_0x37d4e1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3e4da1['addSourceCollector'](()=>{const _0x3eb0d2=[];for(const [_0x135e0e,_0x4b4afa]of Array['from'](this['_suggestionToController'])){const _0x10a08d=_0x135e0e['getAllAdjacentSuggestions'](),_0x3bf145=[];for(const _0x5ae50e of _0x10a08d){if(!_0x5ae50e['isInContent'])continue;if(_0x5ae50e['isMultiRange']){_0x3bf145['push'](..._0x5ae50e['getRanges']());continue;}const _0x571033=_0x5ae50e['getFirstRange']();if(_0x3bf145['length']>0x0){const _0x1db29f=_0x3bf145[0x0]['getJoined'](_0x571033);if(_0x1db29f){_0x3bf145[0x0]=_0x1db29f;continue;}}_0x3bf145['push'](_0x571033);}_0x3eb0d2['push']([_0x4b4afa['view'],_0x3bf145]);}return _0x3eb0d2;}),this['listenTo'](_0x28f6f1,'suggestionLoaded',(_0x3bf0ab,_0x42f33b)=>{this['listenTo'](_0x42f33b,'change:previous',(_0xd260e5,_0x427593,_0x484aad,_0x444cd1)=>{_0x42f33b['isInContent']&&(null==_0x484aad?(this['_updateController'](_0x444cd1['head']),this['_handleSuggestionControllerDelayed'](_0x42f33b,!0x1)):(this['_updateController'](_0x484aad['head']),null==_0x444cd1&&this['_handleSuggestionControllerDelayed'](_0x42f33b,!0x0)));}),null!==_0x42f33b['previous']?this['_updateController'](_0x42f33b['head']):this['_handleSuggestionControllerDelayed'](_0x42f33b,!0x1);}),this['listenTo'](_0x28f6f1,'suggestionUnloaded',(_0x360ed5,_0x389d15,_0x2873f2)=>{this['stopListening'](_0x389d15,'change:previous'),this['_handleControllerBuffer']['delete'](_0x389d15),this['_suggestionToController']['has'](_0x389d15)&&this['_destroyController'](_0x389d15),_0x2873f2&&this['_updateController'](_0x2873f2['head']);}),this['listenTo'](_0x28f6f1,'suggestionChanged',(_0xe49c27,_0x4a557b)=>{this['_updateController'](_0x4a557b);}),this['listenTo'](_0x441c86,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56af90,'addComment',(_0x3732fb,{threadId:_0x27e912,isFromAdapter:_0x128fd2})=>{if(_0x128fd2||!_0x28f6f1['hasSuggestion'](_0x27e912))return;const _0x44d9a4=_0x28f6f1['getSuggestion'](_0x27e912);this['_suggestionToController']['get'](_0x44d9a4)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1033a1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4aa868;for(const _0x9ceddd in _0x1033a1){const _0xc74963=_0x9ceddd,_0x3e52a5=_0x1033a1[_0xc74963];if('trackChangesLicenseKeyValid'==_0x3e52a5||'trackChangesLicenseKeyInvalid'==_0x3e52a5||'trackChangesLicenseKeyExpired'==_0x3e52a5||'trackChangesLicenseKeyDomainLimit'==_0x3e52a5||'trackChangesLicenseKeyNotAllowed'==_0x3e52a5||'trackChangesLicenseKeyEvaluationLimit'==_0x3e52a5||'trackChangesLicenseKeyTrialLimit'==_0x3e52a5||'trackChangesLicenseKeyUsageLimit'==_0x3e52a5){delete _0x1033a1[_0xc74963],_0x4aa868=_0x3e52a5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4aa868&&_0x1033a1['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4aa868&&_0x1033a1['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4aa868&&_0x1033a1['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4aa868&&_0x1033a1['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x32897e=this['editor']['plugins']['get']('Annotations'),_0x57d1b4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x230aa3=Array['from'](_0x32897e['activeAnnotations'],_0x236283=>_0x236283['innerView'])['filter'](_0x1fd29b=>this['_viewToController']['has'](_0x1fd29b)),_0x35a489=[];for(const _0x218ea3 of _0x230aa3){const _0x3f73ea=this['_viewToController']['get'](_0x218ea3)['model']['getAllAdjacentSuggestions']();_0x35a489['push'](..._0x3f73ea['reduce']((_0x539dd5,_0x51d290)=>[..._0x539dd5,..._0x51d290['getMarkerNames']()],[]));}_0x57d1b4['activeMarkers']=_0x35a489;}['_addUIComponentsToFactory'](){const _0x136072=this['editor'],_0x2a7c36=_0x136072['locale'],_0x57b8ce=c(_0x2a7c36,'Track\x20changes'),_0x95ebcf=new _0x2d3f2d([{'type':'switchbutton','model':new _0x41a0e2({'withText':!0x0,'isToggleable':!0x0,'label':_0x57b8ce,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x136072['plugins']['has']('TrackChangesPreview')&&_0x95ebcf['addMany']([{'type':'separator'},{'type':'button','model':new _0x41a0e2({'withText':!0x0,'label':c(_0x2a7c36,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x23138a of _0x95ebcf)if(ke(_0x23138a)){const _0xab8266=_0x136072['commands']['get'](_0x23138a['model']['commandName']);_0x23138a['model']['bind']('isOn','isEnabled')['to'](_0xab8266,'value','isEnabled');}_0x136072['ui']['componentFactory']['add']('trackChanges',_0x358d4c=>this['_createToolbarButton'](_0x358d4c,_0x95ebcf,_0x57b8ce)),_0x136072['ui']['componentFactory']['add']('menuBar:trackChanges',_0x265c02=>this['_createMenuBarMenu'](_0x265c02,_0x95ebcf,_0x57b8ce));}['_createToolbarButton'](_0x226952,_0x1b7755,_0x12f993){const _0x5ed9fe=_0x49273c(_0x226952,_0x4bcb62),_0x370265=this['editor']['commands']['get']('trackChanges');_0x5ed9fe['buttonView']['set']({'tooltip':_0x12f993,'label':_0x12f993,'icon':_0x263ea4}),_0x5ed9fe['buttonView']['bind']('isOn')['to'](_0x370265,'value'),_0x5ed9fe['buttonView']['on']('execute',()=>{_0x370265['execute'](),this['editor']['editing']['view']['focus']();}),_0x45854c(_0x5ed9fe,_0x1b7755,{'role':'menu'});const _0x3ce25f=[];for(const _0x1dda72 of _0x1b7755)ke(_0x1dda72)&&_0x3ce25f['push'](this['editor']['commands']['get'](_0x1dda72['model']['commandName']));const _0x52deee=_0x5ed9fe['buttonView'];return _0x52deee['actionView']['unbind']('isEnabled'),_0x52deee['arrowView']['unbind']('isEnabled'),_0x52deee['actionView']['bind']('isEnabled')['to'](_0x370265,'isEnabled'),_0x52deee['arrowView']['bind']('isEnabled')['toMany'](_0x3ce25f,'isEnabled',(..._0x5e3fae)=>_0x5e3fae['some'](_0x4dbbd2=>_0x4dbbd2)),_0x5ed9fe['on']('execute',_0x16c40b=>{this['editor']['execute'](_0x16c40b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5ed9fe;}['_createMenuBarMenu'](_0x170a09,_0x54b259,_0x1f83a3){const _0x9ec330=new _0x34d256(_0x170a09),_0x3eef55=this['editor']['commands']['get']('trackChanges');_0x9ec330['buttonView']['set']({'label':_0x1f83a3,'icon':_0x263ea4});const _0xfbbc50=new _0x1706ac(_0x170a09);for(const _0x57c64d of _0x54b259){if('separator'==_0x57c64d['type']){_0xfbbc50['items']['add'](new _0x475808(_0x170a09));continue;}const _0x1f34ae=new _0x359a6c(_0x170a09,_0x9ec330),_0x1b3661=new _0x94c5e9(_0x170a09),_0x2d782b=_0x57c64d['model'];_0x1b3661['bind'](...Object['keys'](_0x2d782b))['to'](_0x2d782b),_0x1b3661['delegate']('execute')['to'](_0x9ec330),_0x1b3661['on']('execute',()=>{this['editor']['execute'](_0x2d782b['commandName']),this['editor']['editing']['view']['focus']();}),_0x1f34ae['children']['add'](_0x1b3661),_0xfbbc50['items']['add'](_0x1f34ae);}return _0x9ec330['bind']('isEnabled')['to'](_0x3eef55,'isEnabled'),_0x9ec330['panelView']['children']['add'](_0xfbbc50),_0x9ec330;}['_initializeController'](_0x4cff06){const _0x43d20c=this['editor'],_0x275113=_0x43d20c['config'],_0x1e0c2d=_0x43d20c['plugins']['get']('Annotations'),_0x57e144=_0x43d20c['plugins']['get']('CommentsRepository'),_0x16d203=_0x43d20c['plugins']['get']('EditorAnnotations'),_0x207812=_0x43d20c['plugins']['get'](_0x671950)['me'],_0x854e30=_0x275113['get']('trackChanges')['SuggestionThreadView'],_0x3c72f4=_0x275113['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x526acd,CommentThreadInputView:_0x4c503a}=_0x43d20c['plugins']['get']('CommentsUI');let _0x382a48,_0x31b566,_0x3f7580;this['_annotationViews']['has'](_0x4cff06['id'])?(_0x31b566=this['_annotationViews']['get'](_0x4cff06['id']),_0x382a48=_0x31b566['mainView']):(_0x382a48=new _0x854e30(_0x43d20c['locale'],_0x4cff06,_0x207812,{'disableComments':this['_disableComments'],'editorConfig':{..._0x275113['get']('comments.editorConfig'),'licenseKey':_0x275113['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x275113['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x275113['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x275113['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x49779c(_0x275113['get']('locale'),_0x43d20c['locale']),'CommentView':_0x275113['get']('comments')['CommentView'],'CommentsListView':_0x526acd,'CommentThreadInputView':_0x4c503a,'SuggestionView':_0x3c72f4}),_0x382a48['suggestionView']['acceptButton']['on']('execute',()=>{_0x43d20c['editing']['view']['focus']();}),_0x382a48['suggestionView']['discardButton']['on']('execute',()=>{_0x43d20c['editing']['view']['focus']();}),_0x31b566=_0x1e0c2d['createAnnotationView'](this['editor']['locale'],_0x382a48),_0x31b566['bind']('isDirty')['to'](_0x382a48,'isDirty'),_0x31b566['bind']('length')['to'](_0x382a48),_0x31b566['bind']('type')['to'](_0x382a48,'type',_0x55f612=>'suggestion-'+_0x55f612),_0x382a48['on']('escape',()=>{_0x3f7580['fire']('escape');}),this['_annotationViews']['set'](_0x4cff06['id'],_0x31b566));const _0x54cf52=_0x57e144['createCommentThreadController'](_0x4cff06['commentThread'],_0x382a48),_0x4be1ce=new pe(_0x43d20c,_0x4cff06,_0x382a48,_0x54cf52),_0x144ccb=_0x4cff06['getAllAdjacentSuggestions']()['filter'](_0x1e9ec5=>_0x1e9ec5['isInContent']);_0x382a48['descriptionParts']=_0x43d20c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x144ccb),this['_suggestionToController']['set'](_0x4cff06,_0x4be1ce),this['_viewToController']['set'](_0x382a48,_0x4be1ce),_0x3f7580=_0x1e0c2d['createAnnotation']({'view':_0x31b566,'target':()=>{const _0xc18ba0=[],_0x2103b3=_0x4cff06['getAllAdjacentSuggestions']()['filter'](_0x32c4af=>_0x32c4af['isInContent']);for(const _0x3ced5e of _0x2103b3)_0xc18ba0['push'](..._0x3ced5e['getMarkers']());return _0x2a17b3(_0x43d20c['editing'],_0xc18ba0);},'type':()=>'suggestion-'+_0x4be1ce['view']['type']}),_0x57e144['_bindAnnotationToEditors'](_0x382a48,_0x3f7580),_0x1e0c2d['add'](_0x3f7580),_0x16d203['registerAnnotation'](_0x3f7580);}['_destroyController'](_0x5165b2){const _0x57627a=this['editor']['plugins']['get']('CommentsRepository'),_0x34924c=this['editor']['plugins']['get']('Annotations'),_0x20e7d4=this['_suggestionToController']['get'](_0x5165b2),_0x5b823c=_0x20e7d4['view'],_0x48dba1=_0x34924c['getByInnerView'](_0x5b823c);_0x57627a['_unbindEditors'](_0x5b823c),_0x48dba1&&_0x34924c['remove'](_0x48dba1),this['_suggestionToController']['delete'](_0x5165b2),this['_viewToController']['delete'](_0x5b823c),_0x20e7d4['destroy']();}['_updateController'](_0x2bd3b0){if(!_0x2bd3b0['isInContent']||!this['_suggestionToController']['has'](_0x2bd3b0))return;const _0x1cf013=this['editor']['plugins']['get']('TrackChangesEditing'),_0x136ebd=this['_suggestionToController']['get'](_0x2bd3b0),_0x3af3b3=_0x2bd3b0['getAllAdjacentSuggestions']();_0x136ebd['view']['descriptionParts']=_0x1cf013['descriptionFactory']['getDescriptions'](_0x3af3b3);}['destroy'](){for(const _0x425540 of this['_suggestionToController']['keys']())this['_destroyController'](_0x425540);for(const _0x59c1d6 of this['_annotationViews']['values']())_0x59c1d6['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x415bf5){return'model'in _0x415bf5;}class k extends _0x577ae7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x54e559){this['editor']['plugins']['get'](p)['adapter']=_0x54e559;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x3a34f5){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x3a34f5);}['getSuggestions']({skipNotAttached:_0x33de03=!0x1,toJSON:_0x3ae508=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x33de03,'toJSON':_0x3ae508});}['getSuggestion'](_0x1189da){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1189da);}}const w=['Pagination'];class T extends _0x577ae7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x54afba=this['editor'];if(_0x54afba['config']['define']('trackChangesData.editorCreator',_0x4d98d7=>{const _0x269582=_0x54afba['model']['document']['getRootNames']()['reduce']((_0x2580bb,_0x23d02b)=>(_0x2580bb[_0x23d02b]='',_0x2580bb),{});return _0x54afba['constructor']['create'](_0x269582,_0x4d98d7);}),'function'!=typeof _0x54afba['config']['get']('trackChangesData')['editorCreator'])throw new _0x3bf293('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x227c15){return N(this['editor'],!0x0,_0x227c15);}['getDataWithDiscardedSuggestions'](_0x56c9c4){return N(this['editor'],!0x1,_0x56c9c4);}}class D extends _0x577ae7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x360d4c){function _0x5b6f67(_0x412be8){return _0x412be8['map'](_0x4131a0=>String['fromCharCode'](_0x4131a0))['join']('');}super(_0x360d4c),this['result']='end',_0x360d4c[_0x5b6f67([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b6f67([0x76,0x69,0x65,0x77])][_0x5b6f67([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b6f67([0x61,0x75,0x74,0x6f]),_0x360d4c[_0x5b6f67([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5b6f67([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b6f67([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5b6f67([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5b6f67([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 Ge(_0xb43fd5){return void 0x0!==_0xb43fd5['getRootsAttributes'];}async function N(_0x10fb5c,_0x75a82,_0x5736d2){const _0x4ac800=_0x4ffdbb(_0x10fb5c,w);_0x4ac800['plugins']['push'](p,D),_0x4ac800['rootsAttributes']=Ge(_0x10fb5c)?_0x10fb5c['getRootsAttributes']():void 0x0;const _0x44d085=document['createDocumentFragment'](),_0x342375=_0x10fb5c['config']['get']('trackChangesData')['editorCreator'],_0x404d79=await _0x342375(_0x4ac800,()=>function(_0x412052){const _0x32f709=document['createElement']('div');return _0x412052['appendChild'](_0x32f709),_0x32f709;}(_0x44d085));!function(_0x35aaa6,_0x57c0e0){const _0x20cf8b=_0x35aaa6['model']['document']['getRootNames']()['reduce']((_0x4014bb,_0x443e20)=>(_0x4014bb[_0x443e20]=_0x35aaa6['data']['get']({'rootName':_0x443e20}),_0x4014bb),{}),_0x35b5e3=_0x35aaa6['plugins']['get']('Users')['users']['map'](_0x25d6af=>({'id':_0x25d6af['id'],'name':_0x25d6af['name']})),_0x937f1b=_0x35aaa6['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b00d0=_0x35aaa6['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xcacdc4=_0x57c0e0['plugins']['get']('Users'),_0x5ad850=_0x57c0e0['plugins']['get']('TrackChangesEditing'),_0x56848c=_0x57c0e0['plugins']['get']('CommentsRepository');for(const _0x6bdaf7 of _0x56848c['getCommentThreads']())_0x6bdaf7['remove']();for(const _0x2ba37a of _0x35b5e3)_0xcacdc4['getUser'](_0x2ba37a['id'])||_0xcacdc4['addUser'](_0x2ba37a);_0xcacdc4['me']||_0xcacdc4['useAnonymousUser']();for(const _0x1bf037 of _0x5b00d0)_0x56848c['addCommentThread'](_0x1bf037);for(const _0x16d656 of _0x937f1b)_0x5ad850['addSuggestionData'](_0x16d656);_0x57c0e0['data']['set'](_0x20cf8b);}(_0x10fb5c,_0x404d79),_0x404d79['execute'](_0x75a82?'acceptAllSuggestions':'discardAllSuggestions');const _0x1c7aaf=Ge(_0x404d79)?_0x404d79['getFullData'](_0x5736d2):_0x404d79['data']['get'](_0x5736d2);return await _0x404d79['destroy'](),_0x1c7aaf;}class Me extends _0x36af6d{['options'];constructor(_0x2d1b4c,_0x12b688){super(_0x2d1b4c),this['options']=_0x12b688,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'](_0x7d7bda,_0x3a0203){if(!this['element'])return;const _0xe57650=[];for(const [_0x29a4b4,_0x44c3f8]of _0x7d7bda){const _0x1d93c1=document['createElement']('div');_0x1d93c1['setAttribute']('data-ck-root-name',_0x29a4b4),_0x1d93c1['className']=_0x44c3f8['classes']+'\x20ck-track-changes-preview__root-container',_0x1d93c1['innerHTML']=_0x44c3f8['content'],_0xe57650['push'](_0x1d93c1);}_0x3a0203(this['element'],_0xe57650),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x1e86e5{constructor(_0x11ae00){super(_0x11ae00),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x46c9ad=this['editor'],_0x1839f4=_0x46c9ad['locale'],_0x1364c3=_0x46c9ad['plugins']['get']('Dialog');let _0x414240;const _0x2664ef=function(_0x5ac6be){const _0x486b2c={};if('editables'in _0x5ac6be['ui']['view']){for(const [_0x31eb64,_0x3f7dd1]of Object['entries'](_0x5ac6be['ui']['view']['editables']))_0x486b2c[_0x31eb64]=_0x3f7dd1['element'];}else _0x486b2c[_0x5ac6be['model']['document']['getRootNames']()[0x0]]=_0x5ac6be['ui']['view']['editable']['element'];return _0x486b2c;}(_0x46c9ad),_0x49ee14=function(_0x3d67d7){let _0x3cc67d=0x0;for(const _0x4d34de of Object['values'](_0x3d67d7))_0x3cc67d=Math['max'](_0x3cc67d,_0x4d34de['getBoundingClientRect']()['width']);let _0x2b27e4=0x0;for(const _0x481998 of Object['values'](_0x3d67d7))_0x2b27e4+=_0x481998['getBoundingClientRect']()['height'];const _0x2642ba=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x2d1836=Math['min'](_0x2b27e4,_0x2642ba);return{'width':_0x3cc67d,'height':_0x2d1836};}(_0x2664ef);_0x1364c3['show']({'id':'finalContentPreview','title':c(_0x1839f4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x1839f4,{'dialogRects':_0x49ee14}),'onHide':()=>{_0x414240['detachFromDom']();},'onShow':()=>{_0x46c9ad['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x247b47=>{const _0x3fb940=this['_standarizeRootsData'](_0x247b47,_0x46c9ad,_0x2664ef);_0x1364c3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3fb940,_0x46c9ad['config']['get']('trackChanges.preview.renderFunction'));}),_0x414240=new _0x45ffab(_0x1839f4,[_0x1364c3['view']]),_0x414240['attachToDom'](),_0x414240['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x46c9ad['once']('destroy',()=>{_0x414240['detachFromDom']();});const _0x38df2f=_0x1364c3['view']['headerView']['class'];_0x1364c3['view']['headerView']['class']=_0x38df2f?_0x38df2f+'\x20ck-reset_all':'ck-reset_all',_0x1364c3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1364c3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5bc02f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5687e5=_0x5bc02f['previewMode'],_0x2e9253={};if('$labels'===_0x5687e5){for(const _0x48f7dd of _0x5bc02f['getMergeFieldsIds']())_0x2e9253[_0x48f7dd]=_0x5bc02f['getLabel'](_0x48f7dd)||_0x48f7dd;}else{const _0x554e94='$defaultValues'===_0x5687e5?_0x5bc02f['getDefaultValues']():_0x5bc02f['getDataSetValues'](_0x5687e5,!0x0);for(const _0x20c09d of Object['entries'](_0x554e94)){const [_0x2175d3,_0x1eb63b]=_0x20c09d;_0x2e9253[_0x2175d3]=null!==_0x1eb63b?_0x1eb63b:_0x5bc02f['getLabel'](_0x2175d3)||_0x2175d3;}}return{'mergeFieldsData':_0x2e9253};}['_standarizeRootsData'](_0x2596de,_0x9c5839,_0x330593){let _0x4afb3f;if('string'==typeof _0x2596de){const _0x217804=_0x9c5839['model']['document']['getRootNames']()[0x0];_0x4afb3f={[_0x217804]:_0x2596de};}else _0x4afb3f=_0x2596de;const _0x43f6be=this['_fixMediaEmbeds'](_0x4afb3f,_0x9c5839),_0xfc8964=function(_0x5a1502,_0x2a83e6){for(const [_0x22a8f7,_0x591585]of _0x5a1502)_0x591585['classes']=_0x2a83e6[_0x22a8f7]['classList']['value']['replace']('ck-focused','');return _0x5a1502;}(this['_sortRoots'](_0x9c5839)['reduce']((_0x42cbb0,_0x26990d)=>(_0x42cbb0['push']([_0x26990d,{'content':_0x43f6be[_0x26990d],'classes':''}]),_0x42cbb0),[]),_0x330593);return _0xfc8964;}['_fixMediaEmbeds'](_0x54b573,_0x278dae){if(!_0x278dae['plugins']['has']('MediaEmbedEditing'))return _0x54b573;const _0x5417e1=_0x278dae['plugins']['get']('MediaEmbedEditing');for(const [_0x207f9b,_0x128cd1]of Object['entries'](_0x54b573)){const _0x17a1ca=document['createElement']('div');_0x17a1ca['innerHTML']=_0x128cd1,(_0x17a1ca['querySelectorAll']('figure.media')['forEach'](_0x37edf4=>{const _0x5725d9=_0x37edf4['querySelector']('oembed');if(_0x5725d9){const _0x159668=_0x5725d9['getAttribute']('url');if(_0x159668){const _0x45114e=_0x5417e1['registry']['getMediaViewElement'](new _0x25b75f(_0x278dae['editing']['view']['document']),_0x159668,{'elementName':'','renderForEditingView':!0x0}),_0x5555a1=document['createElement']('div');_0x5555a1['classList']['add']('ck-media__wrapper'),_0x45114e['render'](_0x5555a1,_0x278dae['editing']['view']['domConverter']),_0x5725d9['replaceWith'](_0x5555a1);}}}),_0x54b573[_0x207f9b]=_0x17a1ca['innerHTML']);}return _0x54b573;}['_sortRoots'](_0x58bbfd){if(!function(_0x4f96d4){return void 0x0!==_0x4f96d4['getRootsAttributes'];}(_0x58bbfd))return _0x58bbfd['model']['document']['getRootNames']();const _0x35e7a0=[],_0x528f53=new Map();for(const _0x33b93f of _0x58bbfd['model']['document']['getRootNames']()){const _0x4cbc0b=_0x58bbfd['editing']['view']['getDomRoot'](_0x33b93f)['getClientRects']()['item'](0x0);_0x35e7a0['push'](_0x33b93f),_0x528f53['set'](_0x33b93f,_0x4cbc0b);}return _0x35e7a0['sort']((_0x3d16a7,_0x197a90)=>{const _0x3c45e5=_0x528f53['get'](_0x3d16a7),_0x1fc5f5=_0x528f53['get'](_0x197a90);return _0x3c45e5['y']-_0x1fc5f5['y']||_0x3c45e5['x']-_0x1fc5f5['x'];}),_0x35e7a0;}}class te extends _0x577ae7{static get['requires'](){return[T,_0x19d789];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51db9f){super(_0x51db9f),_0x51db9f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x51db9f['config']['define']('trackChanges.preview.renderFunction',(_0x3fcc6b,_0x1780a8)=>{for(const _0x5d3bb8 of _0x1780a8)_0x3fcc6b['appendChild'](_0x5d3bb8);});}}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};
|