@ckeditor/ckeditor5-track-changes 44.1.0-alpha.4 → 44.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +10 -10
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x3ff09c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1756fc,_0x475983){super(),this['id']=_0x475983['id'],this['type']=_0x475983['type'],this['subType']=_0x475983['subType']||null,this['author']=_0x475983['author'],this['creator']=_0x475983['creator']||_0x475983['author'],this['isExternal']=Boolean(_0x475983['attributes']&&_0x475983['attributes']['@external']),this['data']=null,this['_model']=_0x1756fc,this['_onAccept']=_0x475983['onAccept'],this['_onDiscard']=_0x475983['onDiscard'],this['_onAttributesChange']=_0x475983['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x475983['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 _0x2c7e73=this;for(;_0x2c7e73['previous'];)_0x2c7e73=_0x2c7e73['previous'];return _0x2c7e73;}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'](_0x5c3368){this['_markerNames']['add'](_0x5c3368);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3c1e32=>this['_model']['markers']['get'](_0x3c1e32))['filter'](_0x5ccacf=>_0x5ccacf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x35a8a7=>{for(const _0x37c0fb of this['getMarkers']())_0x35a8a7['removeMarker'](_0x37c0fb);}),this['_markerNames']['clear']();}['removeMarker'](_0x193aa6){this['_model']['change'](_0x53ece8=>{_0x53ece8['removeMarker'](_0x193aa6);}),this['_markerNames']['delete'](_0x193aa6);}['addRange'](_0x817559){const _0x2f8467='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2f8467),this['_model']['change'](_0x3999ca=>{_0x3999ca['addMarker'](_0x2f8467,{'range':_0x817559,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4843d4){for(const _0x3cbbfb of this['getRanges']())if(_0x3cbbfb['isIntersecting'](_0x4843d4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x310a3b=>_0x310a3b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x388b30,_0x1b130e)=>[..._0x388b30,..._0x1b130e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4b9d74=this['getRanges']();if(0x1!=_0x4b9d74['length'])return null;const _0x244293=_0x4b9d74[0x0],_0x24cce6=_0x244293['start']['nodeAfter'],_0x5c5e7d=_0x244293['end']['nodeBefore'];return _0x24cce6 instanceof _0x1602a7?_0x24cce6!=_0x5c5e7d?null:_0x24cce6: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 _0x5ab993=[];let _0x37d98a=this['head'];for(;_0x37d98a;)_0x5ab993['push'](_0x37d98a),_0x37d98a=_0x37d98a['next'];return _0x5ab993;}['setAttribute'](_0xc20728,_0x29ba1b){const _0x3a6499=_0x160559(this['attributes']);_0x2321c7(_0x3a6499,_0xc20728,_0x29ba1b),_0x3c15de(_0x3a6499,this['attributes'])||(this['attributes']=_0x3a6499,this['_onAttributesChange'](_0x3a6499));}['removeAttribute'](_0x1d4e0f){const _0x3eb2d8=_0x160559(this['attributes']);_0x50ceeb(_0x3eb2d8,_0x1d4e0f),_0x3c15de(_0x3eb2d8,this['attributes'])||(this['attributes']=_0x3eb2d8,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 _0x42487e()['substr'](0x1,0x5);}}function o(_0x46cca9,_0x5dac39,_0x1ae679){const _0x31ada6=_0x46cca9['t'],t=_0x46cca9['t'];switch(_0x5dac39){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1ae679);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1ae679);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1ae679);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1ae679);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1ae679);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',_0x1ae679);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1ae679);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1ae679);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1ae679);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1ae679);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1ae679);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1ae679);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1ae679);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1ae679);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1ae679);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1ae679);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1ae679);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1ae679);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1ae679);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1ae679);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1ae679);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1ae679);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1ae679);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1ae679);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'},_0x1ae679);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1ae679);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1ae679);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1ae679);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1ae679);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1ae679);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'},_0x1ae679);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1ae679);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1ae679);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1ae679);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1ae679);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'},_0x1ae679);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1ae679);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'},_0x1ae679);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'},_0x1ae679);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1ae679);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'},_0x1ae679);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1ae679);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'},_0x1ae679);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1ae679);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1ae679);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'},_0x1ae679);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1ae679);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 _0x31ada6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1ae679);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x31ada6({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1ae679);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1ae679);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'},_0x1ae679);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'},_0x1ae679);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'},_0x1ae679);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5dac39;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x334f95,_0x533226){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x334f95,this['_locale']=_0x533226;}['getDescriptions'](_0x17cc7d){const _0x30c67e=[],_0x253ad0=new Set(),_0x8026b8=new Set();for(let _0x26f70c=0x0;_0x26f70c<_0x17cc7d['length'];_0x26f70c++){const _0x2ddfc8=_0x17cc7d[_0x26f70c];if(!_0x2ddfc8['isInContent'])continue;const _0x481a33=this['_handleCustomCallbackDescription'](_0x2ddfc8);if(_0x481a33){if(null!=_0x2ddfc8['subType']){if(_0x253ad0['has'](_0x2ddfc8['subType']))continue;_0x253ad0['add'](_0x2ddfc8['subType']);}_0x30c67e['push'](_0x481a33);}else{if('attribute'!=_0x2ddfc8['type'])'insertion'!=_0x2ddfc8['type']&&'deletion'!=_0x2ddfc8['type']||this['_handleInsertRemoveSuggestionDescription'](_0x30c67e,_0x2ddfc8,_0x17cc7d[_0x26f70c+0x1]);else{const _0x21d374=_0x2ddfc8['data']['key'];if(_0x8026b8['has'](_0x21d374))continue;_0x8026b8['add'](_0x2ddfc8['data']['key']),_0x21d374==m?this['_handleRenameSuggestionDescription'](_0x30c67e,_0x2ddfc8):this['_handleAttributeSuggestionDescription'](_0x30c67e,_0x2ddfc8);}}}return this['_resolveDescriptionItems'](_0x30c67e);}['registerDescriptionCallback'](_0xe677f4){this['_customCallbacks']['push'](_0xe677f4);}['registerElementLabel'](_0x1ec9d4,_0x299963,_0x1e57d6=_0x22cf47['normal']){'function'==typeof _0x1ec9d4?_0x42ac72(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ec9d4,'label':_0x299963,'priority':_0x1e57d6}):this['_itemLabels']['set'](_0x1ec9d4,_0x299963);}['registerAttributeLabel'](_0x566387,_0x4a9617){this['_attributeLabels']['set'](_0x566387,_0x4a9617);}['getItemLabel'](_0x2924fc,_0x52f968=0x1){let _0x5ef8fe;for(const _0x2e346b of this['_itemLabelsCallbacks'])if(_0x2e346b['matchingCallback'](_0x2924fc)){_0x5ef8fe=_0x2e346b['label'];break;}return _0x5ef8fe||(_0x5ef8fe=this['_itemLabels']['get'](_0x2924fc['name'])),_0x5ef8fe?_0x5ef8fe(_0x52f968):0x1!==_0x52f968?_0x52f968+'\x20'+_0x2924fc['name']+'s':''+_0x2924fc['name'];}['_addDescriptionItems'](_0xf4875a,_0x2f2280){const _0x232b65=_0x2f2280['getFirstRange']()['getWalker'](),_0x4b7297='insertion'==_0x2f2280['type']?'add':'remove';for(const _0x2d8bb1 of _0x232b65){const _0x3bfa09=_0x2d8bb1['item'],_0x1ab9a8=_0xf4875a[_0xf4875a['length']-0x1];if(_0x3bfa09['is']('$textProxy'))_0x1ab9a8&&_0x1ab9a8['type']['indexOf']('Container')>-0x1&&_0xf4875a['pop'](),_0x1ab9a8&&'text'==_0x1ab9a8['type']?_0x1ab9a8[_0x4b7297]+=_0x3bfa09['data']:_0xf4875a['push']({'type':'text','add':'add'==_0x4b7297?_0x3bfa09['data']:'','remove':'remove'==_0x4b7297?_0x3bfa09['data']:''});else{if(this['_schema']['isObject'](_0x3bfa09)){const _0x5eb749=_0x3bfa09;if(_0x1ab9a8&&_0x1ab9a8['type']['indexOf']('Container')>-0x1&&_0xf4875a['pop'](),'elementEnd'==_0x2d8bb1['type'])continue;_0x1ab9a8&&_0x1ab9a8['type']==_0x4b7297+'Object'&&_0x1ab9a8['element']['name']==_0x5eb749['name']?_0x1ab9a8['quantity']++:_0xf4875a['push']({'type':_0x4b7297+'Object','element':_0x5eb749,'quantity':0x1}),_0x232b65['skip'](_0x3393c7=>!('elementEnd'==_0x3393c7['type']&&_0x3393c7['item']==_0x3bfa09));}else{if(this['_schema']['checkChild'](_0x3bfa09,'$text')||_0x3bfa09['is']('element','softBreak')){const _0x56d59e=_0x3bfa09;if('add'==_0x4b7297&&'elementStart'==_0x2d8bb1['type']||'remove'==_0x4b7297&&'elementEnd'==_0x2d8bb1['type'])continue;if(_0x1ab9a8&&-0x1==_0x1ab9a8['type']['indexOf']('Container')){'text'==_0x1ab9a8['type']&&(_0x1ab9a8[_0x4b7297]+='\x0a');continue;}let _0x47b8db;if(_0x47b8db='add'==_0x4b7297?_0x56d59e['nextSibling']&&!this['_schema']['isObject'](_0x56d59e['nextSibling'])?_0x56d59e['nextSibling']:null:_0x56d59e['previousSibling']&&!this['_schema']['isObject'](_0x56d59e['previousSibling'])?_0x56d59e['previousSibling']:null,_0x56d59e['isEmpty']||_0x47b8db&&_0x47b8db['isEmpty']){const _0x4ef880=_0x47b8db&&_0x47b8db['isEmpty']?_0x47b8db:_0x56d59e;_0x1ab9a8&&_0x1ab9a8['type']==_0x4b7297+'EmptyContainer'&&_0x1ab9a8['element']['name']==_0x4ef880['name']?_0x1ab9a8['quantity']++:_0xf4875a['push']({'type':_0x4b7297+'EmptyContainer','element':_0x4ef880,'quantity':0x1});}else _0xf4875a['push']({'type':_0x4b7297+'Container','element':_0x56d59e});}}}}}['_resolveDescriptionItems'](_0x4c8fc0){const _0x5019a2=this['_locale'],_0x56e477=[],_0x3a80ef=[],_0x14f051=[];for(const _0x342459 of _0x4c8fc0)switch(_0x342459['type']){case'text':if(_0x342459['add']=_0x342459['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x342459['remove']=_0x342459['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x342459['add']&&''!=_0x342459['remove']){_0x56e477['push']({'type':'replace','content':o(_0x5019a2,'REPLACE_TEXT',['\x22'+_0x342459['remove']+'\x22','\x22'+_0x342459['add']+'\x22'])});continue;}if(null!=_0x342459['add']['match'](/^ +$/)){_0x56e477['push']({'type':'insertion','content':o(_0x5019a2,'*Insert:*\x20%0',o(_0x5019a2,'ELEMENT_SPACE',_0x342459['add']['length']))});continue;}if(null!=_0x342459['remove']['match'](/^ +$/)){_0x56e477['push']({'type':'deletion','content':o(_0x5019a2,'*Remove:*\x20%0',o(_0x5019a2,'ELEMENT_SPACE',_0x342459['remove']['length']))});continue;}if(''!=_0x342459['add']){_0x56e477['push']({'type':'insertion','content':o(_0x5019a2,'*Insert:*\x20%0','\x22'+_0x342459['add']+'\x22')});continue;}_0x56e477['push']({'type':'deletion','content':o(_0x5019a2,'*Remove:*\x20%0','\x22'+_0x342459['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x56e477['push']({'type':'insertion','content':o(_0x5019a2,'*Insert:*\x20%0',this['getItemLabel'](_0x342459['element'],_0x342459['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x56e477['push']({'type':'deletion','content':o(_0x5019a2,'*Remove:*\x20%0',this['getItemLabel'](_0x342459['element'],_0x342459['quantity']))});continue;case'addContainer':_0x56e477['push']({'type':'insertion','content':o(_0x5019a2,'*Split:*\x20%0',this['getItemLabel'](_0x342459['element'],_0x342459['quantity']))});continue;case'removeContainer':_0x56e477['push']({'type':'deletion','content':o(_0x5019a2,'*Merge:*\x20%0',this['getItemLabel'](_0x342459['element'],_0x342459['quantity']))});continue;case'addFormat':_0x3a80ef['push'](_0x342459['key']);continue;case'removeFormat':_0x14f051['push'](_0x342459['key']);continue;default:_0x56e477['push'](_0x342459);}if(_0x3a80ef['length']){const _0x36a34d=_0x3a80ef['map'](_0x5ae715=>this['_attributeLabels']['has'](_0x5ae715)?this['_attributeLabels']['get'](_0x5ae715):_0x5ae715)['join'](',\x20');_0x56e477['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x36a34d)});}if(_0x14f051['length']){const _0x23ba25=_0x14f051['map'](_0x308140=>this['_attributeLabels']['has'](_0x308140)?this['_attributeLabels']['get'](_0x308140):_0x308140)['join'](',\x20');_0x56e477['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x23ba25)});}return _0x56e477;}['_handleCustomCallbackDescription'](_0x4f932f){for(const _0xd89e3 of this['_customCallbacks']){const _0x2e26dc=_0xd89e3(_0x4f932f);if(_0x2e26dc&&'type'in _0x2e26dc)return _0x2e26dc;}}['_handleAttributeSuggestionDescription'](_0x43a05c,_0x1b98ad){const _0x2d9053=_0x1b98ad['data'],_0x32e375=void 0x0===_0x2d9053['newValue']?'removeFormat':'addFormat';_0x43a05c['push']({'type':_0x32e375,'key':_0x2d9053['key']});}['_handleRenameSuggestionDescription'](_0x26990b,_0x3db589){_0x26990b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3db589['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5699cb,_0x5cab20,_0x45d22c){if(this['_addDescriptionItems'](_0x5699cb,_0x5cab20),_0x45d22c&&_0x45d22c['getFirstRange']()&&!_0x5cab20['getFirstRange']()['end']['isEqual'](_0x45d22c['getFirstRange']()['start'])){const _0x2c9f77=_0x5699cb[_0x5699cb['length']-0x1],_0x40fdda='insertion'==_0x5cab20['type']?'add':'remove';_0x2c9f77&&'text'==_0x2c9f77['type']&&(_0x2c9f77[_0x40fdda]+='\x0a');}}}class U extends _0x2c2070{['afterInit'](){const _0x596a77=this['editor'],_0x417de5=_0x596a77['plugins']['get']('TrackChangesEditing');_0x596a77['commands']['get']('showAIAssistant')&&_0x417de5['enableCommand']('showAIAssistant');}}class V extends _0x2c2070{['afterInit'](){const _0x22d18e=this['editor'],_0x42bcb7=_0x22d18e['locale'];if(!_0x22d18e['plugins']['has']('AlignmentEditing'))return;const _0x1d913b=_0x22d18e['plugins']['get']('TrackChangesEditing');_0x1d913b['enableDefaultAttributesIntegration']('alignment'),_0x1d913b['registerBlockAttribute']('alignment'),_0x1d913b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x42bcb7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd792aa=this['editor'],_0x457b5b=_0xd792aa['locale'];_0xd792aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f1a40=>{if('formatBlock'!=_0x1f1a40['type'])return;const {data:_0x54c597}=_0x1f1a40;if(_0x54c597&&'alignment'==_0x54c597['commandName']){const _0x54439d=_0x54c597['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x457b5b,'*Format:*\x20%0',function(_0x3a6e6d){switch(_0x3a6e6d){case'left':return o(_0x457b5b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x457b5b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x457b5b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x457b5b,'FORMAT_JUSTIFY_TEXT');}}(_0x54439d))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2c2070{['afterInit'](){const _0x2598b7=this['editor'],_0x2472af=_0x2598b7['plugins']['get']('TrackChangesEditing'),_0x3dc068=_0x2598b7['locale'];for(const _0x668fc8 of Zt){if(!_0x2598b7['plugins']['has'](_0x668fc8))continue;const _0x5ad9a0=_0x668fc8['slice'](0x0,-0x7)['toLowerCase'](),_0x356bfe='FORMAT_'+_0x5ad9a0['toUpperCase']();_0x2472af['enableDefaultAttributesIntegration'](_0x5ad9a0),_0x2472af['registerInlineAttribute'](_0x5ad9a0),_0x2472af['descriptionFactory']['registerAttributeLabel'](_0x5ad9a0,o(_0x3dc068,_0x356bfe));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5099c8=this['editor'],_0x3ab053=_0x5099c8['locale'],_0x2d9dd2=_0x5099c8['plugins']['get']('TrackChangesEditing');function _0x182372(_0x32d78c,_0x212d3e){_0x2d9dd2['descriptionFactory']['registerDescriptionCallback'](_0x2e6856=>{if('formatInline'!=_0x2e6856['type'])return;const {data:_0xea494d}=_0x2e6856;return _0xea494d&&_0xea494d['commandName']===_0x32d78c?_0xea494d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ab053,'*Format:*\x20%0',_0x212d3e)}:{'type':'format','content':o(_0x3ab053,'*Remove\x20format:*\x20%0',_0x212d3e)}:void 0x0;});}_0x182372('bold',o(_0x3ab053,'FORMAT_BOLD')),_0x182372('italic',o(_0x3ab053,'FORMAT_ITALIC')),_0x182372('underline',o(_0x3ab053,'FORMAT_UNDERLINE')),_0x182372('code',o(_0x3ab053,'FORMAT_CODE')),_0x182372('strikethrough',o(_0x3ab053,'FORMAT_STRIKETHROUGH')),_0x182372('subscript',o(_0x3ab053,'FORMAT_SUBSCRIPT')),_0x182372('superscript',o(_0x3ab053,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2c2070{['afterInit'](){const _0x37868f=this['editor'],_0x408594=_0x37868f['locale'];if(!_0x37868f['plugins']['has']('BlockQuoteEditing'))return;const _0x315533=_0x37868f['plugins']['get']('TrackChangesEditing'),_0x65d568=this['editor']['commands']['get']('blockQuote');_0x315533['enableCommand']('blockQuote',(_0x5a5100,_0x5182b8={})=>{const _0x1c2792=this['editor']['model']['document']['selection'],_0x3e28d4=_0x5182b8&&void 0x0!==_0x5182b8['forceValue']?_0x5182b8['forceValue']:!_0x65d568['value'];let _0x24322e=[];if(_0x3e28d4){const _0x1461aa=Array['from'](_0x1c2792['getSelectedBlocks']())['filter'](_0x42fc73=>oo(_0x42fc73)||function(_0x20e56c,_0x420331){const _0x323fdf=_0x420331['checkChild'](_0x20e56c['parent'],'blockQuote'),_0x5f4722=_0x420331['checkChild'](['$root','blockQuote'],_0x20e56c);return _0x323fdf&&_0x5f4722;}(_0x42fc73,this['editor']['model']['schema']));_0x24322e=to(_0x1461aa,_0x37868f['model']);}else{const _0x4dee9e=Array['from'](_0x1c2792['getSelectedBlocks']())['filter'](_0xff506f=>oo(_0xff506f));_0x24322e=to(_0x4dee9e,_0x37868f['model']);}_0x37868f['model']['change'](()=>{for(const _0x156171 of _0x24322e)_0x315533['markBlockFormat'](_0x156171,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3e28d4}]});});}),_0x315533['descriptionFactory']['registerDescriptionCallback'](_0x25bb4c=>{const {data:_0x5450c5}=_0x25bb4c;if(_0x5450c5&&'blockQuote'==_0x5450c5['commandName']){const _0x287b38=o(_0x408594,'ELEMENT_BLOCK_QUOTE');return _0x5450c5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x408594,'*Set\x20format:*\x20%0',_0x287b38)}:{'type':'format','content':o(_0x408594,'*Remove\x20format:*\x20%0',_0x287b38)};}});}}function oo(_0x2a012e){return'blockQuote'==_0x2a012e['parent']['name'];}class L extends _0x2c2070{['afterInit'](){const _0x275871=this['editor'],_0x2b0e67=_0x275871['locale'],_0x1f3c6c=_0x275871['plugins']['get']('TrackChangesEditing');_0x275871['plugins']['has']('BookmarkEditing')&&(_0x1f3c6c['enableCommand']('insertBookmark'),_0x1f3c6c['enableDefaultAttributesIntegration']('updateBookmark'),_0x1f3c6c['registerBlockAttribute']('bookmarkId'),_0x1f3c6c['descriptionFactory']['registerDescriptionCallback'](_0x2c8ff6=>{if('insertion'!=_0x2c8ff6['type']&&'deletion'!=_0x2c8ff6['type']&&'attribute'!=_0x2c8ff6['type'])return;const _0x23de4a=_0x2c8ff6['getContainedElement']();if(null==_0x23de4a)return;if(!_0x23de4a['is']('element','bookmark'))return;const _0x3560f7=_0x23de4a['getAttribute']('bookmarkId');if('insertion'==_0x2c8ff6['type'])return{'type':'insertion','content':o(_0x2b0e67,'*Insert:*\x20%0','\x22'+_0x3560f7+'\x22\x20'+o(_0x2b0e67,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2c8ff6['type'])return{'type':'deletion','content':o(_0x2b0e67,'*Remove:*\x20%0','\x22'+_0x3560f7+'\x22\x20'+o(_0x2b0e67,'ELEMENT_BOOKMARK'))};const {data:_0x23aa05}=_0x2c8ff6;if(!_0x23aa05||'bookmarkId'!=_0x23aa05['key'])return;return{'type':'format','content':o(_0x2b0e67,'*Set\x20bookmark:*\x20%0','\x22'+_0x23aa05['newValue']+'\x22')};}));}}class J extends _0x2c2070{['afterInit'](){const _0x3ecf83=this['editor'];_0x3ecf83['plugins']['has']('CaseChange')&&(_0x3ecf83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3ecf83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3ecf83['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2c2070{['afterInit'](){const _0x444a64=this['editor'];_0x444a64['commands']['get']('ckbox')&&_0x444a64['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2c2070{['afterInit'](){const _0x450b9f=this['editor'];if(!_0x450b9f['plugins']['has']('CodeBlock'))return;const _0xeeb3fa=_0x450b9f['plugins']['get']('TrackChangesEditing'),_0x4a377b=_0x450b9f['locale'],_0x501002=_0x450b9f['config']['get']('codeBlock')['languages'],_0x4146ff=_0x450b9f['commands']['get']('codeBlock');_0xeeb3fa['enableCommand']('indentCodeBlock'),_0xeeb3fa['enableCommand']('outdentCodeBlock'),_0xeeb3fa['enableCommand']('codeBlock',(_0x143892,_0x2963f7={})=>{const _0x22918e=_0x450b9f['model'],_0x3988d9=_0x450b9f['model']['document']['selection'],_0x5f4ea4=_0x2963f7&&void 0x0!==_0x2963f7['forceValue']?_0x2963f7['forceValue']:!_0x4146ff['value'];let _0x548ee6;_0x2963f7['language']||(_0x2963f7['language']=_0x501002[0x0]['language']),_0x548ee6=_0x5f4ea4?Array['from'](_0x3988d9['getSelectedBlocks']())['filter'](_0x26377a=>eo(_0x26377a)||function(_0x2c2755,_0x373490){if(_0x2c2755['is']('rootElement')||_0x373490['isLimit'](_0x2c2755))return!0x1;return _0x373490['checkChild'](_0x2c2755['parent'],'codeBlock');}(_0x26377a,_0x22918e['schema'])):Array['from'](_0x3988d9['getSelectedBlocks']())['filter'](_0xf61d4=>eo(_0xf61d4));const _0x1b2bee=to(_0x548ee6,_0x22918e);_0x22918e['change'](()=>{for(const _0x11bd64 of _0x1b2bee)_0xeeb3fa['markBlockFormat'](_0x11bd64,{'commandName':'codeBlock','commandParams':[{..._0x2963f7,'forceValue':_0x5f4ea4}],'formatGroupId':'blockName'});});}),(_0xeeb3fa['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d3c03=>o(_0x4a377b,'ELEMENT_CODE_BLOCK',_0x4d3c03)),_0xeeb3fa['descriptionFactory']['registerDescriptionCallback'](_0x496cfc=>{if('formatBlock'!=_0x496cfc['type'])return;const _0x41992d=_0x4a377b['t'],{data:_0x1c4afd}=_0x496cfc;if(!_0x1c4afd||'codeBlock'!=_0x1c4afd['commandName'])return;const _0x2ba6ed=_0x1c4afd['commandParams'][0x0]['language'],_0xf62c82=_0x41992d(_0x501002['find'](_0x4b2b3b=>_0x4b2b3b['language']===_0x2ba6ed)['label'])['toLowerCase']();return _0x1c4afd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a377b,'*Set\x20format:*\x20%0',o(_0x4a377b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xf62c82+')')}:{'type':'format','content':o(_0x4a377b,'*Remove\x20format:*\x20%0',o(_0x4a377b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3b0b78){return'codeBlock'==_0x3b0b78['name'];}class z extends _0x2c2070{['afterInit'](){const _0x435634=this['editor'];if(!_0x435634['plugins']['has']('CommentsEditing'))return;_0x435634['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1b753d,_0x4431ce,_0x1e0a7a){const _0xdb6c94=[];for(const _0x4de116 of _0x4431ce['getItems']())_0x4de116['hasAttribute'](_0x1b753d)&&_0xdb6c94['push'](_0x1e0a7a['createRangeOn'](_0x4de116));return _0xdb6c94;}function Ne(_0x11231d,_0x5c0766,{showActiveMarker:_0xa4ad2a=!0x0}={}){const _0x5c66cf=_0x11231d['plugins']['get']('TrackChangesEditing');return(_0xc2a2f5,_0x924a8a,_0x8cecee)=>{if(!_0x8cecee['consumable']['test'](_0x924a8a['markerRange'],_0xc2a2f5['name']))return;const _0x2000df=_0x924a8a['markerRange']['getWalker'](),_0x11712f=_0x924a8a['markerRange']['start'],_0x31d711=_0x11231d['model']['schema'];let _0x84a0ad=null,_0x54a26f=null,_0x41f327=!0x1,_0x18e95d=!0x1;for(const _0x50a4e6 of _0x2000df){const _0x5c358b=_0x50a4e6['item'];_0x41f327=_0x41f327||_0x31d711['isContent'](_0x5c358b);const _0x16d49a=_0x8cecee['mapper']['toViewElement'](_0x5c358b);if(_0x16d49a&&_0x16d49a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x50a4e6['type']&&(_0x31d711['isBlock'](_0x5c358b)&&!_0x31d711['isLimit'](_0x5c358b)&&(_0x5c358b['nextSibling']||_0x11712f['isAtEnd']?_0x84a0ad&&_0x84a0ad['parent']==_0x5c358b||(_0x84a0ad=_0x5c358b,_0x4b3659(_0x50a4e6['previousPosition']),_0x18e95d=!0x0):_0x54a26f=_0x54a26f||_0x50a4e6['previousPosition']));}function _0x4b3659(_0x19d502){const {authorId:_0x3117b7}=_0x5c66cf['_splitMarkerName'](_0x924a8a['markerName']),_0x76be38=_0x8cecee['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5c0766,'data-author-id':_0x3117b7}),_0x1eff35=_0x8cecee['mapper']['toViewPosition'](_0x19d502);_0xa4ad2a&&_0x5c66cf['activeMarkers']['includes'](_0x924a8a['markerName'])&&_0x8cecee['writer']['addClass']('ck-suggestion-marker--active',_0x76be38),_0x8cecee['writer']['insert'](_0x1eff35,_0x76be38),_0x8cecee['mapper']['bindElementToMarker'](_0x76be38,_0x924a8a['markerName']);}_0x41f327||_0x18e95d||!_0x54a26f||_0x4b3659(_0x54a26f);};}class K extends _0x2c2070{static get['requires'](){return[_0xed7520];}['init'](){const _0x1cbb48=this['editor'],_0xdbe6c0=_0x1cbb48['plugins']['get']('TrackChangesEditing');_0xdbe6c0['enableCommand']('delete');const _0xcc78a7=_0x1cbb48['commands']['get']('deleteForward');_0xdbe6c0['enableCommand']('deleteForward',(_0x3f09ed,_0x2315cf={})=>{const _0x2fa803=_0x1cbb48['model']['createSelection'](_0x1cbb48['model']['document']['selection']);_0x2fa803['isCollapsed']&&_0x1cbb48['model']['modifySelection'](_0x2fa803,{'direction':'forward','unit':_0x2315cf['unit']});const _0x328830=_0x2fa803['getFirstRange'](),_0x4cb2f3=_0x1b403d['fromRange'](_0x328830);let _0x142a74;_0x3f09ed(_0x2315cf),_0x142a74='$graveyard'==_0x4cb2f3['root']['rootName']?_0x1cbb48['model']['createRange'](_0x328830['start']):_0x1cbb48['model']['createRange'](_0x4cb2f3['start'],_0x4cb2f3['end']),_0x4cb2f3['detach'](),_0x1cbb48['model']['enqueueChange'](_0xcc78a7['buffer']['batch'],_0x19fccc=>{_0xcc78a7['buffer']['lock'](),_0x19fccc['setSelection'](_0x19fccc['createRange'](_0x142a74['end'])),_0xcc78a7['buffer']['unlock']();});}),_0x1cbb48['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x1cbb48,'merge'),{'priority':'high'}),_0x1cbb48['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x50dd82,_0x32b21b,_0x553ea9)=>{_0x553ea9['options']['showSuggestionHighlights']&&Ne(_0x1cbb48,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x50dd82,_0x32b21b,_0x553ea9);},{'priority':'high'}),_0x1cbb48['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4cae43,_0x59ebef,_0x19b320)=>{const _0xbe2ac0=_0x19b320['mapper']['markerNameToElements'](_0x59ebef['markerName']);if(_0xbe2ac0){for(const _0x4f8c22 of _0xbe2ac0)_0x4f8c22['is']('uiElement')&&(_0x19b320['mapper']['unbindElementFromMarkerName'](_0x4f8c22,_0x59ebef['markerName']),_0x19b320['writer']['remove'](_0x4f8c22));}},{'priority':'high'});}}class W extends _0x2c2070{['afterInit'](){const _0x277ebf=this['editor'];if(!_0x277ebf['plugins']['has']('ListEditing'))return;const _0x506212=_0x277ebf['locale'],_0x1a34e2=_0x277ebf['plugins']['get']('TrackChangesEditing'),_0x4af513=_0x277ebf['plugins']['has']('TodoListEditing'),_0x38e569=!!_0x277ebf['config']['get']('list.multiBlock');function _0x4b7ba0(_0xf28af9){return{'type':'format','content':''+o(_0x506212,'*Set\x20format:*\x20%0',_0xf28af9)};}function _0x1807b2(_0x3b8c51){return{'type':'format','content':''+o(_0x506212,'*Remove\x20format:*\x20%0',_0x3b8c51)};}_0x1a34e2['enableDefaultAttributesIntegration']('numberedList'),_0x1a34e2['enableDefaultAttributesIntegration']('bulletedList'),_0x1a34e2['enableDefaultAttributesIntegration']('customNumberedList'),_0x1a34e2['enableDefaultAttributesIntegration']('customBulletedList'),_0x1a34e2['enableDefaultAttributesIntegration']('indentList'),_0x1a34e2['enableDefaultAttributesIntegration']('outdentList'),_0x1a34e2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1a34e2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1a34e2['registerBlockAttribute']('listItemId'),_0x1a34e2['registerBlockAttribute']('listType'),_0x1a34e2['registerBlockAttribute']('listIndent'),_0x38e569&&(_0x1a34e2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1a34e2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4af513&&(_0x1a34e2['enableDefaultAttributesIntegration']('todoList'),_0x1a34e2['enableDefaultAttributesIntegration']('checkTodoList'),_0x1a34e2['registerBlockAttribute']('todoListChecked'),_0x1a34e2['descriptionFactory']['registerDescriptionCallback'](_0x112fc3=>{const {data:_0x31e0b8}=_0x112fc3;if(_0x31e0b8&&'todoListChecked'==_0x31e0b8['key'])return{'type':'format','content':_0x31e0b8['newValue']?o(_0x506212,'*Check\x20item*'):o(_0x506212,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3a0329=>{if(_0x3a0329['batch']['isUndo'])return!0x1;let _0x32fcce=!0x1;const _0xb0b1ae=_0x1a34e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d1d9f=>'todoListChecked'===_0x1a34e2['_getAttributeKey'](_0x4d1d9f));for(const _0x1bb743 of _0xb0b1ae){'todo'!=_0x1bb743['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1a34e2['_findSuggestions'](_0x1bb743['getFirstRange'](),'attribute')['find'](_0x12f793=>'listType'===_0x1a34e2['_getAttributeKey'](_0x12f793['suggestion']))||(_0x3a0329['removeMarker'](_0x1bb743['getFirstMarker']()),_0x32fcce=!0x0));}return _0x32fcce;})),_0x1a34e2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x506212,'FORMAT_INDENT'));const _0x2e992b={'type':'format','content':''};_0x1a34e2['descriptionFactory']['registerDescriptionCallback'](_0x1d694e=>{const {data:_0x2b962d}=_0x1d694e;if(!_0x2b962d||'listType'!=_0x2b962d['key'])return;let _0x55f5d7=_0x1d694e['head'];for(;_0x55f5d7;){if(_0x55f5d7['data']&&(('listStyle'==_0x55f5d7['data']['key']||'listMarkerStyle'==_0x55f5d7['data']['key'])&&(_0x55f5d7['data']['newValue']&&'default'!=_0x55f5d7['data']['newValue']||'default'!=_0x55f5d7['data']['oldValue']&&!_0x2b962d['newValue'])||!_0x38e569&&_0x55f5d7['data']['key']==m))return _0x2e992b;_0x55f5d7=_0x55f5d7['next'];}if(null==_0x2b962d['newValue'])switch(_0x2b962d['oldValue']){case'bulleted':return _0x1807b2(o(_0x506212,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1807b2(o(_0x506212,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1807b2(o(_0x506212,'ELEMENT_TODO_LIST'));}switch(_0x2b962d['newValue']){case'bulleted':return _0x4b7ba0(o(_0x506212,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4b7ba0(o(_0x506212,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4b7ba0(o(_0x506212,'ELEMENT_TODO_LIST'));}}),_0x1a34e2['descriptionFactory']['registerDescriptionCallback'](_0x1421be=>{const {data:_0x1ca18d}=_0x1421be;if(_0x1ca18d&&'listIndent'==_0x1ca18d['key'])return null==_0x1ca18d['newValue']||null==_0x1ca18d['oldValue']&&0x0==_0x1ca18d['newValue']?_0x2e992b:void 0x0;}),_0x1a34e2['descriptionFactory']['registerDescriptionCallback'](_0x234827=>{if('attribute'!=_0x234827['type'])return;const {data:_0x59f980}=_0x234827;if(!_0x59f980||'listItemId'!=_0x59f980['key'])return;const _0x336d22=Te(_0x234827);return'newValue'==_0x336d22?{'type':'format','content':o(_0x506212,'*Merge:*\x20list\x20item')}:'oldValue'==_0x336d22?{'type':'format','content':o(_0x506212,'*Split:*\x20list\x20item')}:_0x2e992b;}),_0x277ebf['model']['document']['registerPostFixer'](_0x5c0c1e=>this['listItemIdFixer'](_0x5c0c1e)),_0x277ebf['model']['document']['registerPostFixer'](_0xc48f4c=>this['noTrackChangesFixer'](_0xc48f4c)),_0x277ebf['model']['document']['on']('change:data',(_0x597503,_0x54d36e)=>{if(_0x54d36e['isUndo']||!_0x54d36e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x24af1e){if(_0x24af1e['batch']['isUndo']||!_0x24af1e['batch']['isLocal'])return!0x1;let _0x3c2b24=!0x1;const _0x43528a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27eb92=>_0x27eb92['data']&&'listItemId'==_0x27eb92['data']['key'])['filter'](_0x5b0dea=>_0x5b0dea['data']['newValue']&&_0x5b0dea['data']['oldValue']);for(const _0x53d241 of _0x43528a)Te(_0x53d241)||(_0x24af1e['removeMarker'](_0x53d241['getFirstMarker']()),_0x3c2b24=!0x0);return _0x3c2b24;}['noTrackChangesFixer'](_0x266c37){if(_0x266c37['batch']['isUndo']||!_0x266c37['batch']['isLocal'])return!0x1;const _0x7407d9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x7407d9['trackChangesCommand']['value'])return!0x1;let _0x31cd2e=!0x1;const _0x31cf4c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xa58a84=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x50249e=>'attribute'==_0x50249e['type'])['filter'](_0x4152ba=>_0x31cf4c['includes'](_0x4152ba['attributeKey']));if(0x0==_0xa58a84['length'])return _0x31cd2e;for(const _0x3c5bf6 of _0xa58a84){const _0x15e2d1=_0x7407d9['_findSuggestions'](_0x3c5bf6['range'],'attribute')['filter'](_0x1dbe27=>!_0x1dbe27['meta']['isNextTo'])['map'](_0x2403de=>_0x2403de['suggestion'])['filter'](_0x25c607=>{const _0x884519=_0x7407d9['_getAttributeKey'](_0x25c607);return _0x31cf4c['includes'](_0x884519);});if(_0x15e2d1['length']){for(const _0x1c8525 of _0x15e2d1)_0x266c37['removeMarker'](_0x1c8525['getFirstMarker']());_0x31cd2e=!0x0;}}return _0x31cd2e;}['assureChains'](){const _0x259676=this['editor']['plugins']['get']('TrackChangesEditing'),_0x645e01=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3fdba6;const _0x5182a4=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55525f=>{if(_0x55525f['data']['oldRange']||!_0x55525f['data']['newRange'])return null;if(!_0x55525f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x862506}=_0x259676['_splitMarkerName'](_0x55525f['name']);if(!_0x259676['hasSuggestion'](_0x862506))return null;const _0x3b6dcc=_0x259676['getSuggestion'](_0x862506);return _0x645e01['includes'](_0x3b6dcc['data']['key']);})['map'](_0x4d94d0=>{const {id:_0x515bff}=_0x259676['_splitMarkerName'](_0x4d94d0['name']),_0xda3f14=_0x259676['getSuggestion'](_0x515bff);return _0x3fdba6=_0xda3f14['attributes']['groupId'],_0xda3f14['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5182a4['size'])return;const _0x580083=_0x259676['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3b8967=>'attribute'==_0x3b8967['type']&&_0x3b8967['data']&&_0x645e01['includes'](_0x3b8967['data']['key'])&&_0x3b8967['attributes']['groupId']!=_0x3fdba6)['map'](_0x3a1712=>({'listItem':_0x3a1712['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3a1712['attributes']['groupId']})),_0x181302=new Set();for(const {groupId:_0x18da01,listItem:_0x298143}of _0x580083)_0x5182a4['has'](_0x298143)&&_0x181302['add'](_0x18da01);for(const _0xd1e26a of _0x259676['getSuggestions']())_0x181302['has'](_0xd1e26a['attributes']['groupId'])&&_0xd1e26a['setAttribute']('groupId',_0x3fdba6);}['_supportLegacySuggestions'](){const _0x3c78dc=this['editor'],_0x354ff4=_0x3c78dc['locale'],_0x45c21e=_0x3c78dc['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x45c21e['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x46dcdd,_0x1e50a4){const _0x475621=[];for(let _0x401206 of _0x46dcdd)_0x401206['start']['nodeAfter']===_0x401206['end']['parent']&&(_0x401206=_0x3c78dc['model']['createRange'](_0x3c78dc['model']['createPositionAt'](_0x401206['start']['nodeAfter'],0x0))),_0x475621['push'](_0x401206);_0x3c78dc['model']['change'](_0x9a7e22=>{const _0x181146=_0x3c78dc['model']['document']['selection'],_0x2a8456=Array['from'](_0x181146['getRanges']())['map'](_0xe4f945=>_0x1b403d['fromRange'](_0xe4f945));_0x9a7e22['setSelection'](_0x475621),_0x3c78dc['commands']['get'](_0x1e50a4['commandName'])['refresh'](),_0x1e50a4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3c78dc['execute'](_0x1e50a4['commandName'],..._0x1e50a4['commandParams']),_0x9a7e22['setSelection'](_0x2a8456);for(const _0x56480a of _0x2a8456)_0x56480a['detach']();});}),_0x45c21e['descriptionFactory']['registerElementLabel'](function(_0x5cd9eb){const _0x1613ee=!_0x3c78dc['model']['schema']['isObject'](_0x5cd9eb),_0xb1ad59=_0x5cd9eb['previousSibling'],_0x2b81bd=_0x5cd9eb['nextSibling'],_0x46284d=_0x5cd9eb['getAttribute']('listItemId'),_0x37bbb4=!_0xb1ad59||_0xb1ad59['getAttribute']('listItemId')!==_0x46284d,_0x59cd75=!_0x2b81bd||_0x2b81bd['getAttribute']('listItemId')!==_0x46284d;return _0x1613ee&&Boolean(_0x46284d)&&_0x37bbb4&&_0x59cd75;},_0x93cfdb=>o(_0x354ff4,'ELEMENT_LIST_ITEM',_0x93cfdb));}['_registerLegacyDescription'](){const _0x558da1=this['editor'],_0x468ebd=_0x558da1['locale'];function _0x5dc16f(_0x317781){const _0x3aec4c=_0x558da1['commands']['get']('bulletedList')['value'],_0x30f3b6=_0x558da1['commands']['get']('numberedList')['value'];return'numberedList'===_0x317781?_0x3aec4c:_0x30f3b6;}_0x558da1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x52d0a6){if('formatBlock'!=_0x52d0a6['type'])return;const {data:_0x4a36c2}=_0x52d0a6;if(!_0x4a36c2)return;let _0x57cdf3,_0x1674ad,_0x515729,_0x4dfa43;switch(_0x4a36c2['commandName']){case'bulletedList':_0x515729=_0x4a36c2['commandParams'][0x0]['forceValue'],_0x4dfa43=_0x5dc16f(_0x4a36c2['commandName']),_0x57cdf3=_0x515729?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dfa43&&_0x558da1['config']['get']('list.multiBlock')||(_0x57cdf3='*Change\x20to:*\x20%0'),_0x1674ad={'type':'format','content':o(_0x468ebd,_0x57cdf3,o(_0x468ebd,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x515729=_0x4a36c2['commandParams'][0x0]['forceValue'],_0x4dfa43=_0x5dc16f(_0x4a36c2['commandName']),_0x57cdf3=_0x515729?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4dfa43&&_0x558da1['config']['get']('list.multiBlock')||(_0x57cdf3='*Change\x20to:*\x20%0'),_0x1674ad={'type':'format','content':o(_0x468ebd,_0x57cdf3,o(_0x468ebd,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x57cdf3='*Indent:*\x20%0',_0x1674ad={'type':'format','content':o(_0x468ebd,_0x57cdf3,o(_0x468ebd,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x57cdf3=function(_0x514290){const _0x16bee5=_0x514290['getFirstRange']();let _0x4ad0ea=_0x16bee5['start']['nodeAfter'];for(;_0x4ad0ea&&_0x16bee5['containsItem'](_0x4ad0ea);){if(_0x4ad0ea['getAttribute']('listIndent')>0x0)return!0x1;_0x4ad0ea=_0x4ad0ea['nextSibling'];}return!0x0;}(_0x52d0a6)?o(_0x468ebd,'*Format:*\x20remove\x20from\x20%0',o(_0x468ebd,function(_0x3f7234){return'ELEMENT_'+_0x3f7234['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x52d0a6))):o(_0x468ebd,'*Outdent:*\x20%0',o(_0x468ebd,'ELEMENT_LIST_ITEM')),_0x1674ad={'type':'format','content':_0x57cdf3};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a36c2['multipleBlocks']&&(_0x57cdf3='*Merge:*\x20%0',_0x1674ad={'type':'deletion','content':o(_0x468ebd,_0x57cdf3,o(_0x468ebd,'ELEMENT_LIST_ITEM'))});}return _0x1674ad;});}}function Te(_0xd85872){let _0x4fb1ec=_0xd85872['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4fb1ec;){const _0x4cda95=_0x4fb1ec['getAttribute']('listItemId');if(!_0x4cda95)return!0x1;if(_0x4cda95==_0xd85872['data']['newValue'])return'newValue';if(_0x4cda95==_0xd85872['data']['oldValue'])return'oldValue';_0x4fb1ec=_0x4fb1ec['previousSibling'];}return!0x1;}class ye extends _0x2c2070{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x124b8c=this['editor']['config']['get']('list.properties'),_0x5d7941=this['editor']['plugins']['get']('TrackChangesEditing');_0x124b8c['styles']&&(_0x5d7941['enableDefaultAttributesIntegration']('listStyle'),_0x5d7941['registerBlockAttribute']('listStyle')),_0x124b8c['reversed']&&(_0x5d7941['enableDefaultAttributesIntegration']('listReversed'),_0x5d7941['registerBlockAttribute']('listReversed')),_0x124b8c['startIndex']&&(_0x5d7941['enableDefaultAttributesIntegration']('listStart'),_0x5d7941['registerBlockAttribute']('listStart'));const _0x288f43={'type':'format','content':''};_0x5d7941['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2197a6=this['editor']['locale'];_0x5d7941['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2197a6,'FORMAT_LIST_REVERSED')),_0x5d7941['descriptionFactory']['registerDescriptionCallback'](_0x326047=>{const {data:_0xe3559b}=_0x326047;if(_0xe3559b&&'listReversed'==_0xe3559b['key'])return null==_0xe3559b['newValue']||0x0==_0xe3559b['newValue']&&null==_0xe3559b['oldValue']?_0x288f43:void 0x0;}),_0x5d7941['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2197a6,'FORMAT_LIST_START')),_0x5d7941['descriptionFactory']['registerDescriptionCallback'](_0x2a9161=>{const {data:_0x3d67b6}=_0x2a9161;if(_0x3d67b6&&'listStart'==_0x3d67b6['key'])return null==_0x3d67b6['newValue']||0x1==_0x3d67b6['newValue']&&null==_0x3d67b6['oldValue']?_0x288f43:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x519291=>{if(_0x519291['batch']['isUndo'])return!0x1;let _0x2321a6=!0x1;const _0x2e8e47=_0x5d7941['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55f9af=>{const _0x388096=_0x5d7941['_getAttributeKey'](_0x55f9af);return'listStart'==_0x388096||'listReversed'==_0x388096;});for(const _0x3e88bb of _0x2e8e47){const _0x3ba6c7=_0x3e88bb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3ba6c7||'customNumbered'==_0x3ba6c7)continue;_0x5d7941['_findSuggestions'](_0x3e88bb['getFirstRange'](),'attribute')['find'](_0x44fa23=>'listType'==_0x5d7941['_getAttributeKey'](_0x44fa23['suggestion']))||(_0x519291['removeMarker'](_0x3e88bb['getFirstMarker']()),_0x2321a6=!0x0);}return _0x2321a6;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3ea481){const _0x5276f9=this['editor']['locale'],{data:_0x1e9cc9}=_0x3ea481,_0x2031d0={'type':'format','content':''};if(!_0x1e9cc9||'listStyle'!=_0x1e9cc9['key'])return;if(!_0x1e9cc9['oldValue'])return'default'==_0x1e9cc9['newValue']?_0x2031d0:{'type':'format','content':''+o(_0x5276f9,'*Set\x20format:*\x20%0',o(_0x5276f9,this['_getTranslationKeyForListStyle'](_0x1e9cc9['newValue'])))};if(!_0x1e9cc9['newValue']){if('default'==_0x1e9cc9['oldValue'])return _0x2031d0;let _0x1b74fb=_0x3ea481['head'];for(;_0x1b74fb;){if(_0x1b74fb['data']&&'listType'==_0x1b74fb['data']['key']&&_0x1b74fb['data']['newValue'])return _0x2031d0;_0x1b74fb=_0x1b74fb['next'];}return{'type':'format','content':''+o(_0x5276f9,'*Remove\x20format:*\x20%0',o(_0x5276f9,this['_getTranslationKeyForListStyle'](_0x1e9cc9['oldValue'])))};}if('default'!=_0x1e9cc9['newValue'])return{'type':'format','content':''+o(_0x5276f9,'*Set\x20format:*\x20%0',o(_0x5276f9,this['_getTranslationKeyForListStyle'](_0x1e9cc9['newValue'])))};let _0x1178c1=_0x3ea481['head'];for(;_0x1178c1;){if(_0x1178c1['data']&&'listType'==_0x1178c1['data']['key']&&_0x1178c1['data']['newValue']&&_0x1178c1['data']['oldValue'])return _0x2031d0;_0x1178c1=_0x1178c1['next'];}return{'type':'format','content':o(_0x5276f9,'*Set\x20format:*\x20%0',o(_0x5276f9,'ELEMENT_'+_0x3ea481['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3b3a63=this['editor'],_0x5d4f1d=_0x3b3a63['locale'];_0x3b3a63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x339ad1=>{if('formatBlock'!=_0x339ad1['type'])return;const {data:_0x101877}=_0x339ad1;if(!_0x101877)return;let _0x8b21f6,_0x14305;switch(_0x101877['commandName']){case'listStyle':_0x8b21f6='*Change\x20to:*\x20%0',_0x14305={'type':'format','content':o(_0x5d4f1d,_0x8b21f6,o(_0x5d4f1d,this['_getTranslationKeyForListStyle'](_0x101877['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8b21f6=_0x101877['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x14305={'type':'format','content':o(_0x5d4f1d,_0x8b21f6)};break;case'listStart':_0x8b21f6='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x14305={'type':'format','content':o(_0x5d4f1d,_0x8b21f6,_0x101877['commandParams'][0x0]['startIndex'])};}return _0x14305;});}['_getTranslationKeyForListStyle'](_0x50afbb){return'ELEMENT_'+function(_0x2fc303){if(Se['includes'](_0x2fc303))return'bulleted';if(_e['includes'](_0x2fc303))return'numbered';return null;}(_0x50afbb)['toUpperCase']()+'_LIST_'+_0x50afbb['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2c2070{static get['requires'](){return[_0x1d9f76];}['init'](){const _0x29bc2b=this['editor'],_0x30fa08=_0x29bc2b['plugins']['get']('TrackChangesEditing'),_0x962df=_0x29bc2b['commands']['get']('enter');_0x30fa08['enableCommand']('enter',()=>{_0x29bc2b['model']['change'](_0x50693d=>{const _0x4fe1a2=_0x29bc2b['model']['document']['selection'],_0xe752a=_0x4fe1a2['getFirstPosition'](),_0x5de3ee=_0x1b403d['fromRange'](_0x4fe1a2['getFirstRange']());if(_0x962df['enterBlock'](_0x50693d)){const _0x3d336b=_0x29bc2b['model']['createPositionAt'](_0xe752a['parent']['nextSibling'],0x0),_0x467686=_0x50693d['createRange'](_0xe752a,_0x3d336b);_0x30fa08['markInsertion'](_0x467686);}else _0x50693d['setSelection'](_0x50693d['createRange'](_0x5de3ee['end']));_0x5de3ee['detach'](),_0x962df['fire']('afterExecute',{'writer':_0x50693d});});}),_0x29bc2b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x29bc2b,'split'),{'priority':'high'}),_0x29bc2b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5960b1,_0x11d026,_0x5a659c)=>{const _0x302f2b=_0x5a659c['mapper']['markerNameToElements'](_0x11d026['markerName']);if(_0x302f2b){for(const _0x5e22fa of _0x302f2b)_0x5e22fa['hasClass']('ck-suggestion-marker-split')&&(_0x5a659c['mapper']['unbindElementFromMarkerName'](_0x5e22fa,_0x11d026['markerName']),_0x5a659c['writer']['remove'](_0x5e22fa));}},{'priority':'high'}),_0x29bc2b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x42fcda,_0x5e18af,_0x4b3598)=>{_0x4b3598['options']['showSuggestionHighlights']&&Ne(_0x29bc2b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x42fcda,_0x5e18af,_0x4b3598);},{'priority':'high'});}}class Y extends _0x2c2070{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x562548=this['editor']['plugins']['get']('TrackChangesEditing');_0x562548['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x562548['enableCommand']('findNext'),_0x562548['enableCommand']('findPrevious'),_0x562548['enableCommand']('replace'),_0x562548['enableCommand']('replaceAll');}['handleFindCommand'](_0x598c2a,_0x6df53,_0x3e46f8={}){const _0x137ef7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x598c2a(_0xb5c5da=>{let _0x4c7e5d=('string'==typeof _0x6df53?_0x137ef7['findByTextCallback'](_0x6df53,_0x3e46f8):_0x6df53)(_0xb5c5da);Array['isArray'](_0x4c7e5d)&&(_0x4c7e5d={'results':_0x4c7e5d,'searchText':'string'==typeof _0x6df53?_0x6df53:''});const _0x31e4b1=_0x4c7e5d['results']['filter'](_0x415d8f=>!0x1===this['_isInDeletionRange'](_0x415d8f,_0xb5c5da['item']));return{..._0x4c7e5d,'results':_0x31e4b1};},_0x3e46f8);}['_isInDeletionRange'](_0x2326bc,_0x5f0447){const _0x2a990d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f0447,_0x2326bc['start']),this['editor']['model']['createPositionAt'](_0x5f0447,_0x2326bc['end']));for(const _0x273147 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2a990d['getIntersection'](_0x273147['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2c2070{['afterInit'](){const _0x353da9=this['editor']['locale'],_0x1d06d2=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x137b67,commandName:_0x5e1488}of ro)this['editor']['plugins']['has'](_0x137b67)&&(_0x1d06d2['enableDefaultAttributesIntegration'](_0x5e1488),_0x1d06d2['registerInlineAttribute'](_0x5e1488));_0x1d06d2['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x353da9,'FORMAT_FONT_SIZE')),_0x1d06d2['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x353da9,'FORMAT_FONT_FAMILY')),_0x1d06d2['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x353da9,'FORMAT_FONT_COLOR')),_0x1d06d2['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x353da9,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc7ca13=this['editor'],_0x3d20cf=_0xc7ca13['locale'];_0xc7ca13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ab51d=>{const _0x42bd06=_0x3d20cf['t'];if('formatInline'!=_0x2ab51d['type'])return;const {data:_0x647f2e}=_0x2ab51d;if(null!=_0x647f2e){if('fontSize'==_0x647f2e['commandName']){const _0x447348=_0x647f2e['commandParams'][0x0]['value'];if(_0x447348){const _0x138547=_0x42bd06(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5dd628=>_0x5dd628['model']==_0x447348)['title'])['toLowerCase']();return{'type':'format','content':o(_0x3d20cf,'*Set\x20font\x20size:*\x20%0',_0x138547)};}return{'type':'format','content':o(_0x3d20cf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x647f2e['commandName']){const _0x5383c4=_0x647f2e['commandParams'][0x0]['value'];return _0x5383c4?{'type':'format','content':o(_0x3d20cf,'*Set\x20font\x20family:*\x20%0',_0x5383c4)}:{'type':'format','content':o(_0x3d20cf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x647f2e['commandName']){const _0x116e85=_0x647f2e['commandParams'][0x0]['value'];if(_0x116e85){const _0x2ccf36=_0x441440(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4cef83=>_0x4cef83['model']==_0x116e85);let _0x25b238=_0x116e85,_0x4d3db6='';return _0x2ccf36&&(_0x25b238=_0x2ccf36['label'],_0x4d3db6=_0x42bd06(_0x25b238)['toLowerCase']()),{'type':'format','content':o(_0x3d20cf,'*Set\x20font\x20color:*\x20%0',_0x4d3db6)['trim'](),'color':{'value':_0x116e85,'title':_0x4d3db6||_0x25b238}};}return{'type':'format','content':o(_0x3d20cf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x647f2e['commandName']){const _0x5a8a97=_0x647f2e['commandParams'][0x0]['value'];if(_0x5a8a97){const _0x43bbd7=_0x441440(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x166951=>_0x166951['model']==_0x5a8a97);let _0x9b3300=_0x5a8a97,_0x46608d='';return _0x43bbd7&&(_0x9b3300=_0x43bbd7['label'],_0x46608d=_0x42bd06(_0x9b3300)['toLowerCase']()),{'type':'format','content':o(_0x3d20cf,'*Set\x20font\x20background\x20color:*\x20%0',_0x46608d)['trim'](),'color':{'value':_0x5a8a97,'title':_0x46608d||_0x9b3300}};}return{'type':'format','content':o(_0x3d20cf,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2c2070{['afterInit'](){const _0x37317e=this['editor'],_0x3afb34=_0x37317e['plugins']['get']('TrackChangesEditing'),_0x25b2e6=_0x37317e['commands']['get']('copyFormat'),_0x152e6b=_0x37317e['commands']['get']('pasteFormat');_0x25b2e6&&_0x152e6b&&(_0x3afb34['enableDefaultAttributesIntegration']('pasteFormat'),_0x3afb34['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x44fca4=this['editor'],_0x37bac2=_0x44fca4['locale'];_0x44fca4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x545c0c=>{if('formatBlock'!=_0x545c0c['type']&&'formatInline'!=_0x545c0c['type'])return;const {data:_0x42991d}=_0x545c0c;if(_0x42991d&&'pasteFormat'===_0x42991d['commandName']){const _0x2beab7=[],_0x4029d7=_0x42991d['commandParams'][0x0];for(const [_0x5d092d,_0x199232]of Object['entries'](_0x4029d7))_0x2beab7['push'](so(_0x44fca4,_0x5d092d,_0x199232));return _0x2beab7['length']?{'type':'format','content':o(_0x37bac2,'*Set\x20format\x20to:*\x20%0',_0x2beab7['join'](',\x20'))}:{'type':'format','content':o(_0x37bac2,'*Remove\x20all\x20formatting*')};}});}}function so(_0x184230,_0x5a0161,_0x2cceea){const _0x115e98=_0x184230['locale']['t'],_0xe14076=_0x5a0161['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ba7c4=_0x115e98(_0xe14076['charAt'](0x0)['toUpperCase']()+_0xe14076['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2cceea)return _0x2ba7c4;if('fontColor'===_0x5a0161||'fontBackgroundColor'===_0x5a0161){const _0x212a3e=_0x441440(_0x184230['config']['get']('fontColor.colors'))['find'](_0x57d92e=>_0x57d92e['model']==_0x2cceea);return _0x2ba7c4+'\x20('+(_0x212a3e?_0x115e98(_0x212a3e['label'])['toLowerCase']():_0x2cceea)+')';}if('fontSize'===_0x5a0161&&isNaN(parseFloat(_0x2cceea))){const _0x403c81=_0x184230['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x184230['config']['get']('fontSize.options'))['find'](_0x394be6=>_0x394be6['model']==_0x2cceea);return _0x2ba7c4+'\x20('+(_0x403c81?_0x115e98(_0x403c81['title'])['toLowerCase']():_0x2cceea)+')';}return _0x2ba7c4+'\x20('+_0x2cceea+')';}class nt extends _0x2c2070{['_headingOptions'];['afterInit'](){const _0x257665=this['editor'];if(!_0x257665['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x257665['config']['get']('heading.options');const _0x5efe9c=_0x257665['locale'],_0x33ad6c=_0x257665['plugins']['get']('TrackChangesEditing');_0x33ad6c['enableDefaultAttributesIntegration']('heading');for(const _0x4529ac of this['_headingOptions'])'paragraph'!=_0x4529ac['model']&&_0x33ad6c['descriptionFactory']['registerElementLabel'](_0x4529ac['model'],_0x4231ce=>{const _0x565d5c=this['_getHeadingLevel'](_0x4529ac['model']);return null!==_0x565d5c?_0x1c0e6e(_0x4231ce,_0x565d5c):_0x221d31(_0x4231ce,_0x4529ac['title']);});function _0x1c0e6e(_0x1c47b4,_0x518235){return o(_0x5efe9c,'ELEMENT_HEADING',[_0x1c47b4,_0x518235]);}function _0x221d31(_0x41aa18,_0x3ddf64){return o(_0x5efe9c,'ELEMENT_HEADING_CUSTOM',[_0x41aa18,_0x3ddf64]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x33e487=this['editor'],_0x203653=_0x33e487['locale'];function _0x225f62(_0x3c2ef0,_0x1daa7d){return o(_0x203653,'ELEMENT_HEADING_CUSTOM',[_0x3c2ef0,_0x1daa7d]);}_0x33e487['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c2895=>{if('formatBlock'!=_0x5c2895['type'])return;const {data:_0x473bf6}=_0x5c2895;if(_0x473bf6&&'heading'==_0x473bf6['commandName']){const _0x28bc6e=_0x473bf6['commandParams'][0x0]['value'],_0x4ee750=this['_getHeadingLevel'](_0x28bc6e);if(null!==_0x4ee750)return{'type':'format','content':o(_0x203653,'*Change\x20to:*\x20%0',(_0xd812db=0x1,_0x1a8575=_0x4ee750,o(_0x203653,'ELEMENT_HEADING',[_0xd812db,_0x1a8575])))};const _0x31f975=this['_headingOptions']['find'](_0x279e6d=>_0x279e6d['model']===_0x28bc6e)['title'];return{'type':'format','content':o(_0x203653,'*Change\x20to:*\x20%0',_0x225f62(0x1,_0x31f975))};}var _0xd812db,_0x1a8575;});}['_getHeadingLevel'](_0x11bd1a){const _0x27462d=_0x11bd1a['match'](/^heading(\d+)/);if(_0x27462d)return _0x27462d[0x1];const _0x52707d=this['_headingOptions']?.['find'](_0x281cce=>_0x281cce['model']==_0x11bd1a);if(_0x52707d&&_0x52707d['view']){const _0x4f0a60=_0x52707d['view'],_0x2a1732=(_0x4f0a60['name']??_0x4f0a60)['match'](/^h(\d+)/);if(_0x2a1732)return _0x2a1732[0x1];}return null;}}class it extends _0x2c2070{['afterInit'](){const _0x1c7e1f=this['editor'];if(!_0x1c7e1f['plugins']['has']('HighlightEditing'))return;const _0x1545f6=_0x1c7e1f['plugins']['get']('TrackChangesEditing'),_0x455c6a=_0x1c7e1f['locale'];_0x1545f6['enableDefaultAttributesIntegration']('highlight'),_0x1545f6['registerInlineAttribute']('highlight'),_0x1545f6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x455c6a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e506e=this['editor'],_0x67dffd=_0x4e506e['locale'];_0x4e506e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x55951d=>{if('formatInline'!=_0x55951d['type'])return;const {data:_0x27b7a4}=_0x55951d;if(_0x27b7a4&&'highlight'==_0x27b7a4['commandName']){const _0x1f5248=_0x67dffd['t'],_0x278b8e=_0x27b7a4['commandParams'][0x0]['value'];if(_0x278b8e){const _0x278397=_0x4e506e['config']['get']('highlight.options')['find'](_0x21f7ff=>_0x21f7ff['model']==_0x278b8e),_0x1d470f=_0x1f5248(_0x278397['title'])['toLowerCase']();return{'type':'format','content':o(_0x67dffd,'*Set\x20highlight:*\x20%0',_0x1d470f),'color':{'value':_0x278397['color'],'title':_0x278397['title']}};}return{'type':'format','content':o(_0x67dffd,'*Remove\x20highlight*',o(_0x67dffd,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x2c2070{['afterInit'](){const _0x800eb7=this['editor'];if(!_0x800eb7['plugins']['has']('HorizontalLineEditing'))return;_0x800eb7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x32f700=_0x800eb7['plugins']['get']('TrackChangesEditing'),_0x17a7e3=_0x800eb7['locale'];_0x32f700['descriptionFactory']['registerElementLabel']('horizontalLine',_0x370824=>o(_0x17a7e3,'ELEMENT_HORIZONTAL_LINE',_0x370824)),_0x800eb7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2b5c58,{writer:_0x85ac23,options:_0x592c18})=>{if(!_0x592c18['showSuggestionHighlights'])return null;const _0x83b2f2=_0x85ac23['createContainerElement']('div'),_0x4fadbf=_0x85ac23['createEmptyElement']('hr');return _0x85ac23['addClass']('ck-horizontal-line',_0x83b2f2),_0x85ac23['insert'](_0x85ac23['createPositionAt'](_0x83b2f2,0x0),_0x4fadbf),_0x83b2f2;},'converterPriority':'high'});}}class st extends _0x2c2070{['afterInit'](){const _0x390608=this['editor'];if(!_0x390608['plugins']['has']('HtmlEmbed'))return;const _0x286c15=_0x390608['plugins']['get']('TrackChangesEditing'),_0x595464=_0x390608['locale'];_0x286c15['descriptionFactory']['registerElementLabel']('rawHtml',_0xe72bbd=>o(_0x595464,'ELEMENT_HTML_EMBED',_0xe72bbd)),_0x286c15['enableDefaultAttributesIntegration']('htmlEmbed'),_0x286c15['registerBlockAttribute']('value'),_0x286c15['descriptionFactory']['registerDescriptionCallback'](_0x31d6c9=>{if('attribute'!=_0x31d6c9['type'])return;const {data:_0x14bebe}=_0x31d6c9;if(_0x14bebe&&'value'==_0x14bebe['key']&&_0x31d6c9['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5ca05a=o(_0x595464,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x595464,'*Change\x20%0\x20content*',_0x5ca05a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4ea22c=this['editor'],_0x7cecbf=_0x4ea22c['locale'];_0x4ea22c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20ddf9=>{if('formatBlock'!=_0x20ddf9['type'])return;const {data:_0x58f4d2}=_0x20ddf9;if(_0x58f4d2&&'htmlEmbed'==_0x58f4d2['commandName']){const _0xacfd93=o(_0x7cecbf,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x7cecbf,'*Change\x20%0\x20content*',_0xacfd93)};}});}}class ot extends _0x2c2070{['afterInit'](){const _0x4e4990=this['editor'];if(!_0x4e4990['plugins']['has']('ImageEditing'))return;const _0x5e76e0=_0x4e4990['plugins']['get']('TrackChangesEditing'),_0x4966e6=_0x4e4990['plugins']['get']('ImageUtils'),_0x54418e=_0x4e4990['locale'];_0x5e76e0['enableCommand']('insertImage'),_0x5e76e0['descriptionFactory']['registerElementLabel']('imageBlock',_0xcf52d6=>o(_0x54418e,'ELEMENT_IMAGE',_0xcf52d6)),_0x5e76e0['descriptionFactory']['registerElementLabel']('imageInline',_0xcbff57=>o(_0x54418e,'ELEMENT_INLINE_IMAGE',_0xcbff57)),_0x5e76e0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x54418e,'ELEMENT_CAPTION')),_0x4e4990['plugins']['has']('ImageUploadEditing')&&_0x5e76e0['enableCommand']('uploadImage'),_0x4e4990['plugins']['has']('ImageBlockEditing')&&_0x4e4990['plugins']['has']('ImageInlineEditing')&&(_0x5e76e0['enableCommand']('imageTypeInline',(_0x58e4db,_0x5764b0)=>{const _0x1f908d=_0x4966e6['getClosestSelectedImageElement'](_0x4e4990['model']['document']['selection']);_0x4e4990['model']['change'](()=>{_0x5e76e0['markBlockFormat'](_0x1f908d,{'commandName':'imageTypeInline','commandParams':[_0x5764b0]},[],'convertBlockImageToInline');});}),_0x5e76e0['enableCommand']('imageTypeBlock',(_0x230234,_0x17cbdb)=>{_0x4e4990['model']['change'](_0x173faf=>{let _0x2a1c04=_0x4966e6['getClosestSelectedImageElement'](_0x4e4990['model']['document']['selection']),_0x153ff8=_0x173faf['createRangeOn'](_0x2a1c04);const _0x10bd80=_0x22e5cf['fromPosition'](_0x153ff8['start'],'toPrevious'),_0x5880b0=_0x22e5cf['fromPosition'](_0x153ff8['end'],'toNext');_0x5e76e0['forceDefaultExecution'](()=>_0x230234(_0x17cbdb)),_0x2a1c04=_0x4966e6['getClosestSelectedImageElement'](_0x4e4990['model']['document']['selection']),_0x153ff8=_0x173faf['createRangeOn'](_0x2a1c04);const _0x516ce4=_0x173faf['createRange'](_0x10bd80,_0x5880b0);_0x10bd80['detach'](),_0x5880b0['detach'](),_0x5e76e0['markBlockFormat'](_0x2a1c04,{'commandName':'imageTypeInline','commandParams':[_0x17cbdb]},[],'convertInlineImageToBlock'),_0x516ce4['start']['isBefore'](_0x153ff8['start'])&&_0x5e76e0['markInsertion'](_0x173faf['createRange'](_0x516ce4['start'],_0x153ff8['start']),'convertInlineImageToBlock'),_0x153ff8['end']['isBefore'](_0x516ce4['end'])&&_0x5e76e0['markInsertion'](_0x173faf['createRange'](_0x153ff8['end'],_0x516ce4['end']),'convertInlineImageToBlock');});}),_0x5e76e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e76e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e76e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e76e0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e76e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e76e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3da1dc])=>{const _0x584c2c=_0x5e76e0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0xfbf602=_0x3da1dc['start'],_0x57d3b2=_0x3da1dc['end'];const _0x3f3bf9=_0x4e4990['model']['schema']['getNearestSelectionRange'](_0xfbf602,'backward'),_0x965acb=_0x4e4990['model']['schema']['getNearestSelectionRange'](_0x57d3b2,'forward');_0x3f3bf9['isCollapsed']&&(_0xfbf602=_0x3f3bf9['start']),_0x965acb['isCollapsed']&&(_0x57d3b2=_0x965acb['end']),_0x584c2c([_0x4e4990['model']['createRange'](_0xfbf602,_0x57d3b2)]);}),_0x5e76e0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x510f2a),_0x5e76e0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x510f2a)),_0x4e4990['plugins']['has']('ImageCaptionEditing')&&(_0x5e76e0['enableCommand']('toggleImageCaption',(_0x53c04e,_0x5d0fa0)=>{const _0x185d48=_0x4e4990['plugins']['get']('ImageCaptionUtils');let _0x3f042d=_0x4966e6['getClosestSelectedImageElement'](_0x4e4990['model']['document']['selection']),_0x5c5140=_0x185d48['getCaptionFromImageModelElement'](_0x3f042d);_0x4e4990['model']['change'](()=>{if(_0x5c5140)return void _0x5e76e0['markDeletion'](_0x4e4990['model']['createRangeOn'](_0x5c5140));const _0x2872fa=_0x4966e6['isBlockImage'](_0x3f042d);_0x53c04e(_0x5d0fa0),_0x3f042d=_0x4966e6['getClosestSelectedImageElement'](_0x4e4990['model']['document']['selection']),_0x5c5140=_0x185d48['getCaptionFromImageModelElement'](_0x3f042d),_0x5e76e0['markInsertion'](_0x4e4990['model']['createRangeOn'](_0x5c5140),_0x2872fa?null:'imageCaption');});}),_0x5e76e0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x510f2a));const _0x54e0b1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3ee93a(_0x120c68,_0x1d2b03){const _0x3a11fa=_0x54e0b1['findIndex'](({type:_0x276f17,subType:_0x16654b})=>_0x120c68['type']==_0x276f17&&_0x120c68['subType']==_0x16654b),_0x132918=_0x54e0b1['findIndex'](({type:_0x556aa9,subType:_0xea9300})=>_0x1d2b03['type']==_0x556aa9&&_0x1d2b03['subType']==_0xea9300);if(_0x3a11fa<0x0||_0x132918<0x0)return!0x1;const _0x4bab61=_0x120c68['getFirstRange'](),_0x1a15a6=_0x1d2b03['getFirstRange']();if((0x0==_0x3a11fa||0x1==_0x3a11fa)&&0x2==_0x132918&&_0x4bab61['isIntersecting'](_0x1a15a6))return!0x0;if(0x2==_0x3a11fa&&0x3==_0x132918){const _0x275be2=_0x5e76e0['_findSuggestions'](_0x4bab61,'insertion')['filter'](({suggestion:_0x422141,meta:_0x528a5a})=>_0x528a5a['isOwn']&&'convertInlineImageToBlock'==_0x422141['subType']);if(_0x275be2['length']>0x1&&_0x1a15a6['end']['isEqual'](_0x4bab61['start']))return!0x0;if(0x1==_0x275be2['length']&&(_0x4bab61['start']['isEqual'](_0x1a15a6['end'])||_0x4bab61['end']['isEqual'](_0x1a15a6['start'])))return!0x0;}if(0x3==_0x3a11fa&&0x3==_0x132918&&_0x4bab61['start']['isBefore'](_0x1a15a6['start'])){const _0x3f3b62=_0x4bab61['end']['nodeAfter'],_0x107bdd=_0x1a15a6['start']['nodeBefore'];return _0x4966e6['isBlockImage'](_0x3f3b62)&&_0x3f3b62===_0x107bdd;}return!0x1;}function _0x510f2a(_0x5d5e6d,_0x3d9fc6){return _0x3ee93a(_0x5d5e6d,_0x3d9fc6)?[_0x5d5e6d,_0x3d9fc6]:_0x3ee93a(_0x3d9fc6,_0x5d5e6d)?[_0x3d9fc6,_0x5d5e6d]:null;}_0x4e4990['plugins']['has']('ImageResize')&&(_0x5e76e0['enableDefaultAttributesIntegration']('resizeImage'),_0x5e76e0['registerBlockAttribute']('resizedWidth'),_0x5e76e0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x54418e,'FORMAT_IMAGE_SIZE'))),_0x4e4990['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e76e0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e76e0['registerBlockAttribute']('alt')),_0x5e76e0['descriptionFactory']['registerDescriptionCallback'](_0x2481b4=>{if(!!_0x54e0b1['find'](({type:_0x1cb496,subType:_0x5bcd96})=>_0x2481b4['type']==_0x1cb496&&_0x2481b4['subType']==_0x5bcd96))return _0x2481b4['previous']?{}:void 0x0;}),_0x5e76e0['descriptionFactory']['registerDescriptionCallback'](_0x5923a2=>{if('insertion'==_0x5923a2['type']||'deletion'==_0x5923a2['type']){const _0xf0ae96=_0x5923a2['getContainedElement']();if(_0xf0ae96&&_0xf0ae96['is']('element','caption'))return{'type':'insertion'==_0x5923a2['type']?'addObject':'removeObject','element':_0xf0ae96,'quantity':0x1};}}),_0x5e76e0['descriptionFactory']['registerDescriptionCallback'](_0x2d026d=>'formatBlock'==_0x2d026d['type']&&'convertInlineImageToBlock'==_0x2d026d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2d026d['type']&&'convertBlockImageToInline'==_0x2d026d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e76e0['descriptionFactory']['registerDescriptionCallback'](_0x195f4=>{if('attribute'!=_0x195f4['type'])return;const {data:_0xc3d2c4}=_0x195f4;if(!_0xc3d2c4||'alt'!=_0xc3d2c4['key'])return;const _0x490f74=_0xc3d2c4['newValue'];return _0x490f74?{'type':'format','content':o(_0x54418e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x490f74+'\x22')}:{'type':'format','content':o(_0x54418e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2dd0ab=this['editor'],_0x396edd=_0x2dd0ab['locale'];_0x2dd0ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13de8e=>{if('formatBlock'!=_0x13de8e['type']&&'formatInline'!=_0x13de8e['type'])return;const {data:_0x135869}=_0x13de8e;if(_0x135869){if('imageTextAlternative'==_0x135869['commandName']){const _0x3b4958=_0x135869['commandParams'][0x0]['newValue'];return _0x3b4958?{'type':'format','content':o(_0x396edd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b4958+'\x22')}:{'type':'format','content':o(_0x396edd,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x135869['commandName']){const _0xddfbfb=_0x135869['commandParams'][0x0]['width'];return _0xddfbfb?{'type':'format','content':o(_0x396edd,'*Set\x20image\x20width:*\x20%0',_0xddfbfb)}:{'type':'format','content':o(_0x396edd,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x2c2070{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5c089c=this['editor']['locale'],_0x238b6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x238b6b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x238b6b['registerBlockAttribute']('src'),_0x238b6b['descriptionFactory']['registerDescriptionCallback'](_0x55dbd5=>{if('attribute'!=_0x55dbd5['type'])return;const {data:_0x5b7ba8}=_0x55dbd5;return _0x5b7ba8&&'src'==_0x5b7ba8['key']?_0x5b7ba8['newValue']&&_0x5b7ba8['oldValue']?{'type':'format','content':o(_0x5c089c,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1e2144=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e2144['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1e2144['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1e2144['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1e2144['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7d52ea=this['editor'],_0x2d7d15=_0x7d52ea['locale'];_0x7d52ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc85465=>{if('formatBlock'!=_0xc85465['type']&&'formatInline'!=_0xc85465['type'])return;const {data:_0x1bb843}=_0xc85465;if(!_0x1bb843||'replaceImageSource'!=_0x1bb843['commandName'])return;return{'type':'format','content':o(_0x2d7d15,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x2c2070{['afterInit'](){const _0x31225b=this['editor'];if(!_0x31225b['plugins']['has']('ImageStyleEditing'))return;const _0x8d3457=_0x31225b['plugins']['get']('TrackChangesEditing'),_0x295af8=_0x31225b['plugins']['get']('ImageUtils'),_0x5a2153={};_0x8d3457['enableCommand']('imageStyle',(_0x4e1afa,_0x4da7af)=>{const _0xab5d2a=_0x31225b['plugins']['get']('Users')['me'],_0x14a346=_0x31225b['commands']['get']('imageStyle');let _0x8d5063=_0x295af8['getClosestSelectedImageElement'](_0x31225b['model']['document']['selection']),_0x584b3d=_0x31225b['model']['createRangeOn'](_0x8d5063),_0x31a190=_0x14a346['value'];if(_0x31a190==_0x4da7af['value'])return;const _0xa85df9={'commandName':'imageStyle','commandParams':[_0x4da7af],'formatGroupId':_0x42487e()};_0x31225b['model']['change'](()=>{if(_0x8d3457['getSuggestions']()['filter'](_0x4f5223=>_0x4f5223['isInContent']&&_0xab5d2a==_0x4f5223['author']&&('formatBlock'==_0x4f5223['type']||'formatInline'==_0x4f5223['type'])&&('imageStylePreApply'==_0x4f5223['subType']||'imageStylePostApply'==_0x4f5223['subType'])&&_0x4f5223['getFirstRange']()['isEqual'](_0x584b3d))['forEach'](_0x5de776=>_0x8d3457['discardSuggestion'](_0x5de776['head'])),_0x8d5063=_0x295af8['getClosestSelectedImageElement'](_0x31225b['model']['document']['selection']),_0x584b3d=_0x31225b['model']['createRangeOn'](_0x8d5063),_0x14a346['refresh'](),_0x31225b['commands']['get']('imageTypeInline')['refresh'](),_0x31225b['commands']['get']('imageTypeBlock')['refresh'](),_0x31a190=_0x14a346['value'],_0x31a190!=_0x4da7af['value'])return _0x295af8['isInlineImage'](_0x8d5063)&&_0x14a346['shouldConvertImageType'](_0x4da7af['value'],_0x8d5063)?(_0x4e1afa({..._0x4da7af,'setImageSizes':!0x1}),_0x8d5063=_0x295af8['getClosestSelectedImageElement'](_0x31225b['model']['document']['selection']),void _0x8d3457['markBlockFormat'](_0x8d5063,{..._0xa85df9,'commandReversedParams':[{'value':_0x31a190||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x295af8['isBlockImage'](_0x8d5063)?_0x8d3457['markBlockFormat'](_0x8d5063,_0xa85df9,[],'imageStylePostApply'):_0x8d3457['markInlineFormat'](_0x584b3d,_0xa85df9,'imageStylePostApply'));});});for(const _0x3a6a1e of _0x31225b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5a2153[_0x3a6a1e['name']]=_0x3a6a1e['title']['toLowerCase']();_0x8d3457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x8d3457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x8d3457['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x8d3457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x23a202])=>{_0x295af8['setImageNaturalSizeAttributes'](_0x23a202['getContainedElement']());}),_0x8d3457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x978519,_0x4fe0a7)=>{_0x8d3457['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x978519,{'commandName':_0x4fe0a7['commandName'],'commandParams':_0x4fe0a7['commandReversedParams']});}),_0x8d3457['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3446db,_0x2c056b){if(_0x2341e4(_0x3446db,_0x2c056b))return[_0x3446db,_0x2c056b];if(_0x2341e4(_0x2c056b,_0x3446db))return[_0x2c056b,_0x3446db];return null;});const _0x19c076=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2341e4(_0x2c43b0,_0x230aaf){const _0x59e723=_0x19c076['findIndex'](({type:_0x42c38e,subType:_0x3e503c})=>_0x2c43b0['type']==_0x42c38e&&_0x2c43b0['subType']==_0x3e503c),_0x3fecbe=_0x19c076['findIndex'](({type:_0x3c7443,subType:_0x5425d8})=>_0x230aaf['type']==_0x3c7443&&_0x230aaf['subType']==_0x5425d8);if(_0x59e723<0x0||_0x3fecbe<0x0)return!0x1;const _0x27f862=_0x2c43b0['getFirstRange'](),_0x41c824=_0x230aaf['getFirstRange']();if((0x0==_0x59e723||0x1==_0x59e723)&&0x2==_0x3fecbe&&_0x27f862['isIntersecting'](_0x41c824))return!0x0;if(0x2==_0x59e723&&0x3==_0x3fecbe){const _0x41d76a=_0x8d3457['_findSuggestions'](_0x27f862,'insertion')['filter'](({suggestion:_0x37fe89,meta:_0x4f0d99})=>_0x4f0d99['isOwn']&&'convertInlineImageToBlock'==_0x37fe89['subType']);if(_0x41d76a['length']>0x1&&_0x41c824['end']['isEqual'](_0x27f862['start']))return!0x0;if(0x1==_0x41d76a['length']&&(_0x27f862['start']['isEqual'](_0x41c824['end'])||_0x27f862['end']['isEqual'](_0x41c824['start'])))return!0x0;}if(0x3==_0x59e723&&0x3==_0x3fecbe&&_0x27f862['start']['isBefore'](_0x41c824['start'])){const _0x1868ea=_0x27f862['end']['nodeAfter'],_0x5531f0=_0x41c824['start']['nodeBefore'];return _0x295af8['isBlockImage'](_0x1868ea)&&_0x1868ea===_0x5531f0;}return!0x1;}_0x31225b['model']['document']['registerPostFixer'](()=>{let _0x3b453b=!0x1;const _0x7a5867=Array['from'](_0x31225b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2012b7,data:_0x277080}of _0x7a5867){const {group:_0x218252,type:_0x38e9f3,subType:_0x180b85,id:_0x26e312}=_0x8d3457['_splitMarkerName'](_0x2012b7);if('suggestion'==_0x218252&&_0x8d3457['hasSuggestion'](_0x26e312)){if('formatBlock'==_0x38e9f3&&('imageStylePreApply'==_0x180b85||'imageStylePostApply'==_0x180b85)){const _0x75b1f5=_0x8d3457['getSuggestion'](_0x26e312);if(_0x277080['newRange']){const _0x9cc4a8=_0x75b1f5['getFirstRange']()['getContainedElement']();if(_0x295af8['isBlockImage'](_0x9cc4a8))continue;_0x8d3457['discardSuggestion'](_0x75b1f5),_0x3b453b=!0x0;}}if('insertion'==_0x38e9f3&&'imageCaption'==_0x180b85&&!_0x277080['newRange']){const _0x1d596e=_0x8d3457['getSuggestion'](_0x26e312);_0x1d596e['next']&&_0x1d596e['next']['isInContent']&&(_0x8d3457['discardSuggestion'](_0x1d596e['next']),_0x3b453b=!0x0);}}}return _0x3b453b;}),this['_registerLegacyDescription'](_0x5a2153);}['_registerLegacyDescription'](_0x1dbfe9){const _0x4f895f=this['editor'],_0x42ace0=_0x4f895f['locale'];_0x4f895f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x364074=>{if('formatBlock'!=_0x364074['type']&&'formatInline'!=_0x364074['type'])return;const {data:_0x41698f}=_0x364074;if(!_0x41698f||'imageStyle'!=_0x41698f['commandName'])return;const _0x4fa9f4=_0x41698f['commandParams'][0x0]['value'];return _0x34b126('side'===_0x4fa9f4?o(_0x42ace0,'FORMAT_SIDE_IMAGE'):_0x1dbfe9[_0x4fa9f4]||_0x4fa9f4);function _0x34b126(_0x301642){return{'type':'format','content':o(_0x42ace0,'*Format:*\x20%0',_0x301642)};}});}}class ct extends _0x2c2070{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x575c82){super(_0x575c82),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3aab9f=this['editor'],_0x4ba148=_0x3aab9f['commands']['get']('importWord'),_0x18494e=_0x3aab9f['commands']['get']('trackChanges');_0x4ba148&&(_0x4ba148['on']('execute',(_0x4da33c,[,_0x416588])=>{this['_trackChangesValueDuringImport']=_0x18494e['value'],_0x416588['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4ba148,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4ba148,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x18494e['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3aab9f['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x404e5d,_0x2efb47){const {suggestions:_0x14bb2f}=_0x2efb47,_0x543905=this['editor']['commands']['get']('trackChanges'),_0x4c75b1=_0x543905['value'];this['_trackChangesValueDuringImport']!==_0x4c75b1&&(_0x543905['execute'](),this['_trackChangesExecuted']=!0x0),_0x14bb2f&&_0x14bb2f['forEach'](({id:_0x31e777,type:_0x4a3969,author:_0x3d3ffe,created_at:_0x33df51})=>{const _0x3c6a27={'id':_0x31e777,'type':_0x4a3969,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3d3ffe,'createdAt':_0x33df51?new Date(_0x33df51):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3c6a27);});}}class ut extends _0x2c2070{['afterInit'](){const _0x4ea808=this['editor'],_0x8bc1fc=_0x4ea808['plugins']['get']('TrackChangesEditing');if(_0x4ea808['plugins']['has']('IndentEditing')&&(_0x8bc1fc['enableCommand']('indent'),_0x8bc1fc['enableCommand']('outdent')),_0x4ea808['plugins']['has']('IndentBlock')){for(const _0x12828f of['indentBlock','outdentBlock'])_0x8bc1fc['enableDefaultAttributesIntegration'](_0x12828f);}const _0x4b2738=_0x4ea808['locale'];_0x8bc1fc['registerBlockAttribute']('blockIndent'),_0x8bc1fc['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4b2738,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49d5f2=this['editor'],_0x2dde27=_0x49d5f2['locale'],_0x8ba8ab=_0x49d5f2['plugins']['get']('TrackChangesEditing');_0x8ba8ab['descriptionFactory']['registerDescriptionCallback'](_0x3e1f11=>{if('formatBlock'!=_0x3e1f11['type'])return;const {data:_0x85d312}=_0x3e1f11;if(!_0x85d312)return;if('indentBlock'!=_0x85d312['commandName']&&'outdentBlock'!=_0x85d312['commandName'])return;const _0x5d1992=_0x3e1f11['getItems']()[0x0],_0x43453b=_0x8ba8ab['descriptionFactory']['getItemLabel'](_0x5d1992);return'indentBlock'==_0x85d312['commandName']?{'type':'format','content':o(_0x2dde27,'*Indent:*\x20%0',_0x43453b)}:'outdentBlock'==_0x85d312['commandName']?{'type':'format','content':o(_0x2dde27,'*Outdent:*\x20%0',_0x43453b)}:void 0x0;});}}class ft extends _0x2c2070{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2c2070{['afterInit'](){const _0x53ae77=this['editor'];if(!_0x53ae77['plugins']['has']('LinkEditing'))return;const _0x2443e8=_0x53ae77['plugins']['get']('TrackChangesEditing'),_0x44fe2e=_0x53ae77['commands']['get']('link');_0x2443e8['enableDefaultAttributesIntegration']('link'),_0x2443e8['enableDefaultAttributesIntegration']('unlink'),_0x2443e8['registerInlineAttribute']('linkHref');for(const _0x297d8d of _0x44fe2e['manualDecorators'])_0x2443e8['registerInlineAttribute'](_0x297d8d['id']),_0x2443e8['descriptionFactory']['registerAttributeLabel'](_0x297d8d['id'],'link\x20('+_0x297d8d['label']['toLowerCase']()+')');_0x2443e8['descriptionFactory']['registerDescriptionCallback'](_0x1f6c79=>{if('attribute'!=_0x1f6c79['type'])return;const {data:_0x1d8cc1}=_0x1f6c79;if(!_0x1d8cc1||'linkHref'!=_0x1d8cc1['key'])return;const _0x544688=_0x1d8cc1['newValue'],_0x502646=_0x53ae77['locale'];return{'type':'format','content':null==_0x544688?o(_0x502646,'*Remove\x20link*'):o(_0x502646,'*Set\x20link:*\x20%0','\x22'+_0x544688+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ff7d1=this['editor'],_0x324ab2=_0x2ff7d1['locale'];_0x2ff7d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x60861d=>{if('formatInline'!=_0x60861d['type'])return;const {data:_0xdda007}=_0x60861d;if(_0xdda007){if('link'==_0xdda007['commandName']){const _0x37494d=_0xdda007['commandParams'][0x0];return{'type':'format','content':o(_0x324ab2,'*Set\x20link:*\x20%0','\x22'+_0x37494d+'\x22')};}return'unlink'==_0xdda007['commandName']?{'type':'format','content':o(_0x324ab2,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x2c2070{['afterInit'](){const _0x346467=this['editor'],_0x1be05a=_0x346467['locale'];if(!_0x346467['plugins']['has']('LegacyListEditing'))return;const _0x4cfb10=_0x346467['plugins']['get']('TrackChangesEditing'),_0x3df360=_0x346467['plugins']['has']('LegacyTodoListEditing');function _0x3ce5c2(_0x1619c5){return()=>{const _0x2f60fb=_0x346467['model']['document']['selection'],_0x5df50e=_0x346467['commands']['get'](_0x1619c5);if(_0x5df50e['value'])return void _0x346467['execute']('paragraph',{});const _0x4e44af=_0x1619c5['slice'](0x0,-0x4),_0x4014ed=function(_0x3012b5,_0x3461a3,_0xa93fd3){let _0x177a55=Array['from'](_0x3012b5)['filter'](_0x5b96dd=>function(_0x47c488,_0x1c4ad7){return _0x1c4ad7['checkChild'](_0x47c488['parent'],'listItem')&&!_0x1c4ad7['isObject'](_0x47c488);}(_0x5b96dd,_0xa93fd3));_0x177a55=_0x177a55['filter'](_0x123594=>!_0x123594['is']('element','listItem')||_0x123594['getAttribute']('listType')!=_0x3461a3);const _0x4ee423=new Set();for(const _0x586c52 of _0x177a55)_0x586c52['is']('element','listItem')?_0x4ee423['add'](Le(_0x586c52)):_0x4ee423['add'](_0x586c52);return Array['from'](_0x4ee423);}(_0x2f60fb['getSelectedBlocks'](),_0x4e44af,_0x346467['model']['schema']);_0x346467['model']['change'](()=>{for(const _0x4222d0 of _0x4014ed)_0x4cfb10['markBlockFormat'](_0x4222d0,{'commandName':_0x1619c5,'commandParams':[{'forceValue':!_0x5df50e['value']}],'formatGroupId':'blockName'},Ee(_0x4222d0));});};}function _0x1754a0(_0x19958f){return()=>{const _0x50c940=function(_0x487b54){let _0x35e009=Array['from'](_0x487b54);const _0x53ae8e=_0x35e009['findIndex'](_0x94707a=>'listItem'!=_0x94707a['name']);return _0x53ae8e>-0x1&&(_0x35e009=_0x35e009['slice'](0x0,_0x53ae8e)),_0x35e009;}(_0x346467['model']['document']['selection']['getSelectedBlocks']()),_0x46d937=_0x346467['model']['createRange'](_0x346467['model']['createPositionAt'](_0x50c940[0x0],'before'),_0x346467['model']['createPositionAt'](_0x50c940[_0x50c940['length']-0x1],'end'));_0x346467['model']['change'](()=>{_0x4cfb10['markBlockFormat'](_0x46d937,{'commandName':_0x19958f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4730a6){const _0x515a43=new Set();for(const _0x26deec of _0x4730a6){let _0xec2c8f=_0x26deec['nextSibling'];for(;_0xec2c8f&&_0xec2c8f['getAttribute']('listIndent')>_0x26deec['getAttribute']('listIndent');)_0x515a43['add'](_0xec2c8f),_0xec2c8f=_0xec2c8f['nextSibling'];}return Array['from'](_0x515a43);}(_0x50c940));});};}_0x4cfb10['enableCommand']('numberedList',_0x3ce5c2('numberedList')),_0x4cfb10['enableCommand']('bulletedList',_0x3ce5c2('bulletedList')),_0x3df360&&_0x4cfb10['enableCommand']('todoList',_0x3ce5c2('todoList')),_0x4cfb10['enableCommand']('indentList',_0x1754a0('indentList')),_0x4cfb10['enableCommand']('outdentList',_0x1754a0('outdentList')),_0x3df360&&_0x4cfb10['enableCommand']('checkTodoList',()=>{const _0x39b7b2=_0x346467['commands']['get']('checkTodoList'),_0x1ffb9e=Array['from'](_0x39b7b2['_selectedElements']);_0x1ffb9e['filter'](_0x50eb5c=>_0x50eb5c['getAttribute']('todoListChecked')!=_0x39b7b2['value']),_0x346467['model']['change'](()=>{for(const _0x32763f of _0x1ffb9e)_0x4cfb10['markBlockFormat'](_0x32763f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x39b7b2['value']}]});});}),_0x4cfb10['descriptionFactory']['registerElementLabel']('listItem',_0xa5a33f=>o(_0x1be05a,'ELEMENT_LIST_ITEM',_0xa5a33f)),_0x4cfb10['descriptionFactory']['registerDescriptionCallback'](_0x37d4a5=>{if('formatBlock'!=_0x37d4a5['type']&&'formatInline'!=_0x37d4a5['type'])return;const {data:_0x4c32b5}=_0x37d4a5;if(_0x4c32b5){if('numberedList'==_0x4c32b5['commandName']||'bulletedList'==_0x4c32b5['commandName']||'todoList'==_0x4c32b5['commandName'])switch(_0x4c32b5['commandName']['replace']('List','')){case'bulleted':return _0x2d9cf7(o(_0x1be05a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2d9cf7(o(_0x1be05a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2d9cf7(o(_0x1be05a,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c32b5['commandName'])return{'type':'format','content':o(_0x1be05a,'*Indent:*\x20%0',o(_0x1be05a,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c32b5['commandName'])return{'type':'format','content':o(_0x1be05a,'*Outdent:*\x20%0',o(_0x1be05a,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c32b5['commandName'])return _0x4c32b5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1be05a,'*Check\x20item*')}:{'type':'format','content':o(_0x1be05a,'*Uncheck\x20item*')};}function _0x2d9cf7(_0x1972f4){return{'type':'format','content':o(_0x1be05a,'*Change\x20to:*\x20%0',_0x1972f4)};}});}}function Le(_0x4d7aa3){const _0x5c13f8=_0x4d7aa3['getAttribute']('listIndent');if(0x0==_0x5c13f8)return _0x4d7aa3;let _0x44ecc6=_0x4d7aa3;for(;_0x4d7aa3['previousSibling']&&_0x4d7aa3['previousSibling']['is']('element','listItem');){const _0x197425=_0x4d7aa3['previousSibling']['getAttribute']('listIndent');if(_0x197425==_0x5c13f8)_0x44ecc6=_0x4d7aa3['previousSibling'];else{if(_0x197425<_0x5c13f8)break;}_0x4d7aa3=_0x4d7aa3['previousSibling'];}return _0x44ecc6;}function Ee(_0x1c4055){const _0x1533db=[];if(_0x1c4055['is']('element','listItem')&&_0x1c4055['getAttribute']('listIndent')>0x0){let _0x4707ca=_0x1c4055['nextSibling'];for(;_0x4707ca&&'listItem'==_0x4707ca['name']&&_0x4707ca['getAttribute']('listIndent')==_0x1c4055['getAttribute']('listIndent');)_0x1533db['push'](_0x4707ca),_0x4707ca=_0x4707ca['nextSibling'];}return _0x1533db;}class Q extends _0x2c2070{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x560c59=this['editor']['config']['get']('list.properties'),_0x3c8568=this['editor']['plugins']['get']('TrackChangesEditing');_0x560c59['styles']&&_0x3c8568['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x560c59['reversed']&&_0x3c8568['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x560c59['startIndex']&&_0x3c8568['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3c8568['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x36a9e5,_0x1b09e4={}){const _0x19272d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dbba2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x19272d['markMultiRangeBlockFormat'](_0x4dbba2,{'commandName':'listStyle','commandParams':[{'type':_0x1b09e4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x161e08,_0x52241e={}){const _0x4faa8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bc042=this['_getSuggestionBlocks'](_0x4eb487=>_0x4eb487['is']('element','listItem')&&'numbered'===_0x4eb487['getAttribute']('listType'));if(_0x1bc042['length']<0x1)return;const _0x171522=_0x1bc042['map'](_0x3589ef=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3589ef,'before'),this['editor']['model']['createPositionAt'](_0x3589ef,0x0)));this['editor']['model']['change'](()=>{_0x4faa8a['markMultiRangeBlockFormat'](_0x171522,{'commandName':'listReversed','commandParams':[{'reversed':_0x52241e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5ad5bc,_0x3a4a61={}){const _0x4d2bb1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a3943=this['_getSuggestionBlocks'](_0x3c89e5=>_0x3c89e5['is']('element','listItem')&&'numbered'===_0x3c89e5['getAttribute']('listType'));if(_0x1a3943['length']<0x1)return;const _0x53cbb=_0x1a3943['map'](_0x11703a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11703a,'before'),this['editor']['model']['createPositionAt'](_0x11703a,0x0)));this['editor']['model']['change'](()=>{_0x4d2bb1['markMultiRangeBlockFormat'](_0x53cbb,{'commandName':'listStart','commandParams':[{'startIndex':_0x3a4a61['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xc03ee4){if('formatBlock'!=_0xc03ee4['type']&&'formatInline'!=_0xc03ee4['type'])return;const _0x1702ec=this['editor']['locale'],{data:_0x442f2c}=_0xc03ee4;if(!_0x442f2c)return;let _0xcc34b8,_0x3af763;switch(_0x442f2c['commandName']){case'listStyle':_0xcc34b8='*Change\x20to:*\x20%0',_0x3af763={'type':'format','content':o(_0x1702ec,_0xcc34b8,o(_0x1702ec,this['_getTranslationKeyForListStyle'](_0x442f2c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xcc34b8=_0x442f2c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3af763={'type':'format','content':o(_0x1702ec,_0xcc34b8)};break;case'listStart':_0xcc34b8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3af763={'type':'format','content':o(_0x1702ec,_0xcc34b8,_0x442f2c['commandParams'][0x0]['startIndex'])};}return _0x3af763;}['_getSuggestionBlocksForListStyle'](){const _0x8229a8=this['editor']['plugins']['get']('LegacyListUtils');let _0x1cf944=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1cf944[0x0]?.['is']('element','listItem')&&_0x1cf944['unshift'](..._0x8229a8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1cf944[_0x1cf944['length']-0x1]?.['is']('element','listItem')&&_0x1cf944['push'](..._0x8229a8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1cf944=[...new Set(_0x1cf944)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1cf944=_0x1cf944['filter'](_0xf5f5f3=>_0xf5f5f3['is']('element','listItem'))),_0x1cf944;}['_getSuggestionBlocks'](_0x279c1e){const _0x2024cf=this['editor']['plugins']['get']('LegacyListUtils');let _0x37fb0a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x279c1e)['map'](_0x49fcb2=>{const _0x1eecb5=this['editor']['model']['createPositionAt'](_0x49fcb2,0x0);return[..._0x2024cf['getSiblingNodes'](_0x1eecb5,'backward'),..._0x2024cf['getSiblingNodes'](_0x1eecb5,'forward')];})['flat']();return _0x37fb0a=[...new Set(_0x37fb0a)],_0x37fb0a;}['_getTranslationKeyForListStyle'](_0x5bc7c1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5bc7c1)||'default')['toUpperCase']()+'_LIST_'+_0x5bc7c1['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2c2070{['afterInit'](){const _0x352a25=this['editor'];if(!_0x352a25['plugins']['has']('MediaEmbedEditing'))return;const _0x36464f=_0x352a25['plugins']['get']('TrackChangesEditing'),_0x2895ad=_0x352a25['locale'];_0x36464f['enableCommand']('mediaEmbed'),_0x36464f['descriptionFactory']['registerElementLabel']('media',_0x531f76=>o(_0x2895ad,'ELEMENT_MEDIA',_0x531f76)),_0x352a25['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x245470,{writer:_0x490030,options:_0x5c1795})=>{if(_0x5c1795['showSuggestionHighlights'])return _0x490030['createEmptyElement']('div');},'converterPriority':'high'}),_0x352a25['data']['downcastDispatcher']['on']('attribute:url:media',(_0x29d057,_0x526b2b,_0x52ee47)=>{_0x52ee47['options']['showSuggestionHighlights']&&_0x29d057['stop']();},{'priority':'high'});}}class mt extends _0x2c2070{['afterInit'](){const _0x2984cf=this['editor'];_0x2984cf['plugins']['has']('MentionEditing')&&_0x2984cf['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x2c2070{['afterInit'](){const _0x35df0f=this['editor'];if(!_0x35df0f['plugins']['has']('MergeFieldsEditing'))return;_0x35df0f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x35df0f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x562857=_0x35df0f['plugins']['get']('TrackChangesEditing'),_0x1f2f6d=_0x35df0f['locale'];_0x562857['descriptionFactory']['registerElementLabel']('mergeField',_0x378a86=>o(_0x1f2f6d,'ELEMENT_MERGE_FIELD',_0x378a86)),_0x562857['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x29535b=>o(_0x1f2f6d,'ELEMENT_MERGE_FIELD',_0x29535b)),_0x562857['descriptionFactory']['registerDescriptionCallback'](_0x77c101=>{if('insertion'!=_0x77c101['type']&&'deletion'!=_0x77c101['type'])return;const _0x440d2d=_0x77c101['getContainedElement']();if(null==_0x440d2d)return;if(!_0x440d2d['is']('element','mergeField')&&!_0x440d2d['is']('element','mergeFieldBlock'))return;const _0x12f835=_0x35df0f['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x440d2d['getAttribute']('id'));return'insertion'==_0x77c101['type']?{'type':'insertion','content':o(_0x1f2f6d,'*Insert:*\x20%0','\x22'+_0x12f835+'\x22\x20'+o(_0x1f2f6d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1f2f6d,'*Remove:*\x20%0','\x22'+_0x12f835+'\x22\x20'+o(_0x1f2f6d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x2c2070{['afterInit'](){const _0x146cc0=this['editor'],_0xfa4860=_0x146cc0['plugins']['get']('TrackChangesEditing');_0x146cc0['plugins']['has']('MultiLevelList')&&(_0xfa4860['enableDefaultAttributesIntegration']('multiLevelList'),_0xfa4860['registerBlockAttribute']('listMarkerStyle'),_0xfa4860['descriptionFactory']['registerDescriptionCallback'](_0x3e1e38=>this['handleDescriptions'](_0x3e1e38)));}['handleDescriptions'](_0x29e75b){const _0x6096c1=this['editor']['locale'],{data:_0x16c146}=_0x29e75b,_0x1f9bf5={'type':'format','content':''};if(_0x16c146&&'listMarkerStyle'==_0x16c146['key']){if(!_0x16c146['oldValue'])return{'type':'format','content':o(_0x6096c1,'*Set\x20format:*\x20%0',o(_0x6096c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x16c146['newValue']+')'};if(!_0x16c146['newValue']){let _0x89ed01=_0x29e75b['head'];for(;_0x89ed01;){if(_0x89ed01['data']&&'listType'==_0x89ed01['data']['key']&&_0x89ed01['data']['newValue'])return _0x1f9bf5;_0x89ed01=_0x89ed01['next'];}return{'type':'format','content':o(_0x6096c1,'*Remove\x20format:*\x20%0',o(_0x6096c1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x16c146['oldValue']+')'};}}}}class kt extends _0x2c2070{['afterInit'](){const _0x3e2db7=this['editor'];if(!_0x3e2db7['plugins']['has']('PageBreakEditing'))return;_0x3e2db7['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1175fa=_0x3e2db7['plugins']['get']('TrackChangesEditing'),_0x25e646=_0x3e2db7['locale'];_0x1175fa['descriptionFactory']['registerElementLabel']('pageBreak',_0x5afc82=>o(_0x25e646,'ELEMENT_PAGE_BREAK',_0x5afc82));}}class bt extends _0x2c2070{['afterInit'](){const _0x3f6c4b=this['editor'];if(!_0x3f6c4b['plugins']['has']('Paragraph'))return;const _0x35e9ba=_0x3f6c4b['locale'],_0x213cf1=_0x3f6c4b['plugins']['get']('TrackChangesEditing');_0x213cf1['descriptionFactory']['registerElementLabel']('paragraph',_0x2fd7b0=>o(_0x35e9ba,'ELEMENT_PARAGRAPH',_0x2fd7b0)),_0x213cf1['enableDefaultAttributesIntegration']('paragraph'),_0x213cf1['enableCommand']('insertParagraph'),_0x3f6c4b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3f6c4b),{'priority':'highest'}),_0x3f6c4b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x579b34,_0xeaff0f,_0x19ab4d)=>{_0x19ab4d['options']['showSuggestionHighlights']&&nr(_0x3f6c4b,{'showActiveMarker':!0x1})(_0x579b34,_0xeaff0f,_0x19ab4d);},{'priority':'highest'});const _0x1dcc5c=_0x213cf1['descriptionFactory'];_0x1dcc5c['registerDescriptionCallback'](_0x3e2ba3=>{if('insertion'!==_0x3e2ba3['type'])return;const {start:_0x147960,end:_0x254b8c}=_0x3e2ba3['getFirstRange']();if(!_0x147960['isTouching'](_0x254b8c)||!_0x147960['nodeAfter'])return;const _0x4936ef=_0x3f6c4b['model']['schema'],_0x33603d=_0x147960['nodeAfter'];return _0x4936ef['isBlock'](_0x33603d)&&!_0x4936ef['isLimit'](_0x33603d)&&_0x4936ef['checkChild'](_0x33603d,'$text')?{'type':'insertion','content':o(_0x35e9ba,'*Insert:*\x20%0',_0x1dcc5c['getItemLabel'](_0x33603d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d875a=this['editor'],_0x23483b=_0x2d875a['locale'];_0x2d875a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c44b0=>{if('formatBlock'!=_0x1c44b0['type'])return;const {data:_0x255042}=_0x1c44b0;return _0x255042&&'paragraph'==_0x255042['commandName']?{'type':'format','content':o(_0x23483b,'*Change\x20to:*\x20%0',o(_0x23483b,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x301eb0,{showActiveMarker:_0x385e46=!0x0}={}){return(_0x56b90d,_0x1f2a4c,_0x48478e)=>{const _0x1f41ac=_0x301eb0['plugins']['get']('TrackChangesEditing'),_0x515b6d=_0x1f2a4c['markerRange']['start'],_0x7397e9=_0x1f2a4c['markerRange']['end'],_0x50fc0c=_0x301eb0['model']['schema'];if(!_0x515b6d['isTouching'](_0x7397e9)||!_0x515b6d['nodeAfter'])return;const _0xbfaa61=_0x515b6d['nodeAfter'];if(_0x50fc0c['isBlock'](_0xbfaa61)&&!_0x50fc0c['isLimit'](_0xbfaa61)&&_0x50fc0c['checkChild'](_0xbfaa61,'$text')){if(!_0x48478e['consumable']['consume'](_0x1f2a4c['markerRange'],_0x56b90d['name']))return;const {authorId:_0x7f35d9}=_0x1f41ac['_splitMarkerName'](_0x1f2a4c['markerName']),_0xf6a690=_0x48478e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x7f35d9}),_0x421edf=_0x48478e['mapper']['toViewPosition'](_0x7397e9);_0x385e46&&_0x1f41ac['activeMarkers']['includes'](_0x1f2a4c['markerName'])&&_0x48478e['writer']['addClass']('ck-suggestion-marker--active',_0xf6a690),_0x48478e['writer']['insert'](_0x421edf,_0xf6a690),_0x48478e['mapper']['bindElementToMarker'](_0xf6a690,_0x1f2a4c['markerName']);}};}class yt extends _0x2c2070{['afterInit'](){const _0x353be9=this['editor'];if(!_0x353be9['plugins']['has']('RemoveFormatEditing'))return;_0x353be9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x519373=this['editor'];_0x519373['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x585424=>{if('formatBlock'!=_0x585424['type']&&'formatInline'!=_0x585424['type'])return;const {data:_0x88467}=_0x585424;return _0x88467&&'removeFormat'==_0x88467['commandName']?{'type':'format','content':o(_0x519373['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x2c2070{['afterInit'](){const _0x58fe12=this['editor'];if(!_0x58fe12['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x18fcba=_0x58fe12['plugins']['get']('TrackChangesEditing');_0x18fcba['enableCommand']('goToPreviousRestrictedEditingException'),_0x18fcba['enableCommand']('goToNextRestrictedEditingException');const _0xcb44ef=_0x58fe12['plugins']['get']('RestrictedEditingModeEditing');_0xcb44ef['enableCommand']('trackChanges'),_0xcb44ef['enableCommand']('acceptSuggestion'),_0xcb44ef['enableCommand']('discardSuggestion'),_0xcb44ef['enableCommand']('acceptAllSuggestions'),_0xcb44ef['enableCommand']('discardAllSuggestions'),_0xcb44ef['enableCommand']('acceptSelectedSuggestions'),_0xcb44ef['enableCommand']('discardSelectedSuggestions');}}class St extends _0x2c2070{static get['requires'](){return[_0x2d0c75];}['init'](){const _0x122bc5=this['editor'],_0x37f2e7=_0x122bc5['plugins']['get']('TrackChangesEditing');_0x37f2e7['enableCommand']('shiftEnter'),_0x122bc5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x122bc5),{'priority':'high'}),_0x122bc5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x122bc5),{'priority':'high'}),_0x122bc5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5389f3,_0x1f6ea2,_0x15e5ba)=>{_0x15e5ba['options']['showSuggestionHighlights']&&ke(_0x122bc5,{'showActiveMarker':!0x1})(_0x5389f3,_0x1f6ea2,_0x15e5ba);}),_0x37f2e7['descriptionFactory']['registerElementLabel']('softBreak',_0x3e9cbd=>o(_0x122bc5['locale'],'ELEMENT_LINE_BREAK',_0x3e9cbd));}}function ke(_0x39cee9,{showActiveMarker:_0x3f9f63=!0x0}={}){return(_0xc8640d,_0x183325,_0xeb78d8)=>{const _0x3b29d6=_0x39cee9['plugins']['get']('TrackChangesEditing');if(!_0xeb78d8['consumable']['test'](_0x183325['markerRange'],_0xc8640d['name']))return;const _0x25dcc3=_0x39cee9['model'];for(const _0x457b0b of _0x183325['markerRange']['getItems']()){if(!_0x457b0b['is']('element','softBreak'))continue;const _0xc832d0='deletion'==_0x183325['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1ece66}=_0x3b29d6['_splitMarkerName'](_0x183325['markerName']),_0x5ed787=_0xeb78d8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc832d0,'data-author-id':_0x1ece66}),_0xeec54c=_0xeb78d8['mapper']['toViewPosition'](_0x25dcc3['createPositionBefore'](_0x457b0b));_0x3f9f63&&_0x3b29d6['activeMarkers']['includes'](_0x183325['markerName'])&&_0xeb78d8['writer']['addClass']('ck-suggestion-marker--active',_0x5ed787),_0xeb78d8['writer']['insert'](_0xeec54c,_0x5ed787),_0xeb78d8['mapper']['bindElementToMarker'](_0x5ed787,_0x183325['markerName']);}};}class At extends _0x2c2070{['afterInit'](){const _0x1ca987=this['editor'],_0x327c66=_0x1ca987['model'],_0x582fa7=_0x1ca987['locale'];if(!_0x1ca987['plugins']['has']('StandardEditingModeEditing'))return;const _0x367c44=_0x1ca987['plugins']['get']('TrackChangesEditing'),_0xb544e6='restrictedEditingException',_0x8f0c48=_0x1ca987['commands']['get'](_0xb544e6);_0x367c44['enableCommand'](_0xb544e6,(_0x27a2a8,_0x495c4f={})=>{const _0x517e8b=_0x327c66['document']['selection'];if(_0x517e8b['isCollapsed'])return void _0x27a2a8(_0x495c4f);const _0x5a33c3=void 0x0!==_0x495c4f['forceValue']?_0x495c4f['forceValue']:!_0x8f0c48['value'];_0x327c66['change'](()=>{const _0x3a1637=Array['from'](_0x517e8b['getRanges']());for(const _0x258bbc of _0x3a1637){const _0x449e2d=_0x5a33c3?[_0x258bbc]:io(_0xb544e6,_0x258bbc,_0x327c66);for(const _0x9fa722 of _0x449e2d)_0x367c44['markInlineFormat'](_0x9fa722,{'commandName':_0xb544e6,'commandParams':[{'forceValue':_0x5a33c3}]});}});}),_0x367c44['descriptionFactory']['registerDescriptionCallback'](_0x50b698=>{if('formatBlock'!=_0x50b698['type']&&'formatInline'!=_0x50b698['type'])return;const {data:_0xf352dc}=_0x50b698;return _0xf352dc&&_0xf352dc['commandName']==_0xb544e6?_0xf352dc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x582fa7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x582fa7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2c2070{['afterInit'](){const _0x5c706f=this['editor'];if(!_0x5c706f['plugins']['has']('Style')||!_0x5c706f['plugins']['has']('DataSchema'))return;const _0x53c205=_0x5c706f['plugins']['get']('TrackChangesEditing'),_0x47ef85=_0x5c706f['locale'],_0xa2a7ca=_0x5c706f['config']['get']('style')||{},_0x45ce0c=_0x5c706f['plugins']['get']('GeneralHtmlSupport'),_0x4422b6=_0x5c706f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5c706f['plugins']['get']('DataSchema'),_0xa2a7ca['definitions']);_0x53c205['enableDefaultAttributesIntegration']('style');const _0x1254e2=new Set();for(const _0x1bc2c7 of _0x4422b6['block']){const _0x5d8488=_0x45ce0c['getGhsAttributeNameForElement'](_0x1bc2c7['element']);_0x1254e2['add'](_0x5d8488);}const _0x4aba71=new Set();for(const _0x5a1a98 of _0x4422b6['inline']){const _0x2476f9=_0x45ce0c['getGhsAttributeNameForElement'](_0x5a1a98['element']);_0x4aba71['add'](_0x2476f9);for(const _0x3550a6 of _0x5a1a98['ghsAttributes'])_0x4aba71['add'](_0x3550a6);}for(const _0x557dfa of _0x1254e2)_0x53c205['registerBlockAttribute'](_0x557dfa),_0x53c205['descriptionFactory']['registerAttributeLabel'](_0x557dfa,o(_0x47ef85,'FORMAT_STYLE'));for(const _0xfc8b5 of _0x4aba71)_0x53c205['registerInlineAttribute'](_0xfc8b5),_0x53c205['descriptionFactory']['registerAttributeLabel'](_0xfc8b5,o(_0x47ef85,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d107f=this['editor'],_0x3c8931=_0x4d107f['locale'];_0x4d107f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x295e1e=>{if('formatBlock'!=_0x295e1e['type']&&'formatInline'!=_0x295e1e['type'])return;const {data:_0x1f34e0}=_0x295e1e;return _0x1f34e0&&'style'===_0x1f34e0['commandName']?_0x1f34e0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c8931,'*Set\x20format:*\x20%0',_0x1f34e0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3c8931,'*Remove\x20format:*\x20%0',_0x1f34e0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x2c2070{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4e4d72){super(_0x4e4d72),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x43ec95=this['editor'],_0x3b7905=_0x43ec95['model']['document']['selection'];if(!_0x43ec95['plugins']['has']('TableEditing'))return;const _0x550110=_0x43ec95['locale'],_0x197731=_0x43ec95['plugins']['get']('TrackChangesEditing'),_0x4d521e=_0x43ec95['plugins']['get']('TableUtils');_0x197731['descriptionFactory']['registerElementLabel']('table',_0x391315=>o(_0x550110,'ELEMENT_TABLE',_0x391315)),this['_setupColumnsRowsFixing'](),_0x197731['enableCommand']('insertTable'),_0x197731['enableCommand']('selectTableRow'),_0x197731['enableCommand']('selectTableColumn');for(const _0x2b5a8a of['insertTableRowAbove','insertTableRowBelow']){const _0x588f97=_0x43ec95['commands']['get'](_0x2b5a8a);_0x197731['enableCommand'](_0x2b5a8a,_0x2baf81=>{_0x43ec95['model']['change'](_0x4242d6=>{_0x2baf81();const _0x5ef95b='above'===_0x588f97['order'],_0x309a1a=_0x4d521e['getSelectionAffectedTableCells'](_0x3b7905),_0x55cda6=_0x4d521e['getRowIndexes'](_0x309a1a),_0x4cdecf=_0x5ef95b?_0x55cda6['first']-0x1:_0x55cda6['last']+0x1,_0x41345f=_0x309a1a[0x0]['findAncestor']('table'),_0x3dca99=_0x4d521e['createTableWalker'](_0x41345f,{'startRow':_0x4cdecf,'endRow':_0x4cdecf}),_0x454822=Array['from'](_0x3dca99)['map'](_0x37494c=>_0x4242d6['createRangeOn'](_0x37494c['cell']));_0x197731['markMultiRangeInsertion'](_0x454822,'tableRow');});});}for(const _0x2fa8e0 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3dc686=_0x43ec95['commands']['get'](_0x2fa8e0);_0x197731['enableCommand'](_0x2fa8e0,_0x373a35=>{_0x43ec95['model']['change'](_0x4244a3=>{_0x373a35();const _0xafe3e2='left'===_0x3dc686['order'],_0x4de011=_0x4d521e['getSelectionAffectedTableCells'](_0x3b7905),_0x14819f=_0x4d521e['getColumnIndexes'](_0x4de011),_0x4e1b49=_0xafe3e2?_0x14819f['first']-0x1:_0x14819f['last']+0x1,_0x550c14=_0x4de011[0x0]['findAncestor']('table'),_0x353aa3=_0x4d521e['createTableWalker'](_0x550c14,{'startRow':0x0,'column':_0x4e1b49,'includeAllSlots':!0x1}),_0x51555c=Array['from'](_0x353aa3)['map'](_0x2b0220=>_0x4244a3['createRangeOn'](_0x2b0220['cell']));_0x197731['markMultiRangeInsertion'](_0x51555c,'tableColumn');});});}for(const _0x4e830c of['removeTableRow','removeTableColumn']){const _0x22a90c=_0x4e830c['substr'](0xb),_0x4d557f=_0x22a90c['toLowerCase'](),_0x528e78=_0x4d557f['substr'](0x0,0x3)+'span',_0x6103b='table'+_0x22a90c,_0x17aa52='min'+_0x22a90c,_0x5ef1bf='max'+_0x22a90c;_0x197731['enableCommand'](_0x4e830c,()=>{_0x43ec95['model']['change'](_0x606b25=>{const _0x5873c8=_0x4d521e['getSelectionAffectedTableCells'](_0x3b7905),_0x2e7742=_0x5873c8[0x0]['findAncestor']('table');let _0x127de2;if('removeTableRow'==_0x4e830c){const _0x4a6500=_0x4d521e['getRowIndexes'](_0x5873c8);_0x127de2={'startRow':_0x4a6500['first'],'endRow':_0x4a6500['last'],'includeAllSlots':!0x0};}else{const _0x4c67bd=_0x4d521e['getColumnIndexes'](_0x5873c8);_0x127de2={'startColumn':_0x4c67bd['first'],'endColumn':_0x4c67bd['last'],'includeAllSlots':!0x0};}const _0x3db782=_0x4d521e['createTableWalker'](_0x2e7742,_0x127de2),_0x11ad80=Array['from'](_0x3db782)['map'](({cell:_0x4ec609})=>_0x4ec609),_0x386f78=Re(_0x11ad80['filter'](_0x12cefa=>_0x12cefa['hasAttribute'](_0x528e78))),_0xfaf0cc=Re(_0x11ad80['filter'](_0x238df3=>!_0x238df3['hasAttribute'](_0x528e78)))['map'](_0x155a49=>_0x606b25['createRangeOn'](_0x155a49)),_0x1e48ce=_0x197731['markMultiRangeDeletion'](_0xfaf0cc,_0x6103b);if(_0x1e48ce&&('tableRow'==_0x1e48ce['subType']||'tableColumn'==_0x1e48ce['subType'])){const _0x63300d=this['_getSuggestionCoords'](_0x1e48ce);for(const _0x57c8ec of _0x386f78){const _0x35bacd=_0x606b25['createRangeOn'](_0x57c8ec),_0x5e6e37=_0x4d521e['getCellLocation'](_0x57c8ec),_0x5a5eba=_0x57c8ec['getAttribute'](_0x528e78)-0x1,_0x40098f=_0x63300d[_0x17aa52],_0x4404b9=_0x63300d[_0x5ef1bf];_0x40098f<=_0x5e6e37[_0x4d557f]&&_0x5e6e37[_0x4d557f]+_0x5a5eba<=_0x4404b9&&_0x1e48ce['addRange'](_0x35bacd);}}});});}function _0x17530a(_0x20b099){const _0x462abd=Array['from'](_0x3b7905['getRanges']())['map'](_0xe84b01=>_0x1b403d['fromRange'](_0xe84b01));_0x43ec95['model']['change'](_0x266df4=>{const _0x420cb2=_0x266df4['batch'];_0x20b099=_0x20b099['filter'](_0x4305a3=>'$graveyard'!=_0x4305a3['root']['rootName']),_0x266df4['setSelection'](_0x20b099),_0x43ec95['commands']['get']('removeTableRow')['refresh'](),_0x43ec95['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x43ec95['model']['enqueueChange'](()=>{_0x43ec95['model']['enqueueChange'](_0x420cb2,_0x38b727=>{const _0x4b0e0c=_0x462abd['filter'](_0x3af7b3=>'$graveyard'!=_0x3af7b3['root']['rootName']);_0x4b0e0c['length']>0x0&&_0x38b727['setSelection'](_0x4b0e0c);for(const _0xf70af8 of _0x462abd)_0xf70af8['detach']();});});});}function _0x8e0bcb(_0x39ef8b){_0x43ec95['model']['change'](_0xde836f=>{const _0x2bc276=Array['from'](_0x3b7905['getRanges']())['map'](_0x2cbbb6=>_0x1b403d['fromRange'](_0x2cbbb6)),_0x324dbd=[];for(const _0x4c489d of _0x39ef8b)for(const _0x4adb3e of _0x4c489d['getItems']({'shallow':!0x0}))_0x324dbd['push'](_0x4adb3e);for(const _0xa4219c of _0x324dbd)'$graveyard'!=_0xa4219c['root']['rootName']&&(_0xde836f['setSelection'](_0xde836f['createPositionAt'](_0xa4219c,0x0)),_0x43ec95['commands']['get']('removeTableColumn')['refresh'](),_0x43ec95['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4209dd=_0x2bc276['filter'](_0x5bf925=>'$graveyard'!=_0x5bf925['root']['rootName']);_0x4209dd['length']>0x0&&_0xde836f['setSelection'](_0x4209dd);for(const _0x3b66b3 of _0x2bc276)_0x3b66b3['detach']();});}function _0xe74295(_0x10d108,_0x3e2265){return _0x3e2265['every'](_0x41c4d0=>_0x10d108['some'](_0x3180e2=>_0x3180e2['end']['isEqual'](_0x41c4d0['start'])||_0x41c4d0['end']['isEqual'](_0x3180e2['start'])));}function _0x43951d(_0x22e672,_0x45cec4){return!_0x22e672['some'](_0x245763=>_0x45cec4['some'](_0x534e2a=>_0x245763['isIntersecting'](_0x534e2a)))&&_0x22e672['some'](_0x4cb89f=>_0x45cec4['some'](_0xc3df28=>_0x4cb89f['end']['isTouching'](_0xc3df28['start'])));}_0x43ec95['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a45a1,_0x52eb7a,_0x1e1d94)=>{if(!_0x1e1d94['options']['showSuggestionHighlights'])return;const _0x575303=_0x52eb7a['item'];if(!_0x575303)return;const _0x47fd1e=_0x1e1d94['mapper']['toViewElement'](_0x575303);function _0x156ae5(_0x17ddd8){return Array['isArray'](_0x17ddd8)?_0x17ddd8:[_0x17ddd8];}_0x47fd1e&&'tableCell'===_0x575303['name']&&_0x3c4076(_0x47fd1e,_0x1e1d94['writer'],(_0x5177e1,_0x4d2ced,_0x8ad42e)=>_0x8ad42e['addClass'](_0x156ae5(_0x4d2ced['classes']),_0x5177e1),(_0x3d0b23,_0x3e35e6,_0x3c2d7c)=>_0x3c2d7c['removeClass'](_0x156ae5(_0x3e35e6['classes']),_0x3d0b23));},{'priority':'highest'}),_0x197731['descriptionFactory']['registerDescriptionCallback'](_0x19d7cc=>{if('insertion'!=_0x19d7cc['type']&&'deletion'!=_0x19d7cc['type'])return;const _0x40d694=_0x19d7cc['getContainedElement']();if(null!=_0x40d694&&_0x40d694['is']('element','table')){if('insertion'==_0x19d7cc['type']){const _0x5a6bfe=_0x19d7cc['getItems']()['filter'](_0x2a4a62=>_0x2a4a62['is']('$textProxy'))['map'](_0x362b20=>_0x362b20['data']);if(_0x5a6bfe['length'])return{'type':'insertion','content':o(_0x550110,'*Insert:*\x20%0',o(_0x550110,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5a6bfe['join']('\x20')+'\x22'))};}if('deletion'==_0x19d7cc['type']){const _0x2602ed=_0x19d7cc['getItems']()['filter'](_0x1983aa=>_0x1983aa['is']('$textProxy'))['map'](_0xa5fe24=>_0xa5fe24['data']);if(_0x2602ed['length'])return{'type':'deletion','content':o(_0x550110,'*Remove:*\x20%0',o(_0x550110,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2602ed['join']('\x20')+'\x22'))};}}}),_0x197731['descriptionFactory']['registerDescriptionCallback'](_0x12c5e2=>{if('tableRow'==_0x12c5e2['subType']){const _0x36660f=_0x12c5e2['getItems']()['filter'](_0x5ac314=>_0x5ac314['is']('$textProxy'))['map'](_0x8c1e02=>_0x8c1e02['data']),_0x33b53b=this['_getSuggestionCoords'](_0x12c5e2),_0x33378a=_0x33b53b['maxRow']-_0x33b53b['minRow']+0x1;if('insertion'==_0x12c5e2['type'])return _0x36660f['length']?{'type':'insertion','content':o(_0x550110,'*Insert:*\x20%0',o(_0x550110,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x33378a,'\x22'+_0x36660f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x550110,'*Insert:*\x20%0',o(_0x550110,'ELEMENT_TABLE_ROW',_0x33378a))};if('deletion'==_0x12c5e2['type'])return _0x36660f['length']?{'type':'deletion','content':o(_0x550110,'*Remove:*\x20%0',o(_0x550110,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x33378a,'\x22'+_0x36660f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x550110,'*Remove:*\x20%0',o(_0x550110,'ELEMENT_TABLE_ROW',_0x33378a))};}if('tableColumn'==_0x12c5e2['subType']){const _0x3c6a13=_0x12c5e2['getItems']()['filter'](_0x13721f=>_0x13721f['is']('$textProxy'))['map'](_0x55e65e=>_0x55e65e['data']),_0x70c46a=this['_getSuggestionCoords'](_0x12c5e2),_0x46af97=_0x70c46a['maxColumn']-_0x70c46a['minColumn']+0x1;if('insertion'==_0x12c5e2['type'])return _0x3c6a13['length']?{'type':'insertion','content':o(_0x550110,'*Insert:*\x20%0',o(_0x550110,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x46af97,'\x22'+_0x3c6a13['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x550110,'*Insert:*\x20%0',o(_0x550110,'ELEMENT_TABLE_COLUMN',_0x46af97))};if('deletion'==_0x12c5e2['type'])return _0x3c6a13['length']?{'type':'deletion','content':o(_0x550110,'*Remove:*\x20%0',o(_0x550110,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x46af97,'\x22'+_0x3c6a13['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x550110,'*Remove:*\x20%0',o(_0x550110,'ELEMENT_TABLE_COLUMN',_0x46af97))};}}),_0x197731['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x17530a),_0x197731['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x17530a),_0x197731['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x8e0bcb),_0x197731['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x8e0bcb),_0x197731['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe74295),_0x197731['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe74295),_0x197731['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x43951d),_0x197731['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x43951d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x133913=this['editor'],_0x44a4b1=_0x133913['model']['document']['selection'];return(_0x3f872e,_0x49754f)=>{_0x133913['model']['change'](_0x4ed3ac=>{const {commandName:_0x5a24de,commandParams:_0x3e07f9}=_0x49754f;let _0x325da1=_0x3f872e[0x0]['end']['nodeBefore'];_0x3e07f9&&_0x3e07f9[0x0]&&!0x1===_0x3e07f9[0x0]['forceValue']&&(_0x325da1=_0x3f872e[0x0]['start']['nodeAfter']);const _0x341a7e=_0x4ed3ac['createRangeIn'](_0x325da1);if('$graveyard'==_0x341a7e['root']['rootName'])return;const _0x524735=Array['from'](_0x44a4b1['getRanges']())['map'](_0x175254=>_0x1b403d['fromRange'](_0x175254));_0x4ed3ac['setSelection'](_0x341a7e),_0x133913['commands']['get'](_0x5a24de)['refresh'](),_0x3e07f9['push']({'forceDefaultExecution':!0x0}),_0x133913['execute'](_0x5a24de,..._0x3e07f9);const _0x4f9913=_0x524735['filter'](_0x50c347=>'$graveyard'!=_0x50c347['root']['rootName']);_0x4f9913['length']>0x0&&_0x4ed3ac['setSelection'](_0x4f9913);for(const _0x2c09b0 of _0x524735)_0x2c09b0['detach']();});};}['_getCoordsForCells'](_0x5e5228){const _0x157605=this['editor']['plugins']['get']('TableUtils');let _0xca707d=Number['MAX_SAFE_INTEGER'],_0x503519=Number['MIN_SAFE_INTEGER'],_0x5cc98b=Number['MAX_SAFE_INTEGER'],_0x589ab6=Number['MIN_SAFE_INTEGER'];for(const _0x2c9e92 of _0x5e5228){if('$graveyard'==_0x2c9e92['root']['rootName'])continue;const {row:_0x59abf1,column:_0x3451a5}=_0x157605['getCellLocation'](_0x2c9e92),_0x375dca=_0x2c9e92['hasAttribute']('rowspan')?_0x2c9e92['getAttribute']('rowspan')-0x1:0x0,_0x579fa0=_0x2c9e92['hasAttribute']('colspan')?_0x2c9e92['getAttribute']('colspan')-0x1:0x0;_0xca707d=_0x59abf1<_0xca707d?_0x59abf1:_0xca707d,_0x503519=_0x59abf1+_0x375dca>_0x503519?_0x59abf1+_0x375dca:_0x503519,_0x5cc98b=_0x3451a5<_0x5cc98b?_0x3451a5:_0x5cc98b,_0x589ab6=_0x3451a5+_0x579fa0>_0x589ab6?_0x3451a5+_0x579fa0:_0x589ab6;}return{'minRow':_0xca707d,'maxRow':_0x503519,'minColumn':_0x5cc98b,'maxColumn':_0x589ab6};}['_setupColumnsRowsFixing'](){const _0x424253=this['editor'],_0x2af891=_0x424253['plugins']['get']('TrackChangesEditing'),_0x3ca7a9=_0x424253['plugins']['get']('TableUtils');_0x424253['model']['document']['on']('change:data',()=>{const _0x257df2=Array['from'](_0x424253['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x352d6e,data:_0x5dd5e9}of _0x257df2){const {group:_0x57c85c,id:_0x5b062b,subType:_0x1fe67f}=_0x2af891['_splitMarkerName'](_0x352d6e);if('suggestion'!=_0x57c85c)continue;if(null!=_0x5dd5e9['oldRange'])continue;const _0x26f2d4=_0x2af891['getSuggestion'](_0x5b062b);this['_tablePostFixingSubtypes']['includes'](_0x1fe67f)&&this['_tableSuggestions']['add'](_0x26f2d4);}},{'priority':'low'});const _0x5ee63f=(_0x53bb3b,_0x29a406)=>{let _0x3a3359=!0x1;const _0x1cf4d3=_0x29a406['createRangeOn'](_0x53bb3b),_0x33981c=_0x53bb3b['findAncestor']('table'),_0x10b53e=_0x3ca7a9['getCellLocation'](_0x53bb3b);for(const _0x26295f of this['_tableSuggestions']){const _0x11ddaf=_0x26295f['subType'],_0xca98c9=_0x11ddaf['startsWith']('tablePaste'),_0x5743d8=_0x11ddaf['substr'](_0xca98c9?0xa:0x5),_0x4dc0f0=_0x5743d8['toLowerCase'](),_0x1652dd=_0x4dc0f0['substr'](0x0,0x3)+'span',_0x209e9f='min'+_0x5743d8,_0x223f40='max'+_0x5743d8;if(!_0x26295f['isInContent'])continue;if(_0x33981c!=_0x26295f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x26295f['isIntersectingWithRange'](_0x1cf4d3))continue;const _0x3f6fa3=_0x53bb3b['hasAttribute'](_0x1652dd)?_0x53bb3b['getAttribute'](_0x1652dd)-0x1:0x0,_0x509c0a=this['_getSuggestionCoords'](_0x26295f),_0x59e17d=_0x509c0a[_0x209e9f],_0x3b3044=_0x509c0a[_0x223f40];_0x59e17d<=_0x10b53e[_0x4dc0f0]&&_0x10b53e[_0x4dc0f0]+_0x3f6fa3<=_0x3b3044&&(_0x26295f['addRange'](_0x1cf4d3),_0x3a3359=!0x0);}return _0x3a3359;};_0x424253['model']['document']['registerPostFixer'](_0x33b5f0=>{let _0x1cb32c=!0x1;for(const _0x264f6f of _0x424253['model']['document']['differ']['getChanges']())if('insert'==_0x264f6f['type']){if('tableRow'==_0x264f6f['name']){for(const _0xc1c49c of _0x264f6f['position']['nodeAfter']['getChildren']())_0x1cb32c=_0x1cb32c||_0x5ee63f(_0xc1c49c,_0x33b5f0);}else'tableCell'==_0x264f6f['name']&&(_0x1cb32c=_0x1cb32c||_0x5ee63f(_0x264f6f['position']['nodeAfter'],_0x33b5f0));}return _0x1cb32c;});}['_getSuggestionCoords'](_0x5c4bf5){return this['_getCoordsForCells'](_0x5c4bf5['getRanges']()['map'](_0x149efd=>_0x149efd['start']['nodeAfter']));}}function Re(_0x5273f9){return Array['from'](new Set(_0x5273f9)['values']());}class _t extends _0x2c2070{static get['requires'](){return[vt];}['afterInit'](){const _0x15ca38=this['editor'],_0x17afd8=_0x15ca38['model']['document']['selection'],_0x2729ee=_0x15ca38['locale'];if(!_0x15ca38['plugins']['has']('TableEditing'))return;const _0x3df35a=_0x15ca38['plugins']['get']('TrackChangesEditing'),_0x227356=_0x15ca38['plugins']['get']('TableUtils'),_0x10c551=_0x15ca38['plugins']['get'](vt);_0x10c551['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3df35a['enableCommand']('mergeTableCells',()=>{const _0x331011=_0x227356['getSelectionAffectedTableCells'](_0x15ca38['model']['document']['selection']);_0x15ca38['model']['change'](()=>{_0x3df35a['markMultiRangeBlockFormat'](_0x331011,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x15ca38['commands']['get']('mergeTableCells')['on']('execute',(_0x4514cb,_0x389478)=>{_0x15ca38['commands']['get']('trackChanges')['value']&&(_0x389478['length']>0x0&&_0x389478[_0x389478['length']-0x1]&&_0x389478[_0x389478['length']-0x1]['forceDefaultExecution']||_0x3df35a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4514cb['stop']());},{'priority':'highest'});for(const _0x1013fd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2c6999=_0x15ca38['commands']['get'](_0x1013fd);_0x3df35a['enableCommand'](_0x1013fd,()=>{const _0x179b31=_0x15ca38['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3bf112=>_0x3bf112['is']('element','tableCell')),_0x33271f=_0x2c6999['value'];_0x15ca38['model']['change'](()=>{_0x3df35a['markMultiRangeBlockFormat']([_0x179b31,_0x33271f],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2d737f of['splitTableCellVertically','splitTableCellHorizontally']){const _0x296eee=_0x15ca38['commands']['get'](_0x2d737f);_0x3df35a['enableCommand'](_0x2d737f,()=>{const _0x481f78=_0x227356['getSelectionAffectedTableCells'](_0x15ca38['model']['document']['selection'])[0x0],_0x3f2531=_0x481f78['findAncestor']('table'),{column:_0x2b178d,row:_0x52512d}=_0x227356['getCellLocation'](_0x481f78);let _0x5bf6e0=[];if('horizontally'==_0x296eee['direction']){const _0x45578d=_0x227356['createTableWalker'](_0x3f2531,{'startRow':_0x52512d,'endRow':_0x52512d,'includeAllSlots':!0x0});_0x5bf6e0=Array['from'](_0x45578d)['map'](_0x2c82fa=>_0x2c82fa['cell']);}else{const _0x40391f=_0x227356['createTableWalker'](_0x3f2531,{'column':_0x2b178d,'includeAllSlots':!0x0});_0x5bf6e0=Array['from'](_0x40391f)['map'](_0x32cf80=>_0x32cf80['cell']);}_0x15ca38['model']['change'](_0x46bd97=>{_0x3df35a['markBlockFormat'](_0x46bd97['createRangeOn'](_0x481f78),{'commandName':_0x2d737f,'commandParams':[]},_0x5bf6e0,_0x2d737f);});});}_0x3df35a['descriptionFactory']['registerDescriptionCallback'](_0x35895f=>{if('formatBlock'!=_0x35895f['type']&&'formatInline'!=_0x35895f['type'])return;const {data:_0xcceb54}=_0x35895f;return _0xcceb54&&'mergeTableCells'==_0xcceb54['commandName']?{'type':'format','content':o(_0x2729ee,'*Merge\x20cells*')}:void 0x0;}),_0x3df35a['descriptionFactory']['registerDescriptionCallback'](_0xac4686=>{if('formatBlock'!=_0xac4686['type']&&'formatInline'!=_0xac4686['type'])return;const {data:_0x162db7}=_0xac4686;return _0x162db7?'splitTableCellVertically'==_0x162db7['commandName']?{'type':'format','content':o(_0x2729ee,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x162db7['commandName']?{'type':'format','content':o(_0x2729ee,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x410ea7=_0x10c551['_acceptFormatSuggestionCallbackFactory']();for(const _0x4bf96c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3df35a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4bf96c,'accept',_0x410ea7);for(const _0x94a512 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3df35a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x94a512,'accept',_0x410ea7);_0x3df35a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x57e8b0=>{_0x15ca38['model']['change'](_0x3ef916=>{const _0x1092a2=Array['from'](_0x17afd8['getRanges']())['map'](_0x2e4092=>_0x1b403d['fromRange'](_0x2e4092));_0x3ef916['setSelection'](_0x57e8b0),_0x15ca38['commands']['get']('mergeTableCells')['refresh'](),_0x15ca38['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x28307f=_0x1092a2['filter'](_0x1201b5=>'$graveyard'!=_0x1201b5['root']['rootName']);_0x28307f['length']>0x0&&_0x3ef916['setSelection'](_0x28307f);for(const _0x24cd19 of _0x1092a2)_0x24cd19['detach']();});});for(const _0x11e6fa of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37d7fd=_0x15ca38['commands']['get'](_0x11e6fa);_0x37d7fd['on']('set:isEnabled',(_0x4818e3,_0x38d3d7,_0x396b69)=>{if(_0x396b69){const _0x6cb256=_0x15ca38['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x102f70=>_0x102f70['is']('element','tableCell'));this['_areMergableCells'](_0x37d7fd['value'],_0x6cb256)||(_0x4818e3['return']=!0x1,_0x4818e3['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x169fe8=this['editor']['commands']['get']('mergeTableCells'),_0x29e89f=this['editor']['plugins']['get']('TableUtils');if(!_0x169fe8['isEnabled'])return!0x1;const _0x20baba=_0x29e89f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d1c28 of _0x20baba)for(const _0xf291e7 of _0x20baba)if(_0x3d1c28!=_0xf291e7&&!this['_areMergableCells'](_0x3d1c28,_0xf291e7))return!0x1;return!0x0;}['_areMergableCells'](_0x52ac07,_0x1048e4){const _0x6ddac5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d8e79=this['editor']['model']['createRangeOn'](_0x52ac07),_0x3c6993=this['editor']['model']['createRangeOn'](_0x1048e4),_0x4a11d2=new Set(),_0x43e1b4=new Set();for(const _0xcb8207 of _0x6ddac5['getSuggestions']())if(('insertion'==_0xcb8207['type']||'deletion'==_0xcb8207['type']||'mergeTableCells'==_0xcb8207['subType'])&&_0xcb8207['isInContent']){for(const _0x4ba020 of _0xcb8207['getRanges']())_0x4ba020['containsRange'](_0x1d8e79,!0x0)&&_0x4a11d2['add'](_0xcb8207['type']+':'+_0xcb8207['author']['id']),_0x4ba020['containsRange'](_0x3c6993,!0x0)&&_0x43e1b4['add'](_0xcb8207['type']+':'+_0xcb8207['author']['id']);}if(_0x4a11d2['size']!=_0x43e1b4['size'])return!0x1;for(const _0xbe58d3 of _0x4a11d2)if(!_0x43e1b4['has'](_0xbe58d3))return!0x1;return!0x0;}}class Ct extends _0x2c2070{static get['requires'](){return[vt];}['afterInit'](){const _0x348eb3=this['editor'];if(!_0x348eb3['plugins']['has']('TableEditing'))return;const _0x4023b8=_0x348eb3['locale'],_0x5d10ea=_0x348eb3['plugins']['get']('TrackChangesEditing');_0x5d10ea['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5d10ea['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5d10ea['registerBlockAttribute']('headingRows'),_0x5d10ea['registerBlockAttribute']('headingColumns'),_0x5d10ea['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4023b8,'FORMAT_HEADER_ROW')),_0x5d10ea['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4023b8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x36399f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd81481=this['editor']['plugins']['get']('TableUtils'),_0x12c6d2=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x1dc8d8({showActiveMarker:_0x59c381=!0x0,setDataAttribute:_0x5d3619=!0x0}={}){return(_0x4327f8,_0xc47b29,_0xaa5bba)=>{const {type:_0x446c4c,id:_0x598eef}=_0x36399f['_splitMarkerName'](_0xc47b29['markerName']),_0x495b29=_0x36399f['getSuggestion'](_0x598eef),_0x3969fd=_0x495b29['data'];if('formatBlock'!=_0x495b29['type']||!_0x3969fd||'setTableColumnHeader'!=_0x3969fd['commandName'])return;if(_0xc47b29['item'])return void _0x4327f8['stop']();if(!_0xaa5bba['consumable']['consume'](_0xc47b29['markerRange'],_0x4327f8['name']))return;const _0x315188=_0xc47b29['markerRange']['start']['nodeAfter'],_0x31d801=_0xc47b29['markerRange']['end']['nodeBefore'],_0x1c8137=_0x315188['parent']['parent'],{column:_0x54dbfd}=_0xd81481['getCellLocation'](_0x315188),{column:_0x45f5c3}=_0xd81481['getCellLocation'](_0x31d801);for(let _0x3fddc5=_0x54dbfd;_0x3fddc5<=_0x45f5c3;_0x3fddc5++){const _0x18ca77=_0xd81481['createTableWalker'](_0x1c8137,{'column':_0x3fddc5,'includeAllSlots':!0x1});for(const _0x1245c6 of _0x18ca77){const _0x5c8647=_0x1245c6['cell'],_0x416bac=_0xaa5bba['mapper']['toViewElement'](_0x5c8647);_0xaa5bba['writer']['addClass']('ck-suggestion-marker-'+_0x446c4c,_0x416bac),_0x5d3619&&_0xaa5bba['writer']['setAttribute']('data-suggestion',_0x598eef,_0x416bac),_0xaa5bba['mapper']['bindElementToMarker'](_0x416bac,_0xc47b29['markerName']),_0x59c381&&(_0x36399f['activeMarkers']['includes'](_0xc47b29['markerName'])?_0xaa5bba['writer']['addClass']('ck-suggestion-marker--active',_0x416bac):_0xaa5bba['writer']['removeClass']('ck-suggestion-marker--active',_0x416bac));}}};}_0x36399f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x12c6d2),_0x36399f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x12c6d2),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1dc8d8(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3b6b5e,_0xb5b7d8,_0x2961bc)=>{_0x2961bc['options']['showSuggestionHighlights']&&_0x1dc8d8({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3b6b5e,_0xb5b7d8,_0x2961bc);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xf3f3bc,_0x119413,_0x218f27)=>{const {type:_0xe12081,id:_0x3db0a6}=_0x36399f['_splitMarkerName'](_0x119413['markerName']),_0x46b5ce=_0x36399f['getSuggestion'](_0x3db0a6),_0x42dfc8=_0x46b5ce['data'];if('formatBlock'!=_0x46b5ce['type']||!_0x42dfc8||'setTableColumnHeader'!=_0x42dfc8['commandName'])return;const _0x3477ed=_0x218f27['mapper']['markerNameToElements'](_0x119413['markerName']);if(_0x3477ed){for(const _0x1b849d of _0x3477ed)_0x218f27['writer']['removeClass']('ck-suggestion-marker-'+_0xe12081,_0x1b849d),_0x218f27['writer']['removeClass']('ck-suggestion-marker--active',_0x1b849d),_0x218f27['writer']['removeAttribute']('data-suggestion',_0x1b849d),_0x218f27['mapper']['unbindElementFromMarkerName'](_0x1b849d,_0x119413['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b741b=this['editor'],_0x27528f=_0x2b741b['locale'];function _0x5d0fc4(_0x2337f7){return{'type':'format','content':o(_0x27528f,'*Format:*\x20%0',_0x2337f7)};}_0x2b741b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4244e8=>{if('formatBlock'!=_0x4244e8['type'])return;const {data:_0xc3c965}=_0x4244e8;if(_0xc3c965){if('setTableRowHeader'==_0xc3c965['commandName']){const _0x2307f5=_0xc3c965['commandParams'][0x0]['forceValue'];return _0x5d0fc4(o(_0x27528f,_0x2307f5?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xc3c965['commandName']){const _0x3e771f=_0xc3c965['commandParams'][0x0]['forceValue'];return _0x5d0fc4(o(_0x27528f,_0x3e771f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x4cd541=>[_0x4cd541,null]));class Nt extends _0x2c2070{static get['requires'](){return[vt];}['afterInit'](){const _0x4bb9eb=this['editor'];if(!_0x4bb9eb['plugins']['has']('TableClipboard'))return;const _0x41a4ab=_0x4bb9eb['plugins']['get']('TrackChangesEditing'),_0x27d8c3=_0x4bb9eb['plugins']['get']('TableUtils'),_0x753670=_0x4bb9eb['plugins']['get'](vt),_0x11bb0f=_0x4bb9eb['plugins']['get']('TableClipboard');_0x753670['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4bb9eb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4bb9eb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4b00dd=null;_0x4bb9eb['model']['on']('insertContent',(_0x147098,_0x2e6ac9)=>{const [_0xef6fc2,_0x552edc]=_0x2e6ac9,_0x150c8b=_0x2e6ac9[_0x2e6ac9['length']-0x1];_0x150c8b&&_0x150c8b['forceDefaultExecution']||_0x41a4ab['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4ae148,_0x5daf00,_0x12ef71,_0x2e8204,_0x3c18d9){if(_0x5daf00&&!_0x5daf00['is']('documentSelection'))return!0x1;const _0x467629=_0x3c18d9['getTableIfOnlyTableInContent'](_0x4ae148,_0x12ef71);if(!_0x467629||!Ae(_0x467629,void 0x0,_0x2e8204))return!0x1;const _0x203eea=_0x2e8204['getSelectionAffectedTableCells'](_0x12ef71['document']['selection']);if(!_0x203eea['length'])return!0x1;const _0x3ad4be=_0x203eea[0x0]['findAncestor']('table'),_0x282cab=_0x2e8204['getRowIndexes'](_0x203eea),_0x2ad05a=_0x2e8204['getColumnIndexes'](_0x203eea),_0x3ffed9={'startRow':_0x282cab['first'],'endRow':_0x282cab['last'],'startColumn':_0x2ad05a['first'],'endColumn':_0x2ad05a['last']};return 0x1==_0x203eea['length']&&(_0x3ffed9['endRow']+=_0x2e8204['getRows'](_0x467629)-0x1,_0x3ffed9['endColumn']+=_0x2e8204['getColumns'](_0x467629)-0x1),Ae(_0x3ad4be,_0x3ffed9,_0x2e8204);}(_0xef6fc2,_0x552edc,_0x4bb9eb['model'],_0x27d8c3,_0x11bb0f)&&(_0x147098['stop'](),_0x4b00dd={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4bb9eb['model']['change'](()=>{_0x4bb9eb['model']['insertContent'](_0x2e6ac9[0x0],_0x2e6ac9[0x1],_0x2e6ac9[0x2],{'forceDefaultExecution':!0x0});const _0x349d98=_0x42487e(),{rowInsertionRanges:_0x282c1f,columnInsertionRanges:_0x1aed99,insertionRanges:_0x3ae2a5,deletionRanges:_0x4d69c6,cells:_0x2f66d1}=_0x4b00dd;_0x282c1f['length']&&_0x41a4ab['markMultiRangeInsertion'](_0x282c1f,'tablePasteRow',{'tablePasteChainId':_0x349d98}),_0x1aed99['length']&&_0x41a4ab['markMultiRangeInsertion'](_0x1aed99,'tablePasteColumn',{'tablePasteChainId':_0x349d98}),_0x3ae2a5['length']&&(_0x41a4ab['markMultiRangeInsertion'](_0x3ae2a5,'tablePaste',{'tablePasteChainId':_0x349d98,'skipNestingCheck':!0x0}),_0x3ae2a5['forEach'](_0x58301a=>_0x58301a['detach']?.())),_0x4d69c6['length']&&(_0x41a4ab['markMultiRangeDeletion'](_0x4d69c6,'tablePaste',{'tablePasteChainId':_0x349d98,'skipNestingCheck':!0x0}),_0x4d69c6['forEach'](_0x24b2cc=>_0x24b2cc['detach']?.()));const _0x229977=_0x41a4ab['markMultiRangeBlockFormat'](_0x2f66d1['map'](({element:_0x2f96e3})=>_0x2f96e3),{'formatGroupId':_0x42487e()},[],'tablePasteCell',{'tablePasteChainId':_0x349d98});if(_0x229977){const _0x1a5e30=_0x229977['getMarkers'](),_0x3ba772=[];for(const {element:_0x1862a5,attributes:_0x10a409}of _0x2f66d1){if(!_0x10a409)continue;const _0x1ca43c=_0x4bb9eb['model']['createRangeOn'](_0x1862a5),_0x46787d=_0x1a5e30['find'](_0x48c9bf=>_0x48c9bf['getRange']()['isEqual'](_0x1ca43c));_0x46787d&&_0x3ba772['push']([_0x46787d['name'],_0x10a409]);}_0x3ba772['length']&&_0x229977['setAttribute']('markerAttributes',Object['fromEntries'](_0x3ba772));}_0x4b00dd=null;}));},{'priority':_0x22cf47['high']+0xa}),_0x4bb9eb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4904e5,_0x1a7dca)=>{const [_0x1f94db,_0x78692f,,_0x41814d]=_0x1a7dca;if(!_0x4b00dd)return;_0x4904e5['stop']();const _0x413b59=_0x1f94db['cell'],_0x1a174a=_0x78692f,_0x532adf=je(_0x413b59),_0x321b4e=je(_0x1a174a);_0x4904e5['return']=_0x413b59;let _0x376132=null,_0x3d61d3=null;if(_0x321b4e||_0x532adf){if(_0x532adf&&!_0x321b4e){_0x41814d['remove'](_0x413b59['getChild'](0x0));for(const _0x161dc3 of Array['from'](_0x1a174a['getChildren']()))_0x41814d['insert'](_0x161dc3,_0x413b59,'end');const _0x1ba8c1=_0x4b00dd['rowInsertionIndexes']['includes'](_0x1f94db['row']),_0x1a13e4=_0x4b00dd['columnInsertionIndexes']['includes'](_0x1f94db['column']);_0x1ba8c1||_0x1a13e4||(_0x376132=_0x1b403d['fromRange'](_0x41814d['createRangeIn'](_0x413b59)));}else _0x321b4e&&!_0x532adf&&(_0x3d61d3=_0x41814d['createRangeIn'](_0x413b59));}else{const _0x1d7a0c=_0x41814d['createElement']('tableCellSuggestion'),_0x4fc525=_0x41814d['createElement']('tableCellSuggestion');_0x41814d['wrap'](_0x41814d['createRangeIn'](_0x413b59),_0x4fc525),_0x41814d['insert'](_0x1d7a0c,_0x413b59,0x0);for(const _0x363cea of Array['from'](_0x1a174a['getChildren']()))_0x41814d['insert'](_0x363cea,_0x1d7a0c,'end');_0x376132=_0x1b403d['fromRange'](_0x41814d['createRangeOn'](_0x1d7a0c)),_0x3d61d3=_0x1b403d['fromRange'](_0x41814d['createRangeOn'](_0x4fc525));}const _0x541a23=Array['from'](_0x1a174a['getAttributes']())['filter'](([_0x248a0b])=>we['includes'](_0x248a0b));_0x4b00dd['cells']['push']({'element':_0x413b59,'attributes':_0x541a23['length']?Object['fromEntries'](_0x541a23):null}),_0x376132&&_0x4b00dd['insertionRanges']['push'](_0x376132),_0x3d61d3&&_0x4b00dd['deletionRanges']['push'](_0x3d61d3);},{'priority':'high'}),_0x27d8c3['on']('insertColumns',(_0x6ae253,_0x85ea8d)=>{const [_0x392c12,_0x424990={}]=_0x85ea8d;if(!_0x4b00dd)return;const _0x4b4df4=_0x424990['at']||0x0,_0x4fa0cf=_0x424990['columns']||0x1;_0x4b00dd['columnInsertionIndexes']=new Array(_0x4fa0cf)['fill'](_0x4b4df4)['map']((_0x240309,_0x3cbfde)=>_0x240309+_0x3cbfde);for(const {cell:_0x21695b}of _0x27d8c3['createTableWalker'](_0x392c12,{'startColumn':_0x4b4df4,'endColumn':_0x4b4df4+_0x4fa0cf-0x1}))_0x4b00dd['columnInsertionRanges']['push'](_0x4bb9eb['model']['createRangeOn'](_0x21695b));},{'priority':'low'}),_0x27d8c3['on']('insertRows',(_0x2fa274,_0x25c555)=>{const [_0x2af632,_0x1baf0a={}]=_0x25c555;if(!_0x4b00dd)return;const _0xbfff2=_0x1baf0a['at']||0x0,_0x888038=_0x1baf0a['rows']||0x1;_0x4b00dd['rowInsertionIndexes']=new Array(_0x888038)['fill'](_0xbfff2)['map']((_0x18b2d5,_0x5ba40e)=>_0x18b2d5+_0x5ba40e);for(const {cell:_0xa125e8}of _0x27d8c3['createTableWalker'](_0x2af632,{'startRow':_0xbfff2,'endRow':_0xbfff2+_0x888038-0x1}))_0x4b00dd['rowInsertionRanges']['push'](_0x4bb9eb['model']['createRangeOn'](_0xa125e8));},{'priority':'low'}),_0x41a4ab['descriptionFactory']['registerDescriptionCallback'](_0x31d458=>{if(_0x31d458['subType']&&_0x31d458['subType']['startsWith']('tablePaste'))return _0x31d458['previous']?{}:{'type':'insertion','content':o(_0x4bb9eb['locale'],'*Replace\x20table\x20cells*')};});const _0x3adba9=()=>!0x1;for(const _0x1295c8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x41a4ab['_suggestionFactory']['registerCustomCallback']('insertion',_0x1295c8,'join',_0x3adba9),_0x41a4ab['_suggestionFactory']['registerCustomCallback']('deletion',_0x1295c8,'join',_0x3adba9),_0x41a4ab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1295c8,'join',_0x3adba9);_0x41a4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3adba9),_0x41a4ab['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5a9e4d,_0x2d77a3,_0x28af32)=>{const _0x580eee=_0x5a9e4d['map'](_0x46301b=>_0x46301b['getContainedElement']())['filter'](_0x240ea5=>_0x240ea5),_0x551d75=new Map(_0x580eee['map'](_0x4ff2e1=>[_0x4ff2e1,null]));if(_0x4b00dd){for(const {element:_0x50a412,attributes:_0x2e3ab2}of _0x4b00dd['cells'])_0x2e3ab2&&_0x551d75['set'](_0x50a412,_0x2e3ab2);}else{if(_0x28af32&&_0x28af32['markerAttributes'])for(const [_0x32edfc,_0x2d0701]of Object['entries'](_0x28af32['markerAttributes'])){const _0x4f04e=_0x4bb9eb['model']['markers']['get'](_0x32edfc),_0x5c7d92=_0x4f04e?_0x4f04e['getRange']()['getContainedElement']():null;_0x5c7d92&&_0x551d75['set'](_0x5c7d92,_0x2d0701);}}_0x4bb9eb['model']['change'](_0x1b0279=>{for(const [_0x365f5a,_0xd3500d]of _0x551d75)_0x1b0279['setAttributes']({...ve,..._0xd3500d},_0x365f5a);});});const _0x10dc9a=(_0x25fb3a,_0x47573c)=>{_0x41a4ab['_suggestionFactory']['registerCustomCallback'](_0x25fb3a,'tablePaste',_0x47573c,(_0x38d270,_0x3f19f0,_0x56acb6)=>{_0x4bb9eb['model']['change'](_0x1085e1=>{const _0x43c5e6=[];for(const _0x4c83ee of _0x38d270){const _0x1afbba=_0x4c83ee['start']['nodeAfter'];_0x1afbba['is']('element','tableCellSuggestion')&&_0x43c5e6['push'](_0x1afbba);}_0x41a4ab['_suggestionFactory']['getSuggestionCallback'](_0x25fb3a,null,_0x47573c)(_0x38d270,_0x3f19f0,_0x56acb6);for(const _0x19ea8c of _0x43c5e6)'$graveyard'!=_0x19ea8c['root']['rootName']&&_0x1085e1['unwrap'](_0x19ea8c);});});};_0x10dc9a('insertion','accept'),_0x10dc9a('insertion','discard'),_0x10dc9a('deletion','accept'),_0x10dc9a('deletion','discard'),_0x41a4ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x183f47=>{const _0x472967=_0x183f47['map'](_0x1440dc=>_0x1440dc['getContainedElement']()),_0x5e2418=_0x472967[0x0]['findAncestor']('table'),{minRow:_0x45bfcf,maxRow:_0x2515fc}=_0x753670['_getCoordsForCells'](_0x472967);_0x27d8c3['removeRows'](_0x5e2418,{'at':_0x45bfcf,'rows':_0x2515fc-_0x45bfcf+0x1});}),_0x41a4ab['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x28aa4c=>{const _0x24a536=_0x28aa4c['map'](_0x1557f5=>_0x1557f5['getContainedElement']()),_0x30e819=_0x24a536[0x0]['findAncestor']('table'),{minColumn:_0x3b4ae5,maxColumn:_0x2a39a1}=_0x753670['_getCoordsForCells'](_0x24a536);_0x27d8c3['removeColumns'](_0x30e819,{'at':_0x3b4ae5,'columns':_0x2a39a1-_0x3b4ae5+0x1});});const _0x23bc57=(_0x1e6d6e,_0x8aae4b)=>{if(!_0x8aae4b['subType']||!_0x8aae4b['subType']['startsWith']('tablePaste'))return;const _0x4063b8=_0x8aae4b['attributes']['tablePasteChainId'],_0x550337=_0x41a4ab['getSuggestions']()['filter'](_0x272e6d=>_0x272e6d['isInContent']&&_0x272e6d['attributes']&&_0x272e6d['attributes']['tablePasteChainId']==_0x4063b8);_0x550337['length']&&_0x8aae4b['getAllAdjacentSuggestions']()['length']!=_0x550337['length']&&_0x550337['reduce']((_0x3d259c,_0x15f6eb)=>(_0x3d259c['next']=_0x15f6eb,_0x15f6eb['previous']=_0x3d259c,_0x15f6eb));};function _0xcede33(_0xe5d244,_0x5885a3=!0x0){const {id:_0x28c995,authorId:_0x492c75}=_0x41a4ab['_splitMarkerName'](_0xe5d244['markerName']),_0x34df9f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xde1c87=_0x41a4ab['activeMarkers']['includes'](_0xe5d244['markerName']);return _0xde1c87&&_0x34df9f['push']('ck-suggestion-marker--active'),{'classes':_0x34df9f,'attributes':{'data-suggestion':_0x28c995,'data-author-id':_0x492c75},'priority':_0xde1c87&&_0x5885a3?0xbc2:0xbb8};}_0x41a4ab['on']('suggestionLoaded',_0x23bc57,{'priority':'high'}),_0x41a4ab['on']('suggestionUnloaded',_0x23bc57,{'priority':'high'}),_0x4bb9eb['model']['document']['registerPostFixer'](()=>{let _0x3bcfab=!0x1;const _0x269352=Array['from'](_0x4bb9eb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x378898,data:_0x5eb475}of _0x269352){const {group:_0x2b8570,type:_0x512c20,id:_0x79677b}=_0x41a4ab['_splitMarkerName'](_0x378898);if('suggestion'!=_0x2b8570||'deletion'!=_0x512c20||_0x5eb475['oldRange'])continue;if(!_0x41a4ab['hasSuggestion'](_0x79677b))continue;const _0x5bacfd=_0x41a4ab['getSuggestion'](_0x79677b)['getRanges'](),_0xa41674=_0x4bb9eb['plugins']['get']('Users')['me'];for(const _0x3c28ab of _0x41a4ab['getSuggestions']()){if(!_0x3c28ab['isInContent']||_0x3c28ab['author']!=_0xa41674)continue;if('formatBlock'!=_0x3c28ab['type']||'tablePasteCell'!=_0x3c28ab['subType'])continue;if(_0x3c28ab['getRanges']()['every'](_0xae8213=>_0x5bacfd['some'](_0x139226=>_0x139226['containsRange'](_0xae8213,!0x0)))){for(const _0xb4c049 of _0x3c28ab['getAllAdjacentSuggestions']())_0xb4c049['isInContent']&&(_0xb4c049['discard'](),_0x3bcfab=!0x0);}}}return _0x3bcfab;}),_0x4bb9eb['model']['document']['registerPostFixer'](_0x2ed219=>{const _0x3866cd=_0x4bb9eb['commands']['get']('redo');if(!_0x3866cd||!_0x3866cd['_createdBatches']['has'](_0x2ed219['batch']))return!0x1;let _0x1a4c7e=!0x1;const _0x57cf32=_0x4bb9eb['plugins']['get']('Users')['me'],_0x58e056=_0x4bb9eb['model']['document']['differ']['getChanges'](),_0x3aef97=Array['from'](_0x4bb9eb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4ad8df,data:_0x22509c})=>{const {group:_0x11631a,subType:_0x51d5dc,authorId:_0x5348b0}=_0x41a4ab['_splitMarkerName'](_0x4ad8df);return'suggestion'==_0x11631a&&'tablePaste'==_0x51d5dc&&_0x5348b0==_0x57cf32['id']&&!_0x22509c['oldRange'];});for(const _0x442382 of _0x58e056){if('insert'!=_0x442382['type']||'tableCellSuggestion'!=_0x442382['name']||0x1!=_0x442382['length'])continue;const _0x52886e=_0x2ed219['createRange'](_0x442382['position'],_0x442382['position']['getShiftedBy'](0x1));if(!_0x3aef97['find'](({data:_0x3724a7})=>_0x3724a7['newRange']['isEqual'](_0x52886e))){for(const {name:_0x2f0258,data:_0x128ff8}of _0x3aef97)if(_0x52886e['containsRange'](_0x128ff8['newRange'])){_0x2ed219['updateMarker'](_0x2f0258,{'range':_0x52886e}),_0x1a4c7e=!0x0;break;}}}return _0x1a4c7e;}),_0x4bb9eb['model']['document']['registerPostFixer'](_0x142662=>{let _0xdfce61=!0x1;const _0x4dc2c8=_0x4bb9eb['plugins']['get']('Users')['me'],_0x1f0598=_0x41a4ab['getSuggestions']()['filter'](_0x33a180=>_0x33a180['isInContent']&&_0x33a180['author']==_0x4dc2c8),_0x2eec7b=new Set(),_0x52cc09=new Set();for(const _0x35dde8 of _0x1f0598)if('tablePaste'==_0x35dde8['subType'])for(const _0x207b19 of _0x35dde8['getMarkers']()){const _0x59eef0=_0x207b19['getRange']()['getContainedElement']();if(_0x59eef0){if(_0x59eef0['is']('element','tableCellSuggestion')&&je(_0x59eef0)){_0x35dde8['removeMarker'](_0x207b19['name']),_0x2eec7b['add'](_0x59eef0),_0xdfce61=!0x0;const _0x55cf18=_0x59eef0['nextSibling'],_0x42f2dc=_0x59eef0['previousSibling'],_0x58b158=_0x55cf18&&_0x55cf18['is']('element','tableCellSuggestion'),_0x3ca5b6=_0x42f2dc&&_0x42f2dc['is']('element','tableCellSuggestion');_0x58b158&&!_0x2eec7b['has'](_0x55cf18)&&_0x52cc09['add'](_0x55cf18),_0x3ca5b6&&!_0x2eec7b['has'](_0x42f2dc)&&_0x52cc09['add'](_0x42f2dc);}else _0x59eef0['is']('element','paragraph')&&_0x59eef0['isEmpty']&&(_0x35dde8['removeMarker'](_0x207b19['name']),_0xdfce61=!0x0);}}else{if('tablePasteCell'==_0x35dde8['subType']){if(!_0x35dde8['attributes']||!_0x35dde8['attributes']['tablePasteChainId'])continue;const _0x1b38e6=_0x35dde8['attributes']['markerAttributes'];if(_0x1b38e6&&Object['keys'](_0x1b38e6)['length'])continue;const _0x94e50e=_0x35dde8['attributes']['tablePasteChainId'];let _0x15a08d=!0x0,_0x5a92e0=!0x0;for(const _0xe0f9 of _0x1f0598)if(_0xe0f9['subType']&&_0xe0f9['subType']['startsWith']('tablePaste')){if(!_0xe0f9['attributes']['tablePasteChainId']){_0x5a92e0=!0x1;break;}if(_0xe0f9['id']!=_0x35dde8['id']&&_0xe0f9['attributes']['tablePasteChainId']==_0x94e50e){_0x15a08d=!0x1;break;}}_0x5a92e0&&_0x15a08d&&(_0x35dde8['removeMarkers'](),_0xdfce61=!0x0);}}for(const _0x30943a of _0x2eec7b)_0x142662['remove'](_0x30943a);for(const _0x17a1a8 of _0x52cc09)_0x142662['unwrap'](_0x17a1a8);return _0xdfce61;}),_0x4bb9eb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4afccd=>_0xcede33(_0x4afccd),'converterPriority':'high'}),_0x4bb9eb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x12029e,_0x4bfc47)=>_0x4bfc47['options']['showSuggestionHighlights']?_0xcede33(_0x12029e,!0x1):null,'converterPriority':'high'});const _0x430931=_0x4bb9eb['editing']['view'];this['listenTo'](_0x430931['document'],'clipboardOutput',(_0x1cedf6,_0x4417f9)=>{const _0x3ab4c4=[];for(const _0x32e8f0 of _0x430931['createRangeIn'](_0x4417f9['content'])['getItems']())_0x32e8f0['is']('element','suggestion-td')&&_0x3ab4c4['push'](_0x32e8f0);_0x430931['change'](_0x45a648=>{for(const _0x32fd1e of _0x3ab4c4)_0x45a648['move'](_0x45a648['createRangeIn'](_0x32fd1e),_0x45a648['createPositionBefore'](_0x32fd1e)),_0x45a648['remove'](_0x32fd1e);});});}}function je(_0xd27c93){if(_0xd27c93['isEmpty'])return!0x0;const _0xa05388=_0xd27c93['getChild'](0x0);return _0xa05388['is']('element','paragraph')&&_0xa05388['isEmpty'];}function Ae(_0x11bcef,_0x2d5e5c={},_0x1fac28){for(const {isAnchor:_0x35393d,cellHeight:_0xd240f0,cellWidth:_0x4a9c85}of _0x1fac28['createTableWalker'](_0x11bcef,{'includeAllSlots':!0x0,..._0x2d5e5c}))if(!_0x35393d||0x1!=_0xd240f0||0x1!=_0x4a9c85)return!0x1;return!0x0;}class Dt extends _0x2c2070{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x29e807=this['editor']['plugins']['get']('TrackChangesEditing');_0x29e807['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x29e807['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x29e807['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29e807['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x29e807['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x29e807['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x560d6e,_0x4cf94a){const _0x4c6e8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x192885=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4bc87f=_0x4cf94a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x414129=_0x192885['getColumnGroupElement'](_0x4bc87f);let _0x59a21c=_0x414129?_0x192885['getTableColumnsWidths'](_0x414129):null,_0x165b1f=_0x4bc87f['getAttribute']('tableWidth')||null;const _0x2b9f03=_0x4cf94a['tableWidth']||_0x165b1f,_0x291ce7=_0x4cf94a['columnWidths']||_0x59a21c,_0x110c36=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c38f1 of _0x4c6e8a['getSuggestions']()){const _0x5ae641=_0x4c38f1['getContainedElement']();if('resizeTable'===_0x4c38f1['subType']&&_0x5ae641===_0x4bc87f){_0x4c38f1['author']!==_0x110c36&&_0x4c38f1['discard']();const _0x298cf9=_0x4c38f1['data']['commandParams'];_0x165b1f=_0x298cf9[0x0]['tableWidth'],_0x59a21c=_0x298cf9[0x0]['columnWidths'];break;}}_0x560d6e({'table':_0x4bc87f,'tableWidth':_0x2b9f03,'columnWidths':_0x291ce7}),_0x4c6e8a['markBlockFormat'](_0x4bc87f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x165b1f,'columnWidths':_0x59a21c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3a1148){if('formatBlock'!=_0x3a1148['type']&&'formatInline'!=_0x3a1148['type'])return;const {data:_0x272863}=_0x3a1148;if(_0x272863&&'resizeTable'===_0x272863['formatGroupId']){const _0x276156='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x276156)};}}}class Mt extends _0x2c2070{['afterInit'](){const _0x541a9f=this['editor'];_0x541a9f['plugins']['has']('Template')&&_0x541a9f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2c2070{['afterInit'](){const _0x2c4846=this['editor'];if(!_0x2c4846['commands']['get']('insertTableOfContents'))return;_0x2c4846['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x5b59fe=_0x2c4846['plugins']['get']('TrackChangesEditing'),_0x138df7=_0x2c4846['locale'];_0x5b59fe['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3ad68e=>o(_0x138df7,'ELEMENT_TABLE_OF_CONTENTS',_0x3ad68e));}}class Bt extends _0x2c2070{['afterInit'](){const _0x239502=this['editor'];if(!_0x239502['plugins']['has']('Title'))return;const _0x5f50e9=_0x239502['plugins']['get']('TrackChangesEditing');_0x5f50e9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x239502['locale'],'ELEMENT_TITLE')),_0x239502['model']['document']['registerPostFixer'](_0x26a3f6=>{let _0x59037b=!0x1;const _0x522b87=Array['from'](_0x239502['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a0bd4,data:_0x3ca69c}of _0x522b87){const {group:_0x50363a}=_0x5f50e9['_splitMarkerName'](_0x1a0bd4);if('suggestion'!==_0x50363a||!_0x3ca69c['newRange'])continue;const _0x161b2f=_0x3ca69c['newRange'],_0x5d3567=_0x161b2f['end']['nodeBefore'];if(!_0x5d3567||!_0x5d3567['is']('element','title-content'))continue;if(!_0x161b2f['start']['isTouching'](_0x161b2f['end']))continue;const _0x5b4fb2=_0x239502['model']['schema']['getNearestSelectionRange'](_0x161b2f['end'],'forward');if(_0x5b4fb2&&_0x5b4fb2['isCollapsed']){const _0x135edb=_0x26a3f6['createRange'](_0x161b2f['start'],_0x5b4fb2['start']);_0x135edb['isEqual'](_0x161b2f)||(_0x26a3f6['updateMarker'](_0x1a0bd4,{'range':_0x135edb}),_0x59037b=!0x0);}_0x59037b||(_0x26a3f6['removeMarker'](_0x1a0bd4),_0x59037b=!0x0);}return _0x59037b;});}}class Ot extends _0x2c2070{['afterInit'](){const _0x4865ce=this['editor'],_0x7a6a69=_0x4865ce['plugins']['get']('TrackChangesEditing');_0x4865ce['plugins']['has']('UndoEditing')&&(_0x7a6a69['enableCommand']('undo'),_0x7a6a69['enableCommand']('redo'));}}class Rt extends _0x2c2070{static get['requires'](){return[vt];}['afterInit'](){const _0x2438a0=this['editor'];if(!_0x2438a0['plugins']['has']('TableCaptionEditing'))return;_0x2438a0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x2c2070{['tableProperties'];['tableCellProperties'];constructor(_0x4c4d92){super(_0x4c4d92),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 _0x40cca0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1f48cc of this['tableProperties'])_0x40cca0['enableCommand'](_0x1f48cc,(_0x1aa505,_0x17e3a5)=>{const _0x2c6637=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1f48cc,[_0x2c6637],this['tableProperties'],'tableProperties',_0x1aa505,_0x17e3a5);});_0x40cca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x40cca0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40cca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xd5d3df,_0x3a1b45)=>this['handleDiscardAction'](this['tableProperties'],_0xd5d3df,_0x3a1b45)),_0x40cca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5a21b0 of this['tableCellProperties'])_0x40cca0['enableCommand'](_0x5a21b0,(_0x702201,_0x27d7f9)=>{const _0x40f1d7=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5a21b0,_0x40f1d7,this['tableCellProperties'],'tableCellProperties',_0x702201,_0x27d7f9);});_0x40cca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x40cca0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40cca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1a1778,_0x44de72)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1a1778,_0x44de72)),_0x40cca0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x40cca0['descriptionFactory']['registerDescriptionCallback'](_0x9bcf9b=>this['handleSuggestionDescription'](_0x9bcf9b));}['_handlePropertyChange'](_0x27ca68,_0x21d12b,_0xe96ebe,_0x5c1fa1,_0x3f1e6f,_0x17c251){const _0x2e855a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x17c251['batch'],()=>{for(const _0x404442 of _0x21d12b){if(this['_getSuggestion'](_0x404442,_0x5c1fa1))_0x3f1e6f(_0x17c251);else{const _0x34bacc={};for(const _0x4160ba of _0xe96ebe){const _0x109ad6=_0x404442['getAttribute'](_0x4160ba);void 0x0!==_0x109ad6&&(_0x34bacc[_0x4160ba]=_0x109ad6);}_0x3f1e6f(_0x17c251),_0x2e855a['markBlockFormat'](_0x404442,{'commandParams':[_0x34bacc]},[],_0x5c1fa1);}}});}['handleDiscardAction'](_0x90b01a,_0x1de9f5,_0x294733){const _0x556adf=_0x1de9f5[0x0]['start']['nodeAfter'],_0x491958=_0x294733['commandParams'][0x0];this['editor']['model']['change'](_0x502ca7=>{for(const _0x19978c of _0x90b01a)void 0x0!==_0x491958[_0x19978c]?_0x502ca7['setAttribute'](_0x19978c,_0x491958[_0x19978c],_0x556adf):_0x502ca7['removeAttribute'](_0x19978c,_0x556adf);});}['handleSuggestionDescription'](_0x25e199){if(_0x25e199['data'])switch(_0x25e199['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x53ddae,_0x4ca12e){const _0x595197=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x304373 of _0x595197['getSuggestions']({'skipNotAttached':!0x0})){const _0x45924d=_0x304373['getContainedElement']();if(_0x304373['subType']===_0x4ca12e&&_0x45924d===_0x53ddae)return _0x304373;}return null;}}const m='$elementName';class p extends _0x2c2070{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4b651f,_0x14dbde,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4af377){super(_0x4af377),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x50d505,_0x59bd53,_0x5414e1,_0x182cd9)=>{this['_model']['change'](()=>{for(const _0x189be3 of[..._0x182cd9,..._0x5414e1])this['_model']['markers']['has'](_0x189be3)&&_0x4af377['editing']['reconvertMarker'](_0x189be3);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4af377['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x4af377['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4af377['config']['get']('trackChanges.trackFormatChanges'),_0x4af377['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4af377['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4af377,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1fc918=this['editor'],_0x247a72=(_0x514aeb,_0x53a6eb)=>{if('attribute'!=_0x514aeb)return'ck-suggestion-marker-'+_0x514aeb;const _0x349bc6=_0x53a6eb['split']('|')[0x0];return this['_isBlockAttribute'](_0x349bc6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1fc918['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5691c6=>{const {id:_0x4b680f,authorId:_0x22d35d,type:_0x2e9756,subType:_0x385ce1}=this['_splitMarkerName'](_0x5691c6['markerName']),_0x25267e=['ck-suggestion-marker',_0x247a72(_0x2e9756,_0x385ce1)];let _0x15aab6=0xbb8;return this['activeMarkers']['includes'](_0x5691c6['markerName'])&&(_0x25267e['push']('ck-suggestion-marker--active'),_0x15aab6=0xbc2),'deletion'==_0x2e9756&&(_0x15aab6+=0x5),{'classes':_0x25267e,'attributes':{'data-suggestion':_0x4b680f,'data-author-id':_0x22d35d},'priority':_0x15aab6};}}),_0x1fc918['conversion']['for']('dataDowncast')['add'](_0x2963ab=>{_0x2963ab['on']('addMarker:suggestion',(_0x15fc60,_0x54f441,_0x5cc621)=>{if(!_0x5cc621['options']['showSuggestionHighlights'])return;const _0x1559d6=_0x54f441['item'];if(!_0x1559d6)return;const _0x3df910=_0x5cc621['mapper']['toViewElement'](_0x1559d6);_0x1fc918['model']['schema']['isObject'](_0x1559d6)&&_0x3df910&&!_0x3df910['getCustomProperty']('widget')&&_0x3df910['is']('containerElement')&&_0x1e1632(_0x3df910,_0x5cc621['writer']);},{'priority':'high'});}),_0x1fc918['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc789ac,_0xe3adb9)=>{if(!_0xe3adb9['options']['showSuggestionHighlights'])return null;const {type:_0xadaa3f,subType:_0x3b86e1}=this['_splitMarkerName'](_0xc789ac['markerName']);return{'classes':['ck-suggestion-marker',_0x247a72(_0xadaa3f,_0x3b86e1)],'priority':0xbb8};}});const _0x26eb43=({showActiveMarkers:_0x4a47b6=!0x0,isAttributeSuggestion:_0xbb2266=!0x1}={})=>(_0x1cc43b,_0x3b10eb,_0x228f0b)=>{if(!_0x3b10eb['item'])return;const {id:_0x48dcc3,authorId:_0x540e77}=this['_splitMarkerName'](_0x3b10eb['markerName']);if(_0xbb2266){const _0x4a3672=this['_suggestions']['get'](_0x48dcc3),_0x4fe3e1=this['_getAttributeKey'](_0x4a3672);if(!this['_isBlockAttribute'](_0x4fe3e1))return;}if(_0x3b10eb['item']['is']('selection'))return void _0x228f0b['consumable']['consume'](_0x3b10eb['item'],_0x1cc43b['name']);const _0x2380e8=_0x228f0b['mapper']['toViewElement'](_0x3b10eb['item']);if(_0x3b10eb['item']['is']('element')&&_0x1fc918['model']['schema']['isBlock'](_0x3b10eb['item'])&&!_0x2380e8['getCustomProperty']('addHighlight')){_0x228f0b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2380e8),_0x228f0b['writer']['setAttribute']('data-suggestion',_0x48dcc3,_0x2380e8),_0x228f0b['writer']['setAttribute']('data-author-id',_0x540e77,_0x2380e8),_0x228f0b['mapper']['bindElementToMarker'](_0x2380e8,_0x3b10eb['markerName']),_0x4a47b6&&(this['activeMarkers']['includes'](_0x3b10eb['markerName'])?_0x228f0b['writer']['addClass']('ck-suggestion-marker--active',_0x2380e8):_0x228f0b['writer']['removeClass']('ck-suggestion-marker--active',_0x2380e8));for(const _0x3b0ba2 of _0x1fc918['model']['createRangeIn'](_0x3b10eb['item'])['getItems']())_0x228f0b['consumable']['consume'](_0x3b0ba2,_0x1cc43b['name']);_0x228f0b['consumable']['consume'](_0x3b10eb['item'],_0x1cc43b['name']);}};_0x1fc918['conversion']['for']('dataDowncast')['add'](_0x5f0a76=>{_0x5f0a76['on']('addMarker:suggestion:formatBlock',(_0x4a8b62,_0x2a3454,_0x310cc0)=>{_0x310cc0['options']['showSuggestionHighlights']&&_0x26eb43({'showActiveMarkers':!0x1})(_0x4a8b62,_0x2a3454,_0x310cc0);},{'priority':'highest'});}),_0x1fc918['conversion']['for']('dataDowncast')['add'](_0x5be709=>{_0x5be709['on']('addMarker:suggestion:attribute',(_0x1c4c42,_0xd67012,_0x5ee27b)=>{_0x5ee27b['options']['showSuggestionHighlights']&&_0x26eb43({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c4c42,_0xd67012,_0x5ee27b);},{'priority':'highest'});}),_0x1fc918['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x142f09,_0x59c1da)=>_0x59c1da['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x142f09['substr'](0xb)}}),_0x1fc918['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x173233,{writer:_0x26a8d3})=>{let _0x15af98='suggestion:'+_0x173233['getAttribute']('suggestion-type')+':'+_0x173233['getAttribute']('id');return _0x173233['getAttribute']('marker-count')&&(_0x15af98+=':'+_0x173233['getAttribute']('marker-count')),_0x26a8d3['createElement']('$marker',{'data-name':_0x15af98});}}),_0x1fc918['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1fc918['conversion']['for']('editingDowncast')['add'](_0x4d3c3a=>{_0x4d3c3a['on']('addMarker:suggestion:formatBlock',_0x26eb43(),{'priority':'high'});}),_0x1fc918['conversion']['for']('editingDowncast')['add'](_0x548b6c=>{_0x548b6c['on']('addMarker:suggestion:attribute',_0x26eb43({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1fc918['conversion']['for']('editingDowncast')['add'](_0x4aa677=>{_0x4aa677['on']('removeMarker:suggestion:formatBlock',(_0x36c3bd,_0x5ce6bd,_0x4170e5)=>{const _0x2c67da=_0x4170e5['mapper']['markerNameToElements'](_0x5ce6bd['markerName']);if(_0x2c67da){for(const _0x45cddd of _0x2c67da)_0x45cddd['getCustomProperty']('addHighlight')||(_0x4170e5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45cddd),_0x4170e5['writer']['removeAttribute']('data-suggestion',_0x45cddd),_0x4170e5['writer']['removeAttribute']('data-author-id',_0x45cddd),_0x4170e5['mapper']['unbindElementFromMarkerName'](_0x45cddd,_0x5ce6bd['markerName']));}},{'priority':'high'});}),_0x1fc918['conversion']['for']('editingDowncast')['add'](_0xda3636=>{_0xda3636['on']('removeMarker:suggestion:attribute',(_0xe9fe3b,_0x3c08cc,_0x551e8e)=>{const _0x48b0a6=_0x551e8e['mapper']['markerNameToElements'](_0x3c08cc['markerName']);if(!_0x48b0a6)return;const {id:_0x1b012c}=this['_splitMarkerName'](_0x3c08cc['markerName']),_0x1f8d17=this['_suggestions']['get'](_0x1b012c),_0x2018f2=this['_getAttributeKey'](_0x1f8d17);if(this['_isBlockAttribute'](_0x2018f2)){for(const _0x243b78 of _0x48b0a6)_0x243b78['getCustomProperty']('addHighlight')||(_0x551e8e['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x243b78),_0x551e8e['writer']['removeAttribute']('data-suggestion',_0x243b78),_0x551e8e['writer']['removeAttribute']('data-author-id',_0x243b78),_0x551e8e['mapper']['unbindElementFromMarkerName'](_0x243b78,_0x3c08cc['markerName']));}},{'priority':'high'});}),_0x1fc918['model']['document']['registerPostFixer'](_0x4cf6e9=>{let _0x55f153=!0x1;const _0x10fc84=Array['from'](_0x1fc918['model']['document']['differ']['getChangedMarkers']()),_0x2014ac=new Set();for(const {name:_0x1de5bc,data:_0x45ef29}of _0x10fc84){const {group:_0x175d58,type:_0x1c8a4f,subType:_0x4e55b0,id:_0x38b55e}=this['_splitMarkerName'](_0x1de5bc);if('suggestion'!==_0x175d58)continue;const _0x37b5d8=this['_suggestions']['get'](_0x38b55e);if(null!=_0x45ef29['newRange']){'formatInline'==_0x1c8a4f&&(_0x55f153=_0x55f153||Pt(_0x45ef29['newRange'],_0x1de5bc,_0x4cf6e9,_0x1fc918['model']['schema']));const _0x1cdb32='attribute'==_0x1c8a4f&&this['_isBlockAttribute'](_0x4e55b0['split']('|')[0x0]);if(_0x45ef29['newRange']['isCollapsed']||'$graveyard'==_0x45ef29['newRange']['root']['rootName']||'formatBlock'==_0x1c8a4f&&!Ft(_0x45ef29['newRange'])||_0x1cdb32&&!Ft(_0x45ef29['newRange'])||'deletion'==_0x1c8a4f&&!(!Vt(_0x9ebefd=_0x45ef29['newRange'])&&!function(_0x5184c4){return _0x5184c4['start']['parent']==_0x5184c4['end']['nodeBefore']&&_0x5184c4['start']['isAtEnd'];}(_0x9ebefd)))_0x4cf6e9['removeMarker'](_0x1de5bc),_0x55f153=!0x0;else{if(!_0x37b5d8||!_0x37b5d8['isInContent'])continue;if(_0x45ef29['newRange']&&_0x45ef29['oldRange']&&_0x45ef29['newRange']['isEqual'](_0x45ef29['oldRange']))continue;_0x2014ac['add'](_0x37b5d8);}}}var _0x9ebefd;return _0x2014ac['size']>0x0&&(_0x55f153=!!this['_joinWithAdjacentSuggestions'](_0x2014ac)||_0x55f153),_0x55f153;}),_0x1fc918['model']['document']['registerPostFixer'](_0x23280a=>{let _0x1b7542=!0x1;for(const _0x2ba0d6 of _0x1fc918['model']['document']['differ']['getChanges']())if('insert'==_0x2ba0d6['type'])for(const _0x43b63d of this['_suggestions']['values']()){if(_0x43b63d['isMultiRange']||!_0x43b63d['isInContent'])continue;const _0x51b75b='formatBlock'==_0x43b63d['type'],_0x4e4073=this['_getAttributeKey'](_0x43b63d),_0x52d345=_0x4e4073&&this['_isBlockAttribute'](_0x4e4073);if(!_0x51b75b&&!_0x52d345)continue;const _0x5626b9=_0x43b63d['getFirstRange']();if(_0x5626b9['start']['parent']!=_0x5626b9['end']['parent']&&!_0x5626b9['end']['isAtEnd']){const _0x399f37=_0x1fc918['model']['createPositionAt'](_0x5626b9['start']['nodeAfter'],'end'),_0x5542f3=_0x1fc918['model']['createRange'](_0x5626b9['start'],_0x399f37);_0x23280a['updateMarker'](_0x43b63d['getFirstMarker'](),{'range':_0x5542f3}),_0x1b7542=!0x0;}}return _0x1b7542;}),_0x1fc918['model']['document']['registerPostFixer'](_0x3616f7=>this['_processAttributeChanges'](_0x3616f7)),_0x1fc918['model']['document']['registerPostFixer'](_0x3742f6=>!_0x3742f6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3742f6)),_0x1fc918['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1fc918['model']['document']['on']('change:data',(_0x4d336b,_0x4cf1e5)=>{if(!_0x4cf1e5['isLocal']||_0x4cf1e5['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xf85c3c=_0x1fc918['model']['document']['differ']['getChanges']();if(0x0==_0xf85c3c['length'])return;const _0x1c6d5b=[],_0x1523fe=_0xf85c3c['filter'](_0x11c686=>'attribute'==_0x11c686['type']),_0x3fbd87=_0xf85c3c['filter'](_0x3f5865=>'insert'==_0x3f5865['type']&&'$text'!=_0x3f5865['name']);for(const _0x3f5152 of _0x1523fe)this['_isRegisteredAttribute'](_0x3f5152['attributeKey'])&&_0x1c6d5b['push']({'key':_0x3f5152['attributeKey'],'newValue':_0x3f5152['attributeNewValue'],'oldValue':_0x3f5152['attributeOldValue'],'range':Lt(_0x3f5152['range'],_0x1fc918['model'])});for(const _0x95bb38 of _0x3fbd87){if('rename'!=_0x95bb38['action']&&'refresh'!=_0x95bb38['action'])continue;const _0x2135be=Jt(_0x95bb38['position']['nodeAfter'],_0x1fc918['model']),_0x2393a0=_0x95bb38['before'];'rename'==_0x95bb38['action']&&_0x1c6d5b['push']({'key':m,'newValue':_0x95bb38['name'],'oldValue':_0x2393a0['name'],'range':_0x2135be});for(const [_0xa80864,_0x20b3a1]of _0x2393a0['attributes']){if(!this['_isRegisteredAttribute'](_0xa80864))continue;const _0x34dd4a=_0x95bb38['attributes']['get'](_0xa80864);_0x20b3a1!==_0x34dd4a&&_0x1c6d5b['push']({'key':_0xa80864,'newValue':_0x34dd4a,'oldValue':_0x20b3a1,'range':_0x2135be});}for(const [_0x59a258,_0x46e665]of _0x95bb38['attributes'])this['_isRegisteredAttribute'](_0x59a258)&&(_0x2393a0['attributes']['has'](_0x59a258)||_0x1c6d5b['push']({'key':_0x59a258,'newValue':_0x46e665,'oldValue':null,'range':_0x2135be}));}0x0!=_0x1c6d5b['length']&&_0x1fc918['model']['enqueueChange'](_0x4cf1e5,_0x137af3=>{const _0x4bc8e1=_0x42487e();for(const {range:_0x11e813,key:_0x8bae36,oldValue:_0x163ec7,newValue:_0x187e72}of _0x1c6d5b)this['markAttributeChange'](_0x11e813,_0x8bae36,_0x163ec7,_0x187e72,{'groupId':_0x4bc8e1});this['_reduceExistingSuggestions'](_0x137af3,_0x1c6d5b);});},{'priority':'lowest'}),_0x1fc918['model']['markers']['on']('update:suggestion',(_0x366ab4,_0x27e463,_0x354125)=>{if(null==_0x354125){const {id:_0x1f7802}=this['_splitMarkerName'](_0x27e463['name']),_0x18cf63=this['_suggestions']['get'](_0x1f7802);_0x18cf63&&_0x18cf63['addMarkerName'](_0x27e463['name']);}}),_0x1fc918['model']['document']['on']('change:data',()=>{const _0x42aa11=Array['from'](_0x1fc918['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5c76f3=>'suggestion'===this['_splitMarkerName'](_0x5c76f3['name'])['group']);if(0x0===_0x42aa11['length'])return;_0x42aa11['sort']((_0x4c789e,_0x1a085b)=>{const _0x42906f=_0x4c789e['data']['oldRange'],_0x2fe5e2=_0x1a085b['data']['oldRange'];return null===_0x42906f&&null===_0x2fe5e2?0x0:null===_0x42906f&&null!==_0x2fe5e2?-0x1:null!==_0x42906f&&null===_0x2fe5e2?0x1:_0x42906f['start']['isBefore'](_0x2fe5e2['start'])?-0x1:0x1;});const _0x5f38f8=new Set(),_0x1f9157=new Set();for(const {name:_0x12ee3d,data:_0x395f84}of _0x42aa11){const {id:_0x93558}=this['_splitMarkerName'](_0x12ee3d);if(null===_0x395f84['oldRange']){const _0x761387=this['_handleNewSuggestionMarker'](_0x12ee3d);_0x1f9157['add'](_0x761387);}else{const _0x416c7d=this['_suggestions']['get'](_0x93558);null!==_0x395f84['newRange']||_0x416c7d['isInContent']?(_0x5f38f8['add'](_0x416c7d['head']),_0x1f9157['add'](_0x416c7d)):this['_removeSuggestion'](_0x416c7d);}}_0x1f9157['size']>0x0&&this['_refreshSuggestionsChain'](_0x1f9157);for(const _0x406231 of _0x5f38f8)this['fire']('suggestionChanged',_0x406231);}),_0x1fc918['model']['on']('applyOperation',(_0x5ebba9,_0xc7e61)=>{const _0x2796b7=_0xc7e61[0x0];if(!this['_suggestions']['size'])return;if(!_0x2796b7['isDocumentOperation'])return;if(_0x2796b7['batch']['isUndo']||!_0x2796b7['batch']['isLocal'])return;let _0x98c838,_0x4cf87d;switch(_0x2796b7['type']){case'insert':_0x98c838=_0x1fc918['model']['createPositionAt'](_0x2796b7['position']),_0x4cf87d=_0x98c838['getShiftedBy'](_0x2796b7['howMany']);break;case'split':_0x98c838=_0x1fc918['model']['createPositionAt'](_0x2796b7['splitPosition']),_0x4cf87d=_0x1fc918['model']['createPositionAt'](_0x2796b7['moveTargetPosition']);break;case'move':_0x98c838=_0x1fc918['model']['createPositionAt'](_0x2796b7['targetPosition']),_0x4cf87d=_0x98c838['getShiftedBy'](_0x2796b7['howMany']);break;default:return;}const _0x48dab8=_0x1fc918['model']['createRange'](_0x98c838,_0x4cf87d);_0x1fc918['model']['change'](()=>{for(const {suggestion:_0x15bfb0,meta:_0x44ed44}of this['_findSuggestions'](_0x48dab8)){if(_0x15bfb0['isMultiRange'])continue;if('formatInline'==_0x15bfb0['type'])continue;const _0x3a48dd=this['_getAttributeKey'](_0x15bfb0);if(_0x3a48dd&&this['_isBlockAttribute'](_0x3a48dd)&&'split'!=_0x2796b7['type'])continue;const _0x52e87a=_0x15bfb0['data']&&_0x15bfb0['data']['multipleBlocks'];('formatBlock'!=_0x15bfb0['type']||'split'==_0x2796b7['type']&&!_0x52e87a)&&(_0x44ed44['containsRangeInObject']||'insertion'==_0x15bfb0['type']&&_0x44ed44['isOwn']||_0x15bfb0['getFirstRange']()['containsRange'](_0x48dab8)&&this['_breakSuggestionMarker'](_0x15bfb0,_0x98c838,_0x4cf87d));}});},{'priority':'lowest'}),_0x1fc918['model']['on']('deleteContent',(_0x586a24,_0x3fe4a6)=>{const _0x1c7e9e=_0x3fe4a6[0x0],_0x3af013=_0x3fe4a6[0x1];if(_0x3af013&&_0x3af013['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1c7e9e['isCollapsed'])return;const _0x5024f9=_0x1fc918['model']['schema'],{start:_0x406b1c,end:_0x3d267e}=_0x1c7e9e['getFirstRange'](),_0xcf8f6e=_0x406b1c['nodeAfter']&&_0x5024f9['isLimit'](_0x406b1c['nodeAfter'])?null:_0x5024f9['getNearestSelectionRange'](_0x406b1c,'forward'),_0x41f85b=_0x3d267e['nodeBefore']&&_0x5024f9['isLimit'](_0x3d267e['nodeBefore'])?null:_0x5024f9['getNearestSelectionRange'](_0x3d267e,'backward'),_0x545eb0=_0x1fc918['model']['createRange'](_0xcf8f6e?_0xcf8f6e['start']:_0x406b1c,_0x41f85b?_0x41f85b['end']:_0x3d267e);_0x1fc918['model']['change'](_0x38d632=>{this['markDeletion'](_0x545eb0);const _0x118ef8=_0x1fc918['model']['schema']['getNearestSelectionRange'](_0x545eb0['start']);_0x1c7e9e['is']('documentSelection')?_0x38d632['setSelection'](_0x118ef8):_0x1c7e9e['setTo'](_0x118ef8);}),_0x586a24['stop']();},{'priority':_0x22cf47['normal']+0xa}),_0x1fc918['model']['on']('insertContent',(_0x3782bd,_0x2cb157)=>{const _0x47fdb8=_0x2cb157[_0x2cb157['length']-0x1];_0x47fdb8&&_0x47fdb8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1fc918['model']['change'](()=>{let _0xdb36e7=_0x1fc918['model']['insertContent'](_0x2cb157[0x0],_0x2cb157[0x1],_0x2cb157[0x2],{'forceDefaultExecution':!0x0});if(!_0xdb36e7)return;_0x3782bd['return']=_0xdb36e7['clone']();const _0x3d3f98=_0xdb36e7['end']['nodeBefore'],_0x32f8eb=_0x1fc918['model']['schema'];_0x3d3f98&&_0x32f8eb['isBlock'](_0x3d3f98)&&!_0x32f8eb['isObject'](_0x3d3f98)&&(_0xdb36e7=_0x1fc918['model']['createRange'](_0xdb36e7['start'],_0x1fc918['model']['createPositionAt'](_0x3d3f98,'end'))),this['markInsertion'](_0xdb36e7);}),_0x3782bd['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2b12eb=new O(_0x1fc918,this['_suggestions']);_0x1fc918['commands']['add']('acceptSuggestion',_0x2b12eb),this['enableCommand']('acceptSuggestion');const _0x2a9515=new R(_0x1fc918,this['_suggestions']);_0x1fc918['commands']['add']('discardSuggestion',_0x2a9515),this['enableCommand']('discardSuggestion'),_0x1fc918['commands']['add']('acceptAllSuggestions',new x(_0x1fc918,_0x2b12eb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1fc918['commands']['add']('discardAllSuggestions',new x(_0x1fc918,_0x2a9515,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1fc918['commands']['add']('acceptSelectedSuggestions',new E(_0x1fc918,_0x2b12eb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1fc918['commands']['add']('discardSelectedSuggestions',new E(_0x1fc918,_0x2a9515,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4540b7=_0x1fc918['plugins']['get']('CommentsRepository');this['listenTo'](_0x4540b7,'addComment',(_0x4dc8d5,{threadId:_0x34c083})=>{const _0x564231=this['_suggestions']['get'](_0x34c083);_0x564231&&_0x564231['commentThread']&&0x1===_0x564231['commentThread']['length']&&this['_updateSuggestionData'](_0x34c083,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4540b7,'removeComment',(_0x129d69,{threadId:_0x3513c2})=>{const _0x413bfb=this['_suggestions']['get'](_0x3513c2);_0x413bfb&&_0x413bfb['commentThread']&&!_0x413bfb['commentThread']['length']&&this['_updateSuggestionData'](_0x3513c2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3ea06a){const _0xa18797=_0x40b2b0([0x68,0x59,0x67,0x65,0x30,0x4c,0x73,0x78,0x6a,0x61,0x33,0x39,0x72,0x6b,0x62,0x51,0x45,0x44,0x58,0x4a,0x7a,0x74,0x4b,0x31,0x42,0x69,0x35,0x79,0x38,0x5a,0x75,0x6f,0x63,0x47,0x77,0x32,0x49,0x41,0x4d,0x37,0x53,0x6e,0x57,0x6d,0x36,0x46,0x54,0x71,0x55,0x64,0x50,0x70,0x48,0x4e,0x6c,0x76,0x4f,0x34,0x43,0x56,0x52,0x66]),_0x4558b3=0x18771ae1,_0x14d8e7=0x18704321^_0x4558b3,_0xb4169d=window[_0x40b2b0([0x44,0x61,0x74,0x65])][_0x40b2b0([0x6e,0x6f,0x77])](),_0x1906ac=_0x3ea06a[_0x40b2b0([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2a7db7=new window[(_0x40b2b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39b740=>{_0x1906ac[_0x40b2b0([0x6f,0x6e,0x63,0x65])](_0x40b2b0([0x72,0x65,0x61,0x64,0x79]),_0x39b740);}),_0x580916={[_0x40b2b0([0x6b,0x74,0x79])]:_0x40b2b0([0x45,0x43]),[_0x40b2b0([0x75,0x73,0x65])]:_0x40b2b0([0x73,0x69,0x67]),[_0x40b2b0([0x63,0x72,0x76])]:_0x40b2b0([0x50,0x2d,0x32,0x35,0x36]),[_0x40b2b0([0x78])]:_0x40b2b0([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]),[_0x40b2b0([0x79])]:_0x40b2b0([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]),[_0x40b2b0([0x61,0x6c,0x67])]:_0x40b2b0([0x45,0x53,0x32,0x35,0x36])},_0x4329ba=_0x1906ac[_0x40b2b0([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40b2b0([0x67,0x65,0x74])](_0x40b2b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3abfd2(){let _0x328141,_0x36e46f=null,_0x55bd8a=null;try{if(_0x4329ba==_0x40b2b0([0x47,0x50,0x4c]))return _0x40b2b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x328141=_0x4e44c1(),!_0x328141)return _0x40b2b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x328141[_0x40b2b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x55bd8a=_0x2df52a(_0x328141[_0x40b2b0([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x328141[_0x40b2b0([0x6a,0x74,0x69])])),await _0x42ea6d()?_0x16ddd4()?_0x3ba1c9()?_0x40b2b0([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9368df()?(_0x328141[_0x40b2b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40b2b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x36e46f=_0x3ddb2c(_0x40b2b0([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x328141[_0x40b2b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40b2b0([0x74,0x72,0x69,0x61,0x6c])&&(_0x36e46f=_0x3ddb2c(_0x40b2b0([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x328141[_0x40b2b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40b2b0([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x36e46f=_0x3ddb2c(_0x40b2b0([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x7da438()):_0x40b2b0([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40b2b0([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40b2b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x504df5){return _0x40b2b0([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ba1c9(){const _0xb3982b=[_0x40b2b0([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40b2b0([0x74,0x72,0x69,0x61,0x6c])][_0x40b2b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x328141[_0x40b2b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb4169d/0x3e8:0xe10*_0x14d8e7;return _0x328141[_0x40b2b0([0x65,0x78,0x70])]<_0xb3982b;}function _0x16ddd4(){const _0x13741d=_0x328141[_0x40b2b0([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13741d)return!0x1;if(_0x13741d[_0x40b2b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40b2b0([0x2a])))return!0x0;if(_0x13741d[_0x40b2b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40b2b0([0x54,0x43])))return!0x0;if(_0x13741d[_0x40b2b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40b2b0([0x52,0x54,0x43]))){if(_0x11835b())return!0x0;if(_0x369013()||_0xa461e0())return!0x0;}return!0x1;}function _0x9368df(){const _0x428d8e=_0x328141[_0x40b2b0([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x428d8e||0x0==_0x428d8e[_0x40b2b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x530e46}=new URL(window[_0x40b2b0([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x428d8e[_0x40b2b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x530e46))return!0x0;const _0x382469=_0x530e46[_0x40b2b0([0x73,0x70,0x6c,0x69,0x74])](_0x40b2b0([0x2e]));return _0x428d8e[_0x40b2b0([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d23e5=>_0x3d23e5[_0x40b2b0([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40b2b0([0x2a])))[_0x40b2b0([0x6d,0x61,0x70])](_0x66660f=>_0x66660f[_0x40b2b0([0x73,0x70,0x6c,0x69,0x74])](_0x40b2b0([0x2e])))[_0x40b2b0([0x73,0x6f,0x6d,0x65])](_0x4267f1=>_0x382469[_0x40b2b0([0x65,0x76,0x65,0x72,0x79])]((_0x10fd34,_0x269c03)=>_0x4267f1[_0x269c03]===_0x10fd34||_0x4267f1[_0x269c03]===_0x40b2b0([0x2a])));}function _0x7da438(){return _0x36e46f&&_0x55bd8a?new window[(_0x40b2b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2ea360,_0x261f01)=>{_0x36e46f[_0x40b2b0([0x74,0x68,0x65,0x6e])](_0x2ea360,_0x261f01),_0x55bd8a[_0x40b2b0([0x74,0x68,0x65,0x6e])](_0x5a51b9=>{_0x5a51b9!=_0x40b2b0([0x56,0x61,0x6c,0x69,0x64])&&_0x2ea360(_0x5a51b9);},_0x261f01);}):_0x36e46f||_0x55bd8a||_0x40b2b0([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2df52a(_0x5980c6,_0x3447b0){return new window[(_0x40b2b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x312c6a=>{if(_0x3bfe9e())return _0x312c6a(_0x40b2b0([0x56,0x61,0x6c,0x69,0x64]));_0x400cc0(),_0x1906ac[_0x40b2b0([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40b2b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x173420=!0x1;const _0xa7c0e1=_0x42487e();function _0x1869ee(_0x1b72f8){return!!_0x1b72f8&&(typeof _0x1b72f8===_0x40b2b0([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b72f8===_0x40b2b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b72f8[_0x40b2b0([0x74,0x68,0x65,0x6e])]===_0x40b2b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b72f8[_0x40b2b0([0x63,0x61,0x74,0x63,0x68])]===_0x40b2b0([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5ee6c7(_0xad2224){_0x2c8a3e(_0xad2224)[_0x40b2b0([0x74,0x68,0x65,0x6e])](_0x3db2a8=>{if(!_0x3db2a8||_0x3db2a8[_0x40b2b0([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40b2b0([0x6f,0x6b]))return _0x40b2b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20e34a(_0x5dcae0(_0xa7c0e1+_0x3447b0))!=_0x3db2a8[_0x40b2b0([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40b2b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40b2b0([0x56,0x61,0x6c,0x69,0x64]);})[_0x40b2b0([0x74,0x68,0x65,0x6e])](_0x30b7d8=>(_0x946646(),_0x30b7d8),()=>{const _0x262ddb=_0x3260f6();return null==_0x262ddb?(_0x946646(),_0x40b2b0([0x56,0x61,0x6c,0x69,0x64])):_0x40b2b0(_0xb4169d-_0x262ddb>(0x3c7b9ee1^_0x4558b3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40b2b0([0x74,0x68,0x65,0x6e])](_0x312c6a)[_0x40b2b0([0x63,0x61,0x74,0x63,0x68])](()=>{_0x312c6a(_0x40b2b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x20a5b0=0x1841f461^_0x4558b3;function _0x946646(){const _0x1d6667=_0x40b2b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x20e34a(_0x5dcae0(_0x5980c6)),_0x506a0b=_0x8d046(_0x20e34a(window[_0x40b2b0([0x4d,0x61,0x74,0x68])][_0x40b2b0([0x63,0x65,0x69,0x6c])](_0xb4169d/_0x20a5b0)));window[_0x40b2b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40b2b0([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d6667,_0x506a0b);}function _0x3260f6(){const _0x10e59f=_0x40b2b0([0x6c,0x6c,0x63,0x74,0x2d])+_0x20e34a(_0x5dcae0(_0x5980c6)),_0x31992d=window[_0x40b2b0([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40b2b0([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x10e59f);return _0x31992d?window[_0x40b2b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8d046(_0x31992d),0x10)*_0x20a5b0:null;}function _0x2c8a3e(_0x258eb3){return new window[(_0x40b2b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ec3eb,_0x13581a)=>{_0x258eb3[_0x40b2b0([0x74,0x68,0x65,0x6e])](_0x4ec3eb,_0x13581a),window[_0x40b2b0([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13581a,0x1876ce21^_0x4558b3);});}}_0x1906ac[_0x40b2b0([0x6f,0x6e])](_0x40b2b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40e319,_0x4e0caf)=>{if(_0x4e0caf[0x0]!=_0x5980c6)return _0x312c6a(_0x40b2b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e0caf[0x1]={..._0x4e0caf[0x1],[_0x40b2b0([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa7c0e1};},{[_0x40b2b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40b2b0([0x68,0x69,0x67,0x68])}),_0x1906ac[_0x40b2b0([0x6f,0x6e])](_0x40b2b0([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5cc663=>{_0x1869ee(_0x5cc663[_0x40b2b0([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x173420=!0x0,_0x5ee6c7(_0x5cc663[_0x40b2b0([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40b2b0([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40b2b0([0x6c,0x6f,0x77])}),_0x2a7db7[_0x40b2b0([0x74,0x68,0x65,0x6e])](()=>{_0x173420||_0x312c6a(_0x40b2b0([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3bfe9e(){return _0x1906ac[_0x40b2b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40b2b0([0x76,0x69,0x65,0x77])][_0x40b2b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40b2b0([0x61,0x75,0x74,0x6f]);}function _0x400cc0(){_0x1906ac[_0x40b2b0([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40b2b0([0x76,0x69,0x65,0x77])][_0x40b2b0([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40b2b0([0x61,0x75,0x74,0x6f]);}}function _0x3ddb2c(_0x137e9c){const _0x35dce8=[new window[(_0x40b2b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57c397=>setTimeout(_0x57c397,0x187e242d^_0x4558b3)),_0x2a7db7[_0x40b2b0([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40b2b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41e1fd=>{let _0x2f52f2=0x0;_0x1906ac[_0x40b2b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x40b2b0([0x6f,0x6e])](_0x40b2b0([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x164bba,_0x36b378)=>{_0x36b378[0x0][_0x40b2b0([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2f52f2++,_0x2f52f2==(0x18771b19^_0x4558b3)&&(_0x41e1fd(),_0x164bba[_0x40b2b0([0x6f,0x66,0x66])]());});}))];return window[_0x40b2b0([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40b2b0([0x72,0x61,0x63,0x65])](_0x35dce8)[_0x40b2b0([0x74,0x68,0x65,0x6e])](()=>_0x137e9c);}async function _0x2d2ef5(){await _0x2a7db7,_0x1906ac[_0x40b2b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x40b2b0([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2ecebd,_0x1906ac[_0x40b2b0([0x6d,0x6f,0x64,0x65,0x6c])][_0x40b2b0([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2ecebd,_0x1906ac[_0x40b2b0([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40b2b0([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11835b(){return _0x52d057(_0x40b2b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5a171f(_0x40b2b0([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x40b2b0([0x73,0x74,0x61,0x74,0x65])]==_0x40b2b0([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x369013(){return _0x52d057(_0x40b2b0([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 _0xa461e0(){return _0x52d057(_0x40b2b0([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x283d5b(_0x4fb7ca){const _0x95e2f3=_0x2bfd29();_0x1906ac[_0x95e2f3]=_0x40b2b0([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4fb7ca,_0x4fb7ca!=_0x40b2b0([0x56,0x61,0x6c,0x69,0x64])&&_0x2d2ef5();}function _0x2bfd29(){const _0x519652=window[_0x40b2b0([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40b2b0([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40b2b0([0x6e,0x6f,0x77])]())[_0x40b2b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40b2b0([0x2e]),'');let _0x2df98a=_0x40b2b0([0x68]);for(let _0x4cbbd2=0x0;_0x4cbbd2<_0x519652[_0x40b2b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cbbd2+=0x2){let _0x3046f0=window[_0x40b2b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x519652[_0x40b2b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4cbbd2,_0x4cbbd2+0x2));_0x3046f0>=_0xa18797[_0x40b2b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3046f0-=_0xa18797[_0x40b2b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2df98a+=_0xa18797[_0x3046f0];}return _0x2df98a;}function _0x4e44c1(){const _0xf8f282=_0x4329ba[_0x40b2b0([0x73,0x70,0x6c,0x69,0x74])](_0x40b2b0([0x2e]));if(0x3!=_0xf8f282[_0x40b2b0([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x56da8c(_0xf8f282[0x1]);function _0x56da8c(_0x59530e){const _0x1215b8=_0x416403(_0x59530e);return _0x1215b8&&_0x30819f()?_0x1215b8:null;function _0x30819f(){const _0x84617=_0x1215b8[_0x40b2b0([0x6a,0x74,0x69])],_0x5511da=window[_0x40b2b0([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x84617[_0x40b2b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x84617[_0x40b2b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49c5e7={..._0x1215b8,[_0x40b2b0([0x6a,0x74,0x69])]:_0x84617[_0x40b2b0([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x84617[_0x40b2b0([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49c5e7[_0x40b2b0([0x76,0x63])],_0x5dcae0(_0x49c5e7)==_0x5511da;}}}async function _0x42ea6d(){let _0x190e1d=!0x0;try{const _0x36cda5=_0x4329ba[_0x40b2b0([0x73,0x70,0x6c,0x69,0x74])](_0x40b2b0([0x2e])),[_0x4c2d5b,_0x422312,_0x364042]=_0x36cda5;return _0x5a7232(_0x4c2d5b),await _0x2ae365(_0x4c2d5b,_0x422312,_0x364042),_0x190e1d;}catch(_0x47cb98){return!0x1;}function _0x5a7232(_0x441e8b){const _0x5dde03=_0x416403(_0x441e8b);_0x5dde03&&_0x5dde03[_0x40b2b0([0x61,0x6c,0x67])]==_0x40b2b0([0x45,0x53,0x32,0x35,0x36])||(_0x190e1d=!0x1);}async function _0x2ae365(_0xffd09,_0x1bc53d,_0x948b08){const _0x2414d4=window[_0x40b2b0([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40b2b0([0x66,0x72,0x6f,0x6d])](_0x10c84f(_0x948b08),_0x1df2b4=>_0x1df2b4[_0x40b2b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1e7008=new window[(_0x40b2b0([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40b2b0([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xffd09+_0x40b2b0([0x2e])+_0x1bc53d),_0xc35a27=window[_0x40b2b0([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40b2b0([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc35a27)return;const _0xb3bd4c=await _0xc35a27[_0x40b2b0([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40b2b0([0x6a,0x77,0x6b]),_0x580916,{[_0x40b2b0([0x6e,0x61,0x6d,0x65])]:_0x40b2b0([0x45,0x43,0x44,0x53,0x41]),[_0x40b2b0([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40b2b0([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40b2b0([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc35a27[_0x40b2b0([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40b2b0([0x6e,0x61,0x6d,0x65])]:_0x40b2b0([0x45,0x43,0x44,0x53,0x41]),[_0x40b2b0([0x68,0x61,0x73,0x68])]:{[_0x40b2b0([0x6e,0x61,0x6d,0x65])]:_0x40b2b0([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb3bd4c,_0x2414d4,_0x1e7008)||(_0x190e1d=!0x1);}}function _0x416403(_0x3b80db){return _0x3b80db[_0x40b2b0([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40b2b0([0x65,0x79]))?JSON[_0x40b2b0([0x70,0x61,0x72,0x73,0x65])](_0x10c84f(_0x3b80db)):null;}function _0x10c84f(_0x57cd5e){return window[_0x40b2b0([0x61,0x74,0x6f,0x62])](_0x57cd5e[_0x40b2b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40b2b0([0x2b]))[_0x40b2b0([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40b2b0([0x2f])));}function _0x5dcae0(_0x1cb6ec){let _0x1bbc80=0x1505;function _0x3f56e0(_0x13a50e){for(let _0x8afb11=0x0;_0x8afb11<_0x13a50e[_0x40b2b0([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8afb11++){const _0x294e50=_0x13a50e[_0x40b2b0([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x8afb11);_0x1bbc80=(_0x1bbc80<<0x5)+_0x1bbc80+_0x294e50,_0x1bbc80&=_0x1bbc80;}}function _0x5e70e8(_0x3997d5){Array[_0x40b2b0([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3997d5)?_0x3997d5[_0x40b2b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e70e8):_0x3997d5&&typeof _0x3997d5==_0x40b2b0([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40b2b0([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3997d5)[_0x40b2b0([0x73,0x6f,0x72,0x74])]()[_0x40b2b0([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x187e5a,_0x1f1b6f])=>{_0x3f56e0(_0x187e5a),_0x5e70e8(_0x1f1b6f);}):_0x3f56e0(window[_0x40b2b0([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3997d5));}return _0x5e70e8(_0x1cb6ec),_0x1bbc80>>>0x0;}function _0x20e34a(_0x5d240c){return _0x5d240c[_0x40b2b0([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40b2b0([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40b2b0([0x30]));}function _0x8d046(_0x579c64){return _0x579c64[_0x40b2b0([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40b2b0([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40b2b0([0x6a,0x6f,0x69,0x6e])]('');}function _0x52d057(_0x3328f8){return _0x1906ac[_0x40b2b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40b2b0([0x68,0x61,0x73])](_0x3328f8);}function _0x5a171f(_0x5edcc0){return _0x1906ac[_0x40b2b0([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x40b2b0([0x67,0x65,0x74])](_0x5edcc0);}function _0x2ecebd(){}function _0x40b2b0(_0xe8f227){return _0xe8f227['map'](_0x6fb045=>String['fromCharCode'](_0x6fb045))['join']('');}_0x283d5b(await _0x3abfd2());}(this);}set['adapter'](_0x47c70f){if(this['_adapter'])throw new _0x52a4fc('track-changes-adapter-already-set',this);this['_adapter']=_0x47c70f;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x933786=!0x1,toJSON:_0x479b22=!0x1}={}){const _0x1ee860=[];for(const _0x115819 of this['_suggestions']['values']())_0x933786&&!_0x115819['isInContent']||_0x1ee860['push'](_0x115819);return _0x479b22?_0x1ee860['map'](_0x4781f8=>_0x4781f8['toJSON']()):_0x1ee860;}['getSuggestion'](_0x21649b){const _0x4988f2=this['_suggestions']['get'](_0x21649b);if(!_0x4988f2)throw new _0x52a4fc('track-changes-suggestion-not-found',this);return _0x4988f2;}['hasSuggestion'](_0x3f5efb){return this['_suggestions']['has'](_0x3f5efb);}['addSuggestionData'](_0x55bded){const {authorId:_0x516ee8,id:_0x45a749,attributes:_0x1eb4c4}=_0x55bded,[_0x2e31ed,_0x39d27c]=_0x55bded['type']['split'](':'),_0x23a65c=this['_suggestions']['get'](_0x45a749)||this['_createSuggestion'](_0x2e31ed,_0x39d27c,_0x45a749,_0x516ee8,_0x1eb4c4);if(this['_addThreadToSuggestion'](_0x23a65c),this['_checkSuggestionCorrectness'](_0x23a65c,_0x2e31ed,_0x39d27c||null,_0x516ee8),_0x23a65c['createdAt']=_0x55bded['createdAt'],_0x23a65c['_isDataLoaded']=!0x0,_0x1eb4c4&&_0x1eb4c4['@external']){const _0x2784ac=_0x1eb4c4['@external'],_0x2a444f=this['_getExternalAuthor'](_0x2784ac['authorName']);_0x23a65c['authoredAt']=_0x2784ac['createdAt'],_0x23a65c['author']=_0x2a444f,_0x23a65c['isExternal']=!0x0;}else _0x23a65c['authoredAt']=_0x55bded['createdAt'];switch(_0x55bded['data']&&(_0x23a65c['data']=_0x55bded['data']),_0x55bded['attributes']&&(_0x23a65c['attributes']=_0x55bded['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x23a65c['_saved']=!0x0),this['_suggestionState']['get'](_0x23a65c)){case'notReady':this['_suggestionState']['set'](_0x23a65c,'dataReady');break;case'markerReady':_0x23a65c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x23a65c])),this['_refreshSuggestionsChain'](new Set([_0x23a65c])),this['_suggestionState']['set'](_0x23a65c,'ready'),this['fire']('suggestionLoaded',_0x23a65c)):this['_suggestionState']['set'](_0x23a65c,'removed');}return _0x23a65c;}['acceptSuggestion'](_0x10f704){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x188505 of _0x10f704['getAllAdjacentSuggestions']())_0x188505['accept']();});});}['discardSuggestion'](_0x1666e7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3c7b2e of _0x1666e7['getAllAdjacentSuggestions']())_0x3c7b2e['discard']();});});}['enableCommand'](_0x5c520e,_0x3025b4){const _0x191e4f=this['editor']['commands']['get'](_0x5c520e);if(!_0x191e4f)throw new _0x52a4fc('track-changes-command-not-found',this,{'commandName':_0x5c520e});if(this['_enabledCommands']['has'](_0x191e4f))throw new _0x52a4fc('track-changes-enable-command-twice',this,{'commandName':_0x5c520e});this['_enabledCommands']['add'](_0x191e4f),_0x3025b4&&_0x191e4f['on']('execute',(_0x57ec55,_0x32cb44)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x32cb44['length']>0x0&&_0x32cb44[_0x32cb44['length']-0x1]&&_0x32cb44[_0x32cb44['length']-0x1]['forceDefaultExecution']?_0x32cb44['pop']():(_0x57ec55['return']=_0x3025b4((..._0x1d0829)=>_0x191e4f['execute'](..._0x1d0829,{'forceDefaultExecution':!0x0}),..._0x32cb44),_0x57ec55['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xace5aa){let _0xe68756,_0x4b7018;const _0x410816=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xe68756=_0xace5aa();}catch(_0x25ed53){_0x4b7018=_0x25ed53;}return _0x410816||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4b7018&&_0x52a4fc['rethrowUnexpectedError'](_0x4b7018,this),_0xe68756;}['markInsertion'](_0x748688,_0x260822=null,_0x1ad4ed={}){if(_0x748688['isCollapsed'])return null;const _0x1893fa=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x467594,meta:_0x26cbc8}of this['_findSuggestions'](_0x748688,'insertion'))if(_0x26cbc8['isOwn']){if(!_0x26cbc8['isNextTo']){if(_0x26cbc8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x467594,_0x1ad4ed))continue;return _0x467594;}if(zt(_0x467594,_0x1ad4ed))return _0x467594;this['_breakSuggestionMarker'](_0x467594,_0x748688['start'],_0x748688['end']);break;}if(_0x260822==_0x467594['subType']&&zt(_0x467594,_0x1ad4ed)){const _0x54f9ec=_0x467594['getFirstRange']();return _0x54f9ec['start']['isEqual'](_0x748688['end'])?this['_setSuggestionRange'](_0x467594,this['_model']['createRange'](_0x748688['start'],_0x54f9ec['end'])):this['_setSuggestionRange'](_0x467594,this['_model']['createRange'](_0x54f9ec['start'],_0x748688['end'])),_0x467594;}}const _0x402c60=_0x42487e(),_0xcdd26e=_0x1893fa['id'],_0x1ff379=_0x260822?'insertion:'+_0x260822:'insertion',_0x4adbcf=this['_setSuggestionData']({'id':_0x402c60,'type':_0x1ff379,'createdAt':new Date(),'authorId':_0xcdd26e,'attributes':_0x1ad4ed});return this['_addSuggestionMarker'](_0x1ff379,_0x402c60,_0xcdd26e,_0x748688),_0x4adbcf;}['markMultiRangeInsertion'](_0x8523c8,_0x3023a8='multi',_0x3fbb6f={}){const _0x3396f7=this['editor']['plugins']['get']('Users')['me'],_0x258ca9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x3023a8,'join');for(const _0x5dcf22 of this['getSuggestions']())if(_0x5dcf22['author']['id']==_0x3396f7['id']&&'insertion'==_0x5dcf22['type']&&_0x5dcf22['subType']==_0x3023a8&&zt(_0x5dcf22,_0x3fbb6f)&&(_0x258ca9(_0x5dcf22['getRanges'](),_0x8523c8)||_0x258ca9(_0x8523c8,_0x5dcf22['getRanges']()))){for(const _0x5b60bd of _0x8523c8)_0x5dcf22['addRange'](_0x5b60bd);return _0x5dcf22;}for(const {suggestion:_0x2c73c3,meta:_0x556fb8}of this['_findSuggestions'](_0x8523c8,'insertion')){if(!_0x556fb8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x556fb8['containsRangeInObject'])continue;if(!zt(_0x2c73c3,_0x3fbb6f))continue;let _0x3edacb=!0x0;for(const _0x76301e of _0x2c73c3['getRanges']())for(const _0x4cc0cf of _0x8523c8)if(!_0x76301e['containsRange'](_0x4cc0cf)){_0x3edacb=!0x1;break;}if(_0x3edacb)return _0x2c73c3;}const _0x5b6ac5=_0x42487e(),_0x3fc4bb=_0x3396f7['id'],_0x3ddebc='insertion:'+_0x3023a8,_0x5dade7=this['_setSuggestionData']({'id':_0x5b6ac5,'type':_0x3ddebc,'createdAt':new Date(),'authorId':_0x3fc4bb,'attributes':_0x3fbb6f});for(const _0x3d7bbf of _0x8523c8)this['_addSuggestionMarker'](_0x3ddebc,_0x5b6ac5,_0x3fc4bb,_0x3d7bbf,u['getMultiRangeId']());return _0x5dade7;}['markInlineFormat'](_0x5274c0,_0x4fc9cb,_0x66fd8f=null,_0x193400={}){if(_0x66fd8f=_0x66fd8f||Gt(_0x4fc9cb),_0x5274c0['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1c5171=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x66fd8f,'accept');return this['forceDefaultExecution'](()=>_0x1c5171([_0x5274c0],_0x4fc9cb,_0x193400)),null;}const _0x17b8e9=this['editor']['plugins']['get']('Users')['me'],_0x4a3495=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4372bd,meta:_0x5ab20d}of this['_findSuggestions'](_0x5274c0,'insertion'))_0x5ab20d['isOwn']&&!_0x5ab20d['isInsideObject']&&_0x4a3495['push'](..._0x4372bd['getRanges']());}const _0x1899a6=function(_0x5bf3fc,_0x3c7322){const _0x2b8213=[];for(const _0x393c7f of _0x3c7322){const _0x8723d7=_0x5bf3fc['getIntersection'](_0x393c7f);_0x8723d7&&_0x2b8213['push'](_0x8723d7);}return _0x2b8213;}(_0x5274c0,_0x4a3495),_0x183b86=function(_0x2cf199,_0x32fe5f){const _0x168c10=[_0x2cf199];for(const _0x116bf8 of _0x32fe5f){let _0x179934=0x0;for(;_0x179934<_0x168c10['length'];){const _0x3beefd=_0x168c10[_0x179934]['getDifference'](_0x116bf8);_0x168c10['splice'](_0x179934,0x1,..._0x3beefd),_0x179934+=_0x3beefd['length'];}}return _0x168c10;}(_0x5274c0,_0x4a3495);_0x1899a6['length']&&this['_model']['change'](()=>{for(const _0x2b0e68 of _0x1899a6){const _0x3c853f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x66fd8f,'accept');this['forceDefaultExecution'](()=>_0x3c853f([_0x2b0e68],_0x4fc9cb,_0x193400));}});for(const _0x47df19 of _0x183b86){let _0x9d485a=null,_0xb36a96=_0x47df19['start'],_0x2962e5=_0x47df19['end'];for(const {suggestion:_0x4e8c88,meta:_0x5529cb}of this['_findSuggestions'](_0x47df19,'formatInline')){if(!_0x5529cb['isOwn'])continue;if(_0x4e8c88['subType']!=_0x66fd8f)continue;if(!zt(_0x4e8c88,_0x193400))continue;const _0x495cfd=_0x4e8c88['getFirstRange']();if(_0x495cfd['containsRange'](_0x47df19,!0x0))return null;_0xb36a96=_0xb36a96['isBefore'](_0x495cfd['start'])?_0xb36a96:_0x495cfd['start'],_0x2962e5=_0x2962e5['isAfter'](_0x495cfd['end'])?_0x2962e5:_0x495cfd['end'],_0x9d485a?_0x495cfd['start']['isBefore'](_0x9d485a['getFirstRange']()['start'])?(_0x9d485a['removeMarkers'](),_0x9d485a=_0x4e8c88):_0x4e8c88['removeMarkers']():_0x9d485a=_0x4e8c88;}const _0x1dfa46=this['_model']['createRange'](_0xb36a96,_0x2962e5);if(_0x9d485a)this['_setSuggestionRange'](_0x9d485a,_0x1dfa46);else{const _0x1317b6=_0x42487e(),_0x5d5ff4=_0x17b8e9['id'];this['_setSuggestionData']({'id':_0x1317b6,'type':'formatInline:'+_0x66fd8f,'data':_0x4fc9cb,'createdAt':new Date(),'authorId':_0x5d5ff4,'attributes':_0x193400}),this['_addSuggestionMarker']('formatInline:'+_0x66fd8f,_0x1317b6,_0x5d5ff4,_0x1dfa46);}}return null;}['markBlockFormat'](_0x3e50b5,_0x3c54d4,_0x23e249=[],_0x1915b2=null,_0x36a73d={}){_0x3c54d4['formatGroupId']||(_0x3c54d4['formatGroupId']=_0x3c54d4['commandName']),_0x3c54d4['multipleBlocks']=_0x3e50b5['is']('range'),_0x1915b2=_0x1915b2||Gt(_0x3c54d4);const _0xb0bfe0=_0x23e249['map'](_0x58f06f=>Jt(_0x58f06f,this['_model'])),_0x3e4a9a=_0x3e50b5['is']('range')?_0x3e50b5:Jt(_0x3e50b5,this['_model']);if('never'===this['_trackFormatChanges']){const _0x6f5f49=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1915b2,'accept');return this['forceDefaultExecution'](()=>_0x6f5f49([_0x3e4a9a],_0x3c54d4,_0x36a73d)),null;}_0xb0bfe0['push'](_0x3e4a9a);let _0x5f1b3c=!0x0;for(const _0x170e23 of _0xb0bfe0)if(!this['_rangeIsInLocalUserInsertion'](_0x170e23)){_0x5f1b3c=!0x1;break;}if(_0x5f1b3c&&'always'!==this['_trackFormatChanges']){const _0x198473=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1915b2,'accept');return this['forceDefaultExecution'](()=>_0x198473([_0x3e4a9a],_0x3c54d4,_0x36a73d)),null;}let _0x15ff8=null,_0xdee7c3=_0x3e4a9a['start'],_0x9a6ae8=_0x3e4a9a['end'];for(const {suggestion:_0x2cbe2e,meta:_0x1b7d2f}of this['_findSuggestions'](_0x3e4a9a,'formatBlock')){if(!_0x1b7d2f['isOwn'])continue;if(_0x1b7d2f['isNextTo']||_0x1b7d2f['containsRangeInObject']||_0x1b7d2f['isInsideObject'])continue;if(_0x2cbe2e['data']['formatGroupId']!=_0x3c54d4['formatGroupId'])continue;if(!zt(_0x2cbe2e,_0x36a73d))continue;const _0x142029=_0x2cbe2e['getFirstRange']();if(_0x2cbe2e['subType']==_0x1915b2){if(_0x142029['containsRange'](_0x3e4a9a,!0x0))return null;_0xdee7c3=_0xdee7c3['isBefore'](_0x142029['start'])?_0xdee7c3:_0x142029['start'],_0x9a6ae8=_0x9a6ae8['isAfter'](_0x142029['end'])?_0x9a6ae8:_0x142029['end'],_0x15ff8?_0x142029['start']['isBefore'](_0x15ff8['getFirstRange']()['start'])?(_0x15ff8['removeMarkers'](),_0x15ff8=_0x2cbe2e):_0x2cbe2e['removeMarkers']():_0x15ff8=_0x2cbe2e;}else{const _0x7d6a24=_0x3e4a9a['getIntersection'](_0x142029);this['_cutOutSuggestionMarker'](_0x2cbe2e,_0x7d6a24);}}const _0x19e126=this['editor']['plugins']['get']('Users')['me'],_0x405aec=_0x42487e(),_0x1fc39b=_0x19e126['id'];if(_0x15ff8)return this['_setSuggestionRange'](_0x15ff8,this['_model']['createRange'](_0xdee7c3,_0x9a6ae8)),_0x15ff8;{const _0x178724=this['_setSuggestionData']({'id':_0x405aec,'type':'formatBlock:'+_0x1915b2,'data':_0x3c54d4,'createdAt':new Date(),'authorId':_0x1fc39b,'attributes':_0x36a73d});return this['_addSuggestionMarker']('formatBlock:'+_0x1915b2,_0x405aec,_0x1fc39b,this['_model']['createRange'](_0xdee7c3,_0x9a6ae8)),_0x178724;}}['markMultiRangeBlockFormat'](_0x2cf743,_0x355104,_0x413017=[],_0x136b52=null,_0x35dde4={}){_0x355104['formatGroupId']||(_0x355104['formatGroupId']=_0x355104['commandName']);const _0x19a327=_0x2cf743[0x0];_0x355104['multipleBlocks']=_0x19a327['is']('range'),_0x136b52=_0x136b52||Gt(_0x355104);const _0x188019=_0x413017['map'](_0x475106=>Jt(_0x475106,this['_model'])),_0x48fa23=_0x19a327['is']('range')?_0x2cf743:_0x2cf743['map'](_0x10c9be=>Jt(_0x10c9be,this['_model']));if('never'===this['_trackFormatChanges']){const _0x183671=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x136b52,'accept');return this['forceDefaultExecution'](()=>_0x183671(_0x48fa23,_0x355104,_0x35dde4)),null;}_0x188019['push'](..._0x48fa23);let _0x38f6e4=!0x0;for(const _0xa571e6 of _0x188019)if(!this['_rangeIsInLocalUserInsertion'](_0xa571e6)){_0x38f6e4=!0x1;break;}if(_0x38f6e4&&'always'!==this['_trackFormatChanges']){const _0x3ef671=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x136b52,'accept');return this['forceDefaultExecution'](()=>_0x3ef671(_0x48fa23,_0x355104,_0x35dde4)),null;}const _0x523ca9=this['editor']['plugins']['get']('Users')['me'];for(const _0x39dbf8 of this['getSuggestions']()){if(_0x39dbf8['author']['id']!=_0x523ca9['id'])continue;if('formatBlock'!=_0x39dbf8['type']||_0x39dbf8['data']['formatGroupId']!=_0x355104['formatGroupId'])continue;if(!zt(_0x39dbf8,_0x35dde4))continue;const _0x16ebc3=_0x39dbf8['subType']==_0x136b52;for(let _0x84e8ca=0x0;_0x84e8ca<_0x48fa23['length'];_0x84e8ca++){const _0x3e038d=_0x48fa23[_0x84e8ca];for(const _0x613782 of _0x39dbf8['getMarkers']()){const _0x3ddfa3=_0x613782['getRange']();if(_0x3e038d['isEqual'](_0x3ddfa3)){_0x16ebc3?(_0x48fa23['splice'](_0x84e8ca,0x1),_0x84e8ca--):_0x39dbf8['removeMarker'](_0x613782['name']);break;}}}}if(0x0==_0x48fa23['length'])return null;const _0x3a9f5c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x136b52,'join');for(const _0x3604f2 of this['getSuggestions']())if(_0x3604f2['author']['id']==_0x523ca9['id']&&'formatBlock'==_0x3604f2['type']&&_0x3604f2['data']['formatGroupId']==_0x355104['formatGroupId']&&_0x3604f2['subType']==_0x136b52&&zt(_0x3604f2,_0x35dde4)&&(_0x3a9f5c(_0x3604f2['getRanges'](),_0x48fa23)||_0x3a9f5c(_0x48fa23,_0x3604f2['getRanges']()))){for(const _0x16a33e of _0x48fa23)_0x3604f2['addRange'](_0x16a33e);return _0x3604f2;}const _0x4ed17f=_0x42487e(),_0x5af94e=_0x523ca9['id'],_0x218774='formatBlock:'+_0x136b52,_0x5a3bb6=this['_setSuggestionData']({'id':_0x4ed17f,'type':_0x218774,'data':_0x355104,'createdAt':new Date(),'authorId':_0x5af94e,'attributes':_0x35dde4});for(const _0x1e115e of _0x48fa23)this['_addSuggestionMarker'](_0x218774,_0x4ed17f,_0x5af94e,_0x1e115e,u['getMultiRangeId']());return _0x5a3bb6;}['markDeletion'](_0x3be756,_0x57f330=null,_0x2d1d33={}){if(_0x3be756['isCollapsed'])return null;const _0x31e62b=this['editor']['plugins']['get']('Users')['me'],_0x5d68d3=new _0x1b403d(_0x3be756['start'],_0x3be756['end']);for(const {suggestion:_0x321ff4,meta:_0x3ce3f0}of this['_findSuggestions'](_0x5d68d3,'insertion'))if(_0x3ce3f0['isOwn']&&!_0x3ce3f0['isNextTo']){if(_0x321ff4['isMultiRange']){const _0x54e641=_0x321ff4['getRanges']()['filter'](_0x4c6a9a=>'$graveyard'!=_0x4c6a9a['root']['rootName']);_0x54e641['every'](_0x32e91b=>_0x5d68d3['containsRange'](_0x32e91b,!0x0))&&_0x321ff4['discard']();if(_0x54e641['some'](_0x165c86=>_0x165c86['containsRange'](_0x5d68d3,!0x0))){const _0x168321=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x57f330,'accept');return this['forceDefaultExecution'](()=>_0x168321([_0x5d68d3],null,_0x2d1d33)),null;}}else{const _0x21dea5=_0x5d68d3['getIntersection'](_0x321ff4['getFirstRange']());null!==_0x21dea5&&_0x321ff4['_onDiscard']([_0x21dea5],null,_0x2d1d33);}}if(_0x5d68d3['detach'](),_0x5d68d3['isCollapsed']||'$graveyard'==_0x5d68d3['root']['rootName'])return null;let _0x528543=null,_0x4f2134=_0x5d68d3['start'],_0x3e57e7=_0x5d68d3['end'];const _0x5975ab=this['_findSuggestions'](_0x5d68d3,'deletion');for(const {suggestion:_0x1f8dcc,meta:_0x3a0328}of _0x5975ab){const _0x4e272d=this['_model']['createRange'](_0x4f2134,_0x3e57e7);if(_0x3a0328['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3a0328['containsRangeInObject']&&!_0x3a0328['isInsideObject'])){if(_0x1f8dcc['isMultiRange']){if(!zt(_0x1f8dcc,_0x2d1d33))continue;let _0x2662e8=!0x0;for(const _0x525f51 of _0x1f8dcc['getRanges']()){if(_0x525f51['containsRange'](_0x4e272d,!0x0))return _0x1f8dcc;_0x4e272d['containsRange'](_0x525f51)||(_0x2662e8=!0x1);}_0x2662e8&&_0x1f8dcc['discard']();}else{const _0x341536=_0x1f8dcc['getFirstRange']();if(_0x341536['containsRange'](_0x4e272d,!0x0))return _0x1f8dcc;if(!zt(_0x1f8dcc,_0x2d1d33)){_0x4e272d['containsRange'](_0x341536)?_0x1f8dcc['removeMarkers']():_0x341536['containsPosition'](_0x4f2134)?_0x4f2134=_0x341536['end']:_0x341536['containsPosition'](_0x3e57e7)&&(_0x3e57e7=_0x341536['start']);continue;}_0x4f2134=_0x4f2134['isBefore'](_0x341536['start'])?_0x4f2134:_0x341536['start'],_0x3e57e7=_0x3e57e7['isAfter'](_0x341536['end'])?_0x3e57e7:_0x341536['end'],_0x2d1d33=Object['assign']({},_0x1f8dcc['attributes']),_0x528543?_0x341536['start']['isBefore'](_0x528543['getFirstRange']()['start'])?(_0x528543['removeMarkers'](),_0x528543=_0x1f8dcc):_0x1f8dcc['removeMarkers']():_0x528543=_0x1f8dcc;}}}if(_0x528543)return this['_setSuggestionRange'](_0x528543,this['_model']['createRange'](_0x4f2134,_0x3e57e7)),_0x528543;{const _0x2d9f69=_0x42487e(),_0x4cfaaa=this['_model']['createRange'](_0x4f2134,_0x3e57e7),_0x51d073=_0x31e62b['id'],_0x5e74c7=_0x57f330?'deletion:'+_0x57f330:'deletion',_0x200152=this['_setSuggestionData']({'id':_0x2d9f69,'type':_0x5e74c7,'createdAt':new Date(),'authorId':_0x51d073,'attributes':_0x2d1d33});return this['_addSuggestionMarker'](_0x5e74c7,_0x2d9f69,_0x51d073,_0x4cfaaa),_0x200152;}}['markMultiRangeDeletion'](_0x32466d,_0x1250b9='multi',_0x2ed9ac={}){const _0x218ece=this['editor']['plugins']['get']('Users')['me'],_0x6b5973=_0x32466d['map'](_0x337329=>new _0x1b403d(_0x337329['start'],_0x337329['end'])),_0x190f36=new Set();for(const {suggestion:_0x4260bd,meta:_0x4d27b8}of this['_findSuggestions'](_0x6b5973,'insertion'))_0x4d27b8['isOwn']&&!_0x4d27b8['isNextTo']&&_0x190f36['add'](_0x4260bd);for(const _0xeaa399 of _0x190f36)if(_0xeaa399['isMultiRange']){const _0x25bf22=_0xeaa399['getRanges']();(!_0xeaa399['attributes']||!_0xeaa399['attributes']['skipNestingCheck'])&&(_0x25bf22['every'](_0x37a42f=>_0x6b5973['some'](_0x1a8d29=>_0x1a8d29['containsRange'](_0x37a42f,!0x0)))&&_0xeaa399['discard']());if(_0x6b5973['every'](_0xb6ddcd=>_0x25bf22['some'](_0x2aaee8=>_0x2aaee8['containsRange'](_0xb6ddcd,!0x0)))){const _0x54f36c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1250b9,'accept');return this['forceDefaultExecution'](()=>_0x54f36c(_0x32466d,null,_0x2ed9ac)),null;}}else{const _0x43ef1b=_0xeaa399['getFirstRange']();_0x6b5973['some'](_0x50d7f2=>_0x50d7f2['containsRange'](_0x43ef1b,!0x0))&&_0xeaa399['discard']();if(_0x6b5973['every'](_0x5b0eb1=>_0x43ef1b['containsRange'](_0x5b0eb1,!0x0))){const _0x272b76=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1250b9,'accept');return this['forceDefaultExecution'](()=>_0x272b76(_0x6b5973,null,_0x2ed9ac)),null;}}const _0x11295e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1250b9,'join');let _0x23e57f=null;for(const _0x5940fd of this['getSuggestions']())if(_0x5940fd['author']['id']==_0x218ece['id']&&_0x5940fd['isInContent']&&'deletion'==_0x5940fd['type']&&_0x5940fd['subType']==_0x1250b9&&zt(_0x5940fd,_0x2ed9ac)&&(_0x11295e(_0x5940fd['getRanges'](),_0x6b5973)||_0x11295e(_0x6b5973,_0x5940fd['getRanges']()))){if(_0x23e57f){if(_0x5940fd['commentThread']&&_0x5940fd['commentThread']['length'])continue;for(const _0x4c923 of _0x5940fd['getRanges']())_0x23e57f['isIntersectingWithRange'](_0x4c923)||_0x23e57f['addRange'](_0x4c923);_0x5940fd['removeMarkers']();}else{_0x23e57f=_0x5940fd;for(const _0x590848 of _0x6b5973)_0x5940fd['isIntersectingWithRange'](_0x590848)||_0x5940fd['addRange'](_0x590848);}}if(_0x23e57f)return _0x23e57f;_0x190f36['clear']();for(const {suggestion:_0x11596d,meta:_0x12840d}of this['_findSuggestions'](_0x6b5973,'deletion'))_0x12840d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x12840d['containsRangeInObject']&&!_0x12840d['isInsideObject'])&&zt(_0x11596d,_0x2ed9ac)&&_0x190f36['add'](_0x11596d);for(const _0x167264 of _0x190f36){const _0x39e74f=_0x167264['getRanges']();if(!_0x2ed9ac||!_0x2ed9ac['skipNestingCheck']){if(_0x6b5973['every'](_0x2e6fc8=>_0x39e74f['some'](_0x182b95=>_0x182b95['containsRange'](_0x2e6fc8,!0x0))))return _0x167264;}(!_0x167264['attributes']||!_0x167264['attributes']['skipNestingCheck'])&&(_0x39e74f['every'](_0x35d426=>_0x6b5973['some'](_0x2617f9=>_0x2617f9['containsRange'](_0x35d426,!0x0)))&&_0x167264['discard']());}const _0x431dd4=_0x42487e(),_0x4ed456=_0x218ece['id'],_0x1224f1='deletion:'+_0x1250b9,_0x106942=this['_setSuggestionData']({'id':_0x431dd4,'type':_0x1224f1,'createdAt':new Date(),'authorId':_0x4ed456,'attributes':_0x2ed9ac});for(const _0x2ab5e8 of _0x6b5973)_0x2ab5e8['detach'](),_0x2ab5e8['isCollapsed']||'$graveyard'==_0x2ab5e8['root']['rootName']||this['_addSuggestionMarker'](_0x1224f1,_0x431dd4,_0x4ed456,_0x2ab5e8,u['getMultiRangeId']());return _0x106942;}['markAttributeChange'](_0xc3be72,_0x449571,_0x5bdb6d,_0x448a0a,_0x333118){if(_0xc3be72['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5c2911=this['editor']['plugins']['get']('Users')['me']['id'],_0x138dd3=Array['from'](this['_suggestions']['values']())['filter'](_0x2aaffc=>'attribute'==_0x2aaffc['type']&&_0x2aaffc['data']['key']==_0x449571&&_0x2aaffc['isIntersectingWithRange'](_0xc3be72));if('default'===this['_trackFormatChanges']){const _0x3dc8d5=this['_findSuggestions'](_0xc3be72,'insertion')['filter'](({meta:_0x2042b0})=>_0x2042b0['isOwn']&&!_0x2042b0['isInsideObject']&&!_0x2042b0['isNextTo'])['map'](({suggestion:_0x357b88})=>_0x357b88);_0x138dd3['unshift'](..._0x3dc8d5);}const _0x155dd6=new Map([[_0xc3be72,_0x5bdb6d]]);for(const _0x16999a of _0x138dd3){const _0x11cb11='attribute'==_0x16999a['type']?_0x16999a['data']['oldValue']:void 0x0,_0x4555df=_0x16999a['getFirstRange'](),_0x563265=Array['from'](_0x155dd6['keys']())['find'](_0x34eb65=>_0x34eb65['isIntersecting'](_0x4555df));if(!_0x563265)continue;const _0x104f14=_0x563265['getDifference'](_0x4555df);this['_isBlockAttribute'](_0x449571)&&'insertion'==_0x16999a['type']&&0x0!=_0x104f14['length']||(_0x155dd6['delete'](_0x563265),_0x104f14['forEach'](_0x5258ef=>{_0x155dd6['set'](_0x5258ef,_0x5bdb6d);}),'insertion'!=_0x16999a['type']&&_0x11cb11!=_0x448a0a&&_0x155dd6['set'](_0x563265['getIntersection'](_0x4555df),_0x11cb11));}const _0x251ead=[];for(const [_0x6721b2,_0x37ba88]of _0x155dd6){const _0x515576=_0x42487e(),_0x21e00f={'key':_0x449571,'oldValue':_0x37ba88,'newValue':_0x448a0a};_0x449571['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':_0x449571});const _0x37abfd=('attribute:'+(_0x449571+'|'+Gt({'newValue':_0x448a0a})))['substring'](0x0,0x3c),_0x798fd5=this['_setSuggestionData']({'id':_0x515576,'type':_0x37abfd,'data':_0x21e00f,'createdAt':new Date(),'authorId':_0x5c2911,'attributes':_0x333118});_0x251ead['push'](_0x798fd5),this['_addSuggestionMarker'](_0x37abfd,_0x515576,_0x5c2911,_0x6721b2);}return _0x251ead;}['enableDefaultAttributesIntegration'](_0x4739d7){this['enableCommand'](_0x4739d7,(_0x2d5a2b,..._0x54ff34)=>{this['_recordAttributeChanges'](()=>{_0x2d5a2b(..._0x54ff34);});});}['registerBlockAttribute'](_0x43a9ef){this['_blockAttributeKeys']['add'](_0x43a9ef);}['registerInlineAttribute'](_0x1175fc){this['_inlineAttributeKeys']['add'](_0x1175fc);}['_getAttributeKey'](_0x3ee992){return'attribute'==_0x3ee992['type']?_0x3ee992['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x34050b,_0x473a58){const _0x4af2f5=_0x34050b['getFirstMarker']();this['_model']['change'](_0x4a2564=>{_0x4a2564['updateMarker'](_0x4af2f5,{'range':_0x473a58});});}['_addThreadToSuggestion'](_0x5bbe50){const _0x5c4d80=_0x5bbe50['id'],_0x5c6ac4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c4d80)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5c6ac4,'threadId':_0x5c4d80,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3981bc=this['_commentsRepository']['getCommentThread'](_0x5c4d80);_0x3981bc['unbind']('isRemovable'),_0x3981bc['isRemovable']=!0x1,_0x5bbe50['commentThread']=_0x3981bc;}['_checkSuggestionCorrectness'](_0x4ef04d,_0x3b9c90,_0x3c0f95,_0x397238){if(_0x4ef04d['type']!=_0x3b9c90||_0x4ef04d['subType']!=_0x3c0f95||_0x4ef04d['creator']['id']!=_0x397238)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x52a4fc('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2b0078,_0x168511){const _0x4800a7=_0x2b0078['getFirstRange']();if(_0x168511['isEqual'](_0x4800a7))_0x2b0078['removeMarkers']();else{if(_0x4800a7['containsRange'](_0x168511)){const _0x592da0=this['_model']['createPositionAt'](_0x168511['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b0078,this['_model']['createRange'](_0x4800a7['start'],_0x592da0));const _0x72225f=_0x42487e(),_0x10fb69=_0x2b0078['creator']['id'],_0x142cb5=_0x2b0078['type']+':'+_0x2b0078['subType'];this['_setSuggestionData']({'id':_0x72225f,'type':_0x142cb5,'createdAt':new Date(),'authorId':_0x10fb69,'data':_0x2b0078['data'],'attributes':_0x2b0078['attributes']});const _0x58ee69=this['_model']['createPositionAt'](_0x168511['end']['parent'],'after'),_0x1e6112=this['_model']['createRange'](_0x58ee69,_0x4800a7['end']);this['_addSuggestionMarker'](_0x142cb5,_0x72225f,_0x10fb69,_0x1e6112);}else{if(_0x4800a7['containsPosition'](_0x168511['start'])){const _0x4829ff=this['_model']['createPositionAt'](_0x168511['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2b0078,this['_model']['createRange'](_0x4800a7['start'],_0x4829ff));}else{const _0x1630c1=this['_model']['createPositionAt'](_0x168511['end']['parent'],'after');this['_setSuggestionRange'](_0x2b0078,this['_model']['createRange'](_0x1630c1,_0x4800a7['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x30ffb2){for(const {suggestion:_0xee9024,meta:_0x20e577}of this['_findSuggestions'](_0x30ffb2,'insertion')){if(!_0x20e577['isOwn'])continue;const _0x6f4f43=_0xee9024['getRanges']();for(const _0xf4bb39 of _0x6f4f43)if(!_0x30ffb2['getDifference'](_0xf4bb39)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2a5fa1){const _0x5a0705=this['editor']['plugins']['get']('Users')['getUser'](_0x2a5fa1);if(!_0x5a0705)throw new _0x52a4fc('track-changes-user-not-found',this);return _0x5a0705;}['_getExternalAuthor'](_0x30a910){const _0x1895ad=this['editor']['plugins']['get']('Users'),_0x3a215f=_0xb47d45('external:'+_0x30a910),_0x5b10da=_0x1895ad['getUser'](_0x3a215f);return _0x5b10da||_0x1895ad['addUser']({'id':_0x3a215f,'name':_0x30a910});}['_createSuggestion'](_0x512592,_0x382f76,_0x5d9fc4,_0x5cc0f5,_0x475477){const _0x88b9a7=this['_getAuthorFromId'](_0x5cc0f5),_0x1c2780=this['_suggestionFactory']['buildSuggestion'](_0x512592,_0x382f76,_0x5d9fc4,_0x88b9a7,_0x475477,_0x22fce5=>{this['_updateSuggestionData'](_0x5d9fc4,{'attributes':_0x22fce5});const _0x3fc3f0=this['getSuggestion'](_0x5d9fc4);this['_joinWithAdjacentSuggestions'](new Set([_0x3fc3f0])),this['_refreshSuggestionsChain'](new Set([_0x3fc3f0]));});return this['listenTo'](_0x1c2780,'accept',()=>{this['_updateSuggestionData'](_0x5d9fc4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1c2780,'discard',()=>{this['_updateSuggestionData'](_0x5d9fc4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x5d9fc4,_0x1c2780),this['_suggestionState']['set'](_0x1c2780,'notReady'),_0x1c2780;}['_splitMarkerName'](_0x35cb43){const _0x4da563=_0x35cb43['split'](':');return{'group':_0x4da563[0x0],'type':_0x4da563[0x1],'subType':_0x4da563['length']>=0x5?_0x4da563[0x2]:null,'id':_0x4da563['length']<0x5?_0x4da563[0x2]:_0x4da563[0x3],'authorId':_0x4da563['length']<0x5?_0x4da563[0x3]:_0x4da563[0x4],'markerCount':0x6==_0x4da563['length']?_0x4da563[0x5]:null};}['_breakSuggestionMarker'](_0x4248f,_0x24ea7f,_0x13c51b){const _0x3f5a45=_0x4248f['getFirstRange'](),_0x562464=_0x3f5a45['start'],_0xf3df22=_0x3f5a45['end'];this['_setSuggestionRange'](_0x4248f,this['_model']['createRange'](_0x562464,_0x24ea7f));const _0x59f3c2=_0x42487e(),_0x554992=_0x4248f['creator']['id'],_0x22f6fa=_0x4248f['type']+(_0x4248f['subType']?':'+_0x4248f['subType']:'');this['_setSuggestionData']({'id':_0x59f3c2,'type':_0x22f6fa,'createdAt':new Date(),'authorId':_0x554992,'originalSuggestionId':_0x4248f['id'],'attributes':_0x4248f['attributes'],'data':_0x4248f['data']});const _0x3ebb08=this['_getAttributeKey'](_0x4248f);('formatBlock'==_0x4248f['type']||_0x3ebb08&&this['_isBlockAttribute'](_0x3ebb08))&&(_0x13c51b=this['_model']['createPositionBefore'](_0x13c51b['parent'])),this['_addSuggestionMarker'](_0x22f6fa,_0x59f3c2,_0x554992,this['_model']['createRange'](_0x13c51b,_0xf3df22));}['_findSuggestions'](_0x2e0772,_0x1777d5=null){const _0xb88dbd=[],_0x29437e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2e0772)||(_0x2e0772=[_0x2e0772]);for(const _0x21628b of this['getSuggestions']()){if(!_0x21628b['isInContent'])continue;if(_0x1777d5&&_0x21628b['type']!=_0x1777d5)continue;let _0x26517f=!0x1;for(const _0x2802bc of _0x21628b['getRanges']()){for(const _0x5a0389 of _0x2e0772){const _0x2699ad=_0x5a0389['start']['isEqual'](_0x2802bc['end'])||_0x5a0389['end']['isEqual'](_0x2802bc['start']);if(_0x2699ad||_0x5a0389['getIntersection'](_0x2802bc)){const _0x4afb91=_0x5a0389['containsRange'](_0x2802bc)&&Ut(this['_model']['schema'],_0x2802bc['start'],_0x5a0389),_0x35ce39=_0x2802bc['containsRange'](_0x5a0389)&&Ut(this['_model']['schema'],_0x5a0389['start'],_0x2802bc);_0xb88dbd['push']({'suggestion':_0x21628b,'meta':{'isOwn':_0x29437e==_0x21628b['author'],'isNextTo':_0x2699ad,'isInsideObject':_0x4afb91,'containsRangeInObject':_0x35ce39}}),_0x26517f=!0x0;break;}}if(_0x26517f)break;}}return _0xb88dbd;}['_addSuggestionMarker'](_0x148fd7,_0xf85917,_0x2fc442,_0x50a6d1,_0x33d04a){this['_model']['change'](_0x5bd871=>{let _0x390e09='suggestion:'+_0x148fd7+':'+_0xf85917+':'+_0x2fc442;_0x33d04a&&(_0x390e09=_0x390e09+':'+_0x33d04a),_0x5bd871['addMarker'](_0x390e09,{'range':_0x50a6d1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4207db){const _0x47de59=_0x4207db['previous'],_0x2ea1e0=_0x4207db['next'];_0x4207db['previous']=null,_0x4207db['next']=null,null!=_0x47de59&&_0x47de59['next']==_0x4207db&&(_0x47de59['next']=_0x2ea1e0),null!=_0x2ea1e0&&_0x2ea1e0['previous']==_0x4207db&&(_0x2ea1e0['previous']=_0x47de59),'ready'==this['_suggestionState']['get'](_0x4207db)&&(this['_suggestionState']['set'](_0x4207db,'removed'),this['fire']('suggestionUnloaded',_0x4207db,_0x47de59,_0x2ea1e0));}['_setSuggestionData'](_0x588ed8){const _0x1f20fd=_0x588ed8['id'],_0x3dffab=this['addSuggestionData'](_0x588ed8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x210f60=this['editor']['plugins']['get']('PendingActions'),_0x5d6a28=_0x3dffab['hasComments'],_0xe4f051=_0x3dffab['subType']?_0x3dffab['type']+':'+_0x3dffab['subType']:_0x3dffab['type'],_0x430593=this['editor']['locale'],_0xb42d7a=_0x210f60['add'](o(_0x430593,'PENDING_ACTION_SUGGESTION')),_0x30e10c={'id':_0x1f20fd,'type':_0xe4f051,'hasComments':_0x5d6a28,'data':_0x588ed8['data']||null,'originalSuggestionId':_0x588ed8['originalSuggestionId']||null,'attributes':_0x3dffab['attributes']};this['_adapter']['addSuggestion'](_0x30e10c)['then'](_0x125aa3=>{_0x3dffab['_saved']=!0x0,_0x210f60['remove'](_0xb42d7a),_0x125aa3&&_0x125aa3['createdAt']&&(this['_suggestions']['get'](_0x1f20fd)['createdAt']=_0x125aa3['createdAt']);})['catch'](_0xbfa556=>{throw _0x5d7c6d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3dffab['discard']();}),_0x3dffab['stopListening'](),this['_suggestions']['delete'](_0x3dffab['id']),this['_suggestionState']['delete'](_0x3dffab),_0xbfa556;});}return _0x3dffab;}['_isBlockAttribute'](_0x34482a){return this['_blockAttributeKeys']['has'](_0x34482a);}['_updateSuggestionData'](_0x3ae95d,_0x2d9242){const _0x35166d=this['editor']['plugins']['get']('PendingActions'),_0x49f1b1=this['getSuggestion'](_0x3ae95d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x49f1b1['_saved']){const _0x4eaf65=_0x35166d['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3ae95d,_0x2d9242)['then'](()=>{_0x35166d['remove'](_0x4eaf65);});}else _0x49f1b1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3ae95d,_0x2d9242);});}}['_getSuggestionData'](_0x2fbc33){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x52a4fc('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2fbc33);}['_handleNewSuggestionMarker'](_0x482559){const {id:_0x163806,type:_0x3360f7,subType:_0x3cc210,authorId:_0x5b77bd}=this['_splitMarkerName'](_0x482559),_0x2a9150=this['_suggestions']['get'](_0x163806)||this['_createSuggestion'](_0x3360f7,_0x3cc210,_0x163806,_0x5b77bd,{});switch(this['_checkSuggestionCorrectness'](_0x2a9150,_0x3360f7,_0x3cc210,_0x5b77bd),this['_suggestionState']['get'](_0x2a9150)){case'notReady':this['_getSuggestionData'](_0x163806)['then'](_0x9eadb1=>{let _0x232be2=Promise['resolve']();_0x9eadb1['hasComments']&&(_0x232be2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x163806})),_0x232be2['then'](()=>{this['addSuggestionData'](_0x9eadb1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2a9150,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x163806,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2a9150,'ready'),this['fire']('suggestionLoaded',_0x2a9150);break;case'ready':this['fire']('suggestionChanged',_0x2a9150);}return _0x2a9150['addMarkerName'](_0x482559),_0x2a9150;}['_refreshSuggestionsChain'](_0xd8df8a){const _0x50a02d=Array['from'](_0xd8df8a),_0x5d2c92=_0x50a02d['filter'](_0x8ab7d4=>'attribute'==_0x8ab7d4['type']);this['_refreshAttributeSuggestionsChain'](_0x5d2c92);const _0x21e971=_0x50a02d['filter'](_0x258c83=>!_0x258c83['isMultiRange']&&'attribute'!=_0x258c83['type']),_0x5bf372=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb50cba=>!_0xb50cba['isMultiRange']&&'attribute'!=_0xb50cba['type']),_0x2f8fc1=_0x5bf372['filter'](_0x1f9aea=>!_0xd8df8a['has'](_0x1f9aea)),_0x282306=new Map(_0x5bf372['map'](_0x266183=>[_0x266183,this['_suggestionFactory']['getSuggestionCallback'](_0x266183['type'],_0x266183['subType'],'chain')])),_0x2695ee=new Map(_0x5bf372['map'](_0x9a0e2c=>[_0x9a0e2c,_0x9a0e2c['getFirstRange']()])),_0xb30562=new Set(),_0x54460f=new Set();for(let _0x2fcda8=0x0;_0x2fcda8<_0x21e971['length'];_0x2fcda8++)_0x5d34dd(_0x21e971[_0x2fcda8],_0x21e971,_0x2fcda8+0x1);for(let _0x113707=0x0;_0x113707<_0x21e971['length'];_0x113707++)_0x5d34dd(_0x21e971[_0x113707],_0x2f8fc1,0x0);const _0x41b1a2=new Set();for(let _0x2e3f86=0x0;_0x2e3f86<_0x21e971['length'];_0x2e3f86++){const _0x17a9b5=_0x21e971[_0x2e3f86];!_0x54460f['has'](_0x17a9b5)&&_0x17a9b5['previous']&&(_0x41b1a2['add'](_0x17a9b5['previous']),_0x17a9b5['previous']['next']===_0x17a9b5&&(_0x17a9b5['previous']['next']=null),_0x17a9b5['previous']=null),!_0xb30562['has'](_0x17a9b5)&&_0x17a9b5['next']&&(_0x41b1a2['add'](_0x17a9b5['next']),_0x17a9b5['next']['previous']===_0x17a9b5&&(_0x17a9b5['next']['previous']=null),_0x17a9b5['next']=null);}function _0x5d34dd(_0x1a1fa1,_0x4a85e7,_0x41f45c){for(let _0x203d29=_0x41f45c;_0x203d29<_0x4a85e7['length'];_0x203d29++){const _0x117d01=_0x577978(_0x1a1fa1,_0x4a85e7[_0x203d29]);_0x117d01&&(_0x117d01[0x0]['next']=_0x117d01[0x1],_0x117d01[0x1]['previous']=_0x117d01[0x0],_0xb30562['add'](_0x117d01[0x0]),_0x54460f['add'](_0x117d01[0x1]));}}function _0x577978(_0x300f55,_0x2b84fe){if(_0x300f55['author']['id']!==_0x2b84fe['author']['id'])return null;const _0x3c87de=_0x282306['get'](_0x300f55)(_0x300f55,_0x2b84fe,_0x2695ee['get'](_0x300f55),_0x2695ee['get'](_0x2b84fe));if(!_0x3c87de)return null;return _0x282306['get'](_0x2b84fe)(_0x300f55,_0x2b84fe,_0x2695ee['get'](_0x300f55),_0x2695ee['get'](_0x2b84fe))?_0x3c87de[0x1]['commentThread']&&_0x3c87de[0x1]['commentThread']['length']?null:_0x3c87de:null;}_0x41b1a2['size']&&this['_refreshSuggestionsChain'](_0x41b1a2);}['_refreshAttributeSuggestionsChain'](_0x45f036){if(0x0==_0x45f036['length'])return;const _0x52eaad=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4145a6=>'attribute'==_0x4145a6['type']&&_0x4145a6['_isDataLoaded']),_0x52d11f=[],_0x1042a5=new Map();for(const _0x4beea7 of _0x52eaad){const _0x16b8a6=_0xb47d45(_0x4beea7['attributes']);_0x1042a5['has'](_0x16b8a6)||(_0x1042a5['set'](_0x16b8a6,_0x52d11f['length']),_0x52d11f['push']([]));const _0x8b6b38=_0x1042a5['get'](_0x16b8a6);_0x52d11f[_0x8b6b38]['push'](_0x4beea7);}!(function(){_0x52d11f['sort']((_0x526a39,_0x3d3b8b)=>{const _0x299a13=_0x526a39[0x0]['createdAt'],_0x7f0a33=_0x3d3b8b[0x0]['createdAt'];return _0x299a13==_0x7f0a33?_0x526a39[0x0]['attributes']['groupId']<_0x3d3b8b[0x0]['attributes']['groupId']?-0x1:0x1:_0x299a13<_0x7f0a33?-0x1:0x1;});for(const _0x8b0b4e of _0x52d11f)_0x8b0b4e['sort']((_0x513956,_0x376cf8)=>_0x513956['id']<_0x376cf8['id']?-0x1:0x1);}());for(let _0x356ae8=0x0;_0x356ae8<_0x52d11f['length'];_0x356ae8++){if(0x0==_0x52d11f[_0x356ae8]['length'])continue;const _0x1d0a8e=[];for(let _0x496c63=_0x356ae8+0x1;_0x496c63<_0x52d11f['length'];_0x496c63++)0x0!=_0x52d11f[_0x496c63]['length']&&_0x594caa(_0x52d11f[_0x356ae8],_0x52d11f[_0x496c63])&&_0x1d0a8e['push'](_0x496c63);for(const _0xe0eb62 of _0x1d0a8e)_0x52d11f[_0x356ae8]=_0x52d11f[_0x356ae8]['concat'](_0x52d11f[_0xe0eb62]),_0x52d11f[_0xe0eb62]=[];}for(const _0x2a7043 of _0x52d11f)for(let _0x8b26e7=0x0;_0x8b26e7<_0x2a7043['length'];_0x8b26e7++){const _0x4844c2=_0x2a7043[_0x8b26e7+0x1]||null;_0x2a7043[_0x8b26e7]['next']!==_0x4844c2&&(_0x2a7043[_0x8b26e7]['next']=_0x4844c2);}for(const _0x482309 of _0x52d11f)for(let _0xaf27ff=0x0;_0xaf27ff<_0x482309['length'];_0xaf27ff++){const _0x329fc0=_0x482309[_0xaf27ff-0x1]||null;_0x482309[_0xaf27ff]['previous']!==_0x329fc0&&(_0x482309[_0xaf27ff]['previous']=_0x329fc0);}function _0x594caa(_0x46ec1a,_0x4f0396){if(_0x46ec1a[0x0]['attributes']['groupId']!==_0x4f0396[0x0]['attributes']['groupId']&&_0x46ec1a[0x0]['author']!==_0x4f0396[0x0]['author'])return!0x1;if(!function(_0x3ca4d9,_0x20149c){if(!_0x3ca4d9['hasComments']&&!_0x20149c['hasComments'])return!0x0;if(_0x3ca4d9['hasComments']&&_0x20149c['hasComments'])return!0x1;if(_0x3ca4d9['hasComments']&&_0x20149c['createdAt']<_0x3ca4d9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x20149c['hasComments']&&_0x3ca4d9['createdAt']<_0x20149c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x46ec1a[0x0],_0x4f0396[0x0]))return!0x1;const _0x3113f3=xt(_0x46ec1a[0x0]['attributes'],'groupId'),_0x4000f5=xt(_0x4f0396[0x0]['attributes'],'groupId');if(!_0x3c15de(_0x3113f3,_0x4000f5))return!0x1;return!!_0x46ec1a['every'](_0x3b829e=>_0x4f0396['some'](_0x4016f4=>_0x3b829e['getFirstRange']()['isEqual'](_0x4016f4['getFirstRange']())))&&_0x4f0396['every'](_0x24fb2f=>_0x46ec1a['some'](_0x30593d=>_0x24fb2f['getFirstRange']()['isEqual'](_0x30593d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ebf5f){const _0x5db647=Array['from'](_0x4ebf5f),_0x41acfc=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe2eb13=_0x41acfc['filter'](_0x9f364c=>!_0x4ebf5f['has'](_0x9f364c)),_0x52cb5d=new Map(_0x5db647['map'](_0x3f39eb=>[_0x3f39eb,this['_suggestionFactory']['getSuggestionCallback'](_0x3f39eb['type'],_0x3f39eb['subType'],'join')])),_0x378bc7=new Map(_0x41acfc['map'](_0x28626a=>[_0x28626a,_0x28626a['getRanges']()]));for(let _0xbbb6d8=0x0;_0xbbb6d8<_0x5db647['length'];_0xbbb6d8++){if(_0x18808b(this,_0x5db647[_0xbbb6d8],_0x5db647,_0xbbb6d8+0x1))return!0x0;}for(let _0xae6b8e=0x0;_0xae6b8e<_0x5db647['length'];_0xae6b8e++){if(_0x18808b(this,_0x5db647[_0xae6b8e],_0xe2eb13,0x0))return!0x0;}return!0x1;function _0x18808b(_0x3c0995,_0x494e97,_0x6505b0,_0x45ae51){for(let _0x43f7a9=_0x45ae51;_0x43f7a9<_0x6505b0['length'];_0x43f7a9++){const _0x3227ba=_0x6505b0[_0x43f7a9];if(_0x3227ba['type']!==_0x494e97['type']||_0x3227ba['author']['id']!==_0x494e97['author']['id']||_0x3227ba['subType']!==_0x494e97['subType'])continue;if(!qt(_0x494e97,_0x3227ba))continue;if('attribute'==_0x494e97['type']&&_0x494e97['data']['oldValue']!=_0x3227ba['data']['oldValue'])continue;if('attribute'==_0x494e97['type']&&_0x3c0995['_isBlockAttribute'](_0x494e97['data']['key']))continue;if('formatBlock'==_0x494e97['type']){const _0x84c1f1=_0x3c0995['editor']['model'],_0x5b1b87=_0x494e97['getContainedElement']();if(_0x5b1b87&&(_0x84c1f1['schema']['isObject'](_0x5b1b87)||_0x84c1f1['schema']['isLimit'](_0x5b1b87)))continue;}const _0x15d928=_0x52cb5d['get'](_0x494e97),_0x6ef9b7=_0x378bc7['get'](_0x494e97),_0x308877=_0x378bc7['get'](_0x3227ba),_0x53a87a=_0x494e97['commentThread']&&_0x494e97['commentThread']['length'],_0x100cfd=_0x3227ba['commentThread']&&_0x3227ba['commentThread']['length'];if(!_0x53a87a&&_0x15d928(_0x308877,_0x6ef9b7))return _0x3c0995['_joinSuggestions'](_0x3227ba,_0x494e97),_0x378bc7['delete'](_0x494e97),!0x0;if(!_0x100cfd&&_0x15d928(_0x6ef9b7,_0x308877))return _0x3c0995['_joinSuggestions'](_0x494e97,_0x3227ba),_0x378bc7['delete'](_0x3227ba),!0x0;}return!0x1;}}['_joinSuggestions'](_0xc1af2a,_0x4d22eb){if(_0xc1af2a['isMultiRange']){for(const _0x29d3bb of _0x4d22eb['getRanges']())_0xc1af2a['addRange'](_0x29d3bb);}else{const _0xc7a4a9=_0x4d22eb['getFirstRange']()['end'];this['_setSuggestionRange'](_0xc1af2a,this['_model']['createRange'](_0xc1af2a['getFirstRange']()['start'],_0xc7a4a9));}_0x4d22eb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1050c6,_0x5d9e10,_0x427d7b){const _0x3c9061=_0x1050c6['startsWith']('format')||_0x1050c6['startsWith']('attribute')?'FORMATTING':_0x1050c6['toUpperCase']();return o(this['editor']['locale'],_0x5d9e10+'_'+_0x3c9061+'_SUGGESTION_ANNOUNCEMENT',_0x427d7b);}['_initAriaMarkerChangeAnnouncements'](){const _0x5e1d67=this['editor'];if(!_0x5e1d67['ui'])return;const {ariaLiveAnnouncer:_0x5281cf}=_0x5e1d67['ui'];_0x28ba8a(this['_model'],({left:_0x4cd2f4,entered:_0x4a0f3f})=>{for(const _0x2aa645 of _0x4cd2f4){const {group:_0x5202c3,type:_0x42616a}=this['_splitMarkerName'](_0x2aa645['name']);if('suggestion'===_0x5202c3){_0x5281cf['announce'](this['_getMarkerAnnouncementText'](_0x42616a,'LEAVE'));break;}}for(const _0x3f281b of _0x4a0f3f){const {group:_0x1d5ae6,type:_0x5d395b}=this['_splitMarkerName'](_0x3f281b['name']);if('suggestion'===_0x1d5ae6){_0x5281cf['announce'](this['_getMarkerAnnouncementText'](_0x5d395b,'ENTER',_0x46b819(_0x9048c5)));break;}}});}['_processAttributeChanges'](_0x59b268){if(this['_recordAttributeSuggestions'])return!0x1;const _0x15a791=this['editor'],_0x47230f=_0x15a791['model']['document']['differ']['getChanges']();if(0x0==_0x47230f['length'])return!0x1;const _0x3e8fec=[],_0x3005f2=_0x47230f['filter'](_0x1bf32f=>'attribute'==_0x1bf32f['type']),_0x29f808=_0x47230f['filter'](_0x508597=>'insert'==_0x508597['type']&&'$text'!=_0x508597['name']),_0x5db5c0=_0x47230f['filter'](_0x26fad8=>'remove'==_0x26fad8['type']&&'$text'!=_0x26fad8['name']);for(const _0x15aaea of _0x3005f2)_0x3e8fec['push']({'key':_0x15aaea['attributeKey'],'newValue':_0x15aaea['attributeNewValue'],'oldValue':_0x15aaea['attributeOldValue'],'range':Lt(_0x15aaea['range'],_0x15a791['model'])});for(const _0x1bac87 of _0x29f808){const _0x5574e2=_0x5db5c0['find'](_0x2ab67d=>_0x2ab67d['position']['isEqual'](_0x1bac87['position']));_0x5574e2&&_0x3e8fec['push']({'key':m,'newValue':_0x1bac87['name'],'oldValue':_0x5574e2['name'],'range':_0x15a791['model']['createRangeOn'](_0x1bac87['position']['nodeAfter'])});}return 0x0!=_0x3e8fec['length']&&this['_reduceExistingSuggestions'](_0x59b268,_0x3e8fec);}['_processAttributeSuggestions'](_0x168b2f){let _0x536beb=!0x1;const _0x59cc18=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ce817=>_0x2ce817['data']['newRange']&&_0x2ce817['name']['startsWith']('suggestion:attribute:'));for(const _0x5cdae5 of _0x59cc18){const {subType:_0xed3e9,id:_0x13a641}=this['_splitMarkerName'](_0x5cdae5['name']),_0x20ac9b=_0xed3e9['split']('|')[0x0];for(const _0x360dda of this['getSuggestions']({'skipNotAttached':!0x0}))_0x360dda['id']!=_0x13a641&&'attribute'==_0x360dda['type']&&_0x360dda['data']&&_0x360dda['data']['key']==_0x20ac9b&&_0x360dda['getFirstRange']()['isIntersecting'](_0x5cdae5['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x360dda,_0x5cdae5['data']['newRange'],_0x168b2f),_0x536beb=!0x0);}return _0x536beb;}['_recordAttributeChanges'](_0xa4fda0){this['_recordAttributeSuggestions']=!0x0,_0xa4fda0();}['_isRegisteredAttribute'](_0x3f4175){const _0x311dc0=this['_isBlockAttribute'](_0x3f4175),_0x7981be=this['_inlineAttributeKeys']['has'](_0x3f4175);return _0x311dc0||_0x7981be;}['_reduceExistingSuggestions'](_0x47bae6,_0x16897e){if(0x0==_0x16897e['length'])return!0x1;let _0xb53c7c=!0x1;for(const _0xfb7e72 of _0x16897e){const _0x143f94=this['_findSuggestions'](_0xfb7e72['range'],'attribute')['filter'](_0x5bb06e=>!_0x5bb06e['meta']['isNextTo'])['map'](_0x4634b7=>_0x4634b7['suggestion']),_0x3d626e=_0xb47d45({'newValue':_0xfb7e72['newValue']});_0x143f94['filter'](_0x5bf9cf=>{const [_0x37e4b2,_0x119a02]=_0x5bf9cf['subType']['split']('|');return _0x37e4b2==_0xfb7e72['key']&&_0x119a02!=_0x3d626e;})['forEach'](_0x354b62=>{this['_reduceSuggestionAttributeRange'](_0x354b62,_0xfb7e72['range'],_0x47bae6),_0xb53c7c=!0x0;});}return _0xb53c7c;}['_reduceSuggestionAttributeRange'](_0x170acc,_0x1e2c0a,_0x16c1ed){const _0x2c41ae=_0x170acc['getFirstRange']()['getDifference'](_0x1e2c0a);0x0!==_0x2c41ae['length']?0x1!==_0x2c41ae['length']?this['_breakSuggestionMarker'](_0x170acc,_0x1e2c0a['start'],_0x1e2c0a['end']):this['_setSuggestionRange'](_0x170acc,_0x2c41ae[0x0]):_0x16c1ed['removeMarker'](_0x170acc['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3475de){this['_editor']=_0x3475de,this['_model']=_0x3475de['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x23e38f,_0xc2046,_0x17a0d8,_0x23622d,_0x5871c4,_0x36f5fa){return new u(this['_model'],{'type':_0x23e38f,'subType':_0xc2046,'id':_0x17a0d8,'author':_0x23622d,'creator':_0x23622d,'attributes':_0x5871c4,'onAttributesChange':_0x36f5fa,'onAccept':(..._0x11982a)=>this['getSuggestionCallback'](_0x23e38f,_0xc2046,'accept')(..._0x11982a),'onDiscard':(..._0x20f4b9)=>this['getSuggestionCallback'](_0x23e38f,_0xc2046,'discard')(..._0x20f4b9)});}['registerCustomCallback'](_0x520609,_0x4e0fd1,_0x41c39c,_0x2548b1){const _0x57fd11=_0x520609+':'+_0x4e0fd1+':'+_0x41c39c;this['_customCallbacks']['set'](_0x57fd11,_0x2548b1);}['getSuggestionCallback'](_0x4143a1,_0x26fc0,_0x5ed1c5){const _0x23fdbd=_0x4143a1+':'+_0x26fc0+':'+_0x5ed1c5;return this['_customCallbacks']['get'](_0x23fdbd)||this['_defaultCallbacks']['get'](_0x4143a1+':'+_0x5ed1c5);}['_registerDefaultCallbacks'](){const _0x46bf4d=()=>!0x1,_0x451b58=_0x304ce5=>{_0x304ce5['sort']((_0x40926c,_0x4f6a2a)=>_0x40926c['start']['isBefore'](_0x4f6a2a['start'])?0x1:-0x1),this['_model']['change'](_0x395502=>{for(const _0xa2e2c8 of _0x304ce5){let _0x304590;_0x304590=_0xa2e2c8['end']['isAtEnd']&&_0xa2e2c8['end']['parent']==_0xa2e2c8['start']['nodeAfter']?_0x395502['createSelection'](_0xa2e2c8['start']['nodeAfter'],'on'):_0x395502['createSelection'](_0xa2e2c8),this['_model']['deleteContent'](_0x304590,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c2a0d=(_0x3f4504,_0x119e87)=>{_0x119e87&&this['_model']['change'](_0x18f3d0=>{const {commandName:_0x58baa2,commandParams:_0x32a8b9=[]}=_0x119e87,_0x2bc839=_0x3f4504['map'](_0x561fec=>(Vt(_0x561fec)&&(_0x561fec=this['_model']['createRange'](_0x561fec['end'])),_0x561fec))['filter'](_0x312a8f=>'$graveyard'!==_0x312a8f['root']['rootName']);if(_0x2bc839['length']<0x1)return;const _0x5e0866=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x53d795=>_0x1b403d['fromRange'](_0x53d795));_0x18f3d0['setSelection'](_0x2bc839);for(const _0x5cf036 of this['_editor']['commands']['commands']())_0x5cf036['refresh']();_0x32a8b9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x58baa2,..._0x32a8b9);const _0x26d795=_0x5e0866['filter'](_0x2c5e91=>'$graveyard'!=_0x2c5e91['root']['rootName']);_0x26d795['length']>0x0&&_0x18f3d0['setSelection'](_0x26d795);for(const _0x572104 of _0x5e0866)_0x572104['detach']();});},_0x32d25a=(_0x4a88fb,_0x114f7e)=>0x1==_0x4a88fb['length']&&0x1==_0x114f7e['length']&&_0x4a88fb[0x0]['end']['isEqual'](_0x114f7e[0x0]['start']),_0x2201b3=(_0x223c86,_0x4e0738,_0x2c6daa,_0x170b73)=>Ht(_0x223c86,_0x4e0738,_0x2c6daa,_0x170b73)?[_0x223c86,_0x4e0738]:Ht(_0x4e0738,_0x223c86,_0x170b73,_0x2c6daa)?[_0x4e0738,_0x223c86]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x46bf4d),this['_defaultCallbacks']['set']('insertion:discard',_0x451b58),this['_defaultCallbacks']['set']('insertion:join',_0x32d25a),this['_defaultCallbacks']['set']('insertion:chain',_0x2201b3),this['_defaultCallbacks']['set']('deletion:accept',_0x451b58),this['_defaultCallbacks']['set']('deletion:discard',_0x46bf4d),this['_defaultCallbacks']['set']('deletion:join',_0x32d25a),this['_defaultCallbacks']['set']('deletion:chain',_0x2201b3),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c2a0d),this['_defaultCallbacks']['set']('formatInline:discard',_0x46bf4d),this['_defaultCallbacks']['set']('formatInline:join',_0x32d25a),this['_defaultCallbacks']['set']('formatInline:chain',_0x46bf4d),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c2a0d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x46bf4d),this['_defaultCallbacks']['set']('formatBlock:join',_0x32d25a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x46bf4d),this['_defaultCallbacks']['set']('attribute:accept',_0x46bf4d),this['_defaultCallbacks']['set']('attribute:discard',(_0x429ede,_0x5bb6f8)=>{if(!_0x5bb6f8)return;const _0x3f113f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3d6cf3=>{if(_0x5bb6f8['key']==m)for(const _0x132964 of _0x429ede){const _0x2f1067=_0x132964['start']['nodeAfter'],_0x962b21=_0x5bb6f8['oldValue'];_0x3d6cf3['rename'](_0x2f1067,_0x962b21);}else{if(_0x3f113f['_isBlockAttribute'](_0x5bb6f8['key'])){for(const _0x51bfd5 of _0x429ede)void 0x0!==_0x5bb6f8['oldValue']?_0x3d6cf3['setAttribute'](_0x5bb6f8['key'],_0x5bb6f8['oldValue'],_0x51bfd5['start']['nodeAfter']):_0x3d6cf3['removeAttribute'](_0x5bb6f8['key'],_0x51bfd5['start']['nodeAfter']);}else{for(const _0x122d6f of _0x429ede)_0x5bb6f8['oldValue']?_0x3d6cf3['setAttribute'](_0x5bb6f8['key'],_0x5bb6f8['oldValue'],_0x122d6f):_0x3d6cf3['removeAttribute'](_0x5bb6f8['key'],_0x122d6f);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x32d25a);}}function Ut(_0x4a85cf,_0x408de6,_0x195ad2){for(const _0x4ed582 of _0x408de6['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4ed582['root']==_0x4ed582)return!0x1;if(!_0x195ad2['containsItem'](_0x4ed582))return!0x1;if(_0x4a85cf['isObject'](_0x4ed582)||_0x4a85cf['isLimit'](_0x4ed582))return!0x0;}return!0x1;}function Vt(_0x463a63){return _0x463a63['end']['parent']==_0x463a63['start']['nodeAfter']&&_0x463a63['end']['isAtStart'];}function Pt(_0x395b9d,_0x215d29,_0x7d30cf,_0x399522){const _0x37d4b1=_0x5c257f=>!_0x5c257f['item']['is']('$textProxy')&&!_0x399522['isObject'](_0x5c257f['item']),_0x48e101=_0x395b9d['start']['getLastMatchingPosition'](_0x37d4b1),_0x5908fa=_0x395b9d['end']['getLastMatchingPosition'](_0x37d4b1,{'direction':'backward'});return(!_0x395b9d['start']['isEqual'](_0x48e101)||!_0x395b9d['end']['isEqual'](_0x5908fa))&&(_0x48e101['isBefore'](_0x5908fa)?_0x7d30cf['updateMarker'](_0x215d29,{'range':_0x7d30cf['createRange'](_0x48e101,_0x5908fa)}):_0x7d30cf['removeMarker'](_0x215d29),!0x0);}function Gt(_0x372eb8){return _0xb47d45(_0x372eb8);}function Ft(_0xfc1c9c){const _0x284875=_0xfc1c9c['start']['nodeAfter'];return _0x284875&&_0x284875['is']('element');}function Lt(_0x167713,_0x34a013){return null==_0x167713['end']['nodeBefore']&&_0x167713['end']['parent']==_0x167713['start']['nodeAfter']?Jt(_0x167713['start']['nodeAfter'],_0x34a013):_0x167713;}function Jt(_0x46de66,_0x305cd7){const _0x2737d9=_0x305cd7['schema']['isObject'](_0x46de66)||_0x305cd7['schema']['isSelectable'](_0x46de66);return _0x305cd7['createRange'](_0x305cd7['createPositionAt'](_0x46de66,'before'),_0x2737d9?_0x305cd7['createPositionAfter'](_0x46de66):_0x305cd7['createPositionAt'](_0x46de66,'end'));}function Ht(_0x241639,_0x87f877,_0x50a0c6,_0x13b08f){return!!qt(_0x241639,_0x87f877)&&_0x50a0c6['end']['isEqual'](_0x13b08f['start']);}function qt(_0x28567e,_0x343169){if(!_0x28567e['_isDataLoaded']||!_0x343169['_isDataLoaded'])return!0x1;const _0x1d4f2d=new Set(Object['keys'](_0x28567e['attributes'])),_0x425ff9=new Set(Object['keys'](_0x343169['attributes']));if(_0x1d4f2d['delete']('groupId'),_0x425ff9['delete']('groupId'),0x0==_0x1d4f2d['size']&&0x0==_0x425ff9['size'])return!0x0;if(_0x1d4f2d['size']!=_0x425ff9['size'])return!0x1;const _0x1cfe79={..._0x28567e['attributes']},_0x5b2b68={..._0x343169['attributes']};return delete _0x1cfe79['groupId'],delete _0x5b2b68['groupId'],JSON['stringify'](_0x1cfe79)==JSON['stringify'](_0x5b2b68);}function zt(_0x756b6c,_0x59bc6c){const _0x48116d=Kt(_0x756b6c['attributes']),_0x3dfcc4=Kt(_0x59bc6c);if(!_0x756b6c['_isDataLoaded'])return!0x1;for(const _0x2664fe of Object['keys'](_0x3dfcc4))if(!_0x3c15de(_0x48116d[_0x2664fe],_0x3dfcc4[_0x2664fe]))return!0x1;return!0x0;}function Kt(_0x1fa603){const _0x105c33=Object['assign']({},_0x1fa603);return delete _0x105c33['skipNestingCheck'],delete _0x105c33['tablePasteChainId'],_0x105c33;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x3ff09c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x49c9c8,_0x1fd548,_0x4025a2,_0x438ebc){super(),this['model']=_0x1fd548,this['view']=_0x4025a2,this['commentThreadController']=_0x438ebc,this['_editor']=_0x49c9c8,this['_acceptCommand']=_0x49c9c8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x49c9c8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x38eb60,_0x18e11c)=>_0x38eb60||_0x18e11c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5685f8=>_0x5685f8&&this['_editor']['model']['canEditAt'](_0x1fd548['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x37a9d6=>_0x37a9d6&&this['_editor']['model']['canEditAt'](_0x1fd548['getRanges']())),this['_pendingAction']=null,_0x4025a2['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4025a2,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4025a2,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4025a2,'change:isDirty',()=>{_0x4025a2['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 _0x1a4db3=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1a4db3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x548c58{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2141b7,_0x3cf68c,_0xfd2ec1,_0x29e447){super(_0x2141b7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x528707(_0x2141b7,o(_0x2141b7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3cf68c['authoredAt']),this['bind']('authoredAt')['to'](_0x3cf68c),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',_0x3cf68c,'authoredAt',this,'descriptionParts',(_0x2da9a1,_0x42f167,_0x2c2f65)=>{const _0x81bd10=_0x2c2f65['map'](_0x7cfe2b=>ns(_0x7cfe2b['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2da9a1-0x1,_0x3cf68c['author']['name'],_0x42f167?_0x29e447['formatDateTime'](_0x42f167):'',new DOMParser()['parseFromString'](_0x81bd10,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5b25a4(),this['focusTracker']=new _0x501bc8(),this['keystrokes']=new _0x3b68cd(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2bf45e=>_0x2bf45e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3cf68c,this['_localUser']=_0xfd2ec1,this['_config']=_0x29e447,_0x29e447['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x4550bf(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1a3178}=this['_config'];this['commentsListView']=new _0x1a3178(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',_0x52462d=>_0x52462d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x184666,_0x5aef6a)=>_0x184666||!!_0x5aef6a);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2a4eca}=this['_config'],_0x23d88f=new _0x2a4eca(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4b0a55=_0x23d88f['commentInputView'];return _0x23d88f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4b0a55,'value',(_0x2eae95,_0x54085c,_0x35b257)=>!!_0x35b257||_0x2eae95&&!_0x54085c),_0x4b0a55['on']('submit',(_0x4eb0cf,_0x2f8894)=>{this['fire']('addComment',_0x2f8894),_0x4b0a55['editor']['setData']('');}),_0x4b0a55['on']('cancel',()=>this['focus']()),_0x4b0a55['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x23d88f;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x27be4e,_0x6d7a5e,_0x3e0a3a,_0x5ce2ba){super(_0x27be4e,_0x6d7a5e,_0x3e0a3a,_0x5ce2ba),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x18e786=>_0x18e786&&_0x18e786[0x0]?_0x18e786[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3964bc,_0x79c25d)=>{let _0x2a83b3='';for(const _0x3523db of _0x3964bc)_0x2a83b3+='<p>'+ns(_0x3523db['content'],_0x3523db['color'])+'</p>';return _0x79c25d?_0x2a83b3:ti(_0x2a83b3,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5ce2ba['SuggestionView'](_0x27be4e,_0x6d7a5e,{'formatDateTime':_0x5ce2ba['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 _0x161072=this['bindTemplate'],_0x158ddb=[this['suggestionView']];return this['commentsListView']&&_0x158ddb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x158ddb['push'](this['commentThreadInputView']),_0x158ddb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x161072['if']('isActive','ck-suggestion-wrapper--active'),_0x161072['to']('type',_0x288c1d=>'ck-suggestion-'+_0x288c1d),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':_0x161072['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x158ddb};}['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 ue extends _0x548c58{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1f4da1,_0xe16fa3,_0x4a9c8e){super(_0x1f4da1),this['_model']=_0xe16fa3,this['_config']=_0x4a9c8e,this['set']('description',''),this['bind']('authoredAt')['to'](_0xe16fa3),this['acceptButton']=this['_createButton'](o(_0x1f4da1,'Accept\x20suggestion'),_0x5159a3['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1f4da1,'Discard\x20suggestion'),_0x5159a3['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x295bce(_0x1f4da1,_0xe16fa3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5b25a4([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x501bc8(),this['keystrokes']=new _0x3b68cd(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5edc06=>_0x5edc06['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x25f066=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x25f066['innerHTML']=this['description'],this['on']('change:description',(_0x423ee9,_0x1b2e9f,_0x4b9c73)=>{_0x25f066['innerHTML']=_0x4b9c73;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x411d66=this['bindTemplate'],_0xb2e186=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x411d66['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x411d66['to']('authoredAt',_0x41bcde=>this['_config']['formatDateTime'](_0x41bcde))}]}]},{'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']&&_0xb2e186['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':_0xb2e186}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x15e608,_0x27a21b,_0xc00aa0,_0x497d3f,_0x4960d6){const _0x10b90e=new _0x152770(this['locale']);return _0x10b90e['set']({'label':_0x15e608,'icon':_0x27a21b,'tooltip':!0x0,'tooltipPosition':_0x4960d6}),_0x10b90e['extendTemplate']({'attributes':{'class':_0xc00aa0}}),_0x10b90e['on']('execute',()=>{this['fire'](_0x497d3f,this['_model']['id']);}),_0x10b90e;}['_setupKeyboardNavigation'](){const _0xc341a7=this['element'];this['keystrokes']['listenTo'](_0xc341a7);for(const _0x5d7561 of this['focusables'])this['focusTracker']['add'](_0x5d7561['element']),this['keystrokes']['listenTo'](_0x5d7561['element']);this['keystrokes']['set']('enter',(_0x378069,_0xd29d24)=>{_0xc341a7===_0x378069['target']&&(this['focusCycler']['focusFirst'](),_0xd29d24());}),this['keystrokes']['set']('esc',(_0x265861,_0x17b7d7)=>{_0xc341a7!==_0x265861['target']&&(this['focus'](),_0x17b7d7());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x2c2070{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4b651f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x38e68e){super(_0x38e68e),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x901915=this['editor']['config'];_0x901915['define']('trackChanges.SuggestionThreadView',de),_0x901915['define']('trackChanges.SuggestionView',ue),_0x901915['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x901915['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5ba9ab,_0x1acbb8){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5bf420,_0x14784b]of this['_handleControllerBuffer']){const _0x3f0ece=this['_suggestionToController']['has'](_0x5bf420);_0x3f0ece||_0x14784b?_0x3f0ece&&_0x14784b&&this['_destroyController'](_0x5bf420):this['_initializeController'](_0x5bf420);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5ba9ab,_0x1acbb8);}['init'](){const _0xbdfc7d=this['editor'],_0x474866=_0xbdfc7d['plugins']['get']('TrackChangesEditing'),_0x3140b2=_0xbdfc7d['plugins']['get']('Annotations'),_0x493f8c=_0xbdfc7d['plugins']['get']('EditorAnnotations'),_0x3f753a=_0xbdfc7d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x493f8c['addSourceCollector'](()=>{const _0x442cdf=[];for(const [_0x3666c8,_0x50e3c6]of Array['from'](this['_suggestionToController'])){const _0x5292ed=_0x3666c8['getAllAdjacentSuggestions'](),_0x517dfa=[];for(const _0x5dcf0f of _0x5292ed){if(!_0x5dcf0f['isInContent'])continue;if(_0x5dcf0f['isMultiRange']){_0x517dfa['push'](..._0x5dcf0f['getRanges']());continue;}const _0x2193f4=_0x5dcf0f['getFirstRange']();if(_0x517dfa['length']>0x0){const _0x10615c=_0x517dfa[0x0]['getJoined'](_0x2193f4);if(_0x10615c){_0x517dfa[0x0]=_0x10615c;continue;}}_0x517dfa['push'](_0x2193f4);}_0x442cdf['push']([_0x50e3c6['view'],_0x517dfa]);}return _0x442cdf;}),this['listenTo'](_0x474866,'suggestionLoaded',(_0x1b68d4,_0x327898)=>{this['listenTo'](_0x327898,'change:previous',(_0x458909,_0x1ae52b,_0x83c199,_0x178c1d)=>{_0x327898['isInContent']&&(null==_0x83c199?(this['_updateController'](_0x178c1d['head']),this['_handleSuggestionControllerDelayed'](_0x327898,!0x1)):(this['_updateController'](_0x83c199['head']),null==_0x178c1d&&this['_handleSuggestionControllerDelayed'](_0x327898,!0x0)));}),null!==_0x327898['previous']?this['_updateController'](_0x327898['head']):this['_handleSuggestionControllerDelayed'](_0x327898,!0x1);}),this['listenTo'](_0x474866,'suggestionUnloaded',(_0x46775b,_0x56e21d,_0x58d0ec)=>{this['stopListening'](_0x56e21d,'change:previous'),this['_handleControllerBuffer']['delete'](_0x56e21d),this['_suggestionToController']['has'](_0x56e21d)&&this['_destroyController'](_0x56e21d),_0x58d0ec&&this['_updateController'](_0x58d0ec['head']);}),this['listenTo'](_0x474866,'suggestionChanged',(_0x314283,_0x17cdf3)=>{this['_updateController'](_0x17cdf3);}),this['listenTo'](_0x3140b2,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3f753a,'addComment',(_0x3e30e7,{threadId:_0x14595f,isFromAdapter:_0x140b21})=>{if(_0x140b21||!_0x474866['hasSuggestion'](_0x14595f))return;const _0x38a616=_0x474866['getSuggestion'](_0x14595f);this['_suggestionToController']['get'](_0x38a616)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x6ed2dc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2386ee;for(const _0x1d07ae in _0x6ed2dc){const _0x4dd49f=_0x1d07ae,_0x429e2a=_0x6ed2dc[_0x4dd49f];if('trackChangesLicenseKeyValid'==_0x429e2a||'trackChangesLicenseKeyInvalid'==_0x429e2a||'trackChangesLicenseKeyExpired'==_0x429e2a||'trackChangesLicenseKeyDomainLimit'==_0x429e2a||'trackChangesLicenseKeyNotAllowed'==_0x429e2a||'trackChangesLicenseKeyEvaluationLimit'==_0x429e2a||'trackChangesLicenseKeyTrialLimit'==_0x429e2a||'trackChangesLicenseKeyDevelopmentLimit'==_0x429e2a||'trackChangesLicenseKeyUsageLimit'==_0x429e2a){delete _0x6ed2dc[_0x4dd49f],_0x2386ee=_0x429e2a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2386ee&&_0x6ed2dc['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2386ee&&_0x6ed2dc['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2386ee&&_0x6ed2dc['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2386ee&&_0x6ed2dc['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2386ee&&_0x6ed2dc['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2386ee&&_0x6ed2dc['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x2386ee&&_0x6ed2dc['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2386ee&&_0x6ed2dc['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x546606=this['editor']['plugins']['get']('Annotations'),_0x3e6206=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7a3681=Array['from'](_0x546606['activeAnnotations'],_0x453b4c=>_0x453b4c['innerView'])['filter'](_0x5ddbc1=>this['_viewToController']['has'](_0x5ddbc1)),_0x2d8ac4=[];for(const _0x4a455 of _0x7a3681){const _0x55ec85=this['_viewToController']['get'](_0x4a455)['model']['getAllAdjacentSuggestions']();_0x2d8ac4['push'](..._0x55ec85['reduce']((_0x423285,_0x2bd475)=>[..._0x423285,..._0x2bd475['getMarkerNames']()],[]));}_0x3e6206['activeMarkers']=_0x2d8ac4;}['_addUIComponentsToFactory'](){const _0x5c0dab=this['editor'],_0x44a6bb=_0x5c0dab['locale'],_0x533051=o(_0x44a6bb,'Track\x20changes'),_0x1cee8e=new _0x22ce39([{'type':'switchbutton','model':new _0x426f16({'withText':!0x0,'isToggleable':!0x0,'label':_0x533051,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x426f16({'withText':!0x0,'label':o(_0x44a6bb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x426f16({'withText':!0x0,'label':o(_0x44a6bb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x426f16({'withText':!0x0,'label':o(_0x44a6bb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x426f16({'withText':!0x0,'label':o(_0x44a6bb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x48280c of _0x1cee8e)if(pe(_0x48280c)){const _0x5f5742=_0x5c0dab['commands']['get'](_0x48280c['model']['commandName']);_0x48280c['model']['bind']('isOn','isEnabled')['to'](_0x5f5742,'value','isEnabled');}_0x5c0dab['ui']['componentFactory']['add']('trackChanges',_0x43638b=>this['_createToolbarButton'](_0x43638b,_0x1cee8e,_0x533051)),_0x5c0dab['ui']['componentFactory']['add']('menuBar:trackChanges',_0x115bfa=>this['_createMenuBarMenu'](_0x115bfa,_0x1cee8e,_0x533051));}['_createToolbarButton'](_0x53e96c,_0x2c142b,_0x155592){const _0xe4d495=_0x43c8ac(_0x53e96c,_0x3d1827),_0x2d923e=this['editor']['commands']['get']('trackChanges');_0xe4d495['buttonView']['set']({'tooltip':_0x155592,'label':_0x155592,'icon':Ce}),_0xe4d495['buttonView']['bind']('isOn')['to'](_0x2d923e,'value'),_0xe4d495['buttonView']['on']('execute',()=>{_0x2d923e['execute'](),this['editor']['editing']['view']['focus']();}),te(_0xe4d495,_0x2c142b,{'role':'menu'});const _0x2176aa=[];for(const _0x2fc021 of _0x2c142b)pe(_0x2fc021)&&_0x2176aa['push'](this['editor']['commands']['get'](_0x2fc021['model']['commandName']));const _0xc40fb6=_0xe4d495['buttonView'];return _0xc40fb6['actionView']['unbind']('isEnabled'),_0xc40fb6['arrowView']['unbind']('isEnabled'),_0xc40fb6['actionView']['bind']('isEnabled')['to'](_0x2d923e,'isEnabled'),_0xc40fb6['arrowView']['bind']('isEnabled')['toMany'](_0x2176aa,'isEnabled',(..._0x42abda)=>_0x42abda['some'](_0xb66719=>_0xb66719)),_0xe4d495['on']('execute',_0x102ae8=>{this['editor']['execute'](_0x102ae8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xe4d495;}['_createMenuBarMenu'](_0x706b6a,_0x58ce3d,_0x1a3e28){const _0x313b25=new _0x4ddf12(_0x706b6a),_0x293809=this['editor']['commands']['get']('trackChanges');_0x313b25['buttonView']['set']({'label':_0x1a3e28,'icon':Ce});const _0x313b43=new _0x36b828(_0x706b6a);for(const _0x7c8c5e of _0x58ce3d){if('separator'==_0x7c8c5e['type']){_0x313b43['items']['add'](new _0x44cfce(_0x706b6a));continue;}const _0x33eda3=new _0x1aa53f(_0x706b6a,_0x313b25),_0x1d0cc1=new _0x27f62c(_0x706b6a),_0x3fe35b=_0x7c8c5e['model'];_0x1d0cc1['bind'](...Object['keys'](_0x3fe35b))['to'](_0x3fe35b),_0x1d0cc1['delegate']('execute')['to'](_0x313b25),_0x1d0cc1['on']('execute',()=>{this['editor']['execute'](_0x3fe35b['commandName']),this['editor']['editing']['view']['focus']();}),_0x33eda3['children']['add'](_0x1d0cc1),_0x313b43['items']['add'](_0x33eda3);}return _0x313b25['bind']('isEnabled')['to'](_0x293809,'isEnabled'),_0x313b25['panelView']['children']['add'](_0x313b43),_0x313b25;}['_initializeController'](_0x49e07d){const _0x27eeb9=this['editor'],_0x3ec9c9=_0x27eeb9['config'],_0x16e1b5=_0x27eeb9['plugins']['get']('Annotations'),_0x332bff=_0x27eeb9['plugins']['get']('CommentsRepository'),_0x53d5d8=_0x27eeb9['plugins']['get']('EditorAnnotations'),_0x3b1d7d=_0x27eeb9['plugins']['get'](_0x4b651f)['me'],_0x2d3625=_0x3ec9c9['get']('trackChanges')['SuggestionThreadView'],_0x58dc5e=_0x3ec9c9['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xb382ab,CommentThreadInputView:_0x18aa13}=_0x27eeb9['plugins']['get']('CommentsUI');let _0x36f12d,_0x3ec82d,_0x341ee7;this['_annotationViews']['has'](_0x49e07d['id'])?(_0x3ec82d=this['_annotationViews']['get'](_0x49e07d['id']),_0x36f12d=_0x3ec82d['mainView']):(_0x36f12d=new _0x2d3625(_0x27eeb9['locale'],_0x49e07d,_0x3b1d7d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3ec9c9['get']('comments.editorConfig'),'licenseKey':_0x3ec9c9['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3ec9c9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3ec9c9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3ec9c9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4bcc09(_0x3ec9c9['get']('locale')),'CommentView':_0x3ec9c9['get']('comments')['CommentView'],'CommentsListView':_0xb382ab,'CommentThreadInputView':_0x18aa13,'SuggestionView':_0x58dc5e}),_0x36f12d['suggestionView']['acceptButton']['on']('execute',()=>{_0x27eeb9['editing']['view']['focus']();}),_0x36f12d['suggestionView']['discardButton']['on']('execute',()=>{_0x27eeb9['editing']['view']['focus']();}),_0x3ec82d=_0x16e1b5['createAnnotationView'](this['editor']['locale'],_0x36f12d),_0x3ec82d['bind']('isDirty')['to'](_0x36f12d,'isDirty'),_0x3ec82d['bind']('length')['to'](_0x36f12d),_0x3ec82d['bind']('type')['to'](_0x36f12d,'type',_0x4497e2=>'suggestion-'+_0x4497e2),_0x36f12d['on']('escape',()=>{_0x341ee7['fire']('escape');}),this['_annotationViews']['set'](_0x49e07d['id'],_0x3ec82d));const _0x5688c4=_0x332bff['createCommentThreadController'](_0x49e07d['commentThread'],_0x36f12d),_0x2a98c4=new ge(_0x27eeb9,_0x49e07d,_0x36f12d,_0x5688c4),_0x2f6f54=_0x49e07d['getAllAdjacentSuggestions']()['filter'](_0x25af83=>_0x25af83['isInContent']);_0x36f12d['descriptionParts']=_0x27eeb9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2f6f54),this['_suggestionToController']['set'](_0x49e07d,_0x2a98c4),this['_viewToController']['set'](_0x36f12d,_0x2a98c4),_0x341ee7=_0x16e1b5['createAnnotation']({'view':_0x3ec82d,'target':()=>{const _0x2eb3e0=[],_0x13d6ae=_0x49e07d['getAllAdjacentSuggestions']()['filter'](_0xe768a1=>_0xe768a1['isInContent']);for(const _0x3e78d6 of _0x13d6ae)_0x2eb3e0['push'](..._0x3e78d6['getMarkers']());return _0x481e03(_0x27eeb9['editing'],_0x2eb3e0);},'type':()=>'suggestion-'+_0x2a98c4['view']['type']}),_0x332bff['_bindAnnotationToEditors'](_0x36f12d,_0x341ee7),_0x16e1b5['add'](_0x341ee7),_0x53d5d8['registerAnnotation'](_0x341ee7);}['_destroyController'](_0x24b3e9){const _0x3c42b9=this['editor']['plugins']['get']('CommentsRepository'),_0x287189=this['editor']['plugins']['get']('Annotations'),_0x142573=this['_suggestionToController']['get'](_0x24b3e9),_0x3c03ec=_0x142573['view'],_0x379a67=_0x287189['getByInnerView'](_0x3c03ec);_0x3c42b9['_unbindEditors'](_0x3c03ec),_0x379a67&&_0x287189['remove'](_0x379a67),this['_suggestionToController']['delete'](_0x24b3e9),this['_viewToController']['delete'](_0x3c03ec),_0x142573['destroy']();}['_updateController'](_0x28fc1a){if(!_0x28fc1a['isInContent']||!this['_suggestionToController']['has'](_0x28fc1a))return;const _0x39e0be=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5755f2=this['_suggestionToController']['get'](_0x28fc1a),_0xd4150b=_0x28fc1a['getAllAdjacentSuggestions']();_0x5755f2['view']['descriptionParts']=_0x39e0be['descriptionFactory']['getDescriptions'](_0xd4150b);}['destroy'](){for(const _0x1a4049 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1a4049);for(const _0x497f73 of this['_annotationViews']['values']())_0x497f73['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x5458b7){return'model'in _0x5458b7;}class k extends _0x2c2070{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1d514b){this['editor']['plugins']['get'](p)['adapter']=_0x1d514b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x36d41c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x36d41c);}['getSuggestions']({skipNotAttached:_0x2c67ef=!0x1,toJSON:_0x4e42ef=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2c67ef,'toJSON':_0x4e42ef});}['getSuggestion'](_0x6a9eb6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x6a9eb6);}}const w=['Pagination'];class T extends _0x2c2070{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1a4bc9=this['editor'];if(_0x1a4bc9['config']['define']('trackChangesData.editorCreator',_0x35d651=>{const _0x4be45b=_0x1a4bc9['model']['document']['getRootNames']()['reduce']((_0x4e16bc,_0x17b9cf)=>(_0x4e16bc[_0x17b9cf]='',_0x4e16bc),{});return _0x1a4bc9['constructor']['create'](_0x4be45b,_0x35d651);}),'function'!=typeof _0x1a4bc9['config']['get']('trackChangesData')['editorCreator'])throw new _0x52a4fc('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5eedbe){return N(this['editor'],!0x0,_0x5eedbe);}['getDataWithDiscardedSuggestions'](_0x491cce){return N(this['editor'],!0x1,_0x491cce);}}class D extends _0x2c2070{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31bdaa){function _0x31e1bb(_0x3f085c){return _0x3f085c['map'](_0x824694=>String['fromCharCode'](_0x824694))['join']('');}super(_0x31bdaa),this['result']='end',_0x31bdaa[_0x31e1bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x31e1bb([0x76,0x69,0x65,0x77])][_0x31e1bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x31e1bb([0x61,0x75,0x74,0x6f]),_0x31bdaa[_0x31e1bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x31e1bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x31e1bb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x31e1bb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x31e1bb([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 v(_0x132a1a){return void 0x0!==_0x132a1a['getRootsAttributes'];}async function N(_0x9783d6,_0x44c570,_0x46cbdb){const _0x45efe3=_0x5b6e29(_0x9783d6,w);_0x45efe3['plugins']['push'](p,D),_0x45efe3['rootsAttributes']=v(_0x9783d6)?_0x9783d6['getRootsAttributes']():void 0x0;const _0x433d07=document['createDocumentFragment'](),_0x34cace=_0x9783d6['config']['get']('trackChangesData')['editorCreator'],_0x22a793=await _0x34cace(_0x45efe3,()=>function(_0x4d8a60){const _0x5003c1=document['createElement']('div');return _0x4d8a60['appendChild'](_0x5003c1),_0x5003c1;}(_0x433d07));!function(_0x4006b2,_0x978b1d){const _0x413572=_0x4006b2['model']['document']['getRootNames']()['reduce']((_0x121d89,_0x2b370b)=>(_0x121d89[_0x2b370b]=_0x4006b2['data']['get']({'rootName':_0x2b370b}),_0x121d89),{}),_0x4fe49f=_0x4006b2['plugins']['get']('Users')['users']['map'](_0x3592f0=>({'id':_0x3592f0['id'],'name':_0x3592f0['name']})),_0x46e5a2=_0x4006b2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5be685=_0x4006b2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2606f8=_0x978b1d['plugins']['get']('Users'),_0x574450=_0x978b1d['plugins']['get']('TrackChangesEditing'),_0x46c223=_0x978b1d['plugins']['get']('CommentsRepository');for(const _0x311a10 of _0x46c223['getCommentThreads']())_0x311a10['remove']();for(const _0x193b83 of _0x4fe49f)_0x2606f8['getUser'](_0x193b83['id'])||_0x2606f8['addUser'](_0x193b83);_0x2606f8['me']||_0x2606f8['useAnonymousUser']();for(const _0x221067 of _0x5be685)_0x46c223['addCommentThread'](_0x221067);for(const _0x2b05f5 of _0x46e5a2)_0x574450['addSuggestionData'](_0x2b05f5);_0x978b1d['data']['set'](_0x413572);}(_0x9783d6,_0x22a793),_0x22a793['execute'](_0x44c570?'acceptAllSuggestions':'discardAllSuggestions');const _0x347fca=v(_0x22a793)?_0x22a793['getFullData'](_0x46cbdb):_0x22a793['data']['get'](_0x46cbdb);return await _0x22a793['destroy'](),_0x347fca;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as Qt,Plugin as _0x2a14ba,PendingActions as _0x4cbe8b,icons as _0x2894bf}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x8a669,ObservableMixin as _0x43b459,uid as _0xbb8093,insertToPriorityArray as _0x3655fc,priorities as _0x58f002,logWarning as _0x889b4f,getEnvKeystrokeText as _0xd54879,FocusTracker as _0x3cbc70,KeystrokeHandler as _0x44a700,Collection as _0x513db7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2c1be0,View as _0xe98125,ViewCollection as _0x3a09a7,FocusCycler as ts,ViewModel as _0x87b780,createDropdown as _0x4d21dc,SplitButtonView as _0x16c18c,addListToDropdown as te,MenuBarMenuView as _0x122e28,MenuBarMenuListView as _0x1cc077,ListSeparatorView as _0x52d647,MenuBarMenuListItemView as _0x40f7f6,MenuBarMenuListItemButtonView as _0x51bd07}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3d0662,hashObject as _0x79c6dd,surroundingMarkersDetector as _0x3f48c9,FOCUS_ANNOTATION_KEYSTROKE as _0x5e9494,AriaDescriptionView as _0x2cc9cf,setupThreadKeyboardNavigation as _0x1796bd,trimHtml as ti,UserView as _0x5252b1,LateFocusButtonView as _0x1e5e8d,getDateTimeFormatter as _0x105446,getAllMarkersDomElementsSorted as _0xd11dce,sanitizeEditorConfig as _0x5aab84}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x56ce25,LiveRange as _0x5580c5,LivePosition as _0x140ac4}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x17e71d,toWidget as _0x55d317}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x815ffd,set as _0xfaff89,isEqual as _0x202e10,unset as _0xcdcbc8,omit as xt}from'lodash-es';import{Delete as _0xbc1bab,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x529e64,ShiftEnter as _0x17537e}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x3eeca1,_0x4f5cc1){super(_0x3eeca1),this['_enabledCommands']=_0x4f5cc1,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 _0x2c3f46 of this['editor']['commands']['commands']())_0x2c3f46['affectsData']&&!this['_enabledCommands']['has'](_0x2c3f46)&&_0x2c3f46['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xab0a7b of this['editor']['commands']['commands']())_0xab0a7b['affectsData']&&!this['_enabledCommands']['has'](_0xab0a7b)&&_0xab0a7b['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x2e483,_0x5ccef5){super(_0x2e483),this['_suggestions']=_0x5ccef5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x738dfa){const _0x478f0d=this['_suggestions']['get'](_0x738dfa);if(!_0x478f0d)throw new _0x8a669('track-changes-accept-suggestion-not-found',this);const _0x4485e3=_0x478f0d['getRanges']();this['editor']['model']['canEditAt'](_0x4485e3)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x478f0d);}}class R extends Qt{['_suggestions'];constructor(_0x13afa5,_0x393ffe){super(_0x13afa5),this['_suggestions']=_0x393ffe,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x6380c2){const _0x4dd8be=this['_suggestions']['get'](_0x6380c2);if(!_0x4dd8be)throw new _0x8a669('track-changes-discard-suggestion-not-found',this);const _0x27bfde=_0x4dd8be['getRanges']();this['editor']['model']['canEditAt'](_0x27bfde)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x4dd8be);}}function ns(_0x58e4c0,_0x276bc6){let _0x27b46d='';return _0x27b46d+=_0x58e4c0['split']('*')['map']((_0x4d50e1,_0x2548d8)=>_0x2548d8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x4d50e1)+'</span>':nn(_0x4d50e1))['join'](''),_0x276bc6&&(_0x27b46d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x276bc6['value']+'\x22\x20title=\x22'+_0x276bc6['title']+'\x22></span>'),_0x27b46d;}function nn(_0x2dde56){const _0x20e1ed=document['createElement']('span');return _0x20e1ed['innerText']=_0x2dde56,_0x20e1ed['innerHTML'];}function Wt(_0x2c2648){return _0x2c2648['sort']((_0x1f6b7f,_0x14a793)=>'deletion'==_0x1f6b7f['type']&&'deletion'!=_0x14a793['type']?-0x1:'deletion'!=_0x1f6b7f['type']&&'deletion'==_0x14a793['type']?0x1:0x0);}function to(_0xeea1cb,_0x12e3b8){let _0x14a4c7,_0x470dd9=0x0;const _0x35fee1=[],_0x3f56d3=_0x12e3b8['schema'];for(;_0x470dd9<_0xeea1cb['length'];){const _0x31f7b9=_0xeea1cb[_0x470dd9],_0x325b05=_0xeea1cb[_0x470dd9+0x1];_0x14a4c7||(_0x14a4c7=_0x12e3b8['createPositionBefore'](_0x31f7b9)),on(_0x12e3b8,_0x31f7b9,_0x325b05)||(_0x35fee1['push'](_0x12e3b8['createRange'](_0x14a4c7,_0x3f56d3['isObject'](_0x31f7b9)?_0x12e3b8['createPositionAfter'](_0x31f7b9):_0x12e3b8['createPositionAt'](_0x31f7b9,'end'))),_0x14a4c7=null),_0x470dd9++;}return _0x35fee1;}function on(_0x5941ca,_0x410e3c,_0x4e09c4){if(!_0x4e09c4)return!0x1;const _0x557ca6=_0x5941ca['createPositionAfter'](_0x410e3c),_0xf781c5=_0x5941ca['createPositionBefore'](_0x4e09c4);return _0x557ca6['isTouching'](_0xf781c5);}function Xt(_0x3b48ad,_0xb32089,_0x539d6c){for(;_0x539d6c['length'];){const _0x54fd85=_0x539d6c['splice'](0x0,0x64);_0x3b48ad['change'](()=>{for(const _0x328f67 of _0x54fd85)_0x328f67['isInContent']&&_0xb32089['execute'](_0x328f67['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x57c4c2,_0xc49c18,_0x15fd2d){super(_0x57c4c2),this['_command']=_0xc49c18,this['_suggestions']=_0x15fd2d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1bfb09=Array['from'](this['_suggestions']['values']())['some'](_0x5c066e=>_0x5c066e['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1bfb09;}['execute'](){const _0x574807=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x13347d of _0x574807){const _0x572385=_0x13347d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x572385))return;}Xt(this['editor']['model'],this['_command'],_0x574807);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x277322,_0x267b02,_0x540c40){super(_0x277322),this['_command']=_0x267b02,this['_suggestions']=_0x540c40,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3bd372=this['editor']['model']['document']['selection'],_0x320772=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2cb901,_0x22ed08){const _0x28dc2b=Array['from'](_0x2cb901['getRanges']()),_0x5b1458=new Set();for(const _0x4fd89f of _0x22ed08)if(_0x4fd89f['isInContent']){for(const _0x2bd399 of _0x28dc2b)for(const _0x3e65bf of _0x4fd89f['getRanges']())(_0x2bd399['isIntersecting'](_0x3e65bf)||_0x2cb901['isCollapsed']&&!_0x4fd89f['isMultiRange']&&_0x4fd89f['next']&&_0x3e65bf['end']['isTouching'](_0x2bd399['start']))&&_0x5b1458['add'](_0x4fd89f);}return _0x5b1458;}(_0x3bd372,_0x320772),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x456a35=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x36b269 of _0x456a35){const _0x5ca34e=_0x36b269['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5ca34e))return;}Xt(this['editor']['model'],this['_command'],_0x456a35);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x43b459(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3b6f6d,_0x33b730){super(),this['id']=_0x33b730['id'],this['type']=_0x33b730['type'],this['subType']=_0x33b730['subType']||null,this['author']=_0x33b730['author'],this['creator']=_0x33b730['creator']||_0x33b730['author'],this['isExternal']=Boolean(_0x33b730['attributes']&&_0x33b730['attributes']['@external']),this['data']=null,this['_model']=_0x3b6f6d,this['_onAccept']=_0x33b730['onAccept'],this['_onDiscard']=_0x33b730['onDiscard'],this['_onAttributesChange']=_0x33b730['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x33b730['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 _0x468700=this;for(;_0x468700['previous'];)_0x468700=_0x468700['previous'];return _0x468700;}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'](_0x9ba9c4){this['_markerNames']['add'](_0x9ba9c4);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x690e2=>this['_model']['markers']['get'](_0x690e2))['filter'](_0x5cd17e=>_0x5cd17e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x48fcc6=>{for(const _0x4ca93f of this['getMarkers']())_0x48fcc6['removeMarker'](_0x4ca93f);}),this['_markerNames']['clear']();}['removeMarker'](_0x1f0199){this['_model']['change'](_0x36251e=>{_0x36251e['removeMarker'](_0x1f0199);}),this['_markerNames']['delete'](_0x1f0199);}['addRange'](_0x501a96){const _0x966b0b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x966b0b),this['_model']['change'](_0x4b8870=>{_0x4b8870['addMarker'](_0x966b0b,{'range':_0x501a96,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x47fd42){for(const _0x1cdfff of this['getRanges']())if(_0x1cdfff['isIntersecting'](_0x47fd42))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1075ab=>_0x1075ab['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5584f3,_0x270f25)=>[..._0x5584f3,..._0x270f25['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xa6d7bc=this['getRanges']();if(0x1!=_0xa6d7bc['length'])return null;const _0x5e87c3=_0xa6d7bc[0x0],_0x55d51c=_0x5e87c3['start']['nodeAfter'],_0x17e61f=_0x5e87c3['end']['nodeBefore'];return _0x55d51c instanceof _0x56ce25?_0x55d51c!=_0x17e61f?null:_0x55d51c: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 _0x609467=[];let _0x5a7a68=this['head'];for(;_0x5a7a68;)_0x609467['push'](_0x5a7a68),_0x5a7a68=_0x5a7a68['next'];return _0x609467;}['setAttribute'](_0x281e01,_0x20c8da){const _0x2f4520=_0x815ffd(this['attributes']);_0xfaff89(_0x2f4520,_0x281e01,_0x20c8da),_0x202e10(_0x2f4520,this['attributes'])||(this['attributes']=_0x2f4520,this['_onAttributesChange'](_0x2f4520));}['removeAttribute'](_0x46c81f){const _0x226148=_0x815ffd(this['attributes']);_0xcdcbc8(_0x226148,_0x46c81f),_0x202e10(_0x226148,this['attributes'])||(this['attributes']=_0x226148,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 _0xbb8093()['substr'](0x1,0x5);}}function o(_0x2385d4,_0x3f89be,_0x419ef3){const _0x6a4bc3=_0x2385d4['t'],t=_0x2385d4['t'];switch(_0x3f89be){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x419ef3);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x419ef3);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x419ef3);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x419ef3);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x419ef3);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',_0x419ef3);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x419ef3);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x419ef3);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x419ef3);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x419ef3);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x419ef3);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x419ef3);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x419ef3);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x419ef3);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x419ef3);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x419ef3);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x419ef3);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x419ef3);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x419ef3);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x419ef3);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x419ef3);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x419ef3);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x419ef3);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x419ef3);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'},_0x419ef3);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x419ef3);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x419ef3);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x419ef3);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x419ef3);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x419ef3);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'},_0x419ef3);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x419ef3);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x419ef3);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x419ef3);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x419ef3);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'},_0x419ef3);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x419ef3);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'},_0x419ef3);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'},_0x419ef3);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x419ef3);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'},_0x419ef3);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x419ef3);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'},_0x419ef3);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x419ef3);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x419ef3);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'},_0x419ef3);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x419ef3);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 _0x6a4bc3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x419ef3);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x6a4bc3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x419ef3);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x419ef3);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'},_0x419ef3);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'},_0x419ef3);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'},_0x419ef3);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x3f89be;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x207dd9,_0x41b01c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x207dd9,this['_locale']=_0x41b01c;}['getDescriptions'](_0x18daeb){const _0x4dbd50=[],_0x4b9b2c=new Set(),_0x18b10f=new Set();for(let _0x538dd1=0x0;_0x538dd1<_0x18daeb['length'];_0x538dd1++){const _0x59f8e3=_0x18daeb[_0x538dd1];if(!_0x59f8e3['isInContent'])continue;const _0xdfc943=this['_handleCustomCallbackDescription'](_0x59f8e3);if(_0xdfc943){if(null!=_0x59f8e3['subType']){if(_0x4b9b2c['has'](_0x59f8e3['subType']))continue;_0x4b9b2c['add'](_0x59f8e3['subType']);}_0x4dbd50['push'](_0xdfc943);}else{if('attribute'!=_0x59f8e3['type'])'insertion'!=_0x59f8e3['type']&&'deletion'!=_0x59f8e3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x4dbd50,_0x59f8e3,_0x18daeb[_0x538dd1+0x1]);else{const _0x229212=_0x59f8e3['data']['key'];if(_0x18b10f['has'](_0x229212))continue;_0x18b10f['add'](_0x59f8e3['data']['key']),_0x229212==m?this['_handleRenameSuggestionDescription'](_0x4dbd50,_0x59f8e3):this['_handleAttributeSuggestionDescription'](_0x4dbd50,_0x59f8e3);}}}return this['_resolveDescriptionItems'](_0x4dbd50);}['registerDescriptionCallback'](_0x5ab4cc){this['_customCallbacks']['push'](_0x5ab4cc);}['registerElementLabel'](_0x1f28b4,_0x1faa7c,_0x3d4d53=_0x58f002['normal']){'function'==typeof _0x1f28b4?_0x3655fc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1f28b4,'label':_0x1faa7c,'priority':_0x3d4d53}):this['_itemLabels']['set'](_0x1f28b4,_0x1faa7c);}['registerAttributeLabel'](_0x19c949,_0x21b714){this['_attributeLabels']['set'](_0x19c949,_0x21b714);}['getItemLabel'](_0x30dd3c,_0x4f0113=0x1){let _0x306093;for(const _0x252ca5 of this['_itemLabelsCallbacks'])if(_0x252ca5['matchingCallback'](_0x30dd3c)){_0x306093=_0x252ca5['label'];break;}return _0x306093||(_0x306093=this['_itemLabels']['get'](_0x30dd3c['name'])),_0x306093?_0x306093(_0x4f0113):0x1!==_0x4f0113?_0x4f0113+'\x20'+_0x30dd3c['name']+'s':''+_0x30dd3c['name'];}['_addDescriptionItems'](_0xabda92,_0x35adfa){const _0x4a7fe6=_0x35adfa['getFirstRange']()['getWalker'](),_0xae5436='insertion'==_0x35adfa['type']?'add':'remove';for(const _0x4d0844 of _0x4a7fe6){const _0x10ae9b=_0x4d0844['item'],_0x395574=_0xabda92[_0xabda92['length']-0x1];if(_0x10ae9b['is']('$textProxy'))_0x395574&&_0x395574['type']['indexOf']('Container')>-0x1&&_0xabda92['pop'](),_0x395574&&'text'==_0x395574['type']?_0x395574[_0xae5436]+=_0x10ae9b['data']:_0xabda92['push']({'type':'text','add':'add'==_0xae5436?_0x10ae9b['data']:'','remove':'remove'==_0xae5436?_0x10ae9b['data']:''});else{if(this['_schema']['isObject'](_0x10ae9b)){const _0x1585e1=_0x10ae9b;if(_0x395574&&_0x395574['type']['indexOf']('Container')>-0x1&&_0xabda92['pop'](),'elementEnd'==_0x4d0844['type'])continue;_0x395574&&_0x395574['type']==_0xae5436+'Object'&&_0x395574['element']['name']==_0x1585e1['name']?_0x395574['quantity']++:_0xabda92['push']({'type':_0xae5436+'Object','element':_0x1585e1,'quantity':0x1}),_0x4a7fe6['skip'](_0x53d1f3=>!('elementEnd'==_0x53d1f3['type']&&_0x53d1f3['item']==_0x10ae9b));}else{if(this['_schema']['checkChild'](_0x10ae9b,'$text')||_0x10ae9b['is']('element','softBreak')){const _0x2a53d3=_0x10ae9b;if('add'==_0xae5436&&'elementStart'==_0x4d0844['type']||'remove'==_0xae5436&&'elementEnd'==_0x4d0844['type'])continue;if(_0x395574&&-0x1==_0x395574['type']['indexOf']('Container')){'text'==_0x395574['type']&&(_0x395574[_0xae5436]+='\x0a');continue;}let _0x2d5470;if(_0x2d5470='add'==_0xae5436?_0x2a53d3['nextSibling']&&!this['_schema']['isObject'](_0x2a53d3['nextSibling'])?_0x2a53d3['nextSibling']:null:_0x2a53d3['previousSibling']&&!this['_schema']['isObject'](_0x2a53d3['previousSibling'])?_0x2a53d3['previousSibling']:null,_0x2a53d3['isEmpty']||_0x2d5470&&_0x2d5470['isEmpty']){const _0x131a36=_0x2d5470&&_0x2d5470['isEmpty']?_0x2d5470:_0x2a53d3;_0x395574&&_0x395574['type']==_0xae5436+'EmptyContainer'&&_0x395574['element']['name']==_0x131a36['name']?_0x395574['quantity']++:_0xabda92['push']({'type':_0xae5436+'EmptyContainer','element':_0x131a36,'quantity':0x1});}else _0xabda92['push']({'type':_0xae5436+'Container','element':_0x2a53d3});}}}}}['_resolveDescriptionItems'](_0x352cb5){const _0x221ef3=this['_locale'],_0x58896f=[],_0x4033f4=[],_0x3c9c4f=[];for(const _0x585c86 of _0x352cb5)switch(_0x585c86['type']){case'text':if(_0x585c86['add']=_0x585c86['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x585c86['remove']=_0x585c86['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x585c86['add']&&''!=_0x585c86['remove']){_0x58896f['push']({'type':'replace','content':o(_0x221ef3,'REPLACE_TEXT',['\x22'+_0x585c86['remove']+'\x22','\x22'+_0x585c86['add']+'\x22'])});continue;}if(null!=_0x585c86['add']['match'](/^ +$/)){_0x58896f['push']({'type':'insertion','content':o(_0x221ef3,'*Insert:*\x20%0',o(_0x221ef3,'ELEMENT_SPACE',_0x585c86['add']['length']))});continue;}if(null!=_0x585c86['remove']['match'](/^ +$/)){_0x58896f['push']({'type':'deletion','content':o(_0x221ef3,'*Remove:*\x20%0',o(_0x221ef3,'ELEMENT_SPACE',_0x585c86['remove']['length']))});continue;}if(''!=_0x585c86['add']){_0x58896f['push']({'type':'insertion','content':o(_0x221ef3,'*Insert:*\x20%0','\x22'+_0x585c86['add']+'\x22')});continue;}_0x58896f['push']({'type':'deletion','content':o(_0x221ef3,'*Remove:*\x20%0','\x22'+_0x585c86['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x58896f['push']({'type':'insertion','content':o(_0x221ef3,'*Insert:*\x20%0',this['getItemLabel'](_0x585c86['element'],_0x585c86['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x58896f['push']({'type':'deletion','content':o(_0x221ef3,'*Remove:*\x20%0',this['getItemLabel'](_0x585c86['element'],_0x585c86['quantity']))});continue;case'addContainer':_0x58896f['push']({'type':'insertion','content':o(_0x221ef3,'*Split:*\x20%0',this['getItemLabel'](_0x585c86['element'],_0x585c86['quantity']))});continue;case'removeContainer':_0x58896f['push']({'type':'deletion','content':o(_0x221ef3,'*Merge:*\x20%0',this['getItemLabel'](_0x585c86['element'],_0x585c86['quantity']))});continue;case'addFormat':_0x4033f4['push'](_0x585c86['key']);continue;case'removeFormat':_0x3c9c4f['push'](_0x585c86['key']);continue;default:_0x58896f['push'](_0x585c86);}if(_0x4033f4['length']){const _0x2787a1=_0x4033f4['map'](_0x36039d=>this['_attributeLabels']['has'](_0x36039d)?this['_attributeLabels']['get'](_0x36039d):_0x36039d)['join'](',\x20');_0x58896f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2787a1)});}if(_0x3c9c4f['length']){const _0x3b78da=_0x3c9c4f['map'](_0x2b3e4f=>this['_attributeLabels']['has'](_0x2b3e4f)?this['_attributeLabels']['get'](_0x2b3e4f):_0x2b3e4f)['join'](',\x20');_0x58896f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3b78da)});}return _0x58896f;}['_handleCustomCallbackDescription'](_0x7b110c){for(const _0x1f5477 of this['_customCallbacks']){const _0x33df28=_0x1f5477(_0x7b110c);if(_0x33df28&&'type'in _0x33df28)return _0x33df28;}}['_handleAttributeSuggestionDescription'](_0x1d4d3e,_0x5b8b05){const _0xf8fa6f=_0x5b8b05['data'],_0x2d42ad=void 0x0===_0xf8fa6f['newValue']?'removeFormat':'addFormat';_0x1d4d3e['push']({'type':_0x2d42ad,'key':_0xf8fa6f['key']});}['_handleRenameSuggestionDescription'](_0x2e2bd4,_0x5e7e39){_0x2e2bd4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5e7e39['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x22135d,_0x2f8375,_0x311a12){if(this['_addDescriptionItems'](_0x22135d,_0x2f8375),_0x311a12&&_0x311a12['getFirstRange']()&&!_0x2f8375['getFirstRange']()['end']['isEqual'](_0x311a12['getFirstRange']()['start'])){const _0x455569=_0x22135d[_0x22135d['length']-0x1],_0x4dad12='insertion'==_0x2f8375['type']?'add':'remove';_0x455569&&'text'==_0x455569['type']&&(_0x455569[_0x4dad12]+='\x0a');}}}class U extends _0x2a14ba{['afterInit'](){const _0xf6d1c3=this['editor'],_0x2402aa=_0xf6d1c3['plugins']['get']('TrackChangesEditing');_0xf6d1c3['commands']['get']('showAIAssistant')&&_0x2402aa['enableCommand']('showAIAssistant');}}class V extends _0x2a14ba{['afterInit'](){const _0x483208=this['editor'],_0x333cf1=_0x483208['locale'];if(!_0x483208['plugins']['has']('AlignmentEditing'))return;const _0xda5e68=_0x483208['plugins']['get']('TrackChangesEditing');_0xda5e68['enableDefaultAttributesIntegration']('alignment'),_0xda5e68['registerBlockAttribute']('alignment'),_0xda5e68['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x333cf1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc0fc9=this['editor'],_0x518a62=_0xc0fc9['locale'];_0xc0fc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19d345=>{if('formatBlock'!=_0x19d345['type'])return;const {data:_0x198ded}=_0x19d345;if(_0x198ded&&'alignment'==_0x198ded['commandName']){const _0x2c155c=_0x198ded['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x518a62,'*Format:*\x20%0',function(_0x56716c){switch(_0x56716c){case'left':return o(_0x518a62,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x518a62,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x518a62,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x518a62,'FORMAT_JUSTIFY_TEXT');}}(_0x2c155c))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2a14ba{['afterInit'](){const _0x142241=this['editor'],_0x405d43=_0x142241['plugins']['get']('TrackChangesEditing'),_0x32c2d6=_0x142241['locale'];for(const _0x169af2 of Zt){if(!_0x142241['plugins']['has'](_0x169af2))continue;const _0x39b8d4=_0x169af2['slice'](0x0,-0x7)['toLowerCase'](),_0x58eb18='FORMAT_'+_0x39b8d4['toUpperCase']();_0x405d43['enableDefaultAttributesIntegration'](_0x39b8d4),_0x405d43['registerInlineAttribute'](_0x39b8d4),_0x405d43['descriptionFactory']['registerAttributeLabel'](_0x39b8d4,o(_0x32c2d6,_0x58eb18));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15f9e5=this['editor'],_0xaf66d0=_0x15f9e5['locale'],_0x5e189b=_0x15f9e5['plugins']['get']('TrackChangesEditing');function _0x37fe16(_0x2dbe64,_0x22ad06){_0x5e189b['descriptionFactory']['registerDescriptionCallback'](_0x5b8ec5=>{if('formatInline'!=_0x5b8ec5['type'])return;const {data:_0x56796f}=_0x5b8ec5;return _0x56796f&&_0x56796f['commandName']===_0x2dbe64?_0x56796f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xaf66d0,'*Format:*\x20%0',_0x22ad06)}:{'type':'format','content':o(_0xaf66d0,'*Remove\x20format:*\x20%0',_0x22ad06)}:void 0x0;});}_0x37fe16('bold',o(_0xaf66d0,'FORMAT_BOLD')),_0x37fe16('italic',o(_0xaf66d0,'FORMAT_ITALIC')),_0x37fe16('underline',o(_0xaf66d0,'FORMAT_UNDERLINE')),_0x37fe16('code',o(_0xaf66d0,'FORMAT_CODE')),_0x37fe16('strikethrough',o(_0xaf66d0,'FORMAT_STRIKETHROUGH')),_0x37fe16('subscript',o(_0xaf66d0,'FORMAT_SUBSCRIPT')),_0x37fe16('superscript',o(_0xaf66d0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2a14ba{['afterInit'](){const _0x1cf9b6=this['editor'],_0x206dd8=_0x1cf9b6['locale'];if(!_0x1cf9b6['plugins']['has']('BlockQuoteEditing'))return;const _0x38097b=_0x1cf9b6['plugins']['get']('TrackChangesEditing'),_0x5d3d2c=this['editor']['commands']['get']('blockQuote');_0x38097b['enableCommand']('blockQuote',(_0x3ccb16,_0x3ce49b={})=>{const _0x31fb95=this['editor']['model']['document']['selection'],_0x3612fc=_0x3ce49b&&void 0x0!==_0x3ce49b['forceValue']?_0x3ce49b['forceValue']:!_0x5d3d2c['value'];let _0x2cc08e=[];if(_0x3612fc){const _0x11b883=Array['from'](_0x31fb95['getSelectedBlocks']())['filter'](_0x5af11b=>oo(_0x5af11b)||function(_0x39c723,_0x5dfa1e){const _0x5cdb4a=_0x5dfa1e['checkChild'](_0x39c723['parent'],'blockQuote'),_0x12a8fd=_0x5dfa1e['checkChild'](['$root','blockQuote'],_0x39c723);return _0x5cdb4a&&_0x12a8fd;}(_0x5af11b,this['editor']['model']['schema']));_0x2cc08e=to(_0x11b883,_0x1cf9b6['model']);}else{const _0x4c2db3=Array['from'](_0x31fb95['getSelectedBlocks']())['filter'](_0xfdb95c=>oo(_0xfdb95c));_0x2cc08e=to(_0x4c2db3,_0x1cf9b6['model']);}_0x1cf9b6['model']['change'](()=>{for(const _0x1afb7a of _0x2cc08e)_0x38097b['markBlockFormat'](_0x1afb7a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3612fc}]});});}),_0x38097b['descriptionFactory']['registerDescriptionCallback'](_0x4786e3=>{const {data:_0x887a39}=_0x4786e3;if(_0x887a39&&'blockQuote'==_0x887a39['commandName']){const _0x4b19b5=o(_0x206dd8,'ELEMENT_BLOCK_QUOTE');return _0x887a39['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x206dd8,'*Set\x20format:*\x20%0',_0x4b19b5)}:{'type':'format','content':o(_0x206dd8,'*Remove\x20format:*\x20%0',_0x4b19b5)};}});}}function oo(_0x4db96e){return'blockQuote'==_0x4db96e['parent']['name'];}class L extends _0x2a14ba{['afterInit'](){const _0x16cd67=this['editor'],_0x203b4e=_0x16cd67['locale'],_0x48ab6a=_0x16cd67['plugins']['get']('TrackChangesEditing');_0x16cd67['plugins']['has']('BookmarkEditing')&&(_0x48ab6a['enableCommand']('insertBookmark'),_0x48ab6a['enableDefaultAttributesIntegration']('updateBookmark'),_0x48ab6a['registerBlockAttribute']('bookmarkId'),_0x48ab6a['descriptionFactory']['registerDescriptionCallback'](_0x756fa2=>{if('insertion'!=_0x756fa2['type']&&'deletion'!=_0x756fa2['type']&&'attribute'!=_0x756fa2['type'])return;const _0x5993c9=_0x756fa2['getContainedElement']();if(null==_0x5993c9)return;if(!_0x5993c9['is']('element','bookmark'))return;const _0x211ce4=_0x5993c9['getAttribute']('bookmarkId');if('insertion'==_0x756fa2['type'])return{'type':'insertion','content':o(_0x203b4e,'*Insert:*\x20%0','\x22'+_0x211ce4+'\x22\x20'+o(_0x203b4e,'ELEMENT_BOOKMARK'))};if('deletion'==_0x756fa2['type'])return{'type':'deletion','content':o(_0x203b4e,'*Remove:*\x20%0','\x22'+_0x211ce4+'\x22\x20'+o(_0x203b4e,'ELEMENT_BOOKMARK'))};const {data:_0x421ef1}=_0x756fa2;if(!_0x421ef1||'bookmarkId'!=_0x421ef1['key'])return;return{'type':'format','content':o(_0x203b4e,'*Set\x20bookmark:*\x20%0','\x22'+_0x421ef1['newValue']+'\x22')};}));}}class J extends _0x2a14ba{['afterInit'](){const _0x57054f=this['editor'];_0x57054f['plugins']['has']('CaseChange')&&(_0x57054f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x57054f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x57054f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2a14ba{['afterInit'](){const _0x3592df=this['editor'];_0x3592df['commands']['get']('ckbox')&&_0x3592df['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2a14ba{['afterInit'](){const _0x1a8598=this['editor'];if(!_0x1a8598['plugins']['has']('CodeBlock'))return;const _0x4c10b4=_0x1a8598['plugins']['get']('TrackChangesEditing'),_0x2981b2=_0x1a8598['locale'],_0x4060a3=_0x1a8598['config']['get']('codeBlock')['languages'],_0x2a2a7c=_0x1a8598['commands']['get']('codeBlock');_0x4c10b4['enableCommand']('indentCodeBlock'),_0x4c10b4['enableCommand']('outdentCodeBlock'),_0x4c10b4['enableCommand']('codeBlock',(_0x49e49f,_0x3808c1={})=>{const _0x2f27ca=_0x1a8598['model'],_0x458a2c=_0x1a8598['model']['document']['selection'],_0x3c137c=_0x3808c1&&void 0x0!==_0x3808c1['forceValue']?_0x3808c1['forceValue']:!_0x2a2a7c['value'];let _0x273659;_0x3808c1['language']||(_0x3808c1['language']=_0x4060a3[0x0]['language']),_0x273659=_0x3c137c?Array['from'](_0x458a2c['getSelectedBlocks']())['filter'](_0x12e4a5=>eo(_0x12e4a5)||function(_0x2569ed,_0x253bd4){if(_0x2569ed['is']('rootElement')||_0x253bd4['isLimit'](_0x2569ed))return!0x1;return _0x253bd4['checkChild'](_0x2569ed['parent'],'codeBlock');}(_0x12e4a5,_0x2f27ca['schema'])):Array['from'](_0x458a2c['getSelectedBlocks']())['filter'](_0x2145e7=>eo(_0x2145e7));const _0x22d610=to(_0x273659,_0x2f27ca);_0x2f27ca['change'](()=>{for(const _0x3ddaca of _0x22d610)_0x4c10b4['markBlockFormat'](_0x3ddaca,{'commandName':'codeBlock','commandParams':[{..._0x3808c1,'forceValue':_0x3c137c}],'formatGroupId':'blockName'});});}),(_0x4c10b4['descriptionFactory']['registerElementLabel']('codeBlock',_0xbf7284=>o(_0x2981b2,'ELEMENT_CODE_BLOCK',_0xbf7284)),_0x4c10b4['descriptionFactory']['registerDescriptionCallback'](_0x272f14=>{if('formatBlock'!=_0x272f14['type'])return;const _0xd5e35e=_0x2981b2['t'],{data:_0x336e5e}=_0x272f14;if(!_0x336e5e||'codeBlock'!=_0x336e5e['commandName'])return;const _0x1189ee=_0x336e5e['commandParams'][0x0]['language'],_0x443937=_0xd5e35e(_0x4060a3['find'](_0x51768c=>_0x51768c['language']===_0x1189ee)['label'])['toLowerCase']();return _0x336e5e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2981b2,'*Set\x20format:*\x20%0',o(_0x2981b2,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x443937+')')}:{'type':'format','content':o(_0x2981b2,'*Remove\x20format:*\x20%0',o(_0x2981b2,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x48aa51){return'codeBlock'==_0x48aa51['name'];}class z extends _0x2a14ba{['afterInit'](){const _0x29d537=this['editor'];if(!_0x29d537['plugins']['has']('CommentsEditing'))return;_0x29d537['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x24a0dc,_0x14548d,_0x8d8062){const _0x282fe9=[];for(const _0x2c682a of _0x14548d['getItems']())_0x2c682a['hasAttribute'](_0x24a0dc)&&_0x282fe9['push'](_0x8d8062['createRangeOn'](_0x2c682a));return _0x282fe9;}function Ne(_0x4490dd,_0x15d9d1,{showActiveMarker:_0x50d1d3=!0x0}={}){const _0x39ef0e=_0x4490dd['plugins']['get']('TrackChangesEditing');return(_0x46d51c,_0x5eb3d1,_0x5b63af)=>{if(!_0x5b63af['consumable']['test'](_0x5eb3d1['markerRange'],_0x46d51c['name']))return;const _0x333632=_0x5eb3d1['markerRange']['getWalker'](),_0x39b004=_0x5eb3d1['markerRange']['start'],_0x15b826=_0x4490dd['model']['schema'];let _0x31c96f=null,_0x33b840=null,_0x513171=!0x1,_0x334294=!0x1;for(const _0x5372f8 of _0x333632){const _0x1035ce=_0x5372f8['item'];_0x513171=_0x513171||_0x15b826['isContent'](_0x1035ce);const _0x418fe6=_0x5b63af['mapper']['toViewElement'](_0x1035ce);if(_0x418fe6&&_0x418fe6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5372f8['type']&&(_0x15b826['isBlock'](_0x1035ce)&&!_0x15b826['isLimit'](_0x1035ce)&&(_0x1035ce['nextSibling']||_0x39b004['isAtEnd']?_0x31c96f&&_0x31c96f['parent']==_0x1035ce||(_0x31c96f=_0x1035ce,_0xaccab9(_0x5372f8['previousPosition']),_0x334294=!0x0):_0x33b840=_0x33b840||_0x5372f8['previousPosition']));}function _0xaccab9(_0x456583){const {authorId:_0x68c806}=_0x39ef0e['_splitMarkerName'](_0x5eb3d1['markerName']),_0x15e5da=_0x5b63af['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x15d9d1,'data-author-id':_0x68c806}),_0x243f27=_0x5b63af['mapper']['toViewPosition'](_0x456583);_0x50d1d3&&_0x39ef0e['activeMarkers']['includes'](_0x5eb3d1['markerName'])&&_0x5b63af['writer']['addClass']('ck-suggestion-marker--active',_0x15e5da),_0x5b63af['writer']['insert'](_0x243f27,_0x15e5da),_0x5b63af['mapper']['bindElementToMarker'](_0x15e5da,_0x5eb3d1['markerName']);}_0x513171||_0x334294||!_0x33b840||_0xaccab9(_0x33b840);};}class K extends _0x2a14ba{static get['requires'](){return[_0xbc1bab];}['init'](){const _0x2f3b73=this['editor'],_0x167c3c=_0x2f3b73['plugins']['get']('TrackChangesEditing');_0x167c3c['enableCommand']('delete');const _0x58d13a=_0x2f3b73['commands']['get']('deleteForward');_0x167c3c['enableCommand']('deleteForward',(_0xd8c367,_0x4b578d={})=>{const _0x27580b=_0x2f3b73['model']['createSelection'](_0x2f3b73['model']['document']['selection']);_0x27580b['isCollapsed']&&_0x2f3b73['model']['modifySelection'](_0x27580b,{'direction':'forward','unit':_0x4b578d['unit']});const _0xd1fef9=_0x27580b['getFirstRange'](),_0x6998c0=_0x5580c5['fromRange'](_0xd1fef9);let _0x341ed7;_0xd8c367(_0x4b578d),_0x341ed7='$graveyard'==_0x6998c0['root']['rootName']?_0x2f3b73['model']['createRange'](_0xd1fef9['start']):_0x2f3b73['model']['createRange'](_0x6998c0['start'],_0x6998c0['end']),_0x6998c0['detach'](),_0x2f3b73['model']['enqueueChange'](_0x58d13a['buffer']['batch'],_0x4d04c7=>{_0x58d13a['buffer']['lock'](),_0x4d04c7['setSelection'](_0x4d04c7['createRange'](_0x341ed7['end'])),_0x58d13a['buffer']['unlock']();});}),_0x2f3b73['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x2f3b73,'merge'),{'priority':'high'}),_0x2f3b73['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x20fe71,_0x287521,_0x25fd4f)=>{_0x25fd4f['options']['showSuggestionHighlights']&&Ne(_0x2f3b73,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x20fe71,_0x287521,_0x25fd4f);},{'priority':'high'}),_0x2f3b73['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x356179,_0x2a58ef,_0x23d61f)=>{const _0x556e8e=_0x23d61f['mapper']['markerNameToElements'](_0x2a58ef['markerName']);if(_0x556e8e){for(const _0x5a9669 of _0x556e8e)_0x5a9669['is']('uiElement')&&(_0x23d61f['mapper']['unbindElementFromMarkerName'](_0x5a9669,_0x2a58ef['markerName']),_0x23d61f['writer']['remove'](_0x5a9669));}},{'priority':'high'});}}class W extends _0x2a14ba{['afterInit'](){const _0x2dc56e=this['editor'];if(!_0x2dc56e['plugins']['has']('ListEditing'))return;const _0x1067e0=_0x2dc56e['locale'],_0xf71112=_0x2dc56e['plugins']['get']('TrackChangesEditing'),_0x10c97d=_0x2dc56e['plugins']['has']('TodoListEditing'),_0x290ead=!!_0x2dc56e['config']['get']('list.multiBlock');function _0x459b92(_0x48247e){return{'type':'format','content':''+o(_0x1067e0,'*Set\x20format:*\x20%0',_0x48247e)};}function _0xfcfa0(_0x19f96e){return{'type':'format','content':''+o(_0x1067e0,'*Remove\x20format:*\x20%0',_0x19f96e)};}_0xf71112['enableDefaultAttributesIntegration']('numberedList'),_0xf71112['enableDefaultAttributesIntegration']('bulletedList'),_0xf71112['enableDefaultAttributesIntegration']('customNumberedList'),_0xf71112['enableDefaultAttributesIntegration']('customBulletedList'),_0xf71112['enableDefaultAttributesIntegration']('indentList'),_0xf71112['enableDefaultAttributesIntegration']('outdentList'),_0xf71112['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xf71112['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xf71112['registerBlockAttribute']('listItemId'),_0xf71112['registerBlockAttribute']('listType'),_0xf71112['registerBlockAttribute']('listIndent'),_0x290ead&&(_0xf71112['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xf71112['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x10c97d&&(_0xf71112['enableDefaultAttributesIntegration']('todoList'),_0xf71112['enableDefaultAttributesIntegration']('checkTodoList'),_0xf71112['registerBlockAttribute']('todoListChecked'),_0xf71112['descriptionFactory']['registerDescriptionCallback'](_0xa75b32=>{const {data:_0x759f90}=_0xa75b32;if(_0x759f90&&'todoListChecked'==_0x759f90['key'])return{'type':'format','content':_0x759f90['newValue']?o(_0x1067e0,'*Check\x20item*'):o(_0x1067e0,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x53ccc5=>{if(_0x53ccc5['batch']['isUndo'])return!0x1;let _0x3ec5a1=!0x1;const _0x2144da=_0xf71112['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x15d06f=>'todoListChecked'===_0xf71112['_getAttributeKey'](_0x15d06f));for(const _0x23c6c7 of _0x2144da){'todo'!=_0x23c6c7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xf71112['_findSuggestions'](_0x23c6c7['getFirstRange'](),'attribute')['find'](_0x2dc634=>'listType'===_0xf71112['_getAttributeKey'](_0x2dc634['suggestion']))||(_0x53ccc5['removeMarker'](_0x23c6c7['getFirstMarker']()),_0x3ec5a1=!0x0));}return _0x3ec5a1;})),_0xf71112['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1067e0,'FORMAT_INDENT'));const _0x17995d={'type':'format','content':''};_0xf71112['descriptionFactory']['registerDescriptionCallback'](_0xbb60f9=>{const {data:_0x2650c1}=_0xbb60f9;if(!_0x2650c1||'listType'!=_0x2650c1['key'])return;let _0x1c65b=_0xbb60f9['head'];for(;_0x1c65b;){if(_0x1c65b['data']&&(('listStyle'==_0x1c65b['data']['key']||'listMarkerStyle'==_0x1c65b['data']['key'])&&(_0x1c65b['data']['newValue']&&'default'!=_0x1c65b['data']['newValue']||'default'!=_0x1c65b['data']['oldValue']&&!_0x2650c1['newValue'])||!_0x290ead&&_0x1c65b['data']['key']==m))return _0x17995d;_0x1c65b=_0x1c65b['next'];}if(null==_0x2650c1['newValue'])switch(_0x2650c1['oldValue']){case'bulleted':return _0xfcfa0(o(_0x1067e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfcfa0(o(_0x1067e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfcfa0(o(_0x1067e0,'ELEMENT_TODO_LIST'));}switch(_0x2650c1['newValue']){case'bulleted':return _0x459b92(o(_0x1067e0,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x459b92(o(_0x1067e0,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x459b92(o(_0x1067e0,'ELEMENT_TODO_LIST'));}}),_0xf71112['descriptionFactory']['registerDescriptionCallback'](_0x3088bb=>{const {data:_0x197408}=_0x3088bb;if(_0x197408&&'listIndent'==_0x197408['key'])return null==_0x197408['newValue']||null==_0x197408['oldValue']&&0x0==_0x197408['newValue']?_0x17995d:void 0x0;}),_0xf71112['descriptionFactory']['registerDescriptionCallback'](_0x763fc4=>{if('attribute'!=_0x763fc4['type'])return;const {data:_0x5daad9}=_0x763fc4;if(!_0x5daad9||'listItemId'!=_0x5daad9['key'])return;const _0x2d745c=Te(_0x763fc4);return'newValue'==_0x2d745c?{'type':'format','content':o(_0x1067e0,'*Merge:*\x20list\x20item')}:'oldValue'==_0x2d745c?{'type':'format','content':o(_0x1067e0,'*Split:*\x20list\x20item')}:_0x17995d;}),_0x2dc56e['model']['document']['registerPostFixer'](_0x5bd971=>this['listItemIdFixer'](_0x5bd971)),_0x2dc56e['model']['document']['registerPostFixer'](_0x4c6eaa=>this['noTrackChangesFixer'](_0x4c6eaa)),_0x2dc56e['model']['document']['on']('change:data',(_0x25e8bc,_0x28c768)=>{if(_0x28c768['isUndo']||!_0x28c768['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3dcf79){if(_0x3dcf79['batch']['isUndo']||!_0x3dcf79['batch']['isLocal'])return!0x1;let _0xe8b965=!0x1;const _0x22fbb1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x53efdc=>_0x53efdc['data']&&'listItemId'==_0x53efdc['data']['key'])['filter'](_0xcb3b25=>_0xcb3b25['data']['newValue']&&_0xcb3b25['data']['oldValue']);for(const _0x56fdfd of _0x22fbb1)Te(_0x56fdfd)||(_0x3dcf79['removeMarker'](_0x56fdfd['getFirstMarker']()),_0xe8b965=!0x0);return _0xe8b965;}['noTrackChangesFixer'](_0x53b476){if(_0x53b476['batch']['isUndo']||!_0x53b476['batch']['isLocal'])return!0x1;const _0x47a3d0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x47a3d0['trackChangesCommand']['value'])return!0x1;let _0x1aa720=!0x1;const _0x3e1755=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3d56f9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x7b02ba=>'attribute'==_0x7b02ba['type'])['filter'](_0x3fb3b5=>_0x3e1755['includes'](_0x3fb3b5['attributeKey']));if(0x0==_0x3d56f9['length'])return _0x1aa720;for(const _0x3d51e5 of _0x3d56f9){const _0x17f717=_0x47a3d0['_findSuggestions'](_0x3d51e5['range'],'attribute')['filter'](_0x4f82e8=>!_0x4f82e8['meta']['isNextTo'])['map'](_0x4bfaae=>_0x4bfaae['suggestion'])['filter'](_0x15baf6=>{const _0x18bc50=_0x47a3d0['_getAttributeKey'](_0x15baf6);return _0x3e1755['includes'](_0x18bc50);});if(_0x17f717['length']){for(const _0x1b9ceb of _0x17f717)_0x53b476['removeMarker'](_0x1b9ceb['getFirstMarker']());_0x1aa720=!0x0;}}return _0x1aa720;}['assureChains'](){const _0x4ce058=this['editor']['plugins']['get']('TrackChangesEditing'),_0x384231=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x18c8f5;const _0x30406d=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x432863=>{if(_0x432863['data']['oldRange']||!_0x432863['data']['newRange'])return null;if(!_0x432863['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x197e90}=_0x4ce058['_splitMarkerName'](_0x432863['name']);if(!_0x4ce058['hasSuggestion'](_0x197e90))return null;const _0x5e42f0=_0x4ce058['getSuggestion'](_0x197e90);return _0x384231['includes'](_0x5e42f0['data']['key']);})['map'](_0x1d6631=>{const {id:_0x41a7bf}=_0x4ce058['_splitMarkerName'](_0x1d6631['name']),_0x2d9a59=_0x4ce058['getSuggestion'](_0x41a7bf);return _0x18c8f5=_0x2d9a59['attributes']['groupId'],_0x2d9a59['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x30406d['size'])return;const _0xc4c951=_0x4ce058['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43fb5b=>'attribute'==_0x43fb5b['type']&&_0x43fb5b['data']&&_0x384231['includes'](_0x43fb5b['data']['key'])&&_0x43fb5b['attributes']['groupId']!=_0x18c8f5)['map'](_0x472469=>({'listItem':_0x472469['getFirstRange']()['start']['nodeAfter'],'groupId':_0x472469['attributes']['groupId']})),_0xab5008=new Set();for(const {groupId:_0x18e201,listItem:_0x425bf9}of _0xc4c951)_0x30406d['has'](_0x425bf9)&&_0xab5008['add'](_0x18e201);for(const _0x34e2d7 of _0x4ce058['getSuggestions']())_0xab5008['has'](_0x34e2d7['attributes']['groupId'])&&_0x34e2d7['setAttribute']('groupId',_0x18c8f5);}['_supportLegacySuggestions'](){const _0x169375=this['editor'],_0x58bba3=_0x169375['locale'],_0x439e07=_0x169375['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x439e07['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x317bc0,_0x4a802a){const _0x46fadf=[];for(let _0x1105c4 of _0x317bc0)_0x1105c4['start']['nodeAfter']===_0x1105c4['end']['parent']&&(_0x1105c4=_0x169375['model']['createRange'](_0x169375['model']['createPositionAt'](_0x1105c4['start']['nodeAfter'],0x0))),_0x46fadf['push'](_0x1105c4);_0x169375['model']['change'](_0xd56461=>{const _0xb562e3=_0x169375['model']['document']['selection'],_0x129e1a=Array['from'](_0xb562e3['getRanges']())['map'](_0x174e8b=>_0x5580c5['fromRange'](_0x174e8b));_0xd56461['setSelection'](_0x46fadf),_0x169375['commands']['get'](_0x4a802a['commandName'])['refresh'](),_0x4a802a['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x169375['execute'](_0x4a802a['commandName'],..._0x4a802a['commandParams']),_0xd56461['setSelection'](_0x129e1a);for(const _0x3b62a7 of _0x129e1a)_0x3b62a7['detach']();});}),_0x439e07['descriptionFactory']['registerElementLabel'](function(_0x42fbfe){const _0x27fda9=!_0x169375['model']['schema']['isObject'](_0x42fbfe),_0x4710fa=_0x42fbfe['previousSibling'],_0x4f81e0=_0x42fbfe['nextSibling'],_0x513f3d=_0x42fbfe['getAttribute']('listItemId'),_0x19b99c=!_0x4710fa||_0x4710fa['getAttribute']('listItemId')!==_0x513f3d,_0x38f622=!_0x4f81e0||_0x4f81e0['getAttribute']('listItemId')!==_0x513f3d;return _0x27fda9&&Boolean(_0x513f3d)&&_0x19b99c&&_0x38f622;},_0x5da4ad=>o(_0x58bba3,'ELEMENT_LIST_ITEM',_0x5da4ad));}['_registerLegacyDescription'](){const _0x1fdac4=this['editor'],_0xfa26f3=_0x1fdac4['locale'];function _0x4e9169(_0x475593){const _0x4b4992=_0x1fdac4['commands']['get']('bulletedList')['value'],_0x41052e=_0x1fdac4['commands']['get']('numberedList')['value'];return'numberedList'===_0x475593?_0x4b4992:_0x41052e;}_0x1fdac4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x6c8aa1){if('formatBlock'!=_0x6c8aa1['type'])return;const {data:_0x3d491b}=_0x6c8aa1;if(!_0x3d491b)return;let _0x249d77,_0x4cd9b4,_0x317910,_0x378f08;switch(_0x3d491b['commandName']){case'bulletedList':_0x317910=_0x3d491b['commandParams'][0x0]['forceValue'],_0x378f08=_0x4e9169(_0x3d491b['commandName']),_0x249d77=_0x317910?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x378f08&&_0x1fdac4['config']['get']('list.multiBlock')||(_0x249d77='*Change\x20to:*\x20%0'),_0x4cd9b4={'type':'format','content':o(_0xfa26f3,_0x249d77,o(_0xfa26f3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x317910=_0x3d491b['commandParams'][0x0]['forceValue'],_0x378f08=_0x4e9169(_0x3d491b['commandName']),_0x249d77=_0x317910?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x378f08&&_0x1fdac4['config']['get']('list.multiBlock')||(_0x249d77='*Change\x20to:*\x20%0'),_0x4cd9b4={'type':'format','content':o(_0xfa26f3,_0x249d77,o(_0xfa26f3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x249d77='*Indent:*\x20%0',_0x4cd9b4={'type':'format','content':o(_0xfa26f3,_0x249d77,o(_0xfa26f3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x249d77=function(_0x6e1075){const _0x2eb03f=_0x6e1075['getFirstRange']();let _0x3f85a8=_0x2eb03f['start']['nodeAfter'];for(;_0x3f85a8&&_0x2eb03f['containsItem'](_0x3f85a8);){if(_0x3f85a8['getAttribute']('listIndent')>0x0)return!0x1;_0x3f85a8=_0x3f85a8['nextSibling'];}return!0x0;}(_0x6c8aa1)?o(_0xfa26f3,'*Format:*\x20remove\x20from\x20%0',o(_0xfa26f3,function(_0x14a798){return'ELEMENT_'+_0x14a798['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x6c8aa1))):o(_0xfa26f3,'*Outdent:*\x20%0',o(_0xfa26f3,'ELEMENT_LIST_ITEM')),_0x4cd9b4={'type':'format','content':_0x249d77};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d491b['multipleBlocks']&&(_0x249d77='*Merge:*\x20%0',_0x4cd9b4={'type':'deletion','content':o(_0xfa26f3,_0x249d77,o(_0xfa26f3,'ELEMENT_LIST_ITEM'))});}return _0x4cd9b4;});}}function Te(_0x3af455){let _0x455bad=_0x3af455['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x455bad;){const _0x5e2a3a=_0x455bad['getAttribute']('listItemId');if(!_0x5e2a3a)return!0x1;if(_0x5e2a3a==_0x3af455['data']['newValue'])return'newValue';if(_0x5e2a3a==_0x3af455['data']['oldValue'])return'oldValue';_0x455bad=_0x455bad['previousSibling'];}return!0x1;}class ye extends _0x2a14ba{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x20ee16=this['editor']['config']['get']('list.properties'),_0x140c39=this['editor']['plugins']['get']('TrackChangesEditing');_0x20ee16['styles']&&(_0x140c39['enableDefaultAttributesIntegration']('listStyle'),_0x140c39['registerBlockAttribute']('listStyle')),_0x20ee16['reversed']&&(_0x140c39['enableDefaultAttributesIntegration']('listReversed'),_0x140c39['registerBlockAttribute']('listReversed')),_0x20ee16['startIndex']&&(_0x140c39['enableDefaultAttributesIntegration']('listStart'),_0x140c39['registerBlockAttribute']('listStart'));const _0x44ddf9={'type':'format','content':''};_0x140c39['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x530576=this['editor']['locale'];_0x140c39['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x530576,'FORMAT_LIST_REVERSED')),_0x140c39['descriptionFactory']['registerDescriptionCallback'](_0x584ba9=>{const {data:_0x13578f}=_0x584ba9;if(_0x13578f&&'listReversed'==_0x13578f['key'])return null==_0x13578f['newValue']||0x0==_0x13578f['newValue']&&null==_0x13578f['oldValue']?_0x44ddf9:void 0x0;}),_0x140c39['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x530576,'FORMAT_LIST_START')),_0x140c39['descriptionFactory']['registerDescriptionCallback'](_0x56e70f=>{const {data:_0x4faba2}=_0x56e70f;if(_0x4faba2&&'listStart'==_0x4faba2['key'])return null==_0x4faba2['newValue']||0x1==_0x4faba2['newValue']&&null==_0x4faba2['oldValue']?_0x44ddf9:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4ea926=>{if(_0x4ea926['batch']['isUndo'])return!0x1;let _0x3b16a9=!0x1;const _0x2210c0=_0x140c39['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xa7b4ae=>{const _0x3fe619=_0x140c39['_getAttributeKey'](_0xa7b4ae);return'listStart'==_0x3fe619||'listReversed'==_0x3fe619;});for(const _0x34a6a0 of _0x2210c0){const _0x338aaa=_0x34a6a0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x338aaa||'customNumbered'==_0x338aaa)continue;_0x140c39['_findSuggestions'](_0x34a6a0['getFirstRange'](),'attribute')['find'](_0x17c6f8=>'listType'==_0x140c39['_getAttributeKey'](_0x17c6f8['suggestion']))||(_0x4ea926['removeMarker'](_0x34a6a0['getFirstMarker']()),_0x3b16a9=!0x0);}return _0x3b16a9;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5073d8){const _0xeac152=this['editor']['locale'],{data:_0x370e93}=_0x5073d8,_0x593b4f={'type':'format','content':''};if(!_0x370e93||'listStyle'!=_0x370e93['key'])return;if(!_0x370e93['oldValue'])return'default'==_0x370e93['newValue']?_0x593b4f:{'type':'format','content':''+o(_0xeac152,'*Set\x20format:*\x20%0',o(_0xeac152,this['_getTranslationKeyForListStyle'](_0x370e93['newValue'])))};if(!_0x370e93['newValue']){if('default'==_0x370e93['oldValue'])return _0x593b4f;let _0x4d2e48=_0x5073d8['head'];for(;_0x4d2e48;){if(_0x4d2e48['data']&&'listType'==_0x4d2e48['data']['key']&&_0x4d2e48['data']['newValue'])return _0x593b4f;_0x4d2e48=_0x4d2e48['next'];}return{'type':'format','content':''+o(_0xeac152,'*Remove\x20format:*\x20%0',o(_0xeac152,this['_getTranslationKeyForListStyle'](_0x370e93['oldValue'])))};}if('default'!=_0x370e93['newValue'])return{'type':'format','content':''+o(_0xeac152,'*Set\x20format:*\x20%0',o(_0xeac152,this['_getTranslationKeyForListStyle'](_0x370e93['newValue'])))};let _0x337358=_0x5073d8['head'];for(;_0x337358;){if(_0x337358['data']&&'listType'==_0x337358['data']['key']&&_0x337358['data']['newValue']&&_0x337358['data']['oldValue'])return _0x593b4f;_0x337358=_0x337358['next'];}return{'type':'format','content':o(_0xeac152,'*Set\x20format:*\x20%0',o(_0xeac152,'ELEMENT_'+_0x5073d8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x9de415=this['editor'],_0x3971ed=_0x9de415['locale'];_0x9de415['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f9c5d=>{if('formatBlock'!=_0x2f9c5d['type'])return;const {data:_0x4a8abf}=_0x2f9c5d;if(!_0x4a8abf)return;let _0x34e3ec,_0x3db22d;switch(_0x4a8abf['commandName']){case'listStyle':_0x34e3ec='*Change\x20to:*\x20%0',_0x3db22d={'type':'format','content':o(_0x3971ed,_0x34e3ec,o(_0x3971ed,this['_getTranslationKeyForListStyle'](_0x4a8abf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x34e3ec=_0x4a8abf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3db22d={'type':'format','content':o(_0x3971ed,_0x34e3ec)};break;case'listStart':_0x34e3ec='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3db22d={'type':'format','content':o(_0x3971ed,_0x34e3ec,_0x4a8abf['commandParams'][0x0]['startIndex'])};}return _0x3db22d;});}['_getTranslationKeyForListStyle'](_0x6dae4a){return'ELEMENT_'+function(_0x17937f){if(Se['includes'](_0x17937f))return'bulleted';if(_e['includes'](_0x17937f))return'numbered';return null;}(_0x6dae4a)['toUpperCase']()+'_LIST_'+_0x6dae4a['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x2a14ba{static get['requires'](){return[_0x529e64];}['init'](){const _0x4b7021=this['editor'],_0xb3af97=_0x4b7021['plugins']['get']('TrackChangesEditing'),_0x46fbf9=_0x4b7021['commands']['get']('enter');_0xb3af97['enableCommand']('enter',()=>{_0x4b7021['model']['change'](_0x3e993f=>{const _0x3ed3f9=_0x4b7021['model']['document']['selection'],_0x1837f0=_0x3ed3f9['getFirstPosition'](),_0x2a342b=_0x5580c5['fromRange'](_0x3ed3f9['getFirstRange']());if(_0x46fbf9['enterBlock'](_0x3e993f)){const _0x15faec=_0x4b7021['model']['createPositionAt'](_0x1837f0['parent']['nextSibling'],0x0),_0x2ac899=_0x3e993f['createRange'](_0x1837f0,_0x15faec);_0xb3af97['markInsertion'](_0x2ac899);}else _0x3e993f['setSelection'](_0x3e993f['createRange'](_0x2a342b['end']));_0x2a342b['detach'](),_0x46fbf9['fire']('afterExecute',{'writer':_0x3e993f});});}),_0x4b7021['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x4b7021,'split'),{'priority':'high'}),_0x4b7021['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x46ea9b,_0x230697,_0x4ab508)=>{const _0x1d0fe1=_0x4ab508['mapper']['markerNameToElements'](_0x230697['markerName']);if(_0x1d0fe1){for(const _0x222065 of _0x1d0fe1)_0x222065['hasClass']('ck-suggestion-marker-split')&&(_0x4ab508['mapper']['unbindElementFromMarkerName'](_0x222065,_0x230697['markerName']),_0x4ab508['writer']['remove'](_0x222065));}},{'priority':'high'}),_0x4b7021['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3fa699,_0x30ccd8,_0x1df742)=>{_0x1df742['options']['showSuggestionHighlights']&&Ne(_0x4b7021,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3fa699,_0x30ccd8,_0x1df742);},{'priority':'high'});}}class Y extends _0x2a14ba{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x39bc4f=this['editor']['plugins']['get']('TrackChangesEditing');_0x39bc4f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x39bc4f['enableCommand']('findNext'),_0x39bc4f['enableCommand']('findPrevious'),_0x39bc4f['enableCommand']('replace'),_0x39bc4f['enableCommand']('replaceAll');}['handleFindCommand'](_0x1973c0,_0x9019a9,_0x55eb1c={}){const _0x2b3a08=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1973c0(_0x433d26=>{let _0x55cc98=('string'==typeof _0x9019a9?_0x2b3a08['findByTextCallback'](_0x9019a9,_0x55eb1c):_0x9019a9)(_0x433d26);Array['isArray'](_0x55cc98)&&(_0x55cc98={'results':_0x55cc98,'searchText':'string'==typeof _0x9019a9?_0x9019a9:''});const _0x440f9e=_0x55cc98['results']['filter'](_0x48f6be=>!0x1===this['_isInDeletionRange'](_0x48f6be,_0x433d26['item']));return{..._0x55cc98,'results':_0x440f9e};},_0x55eb1c);}['_isInDeletionRange'](_0x131b52,_0xe454bb){const _0x55d95a=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xe454bb,_0x131b52['start']),this['editor']['model']['createPositionAt'](_0xe454bb,_0x131b52['end']));for(const _0x3d057f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55d95a['getIntersection'](_0x3d057f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2a14ba{['afterInit'](){const _0x5b5810=this['editor']['locale'],_0x17709e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5b40c1,commandName:_0x49c809}of ro)this['editor']['plugins']['has'](_0x5b40c1)&&(_0x17709e['enableDefaultAttributesIntegration'](_0x49c809),_0x17709e['registerInlineAttribute'](_0x49c809));_0x17709e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x5b5810,'FORMAT_FONT_SIZE')),_0x17709e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x5b5810,'FORMAT_FONT_FAMILY')),_0x17709e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x5b5810,'FORMAT_FONT_COLOR')),_0x17709e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x5b5810,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1da181=this['editor'],_0x508b19=_0x1da181['locale'];_0x1da181['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d18be=>{const _0x1199e9=_0x508b19['t'];if('formatInline'!=_0x3d18be['type'])return;const {data:_0x33e682}=_0x3d18be;if(null!=_0x33e682){if('fontSize'==_0x33e682['commandName']){const _0x3d4310=_0x33e682['commandParams'][0x0]['value'];if(_0x3d4310){const _0x4b8af=_0x1199e9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x43e3a9=>_0x43e3a9['model']==_0x3d4310)['title'])['toLowerCase']();return{'type':'format','content':o(_0x508b19,'*Set\x20font\x20size:*\x20%0',_0x4b8af)};}return{'type':'format','content':o(_0x508b19,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x33e682['commandName']){const _0x38a10b=_0x33e682['commandParams'][0x0]['value'];return _0x38a10b?{'type':'format','content':o(_0x508b19,'*Set\x20font\x20family:*\x20%0',_0x38a10b)}:{'type':'format','content':o(_0x508b19,'*Reset\x20font\x20family*')};}if('fontColor'==_0x33e682['commandName']){const _0x167140=_0x33e682['commandParams'][0x0]['value'];if(_0x167140){const _0x256611=_0x2c1be0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x386dcf=>_0x386dcf['model']==_0x167140);let _0x48ccbd=_0x167140,_0x53307a='';return _0x256611&&(_0x48ccbd=_0x256611['label'],_0x53307a=_0x1199e9(_0x48ccbd)['toLowerCase']()),{'type':'format','content':o(_0x508b19,'*Set\x20font\x20color:*\x20%0',_0x53307a)['trim'](),'color':{'value':_0x167140,'title':_0x53307a||_0x48ccbd}};}return{'type':'format','content':o(_0x508b19,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x33e682['commandName']){const _0x2a5519=_0x33e682['commandParams'][0x0]['value'];if(_0x2a5519){const _0x5ccee9=_0x2c1be0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x245220=>_0x245220['model']==_0x2a5519);let _0xef7ac0=_0x2a5519,_0x5bb4ac='';return _0x5ccee9&&(_0xef7ac0=_0x5ccee9['label'],_0x5bb4ac=_0x1199e9(_0xef7ac0)['toLowerCase']()),{'type':'format','content':o(_0x508b19,'*Set\x20font\x20background\x20color:*\x20%0',_0x5bb4ac)['trim'](),'color':{'value':_0x2a5519,'title':_0x5bb4ac||_0xef7ac0}};}return{'type':'format','content':o(_0x508b19,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2a14ba{['afterInit'](){const _0x56db75=this['editor'],_0x3dc7c7=_0x56db75['plugins']['get']('TrackChangesEditing'),_0x4a710b=_0x56db75['commands']['get']('copyFormat'),_0x571973=_0x56db75['commands']['get']('pasteFormat');_0x4a710b&&_0x571973&&(_0x3dc7c7['enableDefaultAttributesIntegration']('pasteFormat'),_0x3dc7c7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x443eae=this['editor'],_0x3313ae=_0x443eae['locale'];_0x443eae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51edfa=>{if('formatBlock'!=_0x51edfa['type']&&'formatInline'!=_0x51edfa['type'])return;const {data:_0x399db1}=_0x51edfa;if(_0x399db1&&'pasteFormat'===_0x399db1['commandName']){const _0x592a6c=[],_0x105f81=_0x399db1['commandParams'][0x0];for(const [_0x283715,_0x10d24c]of Object['entries'](_0x105f81))_0x592a6c['push'](so(_0x443eae,_0x283715,_0x10d24c));return _0x592a6c['length']?{'type':'format','content':o(_0x3313ae,'*Set\x20format\x20to:*\x20%0',_0x592a6c['join'](',\x20'))}:{'type':'format','content':o(_0x3313ae,'*Remove\x20all\x20formatting*')};}});}}function so(_0xc5f7fc,_0x5987d7,_0x3fad89){const _0x518c46=_0xc5f7fc['locale']['t'],_0x369e7c=_0x5987d7['split'](/(?=[A-Z])/)['join']('\x20'),_0x262f8e=_0x518c46(_0x369e7c['charAt'](0x0)['toUpperCase']()+_0x369e7c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3fad89)return _0x262f8e;if('fontColor'===_0x5987d7||'fontBackgroundColor'===_0x5987d7){const _0x5b3a0f=_0x2c1be0(_0xc5f7fc['config']['get']('fontColor.colors'))['find'](_0x4c382d=>_0x4c382d['model']==_0x3fad89);return _0x262f8e+'\x20('+(_0x5b3a0f?_0x518c46(_0x5b3a0f['label'])['toLowerCase']():_0x3fad89)+')';}if('fontSize'===_0x5987d7&&isNaN(parseFloat(_0x3fad89))){const _0x1510b6=_0xc5f7fc['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xc5f7fc['config']['get']('fontSize.options'))['find'](_0x228708=>_0x228708['model']==_0x3fad89);return _0x262f8e+'\x20('+(_0x1510b6?_0x518c46(_0x1510b6['title'])['toLowerCase']():_0x3fad89)+')';}return _0x262f8e+'\x20('+_0x3fad89+')';}class nt extends _0x2a14ba{['_headingOptions'];['afterInit'](){const _0x51c182=this['editor'];if(!_0x51c182['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x51c182['config']['get']('heading.options');const _0x316228=_0x51c182['locale'],_0x10e7bd=_0x51c182['plugins']['get']('TrackChangesEditing');_0x10e7bd['enableDefaultAttributesIntegration']('heading');for(const _0x1f6f70 of this['_headingOptions'])'paragraph'!=_0x1f6f70['model']&&_0x10e7bd['descriptionFactory']['registerElementLabel'](_0x1f6f70['model'],_0x4ccbc6=>{const _0x138c50=this['_getHeadingLevel'](_0x1f6f70['model']);return null!==_0x138c50?_0x338eb7(_0x4ccbc6,_0x138c50):_0x12c8e5(_0x4ccbc6,_0x1f6f70['title']);});function _0x338eb7(_0x409134,_0x24f93e){return o(_0x316228,'ELEMENT_HEADING',[_0x409134,_0x24f93e]);}function _0x12c8e5(_0x3eedf2,_0x2c2261){return o(_0x316228,'ELEMENT_HEADING_CUSTOM',[_0x3eedf2,_0x2c2261]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27c7a2=this['editor'],_0x1d5020=_0x27c7a2['locale'];function _0x4b0d4(_0x4d4a97,_0x5cabd9){return o(_0x1d5020,'ELEMENT_HEADING_CUSTOM',[_0x4d4a97,_0x5cabd9]);}_0x27c7a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57001d=>{if('formatBlock'!=_0x57001d['type'])return;const {data:_0x5d6676}=_0x57001d;if(_0x5d6676&&'heading'==_0x5d6676['commandName']){const _0x4cd37c=_0x5d6676['commandParams'][0x0]['value'],_0x2cb536=this['_getHeadingLevel'](_0x4cd37c);if(null!==_0x2cb536)return{'type':'format','content':o(_0x1d5020,'*Change\x20to:*\x20%0',(_0x216c64=0x1,_0x122a52=_0x2cb536,o(_0x1d5020,'ELEMENT_HEADING',[_0x216c64,_0x122a52])))};const _0x82e48c=this['_headingOptions']['find'](_0x5984b2=>_0x5984b2['model']===_0x4cd37c)['title'];return{'type':'format','content':o(_0x1d5020,'*Change\x20to:*\x20%0',_0x4b0d4(0x1,_0x82e48c))};}var _0x216c64,_0x122a52;});}['_getHeadingLevel'](_0x163e4c){const _0x5ea328=_0x163e4c['match'](/^heading(\d+)/);if(_0x5ea328)return _0x5ea328[0x1];const _0x168f93=this['_headingOptions']?.['find'](_0xd94eab=>_0xd94eab['model']==_0x163e4c);if(_0x168f93&&_0x168f93['view']){const _0x5aefaf=_0x168f93['view'],_0x4d1d34=(_0x5aefaf['name']??_0x5aefaf)['match'](/^h(\d+)/);if(_0x4d1d34)return _0x4d1d34[0x1];}return null;}}class it extends _0x2a14ba{['afterInit'](){const _0x10f344=this['editor'];if(!_0x10f344['plugins']['has']('HighlightEditing'))return;const _0x541723=_0x10f344['plugins']['get']('TrackChangesEditing'),_0x29a02f=_0x10f344['locale'];_0x541723['enableDefaultAttributesIntegration']('highlight'),_0x541723['registerInlineAttribute']('highlight'),_0x541723['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x29a02f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fda3a=this['editor'],_0x5dd381=_0x2fda3a['locale'];_0x2fda3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c3430=>{if('formatInline'!=_0x4c3430['type'])return;const {data:_0x59917e}=_0x4c3430;if(_0x59917e&&'highlight'==_0x59917e['commandName']){const _0x3ab1c2=_0x5dd381['t'],_0x1a8024=_0x59917e['commandParams'][0x0]['value'];if(_0x1a8024){const _0x2447ba=_0x2fda3a['config']['get']('highlight.options')['find'](_0xfbb2a0=>_0xfbb2a0['model']==_0x1a8024),_0x502619=_0x3ab1c2(_0x2447ba['title'])['toLowerCase']();return{'type':'format','content':o(_0x5dd381,'*Set\x20highlight:*\x20%0',_0x502619),'color':{'value':_0x2447ba['color'],'title':_0x2447ba['title']}};}return{'type':'format','content':o(_0x5dd381,'*Remove\x20highlight*',o(_0x5dd381,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x2a14ba{['afterInit'](){const _0x3d8b2d=this['editor'];if(!_0x3d8b2d['plugins']['has']('HorizontalLineEditing'))return;_0x3d8b2d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x342284=_0x3d8b2d['plugins']['get']('TrackChangesEditing'),_0x3602f0=_0x3d8b2d['locale'];_0x342284['descriptionFactory']['registerElementLabel']('horizontalLine',_0x181bc8=>o(_0x3602f0,'ELEMENT_HORIZONTAL_LINE',_0x181bc8)),_0x3d8b2d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x574df9,{writer:_0x156d4e,options:_0x50b5c6})=>{if(!_0x50b5c6['showSuggestionHighlights'])return null;const _0x1e92e1=_0x156d4e['createContainerElement']('div'),_0xf2c4d7=_0x156d4e['createEmptyElement']('hr');return _0x156d4e['addClass']('ck-horizontal-line',_0x1e92e1),_0x156d4e['insert'](_0x156d4e['createPositionAt'](_0x1e92e1,0x0),_0xf2c4d7),_0x1e92e1;},'converterPriority':'high'});}}class st extends _0x2a14ba{['afterInit'](){const _0x20ec90=this['editor'];if(!_0x20ec90['plugins']['has']('HtmlEmbed'))return;const _0x17ff72=_0x20ec90['plugins']['get']('TrackChangesEditing'),_0x1ff992=_0x20ec90['locale'];_0x17ff72['descriptionFactory']['registerElementLabel']('rawHtml',_0x515f18=>o(_0x1ff992,'ELEMENT_HTML_EMBED',_0x515f18)),_0x17ff72['enableDefaultAttributesIntegration']('htmlEmbed'),_0x17ff72['registerBlockAttribute']('value'),_0x17ff72['descriptionFactory']['registerDescriptionCallback'](_0x1fb360=>{if('attribute'!=_0x1fb360['type'])return;const {data:_0x48d643}=_0x1fb360;if(_0x48d643&&'value'==_0x48d643['key']&&_0x1fb360['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3df8a1=o(_0x1ff992,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ff992,'*Change\x20%0\x20content*',_0x3df8a1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5657c5=this['editor'],_0x31a958=_0x5657c5['locale'];_0x5657c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18a1ed=>{if('formatBlock'!=_0x18a1ed['type'])return;const {data:_0x2fe947}=_0x18a1ed;if(_0x2fe947&&'htmlEmbed'==_0x2fe947['commandName']){const _0x4cc6e9=o(_0x31a958,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x31a958,'*Change\x20%0\x20content*',_0x4cc6e9)};}});}}class ot extends _0x2a14ba{['afterInit'](){const _0x117ed3=this['editor'];if(!_0x117ed3['plugins']['has']('ImageEditing'))return;const _0x560d4b=_0x117ed3['plugins']['get']('TrackChangesEditing'),_0x102711=_0x117ed3['plugins']['get']('ImageUtils'),_0x20b4d5=_0x117ed3['locale'];_0x560d4b['enableCommand']('insertImage'),_0x560d4b['descriptionFactory']['registerElementLabel']('imageBlock',_0x2503de=>o(_0x20b4d5,'ELEMENT_IMAGE',_0x2503de)),_0x560d4b['descriptionFactory']['registerElementLabel']('imageInline',_0x3c2a81=>o(_0x20b4d5,'ELEMENT_INLINE_IMAGE',_0x3c2a81)),_0x560d4b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x20b4d5,'ELEMENT_CAPTION')),_0x117ed3['plugins']['has']('ImageUploadEditing')&&_0x560d4b['enableCommand']('uploadImage'),_0x117ed3['plugins']['has']('ImageBlockEditing')&&_0x117ed3['plugins']['has']('ImageInlineEditing')&&(_0x560d4b['enableCommand']('imageTypeInline',(_0x25aaea,_0x557471)=>{const _0x7f7806=_0x102711['getClosestSelectedImageElement'](_0x117ed3['model']['document']['selection']);_0x117ed3['model']['change'](()=>{_0x560d4b['markBlockFormat'](_0x7f7806,{'commandName':'imageTypeInline','commandParams':[_0x557471]},[],'convertBlockImageToInline');});}),_0x560d4b['enableCommand']('imageTypeBlock',(_0x572c3d,_0x2f165b)=>{_0x117ed3['model']['change'](_0x481872=>{let _0x576174=_0x102711['getClosestSelectedImageElement'](_0x117ed3['model']['document']['selection']),_0x305c16=_0x481872['createRangeOn'](_0x576174);const _0x4bd771=_0x140ac4['fromPosition'](_0x305c16['start'],'toPrevious'),_0x2b576f=_0x140ac4['fromPosition'](_0x305c16['end'],'toNext');_0x560d4b['forceDefaultExecution'](()=>_0x572c3d(_0x2f165b)),_0x576174=_0x102711['getClosestSelectedImageElement'](_0x117ed3['model']['document']['selection']),_0x305c16=_0x481872['createRangeOn'](_0x576174);const _0x1424b1=_0x481872['createRange'](_0x4bd771,_0x2b576f);_0x4bd771['detach'](),_0x2b576f['detach'](),_0x560d4b['markBlockFormat'](_0x576174,{'commandName':'imageTypeInline','commandParams':[_0x2f165b]},[],'convertInlineImageToBlock'),_0x1424b1['start']['isBefore'](_0x305c16['start'])&&_0x560d4b['markInsertion'](_0x481872['createRange'](_0x1424b1['start'],_0x305c16['start']),'convertInlineImageToBlock'),_0x305c16['end']['isBefore'](_0x1424b1['end'])&&_0x560d4b['markInsertion'](_0x481872['createRange'](_0x305c16['end'],_0x1424b1['end']),'convertInlineImageToBlock');});}),_0x560d4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x560d4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x560d4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x560d4b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x560d4b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x560d4b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x33bc54])=>{const _0x1877a0=_0x560d4b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x133916=_0x33bc54['start'],_0x2d1d5b=_0x33bc54['end'];const _0x259488=_0x117ed3['model']['schema']['getNearestSelectionRange'](_0x133916,'backward'),_0x19207c=_0x117ed3['model']['schema']['getNearestSelectionRange'](_0x2d1d5b,'forward');_0x259488['isCollapsed']&&(_0x133916=_0x259488['start']),_0x19207c['isCollapsed']&&(_0x2d1d5b=_0x19207c['end']),_0x1877a0([_0x117ed3['model']['createRange'](_0x133916,_0x2d1d5b)]);}),_0x560d4b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x556111),_0x560d4b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x556111)),_0x117ed3['plugins']['has']('ImageCaptionEditing')&&(_0x560d4b['enableCommand']('toggleImageCaption',(_0x5b3fc4,_0x44376d)=>{const _0x31d62c=_0x117ed3['plugins']['get']('ImageCaptionUtils');let _0x35e575=_0x102711['getClosestSelectedImageElement'](_0x117ed3['model']['document']['selection']),_0x31c478=_0x31d62c['getCaptionFromImageModelElement'](_0x35e575);_0x117ed3['model']['change'](()=>{if(_0x31c478)return void _0x560d4b['markDeletion'](_0x117ed3['model']['createRangeOn'](_0x31c478));const _0x50f0bb=_0x102711['isBlockImage'](_0x35e575);_0x5b3fc4(_0x44376d),_0x35e575=_0x102711['getClosestSelectedImageElement'](_0x117ed3['model']['document']['selection']),_0x31c478=_0x31d62c['getCaptionFromImageModelElement'](_0x35e575),_0x560d4b['markInsertion'](_0x117ed3['model']['createRangeOn'](_0x31c478),_0x50f0bb?null:'imageCaption');});}),_0x560d4b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x556111));const _0x45fd06=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x97c0d0(_0x1acf72,_0x56ce59){const _0x508efc=_0x45fd06['findIndex'](({type:_0x179701,subType:_0x321602})=>_0x1acf72['type']==_0x179701&&_0x1acf72['subType']==_0x321602),_0x4a0d69=_0x45fd06['findIndex'](({type:_0x41c5bd,subType:_0x3e6f9})=>_0x56ce59['type']==_0x41c5bd&&_0x56ce59['subType']==_0x3e6f9);if(_0x508efc<0x0||_0x4a0d69<0x0)return!0x1;const _0x35ed79=_0x1acf72['getFirstRange'](),_0x2917ff=_0x56ce59['getFirstRange']();if((0x0==_0x508efc||0x1==_0x508efc)&&0x2==_0x4a0d69&&_0x35ed79['isIntersecting'](_0x2917ff))return!0x0;if(0x2==_0x508efc&&0x3==_0x4a0d69){const _0xe7ea1f=_0x560d4b['_findSuggestions'](_0x35ed79,'insertion')['filter'](({suggestion:_0xc500a1,meta:_0x5c8e99})=>_0x5c8e99['isOwn']&&'convertInlineImageToBlock'==_0xc500a1['subType']);if(_0xe7ea1f['length']>0x1&&_0x2917ff['end']['isEqual'](_0x35ed79['start']))return!0x0;if(0x1==_0xe7ea1f['length']&&(_0x35ed79['start']['isEqual'](_0x2917ff['end'])||_0x35ed79['end']['isEqual'](_0x2917ff['start'])))return!0x0;}if(0x3==_0x508efc&&0x3==_0x4a0d69&&_0x35ed79['start']['isBefore'](_0x2917ff['start'])){const _0x113012=_0x35ed79['end']['nodeAfter'],_0x1a6807=_0x2917ff['start']['nodeBefore'];return _0x102711['isBlockImage'](_0x113012)&&_0x113012===_0x1a6807;}return!0x1;}function _0x556111(_0x220b74,_0x4eb0ac){return _0x97c0d0(_0x220b74,_0x4eb0ac)?[_0x220b74,_0x4eb0ac]:_0x97c0d0(_0x4eb0ac,_0x220b74)?[_0x4eb0ac,_0x220b74]:null;}_0x117ed3['plugins']['has']('ImageResize')&&(_0x560d4b['enableDefaultAttributesIntegration']('resizeImage'),_0x560d4b['registerBlockAttribute']('resizedWidth'),_0x560d4b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x20b4d5,'FORMAT_IMAGE_SIZE'))),_0x117ed3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x560d4b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x560d4b['registerBlockAttribute']('alt')),_0x560d4b['descriptionFactory']['registerDescriptionCallback'](_0x25267a=>{if(!!_0x45fd06['find'](({type:_0x11173b,subType:_0x2a5baf})=>_0x25267a['type']==_0x11173b&&_0x25267a['subType']==_0x2a5baf))return _0x25267a['previous']?{}:void 0x0;}),_0x560d4b['descriptionFactory']['registerDescriptionCallback'](_0x2f7ee2=>{if('insertion'==_0x2f7ee2['type']||'deletion'==_0x2f7ee2['type']){const _0x5e64ba=_0x2f7ee2['getContainedElement']();if(_0x5e64ba&&_0x5e64ba['is']('element','caption'))return{'type':'insertion'==_0x2f7ee2['type']?'addObject':'removeObject','element':_0x5e64ba,'quantity':0x1};}}),_0x560d4b['descriptionFactory']['registerDescriptionCallback'](_0x5e3b14=>'formatBlock'==_0x5e3b14['type']&&'convertInlineImageToBlock'==_0x5e3b14['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e3b14['type']&&'convertBlockImageToInline'==_0x5e3b14['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x560d4b['descriptionFactory']['registerDescriptionCallback'](_0x1c750f=>{if('attribute'!=_0x1c750f['type'])return;const {data:_0x30f6a2}=_0x1c750f;if(!_0x30f6a2||'alt'!=_0x30f6a2['key'])return;const _0x496a83=_0x30f6a2['newValue'];return _0x496a83?{'type':'format','content':o(_0x20b4d5,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x496a83+'\x22')}:{'type':'format','content':o(_0x20b4d5,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4126e3=this['editor'],_0x3ed470=_0x4126e3['locale'];_0x4126e3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd65a1=>{if('formatBlock'!=_0xd65a1['type']&&'formatInline'!=_0xd65a1['type'])return;const {data:_0x30d8a6}=_0xd65a1;if(_0x30d8a6){if('imageTextAlternative'==_0x30d8a6['commandName']){const _0x1abf8c=_0x30d8a6['commandParams'][0x0]['newValue'];return _0x1abf8c?{'type':'format','content':o(_0x3ed470,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1abf8c+'\x22')}:{'type':'format','content':o(_0x3ed470,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x30d8a6['commandName']){const _0x1b2e23=_0x30d8a6['commandParams'][0x0]['width'];return _0x1b2e23?{'type':'format','content':o(_0x3ed470,'*Set\x20image\x20width:*\x20%0',_0x1b2e23)}:{'type':'format','content':o(_0x3ed470,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x2a14ba{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3aa282=this['editor']['locale'],_0x36f3b7=this['editor']['plugins']['get']('TrackChangesEditing');_0x36f3b7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x36f3b7['registerBlockAttribute']('src'),_0x36f3b7['descriptionFactory']['registerDescriptionCallback'](_0x4d34f1=>{if('attribute'!=_0x4d34f1['type'])return;const {data:_0x2c49ff}=_0x4d34f1;return _0x2c49ff&&'src'==_0x2c49ff['key']?_0x2c49ff['newValue']&&_0x2c49ff['oldValue']?{'type':'format','content':o(_0x3aa282,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x187238=this['editor']['plugins']['get']('TrackChangesEditing');_0x187238['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x187238['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x187238['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x187238['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29dcc5=this['editor'],_0x2b635a=_0x29dcc5['locale'];_0x29dcc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35b098=>{if('formatBlock'!=_0x35b098['type']&&'formatInline'!=_0x35b098['type'])return;const {data:_0x33f72d}=_0x35b098;if(!_0x33f72d||'replaceImageSource'!=_0x33f72d['commandName'])return;return{'type':'format','content':o(_0x2b635a,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x2a14ba{['afterInit'](){const _0x383607=this['editor'];if(!_0x383607['plugins']['has']('ImageStyleEditing'))return;const _0x4e1d73=_0x383607['plugins']['get']('TrackChangesEditing'),_0x3d3fa8=_0x383607['plugins']['get']('ImageUtils'),_0x9c1328={};_0x4e1d73['enableCommand']('imageStyle',(_0x16b767,_0x27766c)=>{const _0x5ae3ef=_0x383607['plugins']['get']('Users')['me'],_0x394667=_0x383607['commands']['get']('imageStyle');let _0x3200c1=_0x3d3fa8['getClosestSelectedImageElement'](_0x383607['model']['document']['selection']),_0x34fcb1=_0x383607['model']['createRangeOn'](_0x3200c1),_0x5ab119=_0x394667['value'];if(_0x5ab119==_0x27766c['value'])return;const _0x59674e={'commandName':'imageStyle','commandParams':[_0x27766c],'formatGroupId':_0xbb8093()};_0x383607['model']['change'](()=>{if(_0x4e1d73['getSuggestions']()['filter'](_0x3932d4=>_0x3932d4['isInContent']&&_0x5ae3ef==_0x3932d4['author']&&('formatBlock'==_0x3932d4['type']||'formatInline'==_0x3932d4['type'])&&('imageStylePreApply'==_0x3932d4['subType']||'imageStylePostApply'==_0x3932d4['subType'])&&_0x3932d4['getFirstRange']()['isEqual'](_0x34fcb1))['forEach'](_0x3ac501=>_0x4e1d73['discardSuggestion'](_0x3ac501['head'])),_0x3200c1=_0x3d3fa8['getClosestSelectedImageElement'](_0x383607['model']['document']['selection']),_0x34fcb1=_0x383607['model']['createRangeOn'](_0x3200c1),_0x394667['refresh'](),_0x383607['commands']['get']('imageTypeInline')['refresh'](),_0x383607['commands']['get']('imageTypeBlock')['refresh'](),_0x5ab119=_0x394667['value'],_0x5ab119!=_0x27766c['value'])return _0x3d3fa8['isInlineImage'](_0x3200c1)&&_0x394667['shouldConvertImageType'](_0x27766c['value'],_0x3200c1)?(_0x16b767({..._0x27766c,'setImageSizes':!0x1}),_0x3200c1=_0x3d3fa8['getClosestSelectedImageElement'](_0x383607['model']['document']['selection']),void _0x4e1d73['markBlockFormat'](_0x3200c1,{..._0x59674e,'commandReversedParams':[{'value':_0x5ab119||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3d3fa8['isBlockImage'](_0x3200c1)?_0x4e1d73['markBlockFormat'](_0x3200c1,_0x59674e,[],'imageStylePostApply'):_0x4e1d73['markInlineFormat'](_0x34fcb1,_0x59674e,'imageStylePostApply'));});});for(const _0x15491c of _0x383607['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x9c1328[_0x15491c['name']]=_0x15491c['title']['toLowerCase']();_0x4e1d73['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4e1d73['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4e1d73['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4e1d73['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5ee062])=>{_0x3d3fa8['setImageNaturalSizeAttributes'](_0x5ee062['getContainedElement']());}),_0x4e1d73['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1e13e0,_0x45454a)=>{_0x4e1d73['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1e13e0,{'commandName':_0x45454a['commandName'],'commandParams':_0x45454a['commandReversedParams']});}),_0x4e1d73['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6c5f75,_0x132c9e){if(_0x81ec4e(_0x6c5f75,_0x132c9e))return[_0x6c5f75,_0x132c9e];if(_0x81ec4e(_0x132c9e,_0x6c5f75))return[_0x132c9e,_0x6c5f75];return null;});const _0x2dc6f8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x81ec4e(_0x27ca8a,_0x223ba2){const _0xe74c65=_0x2dc6f8['findIndex'](({type:_0x29c219,subType:_0x4d7300})=>_0x27ca8a['type']==_0x29c219&&_0x27ca8a['subType']==_0x4d7300),_0x306eac=_0x2dc6f8['findIndex'](({type:_0x30ae94,subType:_0x2884fd})=>_0x223ba2['type']==_0x30ae94&&_0x223ba2['subType']==_0x2884fd);if(_0xe74c65<0x0||_0x306eac<0x0)return!0x1;const _0x4c6750=_0x27ca8a['getFirstRange'](),_0x3ab155=_0x223ba2['getFirstRange']();if((0x0==_0xe74c65||0x1==_0xe74c65)&&0x2==_0x306eac&&_0x4c6750['isIntersecting'](_0x3ab155))return!0x0;if(0x2==_0xe74c65&&0x3==_0x306eac){const _0x529454=_0x4e1d73['_findSuggestions'](_0x4c6750,'insertion')['filter'](({suggestion:_0x1bd647,meta:_0x115829})=>_0x115829['isOwn']&&'convertInlineImageToBlock'==_0x1bd647['subType']);if(_0x529454['length']>0x1&&_0x3ab155['end']['isEqual'](_0x4c6750['start']))return!0x0;if(0x1==_0x529454['length']&&(_0x4c6750['start']['isEqual'](_0x3ab155['end'])||_0x4c6750['end']['isEqual'](_0x3ab155['start'])))return!0x0;}if(0x3==_0xe74c65&&0x3==_0x306eac&&_0x4c6750['start']['isBefore'](_0x3ab155['start'])){const _0x1fa3b4=_0x4c6750['end']['nodeAfter'],_0x16e306=_0x3ab155['start']['nodeBefore'];return _0x3d3fa8['isBlockImage'](_0x1fa3b4)&&_0x1fa3b4===_0x16e306;}return!0x1;}_0x383607['model']['document']['registerPostFixer'](()=>{let _0x520f0a=!0x1;const _0x12c5d7=Array['from'](_0x383607['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x585358,data:_0x4c66d0}of _0x12c5d7){const {group:_0x111f4f,type:_0x364be8,subType:_0x59f680,id:_0xa6ae9c}=_0x4e1d73['_splitMarkerName'](_0x585358);if('suggestion'==_0x111f4f&&_0x4e1d73['hasSuggestion'](_0xa6ae9c)){if('formatBlock'==_0x364be8&&('imageStylePreApply'==_0x59f680||'imageStylePostApply'==_0x59f680)){const _0x3a4423=_0x4e1d73['getSuggestion'](_0xa6ae9c);if(_0x4c66d0['newRange']){const _0x2b636e=_0x3a4423['getFirstRange']()['getContainedElement']();if(_0x3d3fa8['isBlockImage'](_0x2b636e))continue;_0x4e1d73['discardSuggestion'](_0x3a4423),_0x520f0a=!0x0;}}if('insertion'==_0x364be8&&'imageCaption'==_0x59f680&&!_0x4c66d0['newRange']){const _0x467a61=_0x4e1d73['getSuggestion'](_0xa6ae9c);_0x467a61['next']&&_0x467a61['next']['isInContent']&&(_0x4e1d73['discardSuggestion'](_0x467a61['next']),_0x520f0a=!0x0);}}}return _0x520f0a;}),this['_registerLegacyDescription'](_0x9c1328);}['_registerLegacyDescription'](_0x218a0d){const _0x105588=this['editor'],_0x3b2355=_0x105588['locale'];_0x105588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cdc79=>{if('formatBlock'!=_0x5cdc79['type']&&'formatInline'!=_0x5cdc79['type'])return;const {data:_0x520746}=_0x5cdc79;if(!_0x520746||'imageStyle'!=_0x520746['commandName'])return;const _0x3304f4=_0x520746['commandParams'][0x0]['value'];return _0x2827f0('side'===_0x3304f4?o(_0x3b2355,'FORMAT_SIDE_IMAGE'):_0x218a0d[_0x3304f4]||_0x3304f4);function _0x2827f0(_0x27b73a){return{'type':'format','content':o(_0x3b2355,'*Format:*\x20%0',_0x27b73a)};}});}}class ct extends _0x2a14ba{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xa22643){super(_0xa22643),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3bc0d7=this['editor'],_0x341165=_0x3bc0d7['commands']['get']('importWord'),_0xaf5eb6=_0x3bc0d7['commands']['get']('trackChanges');_0x341165&&(_0x341165['on']('execute',(_0x3c6961,[,_0x21fde6])=>{this['_trackChangesValueDuringImport']=_0xaf5eb6['value'],_0x21fde6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x341165,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x341165,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xaf5eb6['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3bc0d7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4f19d0,_0x1b62b0){const {suggestions:_0x4e11ef}=_0x1b62b0,_0x1fa3ab=this['editor']['commands']['get']('trackChanges'),_0x5a579c=_0x1fa3ab['value'];this['_trackChangesValueDuringImport']!==_0x5a579c&&(_0x1fa3ab['execute'](),this['_trackChangesExecuted']=!0x0),_0x4e11ef&&_0x4e11ef['forEach'](({id:_0x2908fe,type:_0x188551,author:_0x2619a7,created_at:_0x409116})=>{const _0x4ca527={'id':_0x2908fe,'type':_0x188551,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2619a7,'createdAt':_0x409116?new Date(_0x409116):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4ca527);});}}class ut extends _0x2a14ba{['afterInit'](){const _0x19c5a1=this['editor'],_0x15ea04=_0x19c5a1['plugins']['get']('TrackChangesEditing');if(_0x19c5a1['plugins']['has']('IndentEditing')&&(_0x15ea04['enableCommand']('indent'),_0x15ea04['enableCommand']('outdent')),_0x19c5a1['plugins']['has']('IndentBlock')){for(const _0x4cb7f6 of['indentBlock','outdentBlock'])_0x15ea04['enableDefaultAttributesIntegration'](_0x4cb7f6);}const _0x806a99=_0x19c5a1['locale'];_0x15ea04['registerBlockAttribute']('blockIndent'),_0x15ea04['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x806a99,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x205852=this['editor'],_0x47cf68=_0x205852['locale'],_0xc84de1=_0x205852['plugins']['get']('TrackChangesEditing');_0xc84de1['descriptionFactory']['registerDescriptionCallback'](_0x571a51=>{if('formatBlock'!=_0x571a51['type'])return;const {data:_0x448c5c}=_0x571a51;if(!_0x448c5c)return;if('indentBlock'!=_0x448c5c['commandName']&&'outdentBlock'!=_0x448c5c['commandName'])return;const _0x145fc4=_0x571a51['getItems']()[0x0],_0x7a25ad=_0xc84de1['descriptionFactory']['getItemLabel'](_0x145fc4);return'indentBlock'==_0x448c5c['commandName']?{'type':'format','content':o(_0x47cf68,'*Indent:*\x20%0',_0x7a25ad)}:'outdentBlock'==_0x448c5c['commandName']?{'type':'format','content':o(_0x47cf68,'*Outdent:*\x20%0',_0x7a25ad)}:void 0x0;});}}class ft extends _0x2a14ba{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2a14ba{['afterInit'](){const _0x6cbda0=this['editor'];if(!_0x6cbda0['plugins']['has']('LinkEditing'))return;const _0x1b5cdd=_0x6cbda0['plugins']['get']('TrackChangesEditing'),_0x2e8c21=_0x6cbda0['commands']['get']('link');_0x1b5cdd['enableDefaultAttributesIntegration']('link'),_0x1b5cdd['enableDefaultAttributesIntegration']('unlink'),_0x1b5cdd['registerInlineAttribute']('linkHref');for(const _0x17b11b of _0x2e8c21['manualDecorators'])_0x1b5cdd['registerInlineAttribute'](_0x17b11b['id']),_0x1b5cdd['descriptionFactory']['registerAttributeLabel'](_0x17b11b['id'],'link\x20('+_0x17b11b['label']['toLowerCase']()+')');_0x1b5cdd['descriptionFactory']['registerDescriptionCallback'](_0x29385e=>{if('attribute'!=_0x29385e['type'])return;const {data:_0x11daf7}=_0x29385e;if(!_0x11daf7||'linkHref'!=_0x11daf7['key'])return;const _0x532414=_0x11daf7['newValue'],_0x2aa82d=_0x6cbda0['locale'];return{'type':'format','content':null==_0x532414?o(_0x2aa82d,'*Remove\x20link*'):o(_0x2aa82d,'*Set\x20link:*\x20%0','\x22'+_0x532414+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x583f1b=this['editor'],_0x449441=_0x583f1b['locale'];_0x583f1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe2082d=>{if('formatInline'!=_0xe2082d['type'])return;const {data:_0x2822c0}=_0xe2082d;if(_0x2822c0){if('link'==_0x2822c0['commandName']){const _0x678475=_0x2822c0['commandParams'][0x0];return{'type':'format','content':o(_0x449441,'*Set\x20link:*\x20%0','\x22'+_0x678475+'\x22')};}return'unlink'==_0x2822c0['commandName']?{'type':'format','content':o(_0x449441,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x2a14ba{['afterInit'](){const _0x1e79e2=this['editor'],_0x1580e2=_0x1e79e2['locale'];if(!_0x1e79e2['plugins']['has']('LegacyListEditing'))return;const _0x587cb9=_0x1e79e2['plugins']['get']('TrackChangesEditing'),_0x487711=_0x1e79e2['plugins']['has']('LegacyTodoListEditing');function _0x23ddef(_0x7ca0b4){return()=>{const _0x494844=_0x1e79e2['model']['document']['selection'],_0x2dbfe7=_0x1e79e2['commands']['get'](_0x7ca0b4);if(_0x2dbfe7['value'])return void _0x1e79e2['execute']('paragraph',{});const _0x1143a6=_0x7ca0b4['slice'](0x0,-0x4),_0x3fc7d1=function(_0x4b3af3,_0x4a0478,_0xbde889){let _0x11aa6c=Array['from'](_0x4b3af3)['filter'](_0x5a3cbe=>function(_0x57e4a9,_0x287dd9){return _0x287dd9['checkChild'](_0x57e4a9['parent'],'listItem')&&!_0x287dd9['isObject'](_0x57e4a9);}(_0x5a3cbe,_0xbde889));_0x11aa6c=_0x11aa6c['filter'](_0x1a45c9=>!_0x1a45c9['is']('element','listItem')||_0x1a45c9['getAttribute']('listType')!=_0x4a0478);const _0x584ce6=new Set();for(const _0x48a199 of _0x11aa6c)_0x48a199['is']('element','listItem')?_0x584ce6['add'](Le(_0x48a199)):_0x584ce6['add'](_0x48a199);return Array['from'](_0x584ce6);}(_0x494844['getSelectedBlocks'](),_0x1143a6,_0x1e79e2['model']['schema']);_0x1e79e2['model']['change'](()=>{for(const _0x5a44b5 of _0x3fc7d1)_0x587cb9['markBlockFormat'](_0x5a44b5,{'commandName':_0x7ca0b4,'commandParams':[{'forceValue':!_0x2dbfe7['value']}],'formatGroupId':'blockName'},Ee(_0x5a44b5));});};}function _0x326755(_0x41c7bf){return()=>{const _0x2b6982=function(_0x474b33){let _0xe3dd21=Array['from'](_0x474b33);const _0x51a44c=_0xe3dd21['findIndex'](_0x2d34e0=>'listItem'!=_0x2d34e0['name']);return _0x51a44c>-0x1&&(_0xe3dd21=_0xe3dd21['slice'](0x0,_0x51a44c)),_0xe3dd21;}(_0x1e79e2['model']['document']['selection']['getSelectedBlocks']()),_0xcf0238=_0x1e79e2['model']['createRange'](_0x1e79e2['model']['createPositionAt'](_0x2b6982[0x0],'before'),_0x1e79e2['model']['createPositionAt'](_0x2b6982[_0x2b6982['length']-0x1],'end'));_0x1e79e2['model']['change'](()=>{_0x587cb9['markBlockFormat'](_0xcf0238,{'commandName':_0x41c7bf,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2ad4ed){const _0x4b98dd=new Set();for(const _0x40bba9 of _0x2ad4ed){let _0x6b2fc1=_0x40bba9['nextSibling'];for(;_0x6b2fc1&&_0x6b2fc1['getAttribute']('listIndent')>_0x40bba9['getAttribute']('listIndent');)_0x4b98dd['add'](_0x6b2fc1),_0x6b2fc1=_0x6b2fc1['nextSibling'];}return Array['from'](_0x4b98dd);}(_0x2b6982));});};}_0x587cb9['enableCommand']('numberedList',_0x23ddef('numberedList')),_0x587cb9['enableCommand']('bulletedList',_0x23ddef('bulletedList')),_0x487711&&_0x587cb9['enableCommand']('todoList',_0x23ddef('todoList')),_0x587cb9['enableCommand']('indentList',_0x326755('indentList')),_0x587cb9['enableCommand']('outdentList',_0x326755('outdentList')),_0x487711&&_0x587cb9['enableCommand']('checkTodoList',()=>{const _0x11d866=_0x1e79e2['commands']['get']('checkTodoList'),_0x3b803d=Array['from'](_0x11d866['_selectedElements']);_0x3b803d['filter'](_0xb814e8=>_0xb814e8['getAttribute']('todoListChecked')!=_0x11d866['value']),_0x1e79e2['model']['change'](()=>{for(const _0xd761ff of _0x3b803d)_0x587cb9['markBlockFormat'](_0xd761ff,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x11d866['value']}]});});}),_0x587cb9['descriptionFactory']['registerElementLabel']('listItem',_0x3d3989=>o(_0x1580e2,'ELEMENT_LIST_ITEM',_0x3d3989)),_0x587cb9['descriptionFactory']['registerDescriptionCallback'](_0x2aff7f=>{if('formatBlock'!=_0x2aff7f['type']&&'formatInline'!=_0x2aff7f['type'])return;const {data:_0x1ebeb5}=_0x2aff7f;if(_0x1ebeb5){if('numberedList'==_0x1ebeb5['commandName']||'bulletedList'==_0x1ebeb5['commandName']||'todoList'==_0x1ebeb5['commandName'])switch(_0x1ebeb5['commandName']['replace']('List','')){case'bulleted':return _0x16a3ee(o(_0x1580e2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x16a3ee(o(_0x1580e2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x16a3ee(o(_0x1580e2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1ebeb5['commandName'])return{'type':'format','content':o(_0x1580e2,'*Indent:*\x20%0',o(_0x1580e2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1ebeb5['commandName'])return{'type':'format','content':o(_0x1580e2,'*Outdent:*\x20%0',o(_0x1580e2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1ebeb5['commandName'])return _0x1ebeb5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1580e2,'*Check\x20item*')}:{'type':'format','content':o(_0x1580e2,'*Uncheck\x20item*')};}function _0x16a3ee(_0x4f0df7){return{'type':'format','content':o(_0x1580e2,'*Change\x20to:*\x20%0',_0x4f0df7)};}});}}function Le(_0x91ed73){const _0x2bf0e0=_0x91ed73['getAttribute']('listIndent');if(0x0==_0x2bf0e0)return _0x91ed73;let _0x5f1c86=_0x91ed73;for(;_0x91ed73['previousSibling']&&_0x91ed73['previousSibling']['is']('element','listItem');){const _0x27dac9=_0x91ed73['previousSibling']['getAttribute']('listIndent');if(_0x27dac9==_0x2bf0e0)_0x5f1c86=_0x91ed73['previousSibling'];else{if(_0x27dac9<_0x2bf0e0)break;}_0x91ed73=_0x91ed73['previousSibling'];}return _0x5f1c86;}function Ee(_0x417eaf){const _0x5cc9ed=[];if(_0x417eaf['is']('element','listItem')&&_0x417eaf['getAttribute']('listIndent')>0x0){let _0x49fdd4=_0x417eaf['nextSibling'];for(;_0x49fdd4&&'listItem'==_0x49fdd4['name']&&_0x49fdd4['getAttribute']('listIndent')==_0x417eaf['getAttribute']('listIndent');)_0x5cc9ed['push'](_0x49fdd4),_0x49fdd4=_0x49fdd4['nextSibling'];}return _0x5cc9ed;}class Q extends _0x2a14ba{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x14c5e8=this['editor']['config']['get']('list.properties'),_0x44a665=this['editor']['plugins']['get']('TrackChangesEditing');_0x14c5e8['styles']&&_0x44a665['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x14c5e8['reversed']&&_0x44a665['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x14c5e8['startIndex']&&_0x44a665['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x44a665['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x15db6c,_0x66c75a={}){const _0x8ecb4c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4af21e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x8ecb4c['markMultiRangeBlockFormat'](_0x4af21e,{'commandName':'listStyle','commandParams':[{'type':_0x66c75a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x7d3f36,_0x404a4e={}){const _0x14765c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39bee5=this['_getSuggestionBlocks'](_0x54e741=>_0x54e741['is']('element','listItem')&&'numbered'===_0x54e741['getAttribute']('listType'));if(_0x39bee5['length']<0x1)return;const _0xb7c94d=_0x39bee5['map'](_0x5a44f2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5a44f2,'before'),this['editor']['model']['createPositionAt'](_0x5a44f2,0x0)));this['editor']['model']['change'](()=>{_0x14765c['markMultiRangeBlockFormat'](_0xb7c94d,{'commandName':'listReversed','commandParams':[{'reversed':_0x404a4e['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x75628,_0xb82cf0={}){const _0x277b8e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x160bd0=this['_getSuggestionBlocks'](_0x447648=>_0x447648['is']('element','listItem')&&'numbered'===_0x447648['getAttribute']('listType'));if(_0x160bd0['length']<0x1)return;const _0x1916ee=_0x160bd0['map'](_0x1e8bc5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1e8bc5,'before'),this['editor']['model']['createPositionAt'](_0x1e8bc5,0x0)));this['editor']['model']['change'](()=>{_0x277b8e['markMultiRangeBlockFormat'](_0x1916ee,{'commandName':'listStart','commandParams':[{'startIndex':_0xb82cf0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xa5980c){if('formatBlock'!=_0xa5980c['type']&&'formatInline'!=_0xa5980c['type'])return;const _0x111205=this['editor']['locale'],{data:_0x3b34e5}=_0xa5980c;if(!_0x3b34e5)return;let _0x320faa,_0x31f4b0;switch(_0x3b34e5['commandName']){case'listStyle':_0x320faa='*Change\x20to:*\x20%0',_0x31f4b0={'type':'format','content':o(_0x111205,_0x320faa,o(_0x111205,this['_getTranslationKeyForListStyle'](_0x3b34e5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x320faa=_0x3b34e5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x31f4b0={'type':'format','content':o(_0x111205,_0x320faa)};break;case'listStart':_0x320faa='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x31f4b0={'type':'format','content':o(_0x111205,_0x320faa,_0x3b34e5['commandParams'][0x0]['startIndex'])};}return _0x31f4b0;}['_getSuggestionBlocksForListStyle'](){const _0x1c8f66=this['editor']['plugins']['get']('LegacyListUtils');let _0x4eb159=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4eb159[0x0]?.['is']('element','listItem')&&_0x4eb159['unshift'](..._0x1c8f66['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4eb159[_0x4eb159['length']-0x1]?.['is']('element','listItem')&&_0x4eb159['push'](..._0x1c8f66['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4eb159=[...new Set(_0x4eb159)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4eb159=_0x4eb159['filter'](_0xa20ed7=>_0xa20ed7['is']('element','listItem'))),_0x4eb159;}['_getSuggestionBlocks'](_0x275591){const _0x3bdcc8=this['editor']['plugins']['get']('LegacyListUtils');let _0x276d66=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x275591)['map'](_0xeb0197=>{const _0x6b35f8=this['editor']['model']['createPositionAt'](_0xeb0197,0x0);return[..._0x3bdcc8['getSiblingNodes'](_0x6b35f8,'backward'),..._0x3bdcc8['getSiblingNodes'](_0x6b35f8,'forward')];})['flat']();return _0x276d66=[...new Set(_0x276d66)],_0x276d66;}['_getTranslationKeyForListStyle'](_0x4e0f35){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4e0f35)||'default')['toUpperCase']()+'_LIST_'+_0x4e0f35['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2a14ba{['afterInit'](){const _0x5e7d45=this['editor'];if(!_0x5e7d45['plugins']['has']('MediaEmbedEditing'))return;const _0x192898=_0x5e7d45['plugins']['get']('TrackChangesEditing'),_0x3e587a=_0x5e7d45['locale'];_0x192898['enableCommand']('mediaEmbed'),_0x192898['descriptionFactory']['registerElementLabel']('media',_0x36b1c8=>o(_0x3e587a,'ELEMENT_MEDIA',_0x36b1c8)),_0x5e7d45['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4cb5d0,{writer:_0x228b85,options:_0x252f54})=>{if(_0x252f54['showSuggestionHighlights'])return _0x228b85['createEmptyElement']('div');},'converterPriority':'high'}),_0x5e7d45['data']['downcastDispatcher']['on']('attribute:url:media',(_0x431bbe,_0x1781c3,_0x1c32f7)=>{_0x1c32f7['options']['showSuggestionHighlights']&&_0x431bbe['stop']();},{'priority':'high'});}}class mt extends _0x2a14ba{['afterInit'](){const _0x34abbe=this['editor'];_0x34abbe['plugins']['has']('MentionEditing')&&_0x34abbe['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x2a14ba{['afterInit'](){const _0x1470c8=this['editor'];if(!_0x1470c8['plugins']['has']('MergeFieldsEditing'))return;_0x1470c8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1470c8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x30750e=_0x1470c8['plugins']['get']('TrackChangesEditing'),_0x41805d=_0x1470c8['locale'];_0x30750e['descriptionFactory']['registerElementLabel']('mergeField',_0x2cbff6=>o(_0x41805d,'ELEMENT_MERGE_FIELD',_0x2cbff6)),_0x30750e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x52847e=>o(_0x41805d,'ELEMENT_MERGE_FIELD',_0x52847e)),_0x30750e['descriptionFactory']['registerDescriptionCallback'](_0x2c5468=>{if('insertion'!=_0x2c5468['type']&&'deletion'!=_0x2c5468['type'])return;const _0x2428cc=_0x2c5468['getContainedElement']();if(null==_0x2428cc)return;if(!_0x2428cc['is']('element','mergeField')&&!_0x2428cc['is']('element','mergeFieldBlock'))return;const _0x2aa708=_0x1470c8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x2428cc['getAttribute']('id'));return'insertion'==_0x2c5468['type']?{'type':'insertion','content':o(_0x41805d,'*Insert:*\x20%0','\x22'+_0x2aa708+'\x22\x20'+o(_0x41805d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x41805d,'*Remove:*\x20%0','\x22'+_0x2aa708+'\x22\x20'+o(_0x41805d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x2a14ba{['afterInit'](){const _0x2befbd=this['editor'],_0x1184f7=_0x2befbd['plugins']['get']('TrackChangesEditing');_0x2befbd['plugins']['has']('MultiLevelList')&&(_0x1184f7['enableDefaultAttributesIntegration']('multiLevelList'),_0x1184f7['registerBlockAttribute']('listMarkerStyle'),_0x1184f7['descriptionFactory']['registerDescriptionCallback'](_0x3e670f=>this['handleDescriptions'](_0x3e670f)));}['handleDescriptions'](_0x272481){const _0x29f562=this['editor']['locale'],{data:_0x388dc4}=_0x272481,_0x406eda={'type':'format','content':''};if(_0x388dc4&&'listMarkerStyle'==_0x388dc4['key']){if(!_0x388dc4['oldValue'])return{'type':'format','content':o(_0x29f562,'*Set\x20format:*\x20%0',o(_0x29f562,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x388dc4['newValue']+')'};if(!_0x388dc4['newValue']){let _0x1a630a=_0x272481['head'];for(;_0x1a630a;){if(_0x1a630a['data']&&'listType'==_0x1a630a['data']['key']&&_0x1a630a['data']['newValue'])return _0x406eda;_0x1a630a=_0x1a630a['next'];}return{'type':'format','content':o(_0x29f562,'*Remove\x20format:*\x20%0',o(_0x29f562,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x388dc4['oldValue']+')'};}}}}class kt extends _0x2a14ba{['afterInit'](){const _0x22f27a=this['editor'];if(!_0x22f27a['plugins']['has']('PageBreakEditing'))return;_0x22f27a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e44de=_0x22f27a['plugins']['get']('TrackChangesEditing'),_0x32a589=_0x22f27a['locale'];_0x1e44de['descriptionFactory']['registerElementLabel']('pageBreak',_0x42577b=>o(_0x32a589,'ELEMENT_PAGE_BREAK',_0x42577b));}}class bt extends _0x2a14ba{['afterInit'](){const _0x3900c0=this['editor'];if(!_0x3900c0['plugins']['has']('Paragraph'))return;const _0x44bdbe=_0x3900c0['locale'],_0x3bf1ca=_0x3900c0['plugins']['get']('TrackChangesEditing');_0x3bf1ca['descriptionFactory']['registerElementLabel']('paragraph',_0x11bdb7=>o(_0x44bdbe,'ELEMENT_PARAGRAPH',_0x11bdb7)),_0x3bf1ca['enableDefaultAttributesIntegration']('paragraph'),_0x3bf1ca['enableCommand']('insertParagraph'),_0x3900c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3900c0),{'priority':'highest'}),_0x3900c0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3cc494,_0xaac763,_0x28b3c7)=>{_0x28b3c7['options']['showSuggestionHighlights']&&nr(_0x3900c0,{'showActiveMarker':!0x1})(_0x3cc494,_0xaac763,_0x28b3c7);},{'priority':'highest'});const _0x5eb8f4=_0x3bf1ca['descriptionFactory'];_0x5eb8f4['registerDescriptionCallback'](_0x16baa1=>{if('insertion'!==_0x16baa1['type'])return;const {start:_0x3c97ba,end:_0x47feca}=_0x16baa1['getFirstRange']();if(!_0x3c97ba['isTouching'](_0x47feca)||!_0x3c97ba['nodeAfter'])return;const _0x163c32=_0x3900c0['model']['schema'],_0x5a430f=_0x3c97ba['nodeAfter'];return _0x163c32['isBlock'](_0x5a430f)&&!_0x163c32['isLimit'](_0x5a430f)&&_0x163c32['checkChild'](_0x5a430f,'$text')?{'type':'insertion','content':o(_0x44bdbe,'*Insert:*\x20%0',_0x5eb8f4['getItemLabel'](_0x5a430f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x135cdc=this['editor'],_0x1f5abd=_0x135cdc['locale'];_0x135cdc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ec7c5=>{if('formatBlock'!=_0x2ec7c5['type'])return;const {data:_0x45a899}=_0x2ec7c5;return _0x45a899&&'paragraph'==_0x45a899['commandName']?{'type':'format','content':o(_0x1f5abd,'*Change\x20to:*\x20%0',o(_0x1f5abd,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f0aaf,{showActiveMarker:_0x3c4856=!0x0}={}){return(_0x3d102e,_0x5e067d,_0x149beb)=>{const _0xa6ed60=_0x2f0aaf['plugins']['get']('TrackChangesEditing'),_0xa98b0b=_0x5e067d['markerRange']['start'],_0x598540=_0x5e067d['markerRange']['end'],_0xb36e98=_0x2f0aaf['model']['schema'];if(!_0xa98b0b['isTouching'](_0x598540)||!_0xa98b0b['nodeAfter'])return;const _0x53e497=_0xa98b0b['nodeAfter'];if(_0xb36e98['isBlock'](_0x53e497)&&!_0xb36e98['isLimit'](_0x53e497)&&_0xb36e98['checkChild'](_0x53e497,'$text')){if(!_0x149beb['consumable']['consume'](_0x5e067d['markerRange'],_0x3d102e['name']))return;const {authorId:_0x1c5bd9}=_0xa6ed60['_splitMarkerName'](_0x5e067d['markerName']),_0x5cae97=_0x149beb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1c5bd9}),_0x53314e=_0x149beb['mapper']['toViewPosition'](_0x598540);_0x3c4856&&_0xa6ed60['activeMarkers']['includes'](_0x5e067d['markerName'])&&_0x149beb['writer']['addClass']('ck-suggestion-marker--active',_0x5cae97),_0x149beb['writer']['insert'](_0x53314e,_0x5cae97),_0x149beb['mapper']['bindElementToMarker'](_0x5cae97,_0x5e067d['markerName']);}};}class yt extends _0x2a14ba{['afterInit'](){const _0x2be1b8=this['editor'];if(!_0x2be1b8['plugins']['has']('RemoveFormatEditing'))return;_0x2be1b8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x195200=this['editor'];_0x195200['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1099e9=>{if('formatBlock'!=_0x1099e9['type']&&'formatInline'!=_0x1099e9['type'])return;const {data:_0x5e10cf}=_0x1099e9;return _0x5e10cf&&'removeFormat'==_0x5e10cf['commandName']?{'type':'format','content':o(_0x195200['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x2a14ba{['afterInit'](){const _0x4db988=this['editor'];if(!_0x4db988['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x128363=_0x4db988['plugins']['get']('TrackChangesEditing');_0x128363['enableCommand']('goToPreviousRestrictedEditingException'),_0x128363['enableCommand']('goToNextRestrictedEditingException');const _0x3ecb9f=_0x4db988['plugins']['get']('RestrictedEditingModeEditing');_0x3ecb9f['enableCommand']('trackChanges'),_0x3ecb9f['enableCommand']('acceptSuggestion'),_0x3ecb9f['enableCommand']('discardSuggestion'),_0x3ecb9f['enableCommand']('acceptAllSuggestions'),_0x3ecb9f['enableCommand']('discardAllSuggestions'),_0x3ecb9f['enableCommand']('acceptSelectedSuggestions'),_0x3ecb9f['enableCommand']('discardSelectedSuggestions');}}class St extends _0x2a14ba{static get['requires'](){return[_0x17537e];}['init'](){const _0x177e7f=this['editor'],_0x493cb4=_0x177e7f['plugins']['get']('TrackChangesEditing');_0x493cb4['enableCommand']('shiftEnter'),_0x177e7f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x177e7f),{'priority':'high'}),_0x177e7f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x177e7f),{'priority':'high'}),_0x177e7f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x340435,_0x13278c,_0x2bbfa0)=>{_0x2bbfa0['options']['showSuggestionHighlights']&&ke(_0x177e7f,{'showActiveMarker':!0x1})(_0x340435,_0x13278c,_0x2bbfa0);}),_0x493cb4['descriptionFactory']['registerElementLabel']('softBreak',_0x198452=>o(_0x177e7f['locale'],'ELEMENT_LINE_BREAK',_0x198452));}}function ke(_0x10ad0b,{showActiveMarker:_0x3c1abe=!0x0}={}){return(_0x1f1d41,_0x40bc4b,_0x1f678f)=>{const _0x3e2969=_0x10ad0b['plugins']['get']('TrackChangesEditing');if(!_0x1f678f['consumable']['test'](_0x40bc4b['markerRange'],_0x1f1d41['name']))return;const _0x3d6f7b=_0x10ad0b['model'];for(const _0x31ac17 of _0x40bc4b['markerRange']['getItems']()){if(!_0x31ac17['is']('element','softBreak'))continue;const _0x30b02a='deletion'==_0x40bc4b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x591f84}=_0x3e2969['_splitMarkerName'](_0x40bc4b['markerName']),_0xd23bac=_0x1f678f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x30b02a,'data-author-id':_0x591f84}),_0x1ff8f0=_0x1f678f['mapper']['toViewPosition'](_0x3d6f7b['createPositionBefore'](_0x31ac17));_0x3c1abe&&_0x3e2969['activeMarkers']['includes'](_0x40bc4b['markerName'])&&_0x1f678f['writer']['addClass']('ck-suggestion-marker--active',_0xd23bac),_0x1f678f['writer']['insert'](_0x1ff8f0,_0xd23bac),_0x1f678f['mapper']['bindElementToMarker'](_0xd23bac,_0x40bc4b['markerName']);}};}class At extends _0x2a14ba{['afterInit'](){const _0x1a545a=this['editor'],_0x2ed7f2=_0x1a545a['model'],_0x4b44f3=_0x1a545a['locale'];if(!_0x1a545a['plugins']['has']('StandardEditingModeEditing'))return;const _0x48979e=_0x1a545a['plugins']['get']('TrackChangesEditing'),_0x2c8fe8='restrictedEditingException',_0x3157d4=_0x1a545a['commands']['get'](_0x2c8fe8);_0x48979e['enableCommand'](_0x2c8fe8,(_0x5af5a8,_0x8f3c87={})=>{const _0x358d04=_0x2ed7f2['document']['selection'];if(_0x358d04['isCollapsed'])return void _0x5af5a8(_0x8f3c87);const _0x50c7ce=void 0x0!==_0x8f3c87['forceValue']?_0x8f3c87['forceValue']:!_0x3157d4['value'];_0x2ed7f2['change'](()=>{const _0x1bd998=Array['from'](_0x358d04['getRanges']());for(const _0x581892 of _0x1bd998){const _0x5601c3=_0x50c7ce?[_0x581892]:io(_0x2c8fe8,_0x581892,_0x2ed7f2);for(const _0x27f288 of _0x5601c3)_0x48979e['markInlineFormat'](_0x27f288,{'commandName':_0x2c8fe8,'commandParams':[{'forceValue':_0x50c7ce}]});}});}),_0x48979e['descriptionFactory']['registerDescriptionCallback'](_0x58f837=>{if('formatBlock'!=_0x58f837['type']&&'formatInline'!=_0x58f837['type'])return;const {data:_0x57ee38}=_0x58f837;return _0x57ee38&&_0x57ee38['commandName']==_0x2c8fe8?_0x57ee38['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4b44f3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4b44f3,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x2a14ba{['afterInit'](){const _0x5bce8b=this['editor'];if(!_0x5bce8b['plugins']['has']('Style')||!_0x5bce8b['plugins']['has']('DataSchema'))return;const _0x838c08=_0x5bce8b['plugins']['get']('TrackChangesEditing'),_0x3f29fb=_0x5bce8b['locale'],_0x2e70eb=_0x5bce8b['config']['get']('style')||{},_0x434724=_0x5bce8b['plugins']['get']('GeneralHtmlSupport'),_0x43c36e=_0x5bce8b['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5bce8b['plugins']['get']('DataSchema'),_0x2e70eb['definitions']);_0x838c08['enableDefaultAttributesIntegration']('style');const _0x1c021d=new Set();for(const _0x5949f7 of _0x43c36e['block']){const _0x180745=_0x434724['getGhsAttributeNameForElement'](_0x5949f7['element']);_0x1c021d['add'](_0x180745);}const _0x5e83fc=new Set();for(const _0x4b8422 of _0x43c36e['inline']){const _0x1b2a08=_0x434724['getGhsAttributeNameForElement'](_0x4b8422['element']);_0x5e83fc['add'](_0x1b2a08);for(const _0x110a9c of _0x4b8422['ghsAttributes'])_0x5e83fc['add'](_0x110a9c);}for(const _0x1b3170 of _0x1c021d)_0x838c08['registerBlockAttribute'](_0x1b3170),_0x838c08['descriptionFactory']['registerAttributeLabel'](_0x1b3170,o(_0x3f29fb,'FORMAT_STYLE'));for(const _0x3b33a9 of _0x5e83fc)_0x838c08['registerInlineAttribute'](_0x3b33a9),_0x838c08['descriptionFactory']['registerAttributeLabel'](_0x3b33a9,o(_0x3f29fb,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45364a=this['editor'],_0xe69b62=_0x45364a['locale'];_0x45364a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x117ac1=>{if('formatBlock'!=_0x117ac1['type']&&'formatInline'!=_0x117ac1['type'])return;const {data:_0x4060b3}=_0x117ac1;return _0x4060b3&&'style'===_0x4060b3['commandName']?_0x4060b3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe69b62,'*Set\x20format:*\x20%0',_0x4060b3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xe69b62,'*Remove\x20format:*\x20%0',_0x4060b3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x2a14ba{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x48503a){super(_0x48503a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x377006=this['editor'],_0x216bc7=_0x377006['model']['document']['selection'];if(!_0x377006['plugins']['has']('TableEditing'))return;const _0x2c72b5=_0x377006['locale'],_0x1ecd60=_0x377006['plugins']['get']('TrackChangesEditing'),_0x39d48c=_0x377006['plugins']['get']('TableUtils');_0x1ecd60['descriptionFactory']['registerElementLabel']('table',_0x2bf9e9=>o(_0x2c72b5,'ELEMENT_TABLE',_0x2bf9e9)),this['_setupColumnsRowsFixing'](),_0x1ecd60['enableCommand']('insertTable'),_0x1ecd60['enableCommand']('selectTableRow'),_0x1ecd60['enableCommand']('selectTableColumn');for(const _0x99a02c of['insertTableRowAbove','insertTableRowBelow']){const _0x250cb7=_0x377006['commands']['get'](_0x99a02c);_0x1ecd60['enableCommand'](_0x99a02c,_0x2cdbe7=>{_0x377006['model']['change'](_0x3f669b=>{_0x2cdbe7();const _0x12ae9e='above'===_0x250cb7['order'],_0x319516=_0x39d48c['getSelectionAffectedTableCells'](_0x216bc7),_0x2a1fc5=_0x39d48c['getRowIndexes'](_0x319516),_0x6dd8d5=_0x12ae9e?_0x2a1fc5['first']-0x1:_0x2a1fc5['last']+0x1,_0x2ba720=_0x319516[0x0]['findAncestor']('table'),_0x305a2e=_0x39d48c['createTableWalker'](_0x2ba720,{'startRow':_0x6dd8d5,'endRow':_0x6dd8d5}),_0x1e6471=Array['from'](_0x305a2e)['map'](_0x1ef05f=>_0x3f669b['createRangeOn'](_0x1ef05f['cell']));_0x1ecd60['markMultiRangeInsertion'](_0x1e6471,'tableRow');});});}for(const _0x4ee335 of['insertTableColumnLeft','insertTableColumnRight']){const _0x47394d=_0x377006['commands']['get'](_0x4ee335);_0x1ecd60['enableCommand'](_0x4ee335,_0x11f3f5=>{_0x377006['model']['change'](_0x4a2ad2=>{_0x11f3f5();const _0xdebe4f='left'===_0x47394d['order'],_0x13b3e5=_0x39d48c['getSelectionAffectedTableCells'](_0x216bc7),_0x395b86=_0x39d48c['getColumnIndexes'](_0x13b3e5),_0x492028=_0xdebe4f?_0x395b86['first']-0x1:_0x395b86['last']+0x1,_0x1bcf8c=_0x13b3e5[0x0]['findAncestor']('table'),_0x3de7cd=_0x39d48c['createTableWalker'](_0x1bcf8c,{'startRow':0x0,'column':_0x492028,'includeAllSlots':!0x1}),_0x43dea7=Array['from'](_0x3de7cd)['map'](_0x5a9812=>_0x4a2ad2['createRangeOn'](_0x5a9812['cell']));_0x1ecd60['markMultiRangeInsertion'](_0x43dea7,'tableColumn');});});}for(const _0x4d123f of['removeTableRow','removeTableColumn']){const _0x28141f=_0x4d123f['substr'](0xb),_0x33176d=_0x28141f['toLowerCase'](),_0x19b042=_0x33176d['substr'](0x0,0x3)+'span',_0x1ddc0f='table'+_0x28141f,_0x4692c8='min'+_0x28141f,_0xc9842e='max'+_0x28141f;_0x1ecd60['enableCommand'](_0x4d123f,()=>{_0x377006['model']['change'](_0x2fb416=>{const _0x3d5d1c=_0x39d48c['getSelectionAffectedTableCells'](_0x216bc7),_0x1c10a0=_0x3d5d1c[0x0]['findAncestor']('table');let _0x480e49;if('removeTableRow'==_0x4d123f){const _0x342c2f=_0x39d48c['getRowIndexes'](_0x3d5d1c);_0x480e49={'startRow':_0x342c2f['first'],'endRow':_0x342c2f['last'],'includeAllSlots':!0x0};}else{const _0x5e09d7=_0x39d48c['getColumnIndexes'](_0x3d5d1c);_0x480e49={'startColumn':_0x5e09d7['first'],'endColumn':_0x5e09d7['last'],'includeAllSlots':!0x0};}const _0x46b262=_0x39d48c['createTableWalker'](_0x1c10a0,_0x480e49),_0xc86c8a=Array['from'](_0x46b262)['map'](({cell:_0x1b8f89})=>_0x1b8f89),_0x588b1e=Re(_0xc86c8a['filter'](_0x14aff3=>_0x14aff3['hasAttribute'](_0x19b042))),_0xd432e3=Re(_0xc86c8a['filter'](_0x439994=>!_0x439994['hasAttribute'](_0x19b042)))['map'](_0x4dfdac=>_0x2fb416['createRangeOn'](_0x4dfdac)),_0x21c451=_0x1ecd60['markMultiRangeDeletion'](_0xd432e3,_0x1ddc0f);if(_0x21c451&&('tableRow'==_0x21c451['subType']||'tableColumn'==_0x21c451['subType'])){const _0x3dff05=this['_getSuggestionCoords'](_0x21c451);for(const _0x4eebf0 of _0x588b1e){const _0x532336=_0x2fb416['createRangeOn'](_0x4eebf0),_0x1074b7=_0x39d48c['getCellLocation'](_0x4eebf0),_0x5f41c2=_0x4eebf0['getAttribute'](_0x19b042)-0x1,_0x58d036=_0x3dff05[_0x4692c8],_0x155131=_0x3dff05[_0xc9842e];_0x58d036<=_0x1074b7[_0x33176d]&&_0x1074b7[_0x33176d]+_0x5f41c2<=_0x155131&&_0x21c451['addRange'](_0x532336);}}});});}function _0xe4f343(_0x352553){const _0x1b468f=Array['from'](_0x216bc7['getRanges']())['map'](_0x173c84=>_0x5580c5['fromRange'](_0x173c84));_0x377006['model']['change'](_0x220ee9=>{const _0xa5fb6=_0x220ee9['batch'];_0x352553=_0x352553['filter'](_0x6b708a=>'$graveyard'!=_0x6b708a['root']['rootName']),_0x220ee9['setSelection'](_0x352553),_0x377006['commands']['get']('removeTableRow')['refresh'](),_0x377006['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x377006['model']['enqueueChange'](()=>{_0x377006['model']['enqueueChange'](_0xa5fb6,_0x3fda11=>{const _0x673e4c=_0x1b468f['filter'](_0x4b75fe=>'$graveyard'!=_0x4b75fe['root']['rootName']);_0x673e4c['length']>0x0&&_0x3fda11['setSelection'](_0x673e4c);for(const _0x145a6a of _0x1b468f)_0x145a6a['detach']();});});});}function _0xe7089d(_0x255b32){_0x377006['model']['change'](_0x4caad9=>{const _0x55586e=Array['from'](_0x216bc7['getRanges']())['map'](_0x257480=>_0x5580c5['fromRange'](_0x257480)),_0x563e17=[];for(const _0x1dbbf2 of _0x255b32)for(const _0x1ea999 of _0x1dbbf2['getItems']({'shallow':!0x0}))_0x563e17['push'](_0x1ea999);for(const _0x285cab of _0x563e17)'$graveyard'!=_0x285cab['root']['rootName']&&(_0x4caad9['setSelection'](_0x4caad9['createPositionAt'](_0x285cab,0x0)),_0x377006['commands']['get']('removeTableColumn')['refresh'](),_0x377006['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x43695b=_0x55586e['filter'](_0x235ecd=>'$graveyard'!=_0x235ecd['root']['rootName']);_0x43695b['length']>0x0&&_0x4caad9['setSelection'](_0x43695b);for(const _0x510797 of _0x55586e)_0x510797['detach']();});}function _0x3cb4a2(_0x17a60e,_0x4f7859){return _0x4f7859['every'](_0x55ae69=>_0x17a60e['some'](_0x286d52=>_0x286d52['end']['isEqual'](_0x55ae69['start'])||_0x55ae69['end']['isEqual'](_0x286d52['start'])));}function _0x1a6b60(_0x332bea,_0x32fcda){return!_0x332bea['some'](_0x553dc5=>_0x32fcda['some'](_0x36385b=>_0x553dc5['isIntersecting'](_0x36385b)))&&_0x332bea['some'](_0x5f074d=>_0x32fcda['some'](_0x511063=>_0x5f074d['end']['isTouching'](_0x511063['start'])));}_0x377006['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x22776e,_0x108190,_0x426035)=>{if(!_0x426035['options']['showSuggestionHighlights'])return;const _0x312db0=_0x108190['item'];if(!_0x312db0)return;const _0xb96509=_0x426035['mapper']['toViewElement'](_0x312db0);function _0x17451a(_0x39c939){return Array['isArray'](_0x39c939)?_0x39c939:[_0x39c939];}_0xb96509&&'tableCell'===_0x312db0['name']&&_0x17e71d(_0xb96509,_0x426035['writer'],(_0xb17905,_0x415af5,_0x533d95)=>_0x533d95['addClass'](_0x17451a(_0x415af5['classes']),_0xb17905),(_0x3f3b11,_0x38fa23,_0x4d53cd)=>_0x4d53cd['removeClass'](_0x17451a(_0x38fa23['classes']),_0x3f3b11));},{'priority':'highest'}),_0x1ecd60['descriptionFactory']['registerDescriptionCallback'](_0x4c2067=>{if('insertion'!=_0x4c2067['type']&&'deletion'!=_0x4c2067['type'])return;const _0x585d5f=_0x4c2067['getContainedElement']();if(null!=_0x585d5f&&_0x585d5f['is']('element','table')){if('insertion'==_0x4c2067['type']){const _0xb85ffd=_0x4c2067['getItems']()['filter'](_0x1e4000=>_0x1e4000['is']('$textProxy'))['map'](_0x5cfb49=>_0x5cfb49['data']);if(_0xb85ffd['length'])return{'type':'insertion','content':o(_0x2c72b5,'*Insert:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xb85ffd['join']('\x20')+'\x22'))};}if('deletion'==_0x4c2067['type']){const _0x2a9a76=_0x4c2067['getItems']()['filter'](_0x43cf07=>_0x43cf07['is']('$textProxy'))['map'](_0x5dc0d6=>_0x5dc0d6['data']);if(_0x2a9a76['length'])return{'type':'deletion','content':o(_0x2c72b5,'*Remove:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a9a76['join']('\x20')+'\x22'))};}}}),_0x1ecd60['descriptionFactory']['registerDescriptionCallback'](_0x6799d6=>{if('tableRow'==_0x6799d6['subType']){const _0x17e717=_0x6799d6['getItems']()['filter'](_0x57f087=>_0x57f087['is']('$textProxy'))['map'](_0x14fb0f=>_0x14fb0f['data']),_0x58dff7=this['_getSuggestionCoords'](_0x6799d6),_0x27f670=_0x58dff7['maxRow']-_0x58dff7['minRow']+0x1;if('insertion'==_0x6799d6['type'])return _0x17e717['length']?{'type':'insertion','content':o(_0x2c72b5,'*Insert:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27f670,'\x22'+_0x17e717['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c72b5,'*Insert:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_ROW',_0x27f670))};if('deletion'==_0x6799d6['type'])return _0x17e717['length']?{'type':'deletion','content':o(_0x2c72b5,'*Remove:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x27f670,'\x22'+_0x17e717['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c72b5,'*Remove:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_ROW',_0x27f670))};}if('tableColumn'==_0x6799d6['subType']){const _0x292cd1=_0x6799d6['getItems']()['filter'](_0xdc0339=>_0xdc0339['is']('$textProxy'))['map'](_0x39b2ac=>_0x39b2ac['data']),_0x517961=this['_getSuggestionCoords'](_0x6799d6),_0x450a38=_0x517961['maxColumn']-_0x517961['minColumn']+0x1;if('insertion'==_0x6799d6['type'])return _0x292cd1['length']?{'type':'insertion','content':o(_0x2c72b5,'*Insert:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x450a38,'\x22'+_0x292cd1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2c72b5,'*Insert:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_COLUMN',_0x450a38))};if('deletion'==_0x6799d6['type'])return _0x292cd1['length']?{'type':'deletion','content':o(_0x2c72b5,'*Remove:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x450a38,'\x22'+_0x292cd1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2c72b5,'*Remove:*\x20%0',o(_0x2c72b5,'ELEMENT_TABLE_COLUMN',_0x450a38))};}}),_0x1ecd60['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xe4f343),_0x1ecd60['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xe4f343),_0x1ecd60['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xe7089d),_0x1ecd60['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xe7089d),_0x1ecd60['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3cb4a2),_0x1ecd60['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3cb4a2),_0x1ecd60['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1a6b60),_0x1ecd60['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1a6b60);}['_acceptFormatSuggestionCallbackFactory'](){const _0x23e761=this['editor'],_0x18d585=_0x23e761['model']['document']['selection'];return(_0x484041,_0x383999)=>{_0x23e761['model']['change'](_0x30a732=>{const {commandName:_0x3153af,commandParams:_0x2eb81f}=_0x383999;let _0x206c92=_0x484041[0x0]['end']['nodeBefore'];_0x2eb81f&&_0x2eb81f[0x0]&&!0x1===_0x2eb81f[0x0]['forceValue']&&(_0x206c92=_0x484041[0x0]['start']['nodeAfter']);const _0x3dba6c=_0x30a732['createRangeIn'](_0x206c92);if('$graveyard'==_0x3dba6c['root']['rootName'])return;const _0x26d3fe=Array['from'](_0x18d585['getRanges']())['map'](_0x523730=>_0x5580c5['fromRange'](_0x523730));_0x30a732['setSelection'](_0x3dba6c),_0x23e761['commands']['get'](_0x3153af)['refresh'](),_0x2eb81f['push']({'forceDefaultExecution':!0x0}),_0x23e761['execute'](_0x3153af,..._0x2eb81f);const _0x3c221b=_0x26d3fe['filter'](_0x364a23=>'$graveyard'!=_0x364a23['root']['rootName']);_0x3c221b['length']>0x0&&_0x30a732['setSelection'](_0x3c221b);for(const _0x1a08b8 of _0x26d3fe)_0x1a08b8['detach']();});};}['_getCoordsForCells'](_0x41e36f){const _0x37ccf0=this['editor']['plugins']['get']('TableUtils');let _0x5d018a=Number['MAX_SAFE_INTEGER'],_0xc2becf=Number['MIN_SAFE_INTEGER'],_0xb4d5c6=Number['MAX_SAFE_INTEGER'],_0x50ce12=Number['MIN_SAFE_INTEGER'];for(const _0x579a7b of _0x41e36f){if('$graveyard'==_0x579a7b['root']['rootName'])continue;const {row:_0x203680,column:_0x358b0d}=_0x37ccf0['getCellLocation'](_0x579a7b),_0x48f76c=_0x579a7b['hasAttribute']('rowspan')?_0x579a7b['getAttribute']('rowspan')-0x1:0x0,_0x33aa2d=_0x579a7b['hasAttribute']('colspan')?_0x579a7b['getAttribute']('colspan')-0x1:0x0;_0x5d018a=_0x203680<_0x5d018a?_0x203680:_0x5d018a,_0xc2becf=_0x203680+_0x48f76c>_0xc2becf?_0x203680+_0x48f76c:_0xc2becf,_0xb4d5c6=_0x358b0d<_0xb4d5c6?_0x358b0d:_0xb4d5c6,_0x50ce12=_0x358b0d+_0x33aa2d>_0x50ce12?_0x358b0d+_0x33aa2d:_0x50ce12;}return{'minRow':_0x5d018a,'maxRow':_0xc2becf,'minColumn':_0xb4d5c6,'maxColumn':_0x50ce12};}['_setupColumnsRowsFixing'](){const _0x1da187=this['editor'],_0x53caf8=_0x1da187['plugins']['get']('TrackChangesEditing'),_0x397d19=_0x1da187['plugins']['get']('TableUtils');_0x1da187['model']['document']['on']('change:data',()=>{const _0x17864c=Array['from'](_0x1da187['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x94eb1,data:_0x69430a}of _0x17864c){const {group:_0x2c42f7,id:_0x393b6d,subType:_0xf51431}=_0x53caf8['_splitMarkerName'](_0x94eb1);if('suggestion'!=_0x2c42f7)continue;if(null!=_0x69430a['oldRange'])continue;const _0x37555f=_0x53caf8['getSuggestion'](_0x393b6d);this['_tablePostFixingSubtypes']['includes'](_0xf51431)&&this['_tableSuggestions']['add'](_0x37555f);}},{'priority':'low'});const _0x381c6b=(_0x248317,_0x5d33b6)=>{let _0x51be31=!0x1;const _0x43b74c=_0x5d33b6['createRangeOn'](_0x248317),_0x2c1132=_0x248317['findAncestor']('table'),_0x42d201=_0x397d19['getCellLocation'](_0x248317);for(const _0x2d7a4c of this['_tableSuggestions']){const _0x1f8508=_0x2d7a4c['subType'],_0x227d09=_0x1f8508['startsWith']('tablePaste'),_0x3ee851=_0x1f8508['substr'](_0x227d09?0xa:0x5),_0x160cde=_0x3ee851['toLowerCase'](),_0x2465ce=_0x160cde['substr'](0x0,0x3)+'span',_0x4e251e='min'+_0x3ee851,_0x507ed3='max'+_0x3ee851;if(!_0x2d7a4c['isInContent'])continue;if(_0x2c1132!=_0x2d7a4c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2d7a4c['isIntersectingWithRange'](_0x43b74c))continue;const _0x42bd29=_0x248317['hasAttribute'](_0x2465ce)?_0x248317['getAttribute'](_0x2465ce)-0x1:0x0,_0x4cd12e=this['_getSuggestionCoords'](_0x2d7a4c),_0xb82a96=_0x4cd12e[_0x4e251e],_0x491a7d=_0x4cd12e[_0x507ed3];_0xb82a96<=_0x42d201[_0x160cde]&&_0x42d201[_0x160cde]+_0x42bd29<=_0x491a7d&&(_0x2d7a4c['addRange'](_0x43b74c),_0x51be31=!0x0);}return _0x51be31;};_0x1da187['model']['document']['registerPostFixer'](_0x32333f=>{let _0x4ee273=!0x1;for(const _0x570d7f of _0x1da187['model']['document']['differ']['getChanges']())if('insert'==_0x570d7f['type']){if('tableRow'==_0x570d7f['name']){for(const _0x5a6b1f of _0x570d7f['position']['nodeAfter']['getChildren']())_0x4ee273=_0x4ee273||_0x381c6b(_0x5a6b1f,_0x32333f);}else'tableCell'==_0x570d7f['name']&&(_0x4ee273=_0x4ee273||_0x381c6b(_0x570d7f['position']['nodeAfter'],_0x32333f));}return _0x4ee273;});}['_getSuggestionCoords'](_0x1526e9){return this['_getCoordsForCells'](_0x1526e9['getRanges']()['map'](_0x16e149=>_0x16e149['start']['nodeAfter']));}}function Re(_0x45e057){return Array['from'](new Set(_0x45e057)['values']());}class _t extends _0x2a14ba{static get['requires'](){return[vt];}['afterInit'](){const _0x1b0973=this['editor'],_0x15b077=_0x1b0973['model']['document']['selection'],_0x381615=_0x1b0973['locale'];if(!_0x1b0973['plugins']['has']('TableEditing'))return;const _0x282368=_0x1b0973['plugins']['get']('TrackChangesEditing'),_0x3a870a=_0x1b0973['plugins']['get']('TableUtils'),_0x54349b=_0x1b0973['plugins']['get'](vt);_0x54349b['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x282368['enableCommand']('mergeTableCells',()=>{const _0x5b3aa3=_0x3a870a['getSelectionAffectedTableCells'](_0x1b0973['model']['document']['selection']);_0x1b0973['model']['change'](()=>{_0x282368['markMultiRangeBlockFormat'](_0x5b3aa3,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1b0973['commands']['get']('mergeTableCells')['on']('execute',(_0x1e85e0,_0x380f9e)=>{_0x1b0973['commands']['get']('trackChanges')['value']&&(_0x380f9e['length']>0x0&&_0x380f9e[_0x380f9e['length']-0x1]&&_0x380f9e[_0x380f9e['length']-0x1]['forceDefaultExecution']||_0x282368['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1e85e0['stop']());},{'priority':'highest'});for(const _0x2e1898 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1a97a6=_0x1b0973['commands']['get'](_0x2e1898);_0x282368['enableCommand'](_0x2e1898,()=>{const _0xfda449=_0x1b0973['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd0ef71=>_0xd0ef71['is']('element','tableCell')),_0x285290=_0x1a97a6['value'];_0x1b0973['model']['change'](()=>{_0x282368['markMultiRangeBlockFormat']([_0xfda449,_0x285290],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1906d5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5f6fa0=_0x1b0973['commands']['get'](_0x1906d5);_0x282368['enableCommand'](_0x1906d5,()=>{const _0x15f5fd=_0x3a870a['getSelectionAffectedTableCells'](_0x1b0973['model']['document']['selection'])[0x0],_0x31eb02=_0x15f5fd['findAncestor']('table'),{column:_0x2f9d17,row:_0x26825f}=_0x3a870a['getCellLocation'](_0x15f5fd);let _0x9b5d93=[];if('horizontally'==_0x5f6fa0['direction']){const _0x3bb579=_0x3a870a['createTableWalker'](_0x31eb02,{'startRow':_0x26825f,'endRow':_0x26825f,'includeAllSlots':!0x0});_0x9b5d93=Array['from'](_0x3bb579)['map'](_0x359d2d=>_0x359d2d['cell']);}else{const _0x27a06c=_0x3a870a['createTableWalker'](_0x31eb02,{'column':_0x2f9d17,'includeAllSlots':!0x0});_0x9b5d93=Array['from'](_0x27a06c)['map'](_0x5844b3=>_0x5844b3['cell']);}_0x1b0973['model']['change'](_0x560713=>{_0x282368['markBlockFormat'](_0x560713['createRangeOn'](_0x15f5fd),{'commandName':_0x1906d5,'commandParams':[]},_0x9b5d93,_0x1906d5);});});}_0x282368['descriptionFactory']['registerDescriptionCallback'](_0x1a7f40=>{if('formatBlock'!=_0x1a7f40['type']&&'formatInline'!=_0x1a7f40['type'])return;const {data:_0x2f6d7b}=_0x1a7f40;return _0x2f6d7b&&'mergeTableCells'==_0x2f6d7b['commandName']?{'type':'format','content':o(_0x381615,'*Merge\x20cells*')}:void 0x0;}),_0x282368['descriptionFactory']['registerDescriptionCallback'](_0x4c8b2c=>{if('formatBlock'!=_0x4c8b2c['type']&&'formatInline'!=_0x4c8b2c['type'])return;const {data:_0x53bc60}=_0x4c8b2c;return _0x53bc60?'splitTableCellVertically'==_0x53bc60['commandName']?{'type':'format','content':o(_0x381615,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x53bc60['commandName']?{'type':'format','content':o(_0x381615,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2619c0=_0x54349b['_acceptFormatSuggestionCallbackFactory']();for(const _0x40752a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x282368['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x40752a,'accept',_0x2619c0);for(const _0x4a6e63 of['splitTableCellVertically','splitTableCellHorizontally'])_0x282368['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a6e63,'accept',_0x2619c0);_0x282368['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x508664=>{_0x1b0973['model']['change'](_0x1b9f56=>{const _0x3ac27f=Array['from'](_0x15b077['getRanges']())['map'](_0x2ad30d=>_0x5580c5['fromRange'](_0x2ad30d));_0x1b9f56['setSelection'](_0x508664),_0x1b0973['commands']['get']('mergeTableCells')['refresh'](),_0x1b0973['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3309e3=_0x3ac27f['filter'](_0x177b13=>'$graveyard'!=_0x177b13['root']['rootName']);_0x3309e3['length']>0x0&&_0x1b9f56['setSelection'](_0x3309e3);for(const _0x4e7841 of _0x3ac27f)_0x4e7841['detach']();});});for(const _0x39b768 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x394d69=_0x1b0973['commands']['get'](_0x39b768);_0x394d69['on']('set:isEnabled',(_0x4cbdf7,_0x117847,_0x53b8fd)=>{if(_0x53b8fd){const _0x2fb2df=_0x1b0973['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fecad=>_0x4fecad['is']('element','tableCell'));this['_areMergableCells'](_0x394d69['value'],_0x2fb2df)||(_0x4cbdf7['return']=!0x1,_0x4cbdf7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1edb3e=this['editor']['commands']['get']('mergeTableCells'),_0x1b4609=this['editor']['plugins']['get']('TableUtils');if(!_0x1edb3e['isEnabled'])return!0x1;const _0x44e830=_0x1b4609['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4b99e7 of _0x44e830)for(const _0x3ec329 of _0x44e830)if(_0x4b99e7!=_0x3ec329&&!this['_areMergableCells'](_0x4b99e7,_0x3ec329))return!0x1;return!0x0;}['_areMergableCells'](_0x553757,_0x494e39){const _0x48982e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x545f9f=this['editor']['model']['createRangeOn'](_0x553757),_0x37e32f=this['editor']['model']['createRangeOn'](_0x494e39),_0x15b231=new Set(),_0x1b1887=new Set();for(const _0x4d4410 of _0x48982e['getSuggestions']())if(('insertion'==_0x4d4410['type']||'deletion'==_0x4d4410['type']||'mergeTableCells'==_0x4d4410['subType'])&&_0x4d4410['isInContent']){for(const _0x156fcb of _0x4d4410['getRanges']())_0x156fcb['containsRange'](_0x545f9f,!0x0)&&_0x15b231['add'](_0x4d4410['type']+':'+_0x4d4410['author']['id']),_0x156fcb['containsRange'](_0x37e32f,!0x0)&&_0x1b1887['add'](_0x4d4410['type']+':'+_0x4d4410['author']['id']);}if(_0x15b231['size']!=_0x1b1887['size'])return!0x1;for(const _0x4d7d5 of _0x15b231)if(!_0x1b1887['has'](_0x4d7d5))return!0x1;return!0x0;}}class Ct extends _0x2a14ba{static get['requires'](){return[vt];}['afterInit'](){const _0x47d670=this['editor'];if(!_0x47d670['plugins']['has']('TableEditing'))return;const _0x1c2945=_0x47d670['locale'],_0x4bfc45=_0x47d670['plugins']['get']('TrackChangesEditing');_0x4bfc45['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4bfc45['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4bfc45['registerBlockAttribute']('headingRows'),_0x4bfc45['registerBlockAttribute']('headingColumns'),_0x4bfc45['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x1c2945,'FORMAT_HEADER_ROW')),_0x4bfc45['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x1c2945,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x49997d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e547b=this['editor']['plugins']['get']('TableUtils'),_0x3f534d=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x57558f({showActiveMarker:_0x546596=!0x0,setDataAttribute:_0x512933=!0x0}={}){return(_0x5d1b40,_0x37ac49,_0x1101e9)=>{const {type:_0x2c55e8,id:_0xd9457d}=_0x49997d['_splitMarkerName'](_0x37ac49['markerName']),_0x5ddf46=_0x49997d['getSuggestion'](_0xd9457d),_0x490745=_0x5ddf46['data'];if('formatBlock'!=_0x5ddf46['type']||!_0x490745||'setTableColumnHeader'!=_0x490745['commandName'])return;if(_0x37ac49['item'])return void _0x5d1b40['stop']();if(!_0x1101e9['consumable']['consume'](_0x37ac49['markerRange'],_0x5d1b40['name']))return;const _0x3ff3ae=_0x37ac49['markerRange']['start']['nodeAfter'],_0x121399=_0x37ac49['markerRange']['end']['nodeBefore'],_0x141c5c=_0x3ff3ae['parent']['parent'],{column:_0x2d1565}=_0x1e547b['getCellLocation'](_0x3ff3ae),{column:_0x19e6d0}=_0x1e547b['getCellLocation'](_0x121399);for(let _0x430890=_0x2d1565;_0x430890<=_0x19e6d0;_0x430890++){const _0x4bc2be=_0x1e547b['createTableWalker'](_0x141c5c,{'column':_0x430890,'includeAllSlots':!0x1});for(const _0x7cbc93 of _0x4bc2be){const _0x440305=_0x7cbc93['cell'],_0x216498=_0x1101e9['mapper']['toViewElement'](_0x440305);_0x1101e9['writer']['addClass']('ck-suggestion-marker-'+_0x2c55e8,_0x216498),_0x512933&&_0x1101e9['writer']['setAttribute']('data-suggestion',_0xd9457d,_0x216498),_0x1101e9['mapper']['bindElementToMarker'](_0x216498,_0x37ac49['markerName']),_0x546596&&(_0x49997d['activeMarkers']['includes'](_0x37ac49['markerName'])?_0x1101e9['writer']['addClass']('ck-suggestion-marker--active',_0x216498):_0x1101e9['writer']['removeClass']('ck-suggestion-marker--active',_0x216498));}}};}_0x49997d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3f534d),_0x49997d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3f534d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x57558f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x598bc3,_0x238f45,_0x1df7c6)=>{_0x1df7c6['options']['showSuggestionHighlights']&&_0x57558f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x598bc3,_0x238f45,_0x1df7c6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x10016f,_0x5d2be1,_0x358114)=>{const {type:_0x1ede02,id:_0x1861be}=_0x49997d['_splitMarkerName'](_0x5d2be1['markerName']),_0x50defd=_0x49997d['getSuggestion'](_0x1861be),_0x415f90=_0x50defd['data'];if('formatBlock'!=_0x50defd['type']||!_0x415f90||'setTableColumnHeader'!=_0x415f90['commandName'])return;const _0x15ff28=_0x358114['mapper']['markerNameToElements'](_0x5d2be1['markerName']);if(_0x15ff28){for(const _0x33306b of _0x15ff28)_0x358114['writer']['removeClass']('ck-suggestion-marker-'+_0x1ede02,_0x33306b),_0x358114['writer']['removeClass']('ck-suggestion-marker--active',_0x33306b),_0x358114['writer']['removeAttribute']('data-suggestion',_0x33306b),_0x358114['mapper']['unbindElementFromMarkerName'](_0x33306b,_0x5d2be1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c5f46=this['editor'],_0x7d260d=_0x1c5f46['locale'];function _0x17adeb(_0x5b6230){return{'type':'format','content':o(_0x7d260d,'*Format:*\x20%0',_0x5b6230)};}_0x1c5f46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378d85=>{if('formatBlock'!=_0x378d85['type'])return;const {data:_0x4709ef}=_0x378d85;if(_0x4709ef){if('setTableRowHeader'==_0x4709ef['commandName']){const _0x2acc83=_0x4709ef['commandParams'][0x0]['forceValue'];return _0x17adeb(o(_0x7d260d,_0x2acc83?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4709ef['commandName']){const _0x1ea67f=_0x4709ef['commandParams'][0x0]['forceValue'];return _0x17adeb(o(_0x7d260d,_0x1ea67f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x24de7c=>[_0x24de7c,null]));class Nt extends _0x2a14ba{static get['requires'](){return[vt];}['afterInit'](){const _0x10b358=this['editor'];if(!_0x10b358['plugins']['has']('TableClipboard'))return;const _0x41791f=_0x10b358['plugins']['get']('TrackChangesEditing'),_0x7fda30=_0x10b358['plugins']['get']('TableUtils'),_0x4db5b1=_0x10b358['plugins']['get'](vt),_0x1904c3=_0x10b358['plugins']['get']('TableClipboard');_0x4db5b1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x10b358['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x10b358['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xbfe4ea=null;_0x10b358['model']['on']('insertContent',(_0xa9feae,_0x3ddcce)=>{const [_0x3e5d07,_0x38ab13]=_0x3ddcce,_0xc6c868=_0x3ddcce[_0x3ddcce['length']-0x1];_0xc6c868&&_0xc6c868['forceDefaultExecution']||_0x41791f['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1b3d14,_0x1c7473,_0x7e80a2,_0x3a3ac5,_0x2a8d96){if(_0x1c7473&&!_0x1c7473['is']('documentSelection'))return!0x1;const _0x2a7fb0=_0x2a8d96['getTableIfOnlyTableInContent'](_0x1b3d14,_0x7e80a2);if(!_0x2a7fb0||!Ae(_0x2a7fb0,void 0x0,_0x3a3ac5))return!0x1;const _0xca505d=_0x3a3ac5['getSelectionAffectedTableCells'](_0x7e80a2['document']['selection']);if(!_0xca505d['length'])return!0x1;const _0x46fc16=_0xca505d[0x0]['findAncestor']('table'),_0x55a264=_0x3a3ac5['getRowIndexes'](_0xca505d),_0x40b97f=_0x3a3ac5['getColumnIndexes'](_0xca505d),_0x2043d8={'startRow':_0x55a264['first'],'endRow':_0x55a264['last'],'startColumn':_0x40b97f['first'],'endColumn':_0x40b97f['last']};return 0x1==_0xca505d['length']&&(_0x2043d8['endRow']+=_0x3a3ac5['getRows'](_0x2a7fb0)-0x1,_0x2043d8['endColumn']+=_0x3a3ac5['getColumns'](_0x2a7fb0)-0x1),Ae(_0x46fc16,_0x2043d8,_0x3a3ac5);}(_0x3e5d07,_0x38ab13,_0x10b358['model'],_0x7fda30,_0x1904c3)&&(_0xa9feae['stop'](),_0xbfe4ea={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x10b358['model']['change'](()=>{_0x10b358['model']['insertContent'](_0x3ddcce[0x0],_0x3ddcce[0x1],_0x3ddcce[0x2],{'forceDefaultExecution':!0x0});const _0x16e194=_0xbb8093(),{rowInsertionRanges:_0x5d9f3b,columnInsertionRanges:_0x59b37b,insertionRanges:_0xa9f431,deletionRanges:_0x40fd8c,cells:_0x36d3b0}=_0xbfe4ea;_0x5d9f3b['length']&&_0x41791f['markMultiRangeInsertion'](_0x5d9f3b,'tablePasteRow',{'tablePasteChainId':_0x16e194}),_0x59b37b['length']&&_0x41791f['markMultiRangeInsertion'](_0x59b37b,'tablePasteColumn',{'tablePasteChainId':_0x16e194}),_0xa9f431['length']&&(_0x41791f['markMultiRangeInsertion'](_0xa9f431,'tablePaste',{'tablePasteChainId':_0x16e194,'skipNestingCheck':!0x0}),_0xa9f431['forEach'](_0x3058ed=>_0x3058ed['detach']?.())),_0x40fd8c['length']&&(_0x41791f['markMultiRangeDeletion'](_0x40fd8c,'tablePaste',{'tablePasteChainId':_0x16e194,'skipNestingCheck':!0x0}),_0x40fd8c['forEach'](_0x49aa8b=>_0x49aa8b['detach']?.()));const _0x2bdc52=_0x41791f['markMultiRangeBlockFormat'](_0x36d3b0['map'](({element:_0x34d6a1})=>_0x34d6a1),{'formatGroupId':_0xbb8093()},[],'tablePasteCell',{'tablePasteChainId':_0x16e194});if(_0x2bdc52){const _0x42753e=_0x2bdc52['getMarkers'](),_0x24d010=[];for(const {element:_0x436bda,attributes:_0x4141bc}of _0x36d3b0){if(!_0x4141bc)continue;const _0x34f5c9=_0x10b358['model']['createRangeOn'](_0x436bda),_0x5957a6=_0x42753e['find'](_0x3928c1=>_0x3928c1['getRange']()['isEqual'](_0x34f5c9));_0x5957a6&&_0x24d010['push']([_0x5957a6['name'],_0x4141bc]);}_0x24d010['length']&&_0x2bdc52['setAttribute']('markerAttributes',Object['fromEntries'](_0x24d010));}_0xbfe4ea=null;}));},{'priority':_0x58f002['high']+0xa}),_0x10b358['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x7c7a2d,_0x5f10f0)=>{const [_0x3d9111,_0x331e97,,_0x28619e]=_0x5f10f0;if(!_0xbfe4ea)return;_0x7c7a2d['stop']();const _0x38b258=_0x3d9111['cell'],_0x550c73=_0x331e97,_0x583716=je(_0x38b258),_0x10dca9=je(_0x550c73);_0x7c7a2d['return']=_0x38b258;let _0x30a852=null,_0x260b77=null;if(_0x10dca9||_0x583716){if(_0x583716&&!_0x10dca9){_0x28619e['remove'](_0x38b258['getChild'](0x0));for(const _0xaaf0b3 of Array['from'](_0x550c73['getChildren']()))_0x28619e['insert'](_0xaaf0b3,_0x38b258,'end');const _0x21269e=_0xbfe4ea['rowInsertionIndexes']['includes'](_0x3d9111['row']),_0x5c83ac=_0xbfe4ea['columnInsertionIndexes']['includes'](_0x3d9111['column']);_0x21269e||_0x5c83ac||(_0x30a852=_0x5580c5['fromRange'](_0x28619e['createRangeIn'](_0x38b258)));}else _0x10dca9&&!_0x583716&&(_0x260b77=_0x28619e['createRangeIn'](_0x38b258));}else{const _0x421c75=_0x28619e['createElement']('tableCellSuggestion'),_0x1110f3=_0x28619e['createElement']('tableCellSuggestion');_0x28619e['wrap'](_0x28619e['createRangeIn'](_0x38b258),_0x1110f3),_0x28619e['insert'](_0x421c75,_0x38b258,0x0);for(const _0x2f22e3 of Array['from'](_0x550c73['getChildren']()))_0x28619e['insert'](_0x2f22e3,_0x421c75,'end');_0x30a852=_0x5580c5['fromRange'](_0x28619e['createRangeOn'](_0x421c75)),_0x260b77=_0x5580c5['fromRange'](_0x28619e['createRangeOn'](_0x1110f3));}const _0x146ea2=Array['from'](_0x550c73['getAttributes']())['filter'](([_0x197ce1])=>we['includes'](_0x197ce1));_0xbfe4ea['cells']['push']({'element':_0x38b258,'attributes':_0x146ea2['length']?Object['fromEntries'](_0x146ea2):null}),_0x30a852&&_0xbfe4ea['insertionRanges']['push'](_0x30a852),_0x260b77&&_0xbfe4ea['deletionRanges']['push'](_0x260b77);},{'priority':'high'}),_0x7fda30['on']('insertColumns',(_0x3eac19,_0x3047da)=>{const [_0x30fda0,_0x4c1603={}]=_0x3047da;if(!_0xbfe4ea)return;const _0x15847a=_0x4c1603['at']||0x0,_0xa8f47d=_0x4c1603['columns']||0x1;_0xbfe4ea['columnInsertionIndexes']=new Array(_0xa8f47d)['fill'](_0x15847a)['map']((_0x37a3bb,_0x12157c)=>_0x37a3bb+_0x12157c);for(const {cell:_0x32f341}of _0x7fda30['createTableWalker'](_0x30fda0,{'startColumn':_0x15847a,'endColumn':_0x15847a+_0xa8f47d-0x1}))_0xbfe4ea['columnInsertionRanges']['push'](_0x10b358['model']['createRangeOn'](_0x32f341));},{'priority':'low'}),_0x7fda30['on']('insertRows',(_0x38f275,_0x3dd8bc)=>{const [_0x2ddeb7,_0x3c29fd={}]=_0x3dd8bc;if(!_0xbfe4ea)return;const _0x1d849c=_0x3c29fd['at']||0x0,_0x527e08=_0x3c29fd['rows']||0x1;_0xbfe4ea['rowInsertionIndexes']=new Array(_0x527e08)['fill'](_0x1d849c)['map']((_0x558381,_0x41a2da)=>_0x558381+_0x41a2da);for(const {cell:_0xa5f0e5}of _0x7fda30['createTableWalker'](_0x2ddeb7,{'startRow':_0x1d849c,'endRow':_0x1d849c+_0x527e08-0x1}))_0xbfe4ea['rowInsertionRanges']['push'](_0x10b358['model']['createRangeOn'](_0xa5f0e5));},{'priority':'low'}),_0x41791f['descriptionFactory']['registerDescriptionCallback'](_0x158903=>{if(_0x158903['subType']&&_0x158903['subType']['startsWith']('tablePaste'))return _0x158903['previous']?{}:{'type':'insertion','content':o(_0x10b358['locale'],'*Replace\x20table\x20cells*')};});const _0x235270=()=>!0x1;for(const _0x568c2a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x41791f['_suggestionFactory']['registerCustomCallback']('insertion',_0x568c2a,'join',_0x235270),_0x41791f['_suggestionFactory']['registerCustomCallback']('deletion',_0x568c2a,'join',_0x235270),_0x41791f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x568c2a,'join',_0x235270);_0x41791f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x235270),_0x41791f['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x38c2fe,_0x1d0df9,_0x343be5)=>{const _0x289010=_0x38c2fe['map'](_0x3b84ae=>_0x3b84ae['getContainedElement']())['filter'](_0x1e6c88=>_0x1e6c88),_0x4ff98e=new Map(_0x289010['map'](_0x3fe27e=>[_0x3fe27e,null]));if(_0xbfe4ea){for(const {element:_0x39c731,attributes:_0x408ad8}of _0xbfe4ea['cells'])_0x408ad8&&_0x4ff98e['set'](_0x39c731,_0x408ad8);}else{if(_0x343be5&&_0x343be5['markerAttributes'])for(const [_0x351007,_0x2c4277]of Object['entries'](_0x343be5['markerAttributes'])){const _0x552988=_0x10b358['model']['markers']['get'](_0x351007),_0x5e3d4d=_0x552988?_0x552988['getRange']()['getContainedElement']():null;_0x5e3d4d&&_0x4ff98e['set'](_0x5e3d4d,_0x2c4277);}}_0x10b358['model']['change'](_0x9696eb=>{for(const [_0x30bedc,_0x28e7eb]of _0x4ff98e)_0x9696eb['setAttributes']({...ve,..._0x28e7eb},_0x30bedc);});});const _0x252f0c=(_0x48fba2,_0x431605)=>{_0x41791f['_suggestionFactory']['registerCustomCallback'](_0x48fba2,'tablePaste',_0x431605,(_0x3692b8,_0x290124,_0x19a055)=>{_0x10b358['model']['change'](_0x564bf6=>{const _0x4ca280=[];for(const _0x1b3ba7 of _0x3692b8){const _0x3ce4cc=_0x1b3ba7['start']['nodeAfter'];_0x3ce4cc['is']('element','tableCellSuggestion')&&_0x4ca280['push'](_0x3ce4cc);}_0x41791f['_suggestionFactory']['getSuggestionCallback'](_0x48fba2,null,_0x431605)(_0x3692b8,_0x290124,_0x19a055);for(const _0x14f0b5 of _0x4ca280)'$graveyard'!=_0x14f0b5['root']['rootName']&&_0x564bf6['unwrap'](_0x14f0b5);});});};_0x252f0c('insertion','accept'),_0x252f0c('insertion','discard'),_0x252f0c('deletion','accept'),_0x252f0c('deletion','discard'),_0x41791f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x34bf82=>{const _0x5b031c=_0x34bf82['map'](_0x29fb05=>_0x29fb05['getContainedElement']()),_0x469b7a=_0x5b031c[0x0]['findAncestor']('table'),{minRow:_0x3e2ad7,maxRow:_0x39a6ca}=_0x4db5b1['_getCoordsForCells'](_0x5b031c);_0x7fda30['removeRows'](_0x469b7a,{'at':_0x3e2ad7,'rows':_0x39a6ca-_0x3e2ad7+0x1});}),_0x41791f['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x55b6e2=>{const _0x207e4a=_0x55b6e2['map'](_0x3df158=>_0x3df158['getContainedElement']()),_0x44e622=_0x207e4a[0x0]['findAncestor']('table'),{minColumn:_0x4b5d54,maxColumn:_0x4b7081}=_0x4db5b1['_getCoordsForCells'](_0x207e4a);_0x7fda30['removeColumns'](_0x44e622,{'at':_0x4b5d54,'columns':_0x4b7081-_0x4b5d54+0x1});});const _0x29de59=(_0x54cd3e,_0x545828)=>{if(!_0x545828['subType']||!_0x545828['subType']['startsWith']('tablePaste'))return;const _0x569038=_0x545828['attributes']['tablePasteChainId'],_0x31fab7=_0x41791f['getSuggestions']()['filter'](_0x254612=>_0x254612['isInContent']&&_0x254612['attributes']&&_0x254612['attributes']['tablePasteChainId']==_0x569038);_0x31fab7['length']&&_0x545828['getAllAdjacentSuggestions']()['length']!=_0x31fab7['length']&&_0x31fab7['reduce']((_0x5475cf,_0x2c1654)=>(_0x5475cf['next']=_0x2c1654,_0x2c1654['previous']=_0x5475cf,_0x2c1654));};function _0x332fb5(_0x32d462,_0x4d00a1=!0x0){const {id:_0x5e28dc,authorId:_0x1fd05b}=_0x41791f['_splitMarkerName'](_0x32d462['markerName']),_0x1ac1f8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4858cc=_0x41791f['activeMarkers']['includes'](_0x32d462['markerName']);return _0x4858cc&&_0x1ac1f8['push']('ck-suggestion-marker--active'),{'classes':_0x1ac1f8,'attributes':{'data-suggestion':_0x5e28dc,'data-author-id':_0x1fd05b},'priority':_0x4858cc&&_0x4d00a1?0xbc2:0xbb8};}_0x41791f['on']('suggestionLoaded',_0x29de59,{'priority':'high'}),_0x41791f['on']('suggestionUnloaded',_0x29de59,{'priority':'high'}),_0x10b358['model']['document']['registerPostFixer'](()=>{let _0x62bcae=!0x1;const _0x52a704=Array['from'](_0x10b358['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c8c7f,data:_0x21f440}of _0x52a704){const {group:_0x628b,type:_0x154057,id:_0x5af8ee}=_0x41791f['_splitMarkerName'](_0x4c8c7f);if('suggestion'!=_0x628b||'deletion'!=_0x154057||_0x21f440['oldRange'])continue;if(!_0x41791f['hasSuggestion'](_0x5af8ee))continue;const _0x5c707b=_0x41791f['getSuggestion'](_0x5af8ee)['getRanges'](),_0x57bb3f=_0x10b358['plugins']['get']('Users')['me'];for(const _0x58337c of _0x41791f['getSuggestions']()){if(!_0x58337c['isInContent']||_0x58337c['author']!=_0x57bb3f)continue;if('formatBlock'!=_0x58337c['type']||'tablePasteCell'!=_0x58337c['subType'])continue;if(_0x58337c['getRanges']()['every'](_0x2cf1b2=>_0x5c707b['some'](_0x36a217=>_0x36a217['containsRange'](_0x2cf1b2,!0x0)))){for(const _0x7bdee3 of _0x58337c['getAllAdjacentSuggestions']())_0x7bdee3['isInContent']&&(_0x7bdee3['discard'](),_0x62bcae=!0x0);}}}return _0x62bcae;}),_0x10b358['model']['document']['registerPostFixer'](_0x2a6c12=>{const _0x47f183=_0x10b358['commands']['get']('redo');if(!_0x47f183||!_0x47f183['_createdBatches']['has'](_0x2a6c12['batch']))return!0x1;let _0x2790f5=!0x1;const _0x1b9974=_0x10b358['plugins']['get']('Users')['me'],_0x2c9e1f=_0x10b358['model']['document']['differ']['getChanges'](),_0x2a3fe6=Array['from'](_0x10b358['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4ae5b7,data:_0x56d917})=>{const {group:_0x127569,subType:_0x2669a9,authorId:_0x340c83}=_0x41791f['_splitMarkerName'](_0x4ae5b7);return'suggestion'==_0x127569&&'tablePaste'==_0x2669a9&&_0x340c83==_0x1b9974['id']&&!_0x56d917['oldRange'];});for(const _0x2f5ed7 of _0x2c9e1f){if('insert'!=_0x2f5ed7['type']||'tableCellSuggestion'!=_0x2f5ed7['name']||0x1!=_0x2f5ed7['length'])continue;const _0x5a36a6=_0x2a6c12['createRange'](_0x2f5ed7['position'],_0x2f5ed7['position']['getShiftedBy'](0x1));if(!_0x2a3fe6['find'](({data:_0x41161d})=>_0x41161d['newRange']['isEqual'](_0x5a36a6))){for(const {name:_0x4a8249,data:_0x598f38}of _0x2a3fe6)if(_0x5a36a6['containsRange'](_0x598f38['newRange'])){_0x2a6c12['updateMarker'](_0x4a8249,{'range':_0x5a36a6}),_0x2790f5=!0x0;break;}}}return _0x2790f5;}),_0x10b358['model']['document']['registerPostFixer'](_0x2927a0=>{let _0x561ac1=!0x1;const _0x52ccfe=_0x10b358['plugins']['get']('Users')['me'],_0x3a2c77=_0x41791f['getSuggestions']()['filter'](_0xd87a8d=>_0xd87a8d['isInContent']&&_0xd87a8d['author']==_0x52ccfe),_0x3efaf=new Set(),_0x1d647b=new Set();for(const _0x63fafa of _0x3a2c77)if('tablePaste'==_0x63fafa['subType'])for(const _0x190cf4 of _0x63fafa['getMarkers']()){const _0x38f7a3=_0x190cf4['getRange']()['getContainedElement']();if(_0x38f7a3){if(_0x38f7a3['is']('element','tableCellSuggestion')&&je(_0x38f7a3)){_0x63fafa['removeMarker'](_0x190cf4['name']),_0x3efaf['add'](_0x38f7a3),_0x561ac1=!0x0;const _0xc8b5e=_0x38f7a3['nextSibling'],_0x112aa1=_0x38f7a3['previousSibling'],_0x119689=_0xc8b5e&&_0xc8b5e['is']('element','tableCellSuggestion'),_0x7c035a=_0x112aa1&&_0x112aa1['is']('element','tableCellSuggestion');_0x119689&&!_0x3efaf['has'](_0xc8b5e)&&_0x1d647b['add'](_0xc8b5e),_0x7c035a&&!_0x3efaf['has'](_0x112aa1)&&_0x1d647b['add'](_0x112aa1);}else _0x38f7a3['is']('element','paragraph')&&_0x38f7a3['isEmpty']&&(_0x63fafa['removeMarker'](_0x190cf4['name']),_0x561ac1=!0x0);}}else{if('tablePasteCell'==_0x63fafa['subType']){if(!_0x63fafa['attributes']||!_0x63fafa['attributes']['tablePasteChainId'])continue;const _0xbd417f=_0x63fafa['attributes']['markerAttributes'];if(_0xbd417f&&Object['keys'](_0xbd417f)['length'])continue;const _0x591d56=_0x63fafa['attributes']['tablePasteChainId'];let _0x784347=!0x0,_0x5e6968=!0x0;for(const _0x19684c of _0x3a2c77)if(_0x19684c['subType']&&_0x19684c['subType']['startsWith']('tablePaste')){if(!_0x19684c['attributes']['tablePasteChainId']){_0x5e6968=!0x1;break;}if(_0x19684c['id']!=_0x63fafa['id']&&_0x19684c['attributes']['tablePasteChainId']==_0x591d56){_0x784347=!0x1;break;}}_0x5e6968&&_0x784347&&(_0x63fafa['removeMarkers'](),_0x561ac1=!0x0);}}for(const _0x5ce48a of _0x3efaf)_0x2927a0['remove'](_0x5ce48a);for(const _0x2788a5 of _0x1d647b)_0x2927a0['unwrap'](_0x2788a5);return _0x561ac1;}),_0x10b358['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x45547f=>_0x332fb5(_0x45547f),'converterPriority':'high'}),_0x10b358['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4cc463,_0xa6ad3e)=>_0xa6ad3e['options']['showSuggestionHighlights']?_0x332fb5(_0x4cc463,!0x1):null,'converterPriority':'high'});const _0x5bacda=_0x10b358['editing']['view'];this['listenTo'](_0x5bacda['document'],'clipboardOutput',(_0x12ebe9,_0x442217)=>{const _0x3b32a7=[];for(const _0x2697db of _0x5bacda['createRangeIn'](_0x442217['content'])['getItems']())_0x2697db['is']('element','suggestion-td')&&_0x3b32a7['push'](_0x2697db);_0x5bacda['change'](_0x47a570=>{for(const _0x15067a of _0x3b32a7)_0x47a570['move'](_0x47a570['createRangeIn'](_0x15067a),_0x47a570['createPositionBefore'](_0x15067a)),_0x47a570['remove'](_0x15067a);});});}}function je(_0x2c5de7){if(_0x2c5de7['isEmpty'])return!0x0;const _0x295739=_0x2c5de7['getChild'](0x0);return _0x295739['is']('element','paragraph')&&_0x295739['isEmpty'];}function Ae(_0x11a33f,_0x1f4eb4={},_0x58e76b){for(const {isAnchor:_0x49d328,cellHeight:_0x27bee4,cellWidth:_0x2bb150}of _0x58e76b['createTableWalker'](_0x11a33f,{'includeAllSlots':!0x0,..._0x1f4eb4}))if(!_0x49d328||0x1!=_0x27bee4||0x1!=_0x2bb150)return!0x1;return!0x0;}class Dt extends _0x2a14ba{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x146699=this['editor']['plugins']['get']('TrackChangesEditing');_0x146699['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x146699['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x146699['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x146699['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x146699['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x146699['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xfe4a99,_0x951806){const _0x4de304=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12b6bd=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38449c=_0x951806['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3214d5=_0x12b6bd['getColumnGroupElement'](_0x38449c);let _0x1516f0=_0x3214d5?_0x12b6bd['getTableColumnsWidths'](_0x3214d5):null,_0xe0a5b5=_0x38449c['getAttribute']('tableWidth')||null;const _0x2cfdf2=_0x951806['tableWidth']||_0xe0a5b5,_0x3b9b32=_0x951806['columnWidths']||_0x1516f0,_0x230215=this['editor']['plugins']['get']('Users')['me'];for(const _0x32e18f of _0x4de304['getSuggestions']()){const _0x394ee8=_0x32e18f['getContainedElement']();if('resizeTable'===_0x32e18f['subType']&&_0x394ee8===_0x38449c){_0x32e18f['author']!==_0x230215&&_0x32e18f['discard']();const _0xb8fb42=_0x32e18f['data']['commandParams'];_0xe0a5b5=_0xb8fb42[0x0]['tableWidth'],_0x1516f0=_0xb8fb42[0x0]['columnWidths'];break;}}_0xfe4a99({'table':_0x38449c,'tableWidth':_0x2cfdf2,'columnWidths':_0x3b9b32}),_0x4de304['markBlockFormat'](_0x38449c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xe0a5b5,'columnWidths':_0x1516f0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x433e99){if('formatBlock'!=_0x433e99['type']&&'formatInline'!=_0x433e99['type'])return;const {data:_0x1387bc}=_0x433e99;if(_0x1387bc&&'resizeTable'===_0x1387bc['formatGroupId']){const _0x4a3774='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4a3774)};}}}class Mt extends _0x2a14ba{['afterInit'](){const _0x4cc72a=this['editor'];_0x4cc72a['plugins']['has']('Template')&&_0x4cc72a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x2a14ba{['afterInit'](){const _0x51b501=this['editor'];if(!_0x51b501['commands']['get']('insertTableOfContents'))return;_0x51b501['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xbe0ba6=_0x51b501['plugins']['get']('TrackChangesEditing'),_0xb2b155=_0x51b501['locale'];_0xbe0ba6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1eebe2=>o(_0xb2b155,'ELEMENT_TABLE_OF_CONTENTS',_0x1eebe2));}}class Bt extends _0x2a14ba{['afterInit'](){const _0x43d166=this['editor'];if(!_0x43d166['plugins']['has']('Title'))return;const _0x21e256=_0x43d166['plugins']['get']('TrackChangesEditing');_0x21e256['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x43d166['locale'],'ELEMENT_TITLE')),_0x43d166['model']['document']['registerPostFixer'](_0x2060a9=>{let _0x1690ed=!0x1;const _0x366d8c=Array['from'](_0x43d166['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x203a42,data:_0x598205}of _0x366d8c){const {group:_0x116994}=_0x21e256['_splitMarkerName'](_0x203a42);if('suggestion'!==_0x116994||!_0x598205['newRange'])continue;const _0x428c9a=_0x598205['newRange'],_0x57ee96=_0x428c9a['end']['nodeBefore'];if(!_0x57ee96||!_0x57ee96['is']('element','title-content'))continue;if(!_0x428c9a['start']['isTouching'](_0x428c9a['end']))continue;const _0x48f715=_0x43d166['model']['schema']['getNearestSelectionRange'](_0x428c9a['end'],'forward');if(_0x48f715&&_0x48f715['isCollapsed']){const _0x2494e6=_0x2060a9['createRange'](_0x428c9a['start'],_0x48f715['start']);_0x2494e6['isEqual'](_0x428c9a)||(_0x2060a9['updateMarker'](_0x203a42,{'range':_0x2494e6}),_0x1690ed=!0x0);}_0x1690ed||(_0x2060a9['removeMarker'](_0x203a42),_0x1690ed=!0x0);}return _0x1690ed;});}}class Ot extends _0x2a14ba{['afterInit'](){const _0x4ba756=this['editor'],_0x377617=_0x4ba756['plugins']['get']('TrackChangesEditing');_0x4ba756['plugins']['has']('UndoEditing')&&(_0x377617['enableCommand']('undo'),_0x377617['enableCommand']('redo'));}}class Rt extends _0x2a14ba{static get['requires'](){return[vt];}['afterInit'](){const _0x1e131b=this['editor'];if(!_0x1e131b['plugins']['has']('TableCaptionEditing'))return;_0x1e131b['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x2a14ba{['tableProperties'];['tableCellProperties'];constructor(_0x1933e6){super(_0x1933e6),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 _0x3eba68=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x510be0 of this['tableProperties'])_0x3eba68['enableCommand'](_0x510be0,(_0x91dfd2,_0x909c2b)=>{const _0x403715=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x510be0,[_0x403715],this['tableProperties'],'tableProperties',_0x91dfd2,_0x909c2b);});_0x3eba68['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3eba68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3eba68['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x42500b,_0x2a8342)=>this['handleDiscardAction'](this['tableProperties'],_0x42500b,_0x2a8342)),_0x3eba68['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5358de of this['tableCellProperties'])_0x3eba68['enableCommand'](_0x5358de,(_0x2e1471,_0x57db5c)=>{const _0x14b8a2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5358de,_0x14b8a2,this['tableCellProperties'],'tableCellProperties',_0x2e1471,_0x57db5c);});_0x3eba68['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3eba68['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3eba68['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xafab8d,_0x14da8b)=>this['handleDiscardAction'](this['tableCellProperties'],_0xafab8d,_0x14da8b)),_0x3eba68['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3eba68['descriptionFactory']['registerDescriptionCallback'](_0x394df4=>this['handleSuggestionDescription'](_0x394df4));}['_handlePropertyChange'](_0x1e08f0,_0x2a4fe6,_0x293257,_0x22214f,_0x1f2b12,_0x1054a2){const _0x48dd5f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1054a2['batch'],()=>{for(const _0x5a185c of _0x2a4fe6){if(this['_getSuggestion'](_0x5a185c,_0x22214f))_0x1f2b12(_0x1054a2);else{const _0x36282d={};for(const _0x45f121 of _0x293257){const _0x177c71=_0x5a185c['getAttribute'](_0x45f121);void 0x0!==_0x177c71&&(_0x36282d[_0x45f121]=_0x177c71);}_0x1f2b12(_0x1054a2),_0x48dd5f['markBlockFormat'](_0x5a185c,{'commandParams':[_0x36282d]},[],_0x22214f);}}});}['handleDiscardAction'](_0x2188f9,_0x14217c,_0x5e2694){const _0x4fb91a=_0x14217c[0x0]['start']['nodeAfter'],_0x5bf9fe=_0x5e2694['commandParams'][0x0];this['editor']['model']['change'](_0x26e30e=>{for(const _0x4cf22a of _0x2188f9)void 0x0!==_0x5bf9fe[_0x4cf22a]?_0x26e30e['setAttribute'](_0x4cf22a,_0x5bf9fe[_0x4cf22a],_0x4fb91a):_0x26e30e['removeAttribute'](_0x4cf22a,_0x4fb91a);});}['handleSuggestionDescription'](_0x39705c){if(_0x39705c['data'])switch(_0x39705c['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x18c730,_0x50e915){const _0xc20bc9=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x38f16e of _0xc20bc9['getSuggestions']({'skipNotAttached':!0x0})){const _0x1118be=_0x38f16e['getContainedElement']();if(_0x38f16e['subType']===_0x50e915&&_0x1118be===_0x18c730)return _0x38f16e;}return null;}}const m='$elementName';class p extends _0x2a14ba{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3d0662,_0x4cbe8b,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x24b62e){super(_0x24b62e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2b7423,_0x31ddb6,_0x255763,_0x4c778d)=>{this['_model']['change'](()=>{for(const _0x31c014 of[..._0x4c778d,..._0x255763])this['_model']['markers']['has'](_0x31c014)&&_0x24b62e['editing']['reconvertMarker'](_0x31c014);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x24b62e['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x24b62e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x24b62e['config']['get']('trackChanges.trackFormatChanges'),_0x24b62e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x24b62e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x24b62e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5c46e5=this['editor'],_0x2c36c1=(_0x5d37eb,_0x4dfdcc)=>{if('attribute'!=_0x5d37eb)return'ck-suggestion-marker-'+_0x5d37eb;const _0x50bea4=_0x4dfdcc['split']('|')[0x0];return this['_isBlockAttribute'](_0x50bea4)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5c46e5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5af04c=>{const {id:_0x241338,authorId:_0x1e8ba7,type:_0x1ca2e5,subType:_0xe6689f}=this['_splitMarkerName'](_0x5af04c['markerName']),_0xaaf5aa=['ck-suggestion-marker',_0x2c36c1(_0x1ca2e5,_0xe6689f)];let _0xf3a734=0xbb8;return this['activeMarkers']['includes'](_0x5af04c['markerName'])&&(_0xaaf5aa['push']('ck-suggestion-marker--active'),_0xf3a734=0xbc2),'deletion'==_0x1ca2e5&&(_0xf3a734+=0x5),{'classes':_0xaaf5aa,'attributes':{'data-suggestion':_0x241338,'data-author-id':_0x1e8ba7},'priority':_0xf3a734};}}),_0x5c46e5['conversion']['for']('dataDowncast')['add'](_0x78a65f=>{_0x78a65f['on']('addMarker:suggestion',(_0x5b7cea,_0x12d650,_0x4bcb42)=>{if(!_0x4bcb42['options']['showSuggestionHighlights'])return;const _0x2086ef=_0x12d650['item'];if(!_0x2086ef)return;const _0x530880=_0x4bcb42['mapper']['toViewElement'](_0x2086ef);_0x5c46e5['model']['schema']['isObject'](_0x2086ef)&&_0x530880&&!_0x530880['getCustomProperty']('widget')&&_0x530880['is']('containerElement')&&_0x55d317(_0x530880,_0x4bcb42['writer']);},{'priority':'high'});}),_0x5c46e5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xef8aba,_0x1481c6)=>{if(!_0x1481c6['options']['showSuggestionHighlights'])return null;const {type:_0x4412e0,subType:_0x4b9e71}=this['_splitMarkerName'](_0xef8aba['markerName']);return{'classes':['ck-suggestion-marker',_0x2c36c1(_0x4412e0,_0x4b9e71)],'priority':0xbb8};}});const _0x35f202=({showActiveMarkers:_0x19558d=!0x0,isAttributeSuggestion:_0x42af12=!0x1}={})=>(_0xc52211,_0x326253,_0x12ea92)=>{if(!_0x326253['item'])return;const {id:_0x4cf3ba,authorId:_0x263af4}=this['_splitMarkerName'](_0x326253['markerName']);if(_0x42af12){const _0x2daf30=this['_suggestions']['get'](_0x4cf3ba),_0x2b3b41=this['_getAttributeKey'](_0x2daf30);if(!this['_isBlockAttribute'](_0x2b3b41))return;}if(_0x326253['item']['is']('selection'))return void _0x12ea92['consumable']['consume'](_0x326253['item'],_0xc52211['name']);const _0x151350=_0x12ea92['mapper']['toViewElement'](_0x326253['item']);if(_0x326253['item']['is']('element')&&_0x5c46e5['model']['schema']['isBlock'](_0x326253['item'])&&!_0x151350['getCustomProperty']('addHighlight')){_0x12ea92['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x151350),_0x12ea92['writer']['setAttribute']('data-suggestion',_0x4cf3ba,_0x151350),_0x12ea92['writer']['setAttribute']('data-author-id',_0x263af4,_0x151350),_0x12ea92['mapper']['bindElementToMarker'](_0x151350,_0x326253['markerName']),_0x19558d&&(this['activeMarkers']['includes'](_0x326253['markerName'])?_0x12ea92['writer']['addClass']('ck-suggestion-marker--active',_0x151350):_0x12ea92['writer']['removeClass']('ck-suggestion-marker--active',_0x151350));for(const _0x2a6c26 of _0x5c46e5['model']['createRangeIn'](_0x326253['item'])['getItems']())_0x12ea92['consumable']['consume'](_0x2a6c26,_0xc52211['name']);_0x12ea92['consumable']['consume'](_0x326253['item'],_0xc52211['name']);}};_0x5c46e5['conversion']['for']('dataDowncast')['add'](_0x43bf0a=>{_0x43bf0a['on']('addMarker:suggestion:formatBlock',(_0x5ee4a6,_0x30a198,_0x28e1ad)=>{_0x28e1ad['options']['showSuggestionHighlights']&&_0x35f202({'showActiveMarkers':!0x1})(_0x5ee4a6,_0x30a198,_0x28e1ad);},{'priority':'highest'});}),_0x5c46e5['conversion']['for']('dataDowncast')['add'](_0x1ccd71=>{_0x1ccd71['on']('addMarker:suggestion:attribute',(_0x487b35,_0x269e7d,_0x4cdfc1)=>{_0x4cdfc1['options']['showSuggestionHighlights']&&_0x35f202({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x487b35,_0x269e7d,_0x4cdfc1);},{'priority':'highest'});}),_0x5c46e5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5ddd5e,_0x3f449c)=>_0x3f449c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5ddd5e['substr'](0xb)}}),_0x5c46e5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x28964d,{writer:_0x242f33})=>{let _0x4c60be='suggestion:'+_0x28964d['getAttribute']('suggestion-type')+':'+_0x28964d['getAttribute']('id');return _0x28964d['getAttribute']('marker-count')&&(_0x4c60be+=':'+_0x28964d['getAttribute']('marker-count')),_0x242f33['createElement']('$marker',{'data-name':_0x4c60be});}}),_0x5c46e5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5c46e5['conversion']['for']('editingDowncast')['add'](_0x3c354a=>{_0x3c354a['on']('addMarker:suggestion:formatBlock',_0x35f202(),{'priority':'high'});}),_0x5c46e5['conversion']['for']('editingDowncast')['add'](_0xda710c=>{_0xda710c['on']('addMarker:suggestion:attribute',_0x35f202({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5c46e5['conversion']['for']('editingDowncast')['add'](_0x51da53=>{_0x51da53['on']('removeMarker:suggestion:formatBlock',(_0x5d54d8,_0x52a9ef,_0x7a9442)=>{const _0x59140a=_0x7a9442['mapper']['markerNameToElements'](_0x52a9ef['markerName']);if(_0x59140a){for(const _0x30bd37 of _0x59140a)_0x30bd37['getCustomProperty']('addHighlight')||(_0x7a9442['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x30bd37),_0x7a9442['writer']['removeAttribute']('data-suggestion',_0x30bd37),_0x7a9442['writer']['removeAttribute']('data-author-id',_0x30bd37),_0x7a9442['mapper']['unbindElementFromMarkerName'](_0x30bd37,_0x52a9ef['markerName']));}},{'priority':'high'});}),_0x5c46e5['conversion']['for']('editingDowncast')['add'](_0x21c8fd=>{_0x21c8fd['on']('removeMarker:suggestion:attribute',(_0x241445,_0x4c4942,_0x2e2eed)=>{const _0x5123=_0x2e2eed['mapper']['markerNameToElements'](_0x4c4942['markerName']);if(!_0x5123)return;const {id:_0x5c552d}=this['_splitMarkerName'](_0x4c4942['markerName']),_0x52d6ec=this['_suggestions']['get'](_0x5c552d),_0xc41a69=this['_getAttributeKey'](_0x52d6ec);if(this['_isBlockAttribute'](_0xc41a69)){for(const _0x4093c4 of _0x5123)_0x4093c4['getCustomProperty']('addHighlight')||(_0x2e2eed['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4093c4),_0x2e2eed['writer']['removeAttribute']('data-suggestion',_0x4093c4),_0x2e2eed['writer']['removeAttribute']('data-author-id',_0x4093c4),_0x2e2eed['mapper']['unbindElementFromMarkerName'](_0x4093c4,_0x4c4942['markerName']));}},{'priority':'high'});}),_0x5c46e5['model']['document']['registerPostFixer'](_0x20b328=>{let _0x11a6a1=!0x1;const _0x44ee9a=Array['from'](_0x5c46e5['model']['document']['differ']['getChangedMarkers']()),_0x11a19e=new Set();for(const {name:_0x5ea66d,data:_0x22bcfe}of _0x44ee9a){const {group:_0x4bec4c,type:_0x3dc034,subType:_0x4ae35d,id:_0x4f3f23}=this['_splitMarkerName'](_0x5ea66d);if('suggestion'!==_0x4bec4c)continue;const _0x320e99=this['_suggestions']['get'](_0x4f3f23);if(null!=_0x22bcfe['newRange']){'formatInline'==_0x3dc034&&(_0x11a6a1=_0x11a6a1||Pt(_0x22bcfe['newRange'],_0x5ea66d,_0x20b328,_0x5c46e5['model']['schema']));const _0x4a57ad='attribute'==_0x3dc034&&this['_isBlockAttribute'](_0x4ae35d['split']('|')[0x0]);if(_0x22bcfe['newRange']['isCollapsed']||'$graveyard'==_0x22bcfe['newRange']['root']['rootName']||'formatBlock'==_0x3dc034&&!Ft(_0x22bcfe['newRange'])||_0x4a57ad&&!Ft(_0x22bcfe['newRange'])||'deletion'==_0x3dc034&&!(!Vt(_0x11fa85=_0x22bcfe['newRange'])&&!function(_0x6b4ee9){return _0x6b4ee9['start']['parent']==_0x6b4ee9['end']['nodeBefore']&&_0x6b4ee9['start']['isAtEnd'];}(_0x11fa85)))_0x20b328['removeMarker'](_0x5ea66d),_0x11a6a1=!0x0;else{if(!_0x320e99||!_0x320e99['isInContent'])continue;if(_0x22bcfe['newRange']&&_0x22bcfe['oldRange']&&_0x22bcfe['newRange']['isEqual'](_0x22bcfe['oldRange']))continue;_0x11a19e['add'](_0x320e99);}}}var _0x11fa85;return _0x11a19e['size']>0x0&&(_0x11a6a1=!!this['_joinWithAdjacentSuggestions'](_0x11a19e)||_0x11a6a1),_0x11a6a1;}),_0x5c46e5['model']['document']['registerPostFixer'](_0x42ec82=>{let _0x5bb3a5=!0x1;for(const _0x3af155 of _0x5c46e5['model']['document']['differ']['getChanges']())if('insert'==_0x3af155['type'])for(const _0x3f3f87 of this['_suggestions']['values']()){if(_0x3f3f87['isMultiRange']||!_0x3f3f87['isInContent'])continue;const _0x337776='formatBlock'==_0x3f3f87['type'],_0xa188ff=this['_getAttributeKey'](_0x3f3f87),_0x42cd89=_0xa188ff&&this['_isBlockAttribute'](_0xa188ff);if(!_0x337776&&!_0x42cd89)continue;const _0x5641b6=_0x3f3f87['getFirstRange']();if(_0x5641b6['start']['parent']!=_0x5641b6['end']['parent']&&!_0x5641b6['end']['isAtEnd']){const _0x3c488f=_0x5c46e5['model']['createPositionAt'](_0x5641b6['start']['nodeAfter'],'end'),_0x19f252=_0x5c46e5['model']['createRange'](_0x5641b6['start'],_0x3c488f);_0x42ec82['updateMarker'](_0x3f3f87['getFirstMarker'](),{'range':_0x19f252}),_0x5bb3a5=!0x0;}}return _0x5bb3a5;}),_0x5c46e5['model']['document']['registerPostFixer'](_0x189f73=>this['_processAttributeChanges'](_0x189f73)),_0x5c46e5['model']['document']['registerPostFixer'](_0x1736f9=>!_0x1736f9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1736f9)),_0x5c46e5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5c46e5['model']['document']['on']('change:data',(_0xd25df,_0x59f4c4)=>{if(!_0x59f4c4['isLocal']||_0x59f4c4['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5b2b24=_0x5c46e5['model']['document']['differ']['getChanges']();if(0x0==_0x5b2b24['length'])return;const _0x3ee0fd=[],_0x42d631=_0x5b2b24['filter'](_0x53429d=>'attribute'==_0x53429d['type']),_0x3a5e3f=_0x5b2b24['filter'](_0x330a79=>'insert'==_0x330a79['type']&&'$text'!=_0x330a79['name']);for(const _0x3dcbed of _0x42d631)this['_isRegisteredAttribute'](_0x3dcbed['attributeKey'])&&_0x3ee0fd['push']({'key':_0x3dcbed['attributeKey'],'newValue':_0x3dcbed['attributeNewValue'],'oldValue':_0x3dcbed['attributeOldValue'],'range':Lt(_0x3dcbed['range'],_0x5c46e5['model'])});for(const _0x40d38c of _0x3a5e3f){if('rename'!=_0x40d38c['action']&&'refresh'!=_0x40d38c['action'])continue;const _0xa19605=Jt(_0x40d38c['position']['nodeAfter'],_0x5c46e5['model']),_0x9d24a4=_0x40d38c['before'];'rename'==_0x40d38c['action']&&_0x3ee0fd['push']({'key':m,'newValue':_0x40d38c['name'],'oldValue':_0x9d24a4['name'],'range':_0xa19605});for(const [_0x4dae28,_0x5e42cc]of _0x9d24a4['attributes']){if(!this['_isRegisteredAttribute'](_0x4dae28))continue;const _0x489296=_0x40d38c['attributes']['get'](_0x4dae28);_0x5e42cc!==_0x489296&&_0x3ee0fd['push']({'key':_0x4dae28,'newValue':_0x489296,'oldValue':_0x5e42cc,'range':_0xa19605});}for(const [_0x2d7706,_0x1bd657]of _0x40d38c['attributes'])this['_isRegisteredAttribute'](_0x2d7706)&&(_0x9d24a4['attributes']['has'](_0x2d7706)||_0x3ee0fd['push']({'key':_0x2d7706,'newValue':_0x1bd657,'oldValue':null,'range':_0xa19605}));}0x0!=_0x3ee0fd['length']&&_0x5c46e5['model']['enqueueChange'](_0x59f4c4,_0x288c0e=>{const _0x69c3ce=_0xbb8093();for(const {range:_0x350f11,key:_0x401fbb,oldValue:_0x188924,newValue:_0xf56e46}of _0x3ee0fd)this['markAttributeChange'](_0x350f11,_0x401fbb,_0x188924,_0xf56e46,{'groupId':_0x69c3ce});this['_reduceExistingSuggestions'](_0x288c0e,_0x3ee0fd);});},{'priority':'lowest'}),_0x5c46e5['model']['markers']['on']('update:suggestion',(_0x27a56a,_0x1c7fad,_0x2bb1fc)=>{if(null==_0x2bb1fc){const {id:_0x57f03c}=this['_splitMarkerName'](_0x1c7fad['name']),_0x1e2532=this['_suggestions']['get'](_0x57f03c);_0x1e2532&&_0x1e2532['addMarkerName'](_0x1c7fad['name']);}}),_0x5c46e5['model']['document']['on']('change:data',()=>{const _0x52cca1=Array['from'](_0x5c46e5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x389333=>'suggestion'===this['_splitMarkerName'](_0x389333['name'])['group']);if(0x0===_0x52cca1['length'])return;_0x52cca1['sort']((_0x48b130,_0x3e98b4)=>{const _0x4ba0f8=_0x48b130['data']['oldRange'],_0x1a009b=_0x3e98b4['data']['oldRange'];return null===_0x4ba0f8&&null===_0x1a009b?0x0:null===_0x4ba0f8&&null!==_0x1a009b?-0x1:null!==_0x4ba0f8&&null===_0x1a009b?0x1:_0x4ba0f8['start']['isBefore'](_0x1a009b['start'])?-0x1:0x1;});const _0xbc3255=new Set(),_0x81a2f2=new Set();for(const {name:_0x3138de,data:_0x1a3ac8}of _0x52cca1){const {id:_0x35ebde}=this['_splitMarkerName'](_0x3138de);if(null===_0x1a3ac8['oldRange']){const _0x230fe2=this['_handleNewSuggestionMarker'](_0x3138de);_0x81a2f2['add'](_0x230fe2);}else{const _0x36fec8=this['_suggestions']['get'](_0x35ebde);null!==_0x1a3ac8['newRange']||_0x36fec8['isInContent']?(_0xbc3255['add'](_0x36fec8['head']),_0x81a2f2['add'](_0x36fec8)):this['_removeSuggestion'](_0x36fec8);}}_0x81a2f2['size']>0x0&&this['_refreshSuggestionsChain'](_0x81a2f2);for(const _0x29bf4e of _0xbc3255)this['fire']('suggestionChanged',_0x29bf4e);}),_0x5c46e5['model']['on']('applyOperation',(_0x1f2d68,_0x5b85b0)=>{const _0x221de4=_0x5b85b0[0x0];if(!this['_suggestions']['size'])return;if(!_0x221de4['isDocumentOperation'])return;if(_0x221de4['batch']['isUndo']||!_0x221de4['batch']['isLocal'])return;let _0x595dbf,_0x5e9440;switch(_0x221de4['type']){case'insert':_0x595dbf=_0x5c46e5['model']['createPositionAt'](_0x221de4['position']),_0x5e9440=_0x595dbf['getShiftedBy'](_0x221de4['howMany']);break;case'split':_0x595dbf=_0x5c46e5['model']['createPositionAt'](_0x221de4['splitPosition']),_0x5e9440=_0x5c46e5['model']['createPositionAt'](_0x221de4['moveTargetPosition']);break;case'move':_0x595dbf=_0x5c46e5['model']['createPositionAt'](_0x221de4['targetPosition']),_0x5e9440=_0x595dbf['getShiftedBy'](_0x221de4['howMany']);break;default:return;}const _0x328668=_0x5c46e5['model']['createRange'](_0x595dbf,_0x5e9440);_0x5c46e5['model']['change'](()=>{for(const {suggestion:_0x15f9f2,meta:_0x46e4c6}of this['_findSuggestions'](_0x328668)){if(_0x15f9f2['isMultiRange'])continue;if('formatInline'==_0x15f9f2['type'])continue;const _0x75756c=this['_getAttributeKey'](_0x15f9f2);if(_0x75756c&&this['_isBlockAttribute'](_0x75756c)&&'split'!=_0x221de4['type'])continue;const _0xbecda6=_0x15f9f2['data']&&_0x15f9f2['data']['multipleBlocks'];('formatBlock'!=_0x15f9f2['type']||'split'==_0x221de4['type']&&!_0xbecda6)&&(_0x46e4c6['containsRangeInObject']||'insertion'==_0x15f9f2['type']&&_0x46e4c6['isOwn']||_0x15f9f2['getFirstRange']()['containsRange'](_0x328668)&&this['_breakSuggestionMarker'](_0x15f9f2,_0x595dbf,_0x5e9440));}});},{'priority':'lowest'}),_0x5c46e5['model']['on']('deleteContent',(_0xc4df73,_0x1ea272)=>{const _0x26871a=_0x1ea272[0x0],_0x47aa05=_0x1ea272[0x1];if(_0x47aa05&&_0x47aa05['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x26871a['isCollapsed'])return;const _0x328a26=_0x5c46e5['model']['schema'],{start:_0x19e9e3,end:_0x2baddf}=_0x26871a['getFirstRange'](),_0x7d54f=_0x19e9e3['nodeAfter']&&_0x328a26['isLimit'](_0x19e9e3['nodeAfter'])?null:_0x328a26['getNearestSelectionRange'](_0x19e9e3,'forward'),_0x838485=_0x2baddf['nodeBefore']&&_0x328a26['isLimit'](_0x2baddf['nodeBefore'])?null:_0x328a26['getNearestSelectionRange'](_0x2baddf,'backward'),_0x3f99e4=_0x5c46e5['model']['createRange'](_0x7d54f?_0x7d54f['start']:_0x19e9e3,_0x838485?_0x838485['end']:_0x2baddf);_0x5c46e5['model']['change'](_0x3bd1da=>{this['markDeletion'](_0x3f99e4);const _0x3aff26=_0x5c46e5['model']['schema']['getNearestSelectionRange'](_0x3f99e4['start']);_0x26871a['is']('documentSelection')?_0x3bd1da['setSelection'](_0x3aff26):_0x26871a['setTo'](_0x3aff26);}),_0xc4df73['stop']();},{'priority':_0x58f002['normal']+0xa}),_0x5c46e5['model']['on']('insertContent',(_0x43ce0e,_0x304f1c)=>{const _0xce2128=_0x304f1c[_0x304f1c['length']-0x1];_0xce2128&&_0xce2128['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5c46e5['model']['change'](()=>{let _0x3a56aa=_0x5c46e5['model']['insertContent'](_0x304f1c[0x0],_0x304f1c[0x1],_0x304f1c[0x2],{'forceDefaultExecution':!0x0});if(!_0x3a56aa)return;_0x43ce0e['return']=_0x3a56aa['clone']();const _0x1bca1f=_0x3a56aa['end']['nodeBefore'],_0xd4ee75=_0x5c46e5['model']['schema'];_0x1bca1f&&_0xd4ee75['isBlock'](_0x1bca1f)&&!_0xd4ee75['isObject'](_0x1bca1f)&&(_0x3a56aa=_0x5c46e5['model']['createRange'](_0x3a56aa['start'],_0x5c46e5['model']['createPositionAt'](_0x1bca1f,'end'))),this['markInsertion'](_0x3a56aa);}),_0x43ce0e['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5afe89=new O(_0x5c46e5,this['_suggestions']);_0x5c46e5['commands']['add']('acceptSuggestion',_0x5afe89),this['enableCommand']('acceptSuggestion');const _0x158b0a=new R(_0x5c46e5,this['_suggestions']);_0x5c46e5['commands']['add']('discardSuggestion',_0x158b0a),this['enableCommand']('discardSuggestion'),_0x5c46e5['commands']['add']('acceptAllSuggestions',new x(_0x5c46e5,_0x5afe89,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5c46e5['commands']['add']('discardAllSuggestions',new x(_0x5c46e5,_0x158b0a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5c46e5['commands']['add']('acceptSelectedSuggestions',new E(_0x5c46e5,_0x5afe89,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5c46e5['commands']['add']('discardSelectedSuggestions',new E(_0x5c46e5,_0x158b0a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x280303=_0x5c46e5['plugins']['get']('CommentsRepository');this['listenTo'](_0x280303,'addComment',(_0x4a9adf,{threadId:_0x576668})=>{const _0x55ceb9=this['_suggestions']['get'](_0x576668);_0x55ceb9&&_0x55ceb9['commentThread']&&0x1===_0x55ceb9['commentThread']['length']&&this['_updateSuggestionData'](_0x576668,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x280303,'removeComment',(_0xc1506b,{threadId:_0x5eeead})=>{const _0xb55ad2=this['_suggestions']['get'](_0x5eeead);_0xb55ad2&&_0xb55ad2['commentThread']&&!_0xb55ad2['commentThread']['length']&&this['_updateSuggestionData'](_0x5eeead,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x43c923){const _0x672c3f=_0x667d9b([0x6b,0x72,0x32,0x67,0x59,0x49,0x6f,0x76,0x43,0x58,0x4b,0x54,0x48,0x68,0x50,0x39,0x79,0x53,0x62,0x33,0x75,0x6d,0x38,0x70,0x37,0x41,0x30,0x61,0x4c,0x31,0x69,0x63,0x78,0x65,0x4f,0x6a,0x35,0x44,0x4d,0x6c,0x6e,0x51,0x36,0x42,0x4e,0x46,0x56,0x71,0x34,0x5a,0x77,0x52,0x7a,0x55,0x47,0x74,0x57,0x66,0x64,0x4a,0x73,0x45]),_0x4f42c8=0x29c71999,_0x46277d=0x29c04041^_0x4f42c8,_0x45c75f=window[_0x667d9b([0x44,0x61,0x74,0x65])][_0x667d9b([0x6e,0x6f,0x77])](),_0x566206=_0x43c923[_0x667d9b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x561f73=new window[(_0x667d9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499427=>{_0x566206[_0x667d9b([0x6f,0x6e,0x63,0x65])](_0x667d9b([0x72,0x65,0x61,0x64,0x79]),_0x499427);}),_0x33b21e={[_0x667d9b([0x6b,0x74,0x79])]:_0x667d9b([0x45,0x43]),[_0x667d9b([0x75,0x73,0x65])]:_0x667d9b([0x73,0x69,0x67]),[_0x667d9b([0x63,0x72,0x76])]:_0x667d9b([0x50,0x2d,0x32,0x35,0x36]),[_0x667d9b([0x78])]:_0x667d9b([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]),[_0x667d9b([0x79])]:_0x667d9b([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]),[_0x667d9b([0x61,0x6c,0x67])]:_0x667d9b([0x45,0x53,0x32,0x35,0x36])},_0x56c883=_0x566206[_0x667d9b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x667d9b([0x67,0x65,0x74])](_0x667d9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4f7421(){let _0x1dec6b,_0x4d08f6=null,_0x27a4de=null;try{if(_0x56c883==_0x667d9b([0x47,0x50,0x4c]))return _0x667d9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1dec6b=_0x276b36(),!_0x1dec6b)return _0x667d9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1dec6b[_0x667d9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x27a4de=_0x453d07(_0x1dec6b[_0x667d9b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1dec6b[_0x667d9b([0x6a,0x74,0x69])])),await _0x4a936a()?_0x2b29f5()?_0x475343()?_0x667d9b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x489047()?(_0x1dec6b[_0x667d9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x667d9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d08f6=_0x3466c8(_0x667d9b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1dec6b[_0x667d9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x667d9b([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d08f6=_0x3466c8(_0x667d9b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x1dec6b[_0x667d9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x667d9b([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4d08f6=_0x3466c8(_0x667d9b([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23439d()):_0x667d9b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x667d9b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x667d9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x10730f){return _0x667d9b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x475343(){const _0x54f26e=[_0x667d9b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x667d9b([0x74,0x72,0x69,0x61,0x6c])][_0x667d9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dec6b[_0x667d9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45c75f/0x3e8:0xe10*_0x46277d;return _0x1dec6b[_0x667d9b([0x65,0x78,0x70])]<_0x54f26e;}function _0x2b29f5(){const _0x5a88f4=_0x1dec6b[_0x667d9b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5a88f4)return!0x1;if(_0x5a88f4[_0x667d9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x667d9b([0x2a])))return!0x0;if(_0x5a88f4[_0x667d9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x667d9b([0x54,0x43])))return!0x0;if(_0x5a88f4[_0x667d9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x667d9b([0x52,0x54,0x43]))){if(_0x1dd261())return!0x0;if(_0x4bd3a1()||_0x4f2245())return!0x0;}return!0x1;}function _0x489047(){const _0x166e4e=_0x1dec6b[_0x667d9b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x166e4e||0x0==_0x166e4e[_0x667d9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56f352}=new URL(window[_0x667d9b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x166e4e[_0x667d9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f352))return!0x0;const _0x46453d=_0x56f352[_0x667d9b([0x73,0x70,0x6c,0x69,0x74])](_0x667d9b([0x2e]));return _0x166e4e[_0x667d9b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29a786=>_0x29a786[_0x667d9b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x667d9b([0x2a])))[_0x667d9b([0x6d,0x61,0x70])](_0x406f9d=>_0x406f9d[_0x667d9b([0x73,0x70,0x6c,0x69,0x74])](_0x667d9b([0x2e])))[_0x667d9b([0x73,0x6f,0x6d,0x65])](_0x5cf36a=>_0x46453d[_0x667d9b([0x65,0x76,0x65,0x72,0x79])]((_0x3dba0f,_0x22b4f1)=>_0x5cf36a[_0x22b4f1]===_0x3dba0f||_0x5cf36a[_0x22b4f1]===_0x667d9b([0x2a])));}function _0x23439d(){return _0x4d08f6&&_0x27a4de?new window[(_0x667d9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x460768,_0x27a174)=>{_0x4d08f6[_0x667d9b([0x74,0x68,0x65,0x6e])](_0x460768,_0x27a174),_0x27a4de[_0x667d9b([0x74,0x68,0x65,0x6e])](_0x1426c3=>{_0x1426c3!=_0x667d9b([0x56,0x61,0x6c,0x69,0x64])&&_0x460768(_0x1426c3);},_0x27a174);}):_0x4d08f6||_0x27a4de||_0x667d9b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x453d07(_0x514fa5,_0x33d365){return new window[(_0x667d9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59247a=>{if(_0x27c18f())return _0x59247a(_0x667d9b([0x56,0x61,0x6c,0x69,0x64]));_0x38a704(),_0x566206[_0x667d9b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x667d9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1aa29f=!0x1;const _0x16ad17=_0xbb8093();function _0x2646a2(_0x6abec0){return!!_0x6abec0&&(typeof _0x6abec0===_0x667d9b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6abec0===_0x667d9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6abec0[_0x667d9b([0x74,0x68,0x65,0x6e])]===_0x667d9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6abec0[_0x667d9b([0x63,0x61,0x74,0x63,0x68])]===_0x667d9b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5e7be1(_0x40dd2a){_0x37349c(_0x40dd2a)[_0x667d9b([0x74,0x68,0x65,0x6e])](_0x17a9e6=>{if(!_0x17a9e6||_0x17a9e6[_0x667d9b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x667d9b([0x6f,0x6b]))return _0x667d9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x494a0d(_0x27c991(_0x16ad17+_0x33d365))!=_0x17a9e6[_0x667d9b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x667d9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x667d9b([0x56,0x61,0x6c,0x69,0x64]);})[_0x667d9b([0x74,0x68,0x65,0x6e])](_0x3bca01=>(_0x28a791(),_0x3bca01),()=>{const _0x4b13a1=_0x4217e8();return null==_0x4b13a1?(_0x28a791(),_0x667d9b([0x56,0x61,0x6c,0x69,0x64])):_0x667d9b(_0x45c75f-_0x4b13a1>(0xdcb9d99^_0x4f42c8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x667d9b([0x74,0x68,0x65,0x6e])](_0x59247a)[_0x667d9b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x59247a(_0x667d9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1119e4=0x29f1f719^_0x4f42c8;function _0x28a791(){const _0xdc7e62=_0x667d9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x494a0d(_0x27c991(_0x514fa5)),_0x3c5087=_0x2be3db(_0x494a0d(window[_0x667d9b([0x4d,0x61,0x74,0x68])][_0x667d9b([0x63,0x65,0x69,0x6c])](_0x45c75f/_0x1119e4)));window[_0x667d9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x667d9b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xdc7e62,_0x3c5087);}function _0x4217e8(){const _0x66f48c=_0x667d9b([0x6c,0x6c,0x63,0x74,0x2d])+_0x494a0d(_0x27c991(_0x514fa5)),_0x50f7ab=window[_0x667d9b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x667d9b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x66f48c);return _0x50f7ab?window[_0x667d9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2be3db(_0x50f7ab),0x10)*_0x1119e4:null;}function _0x37349c(_0x22ad71){return new window[(_0x667d9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55cf8c,_0x4f0f52)=>{_0x22ad71[_0x667d9b([0x74,0x68,0x65,0x6e])](_0x55cf8c,_0x4f0f52),window[_0x667d9b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4f0f52,0x29c6cd59^_0x4f42c8);});}}_0x566206[_0x667d9b([0x6f,0x6e])](_0x667d9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xfabf6c,_0x5450c8)=>{if(_0x5450c8[0x0]!=_0x514fa5)return _0x59247a(_0x667d9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5450c8[0x1]={..._0x5450c8[0x1],[_0x667d9b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x16ad17};},{[_0x667d9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x667d9b([0x68,0x69,0x67,0x68])}),_0x566206[_0x667d9b([0x6f,0x6e])](_0x667d9b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1f251e=>{_0x2646a2(_0x1f251e[_0x667d9b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1aa29f=!0x0,_0x5e7be1(_0x1f251e[_0x667d9b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x667d9b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x667d9b([0x6c,0x6f,0x77])}),_0x561f73[_0x667d9b([0x74,0x68,0x65,0x6e])](()=>{_0x1aa29f||_0x59247a(_0x667d9b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x27c18f(){return _0x566206[_0x667d9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x667d9b([0x76,0x69,0x65,0x77])][_0x667d9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x667d9b([0x61,0x75,0x74,0x6f]);}function _0x38a704(){_0x566206[_0x667d9b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x667d9b([0x76,0x69,0x65,0x77])][_0x667d9b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x667d9b([0x61,0x75,0x74,0x6f]);}}function _0x3466c8(_0x5326a6){const _0x366187=[new window[(_0x667d9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ba033=>setTimeout(_0x4ba033,0x29ce2755^_0x4f42c8)),_0x561f73[_0x667d9b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x667d9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33be00=>{let _0x19bf43=0x0;_0x566206[_0x667d9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x667d9b([0x6f,0x6e])](_0x667d9b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x509259,_0x23aefc)=>{_0x23aefc[0x0][_0x667d9b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x19bf43++,_0x19bf43==(0x29c71861^_0x4f42c8)&&(_0x33be00(),_0x509259[_0x667d9b([0x6f,0x66,0x66])]());});}))];return window[_0x667d9b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x667d9b([0x72,0x61,0x63,0x65])](_0x366187)[_0x667d9b([0x74,0x68,0x65,0x6e])](()=>_0x5326a6);}async function _0x3b7a5f(){await _0x561f73,_0x566206[_0x667d9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x667d9b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x175f75,_0x566206[_0x667d9b([0x6d,0x6f,0x64,0x65,0x6c])][_0x667d9b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x175f75,_0x566206[_0x667d9b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x667d9b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1dd261(){return _0x4f7761(_0x667d9b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x436ef4(_0x667d9b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x667d9b([0x73,0x74,0x61,0x74,0x65])]==_0x667d9b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4bd3a1(){return _0x4f7761(_0x667d9b([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 _0x4f2245(){return _0x4f7761(_0x667d9b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2c7251(_0x587ef4){const _0x48d2ad=_0x54d08d();_0x566206[_0x48d2ad]=_0x667d9b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x587ef4,_0x587ef4!=_0x667d9b([0x56,0x61,0x6c,0x69,0x64])&&_0x3b7a5f();}function _0x54d08d(){const _0x4d6e66=window[_0x667d9b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x667d9b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x667d9b([0x6e,0x6f,0x77])]())[_0x667d9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x667d9b([0x2e]),'');let _0x551ef6=_0x667d9b([0x6b]);for(let _0x442654=0x0;_0x442654<_0x4d6e66[_0x667d9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x442654+=0x2){let _0x42a226=window[_0x667d9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d6e66[_0x667d9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x442654,_0x442654+0x2));_0x42a226>=_0x672c3f[_0x667d9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x42a226-=_0x672c3f[_0x667d9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x551ef6+=_0x672c3f[_0x42a226];}return _0x551ef6;}function _0x276b36(){const _0x1e30dc=_0x56c883[_0x667d9b([0x73,0x70,0x6c,0x69,0x74])](_0x667d9b([0x2e]));if(0x3!=_0x1e30dc[_0x667d9b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6515fc(_0x1e30dc[0x1]);function _0x6515fc(_0x315157){const _0x21f2c6=_0x5da426(_0x315157);return _0x21f2c6&&_0x5ccb2e()?_0x21f2c6:null;function _0x5ccb2e(){const _0x183751=_0x21f2c6[_0x667d9b([0x6a,0x74,0x69])],_0x47d079=window[_0x667d9b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x183751[_0x667d9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x183751[_0x667d9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d0db7={..._0x21f2c6,[_0x667d9b([0x6a,0x74,0x69])]:_0x183751[_0x667d9b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x183751[_0x667d9b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d0db7[_0x667d9b([0x76,0x63])],_0x27c991(_0x2d0db7)==_0x47d079;}}}async function _0x4a936a(){let _0x2d9b19=!0x0;try{const _0x1e50f2=_0x56c883[_0x667d9b([0x73,0x70,0x6c,0x69,0x74])](_0x667d9b([0x2e])),[_0x4e49b1,_0x25b7da,_0x50e373]=_0x1e50f2;return _0x3ed015(_0x4e49b1),await _0xccbbb6(_0x4e49b1,_0x25b7da,_0x50e373),_0x2d9b19;}catch(_0x5b3f28){return!0x1;}function _0x3ed015(_0x5a96ed){const _0x30e1d4=_0x5da426(_0x5a96ed);_0x30e1d4&&_0x30e1d4[_0x667d9b([0x61,0x6c,0x67])]==_0x667d9b([0x45,0x53,0x32,0x35,0x36])||(_0x2d9b19=!0x1);}async function _0xccbbb6(_0x1a9d7d,_0x5dc5bf,_0x498052){const _0x2ee9e0=window[_0x667d9b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x667d9b([0x66,0x72,0x6f,0x6d])](_0x21b0c2(_0x498052),_0x494f8b=>_0x494f8b[_0x667d9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f1f35=new window[(_0x667d9b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x667d9b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a9d7d+_0x667d9b([0x2e])+_0x5dc5bf),_0x3babfc=window[_0x667d9b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x667d9b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3babfc)return;const _0x13a895=await _0x3babfc[_0x667d9b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x667d9b([0x6a,0x77,0x6b]),_0x33b21e,{[_0x667d9b([0x6e,0x61,0x6d,0x65])]:_0x667d9b([0x45,0x43,0x44,0x53,0x41]),[_0x667d9b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x667d9b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x667d9b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3babfc[_0x667d9b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x667d9b([0x6e,0x61,0x6d,0x65])]:_0x667d9b([0x45,0x43,0x44,0x53,0x41]),[_0x667d9b([0x68,0x61,0x73,0x68])]:{[_0x667d9b([0x6e,0x61,0x6d,0x65])]:_0x667d9b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x13a895,_0x2ee9e0,_0x2f1f35)||(_0x2d9b19=!0x1);}}function _0x5da426(_0x3b975e){return _0x3b975e[_0x667d9b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x667d9b([0x65,0x79]))?JSON[_0x667d9b([0x70,0x61,0x72,0x73,0x65])](_0x21b0c2(_0x3b975e)):null;}function _0x21b0c2(_0x46d627){return window[_0x667d9b([0x61,0x74,0x6f,0x62])](_0x46d627[_0x667d9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x667d9b([0x2b]))[_0x667d9b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x667d9b([0x2f])));}function _0x27c991(_0x284925){let _0x4a541a=0x1505;function _0x3e0684(_0x16f7b9){for(let _0x97557c=0x0;_0x97557c<_0x16f7b9[_0x667d9b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x97557c++){const _0x582771=_0x16f7b9[_0x667d9b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x97557c);_0x4a541a=(_0x4a541a<<0x5)+_0x4a541a+_0x582771,_0x4a541a&=_0x4a541a;}}function _0x56dcca(_0x1d585e){Array[_0x667d9b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1d585e)?_0x1d585e[_0x667d9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x56dcca):_0x1d585e&&typeof _0x1d585e==_0x667d9b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x667d9b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1d585e)[_0x667d9b([0x73,0x6f,0x72,0x74])]()[_0x667d9b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5eb46c,_0x419e2a])=>{_0x3e0684(_0x5eb46c),_0x56dcca(_0x419e2a);}):_0x3e0684(window[_0x667d9b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1d585e));}return _0x56dcca(_0x284925),_0x4a541a>>>0x0;}function _0x494a0d(_0x144319){return _0x144319[_0x667d9b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x667d9b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x667d9b([0x30]));}function _0x2be3db(_0x394ea5){return _0x394ea5[_0x667d9b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x667d9b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x667d9b([0x6a,0x6f,0x69,0x6e])]('');}function _0x4f7761(_0x6f22da){return _0x566206[_0x667d9b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x667d9b([0x68,0x61,0x73])](_0x6f22da);}function _0x436ef4(_0x544dac){return _0x566206[_0x667d9b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x667d9b([0x67,0x65,0x74])](_0x544dac);}function _0x175f75(){}function _0x667d9b(_0x3e4323){return _0x3e4323['map'](_0x59abc5=>String['fromCharCode'](_0x59abc5))['join']('');}_0x2c7251(await _0x4f7421());}(this);}set['adapter'](_0x873969){if(this['_adapter'])throw new _0x8a669('track-changes-adapter-already-set',this);this['_adapter']=_0x873969;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x46754e=!0x1,toJSON:_0x3adfc3=!0x1}={}){const _0xa4c3de=[];for(const _0x4ffdf3 of this['_suggestions']['values']())_0x46754e&&!_0x4ffdf3['isInContent']||_0xa4c3de['push'](_0x4ffdf3);return _0x3adfc3?_0xa4c3de['map'](_0x109210=>_0x109210['toJSON']()):_0xa4c3de;}['getSuggestion'](_0x29f183){const _0x3c58ea=this['_suggestions']['get'](_0x29f183);if(!_0x3c58ea)throw new _0x8a669('track-changes-suggestion-not-found',this);return _0x3c58ea;}['hasSuggestion'](_0x8b90a0){return this['_suggestions']['has'](_0x8b90a0);}['addSuggestionData'](_0x4ababf){const {authorId:_0x1fd617,id:_0x571eb9,attributes:_0x3c9629}=_0x4ababf,[_0x5997c8,_0x5e3196]=_0x4ababf['type']['split'](':'),_0x2dd025=this['_suggestions']['get'](_0x571eb9)||this['_createSuggestion'](_0x5997c8,_0x5e3196,_0x571eb9,_0x1fd617,_0x3c9629);if(this['_addThreadToSuggestion'](_0x2dd025),this['_checkSuggestionCorrectness'](_0x2dd025,_0x5997c8,_0x5e3196||null,_0x1fd617),_0x2dd025['createdAt']=_0x4ababf['createdAt'],_0x2dd025['_isDataLoaded']=!0x0,_0x3c9629&&_0x3c9629['@external']){const _0x476013=_0x3c9629['@external'],_0x1f71d5=this['_getExternalAuthor'](_0x476013['authorName']);_0x2dd025['authoredAt']=_0x476013['createdAt'],_0x2dd025['author']=_0x1f71d5,_0x2dd025['isExternal']=!0x0;}else _0x2dd025['authoredAt']=_0x4ababf['createdAt'];switch(_0x4ababf['data']&&(_0x2dd025['data']=_0x4ababf['data']),_0x4ababf['attributes']&&(_0x2dd025['attributes']=_0x4ababf['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2dd025['_saved']=!0x0),this['_suggestionState']['get'](_0x2dd025)){case'notReady':this['_suggestionState']['set'](_0x2dd025,'dataReady');break;case'markerReady':_0x2dd025['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2dd025])),this['_refreshSuggestionsChain'](new Set([_0x2dd025])),this['_suggestionState']['set'](_0x2dd025,'ready'),this['fire']('suggestionLoaded',_0x2dd025)):this['_suggestionState']['set'](_0x2dd025,'removed');}return _0x2dd025;}['acceptSuggestion'](_0x4e4573){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x21c342 of _0x4e4573['getAllAdjacentSuggestions']())_0x21c342['accept']();});});}['discardSuggestion'](_0x4ab92b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1afb57 of _0x4ab92b['getAllAdjacentSuggestions']())_0x1afb57['discard']();});});}['enableCommand'](_0x51370a,_0x1d0f8b){const _0x35105b=this['editor']['commands']['get'](_0x51370a);if(!_0x35105b)throw new _0x8a669('track-changes-command-not-found',this,{'commandName':_0x51370a});if(this['_enabledCommands']['has'](_0x35105b))throw new _0x8a669('track-changes-enable-command-twice',this,{'commandName':_0x51370a});this['_enabledCommands']['add'](_0x35105b),_0x1d0f8b&&_0x35105b['on']('execute',(_0x57c44c,_0x5c43f8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5c43f8['length']>0x0&&_0x5c43f8[_0x5c43f8['length']-0x1]&&_0x5c43f8[_0x5c43f8['length']-0x1]['forceDefaultExecution']?_0x5c43f8['pop']():(_0x57c44c['return']=_0x1d0f8b((..._0x545985)=>_0x35105b['execute'](..._0x545985,{'forceDefaultExecution':!0x0}),..._0x5c43f8),_0x57c44c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3faba1){let _0x4fc206,_0xb0705a;const _0x37d03e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4fc206=_0x3faba1();}catch(_0x3917c7){_0xb0705a=_0x3917c7;}return _0x37d03e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xb0705a&&_0x8a669['rethrowUnexpectedError'](_0xb0705a,this),_0x4fc206;}['markInsertion'](_0x2b3737,_0x165a5c=null,_0x2252de={}){if(_0x2b3737['isCollapsed'])return null;const _0x3f6023=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4d9724,meta:_0x15228e}of this['_findSuggestions'](_0x2b3737,'insertion'))if(_0x15228e['isOwn']){if(!_0x15228e['isNextTo']){if(_0x15228e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x4d9724,_0x2252de))continue;return _0x4d9724;}if(zt(_0x4d9724,_0x2252de))return _0x4d9724;this['_breakSuggestionMarker'](_0x4d9724,_0x2b3737['start'],_0x2b3737['end']);break;}if(_0x165a5c==_0x4d9724['subType']&&zt(_0x4d9724,_0x2252de)){const _0x314a96=_0x4d9724['getFirstRange']();return _0x314a96['start']['isEqual'](_0x2b3737['end'])?this['_setSuggestionRange'](_0x4d9724,this['_model']['createRange'](_0x2b3737['start'],_0x314a96['end'])):this['_setSuggestionRange'](_0x4d9724,this['_model']['createRange'](_0x314a96['start'],_0x2b3737['end'])),_0x4d9724;}}const _0x425159=_0xbb8093(),_0x4a17f0=_0x3f6023['id'],_0x596c5d=_0x165a5c?'insertion:'+_0x165a5c:'insertion',_0x51a3fe=this['_setSuggestionData']({'id':_0x425159,'type':_0x596c5d,'createdAt':new Date(),'authorId':_0x4a17f0,'attributes':_0x2252de});return this['_addSuggestionMarker'](_0x596c5d,_0x425159,_0x4a17f0,_0x2b3737),_0x51a3fe;}['markMultiRangeInsertion'](_0x5f37e,_0x42afc5='multi',_0x305bfe={}){const _0x205fa8=this['editor']['plugins']['get']('Users')['me'],_0x236c91=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42afc5,'join');for(const _0xf87f83 of this['getSuggestions']())if(_0xf87f83['author']['id']==_0x205fa8['id']&&'insertion'==_0xf87f83['type']&&_0xf87f83['subType']==_0x42afc5&&zt(_0xf87f83,_0x305bfe)&&(_0x236c91(_0xf87f83['getRanges'](),_0x5f37e)||_0x236c91(_0x5f37e,_0xf87f83['getRanges']()))){for(const _0x45ab67 of _0x5f37e)_0xf87f83['addRange'](_0x45ab67);return _0xf87f83;}for(const {suggestion:_0x548771,meta:_0x242407}of this['_findSuggestions'](_0x5f37e,'insertion')){if(!_0x242407['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x242407['containsRangeInObject'])continue;if(!zt(_0x548771,_0x305bfe))continue;let _0x401715=!0x0;for(const _0x336313 of _0x548771['getRanges']())for(const _0xa4a6fc of _0x5f37e)if(!_0x336313['containsRange'](_0xa4a6fc)){_0x401715=!0x1;break;}if(_0x401715)return _0x548771;}const _0x419105=_0xbb8093(),_0x49813c=_0x205fa8['id'],_0x4d5482='insertion:'+_0x42afc5,_0x3b75a4=this['_setSuggestionData']({'id':_0x419105,'type':_0x4d5482,'createdAt':new Date(),'authorId':_0x49813c,'attributes':_0x305bfe});for(const _0x3a1886 of _0x5f37e)this['_addSuggestionMarker'](_0x4d5482,_0x419105,_0x49813c,_0x3a1886,u['getMultiRangeId']());return _0x3b75a4;}['markInlineFormat'](_0x52893f,_0x26e5a8,_0x2dadde=null,_0x529394={}){if(_0x2dadde=_0x2dadde||Gt(_0x26e5a8),_0x52893f['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x38791d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2dadde,'accept');return this['forceDefaultExecution'](()=>_0x38791d([_0x52893f],_0x26e5a8,_0x529394)),null;}const _0x4ff2f9=this['editor']['plugins']['get']('Users')['me'],_0x495b89=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x464790,meta:_0x1258ba}of this['_findSuggestions'](_0x52893f,'insertion'))_0x1258ba['isOwn']&&!_0x1258ba['isInsideObject']&&_0x495b89['push'](..._0x464790['getRanges']());}const _0x5a2780=function(_0x53a8b6,_0x4ff760){const _0xf5e3af=[];for(const _0x19f2ca of _0x4ff760){const _0x3ed6ce=_0x53a8b6['getIntersection'](_0x19f2ca);_0x3ed6ce&&_0xf5e3af['push'](_0x3ed6ce);}return _0xf5e3af;}(_0x52893f,_0x495b89),_0x2a49d4=function(_0x34bf6e,_0x1afa49){const _0x5bfcfe=[_0x34bf6e];for(const _0x3dd0e7 of _0x1afa49){let _0x5717db=0x0;for(;_0x5717db<_0x5bfcfe['length'];){const _0x4370fc=_0x5bfcfe[_0x5717db]['getDifference'](_0x3dd0e7);_0x5bfcfe['splice'](_0x5717db,0x1,..._0x4370fc),_0x5717db+=_0x4370fc['length'];}}return _0x5bfcfe;}(_0x52893f,_0x495b89);_0x5a2780['length']&&this['_model']['change'](()=>{for(const _0x26aad4 of _0x5a2780){const _0x4c7ea4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2dadde,'accept');this['forceDefaultExecution'](()=>_0x4c7ea4([_0x26aad4],_0x26e5a8,_0x529394));}});for(const _0x51f35a of _0x2a49d4){let _0x3287e3=null,_0xa0fbb6=_0x51f35a['start'],_0x24ed0a=_0x51f35a['end'];for(const {suggestion:_0x555abb,meta:_0x558274}of this['_findSuggestions'](_0x51f35a,'formatInline')){if(!_0x558274['isOwn'])continue;if(_0x555abb['subType']!=_0x2dadde)continue;if(!zt(_0x555abb,_0x529394))continue;const _0x102c9b=_0x555abb['getFirstRange']();if(_0x102c9b['containsRange'](_0x51f35a,!0x0))return null;_0xa0fbb6=_0xa0fbb6['isBefore'](_0x102c9b['start'])?_0xa0fbb6:_0x102c9b['start'],_0x24ed0a=_0x24ed0a['isAfter'](_0x102c9b['end'])?_0x24ed0a:_0x102c9b['end'],_0x3287e3?_0x102c9b['start']['isBefore'](_0x3287e3['getFirstRange']()['start'])?(_0x3287e3['removeMarkers'](),_0x3287e3=_0x555abb):_0x555abb['removeMarkers']():_0x3287e3=_0x555abb;}const _0x295376=this['_model']['createRange'](_0xa0fbb6,_0x24ed0a);if(_0x3287e3)this['_setSuggestionRange'](_0x3287e3,_0x295376);else{const _0x12b2dd=_0xbb8093(),_0x5dd660=_0x4ff2f9['id'];this['_setSuggestionData']({'id':_0x12b2dd,'type':'formatInline:'+_0x2dadde,'data':_0x26e5a8,'createdAt':new Date(),'authorId':_0x5dd660,'attributes':_0x529394}),this['_addSuggestionMarker']('formatInline:'+_0x2dadde,_0x12b2dd,_0x5dd660,_0x295376);}}return null;}['markBlockFormat'](_0x5c9345,_0x44f51f,_0x1097c9=[],_0x423a7f=null,_0x169d3d={}){_0x44f51f['formatGroupId']||(_0x44f51f['formatGroupId']=_0x44f51f['commandName']),_0x44f51f['multipleBlocks']=_0x5c9345['is']('range'),_0x423a7f=_0x423a7f||Gt(_0x44f51f);const _0x169164=_0x1097c9['map'](_0x2ba4b8=>Jt(_0x2ba4b8,this['_model'])),_0x4b49d6=_0x5c9345['is']('range')?_0x5c9345:Jt(_0x5c9345,this['_model']);if('never'===this['_trackFormatChanges']){const _0x2d043d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x423a7f,'accept');return this['forceDefaultExecution'](()=>_0x2d043d([_0x4b49d6],_0x44f51f,_0x169d3d)),null;}_0x169164['push'](_0x4b49d6);let _0xc94622=!0x0;for(const _0x26227f of _0x169164)if(!this['_rangeIsInLocalUserInsertion'](_0x26227f)){_0xc94622=!0x1;break;}if(_0xc94622&&'always'!==this['_trackFormatChanges']){const _0x57ac65=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x423a7f,'accept');return this['forceDefaultExecution'](()=>_0x57ac65([_0x4b49d6],_0x44f51f,_0x169d3d)),null;}let _0x2565e1=null,_0x4451ef=_0x4b49d6['start'],_0x550b15=_0x4b49d6['end'];for(const {suggestion:_0x53a538,meta:_0x588725}of this['_findSuggestions'](_0x4b49d6,'formatBlock')){if(!_0x588725['isOwn'])continue;if(_0x588725['isNextTo']||_0x588725['containsRangeInObject']||_0x588725['isInsideObject'])continue;if(_0x53a538['data']['formatGroupId']!=_0x44f51f['formatGroupId'])continue;if(!zt(_0x53a538,_0x169d3d))continue;const _0x4f9bed=_0x53a538['getFirstRange']();if(_0x53a538['subType']==_0x423a7f){if(_0x4f9bed['containsRange'](_0x4b49d6,!0x0))return null;_0x4451ef=_0x4451ef['isBefore'](_0x4f9bed['start'])?_0x4451ef:_0x4f9bed['start'],_0x550b15=_0x550b15['isAfter'](_0x4f9bed['end'])?_0x550b15:_0x4f9bed['end'],_0x2565e1?_0x4f9bed['start']['isBefore'](_0x2565e1['getFirstRange']()['start'])?(_0x2565e1['removeMarkers'](),_0x2565e1=_0x53a538):_0x53a538['removeMarkers']():_0x2565e1=_0x53a538;}else{const _0x1e29a0=_0x4b49d6['getIntersection'](_0x4f9bed);this['_cutOutSuggestionMarker'](_0x53a538,_0x1e29a0);}}const _0x255754=this['editor']['plugins']['get']('Users')['me'],_0x35429f=_0xbb8093(),_0x5630a8=_0x255754['id'];if(_0x2565e1)return this['_setSuggestionRange'](_0x2565e1,this['_model']['createRange'](_0x4451ef,_0x550b15)),_0x2565e1;{const _0x35e8bc=this['_setSuggestionData']({'id':_0x35429f,'type':'formatBlock:'+_0x423a7f,'data':_0x44f51f,'createdAt':new Date(),'authorId':_0x5630a8,'attributes':_0x169d3d});return this['_addSuggestionMarker']('formatBlock:'+_0x423a7f,_0x35429f,_0x5630a8,this['_model']['createRange'](_0x4451ef,_0x550b15)),_0x35e8bc;}}['markMultiRangeBlockFormat'](_0x9a55d8,_0x456cf9,_0x2fa4a9=[],_0x37476d=null,_0x51867b={}){_0x456cf9['formatGroupId']||(_0x456cf9['formatGroupId']=_0x456cf9['commandName']);const _0x3089a3=_0x9a55d8[0x0];_0x456cf9['multipleBlocks']=_0x3089a3['is']('range'),_0x37476d=_0x37476d||Gt(_0x456cf9);const _0x47de7a=_0x2fa4a9['map'](_0x3c1462=>Jt(_0x3c1462,this['_model'])),_0x4a4a36=_0x3089a3['is']('range')?_0x9a55d8:_0x9a55d8['map'](_0x39bb0c=>Jt(_0x39bb0c,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4f80af=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37476d,'accept');return this['forceDefaultExecution'](()=>_0x4f80af(_0x4a4a36,_0x456cf9,_0x51867b)),null;}_0x47de7a['push'](..._0x4a4a36);let _0x4115c5=!0x0;for(const _0x415b36 of _0x47de7a)if(!this['_rangeIsInLocalUserInsertion'](_0x415b36)){_0x4115c5=!0x1;break;}if(_0x4115c5&&'always'!==this['_trackFormatChanges']){const _0x443242=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37476d,'accept');return this['forceDefaultExecution'](()=>_0x443242(_0x4a4a36,_0x456cf9,_0x51867b)),null;}const _0x57caef=this['editor']['plugins']['get']('Users')['me'];for(const _0x40c357 of this['getSuggestions']()){if(_0x40c357['author']['id']!=_0x57caef['id'])continue;if('formatBlock'!=_0x40c357['type']||_0x40c357['data']['formatGroupId']!=_0x456cf9['formatGroupId'])continue;if(!zt(_0x40c357,_0x51867b))continue;const _0x4f402b=_0x40c357['subType']==_0x37476d;for(let _0x2c2484=0x0;_0x2c2484<_0x4a4a36['length'];_0x2c2484++){const _0x123a62=_0x4a4a36[_0x2c2484];for(const _0x2b5e2a of _0x40c357['getMarkers']()){const _0x494374=_0x2b5e2a['getRange']();if(_0x123a62['isEqual'](_0x494374)){_0x4f402b?(_0x4a4a36['splice'](_0x2c2484,0x1),_0x2c2484--):_0x40c357['removeMarker'](_0x2b5e2a['name']);break;}}}}if(0x0==_0x4a4a36['length'])return null;const _0x45a85b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37476d,'join');for(const _0x5c763 of this['getSuggestions']())if(_0x5c763['author']['id']==_0x57caef['id']&&'formatBlock'==_0x5c763['type']&&_0x5c763['data']['formatGroupId']==_0x456cf9['formatGroupId']&&_0x5c763['subType']==_0x37476d&&zt(_0x5c763,_0x51867b)&&(_0x45a85b(_0x5c763['getRanges'](),_0x4a4a36)||_0x45a85b(_0x4a4a36,_0x5c763['getRanges']()))){for(const _0x24cc85 of _0x4a4a36)_0x5c763['addRange'](_0x24cc85);return _0x5c763;}const _0x58148=_0xbb8093(),_0x601e2=_0x57caef['id'],_0x1d35d2='formatBlock:'+_0x37476d,_0x4a5d58=this['_setSuggestionData']({'id':_0x58148,'type':_0x1d35d2,'data':_0x456cf9,'createdAt':new Date(),'authorId':_0x601e2,'attributes':_0x51867b});for(const _0x334152 of _0x4a4a36)this['_addSuggestionMarker'](_0x1d35d2,_0x58148,_0x601e2,_0x334152,u['getMultiRangeId']());return _0x4a5d58;}['markDeletion'](_0x3567b5,_0x1724f3=null,_0x9cfb85={}){if(_0x3567b5['isCollapsed'])return null;const _0x375cdd=this['editor']['plugins']['get']('Users')['me'],_0x475d33=new _0x5580c5(_0x3567b5['start'],_0x3567b5['end']);for(const {suggestion:_0x25161e,meta:_0x307a5a}of this['_findSuggestions'](_0x475d33,'insertion'))if(_0x307a5a['isOwn']&&!_0x307a5a['isNextTo']){if(_0x25161e['isMultiRange']){const _0x23bc4a=_0x25161e['getRanges']()['filter'](_0x1d6e3f=>'$graveyard'!=_0x1d6e3f['root']['rootName']);_0x23bc4a['every'](_0x436110=>_0x475d33['containsRange'](_0x436110,!0x0))&&_0x25161e['discard']();if(_0x23bc4a['some'](_0x382301=>_0x382301['containsRange'](_0x475d33,!0x0))){const _0x39e142=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1724f3,'accept');return this['forceDefaultExecution'](()=>_0x39e142([_0x475d33],null,_0x9cfb85)),null;}}else{const _0x409a0c=_0x475d33['getIntersection'](_0x25161e['getFirstRange']());null!==_0x409a0c&&_0x25161e['_onDiscard']([_0x409a0c],null,_0x9cfb85);}}if(_0x475d33['detach'](),_0x475d33['isCollapsed']||'$graveyard'==_0x475d33['root']['rootName'])return null;let _0x1235c9=null,_0x117e59=_0x475d33['start'],_0x1c6e39=_0x475d33['end'];const _0x3d7b2a=this['_findSuggestions'](_0x475d33,'deletion');for(const {suggestion:_0x3655d7,meta:_0x39a70f}of _0x3d7b2a){const _0x12f531=this['_model']['createRange'](_0x117e59,_0x1c6e39);if(_0x39a70f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x39a70f['containsRangeInObject']&&!_0x39a70f['isInsideObject'])){if(_0x3655d7['isMultiRange']){if(!zt(_0x3655d7,_0x9cfb85))continue;let _0xfbe113=!0x0;for(const _0x290327 of _0x3655d7['getRanges']()){if(_0x290327['containsRange'](_0x12f531,!0x0))return _0x3655d7;_0x12f531['containsRange'](_0x290327)||(_0xfbe113=!0x1);}_0xfbe113&&_0x3655d7['discard']();}else{const _0x3a72ce=_0x3655d7['getFirstRange']();if(_0x3a72ce['containsRange'](_0x12f531,!0x0))return _0x3655d7;if(!zt(_0x3655d7,_0x9cfb85)){_0x12f531['containsRange'](_0x3a72ce)?_0x3655d7['removeMarkers']():_0x3a72ce['containsPosition'](_0x117e59)?_0x117e59=_0x3a72ce['end']:_0x3a72ce['containsPosition'](_0x1c6e39)&&(_0x1c6e39=_0x3a72ce['start']);continue;}_0x117e59=_0x117e59['isBefore'](_0x3a72ce['start'])?_0x117e59:_0x3a72ce['start'],_0x1c6e39=_0x1c6e39['isAfter'](_0x3a72ce['end'])?_0x1c6e39:_0x3a72ce['end'],_0x9cfb85=Object['assign']({},_0x3655d7['attributes']),_0x1235c9?_0x3a72ce['start']['isBefore'](_0x1235c9['getFirstRange']()['start'])?(_0x1235c9['removeMarkers'](),_0x1235c9=_0x3655d7):_0x3655d7['removeMarkers']():_0x1235c9=_0x3655d7;}}}if(_0x1235c9)return this['_setSuggestionRange'](_0x1235c9,this['_model']['createRange'](_0x117e59,_0x1c6e39)),_0x1235c9;{const _0xe5a688=_0xbb8093(),_0x1fd338=this['_model']['createRange'](_0x117e59,_0x1c6e39),_0x4ad581=_0x375cdd['id'],_0x3da919=_0x1724f3?'deletion:'+_0x1724f3:'deletion',_0x8d07c6=this['_setSuggestionData']({'id':_0xe5a688,'type':_0x3da919,'createdAt':new Date(),'authorId':_0x4ad581,'attributes':_0x9cfb85});return this['_addSuggestionMarker'](_0x3da919,_0xe5a688,_0x4ad581,_0x1fd338),_0x8d07c6;}}['markMultiRangeDeletion'](_0x209948,_0x541022='multi',_0x411d21={}){const _0x4260d2=this['editor']['plugins']['get']('Users')['me'],_0x551b75=_0x209948['map'](_0x2ea9da=>new _0x5580c5(_0x2ea9da['start'],_0x2ea9da['end'])),_0x2de700=new Set();for(const {suggestion:_0x3b70b3,meta:_0x5a8766}of this['_findSuggestions'](_0x551b75,'insertion'))_0x5a8766['isOwn']&&!_0x5a8766['isNextTo']&&_0x2de700['add'](_0x3b70b3);for(const _0x59cf21 of _0x2de700)if(_0x59cf21['isMultiRange']){const _0x355f9b=_0x59cf21['getRanges']();(!_0x59cf21['attributes']||!_0x59cf21['attributes']['skipNestingCheck'])&&(_0x355f9b['every'](_0x57ed60=>_0x551b75['some'](_0x2365ee=>_0x2365ee['containsRange'](_0x57ed60,!0x0)))&&_0x59cf21['discard']());if(_0x551b75['every'](_0x31e5db=>_0x355f9b['some'](_0x3da80a=>_0x3da80a['containsRange'](_0x31e5db,!0x0)))){const _0x7bafd8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x541022,'accept');return this['forceDefaultExecution'](()=>_0x7bafd8(_0x209948,null,_0x411d21)),null;}}else{const _0x10e407=_0x59cf21['getFirstRange']();_0x551b75['some'](_0x5b9ac6=>_0x5b9ac6['containsRange'](_0x10e407,!0x0))&&_0x59cf21['discard']();if(_0x551b75['every'](_0x41e839=>_0x10e407['containsRange'](_0x41e839,!0x0))){const _0x3e3ffb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x541022,'accept');return this['forceDefaultExecution'](()=>_0x3e3ffb(_0x551b75,null,_0x411d21)),null;}}const _0x50280b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x541022,'join');let _0x1ec398=null;for(const _0x167ab7 of this['getSuggestions']())if(_0x167ab7['author']['id']==_0x4260d2['id']&&_0x167ab7['isInContent']&&'deletion'==_0x167ab7['type']&&_0x167ab7['subType']==_0x541022&&zt(_0x167ab7,_0x411d21)&&(_0x50280b(_0x167ab7['getRanges'](),_0x551b75)||_0x50280b(_0x551b75,_0x167ab7['getRanges']()))){if(_0x1ec398){if(_0x167ab7['commentThread']&&_0x167ab7['commentThread']['length'])continue;for(const _0x5c55ff of _0x167ab7['getRanges']())_0x1ec398['isIntersectingWithRange'](_0x5c55ff)||_0x1ec398['addRange'](_0x5c55ff);_0x167ab7['removeMarkers']();}else{_0x1ec398=_0x167ab7;for(const _0x390e34 of _0x551b75)_0x167ab7['isIntersectingWithRange'](_0x390e34)||_0x167ab7['addRange'](_0x390e34);}}if(_0x1ec398)return _0x1ec398;_0x2de700['clear']();for(const {suggestion:_0xf4708e,meta:_0x1b1d58}of this['_findSuggestions'](_0x551b75,'deletion'))_0x1b1d58['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1b1d58['containsRangeInObject']&&!_0x1b1d58['isInsideObject'])&&zt(_0xf4708e,_0x411d21)&&_0x2de700['add'](_0xf4708e);for(const _0xaed0a2 of _0x2de700){const _0x88e9c6=_0xaed0a2['getRanges']();if(!_0x411d21||!_0x411d21['skipNestingCheck']){if(_0x551b75['every'](_0x355ea1=>_0x88e9c6['some'](_0x49fde9=>_0x49fde9['containsRange'](_0x355ea1,!0x0))))return _0xaed0a2;}(!_0xaed0a2['attributes']||!_0xaed0a2['attributes']['skipNestingCheck'])&&(_0x88e9c6['every'](_0x4b569c=>_0x551b75['some'](_0x20db96=>_0x20db96['containsRange'](_0x4b569c,!0x0)))&&_0xaed0a2['discard']());}const _0x23a20=_0xbb8093(),_0x289fd8=_0x4260d2['id'],_0x4c56bb='deletion:'+_0x541022,_0x4d24e1=this['_setSuggestionData']({'id':_0x23a20,'type':_0x4c56bb,'createdAt':new Date(),'authorId':_0x289fd8,'attributes':_0x411d21});for(const _0x20cff2 of _0x551b75)_0x20cff2['detach'](),_0x20cff2['isCollapsed']||'$graveyard'==_0x20cff2['root']['rootName']||this['_addSuggestionMarker'](_0x4c56bb,_0x23a20,_0x289fd8,_0x20cff2,u['getMultiRangeId']());return _0x4d24e1;}['markAttributeChange'](_0x66508,_0x1b53c0,_0x2783d9,_0x2e7b64,_0x95200f){if(_0x66508['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1fa6a3=this['editor']['plugins']['get']('Users')['me']['id'],_0x47855d=Array['from'](this['_suggestions']['values']())['filter'](_0x1f0cfa=>'attribute'==_0x1f0cfa['type']&&_0x1f0cfa['data']['key']==_0x1b53c0&&_0x1f0cfa['isIntersectingWithRange'](_0x66508));if('default'===this['_trackFormatChanges']){const _0x35e131=this['_findSuggestions'](_0x66508,'insertion')['filter'](({meta:_0x46f7dd})=>_0x46f7dd['isOwn']&&!_0x46f7dd['isInsideObject']&&!_0x46f7dd['isNextTo'])['map'](({suggestion:_0x1bee3d})=>_0x1bee3d);_0x47855d['unshift'](..._0x35e131);}const _0x41af32=new Map([[_0x66508,_0x2783d9]]);for(const _0x4712f6 of _0x47855d){const _0x3ae47b='attribute'==_0x4712f6['type']?_0x4712f6['data']['oldValue']:void 0x0,_0x508f53=_0x4712f6['getFirstRange'](),_0x523d8d=Array['from'](_0x41af32['keys']())['find'](_0x7e1a5a=>_0x7e1a5a['isIntersecting'](_0x508f53));if(!_0x523d8d)continue;const _0x21fa97=_0x523d8d['getDifference'](_0x508f53);this['_isBlockAttribute'](_0x1b53c0)&&'insertion'==_0x4712f6['type']&&0x0!=_0x21fa97['length']||(_0x41af32['delete'](_0x523d8d),_0x21fa97['forEach'](_0x316449=>{_0x41af32['set'](_0x316449,_0x2783d9);}),'insertion'!=_0x4712f6['type']&&_0x3ae47b!=_0x2e7b64&&_0x41af32['set'](_0x523d8d['getIntersection'](_0x508f53),_0x3ae47b));}const _0x172638=[];for(const [_0x17833c,_0x5789f8]of _0x41af32){const _0x522671=_0xbb8093(),_0x1d8005={'key':_0x1b53c0,'oldValue':_0x5789f8,'newValue':_0x2e7b64};_0x1b53c0['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':_0x1b53c0});const _0x1a3e4d=('attribute:'+(_0x1b53c0+'|'+Gt({'newValue':_0x2e7b64})))['substring'](0x0,0x3c),_0x214910=this['_setSuggestionData']({'id':_0x522671,'type':_0x1a3e4d,'data':_0x1d8005,'createdAt':new Date(),'authorId':_0x1fa6a3,'attributes':_0x95200f});_0x172638['push'](_0x214910),this['_addSuggestionMarker'](_0x1a3e4d,_0x522671,_0x1fa6a3,_0x17833c);}return _0x172638;}['enableDefaultAttributesIntegration'](_0x12f0d1){this['enableCommand'](_0x12f0d1,(_0x120c85,..._0x511333)=>{this['_recordAttributeChanges'](()=>{_0x120c85(..._0x511333);});});}['registerBlockAttribute'](_0x356927){this['_blockAttributeKeys']['add'](_0x356927);}['registerInlineAttribute'](_0x5755e0){this['_inlineAttributeKeys']['add'](_0x5755e0);}['_getAttributeKey'](_0x368df1){return'attribute'==_0x368df1['type']?_0x368df1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x51cdf4,_0x5e0a53){const _0xb01a2c=_0x51cdf4['getFirstMarker']();this['_model']['change'](_0x3b2d81=>{_0x3b2d81['updateMarker'](_0xb01a2c,{'range':_0x5e0a53});});}['_addThreadToSuggestion'](_0x466321){const _0x435405=_0x466321['id'],_0x22b1ee=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x435405)||this['_commentsRepository']['addCommentThread']({'channelId':_0x22b1ee,'threadId':_0x435405,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd1f849=this['_commentsRepository']['getCommentThread'](_0x435405);_0xd1f849['unbind']('isRemovable'),_0xd1f849['isRemovable']=!0x1,_0x466321['commentThread']=_0xd1f849;}['_checkSuggestionCorrectness'](_0x5f5dcf,_0x5e673d,_0x4b9f74,_0x1e7ceb){if(_0x5f5dcf['type']!=_0x5e673d||_0x5f5dcf['subType']!=_0x4b9f74||_0x5f5dcf['creator']['id']!=_0x1e7ceb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x8a669('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5f9837,_0x383b9a){const _0x4cc201=_0x5f9837['getFirstRange']();if(_0x383b9a['isEqual'](_0x4cc201))_0x5f9837['removeMarkers']();else{if(_0x4cc201['containsRange'](_0x383b9a)){const _0x3d6ec4=this['_model']['createPositionAt'](_0x383b9a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5f9837,this['_model']['createRange'](_0x4cc201['start'],_0x3d6ec4));const _0x5cfd2c=_0xbb8093(),_0x293ef5=_0x5f9837['creator']['id'],_0x4092a3=_0x5f9837['type']+':'+_0x5f9837['subType'];this['_setSuggestionData']({'id':_0x5cfd2c,'type':_0x4092a3,'createdAt':new Date(),'authorId':_0x293ef5,'data':_0x5f9837['data'],'attributes':_0x5f9837['attributes']});const _0x562e8d=this['_model']['createPositionAt'](_0x383b9a['end']['parent'],'after'),_0x584f71=this['_model']['createRange'](_0x562e8d,_0x4cc201['end']);this['_addSuggestionMarker'](_0x4092a3,_0x5cfd2c,_0x293ef5,_0x584f71);}else{if(_0x4cc201['containsPosition'](_0x383b9a['start'])){const _0x100b2c=this['_model']['createPositionAt'](_0x383b9a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5f9837,this['_model']['createRange'](_0x4cc201['start'],_0x100b2c));}else{const _0x26a911=this['_model']['createPositionAt'](_0x383b9a['end']['parent'],'after');this['_setSuggestionRange'](_0x5f9837,this['_model']['createRange'](_0x26a911,_0x4cc201['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3c757b){for(const {suggestion:_0x4452bf,meta:_0x1b6f28}of this['_findSuggestions'](_0x3c757b,'insertion')){if(!_0x1b6f28['isOwn'])continue;const _0x100d40=_0x4452bf['getRanges']();for(const _0x2928ee of _0x100d40)if(!_0x3c757b['getDifference'](_0x2928ee)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x350747){const _0x53b8eb=this['editor']['plugins']['get']('Users')['getUser'](_0x350747);if(!_0x53b8eb)throw new _0x8a669('track-changes-user-not-found',this);return _0x53b8eb;}['_getExternalAuthor'](_0x517493){const _0x118744=this['editor']['plugins']['get']('Users'),_0x40da56=_0x79c6dd('external:'+_0x517493),_0x4d4486=_0x118744['getUser'](_0x40da56);return _0x4d4486||_0x118744['addUser']({'id':_0x40da56,'name':_0x517493});}['_createSuggestion'](_0x5cb316,_0x3148e2,_0x10301c,_0xb42cca,_0x316d47){const _0x4b59b7=this['_getAuthorFromId'](_0xb42cca),_0x559395=this['_suggestionFactory']['buildSuggestion'](_0x5cb316,_0x3148e2,_0x10301c,_0x4b59b7,_0x316d47,_0x2e2896=>{this['_updateSuggestionData'](_0x10301c,{'attributes':_0x2e2896});const _0x39c8e3=this['getSuggestion'](_0x10301c);this['_joinWithAdjacentSuggestions'](new Set([_0x39c8e3])),this['_refreshSuggestionsChain'](new Set([_0x39c8e3]));});return this['listenTo'](_0x559395,'accept',()=>{this['_updateSuggestionData'](_0x10301c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x559395,'discard',()=>{this['_updateSuggestionData'](_0x10301c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x10301c,_0x559395),this['_suggestionState']['set'](_0x559395,'notReady'),_0x559395;}['_splitMarkerName'](_0x326476){const _0xfe24d0=_0x326476['split'](':');return{'group':_0xfe24d0[0x0],'type':_0xfe24d0[0x1],'subType':_0xfe24d0['length']>=0x5?_0xfe24d0[0x2]:null,'id':_0xfe24d0['length']<0x5?_0xfe24d0[0x2]:_0xfe24d0[0x3],'authorId':_0xfe24d0['length']<0x5?_0xfe24d0[0x3]:_0xfe24d0[0x4],'markerCount':0x6==_0xfe24d0['length']?_0xfe24d0[0x5]:null};}['_breakSuggestionMarker'](_0x366429,_0x27d8f6,_0x40364c){const _0x166c6a=_0x366429['getFirstRange'](),_0x543406=_0x166c6a['start'],_0x13de6c=_0x166c6a['end'];this['_setSuggestionRange'](_0x366429,this['_model']['createRange'](_0x543406,_0x27d8f6));const _0xa9f490=_0xbb8093(),_0x4f9c4=_0x366429['creator']['id'],_0x3d1ba4=_0x366429['type']+(_0x366429['subType']?':'+_0x366429['subType']:'');this['_setSuggestionData']({'id':_0xa9f490,'type':_0x3d1ba4,'createdAt':new Date(),'authorId':_0x4f9c4,'originalSuggestionId':_0x366429['id'],'attributes':_0x366429['attributes'],'data':_0x366429['data']});const _0x5a305a=this['_getAttributeKey'](_0x366429);('formatBlock'==_0x366429['type']||_0x5a305a&&this['_isBlockAttribute'](_0x5a305a))&&(_0x40364c=this['_model']['createPositionBefore'](_0x40364c['parent'])),this['_addSuggestionMarker'](_0x3d1ba4,_0xa9f490,_0x4f9c4,this['_model']['createRange'](_0x40364c,_0x13de6c));}['_findSuggestions'](_0x15a193,_0x4e4676=null){const _0x1ccd60=[],_0x1b2635=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x15a193)||(_0x15a193=[_0x15a193]);for(const _0x3581a6 of this['getSuggestions']()){if(!_0x3581a6['isInContent'])continue;if(_0x4e4676&&_0x3581a6['type']!=_0x4e4676)continue;let _0x159ba0=!0x1;for(const _0x1d94f6 of _0x3581a6['getRanges']()){for(const _0x504cbc of _0x15a193){const _0x5656fc=_0x504cbc['start']['isEqual'](_0x1d94f6['end'])||_0x504cbc['end']['isEqual'](_0x1d94f6['start']);if(_0x5656fc||_0x504cbc['getIntersection'](_0x1d94f6)){const _0x4213e8=_0x504cbc['containsRange'](_0x1d94f6)&&Ut(this['_model']['schema'],_0x1d94f6['start'],_0x504cbc),_0x4eedbf=_0x1d94f6['containsRange'](_0x504cbc)&&Ut(this['_model']['schema'],_0x504cbc['start'],_0x1d94f6);_0x1ccd60['push']({'suggestion':_0x3581a6,'meta':{'isOwn':_0x1b2635==_0x3581a6['author'],'isNextTo':_0x5656fc,'isInsideObject':_0x4213e8,'containsRangeInObject':_0x4eedbf}}),_0x159ba0=!0x0;break;}}if(_0x159ba0)break;}}return _0x1ccd60;}['_addSuggestionMarker'](_0x5a1889,_0x1ac9e0,_0xf4259e,_0x22ab3f,_0x3c2902){this['_model']['change'](_0x15fa99=>{let _0x4b0ffa='suggestion:'+_0x5a1889+':'+_0x1ac9e0+':'+_0xf4259e;_0x3c2902&&(_0x4b0ffa=_0x4b0ffa+':'+_0x3c2902),_0x15fa99['addMarker'](_0x4b0ffa,{'range':_0x22ab3f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x420d44){const _0x5e0c99=_0x420d44['previous'],_0x3d6f77=_0x420d44['next'];_0x420d44['previous']=null,_0x420d44['next']=null,null!=_0x5e0c99&&_0x5e0c99['next']==_0x420d44&&(_0x5e0c99['next']=_0x3d6f77),null!=_0x3d6f77&&_0x3d6f77['previous']==_0x420d44&&(_0x3d6f77['previous']=_0x5e0c99),'ready'==this['_suggestionState']['get'](_0x420d44)&&(this['_suggestionState']['set'](_0x420d44,'removed'),this['fire']('suggestionUnloaded',_0x420d44,_0x5e0c99,_0x3d6f77));}['_setSuggestionData'](_0x2b6c00){const _0x411604=_0x2b6c00['id'],_0x31d815=this['addSuggestionData'](_0x2b6c00);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x206d66=this['editor']['plugins']['get']('PendingActions'),_0x46bb99=_0x31d815['hasComments'],_0x4246bb=_0x31d815['subType']?_0x31d815['type']+':'+_0x31d815['subType']:_0x31d815['type'],_0x4d88d3=this['editor']['locale'],_0x22ac9e=_0x206d66['add'](o(_0x4d88d3,'PENDING_ACTION_SUGGESTION')),_0x40a5da={'id':_0x411604,'type':_0x4246bb,'hasComments':_0x46bb99,'data':_0x2b6c00['data']||null,'originalSuggestionId':_0x2b6c00['originalSuggestionId']||null,'attributes':_0x31d815['attributes']};this['_adapter']['addSuggestion'](_0x40a5da)['then'](_0x4dd155=>{_0x31d815['_saved']=!0x0,_0x206d66['remove'](_0x22ac9e),_0x4dd155&&_0x4dd155['createdAt']&&(this['_suggestions']['get'](_0x411604)['createdAt']=_0x4dd155['createdAt']);})['catch'](_0x3151aa=>{throw _0x889b4f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x31d815['discard']();}),_0x31d815['stopListening'](),this['_suggestions']['delete'](_0x31d815['id']),this['_suggestionState']['delete'](_0x31d815),_0x3151aa;});}return _0x31d815;}['_isBlockAttribute'](_0x5f0df8){return this['_blockAttributeKeys']['has'](_0x5f0df8);}['_updateSuggestionData'](_0xce8fef,_0x2e3b50){const _0x3c037a=this['editor']['plugins']['get']('PendingActions'),_0x2388c8=this['getSuggestion'](_0xce8fef);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2388c8['_saved']){const _0x253b9d=_0x3c037a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0xce8fef,_0x2e3b50)['then'](()=>{_0x3c037a['remove'](_0x253b9d);});}else _0x2388c8['on']('change:_saved',()=>{this['_updateSuggestionData'](_0xce8fef,_0x2e3b50);});}}['_getSuggestionData'](_0x2ed176){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x8a669('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2ed176);}['_handleNewSuggestionMarker'](_0x3321a5){const {id:_0x413dd5,type:_0x153f24,subType:_0x1bc7f1,authorId:_0x2592cf}=this['_splitMarkerName'](_0x3321a5),_0x305ff6=this['_suggestions']['get'](_0x413dd5)||this['_createSuggestion'](_0x153f24,_0x1bc7f1,_0x413dd5,_0x2592cf,{});switch(this['_checkSuggestionCorrectness'](_0x305ff6,_0x153f24,_0x1bc7f1,_0x2592cf),this['_suggestionState']['get'](_0x305ff6)){case'notReady':this['_getSuggestionData'](_0x413dd5)['then'](_0x1f643a=>{let _0x219108=Promise['resolve']();_0x1f643a['hasComments']&&(_0x219108=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x413dd5})),_0x219108['then'](()=>{this['addSuggestionData'](_0x1f643a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x305ff6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x413dd5,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x305ff6,'ready'),this['fire']('suggestionLoaded',_0x305ff6);break;case'ready':this['fire']('suggestionChanged',_0x305ff6);}return _0x305ff6['addMarkerName'](_0x3321a5),_0x305ff6;}['_refreshSuggestionsChain'](_0x596fa1){const _0x4af24a=Array['from'](_0x596fa1),_0x13c8af=_0x4af24a['filter'](_0x14e91b=>'attribute'==_0x14e91b['type']);this['_refreshAttributeSuggestionsChain'](_0x13c8af);const _0x471e38=_0x4af24a['filter'](_0x211211=>!_0x211211['isMultiRange']&&'attribute'!=_0x211211['type']),_0x2bd8d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc3fa40=>!_0xc3fa40['isMultiRange']&&'attribute'!=_0xc3fa40['type']),_0x48c165=_0x2bd8d2['filter'](_0xd209c3=>!_0x596fa1['has'](_0xd209c3)),_0x5501c3=new Map(_0x2bd8d2['map'](_0x13524d=>[_0x13524d,this['_suggestionFactory']['getSuggestionCallback'](_0x13524d['type'],_0x13524d['subType'],'chain')])),_0x5227c4=new Map(_0x2bd8d2['map'](_0xe437bc=>[_0xe437bc,_0xe437bc['getFirstRange']()])),_0x170c23=new Set(),_0x3ba6d4=new Set();for(let _0x309e66=0x0;_0x309e66<_0x471e38['length'];_0x309e66++)_0x394a5a(_0x471e38[_0x309e66],_0x471e38,_0x309e66+0x1);for(let _0x315b26=0x0;_0x315b26<_0x471e38['length'];_0x315b26++)_0x394a5a(_0x471e38[_0x315b26],_0x48c165,0x0);const _0x16d1c=new Set();for(let _0x1c6b39=0x0;_0x1c6b39<_0x471e38['length'];_0x1c6b39++){const _0x5d4dbc=_0x471e38[_0x1c6b39];!_0x3ba6d4['has'](_0x5d4dbc)&&_0x5d4dbc['previous']&&(_0x16d1c['add'](_0x5d4dbc['previous']),_0x5d4dbc['previous']['next']===_0x5d4dbc&&(_0x5d4dbc['previous']['next']=null),_0x5d4dbc['previous']=null),!_0x170c23['has'](_0x5d4dbc)&&_0x5d4dbc['next']&&(_0x16d1c['add'](_0x5d4dbc['next']),_0x5d4dbc['next']['previous']===_0x5d4dbc&&(_0x5d4dbc['next']['previous']=null),_0x5d4dbc['next']=null);}function _0x394a5a(_0xbb9b22,_0xdeb388,_0x2557ed){for(let _0x340271=_0x2557ed;_0x340271<_0xdeb388['length'];_0x340271++){const _0xa9696=_0x96ae23(_0xbb9b22,_0xdeb388[_0x340271]);_0xa9696&&(_0xa9696[0x0]['next']=_0xa9696[0x1],_0xa9696[0x1]['previous']=_0xa9696[0x0],_0x170c23['add'](_0xa9696[0x0]),_0x3ba6d4['add'](_0xa9696[0x1]));}}function _0x96ae23(_0x59b140,_0x239c2e){if(_0x59b140['author']['id']!==_0x239c2e['author']['id'])return null;const _0xd65f68=_0x5501c3['get'](_0x59b140)(_0x59b140,_0x239c2e,_0x5227c4['get'](_0x59b140),_0x5227c4['get'](_0x239c2e));if(!_0xd65f68)return null;return _0x5501c3['get'](_0x239c2e)(_0x59b140,_0x239c2e,_0x5227c4['get'](_0x59b140),_0x5227c4['get'](_0x239c2e))?_0xd65f68[0x1]['commentThread']&&_0xd65f68[0x1]['commentThread']['length']?null:_0xd65f68:null;}_0x16d1c['size']&&this['_refreshSuggestionsChain'](_0x16d1c);}['_refreshAttributeSuggestionsChain'](_0x539f62){if(0x0==_0x539f62['length'])return;const _0x15479b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3690a6=>'attribute'==_0x3690a6['type']&&_0x3690a6['_isDataLoaded']),_0x153490=[],_0x4f8119=new Map();for(const _0x5ee147 of _0x15479b){const _0x4ffb63=_0x79c6dd(_0x5ee147['attributes']);_0x4f8119['has'](_0x4ffb63)||(_0x4f8119['set'](_0x4ffb63,_0x153490['length']),_0x153490['push']([]));const _0x2c4b2a=_0x4f8119['get'](_0x4ffb63);_0x153490[_0x2c4b2a]['push'](_0x5ee147);}!(function(){_0x153490['sort']((_0x1ea630,_0xe09a58)=>{const _0x129dfd=_0x1ea630[0x0]['createdAt'],_0x296e0e=_0xe09a58[0x0]['createdAt'];return _0x129dfd==_0x296e0e?_0x1ea630[0x0]['attributes']['groupId']<_0xe09a58[0x0]['attributes']['groupId']?-0x1:0x1:_0x129dfd<_0x296e0e?-0x1:0x1;});for(const _0x417213 of _0x153490)_0x417213['sort']((_0x5a047f,_0x4c398c)=>_0x5a047f['id']<_0x4c398c['id']?-0x1:0x1);}());for(let _0x4aa600=0x0;_0x4aa600<_0x153490['length'];_0x4aa600++){if(0x0==_0x153490[_0x4aa600]['length'])continue;const _0x106e98=[];for(let _0x44346a=_0x4aa600+0x1;_0x44346a<_0x153490['length'];_0x44346a++)0x0!=_0x153490[_0x44346a]['length']&&_0x13fce2(_0x153490[_0x4aa600],_0x153490[_0x44346a])&&_0x106e98['push'](_0x44346a);for(const _0x2821cd of _0x106e98)_0x153490[_0x4aa600]=_0x153490[_0x4aa600]['concat'](_0x153490[_0x2821cd]),_0x153490[_0x2821cd]=[];}for(const _0x14cd5e of _0x153490)for(let _0x4007f3=0x0;_0x4007f3<_0x14cd5e['length'];_0x4007f3++){const _0x1d5636=_0x14cd5e[_0x4007f3+0x1]||null;_0x14cd5e[_0x4007f3]['next']!==_0x1d5636&&(_0x14cd5e[_0x4007f3]['next']=_0x1d5636);}for(const _0xa6638b of _0x153490)for(let _0x1e2552=0x0;_0x1e2552<_0xa6638b['length'];_0x1e2552++){const _0xaaea48=_0xa6638b[_0x1e2552-0x1]||null;_0xa6638b[_0x1e2552]['previous']!==_0xaaea48&&(_0xa6638b[_0x1e2552]['previous']=_0xaaea48);}function _0x13fce2(_0x35602e,_0x1fd110){if(_0x35602e[0x0]['attributes']['groupId']!==_0x1fd110[0x0]['attributes']['groupId']&&_0x35602e[0x0]['author']!==_0x1fd110[0x0]['author'])return!0x1;if(!function(_0x2d6c30,_0x532bcc){if(!_0x2d6c30['hasComments']&&!_0x532bcc['hasComments'])return!0x0;if(_0x2d6c30['hasComments']&&_0x532bcc['hasComments'])return!0x1;if(_0x2d6c30['hasComments']&&_0x532bcc['createdAt']<_0x2d6c30['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x532bcc['hasComments']&&_0x2d6c30['createdAt']<_0x532bcc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x35602e[0x0],_0x1fd110[0x0]))return!0x1;const _0x5700fd=xt(_0x35602e[0x0]['attributes'],'groupId'),_0x7a72b9=xt(_0x1fd110[0x0]['attributes'],'groupId');if(!_0x202e10(_0x5700fd,_0x7a72b9))return!0x1;return!!_0x35602e['every'](_0x50d3f3=>_0x1fd110['some'](_0x304688=>_0x50d3f3['getFirstRange']()['isEqual'](_0x304688['getFirstRange']())))&&_0x1fd110['every'](_0x2ce26f=>_0x35602e['some'](_0x1cc8fe=>_0x2ce26f['getFirstRange']()['isEqual'](_0x1cc8fe['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd657b2){const _0x1d4b5c=Array['from'](_0xd657b2),_0x282746=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1a2c5c=_0x282746['filter'](_0x495d08=>!_0xd657b2['has'](_0x495d08)),_0x16c010=new Map(_0x1d4b5c['map'](_0x5e44b9=>[_0x5e44b9,this['_suggestionFactory']['getSuggestionCallback'](_0x5e44b9['type'],_0x5e44b9['subType'],'join')])),_0x266f57=new Map(_0x282746['map'](_0x5a9897=>[_0x5a9897,_0x5a9897['getRanges']()]));for(let _0x4300a4=0x0;_0x4300a4<_0x1d4b5c['length'];_0x4300a4++){if(_0x32954e(this,_0x1d4b5c[_0x4300a4],_0x1d4b5c,_0x4300a4+0x1))return!0x0;}for(let _0x5e5cf4=0x0;_0x5e5cf4<_0x1d4b5c['length'];_0x5e5cf4++){if(_0x32954e(this,_0x1d4b5c[_0x5e5cf4],_0x1a2c5c,0x0))return!0x0;}return!0x1;function _0x32954e(_0x34ad71,_0x3dbc1d,_0x5d88f9,_0x302478){for(let _0x172754=_0x302478;_0x172754<_0x5d88f9['length'];_0x172754++){const _0x3f9db7=_0x5d88f9[_0x172754];if(_0x3f9db7['type']!==_0x3dbc1d['type']||_0x3f9db7['author']['id']!==_0x3dbc1d['author']['id']||_0x3f9db7['subType']!==_0x3dbc1d['subType'])continue;if(!qt(_0x3dbc1d,_0x3f9db7))continue;if('attribute'==_0x3dbc1d['type']&&_0x3dbc1d['data']['oldValue']!=_0x3f9db7['data']['oldValue'])continue;if('attribute'==_0x3dbc1d['type']&&_0x34ad71['_isBlockAttribute'](_0x3dbc1d['data']['key']))continue;if('formatBlock'==_0x3dbc1d['type']){const _0x4c421d=_0x34ad71['editor']['model'],_0x16b003=_0x3dbc1d['getContainedElement']();if(_0x16b003&&(_0x4c421d['schema']['isObject'](_0x16b003)||_0x4c421d['schema']['isLimit'](_0x16b003)))continue;}const _0x22ffaf=_0x16c010['get'](_0x3dbc1d),_0x30a748=_0x266f57['get'](_0x3dbc1d),_0x2a2782=_0x266f57['get'](_0x3f9db7),_0xa9696d=_0x3dbc1d['commentThread']&&_0x3dbc1d['commentThread']['length'],_0x22e3c4=_0x3f9db7['commentThread']&&_0x3f9db7['commentThread']['length'];if(!_0xa9696d&&_0x22ffaf(_0x2a2782,_0x30a748))return _0x34ad71['_joinSuggestions'](_0x3f9db7,_0x3dbc1d),_0x266f57['delete'](_0x3dbc1d),!0x0;if(!_0x22e3c4&&_0x22ffaf(_0x30a748,_0x2a2782))return _0x34ad71['_joinSuggestions'](_0x3dbc1d,_0x3f9db7),_0x266f57['delete'](_0x3f9db7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5d7fd0,_0x1f0c18){if(_0x5d7fd0['isMultiRange']){for(const _0x3e4705 of _0x1f0c18['getRanges']())_0x5d7fd0['addRange'](_0x3e4705);}else{const _0x3a5c19=_0x1f0c18['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5d7fd0,this['_model']['createRange'](_0x5d7fd0['getFirstRange']()['start'],_0x3a5c19));}_0x1f0c18['removeMarkers']();}['_getMarkerAnnouncementText'](_0x20c236,_0x3b3ae6,_0x54b085){const _0x298c39=_0x20c236['startsWith']('format')||_0x20c236['startsWith']('attribute')?'FORMATTING':_0x20c236['toUpperCase']();return o(this['editor']['locale'],_0x3b3ae6+'_'+_0x298c39+'_SUGGESTION_ANNOUNCEMENT',_0x54b085);}['_initAriaMarkerChangeAnnouncements'](){const _0x20c2a9=this['editor'];if(!_0x20c2a9['ui'])return;const {ariaLiveAnnouncer:_0x1b7bb5}=_0x20c2a9['ui'];_0x3f48c9(this['_model'],({left:_0x3dfce5,entered:_0x1085cd})=>{for(const _0x5b75ca of _0x3dfce5){const {group:_0x499c91,type:_0x4fcced}=this['_splitMarkerName'](_0x5b75ca['name']);if('suggestion'===_0x499c91){_0x1b7bb5['announce'](this['_getMarkerAnnouncementText'](_0x4fcced,'LEAVE'));break;}}for(const _0x1a7a89 of _0x1085cd){const {group:_0x59893e,type:_0x473d7b}=this['_splitMarkerName'](_0x1a7a89['name']);if('suggestion'===_0x59893e){_0x1b7bb5['announce'](this['_getMarkerAnnouncementText'](_0x473d7b,'ENTER',_0xd54879(_0x5e9494)));break;}}});}['_processAttributeChanges'](_0x507058){if(this['_recordAttributeSuggestions'])return!0x1;const _0x13f167=this['editor'],_0x33e30f=_0x13f167['model']['document']['differ']['getChanges']();if(0x0==_0x33e30f['length'])return!0x1;const _0x13f73b=[],_0x5bd24e=_0x33e30f['filter'](_0x4f3a26=>'attribute'==_0x4f3a26['type']),_0xbe6986=_0x33e30f['filter'](_0x123847=>'insert'==_0x123847['type']&&'$text'!=_0x123847['name']),_0x5c6c77=_0x33e30f['filter'](_0x511ce1=>'remove'==_0x511ce1['type']&&'$text'!=_0x511ce1['name']);for(const _0x42b823 of _0x5bd24e)_0x13f73b['push']({'key':_0x42b823['attributeKey'],'newValue':_0x42b823['attributeNewValue'],'oldValue':_0x42b823['attributeOldValue'],'range':Lt(_0x42b823['range'],_0x13f167['model'])});for(const _0x2a84a8 of _0xbe6986){const _0x40e75a=_0x5c6c77['find'](_0x582e53=>_0x582e53['position']['isEqual'](_0x2a84a8['position']));_0x40e75a&&_0x13f73b['push']({'key':m,'newValue':_0x2a84a8['name'],'oldValue':_0x40e75a['name'],'range':_0x13f167['model']['createRangeOn'](_0x2a84a8['position']['nodeAfter'])});}return 0x0!=_0x13f73b['length']&&this['_reduceExistingSuggestions'](_0x507058,_0x13f73b);}['_processAttributeSuggestions'](_0x666d9){let _0x48edf6=!0x1;const _0x49ce84=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3d8068=>_0x3d8068['data']['newRange']&&_0x3d8068['name']['startsWith']('suggestion:attribute:'));for(const _0x4c9a98 of _0x49ce84){const {subType:_0x417776,id:_0x271f2e}=this['_splitMarkerName'](_0x4c9a98['name']),_0x5a664f=_0x417776['split']('|')[0x0];for(const _0x4b2bd1 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4b2bd1['id']!=_0x271f2e&&'attribute'==_0x4b2bd1['type']&&_0x4b2bd1['data']&&_0x4b2bd1['data']['key']==_0x5a664f&&_0x4b2bd1['getFirstRange']()['isIntersecting'](_0x4c9a98['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4b2bd1,_0x4c9a98['data']['newRange'],_0x666d9),_0x48edf6=!0x0);}return _0x48edf6;}['_recordAttributeChanges'](_0x1eafd3){this['_recordAttributeSuggestions']=!0x0,_0x1eafd3();}['_isRegisteredAttribute'](_0x3fb6d0){const _0x19be30=this['_isBlockAttribute'](_0x3fb6d0),_0x42a47b=this['_inlineAttributeKeys']['has'](_0x3fb6d0);return _0x19be30||_0x42a47b;}['_reduceExistingSuggestions'](_0xf9d55a,_0x7f2bc){if(0x0==_0x7f2bc['length'])return!0x1;let _0x5dcccb=!0x1;for(const _0x43a995 of _0x7f2bc){const _0x47cf75=this['_findSuggestions'](_0x43a995['range'],'attribute')['filter'](_0x1af7f2=>!_0x1af7f2['meta']['isNextTo'])['map'](_0x579fcf=>_0x579fcf['suggestion']),_0x13e6e0=_0x79c6dd({'newValue':_0x43a995['newValue']});_0x47cf75['filter'](_0x2fa999=>{const [_0x1d2f5c,_0x47858f]=_0x2fa999['subType']['split']('|');return _0x1d2f5c==_0x43a995['key']&&_0x47858f!=_0x13e6e0;})['forEach'](_0xf4b755=>{this['_reduceSuggestionAttributeRange'](_0xf4b755,_0x43a995['range'],_0xf9d55a),_0x5dcccb=!0x0;});}return _0x5dcccb;}['_reduceSuggestionAttributeRange'](_0x2397f2,_0x4bdb9b,_0x40a8d6){const _0x14a8a2=_0x2397f2['getFirstRange']()['getDifference'](_0x4bdb9b);0x0!==_0x14a8a2['length']?0x1!==_0x14a8a2['length']?this['_breakSuggestionMarker'](_0x2397f2,_0x4bdb9b['start'],_0x4bdb9b['end']):this['_setSuggestionRange'](_0x2397f2,_0x14a8a2[0x0]):_0x40a8d6['removeMarker'](_0x2397f2['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3a4251){this['_editor']=_0x3a4251,this['_model']=_0x3a4251['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10406f,_0x50727c,_0x309a1c,_0xde3d4d,_0x532593,_0x3b0f1b){return new u(this['_model'],{'type':_0x10406f,'subType':_0x50727c,'id':_0x309a1c,'author':_0xde3d4d,'creator':_0xde3d4d,'attributes':_0x532593,'onAttributesChange':_0x3b0f1b,'onAccept':(..._0x57d3bf)=>this['getSuggestionCallback'](_0x10406f,_0x50727c,'accept')(..._0x57d3bf),'onDiscard':(..._0x24bc9e)=>this['getSuggestionCallback'](_0x10406f,_0x50727c,'discard')(..._0x24bc9e)});}['registerCustomCallback'](_0xfd4b25,_0x144e8e,_0x3438b7,_0x22f963){const _0x1d8682=_0xfd4b25+':'+_0x144e8e+':'+_0x3438b7;this['_customCallbacks']['set'](_0x1d8682,_0x22f963);}['getSuggestionCallback'](_0x13e483,_0x1d4d9b,_0x157f68){const _0x760cb7=_0x13e483+':'+_0x1d4d9b+':'+_0x157f68;return this['_customCallbacks']['get'](_0x760cb7)||this['_defaultCallbacks']['get'](_0x13e483+':'+_0x157f68);}['_registerDefaultCallbacks'](){const _0xd5f71f=()=>!0x1,_0xe9f850=_0x5a5b72=>{_0x5a5b72['sort']((_0x3d2333,_0x1b5003)=>_0x3d2333['start']['isBefore'](_0x1b5003['start'])?0x1:-0x1),this['_model']['change'](_0x10ab9d=>{for(const _0x210915 of _0x5a5b72){let _0x12a8f0;_0x12a8f0=_0x210915['end']['isAtEnd']&&_0x210915['end']['parent']==_0x210915['start']['nodeAfter']?_0x10ab9d['createSelection'](_0x210915['start']['nodeAfter'],'on'):_0x10ab9d['createSelection'](_0x210915),this['_model']['deleteContent'](_0x12a8f0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2613d4=(_0x3066b0,_0x5038d3)=>{_0x5038d3&&this['_model']['change'](_0x5a04ad=>{const {commandName:_0x29a133,commandParams:_0x15567a=[]}=_0x5038d3,_0x209f68=_0x3066b0['map'](_0x10c222=>(Vt(_0x10c222)&&(_0x10c222=this['_model']['createRange'](_0x10c222['end'])),_0x10c222))['filter'](_0x5dd1c9=>'$graveyard'!==_0x5dd1c9['root']['rootName']);if(_0x209f68['length']<0x1)return;const _0x993cd4=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x41499b=>_0x5580c5['fromRange'](_0x41499b));_0x5a04ad['setSelection'](_0x209f68);for(const _0x2d08d3 of this['_editor']['commands']['commands']())_0x2d08d3['refresh']();_0x15567a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x29a133,..._0x15567a);const _0x52d01d=_0x993cd4['filter'](_0xdcb226=>'$graveyard'!=_0xdcb226['root']['rootName']);_0x52d01d['length']>0x0&&_0x5a04ad['setSelection'](_0x52d01d);for(const _0x3de7a0 of _0x993cd4)_0x3de7a0['detach']();});},_0x49c597=(_0x524c9f,_0x1632fb)=>0x1==_0x524c9f['length']&&0x1==_0x1632fb['length']&&_0x524c9f[0x0]['end']['isEqual'](_0x1632fb[0x0]['start']),_0x26a479=(_0x4d52bb,_0x175106,_0x47932d,_0x182197)=>Ht(_0x4d52bb,_0x175106,_0x47932d,_0x182197)?[_0x4d52bb,_0x175106]:Ht(_0x175106,_0x4d52bb,_0x182197,_0x47932d)?[_0x175106,_0x4d52bb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd5f71f),this['_defaultCallbacks']['set']('insertion:discard',_0xe9f850),this['_defaultCallbacks']['set']('insertion:join',_0x49c597),this['_defaultCallbacks']['set']('insertion:chain',_0x26a479),this['_defaultCallbacks']['set']('deletion:accept',_0xe9f850),this['_defaultCallbacks']['set']('deletion:discard',_0xd5f71f),this['_defaultCallbacks']['set']('deletion:join',_0x49c597),this['_defaultCallbacks']['set']('deletion:chain',_0x26a479),this['_defaultCallbacks']['set']('formatInline:accept',_0x2613d4),this['_defaultCallbacks']['set']('formatInline:discard',_0xd5f71f),this['_defaultCallbacks']['set']('formatInline:join',_0x49c597),this['_defaultCallbacks']['set']('formatInline:chain',_0xd5f71f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2613d4),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd5f71f),this['_defaultCallbacks']['set']('formatBlock:join',_0x49c597),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd5f71f),this['_defaultCallbacks']['set']('attribute:accept',_0xd5f71f),this['_defaultCallbacks']['set']('attribute:discard',(_0x1e8058,_0x4e80a8)=>{if(!_0x4e80a8)return;const _0x48708a=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x8f0f0d=>{if(_0x4e80a8['key']==m)for(const _0x219e21 of _0x1e8058){const _0x473f5e=_0x219e21['start']['nodeAfter'],_0x70dd75=_0x4e80a8['oldValue'];_0x8f0f0d['rename'](_0x473f5e,_0x70dd75);}else{if(_0x48708a['_isBlockAttribute'](_0x4e80a8['key'])){for(const _0x2d432b of _0x1e8058)void 0x0!==_0x4e80a8['oldValue']?_0x8f0f0d['setAttribute'](_0x4e80a8['key'],_0x4e80a8['oldValue'],_0x2d432b['start']['nodeAfter']):_0x8f0f0d['removeAttribute'](_0x4e80a8['key'],_0x2d432b['start']['nodeAfter']);}else{for(const _0x12ed81 of _0x1e8058)_0x4e80a8['oldValue']?_0x8f0f0d['setAttribute'](_0x4e80a8['key'],_0x4e80a8['oldValue'],_0x12ed81):_0x8f0f0d['removeAttribute'](_0x4e80a8['key'],_0x12ed81);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x49c597);}}function Ut(_0x21a994,_0x255786,_0x1f9947){for(const _0x3d8525 of _0x255786['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3d8525['root']==_0x3d8525)return!0x1;if(!_0x1f9947['containsItem'](_0x3d8525))return!0x1;if(_0x21a994['isObject'](_0x3d8525)||_0x21a994['isLimit'](_0x3d8525))return!0x0;}return!0x1;}function Vt(_0xc7cd88){return _0xc7cd88['end']['parent']==_0xc7cd88['start']['nodeAfter']&&_0xc7cd88['end']['isAtStart'];}function Pt(_0x3fb2dc,_0x5244f5,_0x1653d6,_0x4a9c6a){const _0x2a5e65=_0x1defe1=>!_0x1defe1['item']['is']('$textProxy')&&!_0x4a9c6a['isObject'](_0x1defe1['item']),_0x4d4734=_0x3fb2dc['start']['getLastMatchingPosition'](_0x2a5e65),_0x4b0ff9=_0x3fb2dc['end']['getLastMatchingPosition'](_0x2a5e65,{'direction':'backward'});return(!_0x3fb2dc['start']['isEqual'](_0x4d4734)||!_0x3fb2dc['end']['isEqual'](_0x4b0ff9))&&(_0x4d4734['isBefore'](_0x4b0ff9)?_0x1653d6['updateMarker'](_0x5244f5,{'range':_0x1653d6['createRange'](_0x4d4734,_0x4b0ff9)}):_0x1653d6['removeMarker'](_0x5244f5),!0x0);}function Gt(_0x200178){return _0x79c6dd(_0x200178);}function Ft(_0x3c6162){const _0x144b7c=_0x3c6162['start']['nodeAfter'];return _0x144b7c&&_0x144b7c['is']('element');}function Lt(_0xd83157,_0x20d767){return null==_0xd83157['end']['nodeBefore']&&_0xd83157['end']['parent']==_0xd83157['start']['nodeAfter']?Jt(_0xd83157['start']['nodeAfter'],_0x20d767):_0xd83157;}function Jt(_0x4ca07c,_0x22da03){const _0xaf3a44=_0x22da03['schema']['isObject'](_0x4ca07c)||_0x22da03['schema']['isSelectable'](_0x4ca07c);return _0x22da03['createRange'](_0x22da03['createPositionAt'](_0x4ca07c,'before'),_0xaf3a44?_0x22da03['createPositionAfter'](_0x4ca07c):_0x22da03['createPositionAt'](_0x4ca07c,'end'));}function Ht(_0x4469d3,_0x66fb84,_0x532cac,_0x4a25ca){return!!qt(_0x4469d3,_0x66fb84)&&_0x532cac['end']['isEqual'](_0x4a25ca['start']);}function qt(_0x50818a,_0x5a102a){if(!_0x50818a['_isDataLoaded']||!_0x5a102a['_isDataLoaded'])return!0x1;const _0x338728=new Set(Object['keys'](_0x50818a['attributes'])),_0x4458ad=new Set(Object['keys'](_0x5a102a['attributes']));if(_0x338728['delete']('groupId'),_0x4458ad['delete']('groupId'),0x0==_0x338728['size']&&0x0==_0x4458ad['size'])return!0x0;if(_0x338728['size']!=_0x4458ad['size'])return!0x1;const _0x10dc88={..._0x50818a['attributes']},_0xbfae67={..._0x5a102a['attributes']};return delete _0x10dc88['groupId'],delete _0xbfae67['groupId'],JSON['stringify'](_0x10dc88)==JSON['stringify'](_0xbfae67);}function zt(_0x4f6829,_0x122795){const _0x193a4c=Kt(_0x4f6829['attributes']),_0x1c7fa8=Kt(_0x122795);if(!_0x4f6829['_isDataLoaded'])return!0x1;for(const _0x3aedd2 of Object['keys'](_0x1c7fa8))if(!_0x202e10(_0x193a4c[_0x3aedd2],_0x1c7fa8[_0x3aedd2]))return!0x1;return!0x0;}function Kt(_0x2ee5fc){const _0x1d16ca=Object['assign']({},_0x2ee5fc);return delete _0x1d16ca['skipNestingCheck'],delete _0x1d16ca['tablePasteChainId'],_0x1d16ca;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x43b459(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4750cc,_0x5c0488,_0x443102,_0x6168a3){super(),this['model']=_0x5c0488,this['view']=_0x443102,this['commentThreadController']=_0x6168a3,this['_editor']=_0x4750cc,this['_acceptCommand']=_0x4750cc['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4750cc['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5c8145,_0x1335b1)=>_0x5c8145||_0x1335b1),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2d2e98=>_0x2d2e98&&this['_editor']['model']['canEditAt'](_0x5c0488['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x123b5c=>_0x123b5c&&this['_editor']['model']['canEditAt'](_0x5c0488['getRanges']())),this['_pendingAction']=null,_0x443102['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x443102,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x443102,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x443102,'change:isDirty',()=>{_0x443102['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 _0x4a1d82=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a1d82);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0xe98125{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x505ee2,_0x2d610d,_0x409a75,_0x144f22){super(_0x505ee2),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2cc9cf(_0x505ee2,o(_0x505ee2,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2d610d['authoredAt']),this['bind']('authoredAt')['to'](_0x2d610d),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',_0x2d610d,'authoredAt',this,'descriptionParts',(_0x4ef135,_0x536fd4,_0x5a0e67)=>{const _0x486407=_0x5a0e67['map'](_0x36f902=>ns(_0x36f902['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4ef135-0x1,_0x2d610d['author']['name'],_0x536fd4?_0x144f22['formatDateTime'](_0x536fd4):'',new DOMParser()['parseFromString'](_0x486407,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3a09a7(),this['focusTracker']=new _0x3cbc70(),this['keystrokes']=new _0x44a700(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29efa9=>_0x29efa9['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2d610d,this['_localUser']=_0x409a75,this['_config']=_0x144f22,_0x144f22['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1796bd(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x9c26e2}=this['_config'];this['commentsListView']=new _0x9c26e2(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',_0xd42426=>_0xd42426+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x389cf1,_0x2c893c)=>_0x389cf1||!!_0x2c893c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x45852e}=this['_config'],_0x263ec0=new _0x45852e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2e2b52=_0x263ec0['commentInputView'];return _0x263ec0['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2e2b52,'value',(_0xb261e2,_0x4a94a3,_0x53b0a1)=>!!_0x53b0a1||_0xb261e2&&!_0x4a94a3),_0x2e2b52['on']('submit',(_0x214ee8,_0x13fc5a)=>{this['fire']('addComment',_0x13fc5a),_0x2e2b52['editor']['setData']('');}),_0x2e2b52['on']('cancel',()=>this['focus']()),_0x2e2b52['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x263ec0;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x5865ac,_0x6c96b,_0x4734a2,_0x986edc){super(_0x5865ac,_0x6c96b,_0x4734a2,_0x986edc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2c901a=>_0x2c901a&&_0x2c901a[0x0]?_0x2c901a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x35e6cb,_0x3412f)=>{let _0x2b3ab7='';for(const _0x317ff2 of _0x35e6cb)_0x2b3ab7+='<p>'+ns(_0x317ff2['content'],_0x317ff2['color'])+'</p>';return _0x3412f?_0x2b3ab7:ti(_0x2b3ab7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x986edc['SuggestionView'](_0x5865ac,_0x6c96b,{'formatDateTime':_0x986edc['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 _0x5eeb74=this['bindTemplate'],_0x58dcbb=[this['suggestionView']];return this['commentsListView']&&_0x58dcbb['push'](this['commentsListView']),this['commentThreadInputView']&&_0x58dcbb['push'](this['commentThreadInputView']),_0x58dcbb['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5eeb74['if']('isActive','ck-suggestion-wrapper--active'),_0x5eeb74['to']('type',_0x56fbae=>'ck-suggestion-'+_0x56fbae),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':_0x5eeb74['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x58dcbb};}['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 ue extends _0xe98125{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x11fbf3,_0x2052fd,_0x554951){super(_0x11fbf3),this['_model']=_0x2052fd,this['_config']=_0x554951,this['set']('description',''),this['bind']('authoredAt')['to'](_0x2052fd),this['acceptButton']=this['_createButton'](o(_0x11fbf3,'Accept\x20suggestion'),_0x2894bf['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x11fbf3,'Discard\x20suggestion'),_0x2894bf['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5252b1(_0x11fbf3,_0x2052fd['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3a09a7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3cbc70(),this['keystrokes']=new _0x44a700(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x285636=>_0x285636['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x26f9c7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x26f9c7['innerHTML']=this['description'],this['on']('change:description',(_0x289213,_0x4c7e0d,_0x23e442)=>{_0x26f9c7['innerHTML']=_0x23e442;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4a5895=this['bindTemplate'],_0x583975=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x4a5895['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4a5895['to']('authoredAt',_0x1cffcb=>this['_config']['formatDateTime'](_0x1cffcb))}]}]},{'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']&&_0x583975['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':_0x583975}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x5cf2b9,_0x319143,_0x26d0b3,_0x962e8b,_0x16098d){const _0x1dc4a4=new _0x1e5e8d(this['locale']);return _0x1dc4a4['set']({'label':_0x5cf2b9,'icon':_0x319143,'tooltip':!0x0,'tooltipPosition':_0x16098d}),_0x1dc4a4['extendTemplate']({'attributes':{'class':_0x26d0b3}}),_0x1dc4a4['on']('execute',()=>{this['fire'](_0x962e8b,this['_model']['id']);}),_0x1dc4a4;}['_setupKeyboardNavigation'](){const _0xfc4387=this['element'];this['keystrokes']['listenTo'](_0xfc4387);for(const _0x223f37 of this['focusables'])this['focusTracker']['add'](_0x223f37['element']),this['keystrokes']['listenTo'](_0x223f37['element']);this['keystrokes']['set']('enter',(_0x10c51a,_0x2fb3ce)=>{_0xfc4387===_0x10c51a['target']&&(this['focusCycler']['focusFirst'](),_0x2fb3ce());}),this['keystrokes']['set']('esc',(_0x43d800,_0x9600a)=>{_0xfc4387!==_0x43d800['target']&&(this['focus'](),_0x9600a());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x2a14ba{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3d0662,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x154f94){super(_0x154f94),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3703ef=this['editor']['config'];_0x3703ef['define']('trackChanges.SuggestionThreadView',de),_0x3703ef['define']('trackChanges.SuggestionView',ue),_0x3703ef['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3703ef['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x270035,_0x12b589){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x324607,_0x5e254f]of this['_handleControllerBuffer']){const _0x387c11=this['_suggestionToController']['has'](_0x324607);_0x387c11||_0x5e254f?_0x387c11&&_0x5e254f&&this['_destroyController'](_0x324607):this['_initializeController'](_0x324607);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x270035,_0x12b589);}['init'](){const _0x2b6096=this['editor'],_0x250f99=_0x2b6096['plugins']['get']('TrackChangesEditing'),_0x53e91c=_0x2b6096['plugins']['get']('Annotations'),_0x3dd1f1=_0x2b6096['plugins']['get']('EditorAnnotations'),_0x4be4fb=_0x2b6096['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3dd1f1['addSourceCollector'](()=>{const _0x580ec8=[];for(const [_0x3058b3,_0x4b5536]of Array['from'](this['_suggestionToController'])){const _0xd12cf5=_0x3058b3['getAllAdjacentSuggestions'](),_0x3134a7=[];for(const _0x21bf09 of _0xd12cf5){if(!_0x21bf09['isInContent'])continue;if(_0x21bf09['isMultiRange']){_0x3134a7['push'](..._0x21bf09['getRanges']());continue;}const _0x5440be=_0x21bf09['getFirstRange']();if(_0x3134a7['length']>0x0){const _0x351431=_0x3134a7[0x0]['getJoined'](_0x5440be);if(_0x351431){_0x3134a7[0x0]=_0x351431;continue;}}_0x3134a7['push'](_0x5440be);}_0x580ec8['push']([_0x4b5536['view'],_0x3134a7]);}return _0x580ec8;}),this['listenTo'](_0x250f99,'suggestionLoaded',(_0x39ebde,_0x3b1a7f)=>{this['listenTo'](_0x3b1a7f,'change:previous',(_0xa978a4,_0x623699,_0x20b81a,_0x7c23d5)=>{_0x3b1a7f['isInContent']&&(null==_0x20b81a?(this['_updateController'](_0x7c23d5['head']),this['_handleSuggestionControllerDelayed'](_0x3b1a7f,!0x1)):(this['_updateController'](_0x20b81a['head']),null==_0x7c23d5&&this['_handleSuggestionControllerDelayed'](_0x3b1a7f,!0x0)));}),null!==_0x3b1a7f['previous']?this['_updateController'](_0x3b1a7f['head']):this['_handleSuggestionControllerDelayed'](_0x3b1a7f,!0x1);}),this['listenTo'](_0x250f99,'suggestionUnloaded',(_0x3866c7,_0x1b4dcf,_0x401257)=>{this['stopListening'](_0x1b4dcf,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1b4dcf),this['_suggestionToController']['has'](_0x1b4dcf)&&this['_destroyController'](_0x1b4dcf),_0x401257&&this['_updateController'](_0x401257['head']);}),this['listenTo'](_0x250f99,'suggestionChanged',(_0x31b34d,_0x1721c0)=>{this['_updateController'](_0x1721c0);}),this['listenTo'](_0x53e91c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4be4fb,'addComment',(_0x5c257d,{threadId:_0x282c46,isFromAdapter:_0x3b9261})=>{if(_0x3b9261||!_0x250f99['hasSuggestion'](_0x282c46))return;const _0x48c6e2=_0x250f99['getSuggestion'](_0x282c46);this['_suggestionToController']['get'](_0x48c6e2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4d64ff=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x330c21;for(const _0xfa45d3 in _0x4d64ff){const _0x19e280=_0xfa45d3,_0x4e1cbd=_0x4d64ff[_0x19e280];if('trackChangesLicenseKeyValid'==_0x4e1cbd||'trackChangesLicenseKeyInvalid'==_0x4e1cbd||'trackChangesLicenseKeyExpired'==_0x4e1cbd||'trackChangesLicenseKeyDomainLimit'==_0x4e1cbd||'trackChangesLicenseKeyNotAllowed'==_0x4e1cbd||'trackChangesLicenseKeyEvaluationLimit'==_0x4e1cbd||'trackChangesLicenseKeyTrialLimit'==_0x4e1cbd||'trackChangesLicenseKeyDevelopmentLimit'==_0x4e1cbd||'trackChangesLicenseKeyUsageLimit'==_0x4e1cbd){delete _0x4d64ff[_0x19e280],_0x330c21=_0x4e1cbd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x330c21&&_0x4d64ff['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x330c21&&_0x4d64ff['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x330c21&&_0x4d64ff['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x330c21&&_0x4d64ff['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x330c21&&_0x4d64ff['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x330c21&&_0x4d64ff['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x330c21&&_0x4d64ff['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x330c21&&_0x4d64ff['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3a2c3f=this['editor']['plugins']['get']('Annotations'),_0x5984ef=this['editor']['plugins']['get']('TrackChangesEditing'),_0x136645=Array['from'](_0x3a2c3f['activeAnnotations'],_0x537ed1=>_0x537ed1['innerView'])['filter'](_0x29dda4=>this['_viewToController']['has'](_0x29dda4)),_0x26d65f=[];for(const _0x572b59 of _0x136645){const _0x31e14a=this['_viewToController']['get'](_0x572b59)['model']['getAllAdjacentSuggestions']();_0x26d65f['push'](..._0x31e14a['reduce']((_0x1b3c66,_0x363e76)=>[..._0x1b3c66,..._0x363e76['getMarkerNames']()],[]));}_0x5984ef['activeMarkers']=_0x26d65f;}['_addUIComponentsToFactory'](){const _0x3e8a64=this['editor'],_0x41a1f0=_0x3e8a64['locale'],_0x2425d6=o(_0x41a1f0,'Track\x20changes'),_0x2fce9f=new _0x513db7([{'type':'switchbutton','model':new _0x87b780({'withText':!0x0,'isToggleable':!0x0,'label':_0x2425d6,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x87b780({'withText':!0x0,'label':o(_0x41a1f0,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x87b780({'withText':!0x0,'label':o(_0x41a1f0,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x87b780({'withText':!0x0,'label':o(_0x41a1f0,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x87b780({'withText':!0x0,'label':o(_0x41a1f0,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3ff4aa of _0x2fce9f)if(pe(_0x3ff4aa)){const _0x3d3f48=_0x3e8a64['commands']['get'](_0x3ff4aa['model']['commandName']);_0x3ff4aa['model']['bind']('isOn','isEnabled')['to'](_0x3d3f48,'value','isEnabled');}_0x3e8a64['ui']['componentFactory']['add']('trackChanges',_0x37ba03=>this['_createToolbarButton'](_0x37ba03,_0x2fce9f,_0x2425d6)),_0x3e8a64['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3739c1=>this['_createMenuBarMenu'](_0x3739c1,_0x2fce9f,_0x2425d6));}['_createToolbarButton'](_0x1de957,_0x2553e2,_0x2fbe3f){const _0xe62de7=_0x4d21dc(_0x1de957,_0x16c18c),_0x53b24d=this['editor']['commands']['get']('trackChanges');_0xe62de7['buttonView']['set']({'tooltip':_0x2fbe3f,'label':_0x2fbe3f,'icon':Ce}),_0xe62de7['buttonView']['bind']('isOn')['to'](_0x53b24d,'value'),_0xe62de7['buttonView']['on']('execute',()=>{_0x53b24d['execute'](),this['editor']['editing']['view']['focus']();}),te(_0xe62de7,_0x2553e2,{'role':'menu'});const _0x28e0f1=[];for(const _0x55edf0 of _0x2553e2)pe(_0x55edf0)&&_0x28e0f1['push'](this['editor']['commands']['get'](_0x55edf0['model']['commandName']));const _0x14de98=_0xe62de7['buttonView'];return _0x14de98['actionView']['unbind']('isEnabled'),_0x14de98['arrowView']['unbind']('isEnabled'),_0x14de98['actionView']['bind']('isEnabled')['to'](_0x53b24d,'isEnabled'),_0x14de98['arrowView']['bind']('isEnabled')['toMany'](_0x28e0f1,'isEnabled',(..._0xb91a97)=>_0xb91a97['some'](_0x1b8275=>_0x1b8275)),_0xe62de7['on']('execute',_0x43b83c=>{this['editor']['execute'](_0x43b83c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xe62de7;}['_createMenuBarMenu'](_0x35e953,_0x3e2817,_0x4b0ee3){const _0x23b95f=new _0x122e28(_0x35e953),_0x404a35=this['editor']['commands']['get']('trackChanges');_0x23b95f['buttonView']['set']({'label':_0x4b0ee3,'icon':Ce});const _0x30383e=new _0x1cc077(_0x35e953);for(const _0x2d46a8 of _0x3e2817){if('separator'==_0x2d46a8['type']){_0x30383e['items']['add'](new _0x52d647(_0x35e953));continue;}const _0x5bbfdb=new _0x40f7f6(_0x35e953,_0x23b95f),_0x4bd4df=new _0x51bd07(_0x35e953),_0x7eb5e1=_0x2d46a8['model'];_0x4bd4df['bind'](...Object['keys'](_0x7eb5e1))['to'](_0x7eb5e1),_0x4bd4df['delegate']('execute')['to'](_0x23b95f),_0x4bd4df['on']('execute',()=>{this['editor']['execute'](_0x7eb5e1['commandName']),this['editor']['editing']['view']['focus']();}),_0x5bbfdb['children']['add'](_0x4bd4df),_0x30383e['items']['add'](_0x5bbfdb);}return _0x23b95f['bind']('isEnabled')['to'](_0x404a35,'isEnabled'),_0x23b95f['panelView']['children']['add'](_0x30383e),_0x23b95f;}['_initializeController'](_0x1fdd85){const _0x6864c4=this['editor'],_0x5e02bc=_0x6864c4['config'],_0x5d5f16=_0x6864c4['plugins']['get']('Annotations'),_0x3e444e=_0x6864c4['plugins']['get']('CommentsRepository'),_0x269873=_0x6864c4['plugins']['get']('EditorAnnotations'),_0x565eed=_0x6864c4['plugins']['get'](_0x3d0662)['me'],_0x308cef=_0x5e02bc['get']('trackChanges')['SuggestionThreadView'],_0x5b4ccf=_0x5e02bc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x55651d,CommentThreadInputView:_0xfe42db}=_0x6864c4['plugins']['get']('CommentsUI');let _0x437ebe,_0x1ec794,_0x20e703;this['_annotationViews']['has'](_0x1fdd85['id'])?(_0x1ec794=this['_annotationViews']['get'](_0x1fdd85['id']),_0x437ebe=_0x1ec794['mainView']):(_0x437ebe=new _0x308cef(_0x6864c4['locale'],_0x1fdd85,_0x565eed,{'disableComments':this['_disableComments'],'editorConfig':{..._0x5e02bc['get']('comments.editorConfig'),'licenseKey':_0x5e02bc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x5e02bc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5e02bc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5e02bc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x105446(_0x5e02bc['get']('locale')),'CommentView':_0x5e02bc['get']('comments')['CommentView'],'CommentsListView':_0x55651d,'CommentThreadInputView':_0xfe42db,'SuggestionView':_0x5b4ccf}),_0x437ebe['suggestionView']['acceptButton']['on']('execute',()=>{_0x6864c4['editing']['view']['focus']();}),_0x437ebe['suggestionView']['discardButton']['on']('execute',()=>{_0x6864c4['editing']['view']['focus']();}),_0x1ec794=_0x5d5f16['createAnnotationView'](this['editor']['locale'],_0x437ebe),_0x1ec794['bind']('isDirty')['to'](_0x437ebe,'isDirty'),_0x1ec794['bind']('length')['to'](_0x437ebe),_0x1ec794['bind']('type')['to'](_0x437ebe,'type',_0x332db4=>'suggestion-'+_0x332db4),_0x437ebe['on']('escape',()=>{_0x20e703['fire']('escape');}),this['_annotationViews']['set'](_0x1fdd85['id'],_0x1ec794));const _0x32160d=_0x3e444e['createCommentThreadController'](_0x1fdd85['commentThread'],_0x437ebe),_0x58b99a=new ge(_0x6864c4,_0x1fdd85,_0x437ebe,_0x32160d),_0x4ba128=_0x1fdd85['getAllAdjacentSuggestions']()['filter'](_0x174a2b=>_0x174a2b['isInContent']);_0x437ebe['descriptionParts']=_0x6864c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4ba128),this['_suggestionToController']['set'](_0x1fdd85,_0x58b99a),this['_viewToController']['set'](_0x437ebe,_0x58b99a),_0x20e703=_0x5d5f16['createAnnotation']({'view':_0x1ec794,'target':()=>{const _0x194603=[],_0x324b35=_0x1fdd85['getAllAdjacentSuggestions']()['filter'](_0x2b399a=>_0x2b399a['isInContent']);for(const _0x35c528 of _0x324b35)_0x194603['push'](..._0x35c528['getMarkers']());return _0xd11dce(_0x6864c4['editing'],_0x194603);},'type':()=>'suggestion-'+_0x58b99a['view']['type']}),_0x3e444e['_bindAnnotationToEditors'](_0x437ebe,_0x20e703),_0x5d5f16['add'](_0x20e703),_0x269873['registerAnnotation'](_0x20e703);}['_destroyController'](_0xdd9a82){const _0xd1ad9=this['editor']['plugins']['get']('CommentsRepository'),_0xa0d4e1=this['editor']['plugins']['get']('Annotations'),_0x216572=this['_suggestionToController']['get'](_0xdd9a82),_0x5b5fc2=_0x216572['view'],_0x1fd861=_0xa0d4e1['getByInnerView'](_0x5b5fc2);_0xd1ad9['_unbindEditors'](_0x5b5fc2),_0x1fd861&&_0xa0d4e1['remove'](_0x1fd861),this['_suggestionToController']['delete'](_0xdd9a82),this['_viewToController']['delete'](_0x5b5fc2),_0x216572['destroy']();}['_updateController'](_0x8b9eaa){if(!_0x8b9eaa['isInContent']||!this['_suggestionToController']['has'](_0x8b9eaa))return;const _0x21a41e=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfe590a=this['_suggestionToController']['get'](_0x8b9eaa),_0x1fea00=_0x8b9eaa['getAllAdjacentSuggestions']();_0xfe590a['view']['descriptionParts']=_0x21a41e['descriptionFactory']['getDescriptions'](_0x1fea00);}['destroy'](){for(const _0x31c329 of this['_suggestionToController']['keys']())this['_destroyController'](_0x31c329);for(const _0x319e42 of this['_annotationViews']['values']())_0x319e42['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x50bd61){return'model'in _0x50bd61;}class k extends _0x2a14ba{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x30b52b){this['editor']['plugins']['get'](p)['adapter']=_0x30b52b;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1a11c1){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1a11c1);}['getSuggestions']({skipNotAttached:_0x52868c=!0x1,toJSON:_0x326e8c=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x52868c,'toJSON':_0x326e8c});}['getSuggestion'](_0x19a027){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x19a027);}}const w=['Pagination'];class T extends _0x2a14ba{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1cc8b1=this['editor'];if(_0x1cc8b1['config']['define']('trackChangesData.editorCreator',_0x2c3395=>{const _0x3319ef=_0x1cc8b1['model']['document']['getRootNames']()['reduce']((_0x54d1ea,_0x5e154a)=>(_0x54d1ea[_0x5e154a]='',_0x54d1ea),{});return _0x1cc8b1['constructor']['create'](_0x3319ef,_0x2c3395);}),'function'!=typeof _0x1cc8b1['config']['get']('trackChangesData')['editorCreator'])throw new _0x8a669('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5cc77a){return N(this['editor'],!0x0,_0x5cc77a);}['getDataWithDiscardedSuggestions'](_0x31f9aa){return N(this['editor'],!0x1,_0x31f9aa);}}class D extends _0x2a14ba{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44d654){function _0x253b49(_0x519ea4){return _0x519ea4['map'](_0x133975=>String['fromCharCode'](_0x133975))['join']('');}super(_0x44d654),this['result']='end',_0x44d654[_0x253b49([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x253b49([0x76,0x69,0x65,0x77])][_0x253b49([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x253b49([0x61,0x75,0x74,0x6f]),_0x44d654[_0x253b49([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x253b49([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x253b49([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x253b49([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x253b49([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 v(_0x210bc5){return void 0x0!==_0x210bc5['getRootsAttributes'];}async function N(_0x2b90eb,_0x3a5a51,_0x2543b1){const _0x3939ff=_0x5aab84(_0x2b90eb,w);_0x3939ff['plugins']['push'](p,D),_0x3939ff['rootsAttributes']=v(_0x2b90eb)?_0x2b90eb['getRootsAttributes']():void 0x0;const _0x11d56b=document['createDocumentFragment'](),_0x55e04f=_0x2b90eb['config']['get']('trackChangesData')['editorCreator'],_0x330e5a=await _0x55e04f(_0x3939ff,()=>function(_0x4fe32a){const _0x58d254=document['createElement']('div');return _0x4fe32a['appendChild'](_0x58d254),_0x58d254;}(_0x11d56b));!function(_0x4a8dbe,_0x4bf196){const _0x4ad951=_0x4a8dbe['model']['document']['getRootNames']()['reduce']((_0x5140cb,_0x321d1a)=>(_0x5140cb[_0x321d1a]=_0x4a8dbe['data']['get']({'rootName':_0x321d1a}),_0x5140cb),{}),_0x4f5f1f=_0x4a8dbe['plugins']['get']('Users')['users']['map'](_0x1ada9c=>({'id':_0x1ada9c['id'],'name':_0x1ada9c['name']})),_0x5e2542=_0x4a8dbe['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4da8cc=_0x4a8dbe['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4caa39=_0x4bf196['plugins']['get']('Users'),_0x10d10a=_0x4bf196['plugins']['get']('TrackChangesEditing'),_0xc2b893=_0x4bf196['plugins']['get']('CommentsRepository');for(const _0x5dab52 of _0xc2b893['getCommentThreads']())_0x5dab52['remove']();for(const _0x195ab3 of _0x4f5f1f)_0x4caa39['getUser'](_0x195ab3['id'])||_0x4caa39['addUser'](_0x195ab3);_0x4caa39['me']||_0x4caa39['useAnonymousUser']();for(const _0x5e88b4 of _0x4da8cc)_0xc2b893['addCommentThread'](_0x5e88b4);for(const _0x1c252b of _0x5e2542)_0x10d10a['addSuggestionData'](_0x1c252b);_0x4bf196['data']['set'](_0x4ad951);}(_0x2b90eb,_0x330e5a),_0x330e5a['execute'](_0x3a5a51?'acceptAllSuggestions':'discardAllSuggestions');const _0x29f007=v(_0x330e5a)?_0x330e5a['getFullData'](_0x2543b1):_0x330e5a['data']['get'](_0x2543b1);return await _0x330e5a['destroy'](),_0x29f007;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|