@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250223.0 → 0.0.0-nightly-20250224.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +25 -25
- 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 Yt,Plugin as
|
|
24
|
-
_0x15a436(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xd0b669,_0x33aa9b){super(),this['id']=_0x33aa9b['id'],this['type']=_0x33aa9b['type'],this['subType']=_0x33aa9b['subType']||null,this['author']=_0x33aa9b['author'],this['creator']=_0x33aa9b['creator']||_0x33aa9b['author'],this['isExternal']=Boolean(_0x33aa9b['attributes']&&_0x33aa9b['attributes']['@external']),this['data']=null,this['_model']=_0xd0b669,this['_onAccept']=_0x33aa9b['onAccept'],this['_onDiscard']=_0x33aa9b['onDiscard'],this['_onAttributesChange']=_0x33aa9b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x33aa9b['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 _0x44c653=this;for(;_0x44c653['previous'];)_0x44c653=_0x44c653['previous'];return _0x44c653;}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'](_0x3cec94){this['_markerNames']['add'](_0x3cec94);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3a471c=>this['_model']['markers']['get'](_0x3a471c))['filter'](_0xc3397a=>_0xc3397a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2de684=>{for(const _0x159894 of this['getMarkers']())_0x2de684['removeMarker'](_0x159894);}),this['_markerNames']['clear']();}['removeMarker'](_0x4780d2){this['_model']['change'](_0x48e3c9=>{_0x48e3c9['removeMarker'](_0x4780d2);}),this['_markerNames']['delete'](_0x4780d2);}['addRange'](_0x33ed5b){const _0xe2f72c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xe2f72c),this['_model']['change'](_0x294f44=>{_0x294f44['addMarker'](_0xe2f72c,{'range':_0x33ed5b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x33c087){for(const _0x4d7c3b of this['getRanges']())if(_0x4d7c3b['isIntersecting'](_0x33c087))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x410aa0=>_0x410aa0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4fdeb3,_0x232b25)=>[..._0x4fdeb3,..._0x232b25['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x201140=this['getRanges']();if(0x1!=_0x201140['length'])return null;const _0x1032cd=_0x201140[0x0],_0x219318=_0x1032cd['start']['nodeAfter'],_0x56b263=_0x1032cd['end']['nodeBefore'];return _0x219318 instanceof _0x905e02?_0x219318!=_0x56b263?null:_0x219318: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 _0x461a89=[];let _0x5bcc4e=this['head'];for(;_0x5bcc4e;)_0x461a89['push'](_0x5bcc4e),_0x5bcc4e=_0x5bcc4e['next'];return _0x461a89;}['setAttribute'](_0xf5a7e5,_0x10ab8e){const _0x4d183c=_0x33200e(this['attributes']);_0x1722a1(_0x4d183c,_0xf5a7e5,_0x10ab8e),_0x2f114e(_0x4d183c,this['attributes'])||(this['attributes']=_0x4d183c,this['_onAttributesChange'](_0x4d183c));}['removeAttribute'](_0x3592a8){const _0x39c9ee=_0x33200e(this['attributes']);_0x21ab56(_0x39c9ee,_0x3592a8),_0x2f114e(_0x39c9ee,this['attributes'])||(this['attributes']=_0x39c9ee,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 _0x1ea020()['substr'](0x1,0x5);}}function o(_0x27b1cf,_0x4b6649,_0x1d72a9){const _0x2ebd9a=_0x27b1cf['t'],t=_0x27b1cf['t'];switch(_0x4b6649){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1d72a9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1d72a9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1d72a9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1d72a9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1d72a9);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',_0x1d72a9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1d72a9);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d72a9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1d72a9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1d72a9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1d72a9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1d72a9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1d72a9);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1d72a9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1d72a9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1d72a9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1d72a9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1d72a9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1d72a9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1d72a9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1d72a9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1d72a9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1d72a9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1d72a9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1d72a9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1d72a9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1d72a9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1d72a9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1d72a9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1d72a9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1d72a9);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'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1d72a9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1d72a9);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'},_0x1d72a9);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1d72a9);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 _0x2ebd9a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1d72a9);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2ebd9a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1d72a9);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1d72a9);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'},_0x1d72a9);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'},_0x1d72a9);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'},_0x1d72a9);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4b6649;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5effed,_0xaa9fb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5effed,this['_locale']=_0xaa9fb;}['getDescriptions'](_0x5409c1){const _0x502cd9=[],_0x48c15e=new Set(),_0x1043de=new Set();for(let _0x3b1e1d=0x0;_0x3b1e1d<_0x5409c1['length'];_0x3b1e1d++){const _0x5e64e2=_0x5409c1[_0x3b1e1d];if(!_0x5e64e2['isInContent'])continue;const _0x436d83=this['_handleCustomCallbackDescription'](_0x5e64e2);if(_0x436d83){if(null!=_0x5e64e2['subType']){if(_0x48c15e['has'](_0x5e64e2['subType']))continue;_0x48c15e['add'](_0x5e64e2['subType']);}_0x502cd9['push'](_0x436d83);}else{if('attribute'!=_0x5e64e2['type'])'insertion'!=_0x5e64e2['type']&&'deletion'!=_0x5e64e2['type']||this['_handleInsertRemoveSuggestionDescription'](_0x502cd9,_0x5e64e2,_0x5409c1[_0x3b1e1d+0x1]);else{const _0x9e8481=_0x5e64e2['data']['key'];if(_0x1043de['has'](_0x9e8481))continue;_0x1043de['add'](_0x5e64e2['data']['key']),_0x9e8481==m?this['_handleRenameSuggestionDescription'](_0x502cd9,_0x5e64e2):this['_handleAttributeSuggestionDescription'](_0x502cd9,_0x5e64e2);}}}return this['_resolveDescriptionItems'](_0x502cd9);}['registerDescriptionCallback'](_0x35b37f){this['_customCallbacks']['push'](_0x35b37f);}['registerElementLabel'](_0x18cff3,_0x306206,_0x45c644=_0xc98a7a['normal']){'function'==typeof _0x18cff3?_0x4592e4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x18cff3,'label':_0x306206,'priority':_0x45c644}):this['_itemLabels']['set'](_0x18cff3,_0x306206);}['registerAttributeLabel'](_0x3e16ab,_0x2cbfe3){this['_attributeLabels']['set'](_0x3e16ab,_0x2cbfe3);}['getItemLabel'](_0x34a5cc,_0xafda19=0x1){let _0x2550b8;for(const _0x221494 of this['_itemLabelsCallbacks'])if(_0x221494['matchingCallback'](_0x34a5cc)){_0x2550b8=_0x221494['label'];break;}return _0x2550b8||(_0x2550b8=this['_itemLabels']['get'](_0x34a5cc['name'])),_0x2550b8?_0x2550b8(_0xafda19):0x1!==_0xafda19?_0xafda19+'\x20'+_0x34a5cc['name']+'s':''+_0x34a5cc['name'];}['_addDescriptionItems'](_0x2c14eb,_0x397033){const _0x1349fa=_0x397033['getFirstRange']()['getWalker'](),_0x3e47fa='insertion'==_0x397033['type']?'add':'remove';for(const _0x51fa6f of _0x1349fa){const _0x249629=_0x51fa6f['item'],_0x43b758=_0x2c14eb[_0x2c14eb['length']-0x1];if(_0x249629['is']('$textProxy'))_0x43b758&&_0x43b758['type']['indexOf']('Container')>-0x1&&_0x2c14eb['pop'](),_0x43b758&&'text'==_0x43b758['type']?_0x43b758[_0x3e47fa]+=_0x249629['data']:_0x2c14eb['push']({'type':'text','add':'add'==_0x3e47fa?_0x249629['data']:'','remove':'remove'==_0x3e47fa?_0x249629['data']:''});else{if(this['_schema']['isObject'](_0x249629)){const _0x33fb2e=_0x249629;if(_0x43b758&&_0x43b758['type']['indexOf']('Container')>-0x1&&_0x2c14eb['pop'](),'elementEnd'==_0x51fa6f['type'])continue;_0x43b758&&_0x43b758['type']==_0x3e47fa+'Object'&&_0x43b758['element']['name']==_0x33fb2e['name']?_0x43b758['quantity']++:_0x2c14eb['push']({'type':_0x3e47fa+'Object','element':_0x33fb2e,'quantity':0x1}),_0x1349fa['skip'](_0x3d7f2b=>!('elementEnd'==_0x3d7f2b['type']&&_0x3d7f2b['item']==_0x249629));}else{if(this['_schema']['checkChild'](_0x249629,'$text')||_0x249629['is']('element','softBreak')){const _0x13ca51=_0x249629;if('add'==_0x3e47fa&&'elementStart'==_0x51fa6f['type']||'remove'==_0x3e47fa&&'elementEnd'==_0x51fa6f['type'])continue;if(_0x43b758&&-0x1==_0x43b758['type']['indexOf']('Container')){'text'==_0x43b758['type']&&(_0x43b758[_0x3e47fa]+='\x0a');continue;}let _0x1f0d86;if(_0x1f0d86='add'==_0x3e47fa?_0x13ca51['nextSibling']&&!this['_schema']['isObject'](_0x13ca51['nextSibling'])?_0x13ca51['nextSibling']:null:_0x13ca51['previousSibling']&&!this['_schema']['isObject'](_0x13ca51['previousSibling'])?_0x13ca51['previousSibling']:null,_0x13ca51['isEmpty']||_0x1f0d86&&_0x1f0d86['isEmpty']){const _0x53c698=_0x1f0d86&&_0x1f0d86['isEmpty']?_0x1f0d86:_0x13ca51;_0x43b758&&_0x43b758['type']==_0x3e47fa+'EmptyContainer'&&_0x43b758['element']['name']==_0x53c698['name']?_0x43b758['quantity']++:_0x2c14eb['push']({'type':_0x3e47fa+'EmptyContainer','element':_0x53c698,'quantity':0x1});}else _0x2c14eb['push']({'type':_0x3e47fa+'Container','element':_0x13ca51});}}}}}['_resolveDescriptionItems'](_0x199845){const _0xe5c94c=this['_locale'],_0x27d3ed=[],_0xff6bd0=[],_0x29348e=[];for(const _0x16851e of _0x199845)switch(_0x16851e['type']){case'text':if(_0x16851e['add']=_0x16851e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x16851e['remove']=_0x16851e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x16851e['add']&&''!=_0x16851e['remove']){_0x27d3ed['push']({'type':'replace','content':o(_0xe5c94c,'REPLACE_TEXT',['\x22'+_0x16851e['remove']+'\x22','\x22'+_0x16851e['add']+'\x22'])});continue;}if(null!=_0x16851e['add']['match'](/^ +$/)){_0x27d3ed['push']({'type':'insertion','content':o(_0xe5c94c,'*Insert:*\x20%0',o(_0xe5c94c,'ELEMENT_SPACE',_0x16851e['add']['length']))});continue;}if(null!=_0x16851e['remove']['match'](/^ +$/)){_0x27d3ed['push']({'type':'deletion','content':o(_0xe5c94c,'*Remove:*\x20%0',o(_0xe5c94c,'ELEMENT_SPACE',_0x16851e['remove']['length']))});continue;}if(''!=_0x16851e['add']){_0x27d3ed['push']({'type':'insertion','content':o(_0xe5c94c,'*Insert:*\x20%0','\x22'+_0x16851e['add']+'\x22')});continue;}_0x27d3ed['push']({'type':'deletion','content':o(_0xe5c94c,'*Remove:*\x20%0','\x22'+_0x16851e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x27d3ed['push']({'type':'insertion','content':o(_0xe5c94c,'*Insert:*\x20%0',this['getItemLabel'](_0x16851e['element'],_0x16851e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x27d3ed['push']({'type':'deletion','content':o(_0xe5c94c,'*Remove:*\x20%0',this['getItemLabel'](_0x16851e['element'],_0x16851e['quantity']))});continue;case'addContainer':_0x27d3ed['push']({'type':'insertion','content':o(_0xe5c94c,'*Split:*\x20%0',this['getItemLabel'](_0x16851e['element'],_0x16851e['quantity']))});continue;case'removeContainer':_0x27d3ed['push']({'type':'deletion','content':o(_0xe5c94c,'*Merge:*\x20%0',this['getItemLabel'](_0x16851e['element'],_0x16851e['quantity']))});continue;case'addFormat':_0xff6bd0['push'](_0x16851e['key']);continue;case'removeFormat':_0x29348e['push'](_0x16851e['key']);continue;default:_0x27d3ed['push'](_0x16851e);}if(_0xff6bd0['length']){const _0x13a292=_0xff6bd0['map'](_0x200220=>this['_attributeLabels']['has'](_0x200220)?this['_attributeLabels']['get'](_0x200220):_0x200220)['join'](',\x20');_0x27d3ed['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13a292)});}if(_0x29348e['length']){const _0x38146e=_0x29348e['map'](_0x58a858=>this['_attributeLabels']['has'](_0x58a858)?this['_attributeLabels']['get'](_0x58a858):_0x58a858)['join'](',\x20');_0x27d3ed['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x38146e)});}return _0x27d3ed;}['_handleCustomCallbackDescription'](_0x2ea8e4){for(const _0xea4a76 of this['_customCallbacks']){const _0x2e293f=_0xea4a76(_0x2ea8e4);if(_0x2e293f&&'type'in _0x2e293f)return _0x2e293f;}}['_handleAttributeSuggestionDescription'](_0x4e6b3e,_0x1793e3){const _0x2d65d0=_0x1793e3['data'],_0xaee1ef=void 0x0===_0x2d65d0['newValue']?'removeFormat':'addFormat';_0x4e6b3e['push']({'type':_0xaee1ef,'key':_0x2d65d0['key']});}['_handleRenameSuggestionDescription'](_0x4e1f2a,_0x164f55){_0x4e1f2a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x164f55['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x73a1b,_0x2c041f,_0x2ef696){if(this['_addDescriptionItems'](_0x73a1b,_0x2c041f),_0x2ef696&&_0x2ef696['getFirstRange']()&&!_0x2c041f['getFirstRange']()['end']['isEqual'](_0x2ef696['getFirstRange']()['start'])){const _0x2c054f=_0x73a1b[_0x73a1b['length']-0x1],_0x5a1779='insertion'==_0x2c041f['type']?'add':'remove';_0x2c054f&&'text'==_0x2c054f['type']&&(_0x2c054f[_0x5a1779]+='\x0a');}}}class U extends _0x9e54d2{['afterInit'](){const _0x2578c6=this['editor'],_0x24ca10=_0x2578c6['plugins']['get']('TrackChangesEditing');_0x2578c6['commands']['get']('showAIAssistant')&&_0x24ca10['enableCommand']('showAIAssistant');}}class V extends _0x9e54d2{['afterInit'](){const _0x9aa348=this['editor'],_0x4609ec=_0x9aa348['locale'];if(!_0x9aa348['plugins']['has']('AlignmentEditing'))return;const _0x278c4f=_0x9aa348['plugins']['get']('TrackChangesEditing');_0x278c4f['enableDefaultAttributesIntegration']('alignment'),_0x278c4f['registerBlockAttribute']('alignment'),_0x278c4f['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4609ec,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5aa26e=this['editor'],_0x18fbf3=_0x5aa26e['locale'];_0x5aa26e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4761d2=>{if('formatBlock'!=_0x4761d2['type'])return;const {data:_0xb6cfce}=_0x4761d2;if(_0xb6cfce&&'alignment'==_0xb6cfce['commandName']){const _0x3a72b8=_0xb6cfce['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x18fbf3,'*Format:*\x20%0',function(_0x16ef70){switch(_0x16ef70){case'left':return o(_0x18fbf3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x18fbf3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x18fbf3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x18fbf3,'FORMAT_JUSTIFY_TEXT');}}(_0x3a72b8))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x9e54d2{['afterInit'](){const _0x24e4b1=this['editor'],_0x573c53=_0x24e4b1['plugins']['get']('TrackChangesEditing'),_0x1567be=_0x24e4b1['locale'];for(const _0x5aa512 of ti){if(!_0x24e4b1['plugins']['has'](_0x5aa512))continue;const _0x32245a=_0x5aa512['slice'](0x0,-0x7)['toLowerCase'](),_0x12567f='FORMAT_'+_0x32245a['toUpperCase']();_0x573c53['enableDefaultAttributesIntegration'](_0x32245a),_0x573c53['registerInlineAttribute'](_0x32245a),_0x573c53['descriptionFactory']['registerAttributeLabel'](_0x32245a,o(_0x1567be,_0x12567f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eb976=this['editor'],_0x4466a3=_0x2eb976['locale'],_0x21adbb=_0x2eb976['plugins']['get']('TrackChangesEditing');function _0x38bc0b(_0x4ee8f9,_0x380b57){_0x21adbb['descriptionFactory']['registerDescriptionCallback'](_0x468f2b=>{if('formatInline'!=_0x468f2b['type'])return;const {data:_0x457c98}=_0x468f2b;return _0x457c98&&_0x457c98['commandName']===_0x4ee8f9?_0x457c98['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4466a3,'*Format:*\x20%0',_0x380b57)}:{'type':'format','content':o(_0x4466a3,'*Remove\x20format:*\x20%0',_0x380b57)}:void 0x0;});}_0x38bc0b('bold',o(_0x4466a3,'FORMAT_BOLD')),_0x38bc0b('italic',o(_0x4466a3,'FORMAT_ITALIC')),_0x38bc0b('underline',o(_0x4466a3,'FORMAT_UNDERLINE')),_0x38bc0b('code',o(_0x4466a3,'FORMAT_CODE')),_0x38bc0b('strikethrough',o(_0x4466a3,'FORMAT_STRIKETHROUGH')),_0x38bc0b('subscript',o(_0x4466a3,'FORMAT_SUBSCRIPT')),_0x38bc0b('superscript',o(_0x4466a3,'FORMAT_SUPERSCRIPT'));}}class F extends _0x9e54d2{['afterInit'](){const _0xe4adc2=this['editor'],_0x313361=_0xe4adc2['locale'];if(!_0xe4adc2['plugins']['has']('BlockQuoteEditing'))return;const _0x561e46=_0xe4adc2['plugins']['get']('TrackChangesEditing'),_0x3df3dd=this['editor']['commands']['get']('blockQuote');_0x561e46['enableCommand']('blockQuote',(_0x502959,_0x3b219c={})=>{const _0x16693e=this['editor']['model']['document']['selection'],_0x68374d=_0x3b219c&&void 0x0!==_0x3b219c['forceValue']?_0x3b219c['forceValue']:!_0x3df3dd['value'];let _0x3e6707=[];if(_0x68374d){const _0x283fa4=Array['from'](_0x16693e['getSelectedBlocks']())['filter'](_0x2f00af=>oo(_0x2f00af)||function(_0x8abbc4,_0x21ced3){const _0x5d3afe=_0x21ced3['checkChild'](_0x8abbc4['parent'],'blockQuote'),_0x599b92=_0x21ced3['checkChild'](['$root','blockQuote'],_0x8abbc4);return _0x5d3afe&&_0x599b92;}(_0x2f00af,this['editor']['model']['schema']));_0x3e6707=to(_0x283fa4,_0xe4adc2['model']);}else{const _0x50a3c0=Array['from'](_0x16693e['getSelectedBlocks']())['filter'](_0xc10a2=>oo(_0xc10a2));_0x3e6707=to(_0x50a3c0,_0xe4adc2['model']);}_0xe4adc2['model']['change'](()=>{for(const _0xba49cd of _0x3e6707)_0x561e46['markBlockFormat'](_0xba49cd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x68374d}]});});}),_0x561e46['descriptionFactory']['registerDescriptionCallback'](_0x128f84=>{const {data:_0x49d9d2}=_0x128f84;if(_0x49d9d2&&'blockQuote'==_0x49d9d2['commandName']){const _0x19b491=o(_0x313361,'ELEMENT_BLOCK_QUOTE');return _0x49d9d2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x313361,'*Set\x20format:*\x20%0',_0x19b491)}:{'type':'format','content':o(_0x313361,'*Remove\x20format:*\x20%0',_0x19b491)};}});}}function oo(_0x54f19b){return'blockQuote'==_0x54f19b['parent']['name'];}class L extends _0x9e54d2{['afterInit'](){const _0x286989=this['editor'],_0x1e9798=_0x286989['locale'],_0x2bfe93=_0x286989['plugins']['get']('TrackChangesEditing');_0x286989['plugins']['has']('BookmarkEditing')&&(_0x2bfe93['enableCommand']('insertBookmark'),_0x2bfe93['enableDefaultAttributesIntegration']('updateBookmark'),_0x2bfe93['registerBlockAttribute']('bookmarkId'),_0x2bfe93['descriptionFactory']['registerDescriptionCallback'](_0x41c999=>{if('insertion'!=_0x41c999['type']&&'deletion'!=_0x41c999['type']&&'attribute'!=_0x41c999['type'])return;const _0x2b7bae=_0x41c999['getContainedElement']();if(null==_0x2b7bae)return;if(!_0x2b7bae['is']('element','bookmark'))return;const _0x2a9916=_0x2b7bae['getAttribute']('bookmarkId');if('insertion'==_0x41c999['type'])return{'type':'insertion','content':o(_0x1e9798,'*Insert:*\x20%0','\x22'+_0x2a9916+'\x22\x20'+o(_0x1e9798,'ELEMENT_BOOKMARK'))};if('deletion'==_0x41c999['type'])return{'type':'deletion','content':o(_0x1e9798,'*Remove:*\x20%0','\x22'+_0x2a9916+'\x22\x20'+o(_0x1e9798,'ELEMENT_BOOKMARK'))};const {data:_0x46f359}=_0x41c999;if(!_0x46f359||'bookmarkId'!=_0x46f359['key'])return;return{'type':'format','content':o(_0x1e9798,'*Set\x20bookmark:*\x20%0','\x22'+_0x46f359['newValue']+'\x22')};}));}}class J extends _0x9e54d2{['afterInit'](){const _0x455fa2=this['editor'];_0x455fa2['plugins']['has']('CaseChange')&&(_0x455fa2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x455fa2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x455fa2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x9e54d2{['afterInit'](){const _0x5d988c=this['editor'];_0x5d988c['commands']['get']('ckbox')&&_0x5d988c['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x9e54d2{['afterInit'](){const _0x4afbd1=this['editor'];if(!_0x4afbd1['plugins']['has']('CodeBlock'))return;const _0x5daf95=_0x4afbd1['plugins']['get']('TrackChangesEditing'),_0x1652c8=_0x4afbd1['locale'],_0x361efe=_0x4afbd1['config']['get']('codeBlock')['languages'],_0x55463d=_0x4afbd1['commands']['get']('codeBlock');_0x5daf95['enableCommand']('indentCodeBlock'),_0x5daf95['enableCommand']('outdentCodeBlock'),_0x5daf95['enableCommand']('codeBlock',(_0x35756b,_0x13d499={})=>{const _0x3042e0=_0x4afbd1['model'],_0x49d8d2=_0x4afbd1['model']['document']['selection'],_0x27b23d=_0x13d499&&void 0x0!==_0x13d499['forceValue']?_0x13d499['forceValue']:!_0x55463d['value'];let _0x18d0ca;_0x13d499['language']||(_0x13d499['language']=_0x361efe[0x0]['language']),_0x18d0ca=_0x27b23d?Array['from'](_0x49d8d2['getSelectedBlocks']())['filter'](_0x24e56e=>eo(_0x24e56e)||function(_0x72afbd,_0x357422){if(_0x72afbd['is']('rootElement')||_0x357422['isLimit'](_0x72afbd))return!0x1;return _0x357422['checkChild'](_0x72afbd['parent'],'codeBlock');}(_0x24e56e,_0x3042e0['schema'])):Array['from'](_0x49d8d2['getSelectedBlocks']())['filter'](_0x286a15=>eo(_0x286a15));const _0x2e0db1=to(_0x18d0ca,_0x3042e0);_0x3042e0['change'](()=>{for(const _0x1dbf60 of _0x2e0db1)_0x5daf95['markBlockFormat'](_0x1dbf60,{'commandName':'codeBlock','commandParams':[{..._0x13d499,'forceValue':_0x27b23d}],'formatGroupId':'blockName'});});}),(_0x5daf95['descriptionFactory']['registerElementLabel']('codeBlock',_0x244339=>o(_0x1652c8,'ELEMENT_CODE_BLOCK',_0x244339)),_0x5daf95['descriptionFactory']['registerDescriptionCallback'](_0x3a93ae=>{if('formatBlock'!=_0x3a93ae['type'])return;const _0x15089b=_0x1652c8['t'],{data:_0x14b823}=_0x3a93ae;if(!_0x14b823||'codeBlock'!=_0x14b823['commandName'])return;const _0xf37922=_0x14b823['commandParams'][0x0]['language'],_0x52d7e5=_0x15089b(_0x361efe['find'](_0xa0fd99=>_0xa0fd99['language']===_0xf37922)['label'])['toLowerCase']();return _0x14b823['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1652c8,'*Set\x20format:*\x20%0',o(_0x1652c8,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x52d7e5+')')}:{'type':'format','content':o(_0x1652c8,'*Remove\x20format:*\x20%0',o(_0x1652c8,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x320b7d){return'codeBlock'==_0x320b7d['name'];}class z extends _0x9e54d2{['afterInit'](){const _0xb58988=this['editor'];if(!_0xb58988['plugins']['has']('CommentsEditing'))return;_0xb58988['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2953cc,_0x51586f,_0x4d822e){const _0x300001=[];for(const _0x53d45c of _0x51586f['getItems']())_0x53d45c['hasAttribute'](_0x2953cc)&&_0x300001['push'](_0x4d822e['createRangeOn'](_0x53d45c));return _0x300001;}function De(_0x311e9e,_0x4b6dab,{showActiveMarker:_0x2cb4c7=!0x0}={}){const _0x4125ad=_0x311e9e['plugins']['get']('TrackChangesEditing');return(_0x2bef8f,_0xcdeb0,_0x4e0a96)=>{if(!_0x4e0a96['consumable']['test'](_0xcdeb0['markerRange'],_0x2bef8f['name']))return;const _0x1ee818=_0xcdeb0['markerRange']['getWalker'](),_0x1e181c=_0xcdeb0['markerRange']['start'],_0x34948d=_0x311e9e['model']['schema'];let _0x30b60e=null,_0x403816=null,_0x32e3ac=!0x1,_0x5c2a00=!0x1;for(const _0x17dc79 of _0x1ee818){const _0x1cfa51=_0x17dc79['item'];_0x32e3ac=_0x32e3ac||_0x34948d['isContent'](_0x1cfa51);const _0x241f5b=_0x4e0a96['mapper']['toViewElement'](_0x1cfa51);if(_0x241f5b&&_0x241f5b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17dc79['type']&&(_0x34948d['isBlock'](_0x1cfa51)&&!_0x34948d['isLimit'](_0x1cfa51)&&(_0x1cfa51['nextSibling']||_0x1e181c['isAtEnd']?_0x30b60e&&_0x30b60e['parent']==_0x1cfa51||(_0x30b60e=_0x1cfa51,_0x3db19e(_0x17dc79['previousPosition']),_0x5c2a00=!0x0):_0x403816=_0x403816||_0x17dc79['previousPosition']));}function _0x3db19e(_0x386afd){const {authorId:_0x1afddf}=_0x4125ad['_splitMarkerName'](_0xcdeb0['markerName']),_0x3e50bb=_0x4e0a96['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b6dab,'data-author-id':_0x1afddf}),_0x19f6a6=_0x4e0a96['mapper']['toViewPosition'](_0x386afd);_0x2cb4c7&&_0x4125ad['activeMarkers']['includes'](_0xcdeb0['markerName'])&&_0x4e0a96['writer']['addClass']('ck-suggestion-marker--active',_0x3e50bb),_0x4e0a96['writer']['insert'](_0x19f6a6,_0x3e50bb),_0x4e0a96['mapper']['bindElementToMarker'](_0x3e50bb,_0xcdeb0['markerName']);}_0x32e3ac||_0x5c2a00||!_0x403816||_0x3db19e(_0x403816);};}class K extends _0x9e54d2{static get['requires'](){return[_0x1f1330];}['init'](){const _0x28be4f=this['editor'],_0x316d44=_0x28be4f['plugins']['get']('TrackChangesEditing');_0x316d44['enableCommand']('delete');const _0x2490b7=_0x28be4f['commands']['get']('deleteForward');_0x316d44['enableCommand']('deleteForward',(_0x52e21c,_0x45c156={})=>{const _0x5b0d64=_0x28be4f['model']['createSelection'](_0x28be4f['model']['document']['selection']);_0x5b0d64['isCollapsed']&&_0x28be4f['model']['modifySelection'](_0x5b0d64,{'direction':'forward','unit':_0x45c156['unit']});const _0x54dbd4=_0x5b0d64['getFirstRange'](),_0x1936c3=_0x13f7d0['fromRange'](_0x54dbd4);let _0x4d7166;_0x52e21c(_0x45c156),_0x4d7166='$graveyard'==_0x1936c3['root']['rootName']?_0x28be4f['model']['createRange'](_0x54dbd4['start']):_0x28be4f['model']['createRange'](_0x1936c3['start'],_0x1936c3['end']),_0x1936c3['detach'](),_0x28be4f['model']['enqueueChange'](_0x2490b7['buffer']['batch'],_0x39e1d8=>{_0x2490b7['buffer']['lock'](),_0x39e1d8['setSelection'](_0x39e1d8['createRange'](_0x4d7166['end'])),_0x2490b7['buffer']['unlock']();});}),_0x28be4f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x28be4f,'merge'),{'priority':'high'}),_0x28be4f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x348696,_0xc294bb,_0x35b8d3)=>{_0x35b8d3['options']['showSuggestionHighlights']&&De(_0x28be4f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x348696,_0xc294bb,_0x35b8d3);},{'priority':'high'}),_0x28be4f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xf0ef9,_0xa4cc4b,_0x3e2ff5)=>{const _0xdaf8be=_0x3e2ff5['mapper']['markerNameToElements'](_0xa4cc4b['markerName']);if(_0xdaf8be){for(const _0x1ff4aa of _0xdaf8be)_0x1ff4aa['is']('uiElement')&&(_0x3e2ff5['mapper']['unbindElementFromMarkerName'](_0x1ff4aa,_0xa4cc4b['markerName']),_0x3e2ff5['writer']['remove'](_0x1ff4aa));}},{'priority':'high'});}}class W extends _0x9e54d2{['afterInit'](){const _0x38f11d=this['editor'];if(!_0x38f11d['plugins']['has']('ListEditing'))return;const _0x5c237e=_0x38f11d['locale'],_0x543e1c=_0x38f11d['plugins']['get']('TrackChangesEditing'),_0x428a24=_0x38f11d['plugins']['has']('TodoListEditing'),_0x506005=!!_0x38f11d['config']['get']('list.multiBlock');function _0x337b6c(_0x5c6a84){return{'type':'format','content':''+o(_0x5c237e,'*Set\x20format:*\x20%0',_0x5c6a84)};}function _0x367e01(_0x533806){return{'type':'format','content':''+o(_0x5c237e,'*Remove\x20format:*\x20%0',_0x533806)};}_0x543e1c['enableDefaultAttributesIntegration']('numberedList'),_0x543e1c['enableDefaultAttributesIntegration']('bulletedList'),_0x543e1c['enableDefaultAttributesIntegration']('customNumberedList'),_0x543e1c['enableDefaultAttributesIntegration']('customBulletedList'),_0x543e1c['enableDefaultAttributesIntegration']('indentList'),_0x543e1c['enableDefaultAttributesIntegration']('outdentList'),_0x543e1c['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x543e1c['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x543e1c['registerBlockAttribute']('listItemId'),_0x543e1c['registerBlockAttribute']('listType'),_0x543e1c['registerBlockAttribute']('listIndent'),_0x506005&&(_0x543e1c['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x543e1c['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x428a24&&(_0x543e1c['enableDefaultAttributesIntegration']('todoList'),_0x543e1c['enableDefaultAttributesIntegration']('checkTodoList'),_0x543e1c['registerBlockAttribute']('todoListChecked'),_0x543e1c['descriptionFactory']['registerDescriptionCallback'](_0x476c7c=>{const {data:_0x3ba2b1}=_0x476c7c;if(_0x3ba2b1&&'todoListChecked'==_0x3ba2b1['key'])return{'type':'format','content':_0x3ba2b1['newValue']?o(_0x5c237e,'*Check\x20item*'):o(_0x5c237e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x154d96=>{if(_0x154d96['batch']['isUndo'])return!0x1;let _0x23d5d3=!0x1;const _0x332cbc=_0x543e1c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e5697=>'todoListChecked'===_0x543e1c['_getAttributeKey'](_0x5e5697));for(const _0x260eec of _0x332cbc){'todo'!=_0x260eec['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x543e1c['_findSuggestions'](_0x260eec['getFirstRange'](),'attribute')['find'](_0x26d10b=>'listType'===_0x543e1c['_getAttributeKey'](_0x26d10b['suggestion']))||(_0x154d96['removeMarker'](_0x260eec['getFirstMarker']()),_0x23d5d3=!0x0));}return _0x23d5d3;})),_0x543e1c['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5c237e,'FORMAT_INDENT'));const _0x10aafa={'type':'format','content':''};_0x543e1c['descriptionFactory']['registerDescriptionCallback'](_0x5b8a03=>{const {data:_0x4a208c}=_0x5b8a03;if(!_0x4a208c||'listType'!=_0x4a208c['key'])return;let _0x516495=_0x5b8a03['head'];for(;_0x516495;){if(_0x516495['data']&&(('listStyle'==_0x516495['data']['key']||'listMarkerStyle'==_0x516495['data']['key'])&&(_0x516495['data']['newValue']&&'default'!=_0x516495['data']['newValue']||'default'!=_0x516495['data']['oldValue']&&!_0x4a208c['newValue'])||!_0x506005&&_0x516495['data']['key']==m))return _0x10aafa;_0x516495=_0x516495['next'];}if(null==_0x4a208c['newValue'])switch(_0x4a208c['oldValue']){case'bulleted':return _0x367e01(o(_0x5c237e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x367e01(o(_0x5c237e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x367e01(o(_0x5c237e,'ELEMENT_TODO_LIST'));}switch(_0x4a208c['newValue']){case'bulleted':return _0x337b6c(o(_0x5c237e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x337b6c(o(_0x5c237e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x337b6c(o(_0x5c237e,'ELEMENT_TODO_LIST'));}}),_0x543e1c['descriptionFactory']['registerDescriptionCallback'](_0x56e1ef=>{const {data:_0x576c47}=_0x56e1ef;if(_0x576c47&&'listIndent'==_0x576c47['key'])return null==_0x576c47['newValue']||null==_0x576c47['oldValue']&&0x0==_0x576c47['newValue']?_0x10aafa:void 0x0;}),_0x543e1c['descriptionFactory']['registerDescriptionCallback'](_0x404d9e=>{if('attribute'!=_0x404d9e['type'])return;const {data:_0xf3f3b}=_0x404d9e;if(!_0xf3f3b||'listItemId'!=_0xf3f3b['key'])return;const _0x1501eb=Te(_0x404d9e);return'newValue'==_0x1501eb?{'type':'format','content':o(_0x5c237e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1501eb?{'type':'format','content':o(_0x5c237e,'*Split:*\x20list\x20item')}:_0x10aafa;}),_0x38f11d['model']['document']['registerPostFixer'](_0xdcc87=>this['listItemIdFixer'](_0xdcc87)),_0x38f11d['model']['document']['registerPostFixer'](_0x3825d0=>this['noTrackChangesFixer'](_0x3825d0)),_0x38f11d['model']['document']['on']('change:data',(_0x14960a,_0x16c1a0)=>{if(_0x16c1a0['isUndo']||!_0x16c1a0['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xfaffd1){if(_0xfaffd1['batch']['isUndo']||!_0xfaffd1['batch']['isLocal'])return!0x1;let _0x569257=!0x1;const _0x43322c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e60d9=>_0x5e60d9['data']&&'listItemId'==_0x5e60d9['data']['key'])['filter'](_0x34cf64=>_0x34cf64['data']['newValue']&&_0x34cf64['data']['oldValue']);for(const _0x1c35b5 of _0x43322c)Te(_0x1c35b5)||(_0xfaffd1['removeMarker'](_0x1c35b5['getFirstMarker']()),_0x569257=!0x0);return _0x569257;}['noTrackChangesFixer'](_0x35da0a){if(_0x35da0a['batch']['isUndo']||!_0x35da0a['batch']['isLocal'])return!0x1;const _0x5b016b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5b016b['trackChangesCommand']['value'])return!0x1;let _0x5b7783=!0x1;const _0x3d436a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5e88e7=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x422e9b=>'attribute'==_0x422e9b['type'])['filter'](_0x207279=>_0x3d436a['includes'](_0x207279['attributeKey']));if(0x0==_0x5e88e7['length'])return _0x5b7783;for(const _0xece626 of _0x5e88e7){const _0x12e88c=_0x5b016b['_findSuggestions'](_0xece626['range'],'attribute')['filter'](_0x2a8001=>!_0x2a8001['meta']['isNextTo'])['map'](_0x45788c=>_0x45788c['suggestion'])['filter'](_0x566b9c=>{const _0x42a701=_0x5b016b['_getAttributeKey'](_0x566b9c);return _0x3d436a['includes'](_0x42a701);});if(_0x12e88c['length']){for(const _0x4c730e of _0x12e88c)_0x35da0a['removeMarker'](_0x4c730e['getFirstMarker']());_0x5b7783=!0x0;}}return _0x5b7783;}['assureChains'](){const _0x38ccb3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x142dff=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32fa66;const _0x14943a=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f5d57=>{if(_0x1f5d57['data']['oldRange']||!_0x1f5d57['data']['newRange'])return null;if(!_0x1f5d57['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x511627}=_0x38ccb3['_splitMarkerName'](_0x1f5d57['name']);if(!_0x38ccb3['hasSuggestion'](_0x511627))return null;const _0x38016d=_0x38ccb3['getSuggestion'](_0x511627);return _0x142dff['includes'](_0x38016d['data']['key']);})['map'](_0x1844b4=>{const {id:_0x477588}=_0x38ccb3['_splitMarkerName'](_0x1844b4['name']),_0x5ce081=_0x38ccb3['getSuggestion'](_0x477588);return _0x32fa66=_0x5ce081['attributes']['groupId'],_0x5ce081['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14943a['size'])return;const _0x41a426=_0x38ccb3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c0d48=>'attribute'==_0x6c0d48['type']&&_0x6c0d48['data']&&_0x142dff['includes'](_0x6c0d48['data']['key'])&&_0x6c0d48['attributes']['groupId']!=_0x32fa66)['map'](_0x1f9806=>({'listItem':_0x1f9806['getFirstRange']()['start']['nodeAfter'],'groupId':_0x1f9806['attributes']['groupId']})),_0x2974e3=new Set();for(const {groupId:_0x50eb5a,listItem:_0x42c94c}of _0x41a426)_0x14943a['has'](_0x42c94c)&&_0x2974e3['add'](_0x50eb5a);for(const _0x319829 of _0x38ccb3['getSuggestions']())_0x2974e3['has'](_0x319829['attributes']['groupId'])&&_0x319829['setAttribute']('groupId',_0x32fa66);}['_supportLegacySuggestions'](){const _0x3453c0=this['editor'],_0x5c58c6=_0x3453c0['locale'],_0x442170=_0x3453c0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x442170['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x557a3c,_0x4a4391){const _0x51d547=[];for(let _0x4286b1 of _0x557a3c)_0x4286b1['start']['nodeAfter']===_0x4286b1['end']['parent']&&(_0x4286b1=_0x3453c0['model']['createRange'](_0x3453c0['model']['createPositionAt'](_0x4286b1['start']['nodeAfter'],0x0))),_0x51d547['push'](_0x4286b1);_0x3453c0['model']['change'](_0x87a725=>{const _0x2e48c8=_0x3453c0['model']['document']['selection'],_0x238cb0=Array['from'](_0x2e48c8['getRanges']())['map'](_0x5d548f=>_0x13f7d0['fromRange'](_0x5d548f));_0x87a725['setSelection'](_0x51d547),_0x3453c0['commands']['get'](_0x4a4391['commandName'])['refresh'](),_0x4a4391['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3453c0['execute'](_0x4a4391['commandName'],..._0x4a4391['commandParams']),_0x87a725['setSelection'](_0x238cb0);for(const _0x461832 of _0x238cb0)_0x461832['detach']();});}),_0x442170['descriptionFactory']['registerElementLabel'](function(_0x50064a){const _0x28ae11=!_0x3453c0['model']['schema']['isObject'](_0x50064a),_0x5f5b62=_0x50064a['previousSibling'],_0x4da1ef=_0x50064a['nextSibling'],_0x57fa22=_0x50064a['getAttribute']('listItemId'),_0x38dc1f=!_0x5f5b62||_0x5f5b62['getAttribute']('listItemId')!==_0x57fa22,_0x516752=!_0x4da1ef||_0x4da1ef['getAttribute']('listItemId')!==_0x57fa22;return _0x28ae11&&Boolean(_0x57fa22)&&_0x38dc1f&&_0x516752;},_0x3043cb=>o(_0x5c58c6,'ELEMENT_LIST_ITEM',_0x3043cb));}['_registerLegacyDescription'](){const _0xa30fad=this['editor'],_0x3b6856=_0xa30fad['locale'];function _0x26260a(_0x551094){const _0x29ddea=_0xa30fad['commands']['get']('bulletedList')['value'],_0x42a5a1=_0xa30fad['commands']['get']('numberedList')['value'];return'numberedList'===_0x551094?_0x29ddea:_0x42a5a1;}_0xa30fad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4e290c){if('formatBlock'!=_0x4e290c['type'])return;const {data:_0x31c05a}=_0x4e290c;if(!_0x31c05a)return;let _0x3d7ef0,_0x34d0ba,_0x2dcd10,_0x25cd4b;switch(_0x31c05a['commandName']){case'bulletedList':_0x2dcd10=_0x31c05a['commandParams'][0x0]['forceValue'],_0x25cd4b=_0x26260a(_0x31c05a['commandName']),_0x3d7ef0=_0x2dcd10?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25cd4b&&_0xa30fad['config']['get']('list.multiBlock')||(_0x3d7ef0='*Change\x20to:*\x20%0'),_0x34d0ba={'type':'format','content':o(_0x3b6856,_0x3d7ef0,o(_0x3b6856,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2dcd10=_0x31c05a['commandParams'][0x0]['forceValue'],_0x25cd4b=_0x26260a(_0x31c05a['commandName']),_0x3d7ef0=_0x2dcd10?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x25cd4b&&_0xa30fad['config']['get']('list.multiBlock')||(_0x3d7ef0='*Change\x20to:*\x20%0'),_0x34d0ba={'type':'format','content':o(_0x3b6856,_0x3d7ef0,o(_0x3b6856,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3d7ef0='*Indent:*\x20%0',_0x34d0ba={'type':'format','content':o(_0x3b6856,_0x3d7ef0,o(_0x3b6856,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3d7ef0=function(_0x49eb30){const _0x435e23=_0x49eb30['getFirstRange']();let _0x3e86fd=_0x435e23['start']['nodeAfter'];for(;_0x3e86fd&&_0x435e23['containsItem'](_0x3e86fd);){if(_0x3e86fd['getAttribute']('listIndent')>0x0)return!0x1;_0x3e86fd=_0x3e86fd['nextSibling'];}return!0x0;}(_0x4e290c)?o(_0x3b6856,'*Format:*\x20remove\x20from\x20%0',o(_0x3b6856,function(_0x1772ee){return'ELEMENT_'+_0x1772ee['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4e290c))):o(_0x3b6856,'*Outdent:*\x20%0',o(_0x3b6856,'ELEMENT_LIST_ITEM')),_0x34d0ba={'type':'format','content':_0x3d7ef0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x31c05a['multipleBlocks']&&(_0x3d7ef0='*Merge:*\x20%0',_0x34d0ba={'type':'deletion','content':o(_0x3b6856,_0x3d7ef0,o(_0x3b6856,'ELEMENT_LIST_ITEM'))});}return _0x34d0ba;});}}function Te(_0xbd476d){let _0x3d6902=_0xbd476d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x3d6902;){const _0x258f7b=_0x3d6902['getAttribute']('listItemId');if(!_0x258f7b)return!0x1;if(_0x258f7b==_0xbd476d['data']['newValue'])return'newValue';if(_0x258f7b==_0xbd476d['data']['oldValue'])return'oldValue';_0x3d6902=_0x3d6902['previousSibling'];}return!0x1;}class Se extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xf1645b=this['editor']['config']['get']('list.properties'),_0x4b6f5d=this['editor']['plugins']['get']('TrackChangesEditing');_0xf1645b['styles']&&(_0x4b6f5d['enableDefaultAttributesIntegration']('listStyle'),_0x4b6f5d['registerBlockAttribute']('listStyle')),_0xf1645b['reversed']&&(_0x4b6f5d['enableDefaultAttributesIntegration']('listReversed'),_0x4b6f5d['registerBlockAttribute']('listReversed')),_0xf1645b['startIndex']&&(_0x4b6f5d['enableDefaultAttributesIntegration']('listStart'),_0x4b6f5d['registerBlockAttribute']('listStart'));const _0x6e47cd={'type':'format','content':''};_0x4b6f5d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x190e25=this['editor']['locale'];_0x4b6f5d['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x190e25,'FORMAT_LIST_REVERSED')),_0x4b6f5d['descriptionFactory']['registerDescriptionCallback'](_0x12243b=>{const {data:_0x3c8f5b}=_0x12243b;if(_0x3c8f5b&&'listReversed'==_0x3c8f5b['key'])return null==_0x3c8f5b['newValue']||0x0==_0x3c8f5b['newValue']&&null==_0x3c8f5b['oldValue']?_0x6e47cd:void 0x0;}),_0x4b6f5d['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x190e25,'FORMAT_LIST_START')),_0x4b6f5d['descriptionFactory']['registerDescriptionCallback'](_0x1ef39f=>{const {data:_0x3af1c0}=_0x1ef39f;if(_0x3af1c0&&'listStart'==_0x3af1c0['key'])return null==_0x3af1c0['newValue']||0x1==_0x3af1c0['newValue']&&null==_0x3af1c0['oldValue']?_0x6e47cd:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2063ca=>{if(_0x2063ca['batch']['isUndo'])return!0x1;let _0x87d76d=!0x1;const _0x2551bc=_0x4b6f5d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x455570=>{const _0xa23cfe=_0x4b6f5d['_getAttributeKey'](_0x455570);return'listStart'==_0xa23cfe||'listReversed'==_0xa23cfe;});for(const _0x8a1706 of _0x2551bc){const _0x38e10b=_0x8a1706['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x38e10b||'customNumbered'==_0x38e10b)continue;_0x4b6f5d['_findSuggestions'](_0x8a1706['getFirstRange'](),'attribute')['find'](_0x2b92b6=>'listType'==_0x4b6f5d['_getAttributeKey'](_0x2b92b6['suggestion']))||(_0x2063ca['removeMarker'](_0x8a1706['getFirstMarker']()),_0x87d76d=!0x0);}return _0x87d76d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x29ecba){const _0x3c1323=this['editor']['locale'],{data:_0x1c284a}=_0x29ecba,_0x4373a8={'type':'format','content':''};if(!_0x1c284a||'listStyle'!=_0x1c284a['key'])return;if(!_0x1c284a['oldValue'])return'default'==_0x1c284a['newValue']?_0x4373a8:{'type':'format','content':''+o(_0x3c1323,'*Set\x20format:*\x20%0',o(_0x3c1323,this['_getTranslationKeyForListStyle'](_0x1c284a['newValue'])))};if(!_0x1c284a['newValue']){if('default'==_0x1c284a['oldValue'])return _0x4373a8;let _0x1a1e18=_0x29ecba['head'];for(;_0x1a1e18;){if(_0x1a1e18['data']&&'listType'==_0x1a1e18['data']['key']&&_0x1a1e18['data']['newValue'])return _0x4373a8;_0x1a1e18=_0x1a1e18['next'];}return{'type':'format','content':''+o(_0x3c1323,'*Remove\x20format:*\x20%0',o(_0x3c1323,this['_getTranslationKeyForListStyle'](_0x1c284a['oldValue'])))};}if('default'!=_0x1c284a['newValue'])return{'type':'format','content':''+o(_0x3c1323,'*Set\x20format:*\x20%0',o(_0x3c1323,this['_getTranslationKeyForListStyle'](_0x1c284a['newValue'])))};let _0x15606b=_0x29ecba['head'];for(;_0x15606b;){if(_0x15606b['data']&&'listType'==_0x15606b['data']['key']&&_0x15606b['data']['newValue']&&_0x15606b['data']['oldValue'])return _0x4373a8;_0x15606b=_0x15606b['next'];}return{'type':'format','content':o(_0x3c1323,'*Set\x20format:*\x20%0',o(_0x3c1323,'ELEMENT_'+_0x29ecba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x134dc2=this['editor'],_0x5ded94=_0x134dc2['locale'];_0x134dc2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15816e=>{if('formatBlock'!=_0x15816e['type'])return;const {data:_0x575f00}=_0x15816e;if(!_0x575f00)return;let _0x3b4e90,_0x169d74;switch(_0x575f00['commandName']){case'listStyle':_0x3b4e90='*Change\x20to:*\x20%0',_0x169d74={'type':'format','content':o(_0x5ded94,_0x3b4e90,o(_0x5ded94,this['_getTranslationKeyForListStyle'](_0x575f00['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3b4e90=_0x575f00['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x169d74={'type':'format','content':o(_0x5ded94,_0x3b4e90)};break;case'listStart':_0x3b4e90='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x169d74={'type':'format','content':o(_0x5ded94,_0x3b4e90,_0x575f00['commandParams'][0x0]['startIndex'])};}return _0x169d74;});}['_getTranslationKeyForListStyle'](_0x156250){return'ELEMENT_'+function(_0x4a2319){if(_e['includes'](_0x4a2319))return'bulleted';if(Re['includes'](_0x4a2319))return'numbered';return null;}(_0x156250)['toUpperCase']()+'_LIST_'+_0x156250['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x9e54d2{['afterInit'](){const _0x1bc33d=this['editor'];_0x1bc33d['commands']['get']('emoji')&&_0x1bc33d['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x9e54d2{static get['requires'](){return[_0xe5c81d];}['init'](){const _0x1b9de3=this['editor'],_0x2d602f=_0x1b9de3['plugins']['get']('TrackChangesEditing'),_0x154a7a=_0x1b9de3['commands']['get']('enter');_0x2d602f['enableCommand']('enter',()=>{_0x1b9de3['model']['change'](_0x20f0d1=>{const _0x5f11f7=_0x1b9de3['model']['document']['selection'],_0x43986e=_0x5f11f7['getFirstPosition'](),_0x363dfd=_0x13f7d0['fromRange'](_0x5f11f7['getFirstRange']());if(_0x154a7a['enterBlock'](_0x20f0d1)){const _0x1b6201=_0x1b9de3['model']['createPositionAt'](_0x43986e['parent']['nextSibling'],0x0),_0x53ed0a=_0x20f0d1['createRange'](_0x43986e,_0x1b6201);_0x2d602f['markInsertion'](_0x53ed0a);}else _0x20f0d1['setSelection'](_0x20f0d1['createRange'](_0x363dfd['end']));_0x363dfd['detach'](),_0x154a7a['fire']('afterExecute',{'writer':_0x20f0d1});});}),_0x1b9de3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x1b9de3,'split'),{'priority':'high'}),_0x1b9de3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3004a3,_0x29bb97,_0x234e60)=>{const _0x2ff2ff=_0x234e60['mapper']['markerNameToElements'](_0x29bb97['markerName']);if(_0x2ff2ff){for(const _0x5d62d0 of _0x2ff2ff)_0x5d62d0['hasClass']('ck-suggestion-marker-split')&&(_0x234e60['mapper']['unbindElementFromMarkerName'](_0x5d62d0,_0x29bb97['markerName']),_0x234e60['writer']['remove'](_0x5d62d0));}},{'priority':'high'}),_0x1b9de3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3fa571,_0x33cb64,_0xe7d02d)=>{_0xe7d02d['options']['showSuggestionHighlights']&&De(_0x1b9de3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3fa571,_0x33cb64,_0xe7d02d);},{'priority':'high'});}}class Z extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3986fa=this['editor']['plugins']['get']('TrackChangesEditing');_0x3986fa['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3986fa['enableCommand']('findNext'),_0x3986fa['enableCommand']('findPrevious'),_0x3986fa['enableCommand']('replace'),_0x3986fa['enableCommand']('replaceAll');}['handleFindCommand'](_0x2b137b,_0x49a0be,_0x486155={}){const _0x34eb35=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2b137b(_0x13a234=>{let _0x5c9b08=('string'==typeof _0x49a0be?_0x34eb35['findByTextCallback'](_0x49a0be,_0x486155):_0x49a0be)(_0x13a234);Array['isArray'](_0x5c9b08)&&(_0x5c9b08={'results':_0x5c9b08,'searchText':'string'==typeof _0x49a0be?_0x49a0be:''});const _0x56bc4c=_0x5c9b08['results']['filter'](_0xf886c2=>!0x1===this['_isInDeletionRange'](_0xf886c2,_0x13a234['item']));return{..._0x5c9b08,'results':_0x56bc4c};},_0x486155);}['_isInDeletionRange'](_0x10943e,_0xb2bdd0){const _0x554461=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb2bdd0,_0x10943e['start']),this['editor']['model']['createPositionAt'](_0xb2bdd0,_0x10943e['end']));for(const _0x3abd4e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x554461['getIntersection'](_0x3abd4e['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x9e54d2{['afterInit'](){const _0x1c0889=this['editor']['locale'],_0x29fd03=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xe6d325,commandName:_0x10cdf0}of ro)this['editor']['plugins']['has'](_0xe6d325)&&(_0x29fd03['enableDefaultAttributesIntegration'](_0x10cdf0),_0x29fd03['registerInlineAttribute'](_0x10cdf0));_0x29fd03['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1c0889,'FORMAT_FONT_SIZE')),_0x29fd03['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1c0889,'FORMAT_FONT_FAMILY')),_0x29fd03['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1c0889,'FORMAT_FONT_COLOR')),_0x29fd03['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1c0889,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cec3f=this['editor'],_0x7c8533=_0x3cec3f['locale'];_0x3cec3f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a271e=>{const _0x224e62=_0x7c8533['t'];if('formatInline'!=_0x2a271e['type'])return;const {data:_0x30793d}=_0x2a271e;if(null!=_0x30793d){if('fontSize'==_0x30793d['commandName']){const _0x41172c=_0x30793d['commandParams'][0x0]['value'];if(_0x41172c){const _0xcd5c32=_0x224e62(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4ee4ad=>_0x4ee4ad['model']==_0x41172c)['title'])['toLowerCase']();return{'type':'format','content':o(_0x7c8533,'*Set\x20font\x20size:*\x20%0',_0xcd5c32)};}return{'type':'format','content':o(_0x7c8533,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x30793d['commandName']){const _0x264614=_0x30793d['commandParams'][0x0]['value'];return _0x264614?{'type':'format','content':o(_0x7c8533,'*Set\x20font\x20family:*\x20%0',_0x264614)}:{'type':'format','content':o(_0x7c8533,'*Reset\x20font\x20family*')};}if('fontColor'==_0x30793d['commandName']){const _0x4d6ee2=_0x30793d['commandParams'][0x0]['value'];if(_0x4d6ee2){const _0x1da78d=_0x1b403d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x214630=>_0x214630['model']==_0x4d6ee2);let _0x5d6f39=_0x4d6ee2,_0x40efe2='';return _0x1da78d&&(_0x5d6f39=_0x1da78d['label'],_0x40efe2=_0x224e62(_0x5d6f39)['toLowerCase']()),{'type':'format','content':o(_0x7c8533,'*Set\x20font\x20color:*\x20%0',_0x40efe2)['trim'](),'color':{'value':_0x4d6ee2,'title':_0x40efe2||_0x5d6f39}};}return{'type':'format','content':o(_0x7c8533,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x30793d['commandName']){const _0x47105d=_0x30793d['commandParams'][0x0]['value'];if(_0x47105d){const _0x582ade=_0x1b403d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x22b6fb=>_0x22b6fb['model']==_0x47105d);let _0x470e71=_0x47105d,_0x46ba5f='';return _0x582ade&&(_0x470e71=_0x582ade['label'],_0x46ba5f=_0x224e62(_0x470e71)['toLowerCase']()),{'type':'format','content':o(_0x7c8533,'*Set\x20font\x20background\x20color:*\x20%0',_0x46ba5f)['trim'](),'color':{'value':_0x47105d,'title':_0x46ba5f||_0x470e71}};}return{'type':'format','content':o(_0x7c8533,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x9e54d2{['afterInit'](){const _0x424221=this['editor'],_0x2f701c=_0x424221['plugins']['get']('TrackChangesEditing'),_0x5a4ee5=_0x424221['commands']['get']('copyFormat'),_0x2d3f75=_0x424221['commands']['get']('pasteFormat');_0x5a4ee5&&_0x2d3f75&&(_0x2f701c['enableDefaultAttributesIntegration']('pasteFormat'),_0x2f701c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d689d=this['editor'],_0x4032f5=_0x5d689d['locale'];_0x5d689d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20805f=>{if('formatBlock'!=_0x20805f['type']&&'formatInline'!=_0x20805f['type'])return;const {data:_0x22acc0}=_0x20805f;if(_0x22acc0&&'pasteFormat'===_0x22acc0['commandName']){const _0x29a097=[],_0xbda73f=_0x22acc0['commandParams'][0x0];for(const [_0x1a4abd,_0x2689f1]of Object['entries'](_0xbda73f))_0x29a097['push'](so(_0x5d689d,_0x1a4abd,_0x2689f1));return _0x29a097['length']?{'type':'format','content':o(_0x4032f5,'*Set\x20format\x20to:*\x20%0',_0x29a097['join'](',\x20'))}:{'type':'format','content':o(_0x4032f5,'*Remove\x20all\x20formatting*')};}});}}function so(_0x579196,_0x3a198f,_0xa4cc64){const _0x324ee2=_0x579196['locale']['t'],_0x46ad20=_0x3a198f['split'](/(?=[A-Z])/)['join']('\x20'),_0xb84ad9=_0x324ee2(_0x46ad20['charAt'](0x0)['toUpperCase']()+_0x46ad20['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xa4cc64)return _0xb84ad9;if('fontColor'===_0x3a198f||'fontBackgroundColor'===_0x3a198f){const _0x11b81f=_0x1b403d(_0x579196['config']['get']('fontColor.colors'))['find'](_0x4c656d=>_0x4c656d['model']==_0xa4cc64);return _0xb84ad9+'\x20('+(_0x11b81f?_0x324ee2(_0x11b81f['label'])['toLowerCase']():_0xa4cc64)+')';}if('fontSize'===_0x3a198f&&isNaN(parseFloat(_0xa4cc64))){const _0x1b49ac=_0x579196['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x579196['config']['get']('fontSize.options'))['find'](_0x31f0e5=>_0x31f0e5['model']==_0xa4cc64);return _0xb84ad9+'\x20('+(_0x1b49ac?_0x324ee2(_0x1b49ac['title'])['toLowerCase']():_0xa4cc64)+')';}return _0xb84ad9+'\x20('+_0xa4cc64+')';}class it extends _0x9e54d2{['_headingOptions'];['afterInit'](){const _0x79ca71=this['editor'];if(!_0x79ca71['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x79ca71['config']['get']('heading.options');const _0x19ca3f=_0x79ca71['locale'],_0x71f021=_0x79ca71['plugins']['get']('TrackChangesEditing');_0x71f021['enableDefaultAttributesIntegration']('heading');for(const _0x5bbc87 of this['_headingOptions'])'paragraph'!=_0x5bbc87['model']&&_0x71f021['descriptionFactory']['registerElementLabel'](_0x5bbc87['model'],_0x4c389d=>{const _0x32238c=this['_getHeadingLevel'](_0x5bbc87['model']);return null!==_0x32238c?_0x3016b8(_0x4c389d,_0x32238c):_0x4b8ad2(_0x4c389d,_0x5bbc87['title']);});function _0x3016b8(_0x16c822,_0x5d3eec){return o(_0x19ca3f,'ELEMENT_HEADING',[_0x16c822,_0x5d3eec]);}function _0x4b8ad2(_0x1559e9,_0xaf46ed){return o(_0x19ca3f,'ELEMENT_HEADING_CUSTOM',[_0x1559e9,_0xaf46ed]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x57b883=this['editor'],_0xa4e33e=_0x57b883['locale'];function _0x51887d(_0xd17410,_0x506f55){return o(_0xa4e33e,'ELEMENT_HEADING_CUSTOM',[_0xd17410,_0x506f55]);}_0x57b883['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ac9be=>{if('formatBlock'!=_0x4ac9be['type'])return;const {data:_0x37e791}=_0x4ac9be;if(_0x37e791&&'heading'==_0x37e791['commandName']){const _0x5259c6=_0x37e791['commandParams'][0x0]['value'],_0x46b729=this['_getHeadingLevel'](_0x5259c6);if(null!==_0x46b729)return{'type':'format','content':o(_0xa4e33e,'*Change\x20to:*\x20%0',(_0x4eaab0=0x1,_0x2715e2=_0x46b729,o(_0xa4e33e,'ELEMENT_HEADING',[_0x4eaab0,_0x2715e2])))};const _0x453a13=this['_headingOptions']['find'](_0x17be6b=>_0x17be6b['model']===_0x5259c6)['title'];return{'type':'format','content':o(_0xa4e33e,'*Change\x20to:*\x20%0',_0x51887d(0x1,_0x453a13))};}var _0x4eaab0,_0x2715e2;});}['_getHeadingLevel'](_0x10524e){const _0x5ed585=_0x10524e['match'](/^heading(\d+)/);if(_0x5ed585)return _0x5ed585[0x1];const _0x2c8f8d=this['_headingOptions']?.['find'](_0x11cc07=>_0x11cc07['model']==_0x10524e);if(_0x2c8f8d&&_0x2c8f8d['view']){const _0x49002c=_0x2c8f8d['view'],_0x32ac67=(_0x49002c['name']??_0x49002c)['match'](/^h(\d+)/);if(_0x32ac67)return _0x32ac67[0x1];}return null;}}class et extends _0x9e54d2{['afterInit'](){const _0x3f5578=this['editor'];if(!_0x3f5578['plugins']['has']('HighlightEditing'))return;const _0x2455d9=_0x3f5578['plugins']['get']('TrackChangesEditing'),_0x3e803f=_0x3f5578['locale'];_0x2455d9['enableDefaultAttributesIntegration']('highlight'),_0x2455d9['registerInlineAttribute']('highlight'),_0x2455d9['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3e803f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dcec3=this['editor'],_0x55ed6b=_0x1dcec3['locale'];_0x1dcec3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c0202=>{if('formatInline'!=_0x2c0202['type'])return;const {data:_0x125d4e}=_0x2c0202;if(_0x125d4e&&'highlight'==_0x125d4e['commandName']){const _0x51e0d5=_0x55ed6b['t'],_0x2b4618=_0x125d4e['commandParams'][0x0]['value'];if(_0x2b4618){const _0x33e930=_0x1dcec3['config']['get']('highlight.options')['find'](_0x409857=>_0x409857['model']==_0x2b4618),_0x2e81ac=_0x51e0d5(_0x33e930['title'])['toLowerCase']();return{'type':'format','content':o(_0x55ed6b,'*Set\x20highlight:*\x20%0',_0x2e81ac),'color':{'value':_0x33e930['color'],'title':_0x33e930['title']}};}return{'type':'format','content':o(_0x55ed6b,'*Remove\x20highlight*',o(_0x55ed6b,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x9e54d2{['afterInit'](){const _0x2a1000=this['editor'];if(!_0x2a1000['plugins']['has']('HorizontalLineEditing'))return;_0x2a1000['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4f40d0=_0x2a1000['plugins']['get']('TrackChangesEditing'),_0x4f1316=_0x2a1000['locale'];_0x4f40d0['descriptionFactory']['registerElementLabel']('horizontalLine',_0x5a6361=>o(_0x4f1316,'ELEMENT_HORIZONTAL_LINE',_0x5a6361)),_0x2a1000['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb139c8,{writer:_0x5d003d,options:_0x326b33})=>{if(!_0x326b33['showSuggestionHighlights'])return null;const _0x3114b1=_0x5d003d['createContainerElement']('div'),_0x327bbb=_0x5d003d['createEmptyElement']('hr');return _0x5d003d['addClass']('ck-horizontal-line',_0x3114b1),_0x5d003d['insert'](_0x5d003d['createPositionAt'](_0x3114b1,0x0),_0x327bbb),_0x3114b1;},'converterPriority':'high'});}}class ot extends _0x9e54d2{['afterInit'](){const _0x5e8b32=this['editor'];if(!_0x5e8b32['plugins']['has']('HtmlEmbed'))return;const _0x1ff20d=_0x5e8b32['plugins']['get']('TrackChangesEditing'),_0x4c0bbc=_0x5e8b32['locale'];_0x1ff20d['descriptionFactory']['registerElementLabel']('rawHtml',_0x36f9f8=>o(_0x4c0bbc,'ELEMENT_HTML_EMBED',_0x36f9f8)),_0x1ff20d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x1ff20d['registerBlockAttribute']('value'),_0x1ff20d['descriptionFactory']['registerDescriptionCallback'](_0x3ef501=>{if('attribute'!=_0x3ef501['type'])return;const {data:_0x4f6051}=_0x3ef501;if(_0x4f6051&&'value'==_0x4f6051['key']&&_0x3ef501['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3c3964=o(_0x4c0bbc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4c0bbc,'*Change\x20%0\x20content*',_0x3c3964)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1631a2=this['editor'],_0x4156f5=_0x1631a2['locale'];_0x1631a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f3174=>{if('formatBlock'!=_0x1f3174['type'])return;const {data:_0x387f25}=_0x1f3174;if(_0x387f25&&'htmlEmbed'==_0x387f25['commandName']){const _0x194d37=o(_0x4156f5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4156f5,'*Change\x20%0\x20content*',_0x194d37)};}});}}class rt extends _0x9e54d2{['afterInit'](){const _0x6c06e2=this['editor'];if(!_0x6c06e2['plugins']['has']('ImageEditing'))return;const _0xb17413=_0x6c06e2['plugins']['get']('TrackChangesEditing'),_0x4faf6d=_0x6c06e2['plugins']['get']('ImageUtils'),_0x3d3738=_0x6c06e2['locale'];_0xb17413['enableCommand']('insertImage'),_0xb17413['descriptionFactory']['registerElementLabel']('imageBlock',_0x2b3d4b=>o(_0x3d3738,'ELEMENT_IMAGE',_0x2b3d4b)),_0xb17413['descriptionFactory']['registerElementLabel']('imageInline',_0x1a91d9=>o(_0x3d3738,'ELEMENT_INLINE_IMAGE',_0x1a91d9)),_0xb17413['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3d3738,'ELEMENT_CAPTION')),_0x6c06e2['plugins']['has']('ImageUploadEditing')&&_0xb17413['enableCommand']('uploadImage'),_0x6c06e2['plugins']['has']('ImageBlockEditing')&&_0x6c06e2['plugins']['has']('ImageInlineEditing')&&(_0xb17413['enableCommand']('imageTypeInline',(_0x509c6e,_0x47f88f)=>{const _0x20d6ee=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']);_0x6c06e2['model']['change'](()=>{_0xb17413['markBlockFormat'](_0x20d6ee,{'commandName':'imageTypeInline','commandParams':[_0x47f88f]},[],'convertBlockImageToInline');});}),_0xb17413['enableCommand']('imageTypeBlock',(_0x67d9bc,_0x25d432)=>{_0x6c06e2['model']['change'](_0x10ba50=>{let _0x3fd4a0=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']),_0x470046=_0x10ba50['createRangeOn'](_0x3fd4a0);const _0x48c794=_0x174689['fromPosition'](_0x470046['start'],'toPrevious'),_0x5cc28c=_0x174689['fromPosition'](_0x470046['end'],'toNext');_0xb17413['forceDefaultExecution'](()=>_0x67d9bc(_0x25d432)),_0x3fd4a0=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']),_0x470046=_0x10ba50['createRangeOn'](_0x3fd4a0);const _0x1e6a2e=_0x10ba50['createRange'](_0x48c794,_0x5cc28c);_0x48c794['detach'](),_0x5cc28c['detach'](),_0xb17413['markBlockFormat'](_0x3fd4a0,{'commandName':'imageTypeInline','commandParams':[_0x25d432]},[],'convertInlineImageToBlock'),_0x1e6a2e['start']['isBefore'](_0x470046['start'])&&_0xb17413['markInsertion'](_0x10ba50['createRange'](_0x1e6a2e['start'],_0x470046['start']),'convertInlineImageToBlock'),_0x470046['end']['isBefore'](_0x1e6a2e['end'])&&_0xb17413['markInsertion'](_0x10ba50['createRange'](_0x470046['end'],_0x1e6a2e['end']),'convertInlineImageToBlock');});}),_0xb17413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb17413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb17413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb17413['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb17413['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb17413['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4b3545])=>{const _0x4d95ad=_0xb17413['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2c5d5e=_0x4b3545['start'],_0x2b6961=_0x4b3545['end'];const _0x111c15=_0x6c06e2['model']['schema']['getNearestSelectionRange'](_0x2c5d5e,'backward'),_0x4e1967=_0x6c06e2['model']['schema']['getNearestSelectionRange'](_0x2b6961,'forward');_0x111c15['isCollapsed']&&(_0x2c5d5e=_0x111c15['start']),_0x4e1967['isCollapsed']&&(_0x2b6961=_0x4e1967['end']),_0x4d95ad([_0x6c06e2['model']['createRange'](_0x2c5d5e,_0x2b6961)]);}),_0xb17413['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x184d7e),_0xb17413['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x184d7e)),_0x6c06e2['plugins']['has']('ImageCaptionEditing')&&(_0xb17413['enableCommand']('toggleImageCaption',(_0x502558,_0x559cc2)=>{const _0x459834=_0x6c06e2['plugins']['get']('ImageCaptionUtils');let _0x5b36b5=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']),_0x2ceaaf=_0x459834['getCaptionFromImageModelElement'](_0x5b36b5);_0x6c06e2['model']['change'](()=>{if(_0x2ceaaf)return void _0xb17413['markDeletion'](_0x6c06e2['model']['createRangeOn'](_0x2ceaaf));const _0x4eb336=_0x4faf6d['isBlockImage'](_0x5b36b5);_0x502558(_0x559cc2),_0x5b36b5=_0x4faf6d['getClosestSelectedImageElement'](_0x6c06e2['model']['document']['selection']),_0x2ceaaf=_0x459834['getCaptionFromImageModelElement'](_0x5b36b5),_0xb17413['markInsertion'](_0x6c06e2['model']['createRangeOn'](_0x2ceaaf),_0x4eb336?null:'imageCaption');});}),_0xb17413['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x184d7e));const _0xf75e49=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x357b2f(_0x50a219,_0x1563b2){const _0x31a11a=_0xf75e49['findIndex'](({type:_0x2d2e58,subType:_0x20304c})=>_0x50a219['type']==_0x2d2e58&&_0x50a219['subType']==_0x20304c),_0x1697ea=_0xf75e49['findIndex'](({type:_0x2c3fc4,subType:_0x43038a})=>_0x1563b2['type']==_0x2c3fc4&&_0x1563b2['subType']==_0x43038a);if(_0x31a11a<0x0||_0x1697ea<0x0)return!0x1;const _0x39a88b=_0x50a219['getFirstRange'](),_0x153341=_0x1563b2['getFirstRange']();if((0x0==_0x31a11a||0x1==_0x31a11a)&&0x2==_0x1697ea&&_0x39a88b['isIntersecting'](_0x153341))return!0x0;if(0x2==_0x31a11a&&0x3==_0x1697ea){const _0x2dda15=_0xb17413['_findSuggestions'](_0x39a88b,'insertion')['filter'](({suggestion:_0x36cf81,meta:_0x4ed6e3})=>_0x4ed6e3['isOwn']&&'convertInlineImageToBlock'==_0x36cf81['subType']);if(_0x2dda15['length']>0x1&&_0x153341['end']['isEqual'](_0x39a88b['start']))return!0x0;if(0x1==_0x2dda15['length']&&(_0x39a88b['start']['isEqual'](_0x153341['end'])||_0x39a88b['end']['isEqual'](_0x153341['start'])))return!0x0;}if(0x3==_0x31a11a&&0x3==_0x1697ea&&_0x39a88b['start']['isBefore'](_0x153341['start'])){const _0x1d344d=_0x39a88b['end']['nodeAfter'],_0x2c04ab=_0x153341['start']['nodeBefore'];return _0x4faf6d['isBlockImage'](_0x1d344d)&&_0x1d344d===_0x2c04ab;}return!0x1;}function _0x184d7e(_0x509405,_0x4eef08){return _0x357b2f(_0x509405,_0x4eef08)?[_0x509405,_0x4eef08]:_0x357b2f(_0x4eef08,_0x509405)?[_0x4eef08,_0x509405]:null;}_0x6c06e2['plugins']['has']('ImageResize')&&(_0xb17413['enableDefaultAttributesIntegration']('resizeImage'),_0xb17413['registerBlockAttribute']('resizedWidth'),_0xb17413['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3d3738,'FORMAT_IMAGE_SIZE'))),_0x6c06e2['plugins']['has']('ImageTextAlternativeEditing')&&(_0xb17413['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xb17413['registerBlockAttribute']('alt')),_0x6c06e2['plugins']['has']('PictureEditing')&&(_0xb17413['registerBlockAttribute']('sources'),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x1a5d22=>{if('attribute'!=_0x1a5d22['type'])return;const {data:_0x4cf9df}=_0x1a5d22;return _0x4cf9df&&'sources'==_0x4cf9df['key']?{'type':'format','content':''}:void 0x0;})),_0x6c06e2['plugins']['has']('ImageSizeAttributes')&&(_0xb17413['registerBlockAttribute']('width'),_0xb17413['registerBlockAttribute']('height'),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x324503=>{if('attribute'!=_0x324503['type'])return;const {data:_0x214c8d}=_0x324503;return!_0x214c8d||'width'!=_0x214c8d['key']&&'height'!=_0x214c8d['key']?void 0x0:{'type':'format','content':''};})),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x793c5f=>{if(!!_0xf75e49['find'](({type:_0x160042,subType:_0x4ac2d5})=>_0x793c5f['type']==_0x160042&&_0x793c5f['subType']==_0x4ac2d5))return _0x793c5f['previous']?{}:void 0x0;}),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x1b9ef3=>{if('insertion'==_0x1b9ef3['type']||'deletion'==_0x1b9ef3['type']){const _0x41d521=_0x1b9ef3['getContainedElement']();if(_0x41d521&&_0x41d521['is']('element','caption'))return{'type':'insertion'==_0x1b9ef3['type']?'addObject':'removeObject','element':_0x41d521,'quantity':0x1};}}),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x1a38b9=>'formatBlock'==_0x1a38b9['type']&&'convertInlineImageToBlock'==_0x1a38b9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1a38b9['type']&&'convertBlockImageToInline'==_0x1a38b9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb17413['descriptionFactory']['registerDescriptionCallback'](_0x4dd92a=>{if('attribute'!=_0x4dd92a['type'])return;const {data:_0x180c6b}=_0x4dd92a;if(!_0x180c6b||'alt'!=_0x180c6b['key'])return;const _0x524b23=_0x180c6b['newValue'];return _0x524b23?{'type':'format','content':o(_0x3d3738,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x524b23+'\x22')}:{'type':'format','content':o(_0x3d3738,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x595367=this['editor'],_0x7bac1d=_0x595367['locale'];_0x595367['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19e93f=>{if('formatBlock'!=_0x19e93f['type']&&'formatInline'!=_0x19e93f['type'])return;const {data:_0x4e2882}=_0x19e93f;if(_0x4e2882){if('imageTextAlternative'==_0x4e2882['commandName']){const _0x2c6247=_0x4e2882['commandParams'][0x0]['newValue'];return _0x2c6247?{'type':'format','content':o(_0x7bac1d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c6247+'\x22')}:{'type':'format','content':o(_0x7bac1d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4e2882['commandName']){const _0x4f672f=_0x4e2882['commandParams'][0x0]['width'];return _0x4f672f?{'type':'format','content':o(_0x7bac1d,'*Set\x20image\x20width:*\x20%0',_0x4f672f)}:{'type':'format','content':o(_0x7bac1d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x28e51b=this['editor']['locale'],_0x209f1b=this['editor']['plugins']['get']('TrackChangesEditing');_0x209f1b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x209f1b['registerBlockAttribute']('src'),_0x209f1b['descriptionFactory']['registerDescriptionCallback'](_0xecb4ab=>{if('attribute'!=_0xecb4ab['type'])return;const {data:_0x1a15e9}=_0xecb4ab;return _0x1a15e9&&'src'==_0x1a15e9['key']?_0x1a15e9['newValue']&&_0x1a15e9['oldValue']?{'type':'format','content':o(_0x28e51b,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4d4111=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d4111['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4d4111['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4d4111['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4d4111['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ed5ca=this['editor'],_0x46029d=_0x5ed5ca['locale'];_0x5ed5ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d304a=>{if('formatBlock'!=_0x4d304a['type']&&'formatInline'!=_0x4d304a['type'])return;const {data:_0x141146}=_0x4d304a;if(!_0x141146||'replaceImageSource'!=_0x141146['commandName'])return;return{'type':'format','content':o(_0x46029d,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x9e54d2{['afterInit'](){const _0x1c31c6=this['editor'];if(!_0x1c31c6['plugins']['has']('ImageStyleEditing'))return;const _0x45ce1c=_0x1c31c6['plugins']['get']('TrackChangesEditing'),_0x373d22=_0x1c31c6['plugins']['get']('ImageUtils'),_0x4664e3={};_0x45ce1c['enableCommand']('imageStyle',(_0x1346b2,_0x51c100)=>{const _0x496b11=_0x1c31c6['plugins']['get']('Users')['me'],_0x2b4994=_0x1c31c6['commands']['get']('imageStyle');let _0x627bdd=_0x373d22['getClosestSelectedImageElement'](_0x1c31c6['model']['document']['selection']),_0x598e77=_0x1c31c6['model']['createRangeOn'](_0x627bdd),_0xa784be=_0x2b4994['value'];if(_0xa784be==_0x51c100['value'])return;const _0x473428={'commandName':'imageStyle','commandParams':[_0x51c100],'formatGroupId':_0x1ea020()};_0x1c31c6['model']['change'](()=>{if(_0x45ce1c['getSuggestions']()['filter'](_0x57a856=>_0x57a856['isInContent']&&_0x496b11==_0x57a856['author']&&('formatBlock'==_0x57a856['type']||'formatInline'==_0x57a856['type'])&&('imageStylePreApply'==_0x57a856['subType']||'imageStylePostApply'==_0x57a856['subType'])&&_0x57a856['getFirstRange']()['isEqual'](_0x598e77))['forEach'](_0x476a9e=>_0x45ce1c['discardSuggestion'](_0x476a9e['head'])),_0x627bdd=_0x373d22['getClosestSelectedImageElement'](_0x1c31c6['model']['document']['selection']),_0x598e77=_0x1c31c6['model']['createRangeOn'](_0x627bdd),_0x2b4994['refresh'](),_0x1c31c6['commands']['get']('imageTypeInline')['refresh'](),_0x1c31c6['commands']['get']('imageTypeBlock')['refresh'](),_0xa784be=_0x2b4994['value'],_0xa784be!=_0x51c100['value'])return _0x373d22['isInlineImage'](_0x627bdd)&&_0x2b4994['shouldConvertImageType'](_0x51c100['value'],_0x627bdd)?(_0x1346b2({..._0x51c100,'setImageSizes':!0x1}),_0x627bdd=_0x373d22['getClosestSelectedImageElement'](_0x1c31c6['model']['document']['selection']),void _0x45ce1c['markBlockFormat'](_0x627bdd,{..._0x473428,'commandReversedParams':[{'value':_0xa784be||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x373d22['isBlockImage'](_0x627bdd)?_0x45ce1c['markBlockFormat'](_0x627bdd,_0x473428,[],'imageStylePostApply'):_0x45ce1c['markInlineFormat'](_0x598e77,_0x473428,'imageStylePostApply'));});});for(const _0x4b5c2d of _0x1c31c6['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4664e3[_0x4b5c2d['name']]=_0x4b5c2d['title']['toLowerCase']();_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1efde9])=>{_0x373d22['setImageNaturalSizeAttributes'](_0x1efde9['getContainedElement']());}),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x25253a,_0x5de751)=>{_0x45ce1c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x25253a,{'commandName':_0x5de751['commandName'],'commandParams':_0x5de751['commandReversedParams']});}),_0x45ce1c['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x22218e,_0x38b211){if(_0x5c6f2c(_0x22218e,_0x38b211))return[_0x22218e,_0x38b211];if(_0x5c6f2c(_0x38b211,_0x22218e))return[_0x38b211,_0x22218e];return null;});const _0x5dfe2d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c6f2c(_0x1838c0,_0x39ea06){const _0x4ccd07=_0x5dfe2d['findIndex'](({type:_0xd0c4ad,subType:_0x2212f8})=>_0x1838c0['type']==_0xd0c4ad&&_0x1838c0['subType']==_0x2212f8),_0x4a1ae7=_0x5dfe2d['findIndex'](({type:_0x2af2aa,subType:_0x168489})=>_0x39ea06['type']==_0x2af2aa&&_0x39ea06['subType']==_0x168489);if(_0x4ccd07<0x0||_0x4a1ae7<0x0)return!0x1;const _0xdde66e=_0x1838c0['getFirstRange'](),_0x5bf73a=_0x39ea06['getFirstRange']();if((0x0==_0x4ccd07||0x1==_0x4ccd07)&&0x2==_0x4a1ae7&&_0xdde66e['isIntersecting'](_0x5bf73a))return!0x0;if(0x2==_0x4ccd07&&0x3==_0x4a1ae7){const _0x429052=_0x45ce1c['_findSuggestions'](_0xdde66e,'insertion')['filter'](({suggestion:_0x4aaf9b,meta:_0x4f241a})=>_0x4f241a['isOwn']&&'convertInlineImageToBlock'==_0x4aaf9b['subType']);if(_0x429052['length']>0x1&&_0x5bf73a['end']['isEqual'](_0xdde66e['start']))return!0x0;if(0x1==_0x429052['length']&&(_0xdde66e['start']['isEqual'](_0x5bf73a['end'])||_0xdde66e['end']['isEqual'](_0x5bf73a['start'])))return!0x0;}if(0x3==_0x4ccd07&&0x3==_0x4a1ae7&&_0xdde66e['start']['isBefore'](_0x5bf73a['start'])){const _0x25dbf7=_0xdde66e['end']['nodeAfter'],_0xcc2e8b=_0x5bf73a['start']['nodeBefore'];return _0x373d22['isBlockImage'](_0x25dbf7)&&_0x25dbf7===_0xcc2e8b;}return!0x1;}_0x1c31c6['model']['document']['registerPostFixer'](()=>{let _0x2fde50=!0x1;const _0x4d4758=Array['from'](_0x1c31c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x144925,data:_0x16a0c2}of _0x4d4758){const {group:_0x1fdf44,type:_0x258d7c,subType:_0xce7bf5,id:_0x43db4a}=_0x45ce1c['_splitMarkerName'](_0x144925);if('suggestion'==_0x1fdf44&&_0x45ce1c['hasSuggestion'](_0x43db4a)){if('formatBlock'==_0x258d7c&&('imageStylePreApply'==_0xce7bf5||'imageStylePostApply'==_0xce7bf5)){const _0x10f4fd=_0x45ce1c['getSuggestion'](_0x43db4a);if(_0x16a0c2['newRange']){const _0x3269e4=_0x10f4fd['getFirstRange']()['getContainedElement']();if(_0x373d22['isBlockImage'](_0x3269e4))continue;_0x45ce1c['discardSuggestion'](_0x10f4fd),_0x2fde50=!0x0;}}if('insertion'==_0x258d7c&&'imageCaption'==_0xce7bf5&&!_0x16a0c2['newRange']){const _0x19d845=_0x45ce1c['getSuggestion'](_0x43db4a);_0x19d845['next']&&_0x19d845['next']['isInContent']&&(_0x45ce1c['discardSuggestion'](_0x19d845['next']),_0x2fde50=!0x0);}}}return _0x2fde50;}),this['_registerLegacyDescription'](_0x4664e3);}['_registerLegacyDescription'](_0x4fcb1e){const _0x2f625b=this['editor'],_0x3079d6=_0x2f625b['locale'];_0x2f625b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d125=>{if('formatBlock'!=_0x36d125['type']&&'formatInline'!=_0x36d125['type'])return;const {data:_0x3a64fa}=_0x36d125;if(!_0x3a64fa||'imageStyle'!=_0x3a64fa['commandName'])return;const _0x45c9df=_0x3a64fa['commandParams'][0x0]['value'];return _0x5a7463('side'===_0x45c9df?o(_0x3079d6,'FORMAT_SIDE_IMAGE'):_0x4fcb1e[_0x45c9df]||_0x45c9df);function _0x5a7463(_0x5c6249){return{'type':'format','content':o(_0x3079d6,'*Format:*\x20%0',_0x5c6249)};}});}}class ut extends _0x9e54d2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x319552){super(_0x319552),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1e270a=this['editor'],_0x1efb79=_0x1e270a['commands']['get']('importWord'),_0x1af2b7=_0x1e270a['commands']['get']('trackChanges');_0x1efb79&&(_0x1efb79['on']('execute',(_0x10355f,[,_0x1056fe])=>{this['_trackChangesValueDuringImport']=_0x1af2b7['value'],_0x1056fe['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1efb79,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1efb79,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1af2b7['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1e270a['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x337a0a,_0xe69b20){const {suggestions:_0x2768e4}=_0xe69b20,_0x238950=this['editor']['commands']['get']('trackChanges'),_0x1b08d5=_0x238950['value'];this['_trackChangesValueDuringImport']!==_0x1b08d5&&(_0x238950['execute'](),this['_trackChangesExecuted']=!0x0),_0x2768e4&&_0x2768e4['forEach'](({id:_0x52a095,type:_0x2eff51,author:_0x176890,created_at:_0x288295})=>{const _0x5c9c59={'id':_0x52a095,'type':_0x2eff51,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x176890,'createdAt':_0x288295?new Date(_0x288295):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c9c59);});}}class ft extends _0x9e54d2{['afterInit'](){const _0x3d76a7=this['editor'],_0x53a3f9=_0x3d76a7['plugins']['get']('TrackChangesEditing');if(_0x3d76a7['plugins']['has']('IndentEditing')&&(_0x53a3f9['enableCommand']('indent'),_0x53a3f9['enableCommand']('outdent')),_0x3d76a7['plugins']['has']('IndentBlock')){for(const _0x3bd9d0 of['indentBlock','outdentBlock'])_0x53a3f9['enableDefaultAttributesIntegration'](_0x3bd9d0);}const _0x59869d=_0x3d76a7['locale'];_0x53a3f9['registerBlockAttribute']('blockIndent'),_0x53a3f9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x59869d,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bd87d=this['editor'],_0x5a71af=_0x4bd87d['locale'],_0x13541c=_0x4bd87d['plugins']['get']('TrackChangesEditing');_0x13541c['descriptionFactory']['registerDescriptionCallback'](_0x3e90a7=>{if('formatBlock'!=_0x3e90a7['type'])return;const {data:_0x5a48d0}=_0x3e90a7;if(!_0x5a48d0)return;if('indentBlock'!=_0x5a48d0['commandName']&&'outdentBlock'!=_0x5a48d0['commandName'])return;const _0x4be518=_0x3e90a7['getItems']()[0x0],_0x11ff2a=_0x13541c['descriptionFactory']['getItemLabel'](_0x4be518);return'indentBlock'==_0x5a48d0['commandName']?{'type':'format','content':o(_0x5a71af,'*Indent:*\x20%0',_0x11ff2a)}:'outdentBlock'==_0x5a48d0['commandName']?{'type':'format','content':o(_0x5a71af,'*Outdent:*\x20%0',_0x11ff2a)}:void 0x0;});}}class ht extends _0x9e54d2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x9e54d2{['afterInit'](){const _0x1706d6=this['editor'];if(!_0x1706d6['plugins']['has']('LinkEditing'))return;const _0x207648=_0x1706d6['plugins']['get']('TrackChangesEditing'),_0x437dcd=_0x1706d6['commands']['get']('link');_0x207648['enableDefaultAttributesIntegration']('link'),_0x207648['enableDefaultAttributesIntegration']('unlink'),_0x207648['registerInlineAttribute']('linkHref');for(const _0x23f3cf of _0x437dcd['manualDecorators'])_0x207648['registerInlineAttribute'](_0x23f3cf['id']),_0x207648['descriptionFactory']['registerAttributeLabel'](_0x23f3cf['id'],'link\x20('+_0x23f3cf['label']['toLowerCase']()+')');_0x207648['descriptionFactory']['registerDescriptionCallback'](_0x5c7faf=>{if('attribute'!=_0x5c7faf['type'])return;const {data:_0x4a1a12}=_0x5c7faf;if(!_0x4a1a12||'linkHref'!=_0x4a1a12['key'])return;const _0x9c7001=_0x4a1a12['newValue'],_0x6559ba=_0x1706d6['locale'];return{'type':'format','content':null==_0x9c7001?o(_0x6559ba,'*Remove\x20link*'):o(_0x6559ba,'*Set\x20link:*\x20%0','\x22'+_0x9c7001+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ff0db=this['editor'],_0x568e0c=_0x3ff0db['locale'];_0x3ff0db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47a7b8=>{if('formatInline'!=_0x47a7b8['type'])return;const {data:_0x3d4c81}=_0x47a7b8;if(_0x3d4c81){if('link'==_0x3d4c81['commandName']){const _0x57008e=_0x3d4c81['commandParams'][0x0];return{'type':'format','content':o(_0x568e0c,'*Set\x20link:*\x20%0','\x22'+_0x57008e+'\x22')};}return'unlink'==_0x3d4c81['commandName']?{'type':'format','content':o(_0x568e0c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x9e54d2{['afterInit'](){const _0x2dde35=this['editor'],_0xc6040e=_0x2dde35['locale'];if(!_0x2dde35['plugins']['has']('LegacyListEditing'))return;const _0x49c776=_0x2dde35['plugins']['get']('TrackChangesEditing'),_0x23070e=_0x2dde35['plugins']['has']('LegacyTodoListEditing');function _0x27c831(_0x46b1e7){return()=>{const _0x27437f=_0x2dde35['model']['document']['selection'],_0x528fd0=_0x2dde35['commands']['get'](_0x46b1e7);if(_0x528fd0['value'])return void _0x2dde35['execute']('paragraph',{});const _0x49044e=_0x46b1e7['slice'](0x0,-0x4),_0x16655a=function(_0xb3b757,_0x90f5c5,_0x256614){let _0x4fc2e4=Array['from'](_0xb3b757)['filter'](_0x595f3f=>function(_0x23d66d,_0xb30c67){return _0xb30c67['checkChild'](_0x23d66d['parent'],'listItem')&&!_0xb30c67['isObject'](_0x23d66d);}(_0x595f3f,_0x256614));_0x4fc2e4=_0x4fc2e4['filter'](_0x2605a8=>!_0x2605a8['is']('element','listItem')||_0x2605a8['getAttribute']('listType')!=_0x90f5c5);const _0x421eeb=new Set();for(const _0x1af02f of _0x4fc2e4)_0x1af02f['is']('element','listItem')?_0x421eeb['add'](Le(_0x1af02f)):_0x421eeb['add'](_0x1af02f);return Array['from'](_0x421eeb);}(_0x27437f['getSelectedBlocks'](),_0x49044e,_0x2dde35['model']['schema']);_0x2dde35['model']['change'](()=>{for(const _0x2919cd of _0x16655a)_0x49c776['markBlockFormat'](_0x2919cd,{'commandName':_0x46b1e7,'commandParams':[{'forceValue':!_0x528fd0['value']}],'formatGroupId':'blockName'},Ee(_0x2919cd));});};}function _0x41cb69(_0x50738f){return()=>{const _0x34e85a=function(_0x32c4fd){let _0x132cfe=Array['from'](_0x32c4fd);const _0x5d258c=_0x132cfe['findIndex'](_0x593ddf=>'listItem'!=_0x593ddf['name']);return _0x5d258c>-0x1&&(_0x132cfe=_0x132cfe['slice'](0x0,_0x5d258c)),_0x132cfe;}(_0x2dde35['model']['document']['selection']['getSelectedBlocks']()),_0xb8b4e6=_0x2dde35['model']['createRange'](_0x2dde35['model']['createPositionAt'](_0x34e85a[0x0],'before'),_0x2dde35['model']['createPositionAt'](_0x34e85a[_0x34e85a['length']-0x1],'end'));_0x2dde35['model']['change'](()=>{_0x49c776['markBlockFormat'](_0xb8b4e6,{'commandName':_0x50738f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x13d39e){const _0x1048f4=new Set();for(const _0x1c62e4 of _0x13d39e){let _0x36d7b1=_0x1c62e4['nextSibling'];for(;_0x36d7b1&&_0x36d7b1['getAttribute']('listIndent')>_0x1c62e4['getAttribute']('listIndent');)_0x1048f4['add'](_0x36d7b1),_0x36d7b1=_0x36d7b1['nextSibling'];}return Array['from'](_0x1048f4);}(_0x34e85a));});};}_0x49c776['enableCommand']('numberedList',_0x27c831('numberedList')),_0x49c776['enableCommand']('bulletedList',_0x27c831('bulletedList')),_0x23070e&&_0x49c776['enableCommand']('todoList',_0x27c831('todoList')),_0x49c776['enableCommand']('indentList',_0x41cb69('indentList')),_0x49c776['enableCommand']('outdentList',_0x41cb69('outdentList')),_0x23070e&&_0x49c776['enableCommand']('checkTodoList',()=>{const _0x17d2ae=_0x2dde35['commands']['get']('checkTodoList'),_0x4704cb=Array['from'](_0x17d2ae['_selectedElements']);_0x4704cb['filter'](_0x4b7920=>_0x4b7920['getAttribute']('todoListChecked')!=_0x17d2ae['value']),_0x2dde35['model']['change'](()=>{for(const _0x5d4c8b of _0x4704cb)_0x49c776['markBlockFormat'](_0x5d4c8b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x17d2ae['value']}]});});}),_0x49c776['descriptionFactory']['registerElementLabel']('listItem',_0x17e3d4=>o(_0xc6040e,'ELEMENT_LIST_ITEM',_0x17e3d4)),_0x49c776['descriptionFactory']['registerDescriptionCallback'](_0x3eb42=>{if('formatBlock'!=_0x3eb42['type']&&'formatInline'!=_0x3eb42['type'])return;const {data:_0x4c1ace}=_0x3eb42;if(_0x4c1ace){if('numberedList'==_0x4c1ace['commandName']||'bulletedList'==_0x4c1ace['commandName']||'todoList'==_0x4c1ace['commandName'])switch(_0x4c1ace['commandName']['replace']('List','')){case'bulleted':return _0x2af814(o(_0xc6040e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2af814(o(_0xc6040e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2af814(o(_0xc6040e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4c1ace['commandName'])return{'type':'format','content':o(_0xc6040e,'*Indent:*\x20%0',o(_0xc6040e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4c1ace['commandName'])return{'type':'format','content':o(_0xc6040e,'*Outdent:*\x20%0',o(_0xc6040e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4c1ace['commandName'])return _0x4c1ace['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc6040e,'*Check\x20item*')}:{'type':'format','content':o(_0xc6040e,'*Uncheck\x20item*')};}function _0x2af814(_0x5d5b8a){return{'type':'format','content':o(_0xc6040e,'*Change\x20to:*\x20%0',_0x5d5b8a)};}});}}function Le(_0x285f3f){const _0x5f4b89=_0x285f3f['getAttribute']('listIndent');if(0x0==_0x5f4b89)return _0x285f3f;let _0x546af2=_0x285f3f;for(;_0x285f3f['previousSibling']&&_0x285f3f['previousSibling']['is']('element','listItem');){const _0x559ea7=_0x285f3f['previousSibling']['getAttribute']('listIndent');if(_0x559ea7==_0x5f4b89)_0x546af2=_0x285f3f['previousSibling'];else{if(_0x559ea7<_0x5f4b89)break;}_0x285f3f=_0x285f3f['previousSibling'];}return _0x546af2;}function Ee(_0x2b2e96){const _0x5204d3=[];if(_0x2b2e96['is']('element','listItem')&&_0x2b2e96['getAttribute']('listIndent')>0x0){let _0x54281d=_0x2b2e96['nextSibling'];for(;_0x54281d&&'listItem'==_0x54281d['name']&&_0x54281d['getAttribute']('listIndent')==_0x2b2e96['getAttribute']('listIndent');)_0x5204d3['push'](_0x54281d),_0x54281d=_0x54281d['nextSibling'];}return _0x5204d3;}class Q extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3c986b=this['editor']['config']['get']('list.properties'),_0x4af10b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3c986b['styles']&&_0x4af10b['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3c986b['reversed']&&_0x4af10b['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3c986b['startIndex']&&_0x4af10b['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4af10b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3e1a47,_0x6e334d={}){const _0x2453a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37719c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2453a1['markMultiRangeBlockFormat'](_0x37719c,{'commandName':'listStyle','commandParams':[{'type':_0x6e334d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x357780,_0x2c4f29={}){const _0x8862a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24153b=this['_getSuggestionBlocks'](_0x3cf65c=>_0x3cf65c['is']('element','listItem')&&'numbered'===_0x3cf65c['getAttribute']('listType'));if(_0x24153b['length']<0x1)return;const _0x3e3e1c=_0x24153b['map'](_0x5bff3e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bff3e,'before'),this['editor']['model']['createPositionAt'](_0x5bff3e,0x0)));this['editor']['model']['change'](()=>{_0x8862a5['markMultiRangeBlockFormat'](_0x3e3e1c,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c4f29['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x42ad50,_0x5b03c8={}){const _0x56b310=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2304aa=this['_getSuggestionBlocks'](_0x12c54a=>_0x12c54a['is']('element','listItem')&&'numbered'===_0x12c54a['getAttribute']('listType'));if(_0x2304aa['length']<0x1)return;const _0x5209b9=_0x2304aa['map'](_0x1878bf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1878bf,'before'),this['editor']['model']['createPositionAt'](_0x1878bf,0x0)));this['editor']['model']['change'](()=>{_0x56b310['markMultiRangeBlockFormat'](_0x5209b9,{'commandName':'listStart','commandParams':[{'startIndex':_0x5b03c8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5b9812){if('formatBlock'!=_0x5b9812['type']&&'formatInline'!=_0x5b9812['type'])return;const _0x306dae=this['editor']['locale'],{data:_0x1d1a7b}=_0x5b9812;if(!_0x1d1a7b)return;let _0x4f6726,_0x3c46c4;switch(_0x1d1a7b['commandName']){case'listStyle':_0x4f6726='*Change\x20to:*\x20%0',_0x3c46c4={'type':'format','content':o(_0x306dae,_0x4f6726,o(_0x306dae,this['_getTranslationKeyForListStyle'](_0x1d1a7b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4f6726=_0x1d1a7b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3c46c4={'type':'format','content':o(_0x306dae,_0x4f6726)};break;case'listStart':_0x4f6726='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3c46c4={'type':'format','content':o(_0x306dae,_0x4f6726,_0x1d1a7b['commandParams'][0x0]['startIndex'])};}return _0x3c46c4;}['_getSuggestionBlocksForListStyle'](){const _0x50ae7e=this['editor']['plugins']['get']('LegacyListUtils');let _0x6b0e71=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x6b0e71[0x0]?.['is']('element','listItem')&&_0x6b0e71['unshift'](..._0x50ae7e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x6b0e71[_0x6b0e71['length']-0x1]?.['is']('element','listItem')&&_0x6b0e71['push'](..._0x50ae7e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x6b0e71=[...new Set(_0x6b0e71)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x6b0e71=_0x6b0e71['filter'](_0x228ea4=>_0x228ea4['is']('element','listItem'))),_0x6b0e71;}['_getSuggestionBlocks'](_0x428427){const _0x2230c8=this['editor']['plugins']['get']('LegacyListUtils');let _0xa25837=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x428427)['map'](_0x58f4b4=>{const _0x559868=this['editor']['model']['createPositionAt'](_0x58f4b4,0x0);return[..._0x2230c8['getSiblingNodes'](_0x559868,'backward'),..._0x2230c8['getSiblingNodes'](_0x559868,'forward')];})['flat']();return _0xa25837=[...new Set(_0xa25837)],_0xa25837;}['_getTranslationKeyForListStyle'](_0x5dae93){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5dae93)||'default')['toUpperCase']()+'_LIST_'+_0x5dae93['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x9e54d2{['afterInit'](){const _0x1610bf=this['editor'];if(!_0x1610bf['plugins']['has']('MediaEmbedEditing'))return;const _0x3a831d=_0x1610bf['plugins']['get']('TrackChangesEditing'),_0x3cb9ad=_0x1610bf['locale'];_0x3a831d['enableCommand']('mediaEmbed'),_0x3a831d['descriptionFactory']['registerElementLabel']('media',_0x5d706c=>o(_0x3cb9ad,'ELEMENT_MEDIA',_0x5d706c)),_0x1610bf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x149a13,{writer:_0x1cf269,options:_0xf62312})=>{if(_0xf62312['showSuggestionHighlights'])return _0x1cf269['createEmptyElement']('div');},'converterPriority':'high'}),_0x1610bf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1f01e7,_0x6dbc5b,_0x36aefc)=>{_0x36aefc['options']['showSuggestionHighlights']&&_0x1f01e7['stop']();},{'priority':'high'});}}class pt extends _0x9e54d2{['afterInit'](){const _0x5f5d04=this['editor'];_0x5f5d04['plugins']['has']('MentionEditing')&&_0x5f5d04['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x9e54d2{['afterInit'](){const _0x52365f=this['editor'];if(!_0x52365f['plugins']['has']('MergeFieldsEditing'))return;const _0x4f7365=_0x52365f['plugins']['get']('TrackChangesEditing'),_0x4c7a23=_0x52365f['locale'];_0x4f7365['enableCommand']('insertMergeField'),_0x4f7365['enableCommand']('insertMergeFieldBlock'),_0x4f7365['enableCommand']('insertMergeFieldImage'),_0x4f7365['descriptionFactory']['registerElementLabel']('mergeField',_0x1e9012=>o(_0x4c7a23,'ELEMENT_MERGE_FIELD',_0x1e9012)),_0x4f7365['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1290a3=>o(_0x4c7a23,'ELEMENT_MERGE_FIELD',_0x1290a3)),_0x4f7365['descriptionFactory']['registerDescriptionCallback'](_0x4dd39a=>{if('insertion'!=_0x4dd39a['type']&&'deletion'!=_0x4dd39a['type'])return;const _0x10e571=_0x4dd39a['getContainedElement']();if(null==_0x10e571)return;const _0x3efb0e=_0x52365f['plugins']['get']('MergeFieldsEditing');let _0x480ee3;switch(_0x3efb0e['getMergeFieldType'](_0x10e571)){case null:return;case'image':{const _0x1d9a76=_0x3efb0e['unwrapAffixes'](_0x10e571['getAttribute']('src'));_0x480ee3=_0x3efb0e['getLabel'](_0x1d9a76)||_0x1d9a76;break;}default:{const _0x4fafeb=_0x10e571['getAttribute']('id');_0x480ee3=_0x3efb0e['getLabel'](_0x4fafeb)||_0x4fafeb;break;}}return'insertion'==_0x4dd39a['type']?{'type':'insertion','content':o(_0x4c7a23,'*Insert:*\x20%0','\x22'+_0x480ee3+'\x22\x20'+o(_0x4c7a23,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x4c7a23,'*Remove:*\x20%0','\x22'+_0x480ee3+'\x22\x20'+o(_0x4c7a23,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x9e54d2{['afterInit'](){const _0x5851ee=this['editor'],_0x11e452=_0x5851ee['plugins']['get']('TrackChangesEditing');_0x5851ee['plugins']['has']('MultiLevelList')&&(_0x11e452['enableDefaultAttributesIntegration']('multiLevelList'),_0x11e452['registerBlockAttribute']('listMarkerStyle'),_0x11e452['descriptionFactory']['registerDescriptionCallback'](_0x3f90c9=>this['handleDescriptions'](_0x3f90c9)));}['handleDescriptions'](_0x2f9ae6){const _0x32d328=this['editor']['locale'],{data:_0x12e2b4}=_0x2f9ae6,_0x1aeba0={'type':'format','content':''};if(_0x12e2b4&&'listMarkerStyle'==_0x12e2b4['key']){if(!_0x12e2b4['oldValue'])return{'type':'format','content':o(_0x32d328,'*Set\x20format:*\x20%0',o(_0x32d328,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x12e2b4['newValue']+')'};if(!_0x12e2b4['newValue']){let _0x3f549d=_0x2f9ae6['head'];for(;_0x3f549d;){if(_0x3f549d['data']&&'listType'==_0x3f549d['data']['key']&&_0x3f549d['data']['newValue'])return _0x1aeba0;_0x3f549d=_0x3f549d['next'];}return{'type':'format','content':o(_0x32d328,'*Remove\x20format:*\x20%0',o(_0x32d328,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x12e2b4['oldValue']+')'};}}}}class bt extends _0x9e54d2{['afterInit'](){const _0x237838=this['editor'];if(!_0x237838['plugins']['has']('PageBreakEditing'))return;_0x237838['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2b00d5=_0x237838['plugins']['get']('TrackChangesEditing'),_0x4b0182=_0x237838['locale'];_0x2b00d5['descriptionFactory']['registerElementLabel']('pageBreak',_0x535eab=>o(_0x4b0182,'ELEMENT_PAGE_BREAK',_0x535eab));}}class yt extends _0x9e54d2{['afterInit'](){const _0x17bbdc=this['editor'];if(!_0x17bbdc['plugins']['has']('Paragraph'))return;const _0x1b2cde=_0x17bbdc['locale'],_0x5a8c6b=_0x17bbdc['plugins']['get']('TrackChangesEditing');_0x5a8c6b['descriptionFactory']['registerElementLabel']('paragraph',_0x5a35ba=>o(_0x1b2cde,'ELEMENT_PARAGRAPH',_0x5a35ba)),_0x5a8c6b['enableDefaultAttributesIntegration']('paragraph'),_0x5a8c6b['enableCommand']('insertParagraph'),_0x17bbdc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x17bbdc),{'priority':'highest'}),_0x17bbdc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x16f2f6,_0x290e5f,_0x4dfde4)=>{_0x4dfde4['options']['showSuggestionHighlights']&&nr(_0x17bbdc,{'showActiveMarker':!0x1})(_0x16f2f6,_0x290e5f,_0x4dfde4);},{'priority':'highest'});const _0x1bfdf4=_0x5a8c6b['descriptionFactory'];_0x1bfdf4['registerDescriptionCallback'](_0xaaffc4=>{if('insertion'!==_0xaaffc4['type'])return;const {start:_0x1c2bdc,end:_0x4ba538}=_0xaaffc4['getFirstRange']();if(!_0x1c2bdc['isTouching'](_0x4ba538)||!_0x1c2bdc['nodeAfter'])return;const _0x354a60=_0x17bbdc['model']['schema'],_0x238bcf=_0x1c2bdc['nodeAfter'];return _0x354a60['isBlock'](_0x238bcf)&&!_0x354a60['isLimit'](_0x238bcf)&&_0x354a60['checkChild'](_0x238bcf,'$text')?{'type':'insertion','content':o(_0x1b2cde,'*Insert:*\x20%0',_0x1bfdf4['getItemLabel'](_0x238bcf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b54c4=this['editor'],_0x372d29=_0x3b54c4['locale'];_0x3b54c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x160e9e=>{if('formatBlock'!=_0x160e9e['type'])return;const {data:_0x1e15d7}=_0x160e9e;return _0x1e15d7&&'paragraph'==_0x1e15d7['commandName']?{'type':'format','content':o(_0x372d29,'*Change\x20to:*\x20%0',o(_0x372d29,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5d4cae,{showActiveMarker:_0x570a39=!0x0}={}){return(_0x24082d,_0x22d6a9,_0x5dbc7c)=>{const _0x44bace=_0x5d4cae['plugins']['get']('TrackChangesEditing'),_0x61c77c=_0x22d6a9['markerRange']['start'],_0x2c7baf=_0x22d6a9['markerRange']['end'],_0x29f601=_0x5d4cae['model']['schema'];if(!_0x61c77c['isTouching'](_0x2c7baf)||!_0x61c77c['nodeAfter'])return;const _0x3d9a1b=_0x61c77c['nodeAfter'];if(_0x29f601['isBlock'](_0x3d9a1b)&&!_0x29f601['isLimit'](_0x3d9a1b)&&_0x29f601['checkChild'](_0x3d9a1b,'$text')){if(!_0x5dbc7c['consumable']['consume'](_0x22d6a9['markerRange'],_0x24082d['name']))return;const {authorId:_0x481f31}=_0x44bace['_splitMarkerName'](_0x22d6a9['markerName']),_0x371b20=_0x5dbc7c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x481f31}),_0x3db961=_0x5dbc7c['mapper']['toViewPosition'](_0x2c7baf);_0x570a39&&_0x44bace['activeMarkers']['includes'](_0x22d6a9['markerName'])&&_0x5dbc7c['writer']['addClass']('ck-suggestion-marker--active',_0x371b20),_0x5dbc7c['writer']['insert'](_0x3db961,_0x371b20),_0x5dbc7c['mapper']['bindElementToMarker'](_0x371b20,_0x22d6a9['markerName']);}};}class jt extends _0x9e54d2{['afterInit'](){const _0x489d8f=this['editor'];_0x489d8f['commands']['get']('replaceSource')&&_0x489d8f['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x9e54d2{['afterInit'](){const _0x5c60e2=this['editor'];if(!_0x5c60e2['plugins']['has']('RemoveFormatEditing'))return;_0x5c60e2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e5bb3=this['editor'];_0x2e5bb3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38b735=>{if('formatBlock'!=_0x38b735['type']&&'formatInline'!=_0x38b735['type'])return;const {data:_0x3f3c0e}=_0x38b735;return _0x3f3c0e&&'removeFormat'==_0x3f3c0e['commandName']?{'type':'format','content':o(_0x2e5bb3['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x9e54d2{['afterInit'](){const _0x498907=this['editor'];if(!_0x498907['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x56b736=_0x498907['plugins']['get']('TrackChangesEditing');_0x56b736['enableCommand']('goToPreviousRestrictedEditingException'),_0x56b736['enableCommand']('goToNextRestrictedEditingException');const _0x321b11=_0x498907['plugins']['get']('RestrictedEditingModeEditing');_0x321b11['enableCommand']('trackChanges'),_0x321b11['enableCommand']('acceptSuggestion'),_0x321b11['enableCommand']('discardSuggestion'),_0x321b11['enableCommand']('acceptAllSuggestions'),_0x321b11['enableCommand']('discardAllSuggestions'),_0x321b11['enableCommand']('acceptSelectedSuggestions'),_0x321b11['enableCommand']('discardSelectedSuggestions');}}class It extends _0x9e54d2{static get['requires'](){return[_0x582213];}['init'](){const _0x55369e=this['editor'],_0x216ce3=_0x55369e['plugins']['get']('TrackChangesEditing');_0x216ce3['enableCommand']('shiftEnter'),_0x55369e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x55369e),{'priority':'high'}),_0x55369e['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x55369e),{'priority':'high'}),_0x55369e['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b1056,_0x1f9d24,_0x1dab6c)=>{_0x1dab6c['options']['showSuggestionHighlights']&&je(_0x55369e,{'showActiveMarker':!0x1})(_0x1b1056,_0x1f9d24,_0x1dab6c);}),_0x216ce3['descriptionFactory']['registerElementLabel']('softBreak',_0x434aca=>o(_0x55369e['locale'],'ELEMENT_LINE_BREAK',_0x434aca));}}function je(_0x30cf5e,{showActiveMarker:_0x4433ba=!0x0}={}){return(_0x4b72cb,_0x40b2ab,_0x397d14)=>{const _0xa1d38=_0x30cf5e['plugins']['get']('TrackChangesEditing');if(!_0x397d14['consumable']['test'](_0x40b2ab['markerRange'],_0x4b72cb['name']))return;const _0x184319=_0x30cf5e['model'];for(const _0x5c84cb of _0x40b2ab['markerRange']['getItems']()){if(!_0x5c84cb['is']('element','softBreak'))continue;const _0x232ecc='deletion'==_0x40b2ab['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x32b9ff}=_0xa1d38['_splitMarkerName'](_0x40b2ab['markerName']),_0x26fb21=_0x397d14['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x232ecc,'data-author-id':_0x32b9ff}),_0xa9a0b7=_0x397d14['mapper']['toViewPosition'](_0x184319['createPositionBefore'](_0x5c84cb));_0x4433ba&&_0xa1d38['activeMarkers']['includes'](_0x40b2ab['markerName'])&&_0x397d14['writer']['addClass']('ck-suggestion-marker--active',_0x26fb21),_0x397d14['writer']['insert'](_0xa9a0b7,_0x26fb21),_0x397d14['mapper']['bindElementToMarker'](_0x26fb21,_0x40b2ab['markerName']);}};}class vt extends _0x9e54d2{['afterInit'](){const _0xb1a2d5=this['editor'],_0x39a0b8=_0xb1a2d5['model'],_0x5028da=_0xb1a2d5['locale'];if(!_0xb1a2d5['plugins']['has']('StandardEditingModeEditing'))return;const _0x196fbb=_0xb1a2d5['plugins']['get']('TrackChangesEditing'),_0x245519='restrictedEditingException',_0x594f95=_0xb1a2d5['commands']['get'](_0x245519);_0x196fbb['enableCommand'](_0x245519,(_0x3f308e,_0x58db90={})=>{const _0x978250=_0x39a0b8['document']['selection'];if(_0x978250['isCollapsed'])return void _0x3f308e(_0x58db90);const _0x3f3655=void 0x0!==_0x58db90['forceValue']?_0x58db90['forceValue']:!_0x594f95['value'];_0x39a0b8['change'](()=>{const _0x5da875=Array['from'](_0x978250['getRanges']());for(const _0xca3302 of _0x5da875){const _0xa3997b=_0x3f3655?[_0xca3302]:io(_0x245519,_0xca3302,_0x39a0b8);for(const _0x5de4aa of _0xa3997b)_0x196fbb['markInlineFormat'](_0x5de4aa,{'commandName':_0x245519,'commandParams':[{'forceValue':_0x3f3655}]});}});}),_0x196fbb['descriptionFactory']['registerDescriptionCallback'](_0x13f5cb=>{if('formatBlock'!=_0x13f5cb['type']&&'formatInline'!=_0x13f5cb['type'])return;const {data:_0x4b1b17}=_0x13f5cb;return _0x4b1b17&&_0x4b1b17['commandName']==_0x245519?_0x4b1b17['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5028da,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5028da,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x9e54d2{['afterInit'](){const _0x1ff090=this['editor'];if(!_0x1ff090['plugins']['has']('Style')||!_0x1ff090['plugins']['has']('DataSchema'))return;const _0x4f4d50=_0x1ff090['plugins']['get']('TrackChangesEditing'),_0x2f224e=_0x1ff090['locale'],_0x480abd=_0x1ff090['config']['get']('style')||{},_0x33ffdf=_0x1ff090['plugins']['get']('GeneralHtmlSupport'),_0x4a73be=_0x1ff090['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1ff090['plugins']['get']('DataSchema'),_0x480abd['definitions']);_0x4f4d50['enableDefaultAttributesIntegration']('style');const _0x8026fa=new Set();for(const _0x40d4c1 of _0x4a73be['block']){const _0x41e5c6=_0x33ffdf['getGhsAttributeNameForElement'](_0x40d4c1['element']);_0x8026fa['add'](_0x41e5c6);}const _0x16774a=new Set();for(const _0x62c9e9 of _0x4a73be['inline']){const _0x2d92b5=_0x33ffdf['getGhsAttributeNameForElement'](_0x62c9e9['element']);_0x16774a['add'](_0x2d92b5);for(const _0x3538d7 of _0x62c9e9['ghsAttributes'])_0x16774a['add'](_0x3538d7);}for(const _0x59e72f of _0x8026fa)_0x4f4d50['registerBlockAttribute'](_0x59e72f),_0x4f4d50['descriptionFactory']['registerAttributeLabel'](_0x59e72f,o(_0x2f224e,'FORMAT_STYLE'));for(const _0x24dfea of _0x16774a)_0x4f4d50['registerInlineAttribute'](_0x24dfea),_0x4f4d50['descriptionFactory']['registerAttributeLabel'](_0x24dfea,o(_0x2f224e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38e563=this['editor'],_0x4fd625=_0x38e563['locale'];_0x38e563['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe078f7=>{if('formatBlock'!=_0xe078f7['type']&&'formatInline'!=_0xe078f7['type'])return;const {data:_0x3ea4d3}=_0xe078f7;return _0x3ea4d3&&'style'===_0x3ea4d3['commandName']?_0x3ea4d3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fd625,'*Set\x20format:*\x20%0',_0x3ea4d3['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4fd625,'*Remove\x20format:*\x20%0',_0x3ea4d3['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x9e54d2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x280a0a){super(_0x280a0a),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1bdf13=this['editor'],_0x5b61b9=_0x1bdf13['model']['document']['selection'];if(!_0x1bdf13['plugins']['has']('TableEditing'))return;const _0x16d4bc=_0x1bdf13['locale'],_0x1e7931=_0x1bdf13['plugins']['get']('TrackChangesEditing'),_0x35c920=_0x1bdf13['plugins']['get']('TableUtils');_0x1e7931['descriptionFactory']['registerElementLabel']('table',_0x671a82=>o(_0x16d4bc,'ELEMENT_TABLE',_0x671a82)),this['_setupColumnsRowsFixing'](),_0x1e7931['enableCommand']('insertTable'),_0x1e7931['enableCommand']('selectTableRow'),_0x1e7931['enableCommand']('selectTableColumn');for(const _0x1e3aee of['insertTableRowAbove','insertTableRowBelow']){const _0x308294=_0x1bdf13['commands']['get'](_0x1e3aee);_0x1e7931['enableCommand'](_0x1e3aee,_0x1387c7=>{_0x1bdf13['model']['change'](_0x196d7b=>{_0x1387c7();const _0x870450='above'===_0x308294['order'],_0x3680e2=_0x35c920['getSelectionAffectedTableCells'](_0x5b61b9),_0x40ee42=_0x35c920['getRowIndexes'](_0x3680e2),_0x39689c=_0x870450?_0x40ee42['first']-0x1:_0x40ee42['last']+0x1,_0x66cdf1=_0x3680e2[0x0]['findAncestor']('table'),_0x5cdd97=_0x35c920['createTableWalker'](_0x66cdf1,{'startRow':_0x39689c,'endRow':_0x39689c}),_0x369dff=Array['from'](_0x5cdd97)['map'](_0x5fe9c0=>_0x196d7b['createRangeOn'](_0x5fe9c0['cell']));_0x1e7931['markMultiRangeInsertion'](_0x369dff,'tableRow');});});}for(const _0x115936 of['insertTableColumnLeft','insertTableColumnRight']){const _0x31ab56=_0x1bdf13['commands']['get'](_0x115936);_0x1e7931['enableCommand'](_0x115936,_0x34f3b0=>{_0x1bdf13['model']['change'](_0x3ff6d3=>{_0x34f3b0();const _0x509018='left'===_0x31ab56['order'],_0x35df4a=_0x35c920['getSelectionAffectedTableCells'](_0x5b61b9),_0x117816=_0x35c920['getColumnIndexes'](_0x35df4a),_0x4526f6=_0x509018?_0x117816['first']-0x1:_0x117816['last']+0x1,_0x205bf5=_0x35df4a[0x0]['findAncestor']('table'),_0x4bf418=_0x35c920['createTableWalker'](_0x205bf5,{'startRow':0x0,'column':_0x4526f6,'includeAllSlots':!0x1}),_0x34920c=Array['from'](_0x4bf418)['map'](_0x4ae363=>_0x3ff6d3['createRangeOn'](_0x4ae363['cell']));_0x1e7931['markMultiRangeInsertion'](_0x34920c,'tableColumn');});});}for(const _0x3663ac of['removeTableRow','removeTableColumn']){const _0x3b75d5=_0x3663ac['substr'](0xb),_0x1bcb3f=_0x3b75d5['toLowerCase'](),_0x3e029c=_0x1bcb3f['substr'](0x0,0x3)+'span',_0x4af55c='table'+_0x3b75d5,_0x53a9ce='min'+_0x3b75d5,_0x41664c='max'+_0x3b75d5;_0x1e7931['enableCommand'](_0x3663ac,()=>{_0x1bdf13['model']['change'](_0x4c18a9=>{const _0x20af46=_0x35c920['getSelectionAffectedTableCells'](_0x5b61b9),_0x15ea75=_0x20af46[0x0]['findAncestor']('table');let _0x443d10;if('removeTableRow'==_0x3663ac){const _0xf0e9a7=_0x35c920['getRowIndexes'](_0x20af46);_0x443d10={'startRow':_0xf0e9a7['first'],'endRow':_0xf0e9a7['last'],'includeAllSlots':!0x0};}else{const _0x463614=_0x35c920['getColumnIndexes'](_0x20af46);_0x443d10={'startColumn':_0x463614['first'],'endColumn':_0x463614['last'],'includeAllSlots':!0x0};}const _0x5ae696=_0x35c920['createTableWalker'](_0x15ea75,_0x443d10),_0x486fdb=Array['from'](_0x5ae696)['map'](({cell:_0xace090})=>_0xace090),_0x1c0db7=Ne(_0x486fdb['filter'](_0x199f26=>_0x199f26['hasAttribute'](_0x3e029c))),_0x1f64df=Ne(_0x486fdb['filter'](_0x3ffdfb=>!_0x3ffdfb['hasAttribute'](_0x3e029c)))['map'](_0x39bed3=>_0x4c18a9['createRangeOn'](_0x39bed3)),_0x3c509e=_0x1e7931['markMultiRangeDeletion'](_0x1f64df,_0x4af55c);if(_0x3c509e&&('tableRow'==_0x3c509e['subType']||'tableColumn'==_0x3c509e['subType'])){const _0x3eece9=this['_getSuggestionCoords'](_0x3c509e);for(const _0xb81aa2 of _0x1c0db7){const _0x46c981=_0x4c18a9['createRangeOn'](_0xb81aa2),_0x20703a=_0x35c920['getCellLocation'](_0xb81aa2),_0x19dbbd=_0xb81aa2['getAttribute'](_0x3e029c)-0x1,_0x5a2516=_0x3eece9[_0x53a9ce],_0x4b5883=_0x3eece9[_0x41664c];_0x5a2516<=_0x20703a[_0x1bcb3f]&&_0x20703a[_0x1bcb3f]+_0x19dbbd<=_0x4b5883&&_0x3c509e['addRange'](_0x46c981);}}});});}function _0x30bf73(_0x413877){const _0x3a6627=Array['from'](_0x5b61b9['getRanges']())['map'](_0x30a966=>_0x13f7d0['fromRange'](_0x30a966));_0x1bdf13['model']['change'](_0xddbe7b=>{const _0x2c59e1=_0xddbe7b['batch'];_0x413877=_0x413877['filter'](_0xf48b0f=>'$graveyard'!=_0xf48b0f['root']['rootName']),_0xddbe7b['setSelection'](_0x413877),_0x1bdf13['commands']['get']('removeTableRow')['refresh'](),_0x1bdf13['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1bdf13['model']['enqueueChange'](()=>{_0x1bdf13['model']['enqueueChange'](_0x2c59e1,_0x1815b5=>{const _0x4e7801=_0x3a6627['filter'](_0x4c10d5=>'$graveyard'!=_0x4c10d5['root']['rootName']);_0x4e7801['length']>0x0&&_0x1815b5['setSelection'](_0x4e7801);for(const _0x5d4b95 of _0x3a6627)_0x5d4b95['detach']();});});});}function _0x1d2123(_0xed551a){_0x1bdf13['model']['change'](_0x2ee479=>{const _0x2660fb=Array['from'](_0x5b61b9['getRanges']())['map'](_0x506501=>_0x13f7d0['fromRange'](_0x506501)),_0x351428=[];for(const _0x6724f1 of _0xed551a)for(const _0x23ca72 of _0x6724f1['getItems']({'shallow':!0x0}))_0x351428['push'](_0x23ca72);for(const _0x5d7ffc of _0x351428)'$graveyard'!=_0x5d7ffc['root']['rootName']&&(_0x2ee479['setSelection'](_0x2ee479['createPositionAt'](_0x5d7ffc,0x0)),_0x1bdf13['commands']['get']('removeTableColumn')['refresh'](),_0x1bdf13['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1f725c=_0x2660fb['filter'](_0x3a8dd3=>'$graveyard'!=_0x3a8dd3['root']['rootName']);_0x1f725c['length']>0x0&&_0x2ee479['setSelection'](_0x1f725c);for(const _0x3c4cc9 of _0x2660fb)_0x3c4cc9['detach']();});}function _0x4a04e5(_0x3f8aef,_0x416bb0){return _0x416bb0['every'](_0x538603=>_0x3f8aef['some'](_0x2158e2=>_0x2158e2['end']['isEqual'](_0x538603['start'])||_0x538603['end']['isEqual'](_0x2158e2['start'])));}function _0xe57eaf(_0x433096,_0xbb0a90){return!_0x433096['some'](_0x2d3c3d=>_0xbb0a90['some'](_0x2eec3d=>_0x2d3c3d['isIntersecting'](_0x2eec3d)))&&_0x433096['some'](_0x5c41a4=>_0xbb0a90['some'](_0x5516a2=>_0x5c41a4['end']['isTouching'](_0x5516a2['start'])));}_0x1bdf13['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x52ac5b,_0x16e5ab,_0x41c9cd)=>{if(!_0x41c9cd['options']['showSuggestionHighlights'])return;const _0x167bb2=_0x16e5ab['item'];if(!_0x167bb2)return;const _0x5085b0=_0x41c9cd['mapper']['toViewElement'](_0x167bb2);function _0x141f20(_0x2e889e){return Array['isArray'](_0x2e889e)?_0x2e889e:[_0x2e889e];}_0x5085b0&&'tableCell'===_0x167bb2['name']&&_0x44ee02(_0x5085b0,_0x41c9cd['writer'],(_0x525d64,_0x2b87f7,_0x5619b3)=>_0x5619b3['addClass'](_0x141f20(_0x2b87f7['classes']),_0x525d64),(_0x2ce00e,_0x43a4cb,_0x2c2687)=>_0x2c2687['removeClass'](_0x141f20(_0x43a4cb['classes']),_0x2ce00e));},{'priority':'highest'}),_0x1e7931['descriptionFactory']['registerDescriptionCallback'](_0xed4843=>{if('insertion'!=_0xed4843['type']&&'deletion'!=_0xed4843['type'])return;const _0x20f6ef=_0xed4843['getContainedElement']();if(null!=_0x20f6ef&&_0x20f6ef['is']('element','table')){if('insertion'==_0xed4843['type']){const _0x3a5938=_0xed4843['getItems']()['filter'](_0x2ffe17=>_0x2ffe17['is']('$textProxy'))['map'](_0x294825=>_0x294825['data']);if(_0x3a5938['length'])return{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3a5938['join']('\x20')+'\x22'))};}if('deletion'==_0xed4843['type']){const _0x2ba29a=_0xed4843['getItems']()['filter'](_0x4639a5=>_0x4639a5['is']('$textProxy'))['map'](_0x59547d=>_0x59547d['data']);if(_0x2ba29a['length'])return{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2ba29a['join']('\x20')+'\x22'))};}}}),_0x1e7931['descriptionFactory']['registerDescriptionCallback'](_0x5e2233=>{if('tableRow'==_0x5e2233['subType']){const _0x5473a8=_0x5e2233['getItems']()['filter'](_0xa0ba=>_0xa0ba['is']('$textProxy'))['map'](_0x43fac2=>_0x43fac2['data']),_0x4de88c=this['_getSuggestionCoords'](_0x5e2233),_0x1fb0c1=_0x4de88c['maxRow']-_0x4de88c['minRow']+0x1;if('insertion'==_0x5e2233['type'])return _0x5473a8['length']?{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fb0c1,'\x22'+_0x5473a8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_ROW',_0x1fb0c1))};if('deletion'==_0x5e2233['type'])return _0x5473a8['length']?{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1fb0c1,'\x22'+_0x5473a8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_ROW',_0x1fb0c1))};}if('tableColumn'==_0x5e2233['subType']){const _0x2a14fc=_0x5e2233['getItems']()['filter'](_0x18344f=>_0x18344f['is']('$textProxy'))['map'](_0x5d792b=>_0x5d792b['data']),_0x2a8fef=this['_getSuggestionCoords'](_0x5e2233),_0x497c2b=_0x2a8fef['maxColumn']-_0x2a8fef['minColumn']+0x1;if('insertion'==_0x5e2233['type'])return _0x2a14fc['length']?{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x497c2b,'\x22'+_0x2a14fc['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x16d4bc,'*Insert:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_COLUMN',_0x497c2b))};if('deletion'==_0x5e2233['type'])return _0x2a14fc['length']?{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x497c2b,'\x22'+_0x2a14fc['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x16d4bc,'*Remove:*\x20%0',o(_0x16d4bc,'ELEMENT_TABLE_COLUMN',_0x497c2b))};}}),_0x1e7931['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x30bf73),_0x1e7931['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x30bf73),_0x1e7931['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d2123),_0x1e7931['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d2123),_0x1e7931['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4a04e5),_0x1e7931['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4a04e5),_0x1e7931['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xe57eaf),_0x1e7931['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xe57eaf);}['_acceptFormatSuggestionCallbackFactory'](){const _0x32da39=this['editor'],_0x3bb85a=_0x32da39['model']['document']['selection'];return(_0x55d0bf,_0x5cffd9)=>{_0x32da39['model']['change'](_0x1943ae=>{const {commandName:_0x14cd58,commandParams:_0xe9657e}=_0x5cffd9;let _0x1bc0b9=_0x55d0bf[0x0]['end']['nodeBefore'];_0xe9657e&&_0xe9657e[0x0]&&!0x1===_0xe9657e[0x0]['forceValue']&&(_0x1bc0b9=_0x55d0bf[0x0]['start']['nodeAfter']);const _0x5d3233=_0x1943ae['createRangeIn'](_0x1bc0b9);if('$graveyard'==_0x5d3233['root']['rootName'])return;const _0x37c5ca=Array['from'](_0x3bb85a['getRanges']())['map'](_0x461a62=>_0x13f7d0['fromRange'](_0x461a62));_0x1943ae['setSelection'](_0x5d3233),_0x32da39['commands']['get'](_0x14cd58)['refresh'](),_0xe9657e['push']({'forceDefaultExecution':!0x0}),_0x32da39['execute'](_0x14cd58,..._0xe9657e);const _0x31ad80=_0x37c5ca['filter'](_0x265e79=>'$graveyard'!=_0x265e79['root']['rootName']);_0x31ad80['length']>0x0&&_0x1943ae['setSelection'](_0x31ad80);for(const _0x487cac of _0x37c5ca)_0x487cac['detach']();});};}['_getCoordsForCells'](_0x44b806){const _0x5121c1=this['editor']['plugins']['get']('TableUtils');let _0x4ad76d=Number['MAX_SAFE_INTEGER'],_0x21b32b=Number['MIN_SAFE_INTEGER'],_0x33f8bc=Number['MAX_SAFE_INTEGER'],_0x351ced=Number['MIN_SAFE_INTEGER'];for(const _0x4997ee of _0x44b806){if('$graveyard'==_0x4997ee['root']['rootName'])continue;const {row:_0x4cbced,column:_0x6a3029}=_0x5121c1['getCellLocation'](_0x4997ee),_0x391daf=_0x4997ee['hasAttribute']('rowspan')?_0x4997ee['getAttribute']('rowspan')-0x1:0x0,_0x262d9d=_0x4997ee['hasAttribute']('colspan')?_0x4997ee['getAttribute']('colspan')-0x1:0x0;_0x4ad76d=_0x4cbced<_0x4ad76d?_0x4cbced:_0x4ad76d,_0x21b32b=_0x4cbced+_0x391daf>_0x21b32b?_0x4cbced+_0x391daf:_0x21b32b,_0x33f8bc=_0x6a3029<_0x33f8bc?_0x6a3029:_0x33f8bc,_0x351ced=_0x6a3029+_0x262d9d>_0x351ced?_0x6a3029+_0x262d9d:_0x351ced;}return{'minRow':_0x4ad76d,'maxRow':_0x21b32b,'minColumn':_0x33f8bc,'maxColumn':_0x351ced};}['_setupColumnsRowsFixing'](){const _0x312cdc=this['editor'],_0x172fb9=_0x312cdc['plugins']['get']('TrackChangesEditing'),_0x1226f5=_0x312cdc['plugins']['get']('TableUtils');_0x312cdc['model']['document']['on']('change:data',()=>{const _0x1d6881=Array['from'](_0x312cdc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x25950f,data:_0x2211cd}of _0x1d6881){const {group:_0x538ae8,id:_0x2b9cc6,subType:_0x35b4b0}=_0x172fb9['_splitMarkerName'](_0x25950f);if('suggestion'!=_0x538ae8)continue;if(null!=_0x2211cd['oldRange'])continue;const _0x200df5=_0x172fb9['getSuggestion'](_0x2b9cc6);this['_tablePostFixingSubtypes']['includes'](_0x35b4b0)&&this['_tableSuggestions']['add'](_0x200df5);}},{'priority':'low'});const _0x36444e=(_0x46d522,_0x519ed2)=>{let _0x1c5065=!0x1;const _0x4d2f89=_0x519ed2['createRangeOn'](_0x46d522),_0x5a3d50=_0x46d522['findAncestor']('table'),_0x2e0a8a=_0x1226f5['getCellLocation'](_0x46d522);for(const _0x31d5b9 of this['_tableSuggestions']){const _0x7b57df=_0x31d5b9['subType'],_0x25f316=_0x7b57df['startsWith']('tablePaste'),_0xa5537a=_0x7b57df['substr'](_0x25f316?0xa:0x5),_0x336095=_0xa5537a['toLowerCase'](),_0x559d3d=_0x336095['substr'](0x0,0x3)+'span',_0x314aa2='min'+_0xa5537a,_0x5cca29='max'+_0xa5537a;if(!_0x31d5b9['isInContent'])continue;if(_0x5a3d50!=_0x31d5b9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x31d5b9['isIntersectingWithRange'](_0x4d2f89))continue;const _0x3b2cd2=_0x46d522['hasAttribute'](_0x559d3d)?_0x46d522['getAttribute'](_0x559d3d)-0x1:0x0,_0x225857=this['_getSuggestionCoords'](_0x31d5b9),_0x116a8a=_0x225857[_0x314aa2],_0x4cf701=_0x225857[_0x5cca29];_0x116a8a<=_0x2e0a8a[_0x336095]&&_0x2e0a8a[_0x336095]+_0x3b2cd2<=_0x4cf701&&(_0x31d5b9['addRange'](_0x4d2f89),_0x1c5065=!0x0);}return _0x1c5065;};_0x312cdc['model']['document']['registerPostFixer'](_0x2b1bb2=>{let _0x14a343=!0x1;for(const _0x3b537f of _0x312cdc['model']['document']['differ']['getChanges']())if('insert'==_0x3b537f['type']){if('tableRow'==_0x3b537f['name']){for(const _0x3546dc of _0x3b537f['position']['nodeAfter']['getChildren']())_0x14a343=_0x14a343||_0x36444e(_0x3546dc,_0x2b1bb2);}else'tableCell'==_0x3b537f['name']&&(_0x14a343=_0x14a343||_0x36444e(_0x3b537f['position']['nodeAfter'],_0x2b1bb2));}return _0x14a343;});}['_getSuggestionCoords'](_0xa03a10){return this['_getCoordsForCells'](_0xa03a10['getRanges']()['map'](_0x325a=>_0x325a['start']['nodeAfter']));}}function Ne(_0x1d134e){return Array['from'](new Set(_0x1d134e)['values']());}class Nt extends _0x9e54d2{static get['requires'](){return[Ct];}['afterInit'](){const _0x55443a=this['editor'],_0x3b6ced=_0x55443a['model']['document']['selection'],_0x462f2f=_0x55443a['locale'];if(!_0x55443a['plugins']['has']('TableEditing'))return;const _0x21cbf2=_0x55443a['plugins']['get']('TrackChangesEditing'),_0x4b0371=_0x55443a['plugins']['get']('TableUtils'),_0x5756bc=_0x55443a['plugins']['get'](Ct);_0x5756bc['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x21cbf2['enableCommand']('mergeTableCells',()=>{const _0x47f737=_0x4b0371['getSelectionAffectedTableCells'](_0x55443a['model']['document']['selection']);_0x55443a['model']['change'](()=>{_0x21cbf2['markMultiRangeBlockFormat'](_0x47f737,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x55443a['commands']['get']('mergeTableCells')['on']('execute',(_0x3554bf,_0x123229)=>{_0x55443a['commands']['get']('trackChanges')['value']&&(_0x123229['length']>0x0&&_0x123229[_0x123229['length']-0x1]&&_0x123229[_0x123229['length']-0x1]['forceDefaultExecution']||_0x21cbf2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3554bf['stop']());},{'priority':'highest'});for(const _0x238eb8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x501cc1=_0x55443a['commands']['get'](_0x238eb8);_0x21cbf2['enableCommand'](_0x238eb8,()=>{const _0x268cba=_0x55443a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4bf74e=>_0x4bf74e['is']('element','tableCell')),_0x23f80b=_0x501cc1['value'];_0x55443a['model']['change'](()=>{_0x21cbf2['markMultiRangeBlockFormat']([_0x268cba,_0x23f80b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x279dd8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x238e98=_0x55443a['commands']['get'](_0x279dd8);_0x21cbf2['enableCommand'](_0x279dd8,()=>{const _0x325f19=_0x4b0371['getSelectionAffectedTableCells'](_0x55443a['model']['document']['selection'])[0x0],_0x503346=_0x325f19['findAncestor']('table'),{column:_0x5736f1,row:_0x9f316b}=_0x4b0371['getCellLocation'](_0x325f19);let _0xec8466=[];if('horizontally'==_0x238e98['direction']){const _0x211f87=_0x4b0371['createTableWalker'](_0x503346,{'startRow':_0x9f316b,'endRow':_0x9f316b,'includeAllSlots':!0x0});_0xec8466=Array['from'](_0x211f87)['map'](_0x2c6ed1=>_0x2c6ed1['cell']);}else{const _0x1735be=_0x4b0371['createTableWalker'](_0x503346,{'column':_0x5736f1,'includeAllSlots':!0x0});_0xec8466=Array['from'](_0x1735be)['map'](_0x4afd12=>_0x4afd12['cell']);}_0x55443a['model']['change'](_0x208dc6=>{_0x21cbf2['markBlockFormat'](_0x208dc6['createRangeOn'](_0x325f19),{'commandName':_0x279dd8,'commandParams':[]},_0xec8466,_0x279dd8);});});}_0x21cbf2['descriptionFactory']['registerDescriptionCallback'](_0x3e6d0f=>{if('formatBlock'!=_0x3e6d0f['type']&&'formatInline'!=_0x3e6d0f['type'])return;const {data:_0x4d233d}=_0x3e6d0f;return _0x4d233d&&'mergeTableCells'==_0x4d233d['commandName']?{'type':'format','content':o(_0x462f2f,'*Merge\x20cells*')}:void 0x0;}),_0x21cbf2['descriptionFactory']['registerDescriptionCallback'](_0x548d4a=>{if('formatBlock'!=_0x548d4a['type']&&'formatInline'!=_0x548d4a['type'])return;const {data:_0x126150}=_0x548d4a;return _0x126150?'splitTableCellVertically'==_0x126150['commandName']?{'type':'format','content':o(_0x462f2f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x126150['commandName']?{'type':'format','content':o(_0x462f2f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1eb67f=_0x5756bc['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ed6b3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x21cbf2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ed6b3,'accept',_0x1eb67f);for(const _0x35e2ea of['splitTableCellVertically','splitTableCellHorizontally'])_0x21cbf2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x35e2ea,'accept',_0x1eb67f);_0x21cbf2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xf1062=>{_0x55443a['model']['change'](_0x51415b=>{const _0x5466e7=Array['from'](_0x3b6ced['getRanges']())['map'](_0x4121bc=>_0x13f7d0['fromRange'](_0x4121bc));_0x51415b['setSelection'](_0xf1062),_0x55443a['commands']['get']('mergeTableCells')['refresh'](),_0x55443a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x412ed7=_0x5466e7['filter'](_0xd2c1e1=>'$graveyard'!=_0xd2c1e1['root']['rootName']);_0x412ed7['length']>0x0&&_0x51415b['setSelection'](_0x412ed7);for(const _0x18468e of _0x5466e7)_0x18468e['detach']();});});for(const _0x2a30c8 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2de268=_0x55443a['commands']['get'](_0x2a30c8);_0x2de268['on']('set:isEnabled',(_0x124446,_0x1a3084,_0x4c2653)=>{if(_0x4c2653){const _0x46fc13=_0x55443a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2751e0=>_0x2751e0['is']('element','tableCell'));this['_areMergableCells'](_0x2de268['value'],_0x46fc13)||(_0x124446['return']=!0x1,_0x124446['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e27a3=this['editor']['commands']['get']('mergeTableCells'),_0x3b56be=this['editor']['plugins']['get']('TableUtils');if(!_0x4e27a3['isEnabled'])return!0x1;const _0x19de21=_0x3b56be['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x21a79b of _0x19de21)for(const _0x29e868 of _0x19de21)if(_0x21a79b!=_0x29e868&&!this['_areMergableCells'](_0x21a79b,_0x29e868))return!0x1;return!0x0;}['_areMergableCells'](_0x13f2b5,_0x48c283){const _0x53aeb4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x250b26=this['editor']['model']['createRangeOn'](_0x13f2b5),_0x12ee5a=this['editor']['model']['createRangeOn'](_0x48c283),_0x63ff53=new Set(),_0x109253=new Set();for(const _0x172dde of _0x53aeb4['getSuggestions']())if(('insertion'==_0x172dde['type']||'deletion'==_0x172dde['type']||'mergeTableCells'==_0x172dde['subType'])&&_0x172dde['isInContent']){for(const _0x53d472 of _0x172dde['getRanges']())_0x53d472['containsRange'](_0x250b26,!0x0)&&_0x63ff53['add'](_0x172dde['type']+':'+_0x172dde['author']['id']),_0x53d472['containsRange'](_0x12ee5a,!0x0)&&_0x109253['add'](_0x172dde['type']+':'+_0x172dde['author']['id']);}if(_0x63ff53['size']!=_0x109253['size'])return!0x1;for(const _0x29b80a of _0x63ff53)if(!_0x109253['has'](_0x29b80a))return!0x1;return!0x0;}}class Dt extends _0x9e54d2{static get['requires'](){return[Ct];}['afterInit'](){const _0xdb1256=this['editor'];if(!_0xdb1256['plugins']['has']('TableEditing'))return;const _0x2d2872=_0xdb1256['locale'],_0x1c7668=_0xdb1256['plugins']['get']('TrackChangesEditing');_0x1c7668['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1c7668['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1c7668['registerBlockAttribute']('headingRows'),_0x1c7668['registerBlockAttribute']('headingColumns'),_0x1c7668['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2d2872,'FORMAT_HEADER_ROW')),_0x1c7668['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2d2872,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2cd3cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xda1e79=this['editor']['plugins']['get']('TableUtils'),_0x39fce5=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x240994({showActiveMarker:_0x510173=!0x0,setDataAttribute:_0x2533c5=!0x0}={}){return(_0x25580b,_0x1db060,_0x213bd1)=>{const {type:_0x215510,id:_0x118413}=_0x2cd3cb['_splitMarkerName'](_0x1db060['markerName']),_0x1845d4=_0x2cd3cb['getSuggestion'](_0x118413),_0x39dcec=_0x1845d4['data'];if('formatBlock'!=_0x1845d4['type']||!_0x39dcec||'setTableColumnHeader'!=_0x39dcec['commandName'])return;if(_0x1db060['item'])return void _0x25580b['stop']();if(!_0x213bd1['consumable']['consume'](_0x1db060['markerRange'],_0x25580b['name']))return;const _0x23b1db=_0x1db060['markerRange']['start']['nodeAfter'],_0x57e123=_0x1db060['markerRange']['end']['nodeBefore'],_0x23a2b1=_0x23b1db['parent']['parent'],{column:_0x26c920}=_0xda1e79['getCellLocation'](_0x23b1db),{column:_0x1abced}=_0xda1e79['getCellLocation'](_0x57e123);for(let _0x33aaf5=_0x26c920;_0x33aaf5<=_0x1abced;_0x33aaf5++){const _0x2ebbf7=_0xda1e79['createTableWalker'](_0x23a2b1,{'column':_0x33aaf5,'includeAllSlots':!0x1});for(const _0x341ebd of _0x2ebbf7){const _0x29e5e5=_0x341ebd['cell'],_0x4d2cbc=_0x213bd1['mapper']['toViewElement'](_0x29e5e5);_0x213bd1['writer']['addClass']('ck-suggestion-marker-'+_0x215510,_0x4d2cbc),_0x2533c5&&_0x213bd1['writer']['setAttribute']('data-suggestion',_0x118413,_0x4d2cbc),_0x213bd1['mapper']['bindElementToMarker'](_0x4d2cbc,_0x1db060['markerName']),_0x510173&&(_0x2cd3cb['activeMarkers']['includes'](_0x1db060['markerName'])?_0x213bd1['writer']['addClass']('ck-suggestion-marker--active',_0x4d2cbc):_0x213bd1['writer']['removeClass']('ck-suggestion-marker--active',_0x4d2cbc));}}};}_0x2cd3cb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x39fce5),_0x2cd3cb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x39fce5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x240994(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x102fe2,_0x611c6f,_0x336c43)=>{_0x336c43['options']['showSuggestionHighlights']&&_0x240994({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x102fe2,_0x611c6f,_0x336c43);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2db309,_0x2cddbd,_0x188719)=>{const {type:_0x3d5d1f,id:_0x5b0675}=_0x2cd3cb['_splitMarkerName'](_0x2cddbd['markerName']),_0x2a42ab=_0x2cd3cb['getSuggestion'](_0x5b0675),_0xb0399b=_0x2a42ab['data'];if('formatBlock'!=_0x2a42ab['type']||!_0xb0399b||'setTableColumnHeader'!=_0xb0399b['commandName'])return;const _0xaa116a=_0x188719['mapper']['markerNameToElements'](_0x2cddbd['markerName']);if(_0xaa116a){for(const _0x3db7c2 of _0xaa116a)_0x188719['writer']['removeClass']('ck-suggestion-marker-'+_0x3d5d1f,_0x3db7c2),_0x188719['writer']['removeClass']('ck-suggestion-marker--active',_0x3db7c2),_0x188719['writer']['removeAttribute']('data-suggestion',_0x3db7c2),_0x188719['mapper']['unbindElementFromMarkerName'](_0x3db7c2,_0x2cddbd['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fa9d1=this['editor'],_0xc443c3=_0x2fa9d1['locale'];function _0x275746(_0x10f3d6){return{'type':'format','content':o(_0xc443c3,'*Format:*\x20%0',_0x10f3d6)};}_0x2fa9d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe9fe87=>{if('formatBlock'!=_0xe9fe87['type'])return;const {data:_0x197b1a}=_0xe9fe87;if(_0x197b1a){if('setTableRowHeader'==_0x197b1a['commandName']){const _0x356250=_0x197b1a['commandParams'][0x0]['forceValue'];return _0x275746(o(_0xc443c3,_0x356250?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x197b1a['commandName']){const _0x16c2ae=_0x197b1a['commandParams'][0x0]['forceValue'];return _0x275746(o(_0xc443c3,_0x16c2ae?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x1566cd=>[_0x1566cd,null]));class Mt extends _0x9e54d2{static get['requires'](){return[Ct];}['afterInit'](){const _0x2ea61a=this['editor'];if(!_0x2ea61a['plugins']['has']('TableClipboard'))return;const _0x331651=_0x2ea61a['plugins']['get']('TrackChangesEditing'),_0x39bcf8=_0x2ea61a['plugins']['get']('TableUtils'),_0x3cdbcd=_0x2ea61a['plugins']['get'](Ct),_0x20afc1=_0x2ea61a['plugins']['get']('TableClipboard');_0x3cdbcd['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2ea61a['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2ea61a['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x93ebff=null;_0x2ea61a['model']['on']('insertContent',(_0x287f15,_0x5023d1)=>{const [_0x17250a,_0x2e0621]=_0x5023d1,_0x5a413d=_0x5023d1[_0x5023d1['length']-0x1];_0x5a413d&&_0x5a413d['forceDefaultExecution']||_0x331651['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xe5ebe6,_0x1a2f0d,_0x26a343,_0x5d9d02,_0xde9773){if(_0x1a2f0d&&!_0x1a2f0d['is']('documentSelection'))return!0x1;const _0x3346c6=_0xde9773['getTableIfOnlyTableInContent'](_0xe5ebe6,_0x26a343);if(!_0x3346c6||!Ue(_0x3346c6,void 0x0,_0x5d9d02))return!0x1;const _0x5bdc36=_0x5d9d02['getSelectionAffectedTableCells'](_0x26a343['document']['selection']);if(!_0x5bdc36['length'])return!0x1;const _0x420523=_0x5bdc36[0x0]['findAncestor']('table'),_0xd33876=_0x5d9d02['getRowIndexes'](_0x5bdc36),_0xf566de=_0x5d9d02['getColumnIndexes'](_0x5bdc36),_0x5b0b32={'startRow':_0xd33876['first'],'endRow':_0xd33876['last'],'startColumn':_0xf566de['first'],'endColumn':_0xf566de['last']};return 0x1==_0x5bdc36['length']&&(_0x5b0b32['endRow']+=_0x5d9d02['getRows'](_0x3346c6)-0x1,_0x5b0b32['endColumn']+=_0x5d9d02['getColumns'](_0x3346c6)-0x1),Ue(_0x420523,_0x5b0b32,_0x5d9d02);}(_0x17250a,_0x2e0621,_0x2ea61a['model'],_0x39bcf8,_0x20afc1)&&(_0x287f15['stop'](),_0x93ebff={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2ea61a['model']['change'](()=>{_0x2ea61a['model']['insertContent'](_0x5023d1[0x0],_0x5023d1[0x1],_0x5023d1[0x2],{'forceDefaultExecution':!0x0});const _0xf17f51=_0x1ea020(),{rowInsertionRanges:_0x4081fb,columnInsertionRanges:_0x3eb955,insertionRanges:_0x30a1e8,deletionRanges:_0x20f27e,cells:_0x1bbf28}=_0x93ebff;_0x4081fb['length']&&_0x331651['markMultiRangeInsertion'](_0x4081fb,'tablePasteRow',{'tablePasteChainId':_0xf17f51}),_0x3eb955['length']&&_0x331651['markMultiRangeInsertion'](_0x3eb955,'tablePasteColumn',{'tablePasteChainId':_0xf17f51}),_0x30a1e8['length']&&(_0x331651['markMultiRangeInsertion'](_0x30a1e8,'tablePaste',{'tablePasteChainId':_0xf17f51,'skipNestingCheck':!0x0}),_0x30a1e8['forEach'](_0x35a5c2=>_0x35a5c2['detach']?.())),_0x20f27e['length']&&(_0x331651['markMultiRangeDeletion'](_0x20f27e,'tablePaste',{'tablePasteChainId':_0xf17f51,'skipNestingCheck':!0x0}),_0x20f27e['forEach'](_0x336346=>_0x336346['detach']?.()));const _0x1d3cf2=_0x331651['markMultiRangeBlockFormat'](_0x1bbf28['map'](({element:_0x37e817})=>_0x37e817),{'formatGroupId':_0x1ea020()},[],'tablePasteCell',{'tablePasteChainId':_0xf17f51});if(_0x1d3cf2){const _0x486596=_0x1d3cf2['getMarkers'](),_0x5b54a9=[];for(const {element:_0x1448ab,attributes:_0x3638e6}of _0x1bbf28){if(!_0x3638e6)continue;const _0x681f76=_0x2ea61a['model']['createRangeOn'](_0x1448ab),_0x3caecf=_0x486596['find'](_0x1d6c0d=>_0x1d6c0d['getRange']()['isEqual'](_0x681f76));_0x3caecf&&_0x5b54a9['push']([_0x3caecf['name'],_0x3638e6]);}_0x5b54a9['length']&&_0x1d3cf2['setAttribute']('markerAttributes',Object['fromEntries'](_0x5b54a9));}_0x93ebff=null;}));},{'priority':_0xc98a7a['high']+0xa}),_0x2ea61a['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3b1957,_0x4d9196)=>{const [_0x132fb5,_0x34d1bc,,_0x341d88]=_0x4d9196;if(!_0x93ebff)return;_0x3b1957['stop']();const _0x4df162=_0x132fb5['cell'],_0x4a257b=_0x34d1bc,_0x498c75=Oe(_0x4df162),_0x59374f=Oe(_0x4a257b);_0x3b1957['return']=_0x4df162;let _0x470ab2=null,_0x4400e7=null;if(_0x59374f||_0x498c75){if(_0x498c75&&!_0x59374f){_0x341d88['remove'](_0x4df162['getChild'](0x0));for(const _0x3c7340 of Array['from'](_0x4a257b['getChildren']()))_0x341d88['insert'](_0x3c7340,_0x4df162,'end');const _0x2beea9=_0x93ebff['rowInsertionIndexes']['includes'](_0x132fb5['row']),_0x31ad5d=_0x93ebff['columnInsertionIndexes']['includes'](_0x132fb5['column']);_0x2beea9||_0x31ad5d||(_0x470ab2=_0x13f7d0['fromRange'](_0x341d88['createRangeIn'](_0x4df162)));}else _0x59374f&&!_0x498c75&&(_0x4400e7=_0x341d88['createRangeIn'](_0x4df162));}else{const _0x23144d=_0x341d88['createElement']('tableCellSuggestion'),_0x49f1b4=_0x341d88['createElement']('tableCellSuggestion');_0x341d88['wrap'](_0x341d88['createRangeIn'](_0x4df162),_0x49f1b4),_0x341d88['insert'](_0x23144d,_0x4df162,0x0);for(const _0x5dfe8f of Array['from'](_0x4a257b['getChildren']()))_0x341d88['insert'](_0x5dfe8f,_0x23144d,'end');_0x470ab2=_0x13f7d0['fromRange'](_0x341d88['createRangeOn'](_0x23144d)),_0x4400e7=_0x13f7d0['fromRange'](_0x341d88['createRangeOn'](_0x49f1b4));}const _0x1529f1=Array['from'](_0x4a257b['getAttributes']())['filter'](([_0x329926])=>Be['includes'](_0x329926));_0x93ebff['cells']['push']({'element':_0x4df162,'attributes':_0x1529f1['length']?Object['fromEntries'](_0x1529f1):null}),_0x470ab2&&_0x93ebff['insertionRanges']['push'](_0x470ab2),_0x4400e7&&_0x93ebff['deletionRanges']['push'](_0x4400e7);},{'priority':'high'}),_0x39bcf8['on']('insertColumns',(_0x21dc7c,_0x7f3e82)=>{const [_0x2a88ab,_0x3d57b2={}]=_0x7f3e82;if(!_0x93ebff)return;const _0x1bd42b=_0x3d57b2['at']||0x0,_0x5e346a=_0x3d57b2['columns']||0x1;_0x93ebff['columnInsertionIndexes']=new Array(_0x5e346a)['fill'](_0x1bd42b)['map']((_0x2df790,_0x16d196)=>_0x2df790+_0x16d196);for(const {cell:_0x1fb05d}of _0x39bcf8['createTableWalker'](_0x2a88ab,{'startColumn':_0x1bd42b,'endColumn':_0x1bd42b+_0x5e346a-0x1}))_0x93ebff['columnInsertionRanges']['push'](_0x2ea61a['model']['createRangeOn'](_0x1fb05d));},{'priority':'low'}),_0x39bcf8['on']('insertRows',(_0x50ef73,_0xbc65e8)=>{const [_0x2f8ab3,_0x55925a={}]=_0xbc65e8;if(!_0x93ebff)return;const _0x14099a=_0x55925a['at']||0x0,_0x50dafb=_0x55925a['rows']||0x1;_0x93ebff['rowInsertionIndexes']=new Array(_0x50dafb)['fill'](_0x14099a)['map']((_0x779ca2,_0x3b1524)=>_0x779ca2+_0x3b1524);for(const {cell:_0x16801e}of _0x39bcf8['createTableWalker'](_0x2f8ab3,{'startRow':_0x14099a,'endRow':_0x14099a+_0x50dafb-0x1}))_0x93ebff['rowInsertionRanges']['push'](_0x2ea61a['model']['createRangeOn'](_0x16801e));},{'priority':'low'}),_0x331651['descriptionFactory']['registerDescriptionCallback'](_0x11ed7b=>{if(_0x11ed7b['subType']&&_0x11ed7b['subType']['startsWith']('tablePaste'))return _0x11ed7b['previous']?{}:{'type':'insertion','content':o(_0x2ea61a['locale'],'*Replace\x20table\x20cells*')};});const _0x355a03=()=>!0x1;for(const _0x334cd1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x331651['_suggestionFactory']['registerCustomCallback']('insertion',_0x334cd1,'join',_0x355a03),_0x331651['_suggestionFactory']['registerCustomCallback']('deletion',_0x334cd1,'join',_0x355a03),_0x331651['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x334cd1,'join',_0x355a03);_0x331651['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x355a03),_0x331651['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x42f3f1,_0x2ad51e,_0x429371)=>{const _0x599336=_0x42f3f1['map'](_0x4106df=>_0x4106df['getContainedElement']())['filter'](_0x2acd28=>_0x2acd28),_0x4a4c7e=new Map(_0x599336['map'](_0x443a1e=>[_0x443a1e,null]));if(_0x93ebff){for(const {element:_0xf5b00f,attributes:_0x300c69}of _0x93ebff['cells'])_0x300c69&&_0x4a4c7e['set'](_0xf5b00f,_0x300c69);}else{if(_0x429371&&_0x429371['markerAttributes'])for(const [_0x196288,_0x1dd283]of Object['entries'](_0x429371['markerAttributes'])){const _0x5e10a5=_0x2ea61a['model']['markers']['get'](_0x196288),_0x2cfc42=_0x5e10a5?_0x5e10a5['getRange']()['getContainedElement']():null;_0x2cfc42&&_0x4a4c7e['set'](_0x2cfc42,_0x1dd283);}}_0x2ea61a['model']['change'](_0x2fe338=>{for(const [_0x3f0b59,_0x378d35]of _0x4a4c7e)_0x2fe338['setAttributes']({...xe,..._0x378d35},_0x3f0b59);});});const _0xdd1f20=(_0x43e1d2,_0x5dd596)=>{_0x331651['_suggestionFactory']['registerCustomCallback'](_0x43e1d2,'tablePaste',_0x5dd596,(_0x120534,_0x3b3e7e,_0x4535c7)=>{_0x2ea61a['model']['change'](_0x1239ba=>{const _0x3c04a4=[];for(const _0x1caab2 of _0x120534){const _0x51c3c3=_0x1caab2['start']['nodeAfter'];_0x51c3c3['is']('element','tableCellSuggestion')&&_0x3c04a4['push'](_0x51c3c3);}_0x331651['_suggestionFactory']['getSuggestionCallback'](_0x43e1d2,null,_0x5dd596)(_0x120534,_0x3b3e7e,_0x4535c7);for(const _0x30d9ab of _0x3c04a4)'$graveyard'!=_0x30d9ab['root']['rootName']&&_0x1239ba['unwrap'](_0x30d9ab);});});};_0xdd1f20('insertion','accept'),_0xdd1f20('insertion','discard'),_0xdd1f20('deletion','accept'),_0xdd1f20('deletion','discard'),_0x331651['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2a7a18=>{const _0x4c8d19=_0x2a7a18['map'](_0x1e7987=>_0x1e7987['getContainedElement']()),_0x44e0f6=_0x4c8d19[0x0]['findAncestor']('table'),{minRow:_0x26d020,maxRow:_0x656934}=_0x3cdbcd['_getCoordsForCells'](_0x4c8d19);_0x39bcf8['removeRows'](_0x44e0f6,{'at':_0x26d020,'rows':_0x656934-_0x26d020+0x1});}),_0x331651['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2c5df8=>{const _0x56245d=_0x2c5df8['map'](_0x151c18=>_0x151c18['getContainedElement']()),_0x47efa4=_0x56245d[0x0]['findAncestor']('table'),{minColumn:_0xa8b047,maxColumn:_0x4c2e34}=_0x3cdbcd['_getCoordsForCells'](_0x56245d);_0x39bcf8['removeColumns'](_0x47efa4,{'at':_0xa8b047,'columns':_0x4c2e34-_0xa8b047+0x1});});const _0x47804e=(_0x257fd6,_0x37cbf7)=>{if(!_0x37cbf7['subType']||!_0x37cbf7['subType']['startsWith']('tablePaste'))return;const _0x225572=_0x37cbf7['attributes']['tablePasteChainId'],_0x395b94=_0x331651['getSuggestions']()['filter'](_0x4fbd36=>_0x4fbd36['isInContent']&&_0x4fbd36['attributes']&&_0x4fbd36['attributes']['tablePasteChainId']==_0x225572);_0x395b94['length']&&_0x37cbf7['getAllAdjacentSuggestions']()['length']!=_0x395b94['length']&&_0x395b94['reduce']((_0x5f4a64,_0x2c40af)=>(_0x5f4a64['next']=_0x2c40af,_0x2c40af['previous']=_0x5f4a64,_0x2c40af));};function _0x10d4d5(_0x3384dd,_0x4a5b80=!0x0){const {id:_0x4b9934,authorId:_0x374a52}=_0x331651['_splitMarkerName'](_0x3384dd['markerName']),_0x13c108=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5becc0=_0x331651['activeMarkers']['includes'](_0x3384dd['markerName']);return _0x5becc0&&_0x13c108['push']('ck-suggestion-marker--active'),{'classes':_0x13c108,'attributes':{'data-suggestion':_0x4b9934,'data-author-id':_0x374a52},'priority':_0x5becc0&&_0x4a5b80?0xbc2:0xbb8};}_0x331651['on']('suggestionLoaded',_0x47804e,{'priority':'high'}),_0x331651['on']('suggestionUnloaded',_0x47804e,{'priority':'high'}),_0x2ea61a['model']['document']['registerPostFixer'](()=>{let _0x142d85=!0x1;const _0x4cbfb7=Array['from'](_0x2ea61a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cad14,data:_0x48fdf3}of _0x4cbfb7){const {group:_0x4cfe1b,type:_0x3b2f09,id:_0x3244f1}=_0x331651['_splitMarkerName'](_0x5cad14);if('suggestion'!=_0x4cfe1b||'deletion'!=_0x3b2f09||_0x48fdf3['oldRange'])continue;if(!_0x331651['hasSuggestion'](_0x3244f1))continue;const _0x47bf1d=_0x331651['getSuggestion'](_0x3244f1)['getRanges'](),_0x12a710=_0x2ea61a['plugins']['get']('Users')['me'];for(const _0x3e7f54 of _0x331651['getSuggestions']()){if(!_0x3e7f54['isInContent']||_0x3e7f54['author']!=_0x12a710)continue;if('formatBlock'!=_0x3e7f54['type']||'tablePasteCell'!=_0x3e7f54['subType'])continue;if(_0x3e7f54['getRanges']()['every'](_0x39f9e3=>_0x47bf1d['some'](_0x968259=>_0x968259['containsRange'](_0x39f9e3,!0x0)))){for(const _0x25fb12 of _0x3e7f54['getAllAdjacentSuggestions']())_0x25fb12['isInContent']&&(_0x25fb12['discard'](),_0x142d85=!0x0);}}}return _0x142d85;}),_0x2ea61a['model']['document']['registerPostFixer'](_0x1dca2a=>{const _0x425e3c=_0x2ea61a['commands']['get']('redo');if(!_0x425e3c||!_0x425e3c['_createdBatches']['has'](_0x1dca2a['batch']))return!0x1;let _0x1c188f=!0x1;const _0x4afca5=_0x2ea61a['plugins']['get']('Users')['me'],_0x4bca10=_0x2ea61a['model']['document']['differ']['getChanges'](),_0x370b1e=Array['from'](_0x2ea61a['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x588435,data:_0x1b7c5b})=>{const {group:_0x5bc8e0,subType:_0xde7a36,authorId:_0x4fc2f3}=_0x331651['_splitMarkerName'](_0x588435);return'suggestion'==_0x5bc8e0&&'tablePaste'==_0xde7a36&&_0x4fc2f3==_0x4afca5['id']&&!_0x1b7c5b['oldRange'];});for(const _0x55e58d of _0x4bca10){if('insert'!=_0x55e58d['type']||'tableCellSuggestion'!=_0x55e58d['name']||0x1!=_0x55e58d['length'])continue;const _0x137614=_0x1dca2a['createRange'](_0x55e58d['position'],_0x55e58d['position']['getShiftedBy'](0x1));if(!_0x370b1e['find'](({data:_0x3f5b77})=>_0x3f5b77['newRange']['isEqual'](_0x137614))){for(const {name:_0x11820b,data:_0x578893}of _0x370b1e)if(_0x137614['containsRange'](_0x578893['newRange'])){_0x1dca2a['updateMarker'](_0x11820b,{'range':_0x137614}),_0x1c188f=!0x0;break;}}}return _0x1c188f;}),_0x2ea61a['model']['document']['registerPostFixer'](_0x2b44d0=>{let _0x1c04ec=!0x1;const _0x373297=_0x2ea61a['plugins']['get']('Users')['me'],_0x4be2e9=_0x331651['getSuggestions']()['filter'](_0x5031e3=>_0x5031e3['isInContent']&&_0x5031e3['author']==_0x373297),_0x426fda=new Set(),_0x461f36=new Set();for(const _0x34069a of _0x4be2e9)if('tablePaste'==_0x34069a['subType'])for(const _0x2cda4d of _0x34069a['getMarkers']()){const _0xff9dbb=_0x2cda4d['getRange']()['getContainedElement']();if(_0xff9dbb){if(_0xff9dbb['is']('element','tableCellSuggestion')&&Oe(_0xff9dbb)){_0x34069a['removeMarker'](_0x2cda4d['name']),_0x426fda['add'](_0xff9dbb),_0x1c04ec=!0x0;const _0x4759f1=_0xff9dbb['nextSibling'],_0x28fcfb=_0xff9dbb['previousSibling'],_0x2877eb=_0x4759f1&&_0x4759f1['is']('element','tableCellSuggestion'),_0x213dab=_0x28fcfb&&_0x28fcfb['is']('element','tableCellSuggestion');_0x2877eb&&!_0x426fda['has'](_0x4759f1)&&_0x461f36['add'](_0x4759f1),_0x213dab&&!_0x426fda['has'](_0x28fcfb)&&_0x461f36['add'](_0x28fcfb);}else _0xff9dbb['is']('element','paragraph')&&_0xff9dbb['isEmpty']&&(_0x34069a['removeMarker'](_0x2cda4d['name']),_0x1c04ec=!0x0);}}else{if('tablePasteCell'==_0x34069a['subType']){if(!_0x34069a['attributes']||!_0x34069a['attributes']['tablePasteChainId'])continue;const _0x7e1270=_0x34069a['attributes']['markerAttributes'];if(_0x7e1270&&Object['keys'](_0x7e1270)['length'])continue;const _0x48b408=_0x34069a['attributes']['tablePasteChainId'];let _0x1728bd=!0x0,_0xae48c7=!0x0;for(const _0x3536d0 of _0x4be2e9)if(_0x3536d0['subType']&&_0x3536d0['subType']['startsWith']('tablePaste')){if(!_0x3536d0['attributes']['tablePasteChainId']){_0xae48c7=!0x1;break;}if(_0x3536d0['id']!=_0x34069a['id']&&_0x3536d0['attributes']['tablePasteChainId']==_0x48b408){_0x1728bd=!0x1;break;}}_0xae48c7&&_0x1728bd&&(_0x34069a['removeMarkers'](),_0x1c04ec=!0x0);}}for(const _0x544f98 of _0x426fda)_0x2b44d0['remove'](_0x544f98);for(const _0x5a5e85 of _0x461f36)_0x2b44d0['unwrap'](_0x5a5e85);return _0x1c04ec;}),_0x2ea61a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x56511a=>_0x10d4d5(_0x56511a),'converterPriority':'high'}),_0x2ea61a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xc355b,_0x7da0d)=>_0x7da0d['options']['showSuggestionHighlights']?_0x10d4d5(_0xc355b,!0x1):null,'converterPriority':'high'});const _0xade12b=_0x2ea61a['editing']['view'];this['listenTo'](_0xade12b['document'],'clipboardOutput',(_0x3d9e3e,_0x465634)=>{const _0x15956b=[];for(const _0x474326 of _0xade12b['createRangeIn'](_0x465634['content'])['getItems']())_0x474326['is']('element','suggestion-td')&&_0x15956b['push'](_0x474326);_0xade12b['change'](_0x1c1f0f=>{for(const _0x3651bf of _0x15956b)_0x1c1f0f['move'](_0x1c1f0f['createRangeIn'](_0x3651bf),_0x1c1f0f['createPositionBefore'](_0x3651bf)),_0x1c1f0f['remove'](_0x3651bf);});});}}function Oe(_0x43c662){if(_0x43c662['isEmpty'])return!0x0;const _0x40768f=_0x43c662['getChild'](0x0);return _0x40768f['is']('element','paragraph')&&_0x40768f['isEmpty'];}function Ue(_0x26e944,_0x53cc93={},_0x4194dc){for(const {isAnchor:_0x35884d,cellHeight:_0x1a18c4,cellWidth:_0x3f9e2a}of _0x4194dc['createTableWalker'](_0x26e944,{'includeAllSlots':!0x0,..._0x53cc93}))if(!_0x35884d||0x1!=_0x1a18c4||0x1!=_0x3f9e2a)return!0x1;return!0x0;}class $t extends _0x9e54d2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x55f8d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x55f8d3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x55f8d3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x55f8d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x55f8d3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x55f8d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x55f8d3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x22e779,_0x5b52da){const _0x10a6e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x416958=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x55c73e=_0x5b52da['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3c9988=_0x416958['getColumnGroupElement'](_0x55c73e);let _0x46f7e0=_0x3c9988?_0x416958['getTableColumnsWidths'](_0x3c9988):null,_0x1022a8=_0x55c73e['getAttribute']('tableWidth')||null;const _0x1c9aac=_0x5b52da['tableWidth']||_0x1022a8,_0x59a684=_0x5b52da['columnWidths']||_0x46f7e0,_0x17c9c7=this['editor']['plugins']['get']('Users')['me'];for(const _0x3f1898 of _0x10a6e4['getSuggestions']()){const _0x108d57=_0x3f1898['getContainedElement']();if('resizeTable'===_0x3f1898['subType']&&_0x108d57===_0x55c73e){_0x3f1898['author']!==_0x17c9c7&&_0x3f1898['discard']();const _0x455f2e=_0x3f1898['data']['commandParams'];_0x1022a8=_0x455f2e[0x0]['tableWidth'],_0x46f7e0=_0x455f2e[0x0]['columnWidths'];break;}}_0x22e779({'table':_0x55c73e,'tableWidth':_0x1c9aac,'columnWidths':_0x59a684}),_0x10a6e4['markBlockFormat'](_0x55c73e,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1022a8,'columnWidths':_0x46f7e0}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3ef7e9){if('formatBlock'!=_0x3ef7e9['type']&&'formatInline'!=_0x3ef7e9['type'])return;const {data:_0x1bad15}=_0x3ef7e9;if(_0x1bad15&&'resizeTable'===_0x1bad15['formatGroupId']){const _0x1e3e34='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1e3e34)};}}}class Bt extends _0x9e54d2{['afterInit'](){const _0x345da9=this['editor'];_0x345da9['plugins']['has']('Template')&&_0x345da9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x9e54d2{['afterInit'](){const _0x4485e5=this['editor'];if(!_0x4485e5['commands']['get']('insertTableOfContents'))return;_0x4485e5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x570ad=_0x4485e5['plugins']['get']('TrackChangesEditing'),_0x27c4c3=_0x4485e5['locale'];_0x570ad['descriptionFactory']['registerElementLabel']('tableOfContents',_0x431cfd=>o(_0x27c4c3,'ELEMENT_TABLE_OF_CONTENTS',_0x431cfd));}}class Rt extends _0x9e54d2{['afterInit'](){const _0x55f29a=this['editor'];if(!_0x55f29a['plugins']['has']('Title'))return;const _0x1f9e81=_0x55f29a['plugins']['get']('TrackChangesEditing');_0x1f9e81['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x55f29a['locale'],'ELEMENT_TITLE')),_0x55f29a['model']['document']['registerPostFixer'](_0x241f3a=>{let _0x41240b=!0x1;const _0x580590=Array['from'](_0x55f29a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1a9ae9,data:_0x496890}of _0x580590){const {group:_0x31284b}=_0x1f9e81['_splitMarkerName'](_0x1a9ae9);if('suggestion'!==_0x31284b||!_0x496890['newRange'])continue;const _0x684045=_0x496890['newRange'],_0xc745f0=_0x684045['end']['nodeBefore'];if(!_0xc745f0||!_0xc745f0['is']('element','title-content'))continue;if(!_0x684045['start']['isTouching'](_0x684045['end']))continue;const _0x515833=_0x55f29a['model']['schema']['getNearestSelectionRange'](_0x684045['end'],'forward');if(_0x515833&&_0x515833['isCollapsed']){const _0x410f29=_0x241f3a['createRange'](_0x684045['start'],_0x515833['start']);_0x410f29['isEqual'](_0x684045)||(_0x241f3a['updateMarker'](_0x1a9ae9,{'range':_0x410f29}),_0x41240b=!0x0);}_0x41240b||(_0x241f3a['removeMarker'](_0x1a9ae9),_0x41240b=!0x0);}return _0x41240b;});}}class Tt extends _0x9e54d2{['afterInit'](){const _0xf50a07=this['editor'],_0x56dd51=_0xf50a07['plugins']['get']('TrackChangesEditing');_0xf50a07['plugins']['has']('Uploadcare')&&(_0x56dd51['enableCommand']('uploadcare'),_0xf50a07['plugins']['has']('UploadcareImageEdit')&&(_0x56dd51['enableCommand']('uploadcareImageEdit'),_0x56dd51['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x56dd51['registerBlockAttribute']('uploadcareImageId'),_0x56dd51['descriptionFactory']['registerDescriptionCallback'](_0x6a2e23=>{if('attribute'!=_0x6a2e23['type'])return;const {data:_0x5b1998}=_0x6a2e23;return _0x5b1998&&'uploadcareImageId'==_0x5b1998['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x9e54d2{['afterInit'](){const _0x2fae37=this['editor'],_0xf27eec=_0x2fae37['plugins']['get']('TrackChangesEditing');_0x2fae37['plugins']['has']('UndoEditing')&&(_0xf27eec['enableCommand']('undo'),_0xf27eec['enableCommand']('redo'));}}class Et extends _0x9e54d2{static get['requires'](){return[Ct];}['afterInit'](){const _0x3837b8=this['editor'];if(!_0x3837b8['plugins']['has']('TableCaptionEditing'))return;_0x3837b8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x9e54d2{['tableProperties'];['tableCellProperties'];constructor(_0x5df8cc){super(_0x5df8cc),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 _0x422d7e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x11cdf8 of this['tableProperties'])_0x422d7e['enableCommand'](_0x11cdf8,(_0x23cadd,_0x709c72)=>{const _0x29d4cd=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x11cdf8,[_0x29d4cd],this['tableProperties'],'tableProperties',_0x23cadd,_0x709c72);});_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x422d7e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x910eeb,_0x11ef09)=>this['handleDiscardAction'](this['tableProperties'],_0x910eeb,_0x11ef09)),_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe3c967 of this['tableCellProperties'])_0x422d7e['enableCommand'](_0xe3c967,(_0xe6c169,_0xde3850)=>{const _0x4cf194=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe3c967,_0x4cf194,this['tableCellProperties'],'tableCellProperties',_0xe6c169,_0xde3850);});_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x422d7e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x23232b,_0x49cc4b)=>this['handleDiscardAction'](this['tableCellProperties'],_0x23232b,_0x49cc4b)),_0x422d7e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x422d7e['descriptionFactory']['registerDescriptionCallback'](_0xd80a13=>this['handleSuggestionDescription'](_0xd80a13));}['_handlePropertyChange'](_0x2bd41d,_0x413c1c,_0x212e74,_0x1c061d,_0x59d8e3,_0x4d6f5c){const _0x4fd0bb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4d6f5c['batch'],()=>{for(const _0x71e9ff of _0x413c1c){if(this['_getSuggestion'](_0x71e9ff,_0x1c061d))_0x59d8e3(_0x4d6f5c);else{const _0x318df5={};for(const _0x48a1fd of _0x212e74){const _0x450f44=_0x71e9ff['getAttribute'](_0x48a1fd);void 0x0!==_0x450f44&&(_0x318df5[_0x48a1fd]=_0x450f44);}_0x59d8e3(_0x4d6f5c),_0x4fd0bb['markBlockFormat'](_0x71e9ff,{'commandParams':[_0x318df5]},[],_0x1c061d);}}});}['handleDiscardAction'](_0x3cd8f3,_0x4fe79d,_0x28188e){const _0x3a4985=_0x4fe79d[0x0]['start']['nodeAfter'],_0x3c133d=_0x28188e['commandParams'][0x0];this['editor']['model']['change'](_0x40b8e5=>{for(const _0x408171 of _0x3cd8f3)void 0x0!==_0x3c133d[_0x408171]?_0x40b8e5['setAttribute'](_0x408171,_0x3c133d[_0x408171],_0x3a4985):_0x40b8e5['removeAttribute'](_0x408171,_0x3a4985);});}['handleSuggestionDescription'](_0x204610){if(_0x204610['data'])switch(_0x204610['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'](_0x277b81,_0x45cd73){const _0x1d1779=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0xf2a654 of _0x1d1779['getSuggestions']({'skipNotAttached':!0x0})){const _0x312d21=_0xf2a654['getContainedElement']();if(_0xf2a654['subType']===_0x45cd73&&_0x312d21===_0x277b81)return _0xf2a654;}return null;}}const m='$elementName';class p extends _0x9e54d2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d693d,_0x53d41d,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b7440){super(_0x4b7440),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x178e99,_0x8c32a7,_0x5788d6,_0x42a1f1)=>{this['_model']['change'](()=>{for(const _0x354d11 of[..._0x42a1f1,..._0x5788d6])this['_model']['markers']['has'](_0x354d11)&&_0x4b7440['editing']['reconvertMarker'](_0x354d11);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x4b7440['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(),_0x4b7440['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4b7440['config']['get']('trackChanges.trackFormatChanges'),_0x4b7440['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4b7440['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4b7440,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x46db24=this['editor'],_0x11ad78=(_0x2a31ff,_0x41fa11)=>{if('attribute'!=_0x2a31ff)return'ck-suggestion-marker-'+_0x2a31ff;const _0x1a6841=_0x41fa11['split']('|')[0x0];return this['_isBlockAttribute'](_0x1a6841)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x46db24['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x347806=>{const {id:_0x23a5cd,authorId:_0x13fdce,type:_0x258389,subType:_0x5db681}=this['_splitMarkerName'](_0x347806['markerName']),_0x1740a6=['ck-suggestion-marker',_0x11ad78(_0x258389,_0x5db681)];let _0x284a69=0xbb8;return this['activeMarkers']['includes'](_0x347806['markerName'])&&(_0x1740a6['push']('ck-suggestion-marker--active'),_0x284a69=0xbc2),'deletion'==_0x258389&&(_0x284a69+=0x5),{'classes':_0x1740a6,'attributes':{'data-suggestion':_0x23a5cd,'data-author-id':_0x13fdce},'priority':_0x284a69};}}),_0x46db24['conversion']['for']('dataDowncast')['add'](_0x133d85=>{_0x133d85['on']('addMarker:suggestion',(_0x19f324,_0x4bd785,_0x5c7922)=>{if(!_0x5c7922['options']['showSuggestionHighlights'])return;const _0x326941=_0x4bd785['item'];if(!_0x326941)return;const _0x5f17d4=_0x5c7922['mapper']['toViewElement'](_0x326941);_0x46db24['model']['schema']['isObject'](_0x326941)&&_0x5f17d4&&!_0x5f17d4['getCustomProperty']('widget')&&_0x5f17d4['is']('containerElement')&&_0x19bee4(_0x5f17d4,_0x5c7922['writer']);},{'priority':'high'});}),_0x46db24['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x4ce735,_0x173b11)=>{if(!_0x173b11['options']['showSuggestionHighlights'])return null;const {type:_0x5df82e,subType:_0x2ed4dc}=this['_splitMarkerName'](_0x4ce735['markerName']);return{'classes':['ck-suggestion-marker',_0x11ad78(_0x5df82e,_0x2ed4dc)],'priority':0xbb8};}});const _0x41a6f9=({showActiveMarkers:_0x43c903=!0x0,isAttributeSuggestion:_0x1af3df=!0x1}={})=>(_0x3d3b6f,_0x2001ba,_0x303762)=>{if(!_0x2001ba['item'])return;const {id:_0x44312e,authorId:_0x3231a5}=this['_splitMarkerName'](_0x2001ba['markerName']);if(_0x1af3df){const _0x5729ca=this['_suggestions']['get'](_0x44312e),_0x4247a7=this['_getAttributeKey'](_0x5729ca);if(!this['_isBlockAttribute'](_0x4247a7))return;}if(_0x2001ba['item']['is']('selection'))return void _0x303762['consumable']['consume'](_0x2001ba['item'],_0x3d3b6f['name']);const _0x441b6a=_0x303762['mapper']['toViewElement'](_0x2001ba['item']);if(_0x2001ba['item']['is']('element')&&_0x46db24['model']['schema']['isBlock'](_0x2001ba['item'])&&!_0x441b6a['getCustomProperty']('addHighlight')){_0x303762['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x441b6a),_0x303762['writer']['setAttribute']('data-suggestion',_0x44312e,_0x441b6a),_0x303762['writer']['setAttribute']('data-author-id',_0x3231a5,_0x441b6a),_0x303762['mapper']['bindElementToMarker'](_0x441b6a,_0x2001ba['markerName']),_0x43c903&&(this['activeMarkers']['includes'](_0x2001ba['markerName'])?_0x303762['writer']['addClass']('ck-suggestion-marker--active',_0x441b6a):_0x303762['writer']['removeClass']('ck-suggestion-marker--active',_0x441b6a));for(const _0x4ba3fc of _0x46db24['model']['createRangeIn'](_0x2001ba['item'])['getItems']())_0x303762['consumable']['consume'](_0x4ba3fc,_0x3d3b6f['name']);_0x303762['consumable']['consume'](_0x2001ba['item'],_0x3d3b6f['name']);}};_0x46db24['conversion']['for']('dataDowncast')['add'](_0x24f2e2=>{_0x24f2e2['on']('addMarker:suggestion:formatBlock',(_0x4912e7,_0x3c4a50,_0x3e0ff9)=>{_0x3e0ff9['options']['showSuggestionHighlights']&&_0x41a6f9({'showActiveMarkers':!0x1})(_0x4912e7,_0x3c4a50,_0x3e0ff9);},{'priority':'highest'});}),_0x46db24['conversion']['for']('dataDowncast')['add'](_0x40951d=>{_0x40951d['on']('addMarker:suggestion:attribute',(_0x15759a,_0x89cf12,_0x25c283)=>{_0x25c283['options']['showSuggestionHighlights']&&_0x41a6f9({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x15759a,_0x89cf12,_0x25c283);},{'priority':'highest'});}),_0x46db24['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2659a8,_0x335017)=>_0x335017['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2659a8['substr'](0xb)}}),_0x46db24['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x178ad7,{writer:_0x5d7901})=>{let _0x2bbf57='suggestion:'+_0x178ad7['getAttribute']('suggestion-type')+':'+_0x178ad7['getAttribute']('id');return _0x178ad7['getAttribute']('marker-count')&&(_0x2bbf57+=':'+_0x178ad7['getAttribute']('marker-count')),_0x5d7901['createElement']('$marker',{'data-name':_0x2bbf57});}}),_0x46db24['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x46db24['conversion']['for']('editingDowncast')['add'](_0x403923=>{_0x403923['on']('addMarker:suggestion:formatBlock',_0x41a6f9(),{'priority':'high'});}),_0x46db24['conversion']['for']('editingDowncast')['add'](_0x5cde32=>{_0x5cde32['on']('addMarker:suggestion:attribute',_0x41a6f9({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x46db24['conversion']['for']('editingDowncast')['add'](_0x3e6edf=>{_0x3e6edf['on']('removeMarker:suggestion:formatBlock',(_0x54e7ac,_0xea2379,_0x248b88)=>{const _0x51dff1=_0x248b88['mapper']['markerNameToElements'](_0xea2379['markerName']);if(_0x51dff1){for(const _0x5acf80 of _0x51dff1)_0x5acf80['getCustomProperty']('addHighlight')||(_0x248b88['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5acf80),_0x248b88['writer']['removeAttribute']('data-suggestion',_0x5acf80),_0x248b88['writer']['removeAttribute']('data-author-id',_0x5acf80),_0x248b88['mapper']['unbindElementFromMarkerName'](_0x5acf80,_0xea2379['markerName']));}},{'priority':'high'});}),_0x46db24['conversion']['for']('editingDowncast')['add'](_0x1f2eae=>{_0x1f2eae['on']('removeMarker:suggestion:attribute',(_0x495c56,_0x4b831e,_0x1f3a17)=>{const _0x337f9a=_0x1f3a17['mapper']['markerNameToElements'](_0x4b831e['markerName']);if(!_0x337f9a)return;const {id:_0x9fd058}=this['_splitMarkerName'](_0x4b831e['markerName']),_0x5e30c9=this['_suggestions']['get'](_0x9fd058),_0x580399=this['_getAttributeKey'](_0x5e30c9);if(this['_isBlockAttribute'](_0x580399)){for(const _0x581087 of _0x337f9a)_0x581087['getCustomProperty']('addHighlight')||(_0x1f3a17['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x581087),_0x1f3a17['writer']['removeAttribute']('data-suggestion',_0x581087),_0x1f3a17['writer']['removeAttribute']('data-author-id',_0x581087),_0x1f3a17['mapper']['unbindElementFromMarkerName'](_0x581087,_0x4b831e['markerName']));}},{'priority':'high'});}),_0x46db24['model']['document']['registerPostFixer'](_0x3a340e=>{let _0x1d17d4=!0x1;const _0x4db0de=Array['from'](_0x46db24['model']['document']['differ']['getChangedMarkers']()),_0x3c62d6=new Set();for(const {name:_0x26e22c,data:_0x3b4706}of _0x4db0de){const {group:_0x200238,type:_0x11437f,subType:_0xb0ab8d,id:_0x49391b}=this['_splitMarkerName'](_0x26e22c);if('suggestion'!==_0x200238)continue;const _0x3183a9=this['_suggestions']['get'](_0x49391b);if(null!=_0x3b4706['newRange']){'formatInline'==_0x11437f&&(_0x1d17d4=_0x1d17d4||Lt(_0x3b4706['newRange'],_0x26e22c,_0x3a340e,_0x46db24['model']['schema']));const _0x497c99='attribute'==_0x11437f&&this['_isBlockAttribute'](_0xb0ab8d['split']('|')[0x0]);if(_0x3b4706['newRange']['isCollapsed']||'$graveyard'==_0x3b4706['newRange']['root']['rootName']||'formatBlock'==_0x11437f&&!Ht(_0x3b4706['newRange'])||_0x497c99&&!Ht(_0x3b4706['newRange'])||'deletion'==_0x11437f&&!(!Ft(_0x47999f=_0x3b4706['newRange'])&&!function(_0x2b16ac){return _0x2b16ac['start']['parent']==_0x2b16ac['end']['nodeBefore']&&_0x2b16ac['start']['isAtEnd'];}(_0x47999f)))_0x3a340e['removeMarker'](_0x26e22c),_0x1d17d4=!0x0;else{if(!_0x3183a9||!_0x3183a9['isInContent'])continue;if(_0x3b4706['newRange']&&_0x3b4706['oldRange']&&_0x3b4706['newRange']['isEqual'](_0x3b4706['oldRange']))continue;_0x3c62d6['add'](_0x3183a9);}}}var _0x47999f;return _0x3c62d6['size']>0x0&&(_0x1d17d4=!!this['_joinWithAdjacentSuggestions'](_0x3c62d6)||_0x1d17d4),_0x1d17d4;}),_0x46db24['model']['document']['registerPostFixer'](_0x599136=>{let _0x53a735=!0x1;for(const _0x2c88a7 of _0x46db24['model']['document']['differ']['getChanges']())if('insert'==_0x2c88a7['type'])for(const _0x1ae6f9 of this['_suggestions']['values']()){if(_0x1ae6f9['isMultiRange']||!_0x1ae6f9['isInContent'])continue;const _0x4cdb2d='formatBlock'==_0x1ae6f9['type'],_0x125bdb=this['_getAttributeKey'](_0x1ae6f9),_0x5f5b7d=_0x125bdb&&this['_isBlockAttribute'](_0x125bdb);if(!_0x4cdb2d&&!_0x5f5b7d)continue;const _0x1a3957=_0x1ae6f9['getFirstRange']();if(_0x1a3957['start']['parent']!=_0x1a3957['end']['parent']&&!_0x1a3957['end']['isAtEnd']){const _0x588f21=_0x46db24['model']['createPositionAt'](_0x1a3957['start']['nodeAfter'],'end'),_0x50b1e3=_0x46db24['model']['createRange'](_0x1a3957['start'],_0x588f21);_0x599136['updateMarker'](_0x1ae6f9['getFirstMarker'](),{'range':_0x50b1e3}),_0x53a735=!0x0;}}return _0x53a735;}),_0x46db24['model']['document']['registerPostFixer'](_0x49f83a=>this['_processAttributeChanges'](_0x49f83a)),_0x46db24['model']['document']['registerPostFixer'](_0x26e775=>!_0x26e775['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x26e775)),_0x46db24['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x46db24['model']['document']['on']('change:data',(_0x2720b7,_0x1121ac)=>{if(!_0x1121ac['isLocal']||_0x1121ac['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xef5e18=_0x46db24['model']['document']['differ']['getChanges']();if(0x0==_0xef5e18['length'])return;const _0x2fa731=[],_0x2cba06=_0xef5e18['filter'](_0x5d58b6=>'attribute'==_0x5d58b6['type']),_0xf78b2c=_0xef5e18['filter'](_0x1c8828=>'insert'==_0x1c8828['type']&&'$text'!=_0x1c8828['name']);for(const _0x337079 of _0x2cba06)this['_isRegisteredAttribute'](_0x337079['attributeKey'])&&_0x2fa731['push']({'key':_0x337079['attributeKey'],'newValue':_0x337079['attributeNewValue'],'oldValue':_0x337079['attributeOldValue'],'range':qt(_0x337079['range'],_0x46db24['model'])});for(const _0x4f6ebe of _0xf78b2c){if('rename'!=_0x4f6ebe['action']&&'refresh'!=_0x4f6ebe['action'])continue;const _0x1e89ae=zt(_0x4f6ebe['position']['nodeAfter'],_0x46db24['model']),_0x50e116=_0x4f6ebe['before'];'rename'==_0x4f6ebe['action']&&_0x2fa731['push']({'key':m,'newValue':_0x4f6ebe['name'],'oldValue':_0x50e116['name'],'range':_0x1e89ae});for(const [_0x548c60,_0x5904d3]of _0x50e116['attributes']){if(!this['_isRegisteredAttribute'](_0x548c60))continue;const _0x3f77b4=_0x4f6ebe['attributes']['get'](_0x548c60);_0x5904d3!==_0x3f77b4&&_0x2fa731['push']({'key':_0x548c60,'newValue':_0x3f77b4,'oldValue':_0x5904d3,'range':_0x1e89ae});}for(const [_0x3ed29b,_0x410f15]of _0x4f6ebe['attributes'])this['_isRegisteredAttribute'](_0x3ed29b)&&(_0x50e116['attributes']['has'](_0x3ed29b)||_0x2fa731['push']({'key':_0x3ed29b,'newValue':_0x410f15,'oldValue':null,'range':_0x1e89ae}));}0x0!=_0x2fa731['length']&&_0x46db24['model']['enqueueChange'](_0x1121ac,_0x342fbe=>{const _0xd86504=_0x1ea020();for(const {range:_0x4096fe,key:_0x1d04c6,oldValue:_0x4e5155,newValue:_0x103df0}of _0x2fa731)this['markAttributeChange'](_0x4096fe,_0x1d04c6,_0x4e5155,_0x103df0,{'groupId':_0xd86504});this['_reduceExistingSuggestions'](_0x342fbe,_0x2fa731);});},{'priority':'lowest'}),_0x46db24['model']['markers']['on']('update:suggestion',(_0x5a10d2,_0x4dd631,_0x1b1294)=>{if(null==_0x1b1294){const {id:_0x5afb5b}=this['_splitMarkerName'](_0x4dd631['name']),_0x221bdc=this['_suggestions']['get'](_0x5afb5b);_0x221bdc&&_0x221bdc['addMarkerName'](_0x4dd631['name']);}}),_0x46db24['model']['document']['on']('change:data',()=>{const _0x3c519c=Array['from'](_0x46db24['model']['document']['differ']['getChangedMarkers']())['filter'](_0x42a4e3=>'suggestion'===this['_splitMarkerName'](_0x42a4e3['name'])['group']);if(0x0===_0x3c519c['length'])return;_0x3c519c['sort']((_0xdd2a78,_0x577248)=>{const _0x2121d6=_0xdd2a78['data']['oldRange'],_0xfc8398=_0x577248['data']['oldRange'];return null===_0x2121d6&&null===_0xfc8398?0x0:null===_0x2121d6&&null!==_0xfc8398?-0x1:null!==_0x2121d6&&null===_0xfc8398?0x1:_0x2121d6['start']['isBefore'](_0xfc8398['start'])?-0x1:0x1;});const _0x55061f=new Set(),_0x4f3165=new Set();for(const {name:_0x5b3f88,data:_0x3f3181}of _0x3c519c){const {id:_0x46a4dd}=this['_splitMarkerName'](_0x5b3f88);if(null===_0x3f3181['oldRange']){const _0x251d60=this['_handleNewSuggestionMarker'](_0x5b3f88);_0x4f3165['add'](_0x251d60);}else{const _0x2c7bc1=this['_suggestions']['get'](_0x46a4dd);null!==_0x3f3181['newRange']||_0x2c7bc1['isInContent']?(_0x55061f['add'](_0x2c7bc1['head']),_0x4f3165['add'](_0x2c7bc1)):this['_removeSuggestion'](_0x2c7bc1);}}_0x4f3165['size']>0x0&&this['_refreshSuggestionsChain'](_0x4f3165);for(const _0x82236e of _0x55061f)this['fire']('suggestionChanged',_0x82236e);}),_0x46db24['model']['on']('applyOperation',(_0x3b2924,_0x47a132)=>{const _0x48a0e7=_0x47a132[0x0];if(!this['_suggestions']['size'])return;if(!_0x48a0e7['isDocumentOperation'])return;if(_0x48a0e7['batch']['isUndo']||!_0x48a0e7['batch']['isLocal'])return;let _0x54dd59,_0xf0619;switch(_0x48a0e7['type']){case'insert':_0x54dd59=_0x46db24['model']['createPositionAt'](_0x48a0e7['position']),_0xf0619=_0x54dd59['getShiftedBy'](_0x48a0e7['howMany']);break;case'split':_0x54dd59=_0x46db24['model']['createPositionAt'](_0x48a0e7['splitPosition']),_0xf0619=_0x46db24['model']['createPositionAt'](_0x48a0e7['moveTargetPosition']);break;case'move':_0x54dd59=_0x46db24['model']['createPositionAt'](_0x48a0e7['targetPosition']),_0xf0619=_0x54dd59['getShiftedBy'](_0x48a0e7['howMany']);break;default:return;}const _0x55ea7e=_0x46db24['model']['createRange'](_0x54dd59,_0xf0619);_0x46db24['model']['change'](()=>{for(const {suggestion:_0x372fe9,meta:_0x2f902a}of this['_findSuggestions'](_0x55ea7e)){if(_0x372fe9['isMultiRange'])continue;if('formatInline'==_0x372fe9['type'])continue;const _0x55b7cf=this['_getAttributeKey'](_0x372fe9);if(_0x55b7cf&&this['_isBlockAttribute'](_0x55b7cf)&&'split'!=_0x48a0e7['type'])continue;const _0x1f4f6f=_0x372fe9['data']&&_0x372fe9['data']['multipleBlocks'];('formatBlock'!=_0x372fe9['type']||'split'==_0x48a0e7['type']&&!_0x1f4f6f)&&(_0x2f902a['containsRangeInObject']||'insertion'==_0x372fe9['type']&&_0x2f902a['isOwn']||_0x372fe9['getFirstRange']()['containsRange'](_0x55ea7e)&&this['_breakSuggestionMarker'](_0x372fe9,_0x54dd59,_0xf0619));}});},{'priority':'lowest'}),_0x46db24['model']['on']('deleteContent',(_0x1af626,_0x1b121c)=>{const _0x27b1e9=_0x1b121c[0x0],_0x49dfbc=_0x1b121c[0x1];if(_0x49dfbc&&_0x49dfbc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x27b1e9['isCollapsed'])return;const _0x59daa9=_0x46db24['model']['schema'],{start:_0x4aa2ea,end:_0xf3f481}=_0x27b1e9['getFirstRange'](),_0x7475ee=_0x4aa2ea['nodeAfter']&&_0x59daa9['isLimit'](_0x4aa2ea['nodeAfter'])?null:_0x59daa9['getNearestSelectionRange'](_0x4aa2ea,'forward'),_0xa22fd4=_0xf3f481['nodeBefore']&&_0x59daa9['isLimit'](_0xf3f481['nodeBefore'])?null:_0x59daa9['getNearestSelectionRange'](_0xf3f481,'backward'),_0x16ce2f=_0x46db24['model']['createRange'](_0x7475ee?_0x7475ee['start']:_0x4aa2ea,_0xa22fd4?_0xa22fd4['end']:_0xf3f481);_0x46db24['model']['change'](_0x3c2ebe=>{this['markDeletion'](_0x16ce2f);const _0x2c7659=_0x46db24['model']['schema']['getNearestSelectionRange'](_0x16ce2f['start']);_0x27b1e9['is']('documentSelection')?_0x3c2ebe['setSelection'](_0x2c7659):_0x27b1e9['setTo'](_0x2c7659);}),_0x1af626['stop']();},{'priority':_0xc98a7a['normal']+0xa}),_0x46db24['model']['on']('insertContent',(_0x2a55be,_0x2b1ead)=>{const _0xab38a4=_0x2b1ead[_0x2b1ead['length']-0x1];_0xab38a4&&_0xab38a4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x46db24['model']['change'](()=>{let _0x4565ce=_0x46db24['model']['insertContent'](_0x2b1ead[0x0],_0x2b1ead[0x1],_0x2b1ead[0x2],{'forceDefaultExecution':!0x0});if(!_0x4565ce)return;_0x2a55be['return']=_0x4565ce['clone']();const _0x5f0a4b=_0x4565ce['end']['nodeBefore'],_0x1996f6=_0x46db24['model']['schema'];_0x5f0a4b&&_0x1996f6['isBlock'](_0x5f0a4b)&&!_0x1996f6['isObject'](_0x5f0a4b)&&(_0x4565ce=_0x46db24['model']['createRange'](_0x4565ce['start'],_0x46db24['model']['createPositionAt'](_0x5f0a4b,'end'))),this['markInsertion'](_0x4565ce);}),_0x2a55be['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x316842=new O(_0x46db24,this['_suggestions']);_0x46db24['commands']['add']('acceptSuggestion',_0x316842),this['enableCommand']('acceptSuggestion');const _0x44eb51=new R(_0x46db24,this['_suggestions']);_0x46db24['commands']['add']('discardSuggestion',_0x44eb51),this['enableCommand']('discardSuggestion'),_0x46db24['commands']['add']('acceptAllSuggestions',new x(_0x46db24,_0x316842,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x46db24['commands']['add']('discardAllSuggestions',new x(_0x46db24,_0x44eb51,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x46db24['commands']['add']('acceptSelectedSuggestions',new E(_0x46db24,_0x316842,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x46db24['commands']['add']('discardSelectedSuggestions',new E(_0x46db24,_0x44eb51,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5d2866=_0x46db24['plugins']['get']('CommentsRepository');this['listenTo'](_0x5d2866,'addComment',(_0x2b2adb,{threadId:_0x5dae85})=>{const _0x134675=this['_suggestions']['get'](_0x5dae85);_0x134675&&_0x134675['commentThread']&&0x1===_0x134675['commentThread']['length']&&this['_updateSuggestionData'](_0x5dae85,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5d2866,'removeComment',(_0x4ce5fb,{threadId:_0x5d04b1})=>{const _0x5bfd3b=this['_suggestions']['get'](_0x5d04b1);_0x5bfd3b&&_0x5bfd3b['commentThread']&&!_0x5bfd3b['commentThread']['length']&&this['_updateSuggestionData'](_0x5d04b1,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3409e4){const _0x3b11d3=_0x2e979d([0x54,0x41,0x4f,0x66,0x74,0x5a,0x56,0x65,0x58,0x43,0x4a,0x72,0x35,0x30,0x71,0x47,0x4b,0x4d,0x73,0x33,0x76,0x78,0x75,0x79,0x4c,0x50,0x6f,0x61,0x48,0x67,0x62,0x59,0x70,0x36,0x57,0x32,0x77,0x37,0x6e,0x52,0x44,0x31,0x6b,0x64,0x69,0x46,0x6a,0x34,0x63,0x55,0x49,0x39,0x53,0x42,0x68,0x6d,0x45,0x38,0x6c,0x51,0x7a,0x4e]),_0x4ccdcc=0x571699cf,_0x285c14=0x5711f99f^_0x4ccdcc,_0x553892=window[_0x2e979d([0x44,0x61,0x74,0x65])][_0x2e979d([0x6e,0x6f,0x77])](),_0x588f28=_0x3409e4[_0x2e979d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30272d=new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2df7f3=>{_0x588f28[_0x2e979d([0x6f,0x6e,0x63,0x65])](_0x2e979d([0x72,0x65,0x61,0x64,0x79]),_0x2df7f3);}),_0x13de95={[_0x2e979d([0x6b,0x74,0x79])]:_0x2e979d([0x45,0x43]),[_0x2e979d([0x75,0x73,0x65])]:_0x2e979d([0x73,0x69,0x67]),[_0x2e979d([0x63,0x72,0x76])]:_0x2e979d([0x50,0x2d,0x32,0x35,0x36]),[_0x2e979d([0x78])]:_0x2e979d([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]),[_0x2e979d([0x79])]:_0x2e979d([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]),[_0x2e979d([0x61,0x6c,0x67])]:_0x2e979d([0x45,0x53,0x32,0x35,0x36])},_0x89b5fc=_0x588f28[_0x2e979d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2e979d([0x67,0x65,0x74])](_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4debb0(){let _0x17fe7f,_0x63f552=null,_0x10a0d9=null;try{if(_0x89b5fc==_0x2e979d([0x47,0x50,0x4c]))return _0x2e979d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x17fe7f=_0x263908(),!_0x17fe7f)return _0x2e979d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x17fe7f[_0x2e979d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10a0d9=_0xede936(_0x17fe7f[_0x2e979d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x17fe7f[_0x2e979d([0x6a,0x74,0x69])])),await _0x1e87bd()?_0x566641()?_0x38e0ea()?_0x2e979d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2ed25d()?(_0x17fe7f[_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e979d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x63f552=_0x26f453(_0x2e979d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x17fe7f[_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2e979d([0x74,0x72,0x69,0x61,0x6c])&&(_0x63f552=_0x26f453(_0x2e979d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1fa788()):_0x2e979d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2e979d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2e979d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x20f258){return _0x2e979d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38e0ea(){const _0x43c2e9=[_0x2e979d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2e979d([0x74,0x72,0x69,0x61,0x6c])][_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17fe7f[_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x553892/0x3e8:0xe10*_0x285c14;return _0x17fe7f[_0x2e979d([0x65,0x78,0x70])]<_0x43c2e9;}function _0x566641(){const _0x2ac5f5=_0x17fe7f[_0x2e979d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2ac5f5)return!0x1;if(_0x2ac5f5[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e979d([0x2a])))return!0x0;if(_0x2ac5f5[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e979d([0x54,0x43])))return!0x0;if(_0x2ac5f5[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e979d([0x52,0x54,0x43]))){if(_0x467a41())return!0x0;if(_0x464b42()||_0x40678b())return!0x0;}return!0x1;}function _0x2ed25d(){const _0x48e547=_0x17fe7f[_0x2e979d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48e547||0x0==_0x48e547[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x296b18}=new URL(window[_0x2e979d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48e547[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x296b18))return!0x0;const _0x52e018=_0x296b18[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])](_0x2e979d([0x2e]));return _0x48e547[_0x2e979d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cf062=>_0x4cf062[_0x2e979d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e979d([0x2a])))[_0x2e979d([0x6d,0x61,0x70])](_0x3ac8ac=>_0x3ac8ac[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])](_0x2e979d([0x2e])))[_0x2e979d([0x73,0x6f,0x6d,0x65])](_0x1d1d1d=>_0x52e018[_0x2e979d([0x65,0x76,0x65,0x72,0x79])]((_0x1f691d,_0x59798e)=>_0x1d1d1d[_0x59798e]===_0x1f691d||_0x1d1d1d[_0x59798e]===_0x2e979d([0x2a])));}function _0x1fa788(){return _0x63f552&&_0x10a0d9?new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d78e2,_0x164fb6)=>{_0x63f552[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x3d78e2,_0x164fb6),_0x10a0d9[_0x2e979d([0x74,0x68,0x65,0x6e])](_0xca1199=>{_0xca1199!=_0x2e979d([0x56,0x61,0x6c,0x69,0x64])&&_0x3d78e2(_0xca1199);},_0x164fb6);}):_0x63f552||_0x10a0d9||_0x2e979d([0x56,0x61,0x6c,0x69,0x64]);}}function _0xede936(_0x3816e0,_0x61131a){return new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264936=>{if(_0x2fb06())return _0x264936(_0x2e979d([0x56,0x61,0x6c,0x69,0x64]));_0x579127(),_0x588f28[_0x2e979d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2e979d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x203236=!0x1;const _0x38bfe4=_0x1ea020();function _0x9d93c4(_0x1261ff){return!!_0x1261ff&&(typeof _0x1261ff===_0x2e979d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1261ff===_0x2e979d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1261ff[_0x2e979d([0x74,0x68,0x65,0x6e])]===_0x2e979d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1261ff[_0x2e979d([0x63,0x61,0x74,0x63,0x68])]===_0x2e979d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4969e5(_0x4895cf){_0x2af8b2(_0x4895cf)[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x5dd6b0=>{if(!_0x5dd6b0||_0x5dd6b0[_0x2e979d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2e979d([0x6f,0x6b]))return _0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x54da1f(_0x1e9702(_0x38bfe4+_0x61131a))!=_0x5dd6b0[_0x2e979d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2e979d([0x56,0x61,0x6c,0x69,0x64]);})[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x145367=>(_0x207e8a(),_0x145367),()=>{const _0x2493d7=_0x12d99a();return null==_0x2493d7?(_0x207e8a(),_0x2e979d([0x56,0x61,0x6c,0x69,0x64])):_0x2e979d(_0x553892-_0x2493d7>(0x731a1dcf^_0x4ccdcc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x264936)[_0x2e979d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x264936(_0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x516d7b=0x5720774f^_0x4ccdcc;function _0x207e8a(){const _0x5af086=_0x2e979d([0x6c,0x6c,0x63,0x74,0x2d])+_0x54da1f(_0x1e9702(_0x3816e0)),_0x46d4ff=_0x1851ea(_0x54da1f(window[_0x2e979d([0x4d,0x61,0x74,0x68])][_0x2e979d([0x63,0x65,0x69,0x6c])](_0x553892/_0x516d7b)));window[_0x2e979d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e979d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5af086,_0x46d4ff);}function _0x12d99a(){const _0x492227=_0x2e979d([0x6c,0x6c,0x63,0x74,0x2d])+_0x54da1f(_0x1e9702(_0x3816e0)),_0x286521=window[_0x2e979d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2e979d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x492227);return _0x286521?window[_0x2e979d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1851ea(_0x286521),0x10)*_0x516d7b:null;}function _0x2af8b2(_0x45effe){return new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x527dc1,_0x5d1c30)=>{_0x45effe[_0x2e979d([0x74,0x68,0x65,0x6e])](_0x527dc1,_0x5d1c30),window[_0x2e979d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5d1c30,0x57174d0f^_0x4ccdcc);});}}_0x588f28[_0x2e979d([0x6f,0x6e])](_0x2e979d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x295e1d,_0x5d9334)=>{if(_0x5d9334[0x0]!=_0x3816e0)return _0x264936(_0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5d9334[0x1]={..._0x5d9334[0x1],[_0x2e979d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x38bfe4};},{[_0x2e979d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e979d([0x68,0x69,0x67,0x68])}),_0x588f28[_0x2e979d([0x6f,0x6e])](_0x2e979d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xcef100=>{_0x9d93c4(_0xcef100[_0x2e979d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x203236=!0x0,_0x4969e5(_0xcef100[_0x2e979d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2e979d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2e979d([0x6c,0x6f,0x77])}),_0x30272d[_0x2e979d([0x74,0x68,0x65,0x6e])](()=>{_0x203236||_0x264936(_0x2e979d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2fb06(){return _0x588f28[_0x2e979d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e979d([0x76,0x69,0x65,0x77])][_0x2e979d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2e979d([0x61,0x75,0x74,0x6f]);}function _0x579127(){_0x588f28[_0x2e979d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2e979d([0x76,0x69,0x65,0x77])][_0x2e979d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2e979d([0x61,0x75,0x74,0x6f]);}}function _0x26f453(_0x2e7924){const _0x5c2ce1=[new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2419a8=>setTimeout(_0x2419a8,0x571fa703^_0x4ccdcc)),_0x30272d[_0x2e979d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12768f=>{let _0x194ed0=0x0;_0x588f28[_0x2e979d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e979d([0x6f,0x6e])](_0x2e979d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x529df3,_0x3247ae)=>{_0x3247ae[0x0][_0x2e979d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x194ed0++,_0x194ed0==(0x57169837^_0x4ccdcc)&&(_0x12768f(),_0x529df3[_0x2e979d([0x6f,0x66,0x66])]());});}))];return window[_0x2e979d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2e979d([0x72,0x61,0x63,0x65])](_0x5c2ce1)[_0x2e979d([0x74,0x68,0x65,0x6e])](()=>_0x2e7924);}async function _0x2b60db(){await _0x30272d,_0x588f28[_0x2e979d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e979d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x784bae,_0x588f28[_0x2e979d([0x6d,0x6f,0x64,0x65,0x6c])][_0x2e979d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x784bae,_0x588f28[_0x2e979d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2e979d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x467a41(){return _0xb02f6d(_0x2e979d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x142888(_0x2e979d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2e979d([0x73,0x74,0x61,0x74,0x65])]==_0x2e979d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x464b42(){return _0xb02f6d(_0x2e979d([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 _0x40678b(){return _0xb02f6d(_0x2e979d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e8494(_0x1001e){const _0x38c8f3=_0x1a9a35();_0x588f28[_0x38c8f3]=_0x2e979d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1001e,_0x1001e!=_0x2e979d([0x56,0x61,0x6c,0x69,0x64])&&_0x2b60db();}function _0x1a9a35(){const _0x50e1cb=window[_0x2e979d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2e979d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2e979d([0x6e,0x6f,0x77])]())[_0x2e979d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2e979d([0x2e]),'');let _0x30cf39=_0x2e979d([0x54]);for(let _0x6a27b8=0x0;_0x6a27b8<_0x50e1cb[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6a27b8+=0x2){let _0x442095=window[_0x2e979d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50e1cb[_0x2e979d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x6a27b8,_0x6a27b8+0x2));_0x442095>=_0x3b11d3[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x442095-=_0x3b11d3[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30cf39+=_0x3b11d3[_0x442095];}return _0x30cf39;}function _0x263908(){const _0x59c5a8=_0x89b5fc[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])](_0x2e979d([0x2e]));if(0x3!=_0x59c5a8[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1393c1(_0x59c5a8[0x1]);function _0x1393c1(_0x3f10ca){const _0x11797f=_0x423f29(_0x3f10ca);return _0x11797f&&_0x5f0d65()?_0x11797f:null;function _0x5f0d65(){const _0x1da1c0=_0x11797f[_0x2e979d([0x6a,0x74,0x69])],_0x361d87=window[_0x2e979d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1da1c0[_0x2e979d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1da1c0[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xe79d8b={..._0x11797f,[_0x2e979d([0x6a,0x74,0x69])]:_0x1da1c0[_0x2e979d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1da1c0[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xe79d8b[_0x2e979d([0x76,0x63])],_0x1e9702(_0xe79d8b)==_0x361d87;}}}async function _0x1e87bd(){let _0x129d68=!0x0;try{const _0x196b89=_0x89b5fc[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])](_0x2e979d([0x2e])),[_0x1764bd,_0x175668,_0x3421cf]=_0x196b89;return _0x15b1cb(_0x1764bd),await _0x1a9285(_0x1764bd,_0x175668,_0x3421cf),_0x129d68;}catch(_0x4da0bf){return!0x1;}function _0x15b1cb(_0x96343e){const _0x58f196=_0x423f29(_0x96343e);_0x58f196&&_0x58f196[_0x2e979d([0x61,0x6c,0x67])]==_0x2e979d([0x45,0x53,0x32,0x35,0x36])||(_0x129d68=!0x1);}async function _0x1a9285(_0x51d57c,_0x21b481,_0x587d60){const _0x517866=window[_0x2e979d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2e979d([0x66,0x72,0x6f,0x6d])](_0x5d05ad(_0x587d60),_0x38239a=>_0x38239a[_0x2e979d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbd5757=new window[(_0x2e979d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2e979d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51d57c+_0x2e979d([0x2e])+_0x21b481),_0x405c0a=window[_0x2e979d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2e979d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x405c0a)return;const _0x1f0ab0=await _0x405c0a[_0x2e979d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2e979d([0x6a,0x77,0x6b]),_0x13de95,{[_0x2e979d([0x6e,0x61,0x6d,0x65])]:_0x2e979d([0x45,0x43,0x44,0x53,0x41]),[_0x2e979d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2e979d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2e979d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x405c0a[_0x2e979d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2e979d([0x6e,0x61,0x6d,0x65])]:_0x2e979d([0x45,0x43,0x44,0x53,0x41]),[_0x2e979d([0x68,0x61,0x73,0x68])]:{[_0x2e979d([0x6e,0x61,0x6d,0x65])]:_0x2e979d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f0ab0,_0x517866,_0xbd5757)||(_0x129d68=!0x1);}}function _0x423f29(_0x1ebbe1){return _0x1ebbe1[_0x2e979d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2e979d([0x65,0x79]))?JSON[_0x2e979d([0x70,0x61,0x72,0x73,0x65])](_0x5d05ad(_0x1ebbe1)):null;}function _0x5d05ad(_0xb653f6){return window[_0x2e979d([0x61,0x74,0x6f,0x62])](_0xb653f6[_0x2e979d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2e979d([0x2b]))[_0x2e979d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2e979d([0x2f])));}function _0x1e9702(_0x4ac38e){let _0x2be277=0x1505;function _0x440bc4(_0x460f04){for(let _0x51e22c=0x0;_0x51e22c<_0x460f04[_0x2e979d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51e22c++){const _0x6dff97=_0x460f04[_0x2e979d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51e22c);_0x2be277=(_0x2be277<<0x5)+_0x2be277+_0x6dff97,_0x2be277&=_0x2be277;}}function _0x1f4193(_0x395942){Array[_0x2e979d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x395942)?_0x395942[_0x2e979d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f4193):_0x395942&&typeof _0x395942==_0x2e979d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2e979d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x395942)[_0x2e979d([0x73,0x6f,0x72,0x74])]()[_0x2e979d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x49e341,_0x462acc])=>{_0x440bc4(_0x49e341),_0x1f4193(_0x462acc);}):_0x440bc4(window[_0x2e979d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x395942));}return _0x1f4193(_0x4ac38e),_0x2be277>>>0x0;}function _0x54da1f(_0x2f040d){return _0x2f040d[_0x2e979d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2e979d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2e979d([0x30]));}function _0x1851ea(_0x1ac9e1){return _0x1ac9e1[_0x2e979d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2e979d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2e979d([0x6a,0x6f,0x69,0x6e])]('');}function _0xb02f6d(_0x2ffb23){return _0x588f28[_0x2e979d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e979d([0x68,0x61,0x73])](_0x2ffb23);}function _0x142888(_0x5daf0b){return _0x588f28[_0x2e979d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2e979d([0x67,0x65,0x74])](_0x5daf0b);}function _0x784bae(){}function _0x2e979d(_0x450539){return _0x450539['map'](_0x5e1d38=>String['fromCharCode'](_0x5e1d38))['join']('');}_0x1e8494(await _0x4debb0());}(this);}set['adapter'](_0x3191c2){if(this['_adapter'])throw new _0x1ed401('track-changes-adapter-already-set',this);this['_adapter']=_0x3191c2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x84aa6e=!0x1,toJSON:_0x50f55a=!0x1}={}){const _0x374373=[];for(const _0x87803e of this['_suggestions']['values']())_0x84aa6e&&!_0x87803e['isInContent']||_0x374373['push'](_0x87803e);return _0x50f55a?_0x374373['map'](_0x508ae1=>_0x508ae1['toJSON']()):_0x374373;}['getSuggestion'](_0x7759cc){const _0x2bb2e9=this['_suggestions']['get'](_0x7759cc);if(!_0x2bb2e9)throw new _0x1ed401('track-changes-suggestion-not-found',this);return _0x2bb2e9;}['hasSuggestion'](_0x3c72d3){return this['_suggestions']['has'](_0x3c72d3);}['addSuggestionData'](_0x25f4d4){const {authorId:_0x14896c,id:_0x431376,attributes:_0x5bcf8c}=_0x25f4d4,[_0x46d680,_0x92428e]=_0x25f4d4['type']['split'](':'),_0x41e1ed=this['_suggestions']['get'](_0x431376)||this['_createSuggestion'](_0x46d680,_0x92428e,_0x431376,_0x14896c,_0x5bcf8c);if(this['_addThreadToSuggestion'](_0x41e1ed),this['_checkSuggestionCorrectness'](_0x41e1ed,_0x46d680,_0x92428e||null,_0x14896c),_0x41e1ed['createdAt']=_0x25f4d4['createdAt'],_0x41e1ed['_isDataLoaded']=!0x0,_0x5bcf8c&&_0x5bcf8c['@external']){const _0x5ca40a=_0x5bcf8c['@external'],_0x2456d3=this['_getExternalAuthor'](_0x5ca40a['authorName']);_0x41e1ed['authoredAt']=_0x5ca40a['createdAt'],_0x41e1ed['author']=_0x2456d3,_0x41e1ed['isExternal']=!0x0;}else _0x41e1ed['authoredAt']=_0x25f4d4['createdAt'];switch(_0x25f4d4['data']&&(_0x41e1ed['data']=_0x25f4d4['data']),_0x25f4d4['attributes']&&(_0x41e1ed['attributes']=_0x25f4d4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x41e1ed['_saved']=!0x0),this['_suggestionState']['get'](_0x41e1ed)){case'notReady':this['_suggestionState']['set'](_0x41e1ed,'dataReady');break;case'markerReady':_0x41e1ed['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x41e1ed])),this['_refreshSuggestionsChain'](new Set([_0x41e1ed])),this['_suggestionState']['set'](_0x41e1ed,'ready'),this['fire']('suggestionLoaded',_0x41e1ed)):this['_suggestionState']['set'](_0x41e1ed,'removed');}return _0x41e1ed;}['acceptSuggestion'](_0x13bcdd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3f0774 of _0x13bcdd['getAllAdjacentSuggestions']())_0x3f0774['accept']();});});}['discardSuggestion'](_0x19ea50){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x445de8 of _0x19ea50['getAllAdjacentSuggestions']())_0x445de8['discard']();});});}['enableCommand'](_0x2580c7,_0x580200){const _0x1bce5c=this['editor']['commands']['get'](_0x2580c7);if(!_0x1bce5c)throw new _0x1ed401('track-changes-command-not-found',this,{'commandName':_0x2580c7});if(this['_enabledCommands']['has'](_0x1bce5c))throw new _0x1ed401('track-changes-enable-command-twice',this,{'commandName':_0x2580c7});this['_enabledCommands']['add'](_0x1bce5c),_0x580200&&_0x1bce5c['on']('execute',(_0x52dea5,_0x117eb5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x117eb5['length']>0x0&&_0x117eb5[_0x117eb5['length']-0x1]&&_0x117eb5[_0x117eb5['length']-0x1]['forceDefaultExecution']?_0x117eb5['pop']():(_0x52dea5['return']=_0x580200((..._0x4cb207)=>_0x1bce5c['execute'](..._0x4cb207,{'forceDefaultExecution':!0x0}),..._0x117eb5),_0x52dea5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x90567a){let _0x584838,_0x4c0331;const _0x3de572=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x584838=_0x90567a();}catch(_0x185c74){_0x4c0331=_0x185c74;}return _0x3de572||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4c0331&&_0x1ed401['rethrowUnexpectedError'](_0x4c0331,this),_0x584838;}['markInsertion'](_0x441986,_0x19d8c3=null,_0x4a3487={}){if(_0x441986['isCollapsed'])return null;const _0xf4913c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3d41ad,meta:_0x348836}of this['_findSuggestions'](_0x441986,'insertion'))if(_0x348836['isOwn']){if(!_0x348836['isNextTo']){if(_0x348836['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3d41ad,_0x4a3487))continue;return _0x3d41ad;}if(Qt(_0x3d41ad,_0x4a3487))return _0x3d41ad;this['_breakSuggestionMarker'](_0x3d41ad,_0x441986['start'],_0x441986['end']);break;}if(_0x19d8c3==_0x3d41ad['subType']&&Qt(_0x3d41ad,_0x4a3487)){const _0x191a8f=_0x3d41ad['getFirstRange']();return _0x191a8f['start']['isEqual'](_0x441986['end'])?this['_setSuggestionRange'](_0x3d41ad,this['_model']['createRange'](_0x441986['start'],_0x191a8f['end'])):this['_setSuggestionRange'](_0x3d41ad,this['_model']['createRange'](_0x191a8f['start'],_0x441986['end'])),_0x3d41ad;}}const _0x4e4fe6=_0x1ea020(),_0x522390=_0xf4913c['id'],_0x425cd1=_0x19d8c3?'insertion:'+_0x19d8c3:'insertion',_0x167a31=this['_setSuggestionData']({'id':_0x4e4fe6,'type':_0x425cd1,'createdAt':new Date(),'authorId':_0x522390,'attributes':_0x4a3487});return this['_addSuggestionMarker'](_0x425cd1,_0x4e4fe6,_0x522390,_0x441986),_0x167a31;}['markMultiRangeInsertion'](_0x3fb1b0,_0x214fa3='multi',_0x55463a={}){const _0x34b176=this['editor']['plugins']['get']('Users')['me'],_0x4c0491=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x214fa3,'join');for(const _0x1c34fa of this['getSuggestions']())if(_0x1c34fa['author']['id']==_0x34b176['id']&&'insertion'==_0x1c34fa['type']&&_0x1c34fa['subType']==_0x214fa3&&Qt(_0x1c34fa,_0x55463a)&&(_0x4c0491(_0x1c34fa['getRanges'](),_0x3fb1b0)||_0x4c0491(_0x3fb1b0,_0x1c34fa['getRanges']()))){for(const _0x4e2088 of _0x3fb1b0)_0x1c34fa['addRange'](_0x4e2088);return _0x1c34fa;}for(const {suggestion:_0x3d25d4,meta:_0x172300}of this['_findSuggestions'](_0x3fb1b0,'insertion')){if(!_0x172300['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x172300['containsRangeInObject'])continue;if(!Qt(_0x3d25d4,_0x55463a))continue;let _0x2d27cb=!0x0;for(const _0x110b68 of _0x3d25d4['getRanges']())for(const _0x5b9195 of _0x3fb1b0)if(!_0x110b68['containsRange'](_0x5b9195)){_0x2d27cb=!0x1;break;}if(_0x2d27cb)return _0x3d25d4;}const _0x3356a9=_0x1ea020(),_0x3f472f=_0x34b176['id'],_0x98984='insertion:'+_0x214fa3,_0x29dd2b=this['_setSuggestionData']({'id':_0x3356a9,'type':_0x98984,'createdAt':new Date(),'authorId':_0x3f472f,'attributes':_0x55463a});for(const _0xd7db1f of _0x3fb1b0)this['_addSuggestionMarker'](_0x98984,_0x3356a9,_0x3f472f,_0xd7db1f,u['getMultiRangeId']());return _0x29dd2b;}['markInlineFormat'](_0x4af0c1,_0x289110,_0x1ba0be=null,_0x59f362={}){if(_0x1ba0be=_0x1ba0be||Jt(_0x289110),_0x4af0c1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5546ff=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1ba0be,'accept');return this['forceDefaultExecution'](()=>_0x5546ff([_0x4af0c1],_0x289110,_0x59f362)),null;}const _0x586b28=this['editor']['plugins']['get']('Users')['me'],_0x5acd8d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4d444f,meta:_0x11ee73}of this['_findSuggestions'](_0x4af0c1,'insertion'))_0x11ee73['isOwn']&&!_0x11ee73['isInsideObject']&&_0x5acd8d['push'](..._0x4d444f['getRanges']());}const _0x5f50c6=function(_0x1277fc,_0x4c9564){const _0x38f3dd=[];for(const _0x36d993 of _0x4c9564){const _0xd4d4b0=_0x1277fc['getIntersection'](_0x36d993);_0xd4d4b0&&_0x38f3dd['push'](_0xd4d4b0);}return _0x38f3dd;}(_0x4af0c1,_0x5acd8d),_0x2b019c=function(_0x54f0d8,_0x463116){const _0x4d5e71=[_0x54f0d8];for(const _0x467993 of _0x463116){let _0x5208a8=0x0;for(;_0x5208a8<_0x4d5e71['length'];){const _0x45dbc8=_0x4d5e71[_0x5208a8]['getDifference'](_0x467993);_0x4d5e71['splice'](_0x5208a8,0x1,..._0x45dbc8),_0x5208a8+=_0x45dbc8['length'];}}return _0x4d5e71;}(_0x4af0c1,_0x5acd8d);_0x5f50c6['length']&&this['_model']['change'](()=>{for(const _0x275dbd of _0x5f50c6){const _0x31fb02=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1ba0be,'accept');this['forceDefaultExecution'](()=>_0x31fb02([_0x275dbd],_0x289110,_0x59f362));}});for(const _0x221803 of _0x2b019c){let _0x4b4c13=null,_0x320472=_0x221803['start'],_0x1a19f7=_0x221803['end'];for(const {suggestion:_0x21dff9,meta:_0x40d351}of this['_findSuggestions'](_0x221803,'formatInline')){if(!_0x40d351['isOwn'])continue;if(_0x21dff9['subType']!=_0x1ba0be)continue;if(!Qt(_0x21dff9,_0x59f362))continue;const _0x20b939=_0x21dff9['getFirstRange']();if(_0x20b939['containsRange'](_0x221803,!0x0))return null;_0x320472=_0x320472['isBefore'](_0x20b939['start'])?_0x320472:_0x20b939['start'],_0x1a19f7=_0x1a19f7['isAfter'](_0x20b939['end'])?_0x1a19f7:_0x20b939['end'],_0x4b4c13?_0x20b939['start']['isBefore'](_0x4b4c13['getFirstRange']()['start'])?(_0x4b4c13['removeMarkers'](),_0x4b4c13=_0x21dff9):_0x21dff9['removeMarkers']():_0x4b4c13=_0x21dff9;}const _0x5496ad=this['_model']['createRange'](_0x320472,_0x1a19f7);if(_0x4b4c13)this['_setSuggestionRange'](_0x4b4c13,_0x5496ad);else{const _0x27f2a7=_0x1ea020(),_0x2c44b3=_0x586b28['id'];this['_setSuggestionData']({'id':_0x27f2a7,'type':'formatInline:'+_0x1ba0be,'data':_0x289110,'createdAt':new Date(),'authorId':_0x2c44b3,'attributes':_0x59f362}),this['_addSuggestionMarker']('formatInline:'+_0x1ba0be,_0x27f2a7,_0x2c44b3,_0x5496ad);}}return null;}['markBlockFormat'](_0x23f2bd,_0x18260b,_0x335d4a=[],_0x1dbbd4=null,_0x30880f={}){_0x18260b['formatGroupId']||(_0x18260b['formatGroupId']=_0x18260b['commandName']),_0x18260b['multipleBlocks']=_0x23f2bd['is']('range'),_0x1dbbd4=_0x1dbbd4||Jt(_0x18260b);const _0x5d2713=_0x335d4a['map'](_0x8c6d6e=>zt(_0x8c6d6e,this['_model'])),_0x407eae=_0x23f2bd['is']('range')?_0x23f2bd:zt(_0x23f2bd,this['_model']);if('never'===this['_trackFormatChanges']){const _0x28a365=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dbbd4,'accept');return this['forceDefaultExecution'](()=>_0x28a365([_0x407eae],_0x18260b,_0x30880f)),null;}_0x5d2713['push'](_0x407eae);let _0x47aade=!0x0;for(const _0x33712d of _0x5d2713)if(!this['_rangeIsInLocalUserInsertion'](_0x33712d)){_0x47aade=!0x1;break;}if(_0x47aade&&'always'!==this['_trackFormatChanges']){const _0x2a59e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1dbbd4,'accept');return this['forceDefaultExecution'](()=>_0x2a59e7([_0x407eae],_0x18260b,_0x30880f)),null;}let _0x3ed0f1=null,_0x39167c=_0x407eae['start'],_0x299928=_0x407eae['end'];for(const {suggestion:_0x1ee759,meta:_0x47c0f9}of this['_findSuggestions'](_0x407eae,'formatBlock')){if(!_0x47c0f9['isOwn'])continue;if(_0x47c0f9['isNextTo']||_0x47c0f9['containsRangeInObject']||_0x47c0f9['isInsideObject'])continue;if(_0x1ee759['data']['formatGroupId']!=_0x18260b['formatGroupId'])continue;if(!Qt(_0x1ee759,_0x30880f))continue;const _0x59d5aa=_0x1ee759['getFirstRange']();if(_0x1ee759['subType']==_0x1dbbd4){if(_0x59d5aa['containsRange'](_0x407eae,!0x0))return null;_0x39167c=_0x39167c['isBefore'](_0x59d5aa['start'])?_0x39167c:_0x59d5aa['start'],_0x299928=_0x299928['isAfter'](_0x59d5aa['end'])?_0x299928:_0x59d5aa['end'],_0x3ed0f1?_0x59d5aa['start']['isBefore'](_0x3ed0f1['getFirstRange']()['start'])?(_0x3ed0f1['removeMarkers'](),_0x3ed0f1=_0x1ee759):_0x1ee759['removeMarkers']():_0x3ed0f1=_0x1ee759;}else{const _0x2da8f3=_0x407eae['getIntersection'](_0x59d5aa);this['_cutOutSuggestionMarker'](_0x1ee759,_0x2da8f3);}}const _0x56f135=this['editor']['plugins']['get']('Users')['me'],_0x2b2739=_0x1ea020(),_0x49e634=_0x56f135['id'];if(_0x3ed0f1)return this['_setSuggestionRange'](_0x3ed0f1,this['_model']['createRange'](_0x39167c,_0x299928)),_0x3ed0f1;{const _0x5e14d6=this['_setSuggestionData']({'id':_0x2b2739,'type':'formatBlock:'+_0x1dbbd4,'data':_0x18260b,'createdAt':new Date(),'authorId':_0x49e634,'attributes':_0x30880f});return this['_addSuggestionMarker']('formatBlock:'+_0x1dbbd4,_0x2b2739,_0x49e634,this['_model']['createRange'](_0x39167c,_0x299928)),_0x5e14d6;}}['markMultiRangeBlockFormat'](_0x5cec4,_0x775305,_0x392862=[],_0x1e2f13=null,_0x4158be={}){_0x775305['formatGroupId']||(_0x775305['formatGroupId']=_0x775305['commandName']);const _0x17ce61=_0x5cec4[0x0];_0x775305['multipleBlocks']=_0x17ce61['is']('range'),_0x1e2f13=_0x1e2f13||Jt(_0x775305);const _0x1b2a51=_0x392862['map'](_0x366bd8=>zt(_0x366bd8,this['_model'])),_0x525f90=_0x17ce61['is']('range')?_0x5cec4:_0x5cec4['map'](_0x357934=>zt(_0x357934,this['_model']));if('never'===this['_trackFormatChanges']){const _0x4eb66b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e2f13,'accept');return this['forceDefaultExecution'](()=>_0x4eb66b(_0x525f90,_0x775305,_0x4158be)),null;}_0x1b2a51['push'](..._0x525f90);let _0x3595af=!0x0;for(const _0x18edaa of _0x1b2a51)if(!this['_rangeIsInLocalUserInsertion'](_0x18edaa)){_0x3595af=!0x1;break;}if(_0x3595af&&'always'!==this['_trackFormatChanges']){const _0x10adb0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e2f13,'accept');return this['forceDefaultExecution'](()=>_0x10adb0(_0x525f90,_0x775305,_0x4158be)),null;}const _0x40ce69=this['editor']['plugins']['get']('Users')['me'];for(const _0x5b9fe6 of this['getSuggestions']()){if(_0x5b9fe6['author']['id']!=_0x40ce69['id'])continue;if('formatBlock'!=_0x5b9fe6['type']||_0x5b9fe6['data']['formatGroupId']!=_0x775305['formatGroupId'])continue;if(!Qt(_0x5b9fe6,_0x4158be))continue;const _0x33387a=_0x5b9fe6['subType']==_0x1e2f13;for(let _0x2a4c1c=0x0;_0x2a4c1c<_0x525f90['length'];_0x2a4c1c++){const _0x3a8572=_0x525f90[_0x2a4c1c];for(const _0x304007 of _0x5b9fe6['getMarkers']()){const _0x4d3d69=_0x304007['getRange']();if(_0x3a8572['isEqual'](_0x4d3d69)){_0x33387a?(_0x525f90['splice'](_0x2a4c1c,0x1),_0x2a4c1c--):_0x5b9fe6['removeMarker'](_0x304007['name']);break;}}}}if(0x0==_0x525f90['length'])return null;const _0x29682f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e2f13,'join');for(const _0x4edf62 of this['getSuggestions']())if(_0x4edf62['author']['id']==_0x40ce69['id']&&'formatBlock'==_0x4edf62['type']&&_0x4edf62['data']['formatGroupId']==_0x775305['formatGroupId']&&_0x4edf62['subType']==_0x1e2f13&&Qt(_0x4edf62,_0x4158be)&&(_0x29682f(_0x4edf62['getRanges'](),_0x525f90)||_0x29682f(_0x525f90,_0x4edf62['getRanges']()))){for(const _0x24cc1f of _0x525f90)_0x4edf62['addRange'](_0x24cc1f);return _0x4edf62;}const _0x58a09a=_0x1ea020(),_0x37bb0b=_0x40ce69['id'],_0x1fdd56='formatBlock:'+_0x1e2f13,_0x56cbc1=this['_setSuggestionData']({'id':_0x58a09a,'type':_0x1fdd56,'data':_0x775305,'createdAt':new Date(),'authorId':_0x37bb0b,'attributes':_0x4158be});for(const _0x1d63be of _0x525f90)this['_addSuggestionMarker'](_0x1fdd56,_0x58a09a,_0x37bb0b,_0x1d63be,u['getMultiRangeId']());return _0x56cbc1;}['markDeletion'](_0x53d502,_0x337a51=null,_0x258df4={}){if(_0x53d502['isCollapsed'])return null;const _0x789d66=this['editor']['plugins']['get']('Users')['me'],_0x5714be=new _0x13f7d0(_0x53d502['start'],_0x53d502['end']);for(const {suggestion:_0x18da66,meta:_0x18b2ee}of this['_findSuggestions'](_0x5714be,'insertion'))if(_0x18b2ee['isOwn']&&!_0x18b2ee['isNextTo']){if(_0x18da66['isMultiRange']){const _0x227e41=_0x18da66['getRanges']()['filter'](_0x3411b5=>'$graveyard'!=_0x3411b5['root']['rootName']);_0x227e41['every'](_0x19f7e3=>_0x5714be['containsRange'](_0x19f7e3,!0x0))&&_0x18da66['discard']();if(_0x227e41['some'](_0x16650b=>_0x16650b['containsRange'](_0x5714be,!0x0))){const _0x2c9431=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x337a51,'accept');return this['forceDefaultExecution'](()=>_0x2c9431([_0x5714be],null,_0x258df4)),null;}}else{const _0x63745e=_0x5714be['getIntersection'](_0x18da66['getFirstRange']());null!==_0x63745e&&_0x18da66['_onDiscard']([_0x63745e],null,_0x258df4);}}if(_0x5714be['detach'](),_0x5714be['isCollapsed']||'$graveyard'==_0x5714be['root']['rootName'])return null;let _0x491431=null,_0x50e631=_0x5714be['start'],_0x342c18=_0x5714be['end'];const _0x12df82=this['_findSuggestions'](_0x5714be,'deletion');for(const {suggestion:_0x17685f,meta:_0x417712}of _0x12df82){const _0x47edce=this['_model']['createRange'](_0x50e631,_0x342c18);if(_0x417712['isOwn']&&(this['_mergeNestedSuggestions']||!_0x417712['containsRangeInObject']&&!_0x417712['isInsideObject'])){if(_0x17685f['isMultiRange']){if(!Qt(_0x17685f,_0x258df4))continue;let _0x162aa2=!0x0;for(const _0x3d15f8 of _0x17685f['getRanges']()){if(_0x3d15f8['containsRange'](_0x47edce,!0x0))return _0x17685f;_0x47edce['containsRange'](_0x3d15f8)||(_0x162aa2=!0x1);}_0x162aa2&&_0x17685f['discard']();}else{const _0x33b74f=_0x17685f['getFirstRange']();if(_0x33b74f['containsRange'](_0x47edce,!0x0))return _0x17685f;if(!Qt(_0x17685f,_0x258df4)){_0x47edce['containsRange'](_0x33b74f)?_0x17685f['removeMarkers']():_0x33b74f['containsPosition'](_0x50e631)?_0x50e631=_0x33b74f['end']:_0x33b74f['containsPosition'](_0x342c18)&&(_0x342c18=_0x33b74f['start']);continue;}_0x50e631=_0x50e631['isBefore'](_0x33b74f['start'])?_0x50e631:_0x33b74f['start'],_0x342c18=_0x342c18['isAfter'](_0x33b74f['end'])?_0x342c18:_0x33b74f['end'],_0x258df4=Object['assign']({},_0x17685f['attributes']),_0x491431?_0x33b74f['start']['isBefore'](_0x491431['getFirstRange']()['start'])?(_0x491431['removeMarkers'](),_0x491431=_0x17685f):_0x17685f['removeMarkers']():_0x491431=_0x17685f;}}}if(_0x491431)return this['_setSuggestionRange'](_0x491431,this['_model']['createRange'](_0x50e631,_0x342c18)),_0x491431;{const _0xecebcf=_0x1ea020(),_0x3742f7=this['_model']['createRange'](_0x50e631,_0x342c18),_0x34a5db=_0x789d66['id'],_0x36249d=_0x337a51?'deletion:'+_0x337a51:'deletion',_0x3c3163=this['_setSuggestionData']({'id':_0xecebcf,'type':_0x36249d,'createdAt':new Date(),'authorId':_0x34a5db,'attributes':_0x258df4});return this['_addSuggestionMarker'](_0x36249d,_0xecebcf,_0x34a5db,_0x3742f7),_0x3c3163;}}['markMultiRangeDeletion'](_0x294c09,_0x494792='multi',_0x2e8d85={}){const _0x17b41d=this['editor']['plugins']['get']('Users')['me'],_0x2fd565=_0x294c09['map'](_0x39cb66=>new _0x13f7d0(_0x39cb66['start'],_0x39cb66['end'])),_0x3e4b1a=new Set();for(const {suggestion:_0x201102,meta:_0x27cbea}of this['_findSuggestions'](_0x2fd565,'insertion'))_0x27cbea['isOwn']&&!_0x27cbea['isNextTo']&&_0x3e4b1a['add'](_0x201102);for(const _0x190b5b of _0x3e4b1a)if(_0x190b5b['isMultiRange']){const _0x5b295b=_0x190b5b['getRanges']();(!_0x190b5b['attributes']||!_0x190b5b['attributes']['skipNestingCheck'])&&(_0x5b295b['every'](_0x5bc0da=>_0x2fd565['some'](_0x1f2c50=>_0x1f2c50['containsRange'](_0x5bc0da,!0x0)))&&_0x190b5b['discard']());if(_0x2fd565['every'](_0xf3b86e=>_0x5b295b['some'](_0x2fefef=>_0x2fefef['containsRange'](_0xf3b86e,!0x0)))){const _0x324c99=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x494792,'accept');return this['forceDefaultExecution'](()=>_0x324c99(_0x294c09,null,_0x2e8d85)),null;}}else{const _0x36a899=_0x190b5b['getFirstRange']();_0x2fd565['some'](_0x37c9a8=>_0x37c9a8['containsRange'](_0x36a899,!0x0))&&_0x190b5b['discard']();if(_0x2fd565['every'](_0x58ad62=>_0x36a899['containsRange'](_0x58ad62,!0x0))){const _0x1d48a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x494792,'accept');return this['forceDefaultExecution'](()=>_0x1d48a3(_0x2fd565,null,_0x2e8d85)),null;}}const _0x5ef08b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x494792,'join');let _0x3c0feb=null;for(const _0x2e3834 of this['getSuggestions']())if(_0x2e3834['author']['id']==_0x17b41d['id']&&_0x2e3834['isInContent']&&'deletion'==_0x2e3834['type']&&_0x2e3834['subType']==_0x494792&&Qt(_0x2e3834,_0x2e8d85)&&(_0x5ef08b(_0x2e3834['getRanges'](),_0x2fd565)||_0x5ef08b(_0x2fd565,_0x2e3834['getRanges']()))){if(_0x3c0feb){if(_0x2e3834['commentThread']&&_0x2e3834['commentThread']['length'])continue;for(const _0x12f7fe of _0x2e3834['getRanges']())_0x3c0feb['isIntersectingWithRange'](_0x12f7fe)||_0x3c0feb['addRange'](_0x12f7fe);_0x2e3834['removeMarkers']();}else{_0x3c0feb=_0x2e3834;for(const _0x159285 of _0x2fd565)_0x2e3834['isIntersectingWithRange'](_0x159285)||_0x2e3834['addRange'](_0x159285);}}if(_0x3c0feb)return _0x3c0feb;_0x3e4b1a['clear']();for(const {suggestion:_0x946a3a,meta:_0x37910b}of this['_findSuggestions'](_0x2fd565,'deletion'))_0x37910b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x37910b['containsRangeInObject']&&!_0x37910b['isInsideObject'])&&Qt(_0x946a3a,_0x2e8d85)&&_0x3e4b1a['add'](_0x946a3a);for(const _0x37acb0 of _0x3e4b1a){const _0x575104=_0x37acb0['getRanges']();if(!_0x2e8d85||!_0x2e8d85['skipNestingCheck']){if(_0x2fd565['every'](_0x406a20=>_0x575104['some'](_0x285e40=>_0x285e40['containsRange'](_0x406a20,!0x0))))return _0x37acb0;}(!_0x37acb0['attributes']||!_0x37acb0['attributes']['skipNestingCheck'])&&(_0x575104['every'](_0x1d45f6=>_0x2fd565['some'](_0x3bf771=>_0x3bf771['containsRange'](_0x1d45f6,!0x0)))&&_0x37acb0['discard']());}const _0x44a98d=_0x1ea020(),_0x545642=_0x17b41d['id'],_0x5b3348='deletion:'+_0x494792,_0x5ccbc9=this['_setSuggestionData']({'id':_0x44a98d,'type':_0x5b3348,'createdAt':new Date(),'authorId':_0x545642,'attributes':_0x2e8d85});for(const _0xd2e0 of _0x2fd565)_0xd2e0['detach'](),_0xd2e0['isCollapsed']||'$graveyard'==_0xd2e0['root']['rootName']||this['_addSuggestionMarker'](_0x5b3348,_0x44a98d,_0x545642,_0xd2e0,u['getMultiRangeId']());return _0x5ccbc9;}['markAttributeChange'](_0x3448a7,_0x4cc87c,_0xf120a3,_0x14632c,_0x26ed2e){if(_0x3448a7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x468b73=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e2b1e=Array['from'](this['_suggestions']['values']())['filter'](_0x27adee=>'attribute'==_0x27adee['type']&&_0x27adee['data']['key']==_0x4cc87c&&_0x27adee['isIntersectingWithRange'](_0x3448a7));if('default'===this['_trackFormatChanges']){const _0x4d054d=this['_findSuggestions'](_0x3448a7,'insertion')['filter'](({meta:_0x2bf38b})=>_0x2bf38b['isOwn']&&!_0x2bf38b['isInsideObject']&&!_0x2bf38b['isNextTo'])['map'](({suggestion:_0x118b95})=>_0x118b95);_0x3e2b1e['unshift'](..._0x4d054d);}const _0x2e2414=new Map([[_0x3448a7,_0xf120a3]]);for(const _0x16de8c of _0x3e2b1e){const _0x37c495='attribute'==_0x16de8c['type']?_0x16de8c['data']['oldValue']:void 0x0,_0x19b48d=_0x16de8c['getFirstRange'](),_0x3084a5=Array['from'](_0x2e2414['keys']())['find'](_0x155fb4=>_0x155fb4['isIntersecting'](_0x19b48d));if(!_0x3084a5)continue;const _0x5f4912=_0x3084a5['getDifference'](_0x19b48d);this['_isBlockAttribute'](_0x4cc87c)&&'insertion'==_0x16de8c['type']&&0x0!=_0x5f4912['length']||(_0x2e2414['delete'](_0x3084a5),_0x5f4912['forEach'](_0xc241ca=>{_0x2e2414['set'](_0xc241ca,_0xf120a3);}),'insertion'!=_0x16de8c['type']&&_0x37c495!=_0x14632c&&_0x2e2414['set'](_0x3084a5['getIntersection'](_0x19b48d),_0x37c495));}const _0x4bda76=[];for(const [_0xab1b6f,_0x2cab77]of _0x2e2414){const _0xcdfe58=_0x1ea020(),_0x5152c7={'key':_0x4cc87c,'oldValue':_0x2cab77,'newValue':_0x14632c};_0x4cc87c['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':_0x4cc87c});const _0x53fa99=('attribute:'+(_0x4cc87c+'|'+Jt({'newValue':_0x14632c})))['substring'](0x0,0x3c),_0x31d013=this['_setSuggestionData']({'id':_0xcdfe58,'type':_0x53fa99,'data':_0x5152c7,'createdAt':new Date(),'authorId':_0x468b73,'attributes':_0x26ed2e});_0x4bda76['push'](_0x31d013),this['_addSuggestionMarker'](_0x53fa99,_0xcdfe58,_0x468b73,_0xab1b6f);}return _0x4bda76;}['enableDefaultAttributesIntegration'](_0xceb875){this['enableCommand'](_0xceb875,(_0x7ffaaf,..._0x554f58)=>{this['_recordAttributeChanges'](()=>{_0x7ffaaf(..._0x554f58);});});}['registerBlockAttribute'](_0x12adb3){this['_blockAttributeKeys']['add'](_0x12adb3);}['registerInlineAttribute'](_0x36ffd4){this['_inlineAttributeKeys']['add'](_0x36ffd4);}['_getAttributeKey'](_0x33a8b4){return'attribute'==_0x33a8b4['type']?_0x33a8b4['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x37e8e1,_0x47e31e){const _0x23e005=_0x37e8e1['getFirstMarker']();this['_model']['change'](_0x18cfb2=>{_0x18cfb2['updateMarker'](_0x23e005,{'range':_0x47e31e});});}['_addThreadToSuggestion'](_0x407d4b){const _0x392ab9=_0x407d4b['id'],_0x2d253f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x392ab9)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2d253f,'threadId':_0x392ab9,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5a1faf=this['_commentsRepository']['getCommentThread'](_0x392ab9);_0x5a1faf['unbind']('isRemovable'),_0x5a1faf['isRemovable']=!0x1,_0x407d4b['commentThread']=_0x5a1faf;}['_checkSuggestionCorrectness'](_0x415bf4,_0x302566,_0x5dc929,_0x4d9860){if(_0x415bf4['type']!=_0x302566||_0x415bf4['subType']!=_0x5dc929||_0x415bf4['creator']['id']!=_0x4d9860)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ed401('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5818a3,_0x33bf01){const _0x284306=_0x5818a3['getFirstRange']();if(_0x33bf01['isEqual'](_0x284306))_0x5818a3['removeMarkers']();else{if(_0x284306['containsRange'](_0x33bf01)){const _0x5e0a89=this['_model']['createPositionAt'](_0x33bf01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5818a3,this['_model']['createRange'](_0x284306['start'],_0x5e0a89));const _0x5defdc=_0x1ea020(),_0x768ec2=_0x5818a3['creator']['id'],_0x427f46=_0x5818a3['type']+':'+_0x5818a3['subType'];this['_setSuggestionData']({'id':_0x5defdc,'type':_0x427f46,'createdAt':new Date(),'authorId':_0x768ec2,'data':_0x5818a3['data'],'attributes':_0x5818a3['attributes']});const _0x330e8f=this['_model']['createPositionAt'](_0x33bf01['end']['parent'],'after'),_0xce0b7b=this['_model']['createRange'](_0x330e8f,_0x284306['end']);this['_addSuggestionMarker'](_0x427f46,_0x5defdc,_0x768ec2,_0xce0b7b);}else{if(_0x284306['containsPosition'](_0x33bf01['start'])){const _0x2c3caf=this['_model']['createPositionAt'](_0x33bf01['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5818a3,this['_model']['createRange'](_0x284306['start'],_0x2c3caf));}else{const _0x5206a2=this['_model']['createPositionAt'](_0x33bf01['end']['parent'],'after');this['_setSuggestionRange'](_0x5818a3,this['_model']['createRange'](_0x5206a2,_0x284306['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x468087){for(const {suggestion:_0x2357ae,meta:_0x265a8d}of this['_findSuggestions'](_0x468087,'insertion')){if(!_0x265a8d['isOwn'])continue;const _0x46fcea=_0x2357ae['getRanges']();for(const _0x567043 of _0x46fcea)if(!_0x468087['getDifference'](_0x567043)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4cf6ca){const _0x1b95d9=this['editor']['plugins']['get']('Users')['getUser'](_0x4cf6ca);if(!_0x1b95d9)throw new _0x1ed401('track-changes-user-not-found',this);return _0x1b95d9;}['_getExternalAuthor'](_0x50eb93){const _0x55667f=this['editor']['plugins']['get']('Users'),_0x569817=_0x36ee07('external:'+_0x50eb93),_0x3ed81f=_0x55667f['getUser'](_0x569817);return _0x3ed81f||_0x55667f['addUser']({'id':_0x569817,'name':_0x50eb93});}['_createSuggestion'](_0x2c20cc,_0x2dd4a8,_0x227303,_0x3d3deb,_0x4563af){const _0x36c1d6=this['_getAuthorFromId'](_0x3d3deb),_0x57b174=this['_suggestionFactory']['buildSuggestion'](_0x2c20cc,_0x2dd4a8,_0x227303,_0x36c1d6,_0x4563af,_0x54e77e=>{this['_updateSuggestionData'](_0x227303,{'attributes':_0x54e77e});const _0x3ea08c=this['getSuggestion'](_0x227303);this['_joinWithAdjacentSuggestions'](new Set([_0x3ea08c])),this['_refreshSuggestionsChain'](new Set([_0x3ea08c]));});return this['listenTo'](_0x57b174,'accept',()=>{this['_updateSuggestionData'](_0x227303,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x57b174,'discard',()=>{this['_updateSuggestionData'](_0x227303,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x227303,_0x57b174),this['_suggestionState']['set'](_0x57b174,'notReady'),_0x57b174;}['_splitMarkerName'](_0x5eedbe){const _0x403984=_0x5eedbe['split'](':');return{'group':_0x403984[0x0],'type':_0x403984[0x1],'subType':_0x403984['length']>=0x5?_0x403984[0x2]:null,'id':_0x403984['length']<0x5?_0x403984[0x2]:_0x403984[0x3],'authorId':_0x403984['length']<0x5?_0x403984[0x3]:_0x403984[0x4],'markerCount':0x6==_0x403984['length']?_0x403984[0x5]:null};}['_breakSuggestionMarker'](_0x4631b3,_0x8762fb,_0x946c19){const _0x392614=_0x4631b3['getFirstRange'](),_0x1dfbfd=_0x392614['start'],_0x8ab8dd=_0x392614['end'];this['_setSuggestionRange'](_0x4631b3,this['_model']['createRange'](_0x1dfbfd,_0x8762fb));const _0x109f5b=_0x1ea020(),_0x426d3d=_0x4631b3['creator']['id'],_0x186a49=_0x4631b3['type']+(_0x4631b3['subType']?':'+_0x4631b3['subType']:'');this['_setSuggestionData']({'id':_0x109f5b,'type':_0x186a49,'createdAt':new Date(),'authorId':_0x426d3d,'originalSuggestionId':_0x4631b3['id'],'attributes':_0x4631b3['attributes'],'data':_0x4631b3['data']});const _0x3b9863=this['_getAttributeKey'](_0x4631b3);('formatBlock'==_0x4631b3['type']||_0x3b9863&&this['_isBlockAttribute'](_0x3b9863))&&(_0x946c19=this['_model']['createPositionBefore'](_0x946c19['parent'])),this['_addSuggestionMarker'](_0x186a49,_0x109f5b,_0x426d3d,this['_model']['createRange'](_0x946c19,_0x8ab8dd));}['_findSuggestions'](_0x186ac7,_0x3e379f=null){const _0x4b9693=[],_0x25ba8f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x186ac7)||(_0x186ac7=[_0x186ac7]);for(const _0x2360a4 of this['getSuggestions']()){if(!_0x2360a4['isInContent'])continue;if(_0x3e379f&&_0x2360a4['type']!=_0x3e379f)continue;let _0x5a4f88=!0x1;for(const _0x3e2dbf of _0x2360a4['getRanges']()){for(const _0x22ebcf of _0x186ac7){const _0x1c8062=_0x22ebcf['start']['isEqual'](_0x3e2dbf['end'])||_0x22ebcf['end']['isEqual'](_0x3e2dbf['start']);if(_0x1c8062||_0x22ebcf['getIntersection'](_0x3e2dbf)){const _0x46acd9=_0x22ebcf['containsRange'](_0x3e2dbf)&&Gt(this['_model']['schema'],_0x3e2dbf['start'],_0x22ebcf),_0x1e46ea=_0x3e2dbf['containsRange'](_0x22ebcf)&&Gt(this['_model']['schema'],_0x22ebcf['start'],_0x3e2dbf);_0x4b9693['push']({'suggestion':_0x2360a4,'meta':{'isOwn':_0x25ba8f==_0x2360a4['author'],'isNextTo':_0x1c8062,'isInsideObject':_0x46acd9,'containsRangeInObject':_0x1e46ea}}),_0x5a4f88=!0x0;break;}}if(_0x5a4f88)break;}}return _0x4b9693;}['_addSuggestionMarker'](_0x437d88,_0x5c947d,_0x2a021f,_0xac91c1,_0x1a45ec){this['_model']['change'](_0x47aeaa=>{let _0x3821f6='suggestion:'+_0x437d88+':'+_0x5c947d+':'+_0x2a021f;_0x1a45ec&&(_0x3821f6=_0x3821f6+':'+_0x1a45ec),_0x47aeaa['addMarker'](_0x3821f6,{'range':_0xac91c1,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x36e7f2){const _0x33e337=_0x36e7f2['previous'],_0x3249a2=_0x36e7f2['next'];_0x36e7f2['previous']=null,_0x36e7f2['next']=null,null!=_0x33e337&&_0x33e337['next']==_0x36e7f2&&(_0x33e337['next']=_0x3249a2),null!=_0x3249a2&&_0x3249a2['previous']==_0x36e7f2&&(_0x3249a2['previous']=_0x33e337),'ready'==this['_suggestionState']['get'](_0x36e7f2)&&(this['_suggestionState']['set'](_0x36e7f2,'removed'),this['fire']('suggestionUnloaded',_0x36e7f2,_0x33e337,_0x3249a2));}['_setSuggestionData'](_0x1823b3){const _0x40ea53=_0x1823b3['id'],_0x349c3d=this['addSuggestionData'](_0x1823b3);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1eb6df=this['editor']['plugins']['get']('PendingActions'),_0x1cc350=_0x349c3d['hasComments'],_0x42f0d1=_0x349c3d['subType']?_0x349c3d['type']+':'+_0x349c3d['subType']:_0x349c3d['type'],_0x5996b0=this['editor']['locale'],_0x84fc02=_0x1eb6df['add'](o(_0x5996b0,'PENDING_ACTION_SUGGESTION')),_0x465556={'id':_0x40ea53,'type':_0x42f0d1,'hasComments':_0x1cc350,'data':_0x1823b3['data']||null,'originalSuggestionId':_0x1823b3['originalSuggestionId']||null,'attributes':_0x349c3d['attributes']};this['_adapter']['addSuggestion'](_0x465556)['then'](_0xa7ccc8=>{_0x349c3d['_saved']=!0x0,_0x1eb6df['remove'](_0x84fc02),_0xa7ccc8&&_0xa7ccc8['createdAt']&&(this['_suggestions']['get'](_0x40ea53)['createdAt']=_0xa7ccc8['createdAt']);})['catch'](_0x1365bc=>{throw _0x478f79('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x349c3d['discard']();}),_0x349c3d['stopListening'](),this['_suggestions']['delete'](_0x349c3d['id']),this['_suggestionState']['delete'](_0x349c3d),_0x1365bc;});}return _0x349c3d;}['_isBlockAttribute'](_0x1e58f6){return this['_blockAttributeKeys']['has'](_0x1e58f6);}['_updateSuggestionData'](_0x340d9e,_0x1abf9a){const _0x4695e6=this['editor']['plugins']['get']('PendingActions'),_0x198541=this['getSuggestion'](_0x340d9e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x198541['_saved']){const _0x194e2c=_0x4695e6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x340d9e,_0x1abf9a)['then'](()=>{_0x4695e6['remove'](_0x194e2c);});}else _0x198541['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x340d9e,_0x1abf9a);});}}['_getSuggestionData'](_0x53d513){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ed401('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x53d513);}['_handleNewSuggestionMarker'](_0x3f835a){const {id:_0x178a85,type:_0x5f589d,subType:_0x44c749,authorId:_0x5c2068}=this['_splitMarkerName'](_0x3f835a),_0x120b98=this['_suggestions']['get'](_0x178a85)||this['_createSuggestion'](_0x5f589d,_0x44c749,_0x178a85,_0x5c2068,{});switch(this['_checkSuggestionCorrectness'](_0x120b98,_0x5f589d,_0x44c749,_0x5c2068),this['_suggestionState']['get'](_0x120b98)){case'notReady':this['_getSuggestionData'](_0x178a85)['then'](_0x594697=>{let _0x566b77=Promise['resolve']();_0x594697['hasComments']&&(_0x566b77=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x178a85})),_0x566b77['then'](()=>{this['addSuggestionData'](_0x594697)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x120b98,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x178a85,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x120b98,'ready'),this['fire']('suggestionLoaded',_0x120b98);break;case'ready':this['fire']('suggestionChanged',_0x120b98);}return _0x120b98['addMarkerName'](_0x3f835a),_0x120b98;}['_refreshSuggestionsChain'](_0x18bc2d){const _0x13fdee=Array['from'](_0x18bc2d),_0x147b7d=_0x13fdee['filter'](_0x42d4cd=>'attribute'==_0x42d4cd['type']);this['_refreshAttributeSuggestionsChain'](_0x147b7d);const _0x4bd3e9=_0x13fdee['filter'](_0x4f4cad=>!_0x4f4cad['isMultiRange']&&'attribute'!=_0x4f4cad['type']),_0x587db2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x555a49=>!_0x555a49['isMultiRange']&&'attribute'!=_0x555a49['type']),_0x42840c=_0x587db2['filter'](_0x5dcc4e=>!_0x18bc2d['has'](_0x5dcc4e)),_0xce0c60=new Map(_0x587db2['map'](_0x199964=>[_0x199964,this['_suggestionFactory']['getSuggestionCallback'](_0x199964['type'],_0x199964['subType'],'chain')])),_0x42547c=new Map(_0x587db2['map'](_0x2bfa08=>[_0x2bfa08,_0x2bfa08['getFirstRange']()])),_0x4da4fa=new Set(),_0x285dbc=new Set();for(let _0x2a4d3b=0x0;_0x2a4d3b<_0x4bd3e9['length'];_0x2a4d3b++)_0x46c9eb(_0x4bd3e9[_0x2a4d3b],_0x4bd3e9,_0x2a4d3b+0x1);for(let _0x29c764=0x0;_0x29c764<_0x4bd3e9['length'];_0x29c764++)_0x46c9eb(_0x4bd3e9[_0x29c764],_0x42840c,0x0);const _0x51a67a=new Set();for(let _0x1d2ce9=0x0;_0x1d2ce9<_0x4bd3e9['length'];_0x1d2ce9++){const _0x9fd21=_0x4bd3e9[_0x1d2ce9];!_0x285dbc['has'](_0x9fd21)&&_0x9fd21['previous']&&(_0x51a67a['add'](_0x9fd21['previous']),_0x9fd21['previous']['next']===_0x9fd21&&(_0x9fd21['previous']['next']=null),_0x9fd21['previous']=null),!_0x4da4fa['has'](_0x9fd21)&&_0x9fd21['next']&&(_0x51a67a['add'](_0x9fd21['next']),_0x9fd21['next']['previous']===_0x9fd21&&(_0x9fd21['next']['previous']=null),_0x9fd21['next']=null);}function _0x46c9eb(_0x305b4e,_0x37b238,_0xcd304a){for(let _0x6122d3=_0xcd304a;_0x6122d3<_0x37b238['length'];_0x6122d3++){const _0x34edba=_0x3cc1f8(_0x305b4e,_0x37b238[_0x6122d3]);_0x34edba&&(_0x34edba[0x0]['next']=_0x34edba[0x1],_0x34edba[0x1]['previous']=_0x34edba[0x0],_0x4da4fa['add'](_0x34edba[0x0]),_0x285dbc['add'](_0x34edba[0x1]));}}function _0x3cc1f8(_0x22dd61,_0x3c283e){if(_0x22dd61['author']['id']!==_0x3c283e['author']['id'])return null;const _0x3c1acc=_0xce0c60['get'](_0x22dd61)(_0x22dd61,_0x3c283e,_0x42547c['get'](_0x22dd61),_0x42547c['get'](_0x3c283e));if(!_0x3c1acc)return null;return _0xce0c60['get'](_0x3c283e)(_0x22dd61,_0x3c283e,_0x42547c['get'](_0x22dd61),_0x42547c['get'](_0x3c283e))?_0x3c1acc[0x1]['commentThread']&&_0x3c1acc[0x1]['commentThread']['length']?null:_0x3c1acc:null;}_0x51a67a['size']&&this['_refreshSuggestionsChain'](_0x51a67a);}['_refreshAttributeSuggestionsChain'](_0x233e26){if(0x0==_0x233e26['length'])return;const _0x5b59d3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x6c287c=>'attribute'==_0x6c287c['type']&&_0x6c287c['_isDataLoaded']),_0x29299c=[],_0x34fce6=new Map();for(const _0x2971c9 of _0x5b59d3){const _0x1c6e0e=_0x36ee07(_0x2971c9['attributes']);_0x34fce6['has'](_0x1c6e0e)||(_0x34fce6['set'](_0x1c6e0e,_0x29299c['length']),_0x29299c['push']([]));const _0x549dbf=_0x34fce6['get'](_0x1c6e0e);_0x29299c[_0x549dbf]['push'](_0x2971c9);}!(function(){_0x29299c['sort']((_0x32a915,_0x16e2db)=>{const _0x4d03d9=_0x32a915[0x0]['createdAt'],_0x39a022=_0x16e2db[0x0]['createdAt'];return _0x4d03d9==_0x39a022?_0x32a915[0x0]['attributes']['groupId']<_0x16e2db[0x0]['attributes']['groupId']?-0x1:0x1:_0x4d03d9<_0x39a022?-0x1:0x1;});for(const _0x132a39 of _0x29299c)_0x132a39['sort']((_0x5348df,_0x3632d8)=>_0x5348df['id']<_0x3632d8['id']?-0x1:0x1);}());for(let _0x424271=0x0;_0x424271<_0x29299c['length'];_0x424271++){if(0x0==_0x29299c[_0x424271]['length'])continue;const _0x6e4108=[];for(let _0x2fc8f4=_0x424271+0x1;_0x2fc8f4<_0x29299c['length'];_0x2fc8f4++)0x0!=_0x29299c[_0x2fc8f4]['length']&&_0x3fc556(_0x29299c[_0x424271],_0x29299c[_0x2fc8f4])&&_0x6e4108['push'](_0x2fc8f4);for(const _0x1becbf of _0x6e4108)_0x29299c[_0x424271]=_0x29299c[_0x424271]['concat'](_0x29299c[_0x1becbf]),_0x29299c[_0x1becbf]=[];}for(const _0x4c959f of _0x29299c)for(let _0x26a6bb=0x0;_0x26a6bb<_0x4c959f['length'];_0x26a6bb++){const _0x521cb2=_0x4c959f[_0x26a6bb+0x1]||null;_0x4c959f[_0x26a6bb]['next']!==_0x521cb2&&(_0x4c959f[_0x26a6bb]['next']=_0x521cb2);}for(const _0x4d943e of _0x29299c)for(let _0x22fcae=0x0;_0x22fcae<_0x4d943e['length'];_0x22fcae++){const _0x23e56e=_0x4d943e[_0x22fcae-0x1]||null;_0x4d943e[_0x22fcae]['previous']!==_0x23e56e&&(_0x4d943e[_0x22fcae]['previous']=_0x23e56e);}function _0x3fc556(_0x3efc5c,_0x580adc){if(_0x3efc5c[0x0]['attributes']['groupId']!==_0x580adc[0x0]['attributes']['groupId']&&_0x3efc5c[0x0]['author']!==_0x580adc[0x0]['author'])return!0x1;if(!function(_0x31cc21,_0xbab1af){if(!_0x31cc21['hasComments']&&!_0xbab1af['hasComments'])return!0x0;if(_0x31cc21['hasComments']&&_0xbab1af['hasComments'])return!0x1;if(_0x31cc21['hasComments']&&_0xbab1af['createdAt']<_0x31cc21['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xbab1af['hasComments']&&_0x31cc21['createdAt']<_0xbab1af['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3efc5c[0x0],_0x580adc[0x0]))return!0x1;const _0x13a370=Vt(_0x3efc5c[0x0]['attributes'],'groupId'),_0x406148=Vt(_0x580adc[0x0]['attributes'],'groupId');if(!_0x2f114e(_0x13a370,_0x406148))return!0x1;return!!_0x3efc5c['every'](_0x2ff9fb=>_0x580adc['some'](_0x1efc04=>_0x2ff9fb['getFirstRange']()['isEqual'](_0x1efc04['getFirstRange']())))&&_0x580adc['every'](_0x558893=>_0x3efc5c['some'](_0x56f327=>_0x558893['getFirstRange']()['isEqual'](_0x56f327['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x140a1e){const _0xb303c6=Array['from'](_0x140a1e),_0x23d217=this['getSuggestions']({'skipNotAttached':!0x0}),_0x359742=_0x23d217['filter'](_0x31360e=>!_0x140a1e['has'](_0x31360e)),_0x182730=new Map(_0xb303c6['map'](_0x3b9c78=>[_0x3b9c78,this['_suggestionFactory']['getSuggestionCallback'](_0x3b9c78['type'],_0x3b9c78['subType'],'join')])),_0x1e7419=new Map(_0x23d217['map'](_0xae3a3a=>[_0xae3a3a,_0xae3a3a['getRanges']()]));for(let _0x5a1416=0x0;_0x5a1416<_0xb303c6['length'];_0x5a1416++){if(_0x20eaef(this,_0xb303c6[_0x5a1416],_0xb303c6,_0x5a1416+0x1))return!0x0;}for(let _0x2d677f=0x0;_0x2d677f<_0xb303c6['length'];_0x2d677f++){if(_0x20eaef(this,_0xb303c6[_0x2d677f],_0x359742,0x0))return!0x0;}return!0x1;function _0x20eaef(_0x2e4b3f,_0x37e087,_0x51414e,_0x424e46){for(let _0x2756c1=_0x424e46;_0x2756c1<_0x51414e['length'];_0x2756c1++){const _0x1cb353=_0x51414e[_0x2756c1];if(_0x1cb353['type']!==_0x37e087['type']||_0x1cb353['author']['id']!==_0x37e087['author']['id']||_0x1cb353['subType']!==_0x37e087['subType'])continue;if(!Wt(_0x37e087,_0x1cb353))continue;if('attribute'==_0x37e087['type']&&_0x37e087['data']['oldValue']!=_0x1cb353['data']['oldValue'])continue;if('attribute'==_0x37e087['type']&&_0x2e4b3f['_isBlockAttribute'](_0x37e087['data']['key']))continue;if('formatBlock'==_0x37e087['type']){const _0x597e30=_0x2e4b3f['editor']['model'],_0x5b71e1=_0x37e087['getContainedElement']();if(_0x5b71e1&&(_0x597e30['schema']['isObject'](_0x5b71e1)||_0x597e30['schema']['isLimit'](_0x5b71e1)))continue;}const _0x574b13=_0x182730['get'](_0x37e087),_0x55c347=_0x1e7419['get'](_0x37e087),_0x5e1918=_0x1e7419['get'](_0x1cb353),_0xb521d9=_0x37e087['commentThread']&&_0x37e087['commentThread']['length'],_0x3c64ff=_0x1cb353['commentThread']&&_0x1cb353['commentThread']['length'];if(!_0xb521d9&&_0x574b13(_0x5e1918,_0x55c347))return _0x2e4b3f['_joinSuggestions'](_0x1cb353,_0x37e087),_0x1e7419['delete'](_0x37e087),!0x0;if(!_0x3c64ff&&_0x574b13(_0x55c347,_0x5e1918))return _0x2e4b3f['_joinSuggestions'](_0x37e087,_0x1cb353),_0x1e7419['delete'](_0x1cb353),!0x0;}return!0x1;}}['_joinSuggestions'](_0x270be0,_0x444dc5){if(_0x270be0['isMultiRange']){for(const _0x5a0e43 of _0x444dc5['getRanges']())_0x270be0['addRange'](_0x5a0e43);}else{const _0xa47e13=_0x444dc5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x270be0,this['_model']['createRange'](_0x270be0['getFirstRange']()['start'],_0xa47e13));}_0x444dc5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4ec7ac,_0xb3fa1d,_0x18df6b){const _0x54e677=_0x4ec7ac['startsWith']('format')||_0x4ec7ac['startsWith']('attribute')?'FORMATTING':_0x4ec7ac['toUpperCase']();return o(this['editor']['locale'],_0xb3fa1d+'_'+_0x54e677+'_SUGGESTION_ANNOUNCEMENT',_0x18df6b);}['_initAriaMarkerChangeAnnouncements'](){const _0x280708=this['editor'];if(!_0x280708['ui'])return;const {ariaLiveAnnouncer:_0x3c9f09}=_0x280708['ui'];_0x514565(this['_model'],({left:_0x5559d8,entered:_0x1605e9})=>{for(const _0x8adee of _0x5559d8){const {group:_0xf44671,type:_0x290a0}=this['_splitMarkerName'](_0x8adee['name']);if('suggestion'===_0xf44671){_0x3c9f09['announce'](this['_getMarkerAnnouncementText'](_0x290a0,'LEAVE'));break;}}for(const _0x36e180 of _0x1605e9){const {group:_0x4af237,type:_0x49306f}=this['_splitMarkerName'](_0x36e180['name']);if('suggestion'===_0x4af237){_0x3c9f09['announce'](this['_getMarkerAnnouncementText'](_0x49306f,'ENTER',_0x25398b(_0x223b84)));break;}}});}['_processAttributeChanges'](_0x3d69ff){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4510cf=this['editor'],_0x51eb22=_0x4510cf['model']['document']['differ']['getChanges']();if(0x0==_0x51eb22['length'])return!0x1;const _0x5a2418=[],_0x3b4b5c=_0x51eb22['filter'](_0x44853a=>'attribute'==_0x44853a['type']),_0x343d33=_0x51eb22['filter'](_0x3977f1=>'insert'==_0x3977f1['type']&&'$text'!=_0x3977f1['name']),_0x17c4fa=_0x51eb22['filter'](_0x103ffb=>'remove'==_0x103ffb['type']&&'$text'!=_0x103ffb['name']);for(const _0x6eb2f6 of _0x3b4b5c)_0x5a2418['push']({'key':_0x6eb2f6['attributeKey'],'newValue':_0x6eb2f6['attributeNewValue'],'oldValue':_0x6eb2f6['attributeOldValue'],'range':qt(_0x6eb2f6['range'],_0x4510cf['model'])});for(const _0x1a6261 of _0x343d33){const _0x2df696=_0x17c4fa['find'](_0x36c373=>_0x36c373['position']['isEqual'](_0x1a6261['position']));_0x2df696&&_0x5a2418['push']({'key':m,'newValue':_0x1a6261['name'],'oldValue':_0x2df696['name'],'range':_0x4510cf['model']['createRangeOn'](_0x1a6261['position']['nodeAfter'])});}return 0x0!=_0x5a2418['length']&&this['_reduceExistingSuggestions'](_0x3d69ff,_0x5a2418);}['_processAttributeSuggestions'](_0x49bb64){let _0x59bcc9=!0x1;const _0x46730a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x104bf0=>_0x104bf0['data']['newRange']&&_0x104bf0['name']['startsWith']('suggestion:attribute:'));for(const _0x5a7563 of _0x46730a){const {subType:_0x53df26,id:_0x375cb9}=this['_splitMarkerName'](_0x5a7563['name']),_0x5c2b0c=_0x53df26['split']('|')[0x0];for(const _0x50b238 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x50b238['id']!=_0x375cb9&&'attribute'==_0x50b238['type']&&_0x50b238['data']&&_0x50b238['data']['key']==_0x5c2b0c&&_0x50b238['getFirstRange']()['isIntersecting'](_0x5a7563['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x50b238,_0x5a7563['data']['newRange'],_0x49bb64),_0x59bcc9=!0x0);}return _0x59bcc9;}['_recordAttributeChanges'](_0x29a3bd){this['_recordAttributeSuggestions']=!0x0,_0x29a3bd();}['_isRegisteredAttribute'](_0x21a6eb){const _0x2ee946=this['_isBlockAttribute'](_0x21a6eb),_0x4204d=this['_inlineAttributeKeys']['has'](_0x21a6eb);return _0x2ee946||_0x4204d;}['_reduceExistingSuggestions'](_0x4f0629,_0x2e72bf){if(0x0==_0x2e72bf['length'])return!0x1;let _0x52a146=!0x1;for(const _0xe89ce4 of _0x2e72bf){const _0x21b8a=this['_findSuggestions'](_0xe89ce4['range'],'attribute')['filter'](_0x952610=>!_0x952610['meta']['isNextTo'])['map'](_0x45b106=>_0x45b106['suggestion']),_0x463f80=_0x36ee07({'newValue':_0xe89ce4['newValue']});_0x21b8a['filter'](_0x5b08ab=>{const [_0x53251a,_0x50614e]=_0x5b08ab['subType']['split']('|');return _0x53251a==_0xe89ce4['key']&&_0x50614e!=_0x463f80;})['forEach'](_0x5c3923=>{this['_reduceSuggestionAttributeRange'](_0x5c3923,_0xe89ce4['range'],_0x4f0629),_0x52a146=!0x0;});}return _0x52a146;}['_reduceSuggestionAttributeRange'](_0x42f13a,_0x43b5c0,_0x448ba9){const _0x4f2f99=_0x42f13a['getFirstRange']()['getDifference'](_0x43b5c0);0x0!==_0x4f2f99['length']?0x1!==_0x4f2f99['length']?this['_breakSuggestionMarker'](_0x42f13a,_0x43b5c0['start'],_0x43b5c0['end']):this['_setSuggestionRange'](_0x42f13a,_0x4f2f99[0x0]):_0x448ba9['removeMarker'](_0x42f13a['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x215de1){this['_editor']=_0x215de1,this['_model']=_0x215de1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x334926,_0x4c4053,_0x2e76ae,_0x5a851a,_0x7a86c7,_0x55774b){return new u(this['_model'],{'type':_0x334926,'subType':_0x4c4053,'id':_0x2e76ae,'author':_0x5a851a,'creator':_0x5a851a,'attributes':_0x7a86c7,'onAttributesChange':_0x55774b,'onAccept':(..._0x5907f3)=>this['getSuggestionCallback'](_0x334926,_0x4c4053,'accept')(..._0x5907f3),'onDiscard':(..._0x4dd673)=>this['getSuggestionCallback'](_0x334926,_0x4c4053,'discard')(..._0x4dd673)});}['registerCustomCallback'](_0x3f36d1,_0x3e8eb3,_0x4c23d7,_0x4b8ef9){const _0x91481a=_0x3f36d1+':'+_0x3e8eb3+':'+_0x4c23d7;this['_customCallbacks']['set'](_0x91481a,_0x4b8ef9);}['getSuggestionCallback'](_0x5ed9fb,_0x3f8793,_0x367a5a){const _0x46f40c=_0x5ed9fb+':'+_0x3f8793+':'+_0x367a5a;return this['_customCallbacks']['get'](_0x46f40c)||this['_defaultCallbacks']['get'](_0x5ed9fb+':'+_0x367a5a);}['_registerDefaultCallbacks'](){const _0x2f4f1e=()=>!0x1,_0x2dff4f=_0x4b963b=>{_0x4b963b['sort']((_0x2a2416,_0xa39c41)=>_0x2a2416['start']['isBefore'](_0xa39c41['start'])?0x1:-0x1),this['_model']['change'](_0x13b5d5=>{for(const _0x4b33b1 of _0x4b963b){let _0x9de338;_0x9de338=_0x4b33b1['end']['isAtEnd']&&_0x4b33b1['end']['parent']==_0x4b33b1['start']['nodeAfter']?_0x13b5d5['createSelection'](_0x4b33b1['start']['nodeAfter'],'on'):_0x13b5d5['createSelection'](_0x4b33b1),this['_model']['deleteContent'](_0x9de338,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x294d5b=(_0x3ba7d7,_0x1926f4)=>{_0x1926f4&&this['_model']['change'](_0x17346d=>{const {commandName:_0xbe1ac,commandParams:_0x3c8f48=[]}=_0x1926f4,_0x593386=_0x3ba7d7['map'](_0x54bed2=>(Ft(_0x54bed2)&&(_0x54bed2=this['_model']['createRange'](_0x54bed2['end'])),_0x54bed2))['filter'](_0x52b4d7=>'$graveyard'!==_0x52b4d7['root']['rootName']);if(_0x593386['length']<0x1)return;const _0x41b881=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x55bf8d=>_0x13f7d0['fromRange'](_0x55bf8d));_0x17346d['setSelection'](_0x593386);for(const _0x55c9ed of this['_editor']['commands']['commands']())_0x55c9ed['refresh']();_0x3c8f48['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xbe1ac,..._0x3c8f48);const _0x778731=_0x41b881['filter'](_0x42482d=>'$graveyard'!=_0x42482d['root']['rootName']);_0x778731['length']>0x0&&_0x17346d['setSelection'](_0x778731);for(const _0x46356e of _0x41b881)_0x46356e['detach']();});},_0x3df815=(_0x36cf2b,_0x5ac50f)=>0x1==_0x36cf2b['length']&&0x1==_0x5ac50f['length']&&_0x36cf2b[0x0]['end']['isEqual'](_0x5ac50f[0x0]['start']),_0xe93bb7=(_0x49f1ed,_0x48c262,_0x7b2c0f,_0x265453)=>Kt(_0x49f1ed,_0x48c262,_0x7b2c0f,_0x265453)?[_0x49f1ed,_0x48c262]:Kt(_0x48c262,_0x49f1ed,_0x265453,_0x7b2c0f)?[_0x48c262,_0x49f1ed]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2f4f1e),this['_defaultCallbacks']['set']('insertion:discard',_0x2dff4f),this['_defaultCallbacks']['set']('insertion:join',_0x3df815),this['_defaultCallbacks']['set']('insertion:chain',_0xe93bb7),this['_defaultCallbacks']['set']('deletion:accept',_0x2dff4f),this['_defaultCallbacks']['set']('deletion:discard',_0x2f4f1e),this['_defaultCallbacks']['set']('deletion:join',_0x3df815),this['_defaultCallbacks']['set']('deletion:chain',_0xe93bb7),this['_defaultCallbacks']['set']('formatInline:accept',_0x294d5b),this['_defaultCallbacks']['set']('formatInline:discard',_0x2f4f1e),this['_defaultCallbacks']['set']('formatInline:join',_0x3df815),this['_defaultCallbacks']['set']('formatInline:chain',_0x2f4f1e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x294d5b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2f4f1e),this['_defaultCallbacks']['set']('formatBlock:join',_0x3df815),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2f4f1e),this['_defaultCallbacks']['set']('attribute:accept',_0x2f4f1e),this['_defaultCallbacks']['set']('attribute:discard',(_0x33a1c0,_0x207a57)=>{if(!_0x207a57)return;const _0x2955b3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5303c4=>{if(_0x207a57['key']==m)for(const _0x14c52b of _0x33a1c0){const _0x1a8750=_0x14c52b['start']['nodeAfter'],_0x191cbc=_0x207a57['oldValue'];_0x5303c4['rename'](_0x1a8750,_0x191cbc);}else{if(_0x2955b3['_isBlockAttribute'](_0x207a57['key'])){for(const _0x35f103 of _0x33a1c0)void 0x0!==_0x207a57['oldValue']?_0x5303c4['setAttribute'](_0x207a57['key'],_0x207a57['oldValue'],_0x35f103['start']['nodeAfter']):_0x5303c4['removeAttribute'](_0x207a57['key'],_0x35f103['start']['nodeAfter']);}else{for(const _0x366042 of _0x33a1c0)_0x207a57['oldValue']?_0x5303c4['setAttribute'](_0x207a57['key'],_0x207a57['oldValue'],_0x366042):_0x5303c4['removeAttribute'](_0x207a57['key'],_0x366042);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3df815);}}function Gt(_0x569ff8,_0x113308,_0x307a33){for(const _0x22b10d of _0x113308['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x22b10d['root']==_0x22b10d)return!0x1;if(!_0x307a33['containsItem'](_0x22b10d))return!0x1;if(_0x569ff8['isObject'](_0x22b10d)||_0x569ff8['isLimit'](_0x22b10d))return!0x0;}return!0x1;}function Ft(_0x54ce07){return _0x54ce07['end']['parent']==_0x54ce07['start']['nodeAfter']&&_0x54ce07['end']['isAtStart'];}function Lt(_0x5e69ad,_0xf9862f,_0xe8ff6e,_0x35c330){const _0x3bcb5f=_0xeb5bd1=>!_0xeb5bd1['item']['is']('$textProxy')&&!_0x35c330['isObject'](_0xeb5bd1['item']),_0x5b1835=_0x5e69ad['start']['getLastMatchingPosition'](_0x3bcb5f),_0x2160ef=_0x5e69ad['end']['getLastMatchingPosition'](_0x3bcb5f,{'direction':'backward'});return(!_0x5e69ad['start']['isEqual'](_0x5b1835)||!_0x5e69ad['end']['isEqual'](_0x2160ef))&&(_0x5b1835['isBefore'](_0x2160ef)?_0xe8ff6e['updateMarker'](_0xf9862f,{'range':_0xe8ff6e['createRange'](_0x5b1835,_0x2160ef)}):_0xe8ff6e['removeMarker'](_0xf9862f),!0x0);}function Jt(_0x3fb264){return _0x36ee07(_0x3fb264);}function Ht(_0x6990af){const _0x5b98df=_0x6990af['start']['nodeAfter'];return _0x5b98df&&_0x5b98df['is']('element');}function qt(_0x23f7a7,_0x588b0f){return null==_0x23f7a7['end']['nodeBefore']&&_0x23f7a7['end']['parent']==_0x23f7a7['start']['nodeAfter']?zt(_0x23f7a7['start']['nodeAfter'],_0x588b0f):_0x23f7a7;}function zt(_0x1ca635,_0x5215a6){const _0xff2b38=_0x5215a6['schema']['isObject'](_0x1ca635)||_0x5215a6['schema']['isSelectable'](_0x1ca635);return _0x5215a6['createRange'](_0x5215a6['createPositionAt'](_0x1ca635,'before'),_0xff2b38?_0x5215a6['createPositionAfter'](_0x1ca635):_0x5215a6['createPositionAt'](_0x1ca635,'end'));}function Kt(_0x9c1b95,_0x275062,_0x45b207,_0x2d0874){return!!Wt(_0x9c1b95,_0x275062)&&_0x45b207['end']['isEqual'](_0x2d0874['start']);}function Wt(_0x24bb09,_0x1529ef){if(!_0x24bb09['_isDataLoaded']||!_0x1529ef['_isDataLoaded'])return!0x1;const _0x1f71af=new Set(Object['keys'](_0x24bb09['attributes'])),_0x9a666c=new Set(Object['keys'](_0x1529ef['attributes']));if(_0x1f71af['delete']('groupId'),_0x9a666c['delete']('groupId'),0x0==_0x1f71af['size']&&0x0==_0x9a666c['size'])return!0x0;if(_0x1f71af['size']!=_0x9a666c['size'])return!0x1;const _0x456a40={..._0x24bb09['attributes']},_0x540396={..._0x1529ef['attributes']};return delete _0x456a40['groupId'],delete _0x540396['groupId'],JSON['stringify'](_0x456a40)==JSON['stringify'](_0x540396);}function Qt(_0x1f3866,_0x13aa30){const _0x5d7954=Xt(_0x1f3866['attributes']),_0x43e5ca=Xt(_0x13aa30);if(!_0x1f3866['_isDataLoaded'])return!0x1;for(const _0x5ef52d of Object['keys'](_0x43e5ca))if(!_0x2f114e(_0x5d7954[_0x5ef52d],_0x43e5ca[_0x5ef52d]))return!0x1;return!0x0;}function Xt(_0x5b7345){const _0x2bc94d=Object['assign']({},_0x5b7345);return delete _0x2bc94d['skipNestingCheck'],delete _0x2bc94d['tablePasteChainId'],_0x2bc94d;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x15a436(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5ff1b8,_0x1d9902,_0x35540b,_0x4004aa){super(),this['model']=_0x1d9902,this['view']=_0x35540b,this['commentThreadController']=_0x4004aa,this['_editor']=_0x5ff1b8,this['_acceptCommand']=_0x5ff1b8['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5ff1b8['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x11ef35,_0x1dec26)=>_0x11ef35||_0x1dec26),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x32e90f=>_0x32e90f&&this['_editor']['model']['canEditAt'](_0x1d9902['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3e80ec=>_0x3e80ec&&this['_editor']['model']['canEditAt'](_0x1d9902['getRanges']())),this['_pendingAction']=null,_0x35540b['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x35540b,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x35540b,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x35540b,'change:isDirty',()=>{_0x35540b['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 _0x4ecc72=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4ecc72);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x58bbdd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2e0428,_0x4ba26f,_0x5bfa21,_0x8b25a3){super(_0x2e0428),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x35a036(_0x2e0428,o(_0x2e0428,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4ba26f['authoredAt']),this['bind']('authoredAt')['to'](_0x4ba26f),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',_0x4ba26f,'authoredAt',this,'descriptionParts',(_0x15041b,_0x2751df,_0x27710b)=>{const _0x48da68=_0x27710b['map'](_0x3370bd=>cs(_0x3370bd['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x15041b-0x1,_0x4ba26f['author']['name'],_0x2751df?_0x8b25a3['formatDateTime'](_0x2751df):'',new DOMParser()['parseFromString'](_0x48da68,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3b38e1(),this['focusTracker']=new _0x2bb7da(),this['keystrokes']=new _0x1ba224(),this['focusCycler']=new _0x1f52be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x6ebd92=>_0x6ebd92['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4ba26f,this['_localUser']=_0x5bfa21,this['_config']=_0x8b25a3,_0x8b25a3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x287042(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3a8573}=this['_config'];this['commentsListView']=new _0x3a8573(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',_0x423063=>_0x423063+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4e8a8b,_0xd00151)=>_0x4e8a8b||!!_0xd00151);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x542205}=this['_config'],_0x40ea58=new _0x542205(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x8718a4=_0x40ea58['commentInputView'];return _0x40ea58['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x8718a4,'value',(_0x423739,_0x16b919,_0x50bfce)=>!!_0x50bfce||_0x423739&&!_0x16b919),_0x8718a4['on']('submit',(_0x1366b7,_0x1f4f0f)=>{this['fire']('addComment',_0x1f4f0f),_0x8718a4['editor']['setData']('');}),_0x8718a4['on']('cancel',()=>this['focus']()),_0x8718a4['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x40ea58;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x330031,_0x36c2df,_0x19cb90,_0x32b399){super(_0x330031,_0x36c2df,_0x19cb90,_0x32b399),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xfb2bc8=>_0xfb2bc8&&_0xfb2bc8[0x0]?_0xfb2bc8[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4fbb4f,_0x5118b1)=>{let _0x3c93ad='';for(const _0x41d341 of _0x4fbb4f)_0x3c93ad+='<p>'+cs(_0x41d341['content'],_0x41d341['color'])+'</p>';return _0x5118b1?_0x3c93ad:_0x2a749d(_0x3c93ad,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x32b399['SuggestionView'](_0x330031,_0x36c2df,{'formatDateTime':_0x32b399['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 _0x5e7a0e=this['bindTemplate'],_0x1e28a5=[this['suggestionView']];return this['commentsListView']&&_0x1e28a5['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1e28a5['push'](this['commentThreadInputView']),_0x1e28a5['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5e7a0e['if']('isActive','ck-suggestion-wrapper--active'),_0x5e7a0e['to']('type',_0x4fc9a6=>'ck-suggestion-'+_0x4fc9a6),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':_0x5e7a0e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1e28a5};}['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 fe extends _0x58bbdd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x40ab12,_0x3becb3,_0x50cfa8){super(_0x40ab12),this['_model']=_0x3becb3,this['_config']=_0x50cfa8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3becb3),this['acceptButton']=this['_createButton'](o(_0x40ab12,'Accept\x20suggestion'),_0x16f7f7['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x40ab12,'Discard\x20suggestion'),_0x16f7f7['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x12797c(_0x40ab12,_0x3becb3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3b38e1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2bb7da(),this['keystrokes']=new _0x1ba224(),this['focusCycler']=new _0x1f52be({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5cd435=>_0x5cd435['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2b1947=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2b1947['innerHTML']=this['description'],this['on']('change:description',(_0x1199e4,_0x8ef403,_0x5494c0)=>{_0x2b1947['innerHTML']=_0x5494c0;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xc37a8e=this['bindTemplate'],_0xfde449=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0xc37a8e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xc37a8e['to']('authoredAt',_0x2b42ca=>this['_config']['formatDateTime'](_0x2b42ca))}]}]},{'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']&&_0xfde449['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':_0xfde449}]};}['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'](_0x4dbbca,_0x56f393,_0x3015a5,_0x5e245e,_0x2ad08f){const _0x3e23b8=new _0x3e44f9(this['locale']);return _0x3e23b8['set']({'label':_0x4dbbca,'icon':_0x56f393,'tooltip':!0x0,'tooltipPosition':_0x2ad08f}),_0x3e23b8['extendTemplate']({'attributes':{'class':_0x3015a5}}),_0x3e23b8['on']('execute',()=>{this['fire'](_0x5e245e,this['_model']['id']);}),_0x3e23b8;}['_setupKeyboardNavigation'](){const _0x41c8fd=this['element'];this['keystrokes']['listenTo'](_0x41c8fd);for(const _0x2cc3b1 of this['focusables'])this['focusTracker']['add'](_0x2cc3b1['element']),this['keystrokes']['listenTo'](_0x2cc3b1['element']);this['keystrokes']['set']('enter',(_0x226b77,_0x322140)=>{_0x41c8fd===_0x226b77['target']&&(this['focusCycler']['focusFirst'](),_0x322140());}),this['keystrokes']['set']('esc',(_0x5ca85a,_0x43300f)=>{_0x41c8fd!==_0x5ca85a['target']&&(this['focus'](),_0x43300f());});}}var we='<!--\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-2025,\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 _0x9e54d2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d693d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x486746){super(_0x486746),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1fed6f=this['editor']['config'];_0x1fed6f['define']('trackChanges.SuggestionThreadView',pe),_0x1fed6f['define']('trackChanges.SuggestionView',fe),_0x1fed6f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1fed6f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x596b45,_0x3e2fc0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x9be8c2,_0x4f7bcf]of this['_handleControllerBuffer']){const _0x2b571c=this['_suggestionToController']['has'](_0x9be8c2);_0x2b571c||_0x4f7bcf?_0x2b571c&&_0x4f7bcf&&this['_destroyController'](_0x9be8c2):this['_initializeController'](_0x9be8c2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x596b45,_0x3e2fc0);}['init'](){const _0x10f38f=this['editor'],_0x2a7788=_0x10f38f['plugins']['get']('TrackChangesEditing'),_0xeaa020=_0x10f38f['plugins']['get']('Annotations'),_0x1cc8d7=_0x10f38f['plugins']['get']('EditorAnnotations'),_0x3d844=_0x10f38f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1cc8d7['addSourceCollector'](()=>{const _0x1f3f28=[];for(const [_0x20e38f,_0x43f4c2]of Array['from'](this['_suggestionToController'])){const _0x375193=_0x20e38f['getAllAdjacentSuggestions'](),_0xe18dca=[];for(const _0x3fcaaf of _0x375193){if(!_0x3fcaaf['isInContent'])continue;if(_0x3fcaaf['isMultiRange']){_0xe18dca['push'](..._0x3fcaaf['getRanges']());continue;}const _0x2ba9a5=_0x3fcaaf['getFirstRange']();if(_0xe18dca['length']>0x0){const _0x38294=_0xe18dca[0x0]['getJoined'](_0x2ba9a5);if(_0x38294){_0xe18dca[0x0]=_0x38294;continue;}}_0xe18dca['push'](_0x2ba9a5);}_0x1f3f28['push']([_0x43f4c2['view'],_0xe18dca]);}return _0x1f3f28;}),this['listenTo'](_0x2a7788,'suggestionLoaded',(_0x4ffc36,_0x35a9c7)=>{this['listenTo'](_0x35a9c7,'change:previous',(_0x4346e2,_0x539339,_0x295936,_0x44248f)=>{_0x35a9c7['isInContent']&&(null==_0x295936?(this['_updateController'](_0x44248f['head']),this['_handleSuggestionControllerDelayed'](_0x35a9c7,!0x1)):(this['_updateController'](_0x295936['head']),null==_0x44248f&&this['_handleSuggestionControllerDelayed'](_0x35a9c7,!0x0)));}),null!==_0x35a9c7['previous']?this['_updateController'](_0x35a9c7['head']):this['_handleSuggestionControllerDelayed'](_0x35a9c7,!0x1);}),this['listenTo'](_0x2a7788,'suggestionUnloaded',(_0x4e6471,_0x42b143,_0x5b9a09)=>{this['stopListening'](_0x42b143,'change:previous'),this['_handleControllerBuffer']['delete'](_0x42b143),this['_suggestionToController']['has'](_0x42b143)&&this['_destroyController'](_0x42b143),_0x5b9a09&&this['_updateController'](_0x5b9a09['head']);}),this['listenTo'](_0x2a7788,'suggestionChanged',(_0x5f4d75,_0x5a5894)=>{this['_updateController'](_0x5a5894);}),this['listenTo'](_0xeaa020,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3d844,'addComment',(_0x3e7cf4,{threadId:_0x20a118,isFromAdapter:_0x4635df})=>{if(_0x4635df||!_0x2a7788['hasSuggestion'](_0x20a118))return;const _0x393abe=_0x2a7788['getSuggestion'](_0x20a118);this['_suggestionToController']['get'](_0x393abe)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42ce85=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3f90f0;for(const _0x1beaf3 in _0x42ce85){const _0x46d417=_0x1beaf3,_0x1faa3b=_0x42ce85[_0x46d417];if('trackChangesLicenseKeyValid'==_0x1faa3b||'trackChangesLicenseKeyInvalid'==_0x1faa3b||'trackChangesLicenseKeyExpired'==_0x1faa3b||'trackChangesLicenseKeyDomainLimit'==_0x1faa3b||'trackChangesLicenseKeyNotAllowed'==_0x1faa3b||'trackChangesLicenseKeyEvaluationLimit'==_0x1faa3b||'trackChangesLicenseKeyTrialLimit'==_0x1faa3b||'trackChangesLicenseKeyUsageLimit'==_0x1faa3b){delete _0x42ce85[_0x46d417],_0x3f90f0=_0x1faa3b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3f90f0&&_0x42ce85['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3f90f0&&_0x42ce85['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3f90f0&&_0x42ce85['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3f90f0&&_0x42ce85['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3f90f0&&_0x42ce85['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3f90f0&&_0x42ce85['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3f90f0&&_0x42ce85['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x2a1b2e=this['editor']['plugins']['get']('Annotations'),_0x2b9da7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x32d7a8=Array['from'](_0x2a1b2e['activeAnnotations'],_0x4e4501=>_0x4e4501['innerView'])['filter'](_0x2c3f78=>this['_viewToController']['has'](_0x2c3f78)),_0x36a8fb=[];for(const _0x3ad23a of _0x32d7a8){const _0xd8ce4a=this['_viewToController']['get'](_0x3ad23a)['model']['getAllAdjacentSuggestions']();_0x36a8fb['push'](..._0xd8ce4a['reduce']((_0x5bedb7,_0x5a239d)=>[..._0x5bedb7,..._0x5a239d['getMarkerNames']()],[]));}_0x2b9da7['activeMarkers']=_0x36a8fb;}['_addUIComponentsToFactory'](){const _0x35a80a=this['editor'],_0x3e3742=_0x35a80a['locale'],_0x2a53bc=o(_0x3e3742,'Track\x20changes'),_0x55132b=new _0x114426([{'type':'switchbutton','model':new _0x40fc25({'withText':!0x0,'isToggleable':!0x0,'label':_0x2a53bc,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35a80a['plugins']['has']('TrackChangesPreview')&&_0x55132b['addMany']([{'type':'separator'},{'type':'button','model':new _0x40fc25({'withText':!0x0,'label':o(_0x3e3742,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x342460 of _0x55132b)if(ke(_0x342460)){const _0x51883e=_0x35a80a['commands']['get'](_0x342460['model']['commandName']);_0x342460['model']['bind']('isOn','isEnabled')['to'](_0x51883e,'value','isEnabled');}_0x35a80a['ui']['componentFactory']['add']('trackChanges',_0x5dff45=>this['_createToolbarButton'](_0x5dff45,_0x55132b,_0x2a53bc)),_0x35a80a['ui']['componentFactory']['add']('menuBar:trackChanges',_0x45d994=>this['_createMenuBarMenu'](_0x45d994,_0x55132b,_0x2a53bc));}['_createToolbarButton'](_0x2dea4b,_0x6ed9ff,_0x51301a){const _0x4fff7f=_0x1a91c7(_0x2dea4b,_0x231e8c),_0x5d1a84=this['editor']['commands']['get']('trackChanges');_0x4fff7f['buttonView']['set']({'tooltip':_0x51301a,'label':_0x51301a,'icon':we}),_0x4fff7f['buttonView']['bind']('isOn')['to'](_0x5d1a84,'value'),_0x4fff7f['buttonView']['on']('execute',()=>{_0x5d1a84['execute'](),this['editor']['editing']['view']['focus']();}),_0x1c8210(_0x4fff7f,_0x6ed9ff,{'role':'menu'});const _0x20492e=[];for(const _0x3cf809 of _0x6ed9ff)ke(_0x3cf809)&&_0x20492e['push'](this['editor']['commands']['get'](_0x3cf809['model']['commandName']));const _0x20fda1=_0x4fff7f['buttonView'];return _0x20fda1['actionView']['unbind']('isEnabled'),_0x20fda1['arrowView']['unbind']('isEnabled'),_0x20fda1['actionView']['bind']('isEnabled')['to'](_0x5d1a84,'isEnabled'),_0x20fda1['arrowView']['bind']('isEnabled')['toMany'](_0x20492e,'isEnabled',(..._0x77ac42)=>_0x77ac42['some'](_0xef7573=>_0xef7573)),_0x4fff7f['on']('execute',_0x3cbf03=>{this['editor']['execute'](_0x3cbf03['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fff7f;}['_createMenuBarMenu'](_0x4ab01d,_0x516d04,_0x59d2fe){const _0x303c16=new _0x475cee(_0x4ab01d),_0x401da8=this['editor']['commands']['get']('trackChanges');_0x303c16['buttonView']['set']({'label':_0x59d2fe,'icon':we});const _0x34aa4a=new _0x5dc21b(_0x4ab01d);for(const _0x361fd3 of _0x516d04){if('separator'==_0x361fd3['type']){_0x34aa4a['items']['add'](new _0x344711(_0x4ab01d));continue;}const _0x207da8=new _0x3a57e1(_0x4ab01d,_0x303c16),_0x1b35ca=new _0xb816cb(_0x4ab01d),_0x47ccab=_0x361fd3['model'];_0x1b35ca['bind'](...Object['keys'](_0x47ccab))['to'](_0x47ccab),_0x1b35ca['delegate']('execute')['to'](_0x303c16),_0x1b35ca['on']('execute',()=>{this['editor']['execute'](_0x47ccab['commandName']),this['editor']['editing']['view']['focus']();}),_0x207da8['children']['add'](_0x1b35ca),_0x34aa4a['items']['add'](_0x207da8);}return _0x303c16['bind']('isEnabled')['to'](_0x401da8,'isEnabled'),_0x303c16['panelView']['children']['add'](_0x34aa4a),_0x303c16;}['_initializeController'](_0x4c360b){const _0x56c2b8=this['editor'],_0x322741=_0x56c2b8['config'],_0x4dc123=_0x56c2b8['plugins']['get']('Annotations'),_0x3ba958=_0x56c2b8['plugins']['get']('CommentsRepository'),_0x378395=_0x56c2b8['plugins']['get']('EditorAnnotations'),_0x524350=_0x56c2b8['plugins']['get'](_0x4d693d)['me'],_0x4a72b5=_0x322741['get']('trackChanges')['SuggestionThreadView'],_0x224f33=_0x322741['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51c9af,CommentThreadInputView:_0x23fa95}=_0x56c2b8['plugins']['get']('CommentsUI');let _0x1c11ea,_0x39172b,_0x395ab0;this['_annotationViews']['has'](_0x4c360b['id'])?(_0x39172b=this['_annotationViews']['get'](_0x4c360b['id']),_0x1c11ea=_0x39172b['mainView']):(_0x1c11ea=new _0x4a72b5(_0x56c2b8['locale'],_0x4c360b,_0x524350,{'disableComments':this['_disableComments'],'editorConfig':{..._0x322741['get']('comments.editorConfig'),'licenseKey':_0x322741['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x322741['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x322741['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x322741['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xe82a6e(_0x322741['get']('locale')),'CommentView':_0x322741['get']('comments')['CommentView'],'CommentsListView':_0x51c9af,'CommentThreadInputView':_0x23fa95,'SuggestionView':_0x224f33}),_0x1c11ea['suggestionView']['acceptButton']['on']('execute',()=>{_0x56c2b8['editing']['view']['focus']();}),_0x1c11ea['suggestionView']['discardButton']['on']('execute',()=>{_0x56c2b8['editing']['view']['focus']();}),_0x39172b=_0x4dc123['createAnnotationView'](this['editor']['locale'],_0x1c11ea),_0x39172b['bind']('isDirty')['to'](_0x1c11ea,'isDirty'),_0x39172b['bind']('length')['to'](_0x1c11ea),_0x39172b['bind']('type')['to'](_0x1c11ea,'type',_0x423bf2=>'suggestion-'+_0x423bf2),_0x1c11ea['on']('escape',()=>{_0x395ab0['fire']('escape');}),this['_annotationViews']['set'](_0x4c360b['id'],_0x39172b));const _0x10f99d=_0x3ba958['createCommentThreadController'](_0x4c360b['commentThread'],_0x1c11ea),_0x5023c4=new Ce(_0x56c2b8,_0x4c360b,_0x1c11ea,_0x10f99d),_0x304198=_0x4c360b['getAllAdjacentSuggestions']()['filter'](_0x579f3a=>_0x579f3a['isInContent']);_0x1c11ea['descriptionParts']=_0x56c2b8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x304198),this['_suggestionToController']['set'](_0x4c360b,_0x5023c4),this['_viewToController']['set'](_0x1c11ea,_0x5023c4),_0x395ab0=_0x4dc123['createAnnotation']({'view':_0x39172b,'target':()=>{const _0x5a51cf=[],_0x5113bc=_0x4c360b['getAllAdjacentSuggestions']()['filter'](_0x339fa6=>_0x339fa6['isInContent']);for(const _0x2dfeed of _0x5113bc)_0x5a51cf['push'](..._0x2dfeed['getMarkers']());return _0x15d485(_0x56c2b8['editing'],_0x5a51cf);},'type':()=>'suggestion-'+_0x5023c4['view']['type']}),_0x3ba958['_bindAnnotationToEditors'](_0x1c11ea,_0x395ab0),_0x4dc123['add'](_0x395ab0),_0x378395['registerAnnotation'](_0x395ab0);}['_destroyController'](_0x576012){const _0x6f55e9=this['editor']['plugins']['get']('CommentsRepository'),_0x1444cb=this['editor']['plugins']['get']('Annotations'),_0x3dbf1e=this['_suggestionToController']['get'](_0x576012),_0x2823d4=_0x3dbf1e['view'],_0x344770=_0x1444cb['getByInnerView'](_0x2823d4);_0x6f55e9['_unbindEditors'](_0x2823d4),_0x344770&&_0x1444cb['remove'](_0x344770),this['_suggestionToController']['delete'](_0x576012),this['_viewToController']['delete'](_0x2823d4),_0x3dbf1e['destroy']();}['_updateController'](_0xd0e1ef){if(!_0xd0e1ef['isInContent']||!this['_suggestionToController']['has'](_0xd0e1ef))return;const _0x521517=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3fd2e8=this['_suggestionToController']['get'](_0xd0e1ef),_0x198034=_0xd0e1ef['getAllAdjacentSuggestions']();_0x3fd2e8['view']['descriptionParts']=_0x521517['descriptionFactory']['getDescriptions'](_0x198034);}['destroy'](){for(const _0x14d2bd of this['_suggestionToController']['keys']())this['_destroyController'](_0x14d2bd);for(const _0x53c7bd of this['_annotationViews']['values']())_0x53c7bd['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3e5d6a){return'model'in _0x3e5d6a;}class k extends _0x9e54d2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x47b5ea){this['editor']['plugins']['get'](p)['adapter']=_0x47b5ea;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x355f17){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x355f17);}['getSuggestions']({skipNotAttached:_0xde2774=!0x1,toJSON:_0x3d6dbd=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xde2774,'toJSON':_0x3d6dbd});}['getSuggestion'](_0x553da1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x553da1);}}const w=['Pagination'];class T extends _0x9e54d2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x79fe49=this['editor'];if(_0x79fe49['config']['define']('trackChangesData.editorCreator',_0x22d9d0=>{const _0x2d034c=_0x79fe49['model']['document']['getRootNames']()['reduce']((_0x69ed30,_0x3d7b95)=>(_0x69ed30[_0x3d7b95]='',_0x69ed30),{});return _0x79fe49['constructor']['create'](_0x2d034c,_0x22d9d0);}),'function'!=typeof _0x79fe49['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ed401('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x25aa50){return N(this['editor'],!0x0,_0x25aa50);}['getDataWithDiscardedSuggestions'](_0x3c9e5f){return N(this['editor'],!0x1,_0x3c9e5f);}}class D extends _0x9e54d2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x305fe5){function _0x148273(_0x5e9ae3){return _0x5e9ae3['map'](_0x51c911=>String['fromCharCode'](_0x51c911))['join']('');}super(_0x305fe5),this['result']='end',_0x305fe5[_0x148273([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x148273([0x76,0x69,0x65,0x77])][_0x148273([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x148273([0x61,0x75,0x74,0x6f]),_0x305fe5[_0x148273([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x148273([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x148273([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x148273([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x148273([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x460dfc){return void 0x0!==_0x460dfc['getRootsAttributes'];}async function N(_0x502caf,_0x47a3bb,_0xc4eda5){const _0x478723=_0x105839(_0x502caf,w);_0x478723['plugins']['push'](p,D),_0x478723['rootsAttributes']=Fe(_0x502caf)?_0x502caf['getRootsAttributes']():void 0x0;const _0x43c18c=document['createDocumentFragment'](),_0x512c1e=_0x502caf['config']['get']('trackChangesData')['editorCreator'],_0x14e9c4=await _0x512c1e(_0x478723,()=>function(_0x4b2ec0){const _0x484fd6=document['createElement']('div');return _0x4b2ec0['appendChild'](_0x484fd6),_0x484fd6;}(_0x43c18c));!function(_0x13ecf2,_0x253789){const _0x4462e6=_0x13ecf2['model']['document']['getRootNames']()['reduce']((_0x19baf6,_0x5119e5)=>(_0x19baf6[_0x5119e5]=_0x13ecf2['data']['get']({'rootName':_0x5119e5}),_0x19baf6),{}),_0x3831aa=_0x13ecf2['plugins']['get']('Users')['users']['map'](_0x4c78f6=>({'id':_0x4c78f6['id'],'name':_0x4c78f6['name']})),_0x1f3557=_0x13ecf2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x53bc74=_0x13ecf2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4b55ae=_0x253789['plugins']['get']('Users'),_0xa3ddb5=_0x253789['plugins']['get']('TrackChangesEditing'),_0x47bcf5=_0x253789['plugins']['get']('CommentsRepository');for(const _0x23677d of _0x47bcf5['getCommentThreads']())_0x23677d['remove']();for(const _0x58c8fa of _0x3831aa)_0x4b55ae['getUser'](_0x58c8fa['id'])||_0x4b55ae['addUser'](_0x58c8fa);_0x4b55ae['me']||_0x4b55ae['useAnonymousUser']();for(const _0x303bee of _0x53bc74)_0x47bcf5['addCommentThread'](_0x303bee);for(const _0x40be44 of _0x1f3557)_0xa3ddb5['addSuggestionData'](_0x40be44);_0x253789['data']['set'](_0x4462e6);}(_0x502caf,_0x14e9c4),_0x14e9c4['execute'](_0x47a3bb?'acceptAllSuggestions':'discardAllSuggestions');const _0x149b3f=Fe(_0x14e9c4)?_0x14e9c4['getFullData'](_0xc4eda5):_0x14e9c4['data']['get'](_0xc4eda5);return await _0x14e9c4['destroy'](),_0x149b3f;}class Me extends _0x58bbdd{['options'];constructor(_0x126d29,_0x1b85ef){super(_0x126d29),this['options']=_0x1b85ef,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x2aa5f4,_0x5bef58){if(!this['element'])return;const _0x4c917c=[];for(const [_0x1d701d,_0x2ff7be]of _0x2aa5f4){const _0x676cb6=document['createElement']('div');_0x676cb6['setAttribute']('data-ck-root-name',_0x1d701d),_0x676cb6['className']=_0x2ff7be['classes']+'\x20ck-track-changes-preview__root-container',_0x676cb6['innerHTML']=_0x2ff7be['content'],_0x4c917c['push'](_0x676cb6);}_0x5bef58(this['element'],_0x4c917c),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x27fa14){super(_0x27fa14),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x28aac1=this['editor'],_0x103ac7=_0x28aac1['locale'],_0x1cfc2f=_0x28aac1['plugins']['get']('Dialog');let _0x1d007b;const _0x2475fb=function(_0x5c13df){const _0x4995ee={};if('editables'in _0x5c13df['ui']['view']){for(const [_0x1b7411,_0x1d974a]of Object['entries'](_0x5c13df['ui']['view']['editables']))_0x4995ee[_0x1b7411]=_0x1d974a['element'];}else _0x4995ee[_0x5c13df['model']['document']['getRootNames']()[0x0]]=_0x5c13df['ui']['view']['editable']['element'];return _0x4995ee;}(_0x28aac1),_0x242699=function(_0x657f5a){let _0x4496fa=0x0;for(const _0xcf7e4 of Object['values'](_0x657f5a))_0x4496fa=Math['max'](_0x4496fa,_0xcf7e4['getBoundingClientRect']()['width']);let _0x314c9f=0x0;for(const _0x5e3a82 of Object['values'](_0x657f5a))_0x314c9f+=_0x5e3a82['getBoundingClientRect']()['height'];const _0x151ae3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3ee97e=Math['min'](_0x314c9f,_0x151ae3);return{'width':_0x4496fa,'height':_0x3ee97e};}(_0x2475fb);_0x1cfc2f['show']({'id':'finalContentPreview','title':o(_0x103ac7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x103ac7,{'dialogRects':_0x242699}),'onHide':()=>{_0x1d007b['detachFromDom']();},'onShow':()=>{_0x28aac1['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4448c8=>{const _0x117b95=this['_standarizeRootsData'](_0x4448c8,_0x28aac1,_0x2475fb);_0x1cfc2f['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x117b95,_0x28aac1['config']['get']('trackChanges.preview.renderFunction'));}),_0x1d007b=new _0x2f12e8(_0x103ac7,[_0x1cfc2f['view']]),_0x1d007b['attachToDom'](),_0x1d007b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x28aac1['once']('destroy',()=>{_0x1d007b['detachFromDom']();});const _0x2c564b=_0x1cfc2f['view']['headerView']['class'];_0x1cfc2f['view']['headerView']['class']=_0x2c564b?_0x2c564b+'\x20ck-reset_all':'ck-reset_all',_0x1cfc2f['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1cfc2f['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x5550b4=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x17160b=_0x5550b4['previewMode'],_0x438a5a={};if('$labels'===_0x17160b){for(const _0x2fb43d of _0x5550b4['getMergeFieldsIds']())_0x438a5a[_0x2fb43d]=_0x5550b4['getLabel'](_0x2fb43d)||_0x2fb43d;}else{const _0x38c735='$defaultValues'===_0x17160b?_0x5550b4['getDefaultValues']():_0x5550b4['getDataSetValues'](_0x17160b,!0x0);for(const _0x2e26c4 of Object['entries'](_0x38c735)){const [_0x183de6,_0x5b134f]=_0x2e26c4;_0x438a5a[_0x183de6]=null!==_0x5b134f?_0x5b134f:_0x5550b4['getLabel'](_0x183de6)||_0x183de6;}}return{'mergeFieldsData':_0x438a5a};}['_standarizeRootsData'](_0x3a8b1a,_0x175d35,_0x45535c){let _0x5d9590;if('string'==typeof _0x3a8b1a){const _0x51e02c=_0x175d35['model']['document']['getRootNames']()[0x0];_0x5d9590={[_0x51e02c]:_0x3a8b1a};}else _0x5d9590=_0x3a8b1a;const _0x5263cf=this['_fixMediaEmbeds'](_0x5d9590,_0x175d35),_0x51828d=function(_0x38d5f4,_0x480bd8){for(const [_0x614eb,_0x59d544]of _0x38d5f4)_0x59d544['classes']=_0x480bd8[_0x614eb]['classList']['value']['replace']('ck-focused','');return _0x38d5f4;}(this['_sortRoots'](_0x175d35)['reduce']((_0x14d53c,_0x25a29f)=>(_0x14d53c['push']([_0x25a29f,{'content':_0x5263cf[_0x25a29f],'classes':''}]),_0x14d53c),[]),_0x45535c);return _0x51828d;}['_fixMediaEmbeds'](_0x2b0f44,_0x5396c5){if(!_0x5396c5['plugins']['has']('MediaEmbedEditing'))return _0x2b0f44;const _0x419e87=_0x5396c5['plugins']['get']('MediaEmbedEditing');for(const [_0xbfd55a,_0x2f75c7]of Object['entries'](_0x2b0f44)){const _0x471afb=document['createElement']('div');_0x471afb['innerHTML']=_0x2f75c7,(_0x471afb['querySelectorAll']('figure.media')['forEach'](_0x1fecdc=>{const _0x180659=_0x1fecdc['querySelector']('oembed');if(_0x180659){const _0x4e87a5=_0x180659['getAttribute']('url');if(_0x4e87a5){const _0x2c404b=_0x419e87['registry']['getMediaViewElement'](new _0x59be18(_0x5396c5['editing']['view']['document']),_0x4e87a5,{'elementName':'','renderForEditingView':!0x0}),_0x29ab70=document['createElement']('div');_0x29ab70['classList']['add']('ck-media__wrapper'),_0x2c404b['render'](_0x29ab70,_0x5396c5['editing']['view']['domConverter']),_0x180659['replaceWith'](_0x29ab70);}}}),_0x2b0f44[_0xbfd55a]=_0x471afb['innerHTML']);}return _0x2b0f44;}['_sortRoots'](_0xedbf2b){if(!function(_0x17ec5d){return void 0x0!==_0x17ec5d['getRootsAttributes'];}(_0xedbf2b))return _0xedbf2b['model']['document']['getRootNames']();const _0x651531=[],_0x10d298=new Map();for(const _0x577823 of _0xedbf2b['model']['document']['getRootNames']()){const _0xc3d946=_0xedbf2b['editing']['view']['getDomRoot'](_0x577823)['getClientRects']()['item'](0x0);_0x651531['push'](_0x577823),_0x10d298['set'](_0x577823,_0xc3d946);}return _0x651531['sort']((_0x52d054,_0x3bcf11)=>{const _0x535c68=_0x10d298['get'](_0x52d054),_0x331427=_0x10d298['get'](_0x3bcf11);return _0x535c68['y']-_0x331427['y']||_0x535c68['x']-_0x331427['x'];}),_0x651531;}}class te extends _0x9e54d2{static get['requires'](){return[T,_0x577700];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x558de4){super(_0x558de4),_0x558de4['commands']['add']('previewFinalContent',new re(this['editor'])),_0x558de4['config']['define']('trackChanges.preview.renderFunction',(_0x5ce374,_0x52fd05)=>{for(const _0x4f7a47 of _0x52fd05)_0x5ce374['appendChild'](_0x4f7a47);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as Yt,Plugin as _0x252f3f,PendingActions as _0xfacd0f,icons as _0xc843ba}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x507dce,ObservableMixin as _0x1f9d65,uid as _0x359303,priorities as _0x49b899,insertToPriorityArray as _0x509f94,logWarning as _0x56f1b7,getEnvKeystrokeText as _0x1d5cb9,FocusTracker as _0x2f75fc,KeystrokeHandler as _0xbd6a5,Collection as _0x192eee}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x175af5,View as _0x4491ae,ViewCollection as _0x17c479,FocusCycler as _0x2fa3f5,ViewModel as _0x416284,createDropdown as _0x1d384a,SplitButtonView as _0x3c44e5,addListToDropdown as _0x4de973,MenuBarMenuView as _0x43f88d,MenuBarMenuListView as _0xd2408e,ListSeparatorView as _0x5534e8,MenuBarMenuListItemView as _0x4ccbef,MenuBarMenuListItemButtonView as _0xe3bb37,BodyCollection as _0x2f9e23,Dialog as _0x9ef329}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x344705,hashObject as _0x3d1ff7,surroundingMarkersDetector as _0x484349,FOCUS_ANNOTATION_KEYSTROKE as _0x390e15,AriaDescriptionView as _0x50948d,setupThreadKeyboardNavigation as _0x2fe803,trimHtml as _0x509418,UserView as _0x5a4be6,LateFocusButtonView as _0x4519e9,getDateTimeFormatter as _0xdcaabe,getAllMarkersDomElementsSorted as _0x470613,sanitizeEditorConfig as _0x503ee0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x46e923,LiveRange as _0x206398,LivePosition as _0x357c05,DowncastWriter as _0x5c0621}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x5837a7,toWidget as _0x1298fd}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4c1d10,set as _0x12bcaa,isEqual as _0x3f16fd,unset as _0x56c587,omit as Vt}from'lodash-es';import{Delete as _0x891ace,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x52546c,ShiftEnter as _0x5435cf}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x57c590,_0x1f5049){super(_0x57c590),this['_enabledCommands']=_0x1f5049,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 _0xcbda8c of this['editor']['commands']['commands']())_0xcbda8c['affectsData']&&!this['_enabledCommands']['has'](_0xcbda8c)&&_0xcbda8c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1f0581 of this['editor']['commands']['commands']())_0x1f0581['affectsData']&&!this['_enabledCommands']['has'](_0x1f0581)&&_0x1f0581['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x26ed42,_0x53814a){super(_0x26ed42),this['_suggestions']=_0x53814a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4feb15){const _0x188217=this['_suggestions']['get'](_0x4feb15);if(!_0x188217)throw new _0x507dce('track-changes-accept-suggestion-not-found',this);const _0x5da029=_0x188217['getRanges']();this['editor']['model']['canEditAt'](_0x5da029)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x188217);}}class R extends Yt{['_suggestions'];constructor(_0x4aa6d9,_0x58ac4c){super(_0x4aa6d9),this['_suggestions']=_0x58ac4c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x8ff2ca){const _0xd6b8a0=this['_suggestions']['get'](_0x8ff2ca);if(!_0xd6b8a0)throw new _0x507dce('track-changes-discard-suggestion-not-found',this);const _0x5060a9=_0xd6b8a0['getRanges']();this['editor']['model']['canEditAt'](_0x5060a9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xd6b8a0);}}function cs(_0x187a88,_0x1de604){let _0x46ca0a='';return _0x46ca0a+=_0x187a88['split']('*')['map']((_0x14e17a,_0x34187f)=>_0x34187f%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x14e17a)+'</span>':nn(_0x14e17a))['join'](''),_0x1de604&&(_0x46ca0a+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1de604['value']+'\x22\x20title=\x22'+_0x1de604['title']+'\x22></span>'),_0x46ca0a;}function nn(_0x453e65){const _0x1fb801=document['createElement']('span');return _0x1fb801['innerText']=_0x453e65,_0x1fb801['innerHTML'];}function Zt(_0x2e6d95){return _0x2e6d95['sort']((_0x40bb0a,_0x2f1e81)=>'deletion'==_0x40bb0a['type']&&'deletion'!=_0x2f1e81['type']?-0x1:'deletion'!=_0x40bb0a['type']&&'deletion'==_0x2f1e81['type']?0x1:0x0);}function to(_0x3628f7,_0x3a52cd){let _0x5140af,_0x5186f5=0x0;const _0x44e9b4=[],_0x206086=_0x3a52cd['schema'];for(;_0x5186f5<_0x3628f7['length'];){const _0x7e3361=_0x3628f7[_0x5186f5],_0x299070=_0x3628f7[_0x5186f5+0x1];_0x5140af||(_0x5140af=_0x3a52cd['createPositionBefore'](_0x7e3361)),on(_0x3a52cd,_0x7e3361,_0x299070)||(_0x44e9b4['push'](_0x3a52cd['createRange'](_0x5140af,_0x206086['isObject'](_0x7e3361)?_0x3a52cd['createPositionAfter'](_0x7e3361):_0x3a52cd['createPositionAt'](_0x7e3361,'end'))),_0x5140af=null),_0x5186f5++;}return _0x44e9b4;}function on(_0xf0a067,_0x5a264f,_0x519ccf){if(!_0x519ccf)return!0x1;const _0x2a0ff5=_0xf0a067['createPositionAfter'](_0x5a264f),_0x142764=_0xf0a067['createPositionBefore'](_0x519ccf);return _0x2a0ff5['isTouching'](_0x142764);}function ts(_0x2fe131,_0x685b21,_0x20590c){for(;_0x20590c['length'];){const _0x3375f0=_0x20590c['splice'](0x0,0x64);_0x2fe131['change'](()=>{for(const _0x2a8f45 of _0x3375f0)_0x2a8f45['isInContent']&&_0x685b21['execute'](_0x2a8f45['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x6cc121,_0x38b482,_0x2d94ed){super(_0x6cc121),this['_command']=_0x38b482,this['_suggestions']=_0x2d94ed,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x378043=Array['from'](this['_suggestions']['values']())['some'](_0x861f1a=>_0x861f1a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x378043;}['execute'](){const _0x36bc35=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x2217b of _0x36bc35){const _0x472a9c=_0x2217b['getRanges']();if(!this['editor']['model']['canEditAt'](_0x472a9c))return;}ts(this['editor']['model'],this['_command'],_0x36bc35);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x55ca23,_0x42a57c,_0x3e8243){super(_0x55ca23),this['_command']=_0x42a57c,this['_suggestions']=_0x3e8243,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x442330=this['editor']['model']['document']['selection'],_0x5b74a5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x25eb81,_0x1ee074){const _0x4fedae=Array['from'](_0x25eb81['getRanges']()),_0x296ceb=new Set();for(const _0x19b170 of _0x1ee074)if(_0x19b170['isInContent']){for(const _0x4e6174 of _0x4fedae)for(const _0x4e1c5a of _0x19b170['getRanges']())(_0x4e6174['isIntersecting'](_0x4e1c5a)||_0x25eb81['isCollapsed']&&!_0x19b170['isMultiRange']&&_0x19b170['next']&&_0x4e1c5a['end']['isTouching'](_0x4e6174['start']))&&_0x296ceb['add'](_0x19b170);}return _0x296ceb;}(_0x442330,_0x5b74a5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x24783e=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x84fe20 of _0x24783e){const _0x49e206=_0x84fe20['getRanges']();if(!this['editor']['model']['canEditAt'](_0x49e206))return;}ts(this['editor']['model'],this['_command'],_0x24783e);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x1f9d65(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xb38a76,_0x5afaa0){super(),this['id']=_0x5afaa0['id'],this['type']=_0x5afaa0['type'],this['subType']=_0x5afaa0['subType']||null,this['author']=_0x5afaa0['author'],this['creator']=_0x5afaa0['creator']||_0x5afaa0['author'],this['isExternal']=Boolean(_0x5afaa0['attributes']&&_0x5afaa0['attributes']['@external']),this['data']=null,this['_model']=_0xb38a76,this['_onAccept']=_0x5afaa0['onAccept'],this['_onDiscard']=_0x5afaa0['onDiscard'],this['_onAttributesChange']=_0x5afaa0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5afaa0['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 _0x46b4c1=this;for(;_0x46b4c1['previous'];)_0x46b4c1=_0x46b4c1['previous'];return _0x46b4c1;}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'](_0x33c463){this['_markerNames']['add'](_0x33c463);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x284a51=>this['_model']['markers']['get'](_0x284a51))['filter'](_0x434f90=>_0x434f90);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4a058b=>{for(const _0x20358f of this['getMarkers']())_0x4a058b['removeMarker'](_0x20358f);}),this['_markerNames']['clear']();}['removeMarker'](_0x2a8946){this['_model']['change'](_0x5cf258=>{_0x5cf258['removeMarker'](_0x2a8946);}),this['_markerNames']['delete'](_0x2a8946);}['addRange'](_0x43d108){const _0x104add='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x104add),this['_model']['change'](_0x424635=>{_0x424635['addMarker'](_0x104add,{'range':_0x43d108,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5071ea){for(const _0x44f0f7 of this['getRanges']())if(_0x44f0f7['isIntersecting'](_0x5071ea))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4508f0=>_0x4508f0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19586a,_0x2f66d4)=>[..._0x19586a,..._0x2f66d4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x129062=this['getRanges']();if(0x1!=_0x129062['length'])return null;const _0x247e4a=_0x129062[0x0],_0x3f7a9d=_0x247e4a['start']['nodeAfter'],_0x97ddf9=_0x247e4a['end']['nodeBefore'];return _0x3f7a9d instanceof _0x46e923?_0x3f7a9d!=_0x97ddf9?null:_0x3f7a9d: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 _0x2e15f2=[];let _0x463326=this['head'];for(;_0x463326;)_0x2e15f2['push'](_0x463326),_0x463326=_0x463326['next'];return _0x2e15f2;}['setAttribute'](_0x4b17fb,_0x55969c){const _0x2a0f81=_0x4c1d10(this['attributes']);_0x12bcaa(_0x2a0f81,_0x4b17fb,_0x55969c),_0x3f16fd(_0x2a0f81,this['attributes'])||(this['attributes']=_0x2a0f81,this['_onAttributesChange'](_0x2a0f81));}['removeAttribute'](_0x275bc9){const _0x440283=_0x4c1d10(this['attributes']);_0x56c587(_0x440283,_0x275bc9),_0x3f16fd(_0x440283,this['attributes'])||(this['attributes']=_0x440283,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 _0x359303()['substr'](0x1,0x5);}}function o(_0x4ae04a,_0x35c332,_0x1453b2){const _0xe7c05d=_0x4ae04a['t'],t=_0x4ae04a['t'];switch(_0x35c332){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1453b2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1453b2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1453b2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1453b2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1453b2);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',_0x1453b2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1453b2);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1453b2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1453b2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1453b2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1453b2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1453b2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1453b2);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1453b2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1453b2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1453b2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1453b2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1453b2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1453b2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1453b2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1453b2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1453b2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1453b2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1453b2);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'},_0x1453b2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1453b2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1453b2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1453b2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1453b2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1453b2);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'},_0x1453b2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1453b2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1453b2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1453b2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1453b2);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'},_0x1453b2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1453b2);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'},_0x1453b2);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'},_0x1453b2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1453b2);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'},_0x1453b2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1453b2);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'},_0x1453b2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1453b2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1453b2);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'},_0x1453b2);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1453b2);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 _0xe7c05d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1453b2);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xe7c05d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1453b2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1453b2);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'},_0x1453b2);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'},_0x1453b2);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'},_0x1453b2);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x35c332;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1da09e,_0x1ea256){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1da09e,this['_locale']=_0x1ea256;}['getDescriptions'](_0x2c6cd5){const _0xc1e4ce=[],_0x505a5e=new Set(),_0xca8b3d=new Set();for(let _0x1245f2=0x0;_0x1245f2<_0x2c6cd5['length'];_0x1245f2++){const _0x3ae3db=_0x2c6cd5[_0x1245f2];if(!_0x3ae3db['isInContent'])continue;const _0x5eb1cb=this['_handleCustomCallbackDescription'](_0x3ae3db);if(_0x5eb1cb){if(null!=_0x3ae3db['subType']){if(_0x505a5e['has'](_0x3ae3db['subType']))continue;_0x505a5e['add'](_0x3ae3db['subType']);}_0xc1e4ce['push'](_0x5eb1cb);}else{if('attribute'!=_0x3ae3db['type'])'insertion'!=_0x3ae3db['type']&&'deletion'!=_0x3ae3db['type']||this['_handleInsertRemoveSuggestionDescription'](_0xc1e4ce,_0x3ae3db,_0x2c6cd5[_0x1245f2+0x1]);else{const _0x558903=_0x3ae3db['data']['key'];if(_0xca8b3d['has'](_0x558903))continue;_0xca8b3d['add'](_0x3ae3db['data']['key']),_0x558903==m?this['_handleRenameSuggestionDescription'](_0xc1e4ce,_0x3ae3db):this['_handleAttributeSuggestionDescription'](_0xc1e4ce,_0x3ae3db);}}}return this['_resolveDescriptionItems'](_0xc1e4ce);}['registerDescriptionCallback'](_0x4313e6){this['_customCallbacks']['push'](_0x4313e6);}['registerElementLabel'](_0x270811,_0x363391,_0x533726=_0x49b899['normal']){'function'==typeof _0x270811?_0x509f94(this['_itemLabelsCallbacks'],{'matchingCallback':_0x270811,'label':_0x363391,'priority':_0x533726}):this['_itemLabels']['set'](_0x270811,_0x363391);}['registerAttributeLabel'](_0x4d95f2,_0x4e5e21){this['_attributeLabels']['set'](_0x4d95f2,_0x4e5e21);}['getItemLabel'](_0x376b0d,_0x2b828e=0x1){let _0x20c50d;for(const _0x3a21fc of this['_itemLabelsCallbacks'])if(_0x3a21fc['matchingCallback'](_0x376b0d)){_0x20c50d=_0x3a21fc['label'];break;}return _0x20c50d||(_0x20c50d=this['_itemLabels']['get'](_0x376b0d['name'])),_0x20c50d?_0x20c50d(_0x2b828e):0x1!==_0x2b828e?_0x2b828e+'\x20'+_0x376b0d['name']+'s':''+_0x376b0d['name'];}['_addDescriptionItems'](_0x2aa2db,_0x30d2b9){const _0xaf84f0=_0x30d2b9['getFirstRange']()['getWalker'](),_0x1fe3ba='insertion'==_0x30d2b9['type']?'add':'remove';for(const _0x106755 of _0xaf84f0){const _0xe97fbc=_0x106755['item'],_0x5293bb=_0x2aa2db[_0x2aa2db['length']-0x1];if(_0xe97fbc['is']('$textProxy'))_0x5293bb&&_0x5293bb['type']['indexOf']('Container')>-0x1&&_0x2aa2db['pop'](),_0x5293bb&&'text'==_0x5293bb['type']?_0x5293bb[_0x1fe3ba]+=_0xe97fbc['data']:_0x2aa2db['push']({'type':'text','add':'add'==_0x1fe3ba?_0xe97fbc['data']:'','remove':'remove'==_0x1fe3ba?_0xe97fbc['data']:''});else{if(this['_schema']['isObject'](_0xe97fbc)){const _0x20c644=_0xe97fbc;if(_0x5293bb&&_0x5293bb['type']['indexOf']('Container')>-0x1&&_0x2aa2db['pop'](),'elementEnd'==_0x106755['type'])continue;_0x5293bb&&_0x5293bb['type']==_0x1fe3ba+'Object'&&_0x5293bb['element']['name']==_0x20c644['name']?_0x5293bb['quantity']++:_0x2aa2db['push']({'type':_0x1fe3ba+'Object','element':_0x20c644,'quantity':0x1}),_0xaf84f0['skip'](_0x25bd41=>!('elementEnd'==_0x25bd41['type']&&_0x25bd41['item']==_0xe97fbc));}else{if(this['_schema']['checkChild'](_0xe97fbc,'$text')||_0xe97fbc['is']('element','softBreak')){const _0xe24e8b=_0xe97fbc;if('add'==_0x1fe3ba&&'elementStart'==_0x106755['type']||'remove'==_0x1fe3ba&&'elementEnd'==_0x106755['type'])continue;if(_0x5293bb&&-0x1==_0x5293bb['type']['indexOf']('Container')){'text'==_0x5293bb['type']&&(_0x5293bb[_0x1fe3ba]+='\x0a');continue;}let _0x4e3c33;if(_0x4e3c33='add'==_0x1fe3ba?_0xe24e8b['nextSibling']&&!this['_schema']['isObject'](_0xe24e8b['nextSibling'])?_0xe24e8b['nextSibling']:null:_0xe24e8b['previousSibling']&&!this['_schema']['isObject'](_0xe24e8b['previousSibling'])?_0xe24e8b['previousSibling']:null,_0xe24e8b['isEmpty']||_0x4e3c33&&_0x4e3c33['isEmpty']){const _0x4d5a23=_0x4e3c33&&_0x4e3c33['isEmpty']?_0x4e3c33:_0xe24e8b;_0x5293bb&&_0x5293bb['type']==_0x1fe3ba+'EmptyContainer'&&_0x5293bb['element']['name']==_0x4d5a23['name']?_0x5293bb['quantity']++:_0x2aa2db['push']({'type':_0x1fe3ba+'EmptyContainer','element':_0x4d5a23,'quantity':0x1});}else _0x2aa2db['push']({'type':_0x1fe3ba+'Container','element':_0xe24e8b});}}}}}['_resolveDescriptionItems'](_0x567b97){const _0x7f1546=this['_locale'],_0x4acb63=[],_0x2003e9=[],_0x4e8bb9=[];for(const _0x3982b2 of _0x567b97)switch(_0x3982b2['type']){case'text':if(_0x3982b2['add']=_0x3982b2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3982b2['remove']=_0x3982b2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3982b2['add']&&''!=_0x3982b2['remove']){_0x4acb63['push']({'type':'replace','content':o(_0x7f1546,'REPLACE_TEXT',['\x22'+_0x3982b2['remove']+'\x22','\x22'+_0x3982b2['add']+'\x22'])});continue;}if(null!=_0x3982b2['add']['match'](/^ +$/)){_0x4acb63['push']({'type':'insertion','content':o(_0x7f1546,'*Insert:*\x20%0',o(_0x7f1546,'ELEMENT_SPACE',_0x3982b2['add']['length']))});continue;}if(null!=_0x3982b2['remove']['match'](/^ +$/)){_0x4acb63['push']({'type':'deletion','content':o(_0x7f1546,'*Remove:*\x20%0',o(_0x7f1546,'ELEMENT_SPACE',_0x3982b2['remove']['length']))});continue;}if(''!=_0x3982b2['add']){_0x4acb63['push']({'type':'insertion','content':o(_0x7f1546,'*Insert:*\x20%0','\x22'+_0x3982b2['add']+'\x22')});continue;}_0x4acb63['push']({'type':'deletion','content':o(_0x7f1546,'*Remove:*\x20%0','\x22'+_0x3982b2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4acb63['push']({'type':'insertion','content':o(_0x7f1546,'*Insert:*\x20%0',this['getItemLabel'](_0x3982b2['element'],_0x3982b2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4acb63['push']({'type':'deletion','content':o(_0x7f1546,'*Remove:*\x20%0',this['getItemLabel'](_0x3982b2['element'],_0x3982b2['quantity']))});continue;case'addContainer':_0x4acb63['push']({'type':'insertion','content':o(_0x7f1546,'*Split:*\x20%0',this['getItemLabel'](_0x3982b2['element'],_0x3982b2['quantity']))});continue;case'removeContainer':_0x4acb63['push']({'type':'deletion','content':o(_0x7f1546,'*Merge:*\x20%0',this['getItemLabel'](_0x3982b2['element'],_0x3982b2['quantity']))});continue;case'addFormat':_0x2003e9['push'](_0x3982b2['key']);continue;case'removeFormat':_0x4e8bb9['push'](_0x3982b2['key']);continue;default:_0x4acb63['push'](_0x3982b2);}if(_0x2003e9['length']){const _0xe10d3d=_0x2003e9['map'](_0x2d74f7=>this['_attributeLabels']['has'](_0x2d74f7)?this['_attributeLabels']['get'](_0x2d74f7):_0x2d74f7)['join'](',\x20');_0x4acb63['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xe10d3d)});}if(_0x4e8bb9['length']){const _0x4588c0=_0x4e8bb9['map'](_0x23cd9c=>this['_attributeLabels']['has'](_0x23cd9c)?this['_attributeLabels']['get'](_0x23cd9c):_0x23cd9c)['join'](',\x20');_0x4acb63['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x4588c0)});}return _0x4acb63;}['_handleCustomCallbackDescription'](_0x420d13){for(const _0x4bea6d of this['_customCallbacks']){const _0xab6418=_0x4bea6d(_0x420d13);if(_0xab6418&&'type'in _0xab6418)return _0xab6418;}}['_handleAttributeSuggestionDescription'](_0x22ab72,_0x53350d){const _0x5d90e3=_0x53350d['data'],_0x459015=void 0x0===_0x5d90e3['newValue']?'removeFormat':'addFormat';_0x22ab72['push']({'type':_0x459015,'key':_0x5d90e3['key']});}['_handleRenameSuggestionDescription'](_0x813faf,_0x1055b4){_0x813faf['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1055b4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xe4d505,_0x3989a6,_0x497f4b){if(this['_addDescriptionItems'](_0xe4d505,_0x3989a6),_0x497f4b&&_0x497f4b['getFirstRange']()&&!_0x3989a6['getFirstRange']()['end']['isEqual'](_0x497f4b['getFirstRange']()['start'])){const _0xec702b=_0xe4d505[_0xe4d505['length']-0x1],_0x29e4ea='insertion'==_0x3989a6['type']?'add':'remove';_0xec702b&&'text'==_0xec702b['type']&&(_0xec702b[_0x29e4ea]+='\x0a');}}}class U extends _0x252f3f{['afterInit'](){const _0xa1fcef=this['editor'],_0x3020bc=_0xa1fcef['plugins']['get']('TrackChangesEditing');_0xa1fcef['commands']['get']('showAIAssistant')&&_0x3020bc['enableCommand']('showAIAssistant');}}class V extends _0x252f3f{['afterInit'](){const _0x4d0e40=this['editor'],_0x16ff3f=_0x4d0e40['locale'];if(!_0x4d0e40['plugins']['has']('AlignmentEditing'))return;const _0x425e97=_0x4d0e40['plugins']['get']('TrackChangesEditing');_0x425e97['enableDefaultAttributesIntegration']('alignment'),_0x425e97['registerBlockAttribute']('alignment'),_0x425e97['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x16ff3f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e712b=this['editor'],_0x3b0464=_0x1e712b['locale'];_0x1e712b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5763eb=>{if('formatBlock'!=_0x5763eb['type'])return;const {data:_0x2a1827}=_0x5763eb;if(_0x2a1827&&'alignment'==_0x2a1827['commandName']){const _0x5589b1=_0x2a1827['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3b0464,'*Format:*\x20%0',function(_0x1af062){switch(_0x1af062){case'left':return o(_0x3b0464,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3b0464,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3b0464,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3b0464,'FORMAT_JUSTIFY_TEXT');}}(_0x5589b1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x252f3f{['afterInit'](){const _0x5e72ca=this['editor'],_0x73308e=_0x5e72ca['plugins']['get']('TrackChangesEditing'),_0x1c7a83=_0x5e72ca['locale'];for(const _0x3de85c of ti){if(!_0x5e72ca['plugins']['has'](_0x3de85c))continue;const _0x113ae8=_0x3de85c['slice'](0x0,-0x7)['toLowerCase'](),_0x4d2925='FORMAT_'+_0x113ae8['toUpperCase']();_0x73308e['enableDefaultAttributesIntegration'](_0x113ae8),_0x73308e['registerInlineAttribute'](_0x113ae8),_0x73308e['descriptionFactory']['registerAttributeLabel'](_0x113ae8,o(_0x1c7a83,_0x4d2925));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d4253=this['editor'],_0x2a9c2f=_0x4d4253['locale'],_0x48fcb9=_0x4d4253['plugins']['get']('TrackChangesEditing');function _0x2fb17e(_0x5487a0,_0x2bf1ea){_0x48fcb9['descriptionFactory']['registerDescriptionCallback'](_0x35f611=>{if('formatInline'!=_0x35f611['type'])return;const {data:_0x1bd63f}=_0x35f611;return _0x1bd63f&&_0x1bd63f['commandName']===_0x5487a0?_0x1bd63f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a9c2f,'*Format:*\x20%0',_0x2bf1ea)}:{'type':'format','content':o(_0x2a9c2f,'*Remove\x20format:*\x20%0',_0x2bf1ea)}:void 0x0;});}_0x2fb17e('bold',o(_0x2a9c2f,'FORMAT_BOLD')),_0x2fb17e('italic',o(_0x2a9c2f,'FORMAT_ITALIC')),_0x2fb17e('underline',o(_0x2a9c2f,'FORMAT_UNDERLINE')),_0x2fb17e('code',o(_0x2a9c2f,'FORMAT_CODE')),_0x2fb17e('strikethrough',o(_0x2a9c2f,'FORMAT_STRIKETHROUGH')),_0x2fb17e('subscript',o(_0x2a9c2f,'FORMAT_SUBSCRIPT')),_0x2fb17e('superscript',o(_0x2a9c2f,'FORMAT_SUPERSCRIPT'));}}class F extends _0x252f3f{['afterInit'](){const _0x58b4b6=this['editor'],_0x1ff2e7=_0x58b4b6['locale'];if(!_0x58b4b6['plugins']['has']('BlockQuoteEditing'))return;const _0x5a75e7=_0x58b4b6['plugins']['get']('TrackChangesEditing'),_0x79c737=this['editor']['commands']['get']('blockQuote');_0x5a75e7['enableCommand']('blockQuote',(_0x2d7bbb,_0x120084={})=>{const _0x43ae48=this['editor']['model']['document']['selection'],_0x40401c=_0x120084&&void 0x0!==_0x120084['forceValue']?_0x120084['forceValue']:!_0x79c737['value'];let _0x974186=[];if(_0x40401c){const _0x4d9eb4=Array['from'](_0x43ae48['getSelectedBlocks']())['filter'](_0x118f20=>oo(_0x118f20)||function(_0x48a979,_0x447e8b){const _0x20e210=_0x447e8b['checkChild'](_0x48a979['parent'],'blockQuote'),_0x2abd19=_0x447e8b['checkChild'](['$root','blockQuote'],_0x48a979);return _0x20e210&&_0x2abd19;}(_0x118f20,this['editor']['model']['schema']));_0x974186=to(_0x4d9eb4,_0x58b4b6['model']);}else{const _0x390d6d=Array['from'](_0x43ae48['getSelectedBlocks']())['filter'](_0x27757c=>oo(_0x27757c));_0x974186=to(_0x390d6d,_0x58b4b6['model']);}_0x58b4b6['model']['change'](()=>{for(const _0x5319a9 of _0x974186)_0x5a75e7['markBlockFormat'](_0x5319a9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x40401c}]});});}),_0x5a75e7['descriptionFactory']['registerDescriptionCallback'](_0x38f55d=>{const {data:_0xd24ddd}=_0x38f55d;if(_0xd24ddd&&'blockQuote'==_0xd24ddd['commandName']){const _0x598f2f=o(_0x1ff2e7,'ELEMENT_BLOCK_QUOTE');return _0xd24ddd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1ff2e7,'*Set\x20format:*\x20%0',_0x598f2f)}:{'type':'format','content':o(_0x1ff2e7,'*Remove\x20format:*\x20%0',_0x598f2f)};}});}}function oo(_0x2fa605){return'blockQuote'==_0x2fa605['parent']['name'];}class L extends _0x252f3f{['afterInit'](){const _0x3f0885=this['editor'],_0x3e45e8=_0x3f0885['locale'],_0x27cbde=_0x3f0885['plugins']['get']('TrackChangesEditing');_0x3f0885['plugins']['has']('BookmarkEditing')&&(_0x27cbde['enableCommand']('insertBookmark'),_0x27cbde['enableDefaultAttributesIntegration']('updateBookmark'),_0x27cbde['registerBlockAttribute']('bookmarkId'),_0x27cbde['descriptionFactory']['registerDescriptionCallback'](_0x73572b=>{if('insertion'!=_0x73572b['type']&&'deletion'!=_0x73572b['type']&&'attribute'!=_0x73572b['type'])return;const _0x2b7b7a=_0x73572b['getContainedElement']();if(null==_0x2b7b7a)return;if(!_0x2b7b7a['is']('element','bookmark'))return;const _0x4f4096=_0x2b7b7a['getAttribute']('bookmarkId');if('insertion'==_0x73572b['type'])return{'type':'insertion','content':o(_0x3e45e8,'*Insert:*\x20%0','\x22'+_0x4f4096+'\x22\x20'+o(_0x3e45e8,'ELEMENT_BOOKMARK'))};if('deletion'==_0x73572b['type'])return{'type':'deletion','content':o(_0x3e45e8,'*Remove:*\x20%0','\x22'+_0x4f4096+'\x22\x20'+o(_0x3e45e8,'ELEMENT_BOOKMARK'))};const {data:_0x14293a}=_0x73572b;if(!_0x14293a||'bookmarkId'!=_0x14293a['key'])return;return{'type':'format','content':o(_0x3e45e8,'*Set\x20bookmark:*\x20%0','\x22'+_0x14293a['newValue']+'\x22')};}));}}class J extends _0x252f3f{['afterInit'](){const _0x840de0=this['editor'];_0x840de0['plugins']['has']('CaseChange')&&(_0x840de0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x840de0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x840de0['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x252f3f{['afterInit'](){const _0x13626d=this['editor'];_0x13626d['commands']['get']('ckbox')&&_0x13626d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x252f3f{['afterInit'](){const _0x330aaa=this['editor'];if(!_0x330aaa['plugins']['has']('CodeBlock'))return;const _0x4af69b=_0x330aaa['plugins']['get']('TrackChangesEditing'),_0x41c0d7=_0x330aaa['locale'],_0x4d7218=_0x330aaa['config']['get']('codeBlock')['languages'],_0x559274=_0x330aaa['commands']['get']('codeBlock');_0x4af69b['enableCommand']('indentCodeBlock'),_0x4af69b['enableCommand']('outdentCodeBlock'),_0x4af69b['enableCommand']('codeBlock',(_0x3b1973,_0x402466={})=>{const _0xd540e0=_0x330aaa['model'],_0x9446db=_0x330aaa['model']['document']['selection'],_0x48ebc7=_0x402466&&void 0x0!==_0x402466['forceValue']?_0x402466['forceValue']:!_0x559274['value'];let _0x273288;_0x402466['language']||(_0x402466['language']=_0x4d7218[0x0]['language']),_0x273288=_0x48ebc7?Array['from'](_0x9446db['getSelectedBlocks']())['filter'](_0x214fd6=>eo(_0x214fd6)||function(_0xbe3d4c,_0x3a0325){if(_0xbe3d4c['is']('rootElement')||_0x3a0325['isLimit'](_0xbe3d4c))return!0x1;return _0x3a0325['checkChild'](_0xbe3d4c['parent'],'codeBlock');}(_0x214fd6,_0xd540e0['schema'])):Array['from'](_0x9446db['getSelectedBlocks']())['filter'](_0x20811b=>eo(_0x20811b));const _0x2cbd4f=to(_0x273288,_0xd540e0);_0xd540e0['change'](()=>{for(const _0x33042c of _0x2cbd4f)_0x4af69b['markBlockFormat'](_0x33042c,{'commandName':'codeBlock','commandParams':[{..._0x402466,'forceValue':_0x48ebc7}],'formatGroupId':'blockName'});});}),(_0x4af69b['descriptionFactory']['registerElementLabel']('codeBlock',_0x431166=>o(_0x41c0d7,'ELEMENT_CODE_BLOCK',_0x431166)),_0x4af69b['descriptionFactory']['registerDescriptionCallback'](_0x2a9d6a=>{if('formatBlock'!=_0x2a9d6a['type'])return;const _0x539df3=_0x41c0d7['t'],{data:_0xec761c}=_0x2a9d6a;if(!_0xec761c||'codeBlock'!=_0xec761c['commandName'])return;const _0x32599e=_0xec761c['commandParams'][0x0]['language'],_0x31a260=_0x539df3(_0x4d7218['find'](_0x367855=>_0x367855['language']===_0x32599e)['label'])['toLowerCase']();return _0xec761c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41c0d7,'*Set\x20format:*\x20%0',o(_0x41c0d7,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x31a260+')')}:{'type':'format','content':o(_0x41c0d7,'*Remove\x20format:*\x20%0',o(_0x41c0d7,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1504fd){return'codeBlock'==_0x1504fd['name'];}class z extends _0x252f3f{['afterInit'](){const _0x522ad8=this['editor'];if(!_0x522ad8['plugins']['has']('CommentsEditing'))return;_0x522ad8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4bf7c9,_0x10c417,_0x25e280){const _0xc4a264=[];for(const _0x25f6e6 of _0x10c417['getItems']())_0x25f6e6['hasAttribute'](_0x4bf7c9)&&_0xc4a264['push'](_0x25e280['createRangeOn'](_0x25f6e6));return _0xc4a264;}function De(_0x204657,_0x3020d2,{showActiveMarker:_0x178c82=!0x0}={}){const _0x3742c5=_0x204657['plugins']['get']('TrackChangesEditing');return(_0x1ebc7a,_0x3ae14e,_0x46e0ff)=>{if(!_0x46e0ff['consumable']['test'](_0x3ae14e['markerRange'],_0x1ebc7a['name']))return;const _0x30315a=_0x3ae14e['markerRange']['getWalker'](),_0x2854d6=_0x3ae14e['markerRange']['start'],_0x270498=_0x204657['model']['schema'];let _0x42b723=null,_0x5b9ea5=null,_0x58db57=!0x1,_0x2ae342=!0x1;for(const _0x3362e1 of _0x30315a){const _0xc2523e=_0x3362e1['item'];_0x58db57=_0x58db57||_0x270498['isContent'](_0xc2523e);const _0x224247=_0x46e0ff['mapper']['toViewElement'](_0xc2523e);if(_0x224247&&_0x224247['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3362e1['type']&&(_0x270498['isBlock'](_0xc2523e)&&!_0x270498['isLimit'](_0xc2523e)&&(_0xc2523e['nextSibling']||_0x2854d6['isAtEnd']?_0x42b723&&_0x42b723['parent']==_0xc2523e||(_0x42b723=_0xc2523e,_0x36fa91(_0x3362e1['previousPosition']),_0x2ae342=!0x0):_0x5b9ea5=_0x5b9ea5||_0x3362e1['previousPosition']));}function _0x36fa91(_0xbf1642){const {authorId:_0x35771b}=_0x3742c5['_splitMarkerName'](_0x3ae14e['markerName']),_0x42f124=_0x46e0ff['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3020d2,'data-author-id':_0x35771b}),_0x5de2d8=_0x46e0ff['mapper']['toViewPosition'](_0xbf1642);_0x178c82&&_0x3742c5['activeMarkers']['includes'](_0x3ae14e['markerName'])&&_0x46e0ff['writer']['addClass']('ck-suggestion-marker--active',_0x42f124),_0x46e0ff['writer']['insert'](_0x5de2d8,_0x42f124),_0x46e0ff['mapper']['bindElementToMarker'](_0x42f124,_0x3ae14e['markerName']);}_0x58db57||_0x2ae342||!_0x5b9ea5||_0x36fa91(_0x5b9ea5);};}class K extends _0x252f3f{static get['requires'](){return[_0x891ace];}['init'](){const _0x265528=this['editor'],_0x19995e=_0x265528['plugins']['get']('TrackChangesEditing');_0x19995e['enableCommand']('delete');const _0x5a33a0=_0x265528['commands']['get']('deleteForward');_0x19995e['enableCommand']('deleteForward',(_0xbaf4,_0x1488de={})=>{const _0xc22a48=_0x265528['model']['createSelection'](_0x265528['model']['document']['selection']);_0xc22a48['isCollapsed']&&_0x265528['model']['modifySelection'](_0xc22a48,{'direction':'forward','unit':_0x1488de['unit']});const _0x4cfaee=_0xc22a48['getFirstRange'](),_0x1af22b=_0x206398['fromRange'](_0x4cfaee);let _0x726de;_0xbaf4(_0x1488de),_0x726de='$graveyard'==_0x1af22b['root']['rootName']?_0x265528['model']['createRange'](_0x4cfaee['start']):_0x265528['model']['createRange'](_0x1af22b['start'],_0x1af22b['end']),_0x1af22b['detach'](),_0x265528['model']['enqueueChange'](_0x5a33a0['buffer']['batch'],_0x9ab53f=>{_0x5a33a0['buffer']['lock'](),_0x9ab53f['setSelection'](_0x9ab53f['createRange'](_0x726de['end'])),_0x5a33a0['buffer']['unlock']();});}),_0x265528['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x265528,'merge'),{'priority':'high'}),_0x265528['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x494cae,_0x31cead,_0x15f4d9)=>{_0x15f4d9['options']['showSuggestionHighlights']&&De(_0x265528,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x494cae,_0x31cead,_0x15f4d9);},{'priority':'high'}),_0x265528['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x1dd1e9,_0x566dd7,_0x3fc5b0)=>{const _0x4b204c=_0x3fc5b0['mapper']['markerNameToElements'](_0x566dd7['markerName']);if(_0x4b204c){for(const _0x321535 of _0x4b204c)_0x321535['is']('uiElement')&&(_0x3fc5b0['mapper']['unbindElementFromMarkerName'](_0x321535,_0x566dd7['markerName']),_0x3fc5b0['writer']['remove'](_0x321535));}},{'priority':'high'});}}class W extends _0x252f3f{['afterInit'](){const _0x2053b2=this['editor'];if(!_0x2053b2['plugins']['has']('ListEditing'))return;const _0x321466=_0x2053b2['locale'],_0x4d66e3=_0x2053b2['plugins']['get']('TrackChangesEditing'),_0x176494=_0x2053b2['plugins']['has']('TodoListEditing'),_0x4c7a28=!!_0x2053b2['config']['get']('list.multiBlock');function _0x29c5bc(_0x1a440b){return{'type':'format','content':''+o(_0x321466,'*Set\x20format:*\x20%0',_0x1a440b)};}function _0x3f0f93(_0x2e7464){return{'type':'format','content':''+o(_0x321466,'*Remove\x20format:*\x20%0',_0x2e7464)};}_0x4d66e3['enableDefaultAttributesIntegration']('numberedList'),_0x4d66e3['enableDefaultAttributesIntegration']('bulletedList'),_0x4d66e3['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d66e3['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d66e3['enableDefaultAttributesIntegration']('indentList'),_0x4d66e3['enableDefaultAttributesIntegration']('outdentList'),_0x4d66e3['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d66e3['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d66e3['registerBlockAttribute']('listItemId'),_0x4d66e3['registerBlockAttribute']('listType'),_0x4d66e3['registerBlockAttribute']('listIndent'),_0x4c7a28&&(_0x4d66e3['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d66e3['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x176494&&(_0x4d66e3['enableDefaultAttributesIntegration']('todoList'),_0x4d66e3['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d66e3['registerBlockAttribute']('todoListChecked'),_0x4d66e3['descriptionFactory']['registerDescriptionCallback'](_0x267a58=>{const {data:_0x2b0bbf}=_0x267a58;if(_0x2b0bbf&&'todoListChecked'==_0x2b0bbf['key'])return{'type':'format','content':_0x2b0bbf['newValue']?o(_0x321466,'*Check\x20item*'):o(_0x321466,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4216fb=>{if(_0x4216fb['batch']['isUndo'])return!0x1;let _0xfa3afe=!0x1;const _0x616dc9=_0x4d66e3['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5390c9=>'todoListChecked'===_0x4d66e3['_getAttributeKey'](_0x5390c9));for(const _0x3fe477 of _0x616dc9){'todo'!=_0x3fe477['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d66e3['_findSuggestions'](_0x3fe477['getFirstRange'](),'attribute')['find'](_0x3716c4=>'listType'===_0x4d66e3['_getAttributeKey'](_0x3716c4['suggestion']))||(_0x4216fb['removeMarker'](_0x3fe477['getFirstMarker']()),_0xfa3afe=!0x0));}return _0xfa3afe;})),_0x4d66e3['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x321466,'FORMAT_INDENT'));const _0x54449c={'type':'format','content':''};_0x4d66e3['descriptionFactory']['registerDescriptionCallback'](_0x45e547=>{const {data:_0x4628a0}=_0x45e547;if(!_0x4628a0||'listType'!=_0x4628a0['key'])return;let _0x19ce2e=_0x45e547['head'];for(;_0x19ce2e;){if(_0x19ce2e['data']&&(('listStyle'==_0x19ce2e['data']['key']||'listMarkerStyle'==_0x19ce2e['data']['key'])&&(_0x19ce2e['data']['newValue']&&'default'!=_0x19ce2e['data']['newValue']||'default'!=_0x19ce2e['data']['oldValue']&&!_0x4628a0['newValue'])||!_0x4c7a28&&_0x19ce2e['data']['key']==m))return _0x54449c;_0x19ce2e=_0x19ce2e['next'];}if(null==_0x4628a0['newValue'])switch(_0x4628a0['oldValue']){case'bulleted':return _0x3f0f93(o(_0x321466,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3f0f93(o(_0x321466,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3f0f93(o(_0x321466,'ELEMENT_TODO_LIST'));}switch(_0x4628a0['newValue']){case'bulleted':return _0x29c5bc(o(_0x321466,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x29c5bc(o(_0x321466,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x29c5bc(o(_0x321466,'ELEMENT_TODO_LIST'));}}),_0x4d66e3['descriptionFactory']['registerDescriptionCallback'](_0x448e74=>{const {data:_0x1bc9ce}=_0x448e74;if(_0x1bc9ce&&'listIndent'==_0x1bc9ce['key'])return null==_0x1bc9ce['newValue']||null==_0x1bc9ce['oldValue']&&0x0==_0x1bc9ce['newValue']?_0x54449c:void 0x0;}),_0x4d66e3['descriptionFactory']['registerDescriptionCallback'](_0x42b27d=>{if('attribute'!=_0x42b27d['type'])return;const {data:_0x256ec1}=_0x42b27d;if(!_0x256ec1||'listItemId'!=_0x256ec1['key'])return;const _0x1bb27b=Te(_0x42b27d);return'newValue'==_0x1bb27b?{'type':'format','content':o(_0x321466,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1bb27b?{'type':'format','content':o(_0x321466,'*Split:*\x20list\x20item')}:_0x54449c;}),_0x2053b2['model']['document']['registerPostFixer'](_0x5071bf=>this['listItemIdFixer'](_0x5071bf)),_0x2053b2['model']['document']['registerPostFixer'](_0x1fa202=>this['noTrackChangesFixer'](_0x1fa202)),_0x2053b2['model']['document']['on']('change:data',(_0x4aa701,_0x532b99)=>{if(_0x532b99['isUndo']||!_0x532b99['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x530159){if(_0x530159['batch']['isUndo']||!_0x530159['batch']['isLocal'])return!0x1;let _0x67cd9=!0x1;const _0x44da66=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x35058a=>_0x35058a['data']&&'listItemId'==_0x35058a['data']['key'])['filter'](_0x2dca67=>_0x2dca67['data']['newValue']&&_0x2dca67['data']['oldValue']);for(const _0x31ef52 of _0x44da66)Te(_0x31ef52)||(_0x530159['removeMarker'](_0x31ef52['getFirstMarker']()),_0x67cd9=!0x0);return _0x67cd9;}['noTrackChangesFixer'](_0x42c3c4){if(_0x42c3c4['batch']['isUndo']||!_0x42c3c4['batch']['isLocal'])return!0x1;const _0x2f0f35=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2f0f35['trackChangesCommand']['value'])return!0x1;let _0x5cbdfb=!0x1;const _0x3cfcc0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3b13cb=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x25040c=>'attribute'==_0x25040c['type'])['filter'](_0x313a5c=>_0x3cfcc0['includes'](_0x313a5c['attributeKey']));if(0x0==_0x3b13cb['length'])return _0x5cbdfb;for(const _0x41dd0a of _0x3b13cb){const _0x307862=_0x2f0f35['_findSuggestions'](_0x41dd0a['range'],'attribute')['filter'](_0x87aa8f=>!_0x87aa8f['meta']['isNextTo'])['map'](_0x5ad96b=>_0x5ad96b['suggestion'])['filter'](_0x1daaac=>{const _0x27a5d9=_0x2f0f35['_getAttributeKey'](_0x1daaac);return _0x3cfcc0['includes'](_0x27a5d9);});if(_0x307862['length']){for(const _0x5df863 of _0x307862)_0x42c3c4['removeMarker'](_0x5df863['getFirstMarker']());_0x5cbdfb=!0x0;}}return _0x5cbdfb;}['assureChains'](){const _0x428654=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ba0bc=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x127bf8;const _0xcb0be3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x266b00=>{if(_0x266b00['data']['oldRange']||!_0x266b00['data']['newRange'])return null;if(!_0x266b00['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2bc2a2}=_0x428654['_splitMarkerName'](_0x266b00['name']);if(!_0x428654['hasSuggestion'](_0x2bc2a2))return null;const _0x58dd58=_0x428654['getSuggestion'](_0x2bc2a2);return _0x3ba0bc['includes'](_0x58dd58['data']['key']);})['map'](_0x329fb6=>{const {id:_0x2799a2}=_0x428654['_splitMarkerName'](_0x329fb6['name']),_0x596fc4=_0x428654['getSuggestion'](_0x2799a2);return _0x127bf8=_0x596fc4['attributes']['groupId'],_0x596fc4['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0xcb0be3['size'])return;const _0x6a4b8d=_0x428654['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x550d45=>'attribute'==_0x550d45['type']&&_0x550d45['data']&&_0x3ba0bc['includes'](_0x550d45['data']['key'])&&_0x550d45['attributes']['groupId']!=_0x127bf8)['map'](_0x56df29=>({'listItem':_0x56df29['getFirstRange']()['start']['nodeAfter'],'groupId':_0x56df29['attributes']['groupId']})),_0x42fc48=new Set();for(const {groupId:_0x1ed555,listItem:_0x2e265e}of _0x6a4b8d)_0xcb0be3['has'](_0x2e265e)&&_0x42fc48['add'](_0x1ed555);for(const _0x3b1d6d of _0x428654['getSuggestions']())_0x42fc48['has'](_0x3b1d6d['attributes']['groupId'])&&_0x3b1d6d['setAttribute']('groupId',_0x127bf8);}['_supportLegacySuggestions'](){const _0x13b44d=this['editor'],_0x11bad7=_0x13b44d['locale'],_0x2867a5=_0x13b44d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2867a5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x54eedc,_0x2ddc1){const _0x5662a0=[];for(let _0x4b8282 of _0x54eedc)_0x4b8282['start']['nodeAfter']===_0x4b8282['end']['parent']&&(_0x4b8282=_0x13b44d['model']['createRange'](_0x13b44d['model']['createPositionAt'](_0x4b8282['start']['nodeAfter'],0x0))),_0x5662a0['push'](_0x4b8282);_0x13b44d['model']['change'](_0x409dc9=>{const _0x2d88e4=_0x13b44d['model']['document']['selection'],_0x290b0f=Array['from'](_0x2d88e4['getRanges']())['map'](_0x1f89ac=>_0x206398['fromRange'](_0x1f89ac));_0x409dc9['setSelection'](_0x5662a0),_0x13b44d['commands']['get'](_0x2ddc1['commandName'])['refresh'](),_0x2ddc1['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x13b44d['execute'](_0x2ddc1['commandName'],..._0x2ddc1['commandParams']),_0x409dc9['setSelection'](_0x290b0f);for(const _0x5e3e40 of _0x290b0f)_0x5e3e40['detach']();});}),_0x2867a5['descriptionFactory']['registerElementLabel'](function(_0x3a6451){const _0x6c76e=!_0x13b44d['model']['schema']['isObject'](_0x3a6451),_0x465202=_0x3a6451['previousSibling'],_0x335b6c=_0x3a6451['nextSibling'],_0x27838d=_0x3a6451['getAttribute']('listItemId'),_0x20e648=!_0x465202||_0x465202['getAttribute']('listItemId')!==_0x27838d,_0x469064=!_0x335b6c||_0x335b6c['getAttribute']('listItemId')!==_0x27838d;return _0x6c76e&&Boolean(_0x27838d)&&_0x20e648&&_0x469064;},_0x538d0a=>o(_0x11bad7,'ELEMENT_LIST_ITEM',_0x538d0a));}['_registerLegacyDescription'](){const _0x1d2baf=this['editor'],_0x406c9b=_0x1d2baf['locale'];function _0x21064f(_0xc01a04){const _0x2df6a6=_0x1d2baf['commands']['get']('bulletedList')['value'],_0x552a29=_0x1d2baf['commands']['get']('numberedList')['value'];return'numberedList'===_0xc01a04?_0x2df6a6:_0x552a29;}_0x1d2baf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x39b02a){if('formatBlock'!=_0x39b02a['type'])return;const {data:_0x1fc001}=_0x39b02a;if(!_0x1fc001)return;let _0x13f782,_0x171ea0,_0x207fc3,_0x4d7233;switch(_0x1fc001['commandName']){case'bulletedList':_0x207fc3=_0x1fc001['commandParams'][0x0]['forceValue'],_0x4d7233=_0x21064f(_0x1fc001['commandName']),_0x13f782=_0x207fc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d7233&&_0x1d2baf['config']['get']('list.multiBlock')||(_0x13f782='*Change\x20to:*\x20%0'),_0x171ea0={'type':'format','content':o(_0x406c9b,_0x13f782,o(_0x406c9b,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x207fc3=_0x1fc001['commandParams'][0x0]['forceValue'],_0x4d7233=_0x21064f(_0x1fc001['commandName']),_0x13f782=_0x207fc3?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4d7233&&_0x1d2baf['config']['get']('list.multiBlock')||(_0x13f782='*Change\x20to:*\x20%0'),_0x171ea0={'type':'format','content':o(_0x406c9b,_0x13f782,o(_0x406c9b,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x13f782='*Indent:*\x20%0',_0x171ea0={'type':'format','content':o(_0x406c9b,_0x13f782,o(_0x406c9b,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x13f782=function(_0x869f59){const _0x3375c7=_0x869f59['getFirstRange']();let _0x489c08=_0x3375c7['start']['nodeAfter'];for(;_0x489c08&&_0x3375c7['containsItem'](_0x489c08);){if(_0x489c08['getAttribute']('listIndent')>0x0)return!0x1;_0x489c08=_0x489c08['nextSibling'];}return!0x0;}(_0x39b02a)?o(_0x406c9b,'*Format:*\x20remove\x20from\x20%0',o(_0x406c9b,function(_0x5bd1f6){return'ELEMENT_'+_0x5bd1f6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x39b02a))):o(_0x406c9b,'*Outdent:*\x20%0',o(_0x406c9b,'ELEMENT_LIST_ITEM')),_0x171ea0={'type':'format','content':_0x13f782};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1fc001['multipleBlocks']&&(_0x13f782='*Merge:*\x20%0',_0x171ea0={'type':'deletion','content':o(_0x406c9b,_0x13f782,o(_0x406c9b,'ELEMENT_LIST_ITEM'))});}return _0x171ea0;});}}function Te(_0x55596b){let _0x27991f=_0x55596b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x27991f;){const _0x12554f=_0x27991f['getAttribute']('listItemId');if(!_0x12554f)return!0x1;if(_0x12554f==_0x55596b['data']['newValue'])return'newValue';if(_0x12554f==_0x55596b['data']['oldValue'])return'oldValue';_0x27991f=_0x27991f['previousSibling'];}return!0x1;}class Se extends _0x252f3f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2ed393=this['editor']['config']['get']('list.properties'),_0x5af295=this['editor']['plugins']['get']('TrackChangesEditing');_0x2ed393['styles']&&(_0x5af295['enableDefaultAttributesIntegration']('listStyle'),_0x5af295['registerBlockAttribute']('listStyle')),_0x2ed393['reversed']&&(_0x5af295['enableDefaultAttributesIntegration']('listReversed'),_0x5af295['registerBlockAttribute']('listReversed')),_0x2ed393['startIndex']&&(_0x5af295['enableDefaultAttributesIntegration']('listStart'),_0x5af295['registerBlockAttribute']('listStart'));const _0x43559b={'type':'format','content':''};_0x5af295['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xce414f=this['editor']['locale'];_0x5af295['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xce414f,'FORMAT_LIST_REVERSED')),_0x5af295['descriptionFactory']['registerDescriptionCallback'](_0x76d262=>{const {data:_0x2a152d}=_0x76d262;if(_0x2a152d&&'listReversed'==_0x2a152d['key'])return null==_0x2a152d['newValue']||0x0==_0x2a152d['newValue']&&null==_0x2a152d['oldValue']?_0x43559b:void 0x0;}),_0x5af295['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xce414f,'FORMAT_LIST_START')),_0x5af295['descriptionFactory']['registerDescriptionCallback'](_0x20d477=>{const {data:_0x3bd1a6}=_0x20d477;if(_0x3bd1a6&&'listStart'==_0x3bd1a6['key'])return null==_0x3bd1a6['newValue']||0x1==_0x3bd1a6['newValue']&&null==_0x3bd1a6['oldValue']?_0x43559b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x55270d=>{if(_0x55270d['batch']['isUndo'])return!0x1;let _0x40b161=!0x1;const _0x20be89=_0x5af295['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x226f08=>{const _0x2c4aa0=_0x5af295['_getAttributeKey'](_0x226f08);return'listStart'==_0x2c4aa0||'listReversed'==_0x2c4aa0;});for(const _0x5304f3 of _0x20be89){const _0x188a0b=_0x5304f3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x188a0b||'customNumbered'==_0x188a0b)continue;_0x5af295['_findSuggestions'](_0x5304f3['getFirstRange'](),'attribute')['find'](_0x40eaea=>'listType'==_0x5af295['_getAttributeKey'](_0x40eaea['suggestion']))||(_0x55270d['removeMarker'](_0x5304f3['getFirstMarker']()),_0x40b161=!0x0);}return _0x40b161;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x193f18){const _0x2b95fe=this['editor']['locale'],{data:_0x16f184}=_0x193f18,_0x6d1b55={'type':'format','content':''};if(!_0x16f184||'listStyle'!=_0x16f184['key'])return;if(!_0x16f184['oldValue'])return'default'==_0x16f184['newValue']?_0x6d1b55:{'type':'format','content':''+o(_0x2b95fe,'*Set\x20format:*\x20%0',o(_0x2b95fe,this['_getTranslationKeyForListStyle'](_0x16f184['newValue'])))};if(!_0x16f184['newValue']){if('default'==_0x16f184['oldValue'])return _0x6d1b55;let _0x55fb85=_0x193f18['head'];for(;_0x55fb85;){if(_0x55fb85['data']&&'listType'==_0x55fb85['data']['key']&&_0x55fb85['data']['newValue'])return _0x6d1b55;_0x55fb85=_0x55fb85['next'];}return{'type':'format','content':''+o(_0x2b95fe,'*Remove\x20format:*\x20%0',o(_0x2b95fe,this['_getTranslationKeyForListStyle'](_0x16f184['oldValue'])))};}if('default'!=_0x16f184['newValue'])return{'type':'format','content':''+o(_0x2b95fe,'*Set\x20format:*\x20%0',o(_0x2b95fe,this['_getTranslationKeyForListStyle'](_0x16f184['newValue'])))};let _0x414d14=_0x193f18['head'];for(;_0x414d14;){if(_0x414d14['data']&&'listType'==_0x414d14['data']['key']&&_0x414d14['data']['newValue']&&_0x414d14['data']['oldValue'])return _0x6d1b55;_0x414d14=_0x414d14['next'];}return{'type':'format','content':o(_0x2b95fe,'*Set\x20format:*\x20%0',o(_0x2b95fe,'ELEMENT_'+_0x193f18['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5b5457=this['editor'],_0x2e7526=_0x5b5457['locale'];_0x5b5457['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x22652e=>{if('formatBlock'!=_0x22652e['type'])return;const {data:_0x2e2f22}=_0x22652e;if(!_0x2e2f22)return;let _0x1ca623,_0x32ca16;switch(_0x2e2f22['commandName']){case'listStyle':_0x1ca623='*Change\x20to:*\x20%0',_0x32ca16={'type':'format','content':o(_0x2e7526,_0x1ca623,o(_0x2e7526,this['_getTranslationKeyForListStyle'](_0x2e2f22['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1ca623=_0x2e2f22['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x32ca16={'type':'format','content':o(_0x2e7526,_0x1ca623)};break;case'listStart':_0x1ca623='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x32ca16={'type':'format','content':o(_0x2e7526,_0x1ca623,_0x2e2f22['commandParams'][0x0]['startIndex'])};}return _0x32ca16;});}['_getTranslationKeyForListStyle'](_0x35fd5c){return'ELEMENT_'+function(_0x389fb5){if(_e['includes'](_0x389fb5))return'bulleted';if(Re['includes'](_0x389fb5))return'numbered';return null;}(_0x35fd5c)['toUpperCase']()+'_LIST_'+_0x35fd5c['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x252f3f{['afterInit'](){const _0x525739=this['editor'];_0x525739['commands']['get']('emoji')&&_0x525739['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x252f3f{static get['requires'](){return[_0x52546c];}['init'](){const _0xce058c=this['editor'],_0x2efe45=_0xce058c['plugins']['get']('TrackChangesEditing'),_0x2c4b6c=_0xce058c['commands']['get']('enter');_0x2efe45['enableCommand']('enter',()=>{_0xce058c['model']['change'](_0x24de73=>{const _0x41ff44=_0xce058c['model']['document']['selection'],_0x180e87=_0x41ff44['getFirstPosition'](),_0xb06924=_0x206398['fromRange'](_0x41ff44['getFirstRange']());if(_0x2c4b6c['enterBlock'](_0x24de73)){const _0x5efeb5=_0xce058c['model']['createPositionAt'](_0x180e87['parent']['nextSibling'],0x0),_0x38217b=_0x24de73['createRange'](_0x180e87,_0x5efeb5);_0x2efe45['markInsertion'](_0x38217b);}else _0x24de73['setSelection'](_0x24de73['createRange'](_0xb06924['end']));_0xb06924['detach'](),_0x2c4b6c['fire']('afterExecute',{'writer':_0x24de73});});}),_0xce058c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xce058c,'split'),{'priority':'high'}),_0xce058c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1a3cd9,_0x48085d,_0x5af42f)=>{const _0x5dc457=_0x5af42f['mapper']['markerNameToElements'](_0x48085d['markerName']);if(_0x5dc457){for(const _0x2ab333 of _0x5dc457)_0x2ab333['hasClass']('ck-suggestion-marker-split')&&(_0x5af42f['mapper']['unbindElementFromMarkerName'](_0x2ab333,_0x48085d['markerName']),_0x5af42f['writer']['remove'](_0x2ab333));}},{'priority':'high'}),_0xce058c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xea4795,_0x314554,_0xcb881a)=>{_0xcb881a['options']['showSuggestionHighlights']&&De(_0xce058c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xea4795,_0x314554,_0xcb881a);},{'priority':'high'});}}class Z extends _0x252f3f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x345015=this['editor']['plugins']['get']('TrackChangesEditing');_0x345015['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x345015['enableCommand']('findNext'),_0x345015['enableCommand']('findPrevious'),_0x345015['enableCommand']('replace'),_0x345015['enableCommand']('replaceAll');}['handleFindCommand'](_0x3cbba3,_0x364b99,_0x10add6={}){const _0x5f96a5=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3cbba3(_0x4bcc16=>{let _0x254b58=('string'==typeof _0x364b99?_0x5f96a5['findByTextCallback'](_0x364b99,_0x10add6):_0x364b99)(_0x4bcc16);Array['isArray'](_0x254b58)&&(_0x254b58={'results':_0x254b58,'searchText':'string'==typeof _0x364b99?_0x364b99:''});const _0xd7ee3c=_0x254b58['results']['filter'](_0x316502=>!0x1===this['_isInDeletionRange'](_0x316502,_0x4bcc16['item']));return{..._0x254b58,'results':_0xd7ee3c};},_0x10add6);}['_isInDeletionRange'](_0x3db2ed,_0x500866){const _0x57d8b0=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x500866,_0x3db2ed['start']),this['editor']['model']['createPositionAt'](_0x500866,_0x3db2ed['end']));for(const _0x24d53b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x57d8b0['getIntersection'](_0x24d53b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x252f3f{['afterInit'](){const _0x511029=this['editor']['locale'],_0x5df7d1=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x23761c,commandName:_0x2806e7}of ro)this['editor']['plugins']['has'](_0x23761c)&&(_0x5df7d1['enableDefaultAttributesIntegration'](_0x2806e7),_0x5df7d1['registerInlineAttribute'](_0x2806e7));_0x5df7d1['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x511029,'FORMAT_FONT_SIZE')),_0x5df7d1['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x511029,'FORMAT_FONT_FAMILY')),_0x5df7d1['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x511029,'FORMAT_FONT_COLOR')),_0x5df7d1['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x511029,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a6612=this['editor'],_0x14c428=_0x5a6612['locale'];_0x5a6612['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cc91c=>{const _0x398bd4=_0x14c428['t'];if('formatInline'!=_0x2cc91c['type'])return;const {data:_0x4090a8}=_0x2cc91c;if(null!=_0x4090a8){if('fontSize'==_0x4090a8['commandName']){const _0x3ed9bb=_0x4090a8['commandParams'][0x0]['value'];if(_0x3ed9bb){const _0x303c86=_0x398bd4(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x57fb74=>_0x57fb74['model']==_0x3ed9bb)['title'])['toLowerCase']();return{'type':'format','content':o(_0x14c428,'*Set\x20font\x20size:*\x20%0',_0x303c86)};}return{'type':'format','content':o(_0x14c428,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x4090a8['commandName']){const _0x211193=_0x4090a8['commandParams'][0x0]['value'];return _0x211193?{'type':'format','content':o(_0x14c428,'*Set\x20font\x20family:*\x20%0',_0x211193)}:{'type':'format','content':o(_0x14c428,'*Reset\x20font\x20family*')};}if('fontColor'==_0x4090a8['commandName']){const _0x4179b2=_0x4090a8['commandParams'][0x0]['value'];if(_0x4179b2){const _0x27f271=_0x175af5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2fe2a3=>_0x2fe2a3['model']==_0x4179b2);let _0x12284b=_0x4179b2,_0x2ef02f='';return _0x27f271&&(_0x12284b=_0x27f271['label'],_0x2ef02f=_0x398bd4(_0x12284b)['toLowerCase']()),{'type':'format','content':o(_0x14c428,'*Set\x20font\x20color:*\x20%0',_0x2ef02f)['trim'](),'color':{'value':_0x4179b2,'title':_0x2ef02f||_0x12284b}};}return{'type':'format','content':o(_0x14c428,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x4090a8['commandName']){const _0x1cb541=_0x4090a8['commandParams'][0x0]['value'];if(_0x1cb541){const _0xce1a1e=_0x175af5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x38e2aa=>_0x38e2aa['model']==_0x1cb541);let _0x35732f=_0x1cb541,_0x3fe5e1='';return _0xce1a1e&&(_0x35732f=_0xce1a1e['label'],_0x3fe5e1=_0x398bd4(_0x35732f)['toLowerCase']()),{'type':'format','content':o(_0x14c428,'*Set\x20font\x20background\x20color:*\x20%0',_0x3fe5e1)['trim'](),'color':{'value':_0x1cb541,'title':_0x3fe5e1||_0x35732f}};}return{'type':'format','content':o(_0x14c428,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x252f3f{['afterInit'](){const _0xaaad53=this['editor'],_0x1468de=_0xaaad53['plugins']['get']('TrackChangesEditing'),_0x152520=_0xaaad53['commands']['get']('copyFormat'),_0x50e912=_0xaaad53['commands']['get']('pasteFormat');_0x152520&&_0x50e912&&(_0x1468de['enableDefaultAttributesIntegration']('pasteFormat'),_0x1468de['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xee480d=this['editor'],_0x49814c=_0xee480d['locale'];_0xee480d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x505e59=>{if('formatBlock'!=_0x505e59['type']&&'formatInline'!=_0x505e59['type'])return;const {data:_0x2f78ee}=_0x505e59;if(_0x2f78ee&&'pasteFormat'===_0x2f78ee['commandName']){const _0x215b60=[],_0x4850d3=_0x2f78ee['commandParams'][0x0];for(const [_0x571976,_0x193360]of Object['entries'](_0x4850d3))_0x215b60['push'](so(_0xee480d,_0x571976,_0x193360));return _0x215b60['length']?{'type':'format','content':o(_0x49814c,'*Set\x20format\x20to:*\x20%0',_0x215b60['join'](',\x20'))}:{'type':'format','content':o(_0x49814c,'*Remove\x20all\x20formatting*')};}});}}function so(_0xb8912b,_0x421bde,_0x25eb1a){const _0x11865b=_0xb8912b['locale']['t'],_0x1dcb66=_0x421bde['split'](/(?=[A-Z])/)['join']('\x20'),_0x412a83=_0x11865b(_0x1dcb66['charAt'](0x0)['toUpperCase']()+_0x1dcb66['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x25eb1a)return _0x412a83;if('fontColor'===_0x421bde||'fontBackgroundColor'===_0x421bde){const _0x4ae35b=_0x175af5(_0xb8912b['config']['get']('fontColor.colors'))['find'](_0x2adeae=>_0x2adeae['model']==_0x25eb1a);return _0x412a83+'\x20('+(_0x4ae35b?_0x11865b(_0x4ae35b['label'])['toLowerCase']():_0x25eb1a)+')';}if('fontSize'===_0x421bde&&isNaN(parseFloat(_0x25eb1a))){const _0x5c4897=_0xb8912b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0xb8912b['config']['get']('fontSize.options'))['find'](_0x503c84=>_0x503c84['model']==_0x25eb1a);return _0x412a83+'\x20('+(_0x5c4897?_0x11865b(_0x5c4897['title'])['toLowerCase']():_0x25eb1a)+')';}return _0x412a83+'\x20('+_0x25eb1a+')';}class it extends _0x252f3f{['_headingOptions'];['afterInit'](){const _0x126637=this['editor'];if(!_0x126637['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x126637['config']['get']('heading.options');const _0x222235=_0x126637['locale'],_0x4eb1ca=_0x126637['plugins']['get']('TrackChangesEditing');_0x4eb1ca['enableDefaultAttributesIntegration']('heading');for(const _0x2ee6df of this['_headingOptions'])'paragraph'!=_0x2ee6df['model']&&_0x4eb1ca['descriptionFactory']['registerElementLabel'](_0x2ee6df['model'],_0x355ae9=>{const _0x1293b8=this['_getHeadingLevel'](_0x2ee6df['model']);return null!==_0x1293b8?_0x4b39bd(_0x355ae9,_0x1293b8):_0x2d81c3(_0x355ae9,_0x2ee6df['title']);});function _0x4b39bd(_0x537ec6,_0x1d3b6d){return o(_0x222235,'ELEMENT_HEADING',[_0x537ec6,_0x1d3b6d]);}function _0x2d81c3(_0x555cc4,_0x2d7883){return o(_0x222235,'ELEMENT_HEADING_CUSTOM',[_0x555cc4,_0x2d7883]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23b20c=this['editor'],_0xab43e7=_0x23b20c['locale'];function _0x272df4(_0x254c89,_0x480e63){return o(_0xab43e7,'ELEMENT_HEADING_CUSTOM',[_0x254c89,_0x480e63]);}_0x23b20c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d9b71=>{if('formatBlock'!=_0x3d9b71['type'])return;const {data:_0x32fcb0}=_0x3d9b71;if(_0x32fcb0&&'heading'==_0x32fcb0['commandName']){const _0x1c4b83=_0x32fcb0['commandParams'][0x0]['value'],_0x39838c=this['_getHeadingLevel'](_0x1c4b83);if(null!==_0x39838c)return{'type':'format','content':o(_0xab43e7,'*Change\x20to:*\x20%0',(_0x4693de=0x1,_0x5054e7=_0x39838c,o(_0xab43e7,'ELEMENT_HEADING',[_0x4693de,_0x5054e7])))};const _0x2e50a4=this['_headingOptions']['find'](_0x2b9353=>_0x2b9353['model']===_0x1c4b83)['title'];return{'type':'format','content':o(_0xab43e7,'*Change\x20to:*\x20%0',_0x272df4(0x1,_0x2e50a4))};}var _0x4693de,_0x5054e7;});}['_getHeadingLevel'](_0x31f489){const _0x453985=_0x31f489['match'](/^heading(\d+)/);if(_0x453985)return _0x453985[0x1];const _0x367c3b=this['_headingOptions']?.['find'](_0x2730cc=>_0x2730cc['model']==_0x31f489);if(_0x367c3b&&_0x367c3b['view']){const _0x13e18a=_0x367c3b['view'],_0x7c406c=(_0x13e18a['name']??_0x13e18a)['match'](/^h(\d+)/);if(_0x7c406c)return _0x7c406c[0x1];}return null;}}class et extends _0x252f3f{['afterInit'](){const _0x1b1ee9=this['editor'];if(!_0x1b1ee9['plugins']['has']('HighlightEditing'))return;const _0x544098=_0x1b1ee9['plugins']['get']('TrackChangesEditing'),_0x86d7db=_0x1b1ee9['locale'];_0x544098['enableDefaultAttributesIntegration']('highlight'),_0x544098['registerInlineAttribute']('highlight'),_0x544098['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x86d7db,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b9ab7=this['editor'],_0x284766=_0x2b9ab7['locale'];_0x2b9ab7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d0582=>{if('formatInline'!=_0x3d0582['type'])return;const {data:_0x5a79f5}=_0x3d0582;if(_0x5a79f5&&'highlight'==_0x5a79f5['commandName']){const _0x14c763=_0x284766['t'],_0x578109=_0x5a79f5['commandParams'][0x0]['value'];if(_0x578109){const _0x1ce2f0=_0x2b9ab7['config']['get']('highlight.options')['find'](_0x4f1a29=>_0x4f1a29['model']==_0x578109),_0x5852d0=_0x14c763(_0x1ce2f0['title'])['toLowerCase']();return{'type':'format','content':o(_0x284766,'*Set\x20highlight:*\x20%0',_0x5852d0),'color':{'value':_0x1ce2f0['color'],'title':_0x1ce2f0['title']}};}return{'type':'format','content':o(_0x284766,'*Remove\x20highlight*',o(_0x284766,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x252f3f{['afterInit'](){const _0x3cbcef=this['editor'];if(!_0x3cbcef['plugins']['has']('HorizontalLineEditing'))return;_0x3cbcef['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1ef545=_0x3cbcef['plugins']['get']('TrackChangesEditing'),_0x1217ee=_0x3cbcef['locale'];_0x1ef545['descriptionFactory']['registerElementLabel']('horizontalLine',_0x369097=>o(_0x1217ee,'ELEMENT_HORIZONTAL_LINE',_0x369097)),_0x3cbcef['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x11e543,{writer:_0x56904d,options:_0x2a61e6})=>{if(!_0x2a61e6['showSuggestionHighlights'])return null;const _0x371d8e=_0x56904d['createContainerElement']('div'),_0x453ee0=_0x56904d['createEmptyElement']('hr');return _0x56904d['addClass']('ck-horizontal-line',_0x371d8e),_0x56904d['insert'](_0x56904d['createPositionAt'](_0x371d8e,0x0),_0x453ee0),_0x371d8e;},'converterPriority':'high'});}}class ot extends _0x252f3f{['afterInit'](){const _0x7ca988=this['editor'];if(!_0x7ca988['plugins']['has']('HtmlEmbed'))return;const _0x21058b=_0x7ca988['plugins']['get']('TrackChangesEditing'),_0x8a7bf1=_0x7ca988['locale'];_0x21058b['descriptionFactory']['registerElementLabel']('rawHtml',_0x2baadc=>o(_0x8a7bf1,'ELEMENT_HTML_EMBED',_0x2baadc)),_0x21058b['enableDefaultAttributesIntegration']('htmlEmbed'),_0x21058b['registerBlockAttribute']('value'),_0x21058b['descriptionFactory']['registerDescriptionCallback'](_0x2d3572=>{if('attribute'!=_0x2d3572['type'])return;const {data:_0x5454e5}=_0x2d3572;if(_0x5454e5&&'value'==_0x5454e5['key']&&_0x2d3572['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5b475f=o(_0x8a7bf1,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x8a7bf1,'*Change\x20%0\x20content*',_0x5b475f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28dab8=this['editor'],_0x2f8e76=_0x28dab8['locale'];_0x28dab8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f1725=>{if('formatBlock'!=_0x5f1725['type'])return;const {data:_0x3d3f93}=_0x5f1725;if(_0x3d3f93&&'htmlEmbed'==_0x3d3f93['commandName']){const _0x1e7616=o(_0x2f8e76,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2f8e76,'*Change\x20%0\x20content*',_0x1e7616)};}});}}class rt extends _0x252f3f{['afterInit'](){const _0xafd64e=this['editor'];if(!_0xafd64e['plugins']['has']('ImageEditing'))return;const _0x5847bd=_0xafd64e['plugins']['get']('TrackChangesEditing'),_0x1f36f3=_0xafd64e['plugins']['get']('ImageUtils'),_0x945271=_0xafd64e['locale'];_0x5847bd['enableCommand']('insertImage'),_0x5847bd['descriptionFactory']['registerElementLabel']('imageBlock',_0x5085a1=>o(_0x945271,'ELEMENT_IMAGE',_0x5085a1)),_0x5847bd['descriptionFactory']['registerElementLabel']('imageInline',_0x2be3b6=>o(_0x945271,'ELEMENT_INLINE_IMAGE',_0x2be3b6)),_0x5847bd['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x945271,'ELEMENT_CAPTION')),_0xafd64e['plugins']['has']('ImageUploadEditing')&&_0x5847bd['enableCommand']('uploadImage'),_0xafd64e['plugins']['has']('ImageBlockEditing')&&_0xafd64e['plugins']['has']('ImageInlineEditing')&&(_0x5847bd['enableCommand']('imageTypeInline',(_0x45fb98,_0x302a2c)=>{const _0x1bc5a7=_0x1f36f3['getClosestSelectedImageElement'](_0xafd64e['model']['document']['selection']);_0xafd64e['model']['change'](()=>{_0x5847bd['markBlockFormat'](_0x1bc5a7,{'commandName':'imageTypeInline','commandParams':[_0x302a2c]},[],'convertBlockImageToInline');});}),_0x5847bd['enableCommand']('imageTypeBlock',(_0xae8ae7,_0x1ea822)=>{_0xafd64e['model']['change'](_0x49c523=>{let _0x467920=_0x1f36f3['getClosestSelectedImageElement'](_0xafd64e['model']['document']['selection']),_0x2f6d4c=_0x49c523['createRangeOn'](_0x467920);const _0x26c4b3=_0x357c05['fromPosition'](_0x2f6d4c['start'],'toPrevious'),_0x4c52a5=_0x357c05['fromPosition'](_0x2f6d4c['end'],'toNext');_0x5847bd['forceDefaultExecution'](()=>_0xae8ae7(_0x1ea822)),_0x467920=_0x1f36f3['getClosestSelectedImageElement'](_0xafd64e['model']['document']['selection']),_0x2f6d4c=_0x49c523['createRangeOn'](_0x467920);const _0x35ce6d=_0x49c523['createRange'](_0x26c4b3,_0x4c52a5);_0x26c4b3['detach'](),_0x4c52a5['detach'](),_0x5847bd['markBlockFormat'](_0x467920,{'commandName':'imageTypeInline','commandParams':[_0x1ea822]},[],'convertInlineImageToBlock'),_0x35ce6d['start']['isBefore'](_0x2f6d4c['start'])&&_0x5847bd['markInsertion'](_0x49c523['createRange'](_0x35ce6d['start'],_0x2f6d4c['start']),'convertInlineImageToBlock'),_0x2f6d4c['end']['isBefore'](_0x35ce6d['end'])&&_0x5847bd['markInsertion'](_0x49c523['createRange'](_0x2f6d4c['end'],_0x35ce6d['end']),'convertInlineImageToBlock');});}),_0x5847bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5847bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5847bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5847bd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5847bd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5847bd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2a0b05])=>{const _0x517641=_0x5847bd['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x289c00=_0x2a0b05['start'],_0x143c64=_0x2a0b05['end'];const _0x2cf42f=_0xafd64e['model']['schema']['getNearestSelectionRange'](_0x289c00,'backward'),_0x7bda86=_0xafd64e['model']['schema']['getNearestSelectionRange'](_0x143c64,'forward');_0x2cf42f['isCollapsed']&&(_0x289c00=_0x2cf42f['start']),_0x7bda86['isCollapsed']&&(_0x143c64=_0x7bda86['end']),_0x517641([_0xafd64e['model']['createRange'](_0x289c00,_0x143c64)]);}),_0x5847bd['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40b880),_0x5847bd['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40b880)),_0xafd64e['plugins']['has']('ImageCaptionEditing')&&(_0x5847bd['enableCommand']('toggleImageCaption',(_0x477851,_0x5e6279)=>{const _0x27d5ce=_0xafd64e['plugins']['get']('ImageCaptionUtils');let _0x33c4bf=_0x1f36f3['getClosestSelectedImageElement'](_0xafd64e['model']['document']['selection']),_0x195e0f=_0x27d5ce['getCaptionFromImageModelElement'](_0x33c4bf);_0xafd64e['model']['change'](()=>{if(_0x195e0f)return void _0x5847bd['markDeletion'](_0xafd64e['model']['createRangeOn'](_0x195e0f));const _0x31524d=_0x1f36f3['isBlockImage'](_0x33c4bf);_0x477851(_0x5e6279),_0x33c4bf=_0x1f36f3['getClosestSelectedImageElement'](_0xafd64e['model']['document']['selection']),_0x195e0f=_0x27d5ce['getCaptionFromImageModelElement'](_0x33c4bf),_0x5847bd['markInsertion'](_0xafd64e['model']['createRangeOn'](_0x195e0f),_0x31524d?null:'imageCaption');});}),_0x5847bd['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40b880));const _0x5d6697=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2288c1(_0x10176c,_0x4f350a){const _0x1dedd0=_0x5d6697['findIndex'](({type:_0x3eb619,subType:_0x23768b})=>_0x10176c['type']==_0x3eb619&&_0x10176c['subType']==_0x23768b),_0x334e02=_0x5d6697['findIndex'](({type:_0xd362af,subType:_0x3aa13})=>_0x4f350a['type']==_0xd362af&&_0x4f350a['subType']==_0x3aa13);if(_0x1dedd0<0x0||_0x334e02<0x0)return!0x1;const _0x4ed0c4=_0x10176c['getFirstRange'](),_0x45ddf4=_0x4f350a['getFirstRange']();if((0x0==_0x1dedd0||0x1==_0x1dedd0)&&0x2==_0x334e02&&_0x4ed0c4['isIntersecting'](_0x45ddf4))return!0x0;if(0x2==_0x1dedd0&&0x3==_0x334e02){const _0x354d92=_0x5847bd['_findSuggestions'](_0x4ed0c4,'insertion')['filter'](({suggestion:_0x375802,meta:_0x3210e0})=>_0x3210e0['isOwn']&&'convertInlineImageToBlock'==_0x375802['subType']);if(_0x354d92['length']>0x1&&_0x45ddf4['end']['isEqual'](_0x4ed0c4['start']))return!0x0;if(0x1==_0x354d92['length']&&(_0x4ed0c4['start']['isEqual'](_0x45ddf4['end'])||_0x4ed0c4['end']['isEqual'](_0x45ddf4['start'])))return!0x0;}if(0x3==_0x1dedd0&&0x3==_0x334e02&&_0x4ed0c4['start']['isBefore'](_0x45ddf4['start'])){const _0xfbb07c=_0x4ed0c4['end']['nodeAfter'],_0x4b6ee4=_0x45ddf4['start']['nodeBefore'];return _0x1f36f3['isBlockImage'](_0xfbb07c)&&_0xfbb07c===_0x4b6ee4;}return!0x1;}function _0x40b880(_0x434dfb,_0x49b997){return _0x2288c1(_0x434dfb,_0x49b997)?[_0x434dfb,_0x49b997]:_0x2288c1(_0x49b997,_0x434dfb)?[_0x49b997,_0x434dfb]:null;}_0xafd64e['plugins']['has']('ImageResize')&&(_0x5847bd['enableDefaultAttributesIntegration']('resizeImage'),_0x5847bd['registerBlockAttribute']('resizedWidth'),_0x5847bd['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x945271,'FORMAT_IMAGE_SIZE'))),_0xafd64e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5847bd['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5847bd['registerBlockAttribute']('alt')),_0xafd64e['plugins']['has']('PictureEditing')&&(_0x5847bd['registerBlockAttribute']('sources'),_0x5847bd['descriptionFactory']['registerDescriptionCallback'](_0x247e5=>{if('attribute'!=_0x247e5['type'])return;const {data:_0x60abf8}=_0x247e5;return _0x60abf8&&'sources'==_0x60abf8['key']?{'type':'format','content':''}:void 0x0;})),_0xafd64e['plugins']['has']('ImageSizeAttributes')&&(_0x5847bd['registerBlockAttribute']('width'),_0x5847bd['registerBlockAttribute']('height'),_0x5847bd['descriptionFactory']['registerDescriptionCallback'](_0x5647ff=>{if('attribute'!=_0x5647ff['type'])return;const {data:_0x335ca6}=_0x5647ff;return!_0x335ca6||'width'!=_0x335ca6['key']&&'height'!=_0x335ca6['key']?void 0x0:{'type':'format','content':''};})),_0x5847bd['descriptionFactory']['registerDescriptionCallback'](_0x4bbb50=>{if(!!_0x5d6697['find'](({type:_0x246e8c,subType:_0x436296})=>_0x4bbb50['type']==_0x246e8c&&_0x4bbb50['subType']==_0x436296))return _0x4bbb50['previous']?{}:void 0x0;}),_0x5847bd['descriptionFactory']['registerDescriptionCallback'](_0x45c440=>{if('insertion'==_0x45c440['type']||'deletion'==_0x45c440['type']){const _0x5e4640=_0x45c440['getContainedElement']();if(_0x5e4640&&_0x5e4640['is']('element','caption'))return{'type':'insertion'==_0x45c440['type']?'addObject':'removeObject','element':_0x5e4640,'quantity':0x1};}}),_0x5847bd['descriptionFactory']['registerDescriptionCallback'](_0x1100ad=>'formatBlock'==_0x1100ad['type']&&'convertInlineImageToBlock'==_0x1100ad['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1100ad['type']&&'convertBlockImageToInline'==_0x1100ad['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5847bd['descriptionFactory']['registerDescriptionCallback'](_0x10b086=>{if('attribute'!=_0x10b086['type'])return;const {data:_0x1a3039}=_0x10b086;if(!_0x1a3039||'alt'!=_0x1a3039['key'])return;const _0x51da9e=_0x1a3039['newValue'];return _0x51da9e?{'type':'format','content':o(_0x945271,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x51da9e+'\x22')}:{'type':'format','content':o(_0x945271,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e03af=this['editor'],_0x228901=_0x3e03af['locale'];_0x3e03af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a00e8=>{if('formatBlock'!=_0x2a00e8['type']&&'formatInline'!=_0x2a00e8['type'])return;const {data:_0x15d7f9}=_0x2a00e8;if(_0x15d7f9){if('imageTextAlternative'==_0x15d7f9['commandName']){const _0x52d031=_0x15d7f9['commandParams'][0x0]['newValue'];return _0x52d031?{'type':'format','content':o(_0x228901,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x52d031+'\x22')}:{'type':'format','content':o(_0x228901,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x15d7f9['commandName']){const _0x1d8976=_0x15d7f9['commandParams'][0x0]['width'];return _0x1d8976?{'type':'format','content':o(_0x228901,'*Set\x20image\x20width:*\x20%0',_0x1d8976)}:{'type':'format','content':o(_0x228901,'*Reset\x20image\x20width*')};}}});}}class at extends _0x252f3f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5d42a1=this['editor']['locale'],_0x1ac03b=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ac03b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1ac03b['registerBlockAttribute']('src'),_0x1ac03b['descriptionFactory']['registerDescriptionCallback'](_0x567cf8=>{if('attribute'!=_0x567cf8['type'])return;const {data:_0x2a0a5f}=_0x567cf8;return _0x2a0a5f&&'src'==_0x2a0a5f['key']?_0x2a0a5f['newValue']&&_0x2a0a5f['oldValue']?{'type':'format','content':o(_0x5d42a1,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x37b121=this['editor']['plugins']['get']('TrackChangesEditing');_0x37b121['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x37b121['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x37b121['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x37b121['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56c9fc=this['editor'],_0x3bf53c=_0x56c9fc['locale'];_0x56c9fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45a65c=>{if('formatBlock'!=_0x45a65c['type']&&'formatInline'!=_0x45a65c['type'])return;const {data:_0x493c0a}=_0x45a65c;if(!_0x493c0a||'replaceImageSource'!=_0x493c0a['commandName'])return;return{'type':'format','content':o(_0x3bf53c,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x252f3f{['afterInit'](){const _0x3d641e=this['editor'];if(!_0x3d641e['plugins']['has']('ImageStyleEditing'))return;const _0x3f38bf=_0x3d641e['plugins']['get']('TrackChangesEditing'),_0x49e4c9=_0x3d641e['plugins']['get']('ImageUtils'),_0x5f461c={};_0x3f38bf['enableCommand']('imageStyle',(_0x2d90d8,_0x8ecdda)=>{const _0x2486fc=_0x3d641e['plugins']['get']('Users')['me'],_0x46668e=_0x3d641e['commands']['get']('imageStyle');let _0x5c8c84=_0x49e4c9['getClosestSelectedImageElement'](_0x3d641e['model']['document']['selection']),_0x46421a=_0x3d641e['model']['createRangeOn'](_0x5c8c84),_0x3464cd=_0x46668e['value'];if(_0x3464cd==_0x8ecdda['value'])return;const _0x195f91={'commandName':'imageStyle','commandParams':[_0x8ecdda],'formatGroupId':_0x359303()};_0x3d641e['model']['change'](()=>{if(_0x3f38bf['getSuggestions']()['filter'](_0x23f04f=>_0x23f04f['isInContent']&&_0x2486fc==_0x23f04f['author']&&('formatBlock'==_0x23f04f['type']||'formatInline'==_0x23f04f['type'])&&('imageStylePreApply'==_0x23f04f['subType']||'imageStylePostApply'==_0x23f04f['subType'])&&_0x23f04f['getFirstRange']()['isEqual'](_0x46421a))['forEach'](_0x5669c3=>_0x3f38bf['discardSuggestion'](_0x5669c3['head'])),_0x5c8c84=_0x49e4c9['getClosestSelectedImageElement'](_0x3d641e['model']['document']['selection']),_0x46421a=_0x3d641e['model']['createRangeOn'](_0x5c8c84),_0x46668e['refresh'](),_0x3d641e['commands']['get']('imageTypeInline')['refresh'](),_0x3d641e['commands']['get']('imageTypeBlock')['refresh'](),_0x3464cd=_0x46668e['value'],_0x3464cd!=_0x8ecdda['value'])return _0x49e4c9['isInlineImage'](_0x5c8c84)&&_0x46668e['shouldConvertImageType'](_0x8ecdda['value'],_0x5c8c84)?(_0x2d90d8({..._0x8ecdda,'setImageSizes':!0x1}),_0x5c8c84=_0x49e4c9['getClosestSelectedImageElement'](_0x3d641e['model']['document']['selection']),void _0x3f38bf['markBlockFormat'](_0x5c8c84,{..._0x195f91,'commandReversedParams':[{'value':_0x3464cd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x49e4c9['isBlockImage'](_0x5c8c84)?_0x3f38bf['markBlockFormat'](_0x5c8c84,_0x195f91,[],'imageStylePostApply'):_0x3f38bf['markInlineFormat'](_0x46421a,_0x195f91,'imageStylePostApply'));});});for(const _0x2a7ba3 of _0x3d641e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5f461c[_0x2a7ba3['name']]=_0x2a7ba3['title']['toLowerCase']();_0x3f38bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3f38bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3f38bf['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3f38bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xccdb4d])=>{_0x49e4c9['setImageNaturalSizeAttributes'](_0xccdb4d['getContainedElement']());}),_0x3f38bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xf33c62,_0x3f928d)=>{_0x3f38bf['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xf33c62,{'commandName':_0x3f928d['commandName'],'commandParams':_0x3f928d['commandReversedParams']});}),_0x3f38bf['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xdade84,_0x1f9bc6){if(_0x5f25bc(_0xdade84,_0x1f9bc6))return[_0xdade84,_0x1f9bc6];if(_0x5f25bc(_0x1f9bc6,_0xdade84))return[_0x1f9bc6,_0xdade84];return null;});const _0x494b69=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5f25bc(_0x14a657,_0x30983f){const _0x5ecf93=_0x494b69['findIndex'](({type:_0x14160e,subType:_0x3f6ac0})=>_0x14a657['type']==_0x14160e&&_0x14a657['subType']==_0x3f6ac0),_0x1eab8f=_0x494b69['findIndex'](({type:_0x40aabd,subType:_0x1d5b0a})=>_0x30983f['type']==_0x40aabd&&_0x30983f['subType']==_0x1d5b0a);if(_0x5ecf93<0x0||_0x1eab8f<0x0)return!0x1;const _0x2a5974=_0x14a657['getFirstRange'](),_0x5d6380=_0x30983f['getFirstRange']();if((0x0==_0x5ecf93||0x1==_0x5ecf93)&&0x2==_0x1eab8f&&_0x2a5974['isIntersecting'](_0x5d6380))return!0x0;if(0x2==_0x5ecf93&&0x3==_0x1eab8f){const _0x30997a=_0x3f38bf['_findSuggestions'](_0x2a5974,'insertion')['filter'](({suggestion:_0x441725,meta:_0x5f025d})=>_0x5f025d['isOwn']&&'convertInlineImageToBlock'==_0x441725['subType']);if(_0x30997a['length']>0x1&&_0x5d6380['end']['isEqual'](_0x2a5974['start']))return!0x0;if(0x1==_0x30997a['length']&&(_0x2a5974['start']['isEqual'](_0x5d6380['end'])||_0x2a5974['end']['isEqual'](_0x5d6380['start'])))return!0x0;}if(0x3==_0x5ecf93&&0x3==_0x1eab8f&&_0x2a5974['start']['isBefore'](_0x5d6380['start'])){const _0x14279d=_0x2a5974['end']['nodeAfter'],_0x17056b=_0x5d6380['start']['nodeBefore'];return _0x49e4c9['isBlockImage'](_0x14279d)&&_0x14279d===_0x17056b;}return!0x1;}_0x3d641e['model']['document']['registerPostFixer'](()=>{let _0x55ff20=!0x1;const _0x5736b1=Array['from'](_0x3d641e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56f2e9,data:_0x562fc1}of _0x5736b1){const {group:_0x2495b4,type:_0x41fc9d,subType:_0x2f06d0,id:_0x19eeca}=_0x3f38bf['_splitMarkerName'](_0x56f2e9);if('suggestion'==_0x2495b4&&_0x3f38bf['hasSuggestion'](_0x19eeca)){if('formatBlock'==_0x41fc9d&&('imageStylePreApply'==_0x2f06d0||'imageStylePostApply'==_0x2f06d0)){const _0x1b039d=_0x3f38bf['getSuggestion'](_0x19eeca);if(_0x562fc1['newRange']){const _0x4393e8=_0x1b039d['getFirstRange']()['getContainedElement']();if(_0x49e4c9['isBlockImage'](_0x4393e8))continue;_0x3f38bf['discardSuggestion'](_0x1b039d),_0x55ff20=!0x0;}}if('insertion'==_0x41fc9d&&'imageCaption'==_0x2f06d0&&!_0x562fc1['newRange']){const _0x4e8654=_0x3f38bf['getSuggestion'](_0x19eeca);_0x4e8654['next']&&_0x4e8654['next']['isInContent']&&(_0x3f38bf['discardSuggestion'](_0x4e8654['next']),_0x55ff20=!0x0);}}}return _0x55ff20;}),this['_registerLegacyDescription'](_0x5f461c);}['_registerLegacyDescription'](_0x1911fc){const _0x49121e=this['editor'],_0x513f94=_0x49121e['locale'];_0x49121e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f1383=>{if('formatBlock'!=_0x5f1383['type']&&'formatInline'!=_0x5f1383['type'])return;const {data:_0x33685a}=_0x5f1383;if(!_0x33685a||'imageStyle'!=_0x33685a['commandName'])return;const _0x3fa7be=_0x33685a['commandParams'][0x0]['value'];return _0x334f46('side'===_0x3fa7be?o(_0x513f94,'FORMAT_SIDE_IMAGE'):_0x1911fc[_0x3fa7be]||_0x3fa7be);function _0x334f46(_0x3dac5a){return{'type':'format','content':o(_0x513f94,'*Format:*\x20%0',_0x3dac5a)};}});}}class ut extends _0x252f3f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x161199){super(_0x161199),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2598cb=this['editor'],_0x45f784=_0x2598cb['commands']['get']('importWord'),_0xb04096=_0x2598cb['commands']['get']('trackChanges');_0x45f784&&(_0x45f784['on']('execute',(_0x3fa132,[,_0x19acb7])=>{this['_trackChangesValueDuringImport']=_0xb04096['value'],_0x19acb7['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x45f784,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x45f784,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xb04096['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2598cb['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x38038b,_0x2159d7){const {suggestions:_0x56eafe}=_0x2159d7,_0x8b9f79=this['editor']['commands']['get']('trackChanges'),_0x4bfae6=_0x8b9f79['value'];this['_trackChangesValueDuringImport']!==_0x4bfae6&&(_0x8b9f79['execute'](),this['_trackChangesExecuted']=!0x0),_0x56eafe&&_0x56eafe['forEach'](({id:_0x157628,type:_0x2a52b8,author:_0x24d713,created_at:_0x390e65})=>{const _0x5aef37={'id':_0x157628,'type':_0x2a52b8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x24d713,'createdAt':_0x390e65?new Date(_0x390e65):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5aef37);});}}class ft extends _0x252f3f{['afterInit'](){const _0x197ccb=this['editor'],_0x30c79b=_0x197ccb['plugins']['get']('TrackChangesEditing');if(_0x197ccb['plugins']['has']('IndentEditing')&&(_0x30c79b['enableCommand']('indent'),_0x30c79b['enableCommand']('outdent')),_0x197ccb['plugins']['has']('IndentBlock')){for(const _0x4ac93f of['indentBlock','outdentBlock'])_0x30c79b['enableDefaultAttributesIntegration'](_0x4ac93f);}const _0x4900d7=_0x197ccb['locale'];_0x30c79b['registerBlockAttribute']('blockIndent'),_0x30c79b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4900d7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1bbf1c=this['editor'],_0x2d020f=_0x1bbf1c['locale'],_0x5df456=_0x1bbf1c['plugins']['get']('TrackChangesEditing');_0x5df456['descriptionFactory']['registerDescriptionCallback'](_0x7f5005=>{if('formatBlock'!=_0x7f5005['type'])return;const {data:_0x1f4651}=_0x7f5005;if(!_0x1f4651)return;if('indentBlock'!=_0x1f4651['commandName']&&'outdentBlock'!=_0x1f4651['commandName'])return;const _0x59a472=_0x7f5005['getItems']()[0x0],_0x373fbb=_0x5df456['descriptionFactory']['getItemLabel'](_0x59a472);return'indentBlock'==_0x1f4651['commandName']?{'type':'format','content':o(_0x2d020f,'*Indent:*\x20%0',_0x373fbb)}:'outdentBlock'==_0x1f4651['commandName']?{'type':'format','content':o(_0x2d020f,'*Outdent:*\x20%0',_0x373fbb)}:void 0x0;});}}class ht extends _0x252f3f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x252f3f{['afterInit'](){const _0x34cc8e=this['editor'];if(!_0x34cc8e['plugins']['has']('LinkEditing'))return;const _0x1382da=_0x34cc8e['plugins']['get']('TrackChangesEditing'),_0x5311e6=_0x34cc8e['commands']['get']('link');_0x1382da['enableDefaultAttributesIntegration']('link'),_0x1382da['enableDefaultAttributesIntegration']('unlink'),_0x1382da['registerInlineAttribute']('linkHref');for(const _0x3c3d07 of _0x5311e6['manualDecorators'])_0x1382da['registerInlineAttribute'](_0x3c3d07['id']),_0x1382da['descriptionFactory']['registerAttributeLabel'](_0x3c3d07['id'],'link\x20('+_0x3c3d07['label']['toLowerCase']()+')');_0x1382da['descriptionFactory']['registerDescriptionCallback'](_0x5b8a9d=>{if('attribute'!=_0x5b8a9d['type'])return;const {data:_0x12a933}=_0x5b8a9d;if(!_0x12a933||'linkHref'!=_0x12a933['key'])return;const _0x2fd27b=_0x12a933['newValue'],_0x34371c=_0x34cc8e['locale'];return{'type':'format','content':null==_0x2fd27b?o(_0x34371c,'*Remove\x20link*'):o(_0x34371c,'*Set\x20link:*\x20%0','\x22'+_0x2fd27b+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c8de7=this['editor'],_0x4f4453=_0x5c8de7['locale'];_0x5c8de7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5651da=>{if('formatInline'!=_0x5651da['type'])return;const {data:_0x1547ee}=_0x5651da;if(_0x1547ee){if('link'==_0x1547ee['commandName']){const _0x1ce924=_0x1547ee['commandParams'][0x0];return{'type':'format','content':o(_0x4f4453,'*Set\x20link:*\x20%0','\x22'+_0x1ce924+'\x22')};}return'unlink'==_0x1547ee['commandName']?{'type':'format','content':o(_0x4f4453,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x252f3f{['afterInit'](){const _0x2b9bb4=this['editor'],_0x1a804e=_0x2b9bb4['locale'];if(!_0x2b9bb4['plugins']['has']('LegacyListEditing'))return;const _0xc3bcce=_0x2b9bb4['plugins']['get']('TrackChangesEditing'),_0x542634=_0x2b9bb4['plugins']['has']('LegacyTodoListEditing');function _0x349b1e(_0x2f2b3d){return()=>{const _0x2699cc=_0x2b9bb4['model']['document']['selection'],_0x252f93=_0x2b9bb4['commands']['get'](_0x2f2b3d);if(_0x252f93['value'])return void _0x2b9bb4['execute']('paragraph',{});const _0x5671df=_0x2f2b3d['slice'](0x0,-0x4),_0x49d4d1=function(_0x145fc7,_0x54946f,_0x468a30){let _0x52a4a4=Array['from'](_0x145fc7)['filter'](_0x5a55d0=>function(_0x3df833,_0x43c2e2){return _0x43c2e2['checkChild'](_0x3df833['parent'],'listItem')&&!_0x43c2e2['isObject'](_0x3df833);}(_0x5a55d0,_0x468a30));_0x52a4a4=_0x52a4a4['filter'](_0x150c06=>!_0x150c06['is']('element','listItem')||_0x150c06['getAttribute']('listType')!=_0x54946f);const _0x13d2e0=new Set();for(const _0xc2798b of _0x52a4a4)_0xc2798b['is']('element','listItem')?_0x13d2e0['add'](Le(_0xc2798b)):_0x13d2e0['add'](_0xc2798b);return Array['from'](_0x13d2e0);}(_0x2699cc['getSelectedBlocks'](),_0x5671df,_0x2b9bb4['model']['schema']);_0x2b9bb4['model']['change'](()=>{for(const _0xee65fe of _0x49d4d1)_0xc3bcce['markBlockFormat'](_0xee65fe,{'commandName':_0x2f2b3d,'commandParams':[{'forceValue':!_0x252f93['value']}],'formatGroupId':'blockName'},Ee(_0xee65fe));});};}function _0x2d4488(_0x48f920){return()=>{const _0x155ae8=function(_0x502c6f){let _0x147ef9=Array['from'](_0x502c6f);const _0x2abcf2=_0x147ef9['findIndex'](_0x25a4f4=>'listItem'!=_0x25a4f4['name']);return _0x2abcf2>-0x1&&(_0x147ef9=_0x147ef9['slice'](0x0,_0x2abcf2)),_0x147ef9;}(_0x2b9bb4['model']['document']['selection']['getSelectedBlocks']()),_0x552d87=_0x2b9bb4['model']['createRange'](_0x2b9bb4['model']['createPositionAt'](_0x155ae8[0x0],'before'),_0x2b9bb4['model']['createPositionAt'](_0x155ae8[_0x155ae8['length']-0x1],'end'));_0x2b9bb4['model']['change'](()=>{_0xc3bcce['markBlockFormat'](_0x552d87,{'commandName':_0x48f920,'commandParams':[],'formatGroupId':'listIndent'},function(_0x365e01){const _0xe0ccfe=new Set();for(const _0x16d73e of _0x365e01){let _0x128c98=_0x16d73e['nextSibling'];for(;_0x128c98&&_0x128c98['getAttribute']('listIndent')>_0x16d73e['getAttribute']('listIndent');)_0xe0ccfe['add'](_0x128c98),_0x128c98=_0x128c98['nextSibling'];}return Array['from'](_0xe0ccfe);}(_0x155ae8));});};}_0xc3bcce['enableCommand']('numberedList',_0x349b1e('numberedList')),_0xc3bcce['enableCommand']('bulletedList',_0x349b1e('bulletedList')),_0x542634&&_0xc3bcce['enableCommand']('todoList',_0x349b1e('todoList')),_0xc3bcce['enableCommand']('indentList',_0x2d4488('indentList')),_0xc3bcce['enableCommand']('outdentList',_0x2d4488('outdentList')),_0x542634&&_0xc3bcce['enableCommand']('checkTodoList',()=>{const _0x279140=_0x2b9bb4['commands']['get']('checkTodoList'),_0x18bad3=Array['from'](_0x279140['_selectedElements']);_0x18bad3['filter'](_0x2fd3dd=>_0x2fd3dd['getAttribute']('todoListChecked')!=_0x279140['value']),_0x2b9bb4['model']['change'](()=>{for(const _0x54a9ab of _0x18bad3)_0xc3bcce['markBlockFormat'](_0x54a9ab,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x279140['value']}]});});}),_0xc3bcce['descriptionFactory']['registerElementLabel']('listItem',_0x67e30a=>o(_0x1a804e,'ELEMENT_LIST_ITEM',_0x67e30a)),_0xc3bcce['descriptionFactory']['registerDescriptionCallback'](_0x3447bf=>{if('formatBlock'!=_0x3447bf['type']&&'formatInline'!=_0x3447bf['type'])return;const {data:_0x1692f5}=_0x3447bf;if(_0x1692f5){if('numberedList'==_0x1692f5['commandName']||'bulletedList'==_0x1692f5['commandName']||'todoList'==_0x1692f5['commandName'])switch(_0x1692f5['commandName']['replace']('List','')){case'bulleted':return _0x36eb79(o(_0x1a804e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x36eb79(o(_0x1a804e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x36eb79(o(_0x1a804e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1692f5['commandName'])return{'type':'format','content':o(_0x1a804e,'*Indent:*\x20%0',o(_0x1a804e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1692f5['commandName'])return{'type':'format','content':o(_0x1a804e,'*Outdent:*\x20%0',o(_0x1a804e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1692f5['commandName'])return _0x1692f5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a804e,'*Check\x20item*')}:{'type':'format','content':o(_0x1a804e,'*Uncheck\x20item*')};}function _0x36eb79(_0x4371ed){return{'type':'format','content':o(_0x1a804e,'*Change\x20to:*\x20%0',_0x4371ed)};}});}}function Le(_0x2f835f){const _0x428c6e=_0x2f835f['getAttribute']('listIndent');if(0x0==_0x428c6e)return _0x2f835f;let _0x556687=_0x2f835f;for(;_0x2f835f['previousSibling']&&_0x2f835f['previousSibling']['is']('element','listItem');){const _0x270bfa=_0x2f835f['previousSibling']['getAttribute']('listIndent');if(_0x270bfa==_0x428c6e)_0x556687=_0x2f835f['previousSibling'];else{if(_0x270bfa<_0x428c6e)break;}_0x2f835f=_0x2f835f['previousSibling'];}return _0x556687;}function Ee(_0x122bdd){const _0x6eadf=[];if(_0x122bdd['is']('element','listItem')&&_0x122bdd['getAttribute']('listIndent')>0x0){let _0x3ec3b9=_0x122bdd['nextSibling'];for(;_0x3ec3b9&&'listItem'==_0x3ec3b9['name']&&_0x3ec3b9['getAttribute']('listIndent')==_0x122bdd['getAttribute']('listIndent');)_0x6eadf['push'](_0x3ec3b9),_0x3ec3b9=_0x3ec3b9['nextSibling'];}return _0x6eadf;}class Q extends _0x252f3f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x458e47=this['editor']['config']['get']('list.properties'),_0x53b571=this['editor']['plugins']['get']('TrackChangesEditing');_0x458e47['styles']&&_0x53b571['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x458e47['reversed']&&_0x53b571['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x458e47['startIndex']&&_0x53b571['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x53b571['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xcf52a1,_0x2b5ead={}){const _0x5d4ba8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4eeca6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5d4ba8['markMultiRangeBlockFormat'](_0x4eeca6,{'commandName':'listStyle','commandParams':[{'type':_0x2b5ead['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3d647e,_0xec9de3={}){const _0x5e645c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fdaf9=this['_getSuggestionBlocks'](_0x59c904=>_0x59c904['is']('element','listItem')&&'numbered'===_0x59c904['getAttribute']('listType'));if(_0x1fdaf9['length']<0x1)return;const _0x190cd3=_0x1fdaf9['map'](_0x4ee98c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ee98c,'before'),this['editor']['model']['createPositionAt'](_0x4ee98c,0x0)));this['editor']['model']['change'](()=>{_0x5e645c['markMultiRangeBlockFormat'](_0x190cd3,{'commandName':'listReversed','commandParams':[{'reversed':_0xec9de3['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1c1735,_0x569c5c={}){const _0x3991c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47705a=this['_getSuggestionBlocks'](_0x38d9cf=>_0x38d9cf['is']('element','listItem')&&'numbered'===_0x38d9cf['getAttribute']('listType'));if(_0x47705a['length']<0x1)return;const _0x3d46dd=_0x47705a['map'](_0xf7f424=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xf7f424,'before'),this['editor']['model']['createPositionAt'](_0xf7f424,0x0)));this['editor']['model']['change'](()=>{_0x3991c1['markMultiRangeBlockFormat'](_0x3d46dd,{'commandName':'listStart','commandParams':[{'startIndex':_0x569c5c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3640f5){if('formatBlock'!=_0x3640f5['type']&&'formatInline'!=_0x3640f5['type'])return;const _0x3735c0=this['editor']['locale'],{data:_0x5e44a9}=_0x3640f5;if(!_0x5e44a9)return;let _0x51e2b4,_0x365e61;switch(_0x5e44a9['commandName']){case'listStyle':_0x51e2b4='*Change\x20to:*\x20%0',_0x365e61={'type':'format','content':o(_0x3735c0,_0x51e2b4,o(_0x3735c0,this['_getTranslationKeyForListStyle'](_0x5e44a9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51e2b4=_0x5e44a9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x365e61={'type':'format','content':o(_0x3735c0,_0x51e2b4)};break;case'listStart':_0x51e2b4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x365e61={'type':'format','content':o(_0x3735c0,_0x51e2b4,_0x5e44a9['commandParams'][0x0]['startIndex'])};}return _0x365e61;}['_getSuggestionBlocksForListStyle'](){const _0x249486=this['editor']['plugins']['get']('LegacyListUtils');let _0x21b875=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x21b875[0x0]?.['is']('element','listItem')&&_0x21b875['unshift'](..._0x249486['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x21b875[_0x21b875['length']-0x1]?.['is']('element','listItem')&&_0x21b875['push'](..._0x249486['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x21b875=[...new Set(_0x21b875)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x21b875=_0x21b875['filter'](_0x5e2638=>_0x5e2638['is']('element','listItem'))),_0x21b875;}['_getSuggestionBlocks'](_0x1e7daf){const _0x328aba=this['editor']['plugins']['get']('LegacyListUtils');let _0x343ea3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1e7daf)['map'](_0xbe4c38=>{const _0x162eb3=this['editor']['model']['createPositionAt'](_0xbe4c38,0x0);return[..._0x328aba['getSiblingNodes'](_0x162eb3,'backward'),..._0x328aba['getSiblingNodes'](_0x162eb3,'forward')];})['flat']();return _0x343ea3=[...new Set(_0x343ea3)],_0x343ea3;}['_getTranslationKeyForListStyle'](_0x1a6bd6){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1a6bd6)||'default')['toUpperCase']()+'_LIST_'+_0x1a6bd6['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x252f3f{['afterInit'](){const _0x440aea=this['editor'];if(!_0x440aea['plugins']['has']('MediaEmbedEditing'))return;const _0x2cbcef=_0x440aea['plugins']['get']('TrackChangesEditing'),_0x3341c3=_0x440aea['locale'];_0x2cbcef['enableCommand']('mediaEmbed'),_0x2cbcef['descriptionFactory']['registerElementLabel']('media',_0xbd1705=>o(_0x3341c3,'ELEMENT_MEDIA',_0xbd1705)),_0x440aea['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2455bb,{writer:_0x106c6e,options:_0x29dd87})=>{if(_0x29dd87['showSuggestionHighlights'])return _0x106c6e['createEmptyElement']('div');},'converterPriority':'high'}),_0x440aea['data']['downcastDispatcher']['on']('attribute:url:media',(_0x9e9770,_0x42a939,_0x4d1731)=>{_0x4d1731['options']['showSuggestionHighlights']&&_0x9e9770['stop']();},{'priority':'high'});}}class pt extends _0x252f3f{['afterInit'](){const _0x3d9f45=this['editor'];_0x3d9f45['plugins']['has']('MentionEditing')&&_0x3d9f45['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x252f3f{['afterInit'](){const _0x43ec30=this['editor'];if(!_0x43ec30['plugins']['has']('MergeFieldsEditing'))return;const _0x341673=_0x43ec30['plugins']['get']('TrackChangesEditing'),_0x5b88ed=_0x43ec30['locale'];_0x341673['enableCommand']('insertMergeField'),_0x341673['enableCommand']('insertMergeFieldBlock'),_0x341673['enableCommand']('insertMergeFieldImage'),_0x341673['descriptionFactory']['registerElementLabel']('mergeField',_0x3e1828=>o(_0x5b88ed,'ELEMENT_MERGE_FIELD',_0x3e1828)),_0x341673['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x24a117=>o(_0x5b88ed,'ELEMENT_MERGE_FIELD',_0x24a117)),_0x341673['descriptionFactory']['registerDescriptionCallback'](_0x416594=>{if('insertion'!=_0x416594['type']&&'deletion'!=_0x416594['type'])return;const _0x525f21=_0x416594['getContainedElement']();if(null==_0x525f21)return;const _0x381b74=_0x43ec30['plugins']['get']('MergeFieldsEditing');let _0x2e7803;switch(_0x381b74['getMergeFieldType'](_0x525f21)){case null:return;case'image':{const _0x436208=_0x381b74['unwrapAffixes'](_0x525f21['getAttribute']('src'));_0x2e7803=_0x381b74['getLabel'](_0x436208)||_0x436208;break;}default:{const _0x38bc32=_0x525f21['getAttribute']('id');_0x2e7803=_0x381b74['getLabel'](_0x38bc32)||_0x38bc32;break;}}return'insertion'==_0x416594['type']?{'type':'insertion','content':o(_0x5b88ed,'*Insert:*\x20%0','\x22'+_0x2e7803+'\x22\x20'+o(_0x5b88ed,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5b88ed,'*Remove:*\x20%0','\x22'+_0x2e7803+'\x22\x20'+o(_0x5b88ed,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x252f3f{['afterInit'](){const _0xbc3dff=this['editor'],_0xb88039=_0xbc3dff['plugins']['get']('TrackChangesEditing');_0xbc3dff['plugins']['has']('MultiLevelList')&&(_0xb88039['enableDefaultAttributesIntegration']('multiLevelList'),_0xb88039['registerBlockAttribute']('listMarkerStyle'),_0xb88039['descriptionFactory']['registerDescriptionCallback'](_0x10678e=>this['handleDescriptions'](_0x10678e)));}['handleDescriptions'](_0x57753a){const _0x4c1868=this['editor']['locale'],{data:_0x158ac9}=_0x57753a,_0x3f7ccd={'type':'format','content':''};if(_0x158ac9&&'listMarkerStyle'==_0x158ac9['key']){if(!_0x158ac9['oldValue'])return{'type':'format','content':o(_0x4c1868,'*Set\x20format:*\x20%0',o(_0x4c1868,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x158ac9['newValue']+')'};if(!_0x158ac9['newValue']){let _0x58bd80=_0x57753a['head'];for(;_0x58bd80;){if(_0x58bd80['data']&&'listType'==_0x58bd80['data']['key']&&_0x58bd80['data']['newValue'])return _0x3f7ccd;_0x58bd80=_0x58bd80['next'];}return{'type':'format','content':o(_0x4c1868,'*Remove\x20format:*\x20%0',o(_0x4c1868,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x158ac9['oldValue']+')'};}}}}class bt extends _0x252f3f{['afterInit'](){const _0x1edbba=this['editor'];if(!_0x1edbba['plugins']['has']('PageBreakEditing'))return;_0x1edbba['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x44b0fa=_0x1edbba['plugins']['get']('TrackChangesEditing'),_0x3a4ded=_0x1edbba['locale'];_0x44b0fa['descriptionFactory']['registerElementLabel']('pageBreak',_0x5511b6=>o(_0x3a4ded,'ELEMENT_PAGE_BREAK',_0x5511b6));}}class yt extends _0x252f3f{['afterInit'](){const _0x3cacb5=this['editor'];if(!_0x3cacb5['plugins']['has']('Paragraph'))return;const _0x5513fd=_0x3cacb5['locale'],_0x3143b1=_0x3cacb5['plugins']['get']('TrackChangesEditing');_0x3143b1['descriptionFactory']['registerElementLabel']('paragraph',_0x24941b=>o(_0x5513fd,'ELEMENT_PARAGRAPH',_0x24941b)),_0x3143b1['enableDefaultAttributesIntegration']('paragraph'),_0x3143b1['enableCommand']('insertParagraph'),_0x3cacb5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3cacb5),{'priority':'highest'}),_0x3cacb5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x290c77,_0x17eb96,_0x553735)=>{_0x553735['options']['showSuggestionHighlights']&&nr(_0x3cacb5,{'showActiveMarker':!0x1})(_0x290c77,_0x17eb96,_0x553735);},{'priority':'highest'});const _0x37fcf3=_0x3143b1['descriptionFactory'];_0x37fcf3['registerDescriptionCallback'](_0x4d9434=>{if('insertion'!==_0x4d9434['type'])return;const {start:_0x44a02f,end:_0x1cfa6a}=_0x4d9434['getFirstRange']();if(!_0x44a02f['isTouching'](_0x1cfa6a)||!_0x44a02f['nodeAfter'])return;const _0x367096=_0x3cacb5['model']['schema'],_0x44424f=_0x44a02f['nodeAfter'];return _0x367096['isBlock'](_0x44424f)&&!_0x367096['isLimit'](_0x44424f)&&_0x367096['checkChild'](_0x44424f,'$text')?{'type':'insertion','content':o(_0x5513fd,'*Insert:*\x20%0',_0x37fcf3['getItemLabel'](_0x44424f,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17e2d8=this['editor'],_0x36e76a=_0x17e2d8['locale'];_0x17e2d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46f31e=>{if('formatBlock'!=_0x46f31e['type'])return;const {data:_0x4f8968}=_0x46f31e;return _0x4f8968&&'paragraph'==_0x4f8968['commandName']?{'type':'format','content':o(_0x36e76a,'*Change\x20to:*\x20%0',o(_0x36e76a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x35f9f0,{showActiveMarker:_0x45dd8f=!0x0}={}){return(_0x50d5c0,_0x28d259,_0x6a6bfd)=>{const _0x1d6355=_0x35f9f0['plugins']['get']('TrackChangesEditing'),_0xf52543=_0x28d259['markerRange']['start'],_0x3c937b=_0x28d259['markerRange']['end'],_0x2e945f=_0x35f9f0['model']['schema'];if(!_0xf52543['isTouching'](_0x3c937b)||!_0xf52543['nodeAfter'])return;const _0x51d18b=_0xf52543['nodeAfter'];if(_0x2e945f['isBlock'](_0x51d18b)&&!_0x2e945f['isLimit'](_0x51d18b)&&_0x2e945f['checkChild'](_0x51d18b,'$text')){if(!_0x6a6bfd['consumable']['consume'](_0x28d259['markerRange'],_0x50d5c0['name']))return;const {authorId:_0x157e3e}=_0x1d6355['_splitMarkerName'](_0x28d259['markerName']),_0x176d98=_0x6a6bfd['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x157e3e}),_0x1bbb41=_0x6a6bfd['mapper']['toViewPosition'](_0x3c937b);_0x45dd8f&&_0x1d6355['activeMarkers']['includes'](_0x28d259['markerName'])&&_0x6a6bfd['writer']['addClass']('ck-suggestion-marker--active',_0x176d98),_0x6a6bfd['writer']['insert'](_0x1bbb41,_0x176d98),_0x6a6bfd['mapper']['bindElementToMarker'](_0x176d98,_0x28d259['markerName']);}};}class jt extends _0x252f3f{['afterInit'](){const _0x4ad87c=this['editor'];_0x4ad87c['commands']['get']('replaceSource')&&_0x4ad87c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x252f3f{['afterInit'](){const _0x378a17=this['editor'];if(!_0x378a17['plugins']['has']('RemoveFormatEditing'))return;_0x378a17['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aa733=this['editor'];_0x1aa733['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e11f2=>{if('formatBlock'!=_0x5e11f2['type']&&'formatInline'!=_0x5e11f2['type'])return;const {data:_0x5c087e}=_0x5e11f2;return _0x5c087e&&'removeFormat'==_0x5c087e['commandName']?{'type':'format','content':o(_0x1aa733['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x252f3f{['afterInit'](){const _0x1f7810=this['editor'];if(!_0x1f7810['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x43bf61=_0x1f7810['plugins']['get']('TrackChangesEditing');_0x43bf61['enableCommand']('goToPreviousRestrictedEditingException'),_0x43bf61['enableCommand']('goToNextRestrictedEditingException');const _0x5057b5=_0x1f7810['plugins']['get']('RestrictedEditingModeEditing');_0x5057b5['enableCommand']('trackChanges'),_0x5057b5['enableCommand']('acceptSuggestion'),_0x5057b5['enableCommand']('discardSuggestion'),_0x5057b5['enableCommand']('acceptAllSuggestions'),_0x5057b5['enableCommand']('discardAllSuggestions'),_0x5057b5['enableCommand']('acceptSelectedSuggestions'),_0x5057b5['enableCommand']('discardSelectedSuggestions');}}class It extends _0x252f3f{static get['requires'](){return[_0x5435cf];}['init'](){const _0x23d4fe=this['editor'],_0x3df20d=_0x23d4fe['plugins']['get']('TrackChangesEditing');_0x3df20d['enableCommand']('shiftEnter'),_0x23d4fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x23d4fe),{'priority':'high'}),_0x23d4fe['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x23d4fe),{'priority':'high'}),_0x23d4fe['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x586617,_0x3b3aa0,_0x3d3ac5)=>{_0x3d3ac5['options']['showSuggestionHighlights']&&je(_0x23d4fe,{'showActiveMarker':!0x1})(_0x586617,_0x3b3aa0,_0x3d3ac5);}),_0x3df20d['descriptionFactory']['registerElementLabel']('softBreak',_0x2721e1=>o(_0x23d4fe['locale'],'ELEMENT_LINE_BREAK',_0x2721e1));}}function je(_0x5a69e2,{showActiveMarker:_0x4a08a4=!0x0}={}){return(_0x19966d,_0x405a34,_0x4028b2)=>{const _0x111f62=_0x5a69e2['plugins']['get']('TrackChangesEditing');if(!_0x4028b2['consumable']['test'](_0x405a34['markerRange'],_0x19966d['name']))return;const _0x4f9938=_0x5a69e2['model'];for(const _0x33e779 of _0x405a34['markerRange']['getItems']()){if(!_0x33e779['is']('element','softBreak'))continue;const _0x5e6d10='deletion'==_0x405a34['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x1cab5c}=_0x111f62['_splitMarkerName'](_0x405a34['markerName']),_0x26b6a0=_0x4028b2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5e6d10,'data-author-id':_0x1cab5c}),_0x5cd36c=_0x4028b2['mapper']['toViewPosition'](_0x4f9938['createPositionBefore'](_0x33e779));_0x4a08a4&&_0x111f62['activeMarkers']['includes'](_0x405a34['markerName'])&&_0x4028b2['writer']['addClass']('ck-suggestion-marker--active',_0x26b6a0),_0x4028b2['writer']['insert'](_0x5cd36c,_0x26b6a0),_0x4028b2['mapper']['bindElementToMarker'](_0x26b6a0,_0x405a34['markerName']);}};}class vt extends _0x252f3f{['afterInit'](){const _0x29c745=this['editor'],_0x1bd088=_0x29c745['model'],_0x4f5e67=_0x29c745['locale'];if(!_0x29c745['plugins']['has']('StandardEditingModeEditing'))return;const _0x5f1481=_0x29c745['plugins']['get']('TrackChangesEditing'),_0xa71d27='restrictedEditingException',_0x1c70ba=_0x29c745['commands']['get'](_0xa71d27);_0x5f1481['enableCommand'](_0xa71d27,(_0x19bb29,_0x2e1055={})=>{const _0x43713e=_0x1bd088['document']['selection'];if(_0x43713e['isCollapsed'])return void _0x19bb29(_0x2e1055);const _0x5cfb4b=void 0x0!==_0x2e1055['forceValue']?_0x2e1055['forceValue']:!_0x1c70ba['value'];_0x1bd088['change'](()=>{const _0x417a02=Array['from'](_0x43713e['getRanges']());for(const _0x424bd4 of _0x417a02){const _0x5a91a6=_0x5cfb4b?[_0x424bd4]:io(_0xa71d27,_0x424bd4,_0x1bd088);for(const _0xcf4a53 of _0x5a91a6)_0x5f1481['markInlineFormat'](_0xcf4a53,{'commandName':_0xa71d27,'commandParams':[{'forceValue':_0x5cfb4b}]});}});}),_0x5f1481['descriptionFactory']['registerDescriptionCallback'](_0xae479f=>{if('formatBlock'!=_0xae479f['type']&&'formatInline'!=_0xae479f['type'])return;const {data:_0x11a046}=_0xae479f;return _0x11a046&&_0x11a046['commandName']==_0xa71d27?_0x11a046['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f5e67,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4f5e67,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x252f3f{['afterInit'](){const _0x2fc051=this['editor'];if(!_0x2fc051['plugins']['has']('Style')||!_0x2fc051['plugins']['has']('DataSchema'))return;const _0x12bcf5=_0x2fc051['plugins']['get']('TrackChangesEditing'),_0xdd7141=_0x2fc051['locale'],_0x721215=_0x2fc051['config']['get']('style')||{},_0x2eab83=_0x2fc051['plugins']['get']('GeneralHtmlSupport'),_0x2c1cd1=_0x2fc051['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fc051['plugins']['get']('DataSchema'),_0x721215['definitions']);_0x12bcf5['enableDefaultAttributesIntegration']('style');const _0x286384=new Set();for(const _0x26a00d of _0x2c1cd1['block']){const _0x7d9052=_0x2eab83['getGhsAttributeNameForElement'](_0x26a00d['element']);_0x286384['add'](_0x7d9052);}const _0x1085cb=new Set();for(const _0x2ef488 of _0x2c1cd1['inline']){const _0x2a45ba=_0x2eab83['getGhsAttributeNameForElement'](_0x2ef488['element']);_0x1085cb['add'](_0x2a45ba);for(const _0x3023f1 of _0x2ef488['ghsAttributes'])_0x1085cb['add'](_0x3023f1);}for(const _0x218055 of _0x286384)_0x12bcf5['registerBlockAttribute'](_0x218055),_0x12bcf5['descriptionFactory']['registerAttributeLabel'](_0x218055,o(_0xdd7141,'FORMAT_STYLE'));for(const _0x3a3ff2 of _0x1085cb)_0x12bcf5['registerInlineAttribute'](_0x3a3ff2),_0x12bcf5['descriptionFactory']['registerAttributeLabel'](_0x3a3ff2,o(_0xdd7141,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1fabcc=this['editor'],_0x3497d9=_0x1fabcc['locale'];_0x1fabcc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5eeca4=>{if('formatBlock'!=_0x5eeca4['type']&&'formatInline'!=_0x5eeca4['type'])return;const {data:_0x22f40f}=_0x5eeca4;return _0x22f40f&&'style'===_0x22f40f['commandName']?_0x22f40f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3497d9,'*Set\x20format:*\x20%0',_0x22f40f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x3497d9,'*Remove\x20format:*\x20%0',_0x22f40f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x252f3f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x42a744){super(_0x42a744),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x52bfba=this['editor'],_0x49ad26=_0x52bfba['model']['document']['selection'];if(!_0x52bfba['plugins']['has']('TableEditing'))return;const _0x25c476=_0x52bfba['locale'],_0x4f8fbc=_0x52bfba['plugins']['get']('TrackChangesEditing'),_0xde318d=_0x52bfba['plugins']['get']('TableUtils');_0x4f8fbc['descriptionFactory']['registerElementLabel']('table',_0xc6eff9=>o(_0x25c476,'ELEMENT_TABLE',_0xc6eff9)),this['_setupColumnsRowsFixing'](),_0x4f8fbc['enableCommand']('insertTable'),_0x4f8fbc['enableCommand']('selectTableRow'),_0x4f8fbc['enableCommand']('selectTableColumn');for(const _0x333c5c of['insertTableRowAbove','insertTableRowBelow']){const _0x2c5558=_0x52bfba['commands']['get'](_0x333c5c);_0x4f8fbc['enableCommand'](_0x333c5c,_0x379106=>{_0x52bfba['model']['change'](_0x47b578=>{_0x379106();const _0x2b5bdf='above'===_0x2c5558['order'],_0x4e8091=_0xde318d['getSelectionAffectedTableCells'](_0x49ad26),_0x1e0e11=_0xde318d['getRowIndexes'](_0x4e8091),_0x40248e=_0x2b5bdf?_0x1e0e11['first']-0x1:_0x1e0e11['last']+0x1,_0x224921=_0x4e8091[0x0]['findAncestor']('table'),_0x1f0162=_0xde318d['createTableWalker'](_0x224921,{'startRow':_0x40248e,'endRow':_0x40248e}),_0x287af8=Array['from'](_0x1f0162)['map'](_0x2cd041=>_0x47b578['createRangeOn'](_0x2cd041['cell']));_0x4f8fbc['markMultiRangeInsertion'](_0x287af8,'tableRow');});});}for(const _0x5e733b of['insertTableColumnLeft','insertTableColumnRight']){const _0x187fb2=_0x52bfba['commands']['get'](_0x5e733b);_0x4f8fbc['enableCommand'](_0x5e733b,_0x572e88=>{_0x52bfba['model']['change'](_0x1e3d76=>{_0x572e88();const _0x20cf95='left'===_0x187fb2['order'],_0x303627=_0xde318d['getSelectionAffectedTableCells'](_0x49ad26),_0x3a36f3=_0xde318d['getColumnIndexes'](_0x303627),_0x30e355=_0x20cf95?_0x3a36f3['first']-0x1:_0x3a36f3['last']+0x1,_0x56c429=_0x303627[0x0]['findAncestor']('table'),_0x4aefa8=_0xde318d['createTableWalker'](_0x56c429,{'startRow':0x0,'column':_0x30e355,'includeAllSlots':!0x1}),_0x46eba5=Array['from'](_0x4aefa8)['map'](_0x1acfcd=>_0x1e3d76['createRangeOn'](_0x1acfcd['cell']));_0x4f8fbc['markMultiRangeInsertion'](_0x46eba5,'tableColumn');});});}for(const _0x90a8c5 of['removeTableRow','removeTableColumn']){const _0x3e1c00=_0x90a8c5['substr'](0xb),_0x9a1280=_0x3e1c00['toLowerCase'](),_0x27bac2=_0x9a1280['substr'](0x0,0x3)+'span',_0x97988a='table'+_0x3e1c00,_0x1e1972='min'+_0x3e1c00,_0x5ec429='max'+_0x3e1c00;_0x4f8fbc['enableCommand'](_0x90a8c5,()=>{_0x52bfba['model']['change'](_0x189804=>{const _0x3cff92=_0xde318d['getSelectionAffectedTableCells'](_0x49ad26),_0x2300e8=_0x3cff92[0x0]['findAncestor']('table');let _0x540d6c;if('removeTableRow'==_0x90a8c5){const _0x474675=_0xde318d['getRowIndexes'](_0x3cff92);_0x540d6c={'startRow':_0x474675['first'],'endRow':_0x474675['last'],'includeAllSlots':!0x0};}else{const _0x13c3cf=_0xde318d['getColumnIndexes'](_0x3cff92);_0x540d6c={'startColumn':_0x13c3cf['first'],'endColumn':_0x13c3cf['last'],'includeAllSlots':!0x0};}const _0x3575e7=_0xde318d['createTableWalker'](_0x2300e8,_0x540d6c),_0x922a4b=Array['from'](_0x3575e7)['map'](({cell:_0x12d91c})=>_0x12d91c),_0xc131c1=Ne(_0x922a4b['filter'](_0x359640=>_0x359640['hasAttribute'](_0x27bac2))),_0xfbabf9=Ne(_0x922a4b['filter'](_0x527b7a=>!_0x527b7a['hasAttribute'](_0x27bac2)))['map'](_0x3237b5=>_0x189804['createRangeOn'](_0x3237b5)),_0x94b31e=_0x4f8fbc['markMultiRangeDeletion'](_0xfbabf9,_0x97988a);if(_0x94b31e&&('tableRow'==_0x94b31e['subType']||'tableColumn'==_0x94b31e['subType'])){const _0x3eaf84=this['_getSuggestionCoords'](_0x94b31e);for(const _0x22af79 of _0xc131c1){const _0x91061=_0x189804['createRangeOn'](_0x22af79),_0x45303a=_0xde318d['getCellLocation'](_0x22af79),_0x4c1198=_0x22af79['getAttribute'](_0x27bac2)-0x1,_0x408bc9=_0x3eaf84[_0x1e1972],_0x2dd019=_0x3eaf84[_0x5ec429];_0x408bc9<=_0x45303a[_0x9a1280]&&_0x45303a[_0x9a1280]+_0x4c1198<=_0x2dd019&&_0x94b31e['addRange'](_0x91061);}}});});}function _0x50a649(_0x2dc67a){const _0x45201a=Array['from'](_0x49ad26['getRanges']())['map'](_0x61a46e=>_0x206398['fromRange'](_0x61a46e));_0x52bfba['model']['change'](_0x3d2dc4=>{const _0x581ca0=_0x3d2dc4['batch'];_0x2dc67a=_0x2dc67a['filter'](_0x1fa64a=>'$graveyard'!=_0x1fa64a['root']['rootName']),_0x3d2dc4['setSelection'](_0x2dc67a),_0x52bfba['commands']['get']('removeTableRow')['refresh'](),_0x52bfba['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x52bfba['model']['enqueueChange'](()=>{_0x52bfba['model']['enqueueChange'](_0x581ca0,_0x3c66de=>{const _0x3c05e4=_0x45201a['filter'](_0x2e233b=>'$graveyard'!=_0x2e233b['root']['rootName']);_0x3c05e4['length']>0x0&&_0x3c66de['setSelection'](_0x3c05e4);for(const _0x498b0f of _0x45201a)_0x498b0f['detach']();});});});}function _0x1a3e56(_0x3e3af9){_0x52bfba['model']['change'](_0x160745=>{const _0x54186e=Array['from'](_0x49ad26['getRanges']())['map'](_0x4278b2=>_0x206398['fromRange'](_0x4278b2)),_0x4fd2c8=[];for(const _0x5d062f of _0x3e3af9)for(const _0x307d44 of _0x5d062f['getItems']({'shallow':!0x0}))_0x4fd2c8['push'](_0x307d44);for(const _0x4481f1 of _0x4fd2c8)'$graveyard'!=_0x4481f1['root']['rootName']&&(_0x160745['setSelection'](_0x160745['createPositionAt'](_0x4481f1,0x0)),_0x52bfba['commands']['get']('removeTableColumn')['refresh'](),_0x52bfba['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x33a899=_0x54186e['filter'](_0x13721b=>'$graveyard'!=_0x13721b['root']['rootName']);_0x33a899['length']>0x0&&_0x160745['setSelection'](_0x33a899);for(const _0x3dd8cd of _0x54186e)_0x3dd8cd['detach']();});}function _0x496dc5(_0x1d0bbb,_0x35fab8){return _0x35fab8['every'](_0xc4c409=>_0x1d0bbb['some'](_0x165b0a=>_0x165b0a['end']['isEqual'](_0xc4c409['start'])||_0xc4c409['end']['isEqual'](_0x165b0a['start'])));}function _0x567564(_0x21b45f,_0x5ad280){return!_0x21b45f['some'](_0x37f8d4=>_0x5ad280['some'](_0x1741d3=>_0x37f8d4['isIntersecting'](_0x1741d3)))&&_0x21b45f['some'](_0x480f89=>_0x5ad280['some'](_0x4f22a9=>_0x480f89['end']['isTouching'](_0x4f22a9['start'])));}_0x52bfba['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24f4f7,_0x96931a,_0xbe6895)=>{if(!_0xbe6895['options']['showSuggestionHighlights'])return;const _0x248415=_0x96931a['item'];if(!_0x248415)return;const _0x46deb0=_0xbe6895['mapper']['toViewElement'](_0x248415);function _0x51a611(_0x216ea1){return Array['isArray'](_0x216ea1)?_0x216ea1:[_0x216ea1];}_0x46deb0&&'tableCell'===_0x248415['name']&&_0x5837a7(_0x46deb0,_0xbe6895['writer'],(_0x423458,_0x4607f1,_0x5983b2)=>_0x5983b2['addClass'](_0x51a611(_0x4607f1['classes']),_0x423458),(_0x25de42,_0x399722,_0x36a2a4)=>_0x36a2a4['removeClass'](_0x51a611(_0x399722['classes']),_0x25de42));},{'priority':'highest'}),_0x4f8fbc['descriptionFactory']['registerDescriptionCallback'](_0x5c876d=>{if('insertion'!=_0x5c876d['type']&&'deletion'!=_0x5c876d['type'])return;const _0x41183e=_0x5c876d['getContainedElement']();if(null!=_0x41183e&&_0x41183e['is']('element','table')){if('insertion'==_0x5c876d['type']){const _0x48bbf4=_0x5c876d['getItems']()['filter'](_0x47818a=>_0x47818a['is']('$textProxy'))['map'](_0x47e855=>_0x47e855['data']);if(_0x48bbf4['length'])return{'type':'insertion','content':o(_0x25c476,'*Insert:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x48bbf4['join']('\x20')+'\x22'))};}if('deletion'==_0x5c876d['type']){const _0x47d322=_0x5c876d['getItems']()['filter'](_0x27a532=>_0x27a532['is']('$textProxy'))['map'](_0xed4ee1=>_0xed4ee1['data']);if(_0x47d322['length'])return{'type':'deletion','content':o(_0x25c476,'*Remove:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x47d322['join']('\x20')+'\x22'))};}}}),_0x4f8fbc['descriptionFactory']['registerDescriptionCallback'](_0x25d599=>{if('tableRow'==_0x25d599['subType']){const _0x5ca891=_0x25d599['getItems']()['filter'](_0x378907=>_0x378907['is']('$textProxy'))['map'](_0x42b072=>_0x42b072['data']),_0x5a6d3a=this['_getSuggestionCoords'](_0x25d599),_0x328684=_0x5a6d3a['maxRow']-_0x5a6d3a['minRow']+0x1;if('insertion'==_0x25d599['type'])return _0x5ca891['length']?{'type':'insertion','content':o(_0x25c476,'*Insert:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x328684,'\x22'+_0x5ca891['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x25c476,'*Insert:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_ROW',_0x328684))};if('deletion'==_0x25d599['type'])return _0x5ca891['length']?{'type':'deletion','content':o(_0x25c476,'*Remove:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x328684,'\x22'+_0x5ca891['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x25c476,'*Remove:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_ROW',_0x328684))};}if('tableColumn'==_0x25d599['subType']){const _0x18d511=_0x25d599['getItems']()['filter'](_0x28787a=>_0x28787a['is']('$textProxy'))['map'](_0x4656fb=>_0x4656fb['data']),_0x46e0bc=this['_getSuggestionCoords'](_0x25d599),_0x437f4a=_0x46e0bc['maxColumn']-_0x46e0bc['minColumn']+0x1;if('insertion'==_0x25d599['type'])return _0x18d511['length']?{'type':'insertion','content':o(_0x25c476,'*Insert:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x437f4a,'\x22'+_0x18d511['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x25c476,'*Insert:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_COLUMN',_0x437f4a))};if('deletion'==_0x25d599['type'])return _0x18d511['length']?{'type':'deletion','content':o(_0x25c476,'*Remove:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x437f4a,'\x22'+_0x18d511['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x25c476,'*Remove:*\x20%0',o(_0x25c476,'ELEMENT_TABLE_COLUMN',_0x437f4a))};}}),_0x4f8fbc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x50a649),_0x4f8fbc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x50a649),_0x4f8fbc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1a3e56),_0x4f8fbc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1a3e56),_0x4f8fbc['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x496dc5),_0x4f8fbc['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x496dc5),_0x4f8fbc['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x567564),_0x4f8fbc['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x567564);}['_acceptFormatSuggestionCallbackFactory'](){const _0x56fd11=this['editor'],_0x731948=_0x56fd11['model']['document']['selection'];return(_0x8ffed9,_0x24f985)=>{_0x56fd11['model']['change'](_0x595c79=>{const {commandName:_0x2cb657,commandParams:_0x1e4d73}=_0x24f985;let _0x45ddb9=_0x8ffed9[0x0]['end']['nodeBefore'];_0x1e4d73&&_0x1e4d73[0x0]&&!0x1===_0x1e4d73[0x0]['forceValue']&&(_0x45ddb9=_0x8ffed9[0x0]['start']['nodeAfter']);const _0x4c74a5=_0x595c79['createRangeIn'](_0x45ddb9);if('$graveyard'==_0x4c74a5['root']['rootName'])return;const _0x379e56=Array['from'](_0x731948['getRanges']())['map'](_0x2bb634=>_0x206398['fromRange'](_0x2bb634));_0x595c79['setSelection'](_0x4c74a5),_0x56fd11['commands']['get'](_0x2cb657)['refresh'](),_0x1e4d73['push']({'forceDefaultExecution':!0x0}),_0x56fd11['execute'](_0x2cb657,..._0x1e4d73);const _0x58cc5b=_0x379e56['filter'](_0x369bb5=>'$graveyard'!=_0x369bb5['root']['rootName']);_0x58cc5b['length']>0x0&&_0x595c79['setSelection'](_0x58cc5b);for(const _0x59e0e9 of _0x379e56)_0x59e0e9['detach']();});};}['_getCoordsForCells'](_0x47b23c){const _0xb9360c=this['editor']['plugins']['get']('TableUtils');let _0x387a4f=Number['MAX_SAFE_INTEGER'],_0x435ef7=Number['MIN_SAFE_INTEGER'],_0x4535ae=Number['MAX_SAFE_INTEGER'],_0x2ebd2a=Number['MIN_SAFE_INTEGER'];for(const _0x344032 of _0x47b23c){if('$graveyard'==_0x344032['root']['rootName'])continue;const {row:_0x453a98,column:_0x2380dc}=_0xb9360c['getCellLocation'](_0x344032),_0x2ade11=_0x344032['hasAttribute']('rowspan')?_0x344032['getAttribute']('rowspan')-0x1:0x0,_0x1e8a47=_0x344032['hasAttribute']('colspan')?_0x344032['getAttribute']('colspan')-0x1:0x0;_0x387a4f=_0x453a98<_0x387a4f?_0x453a98:_0x387a4f,_0x435ef7=_0x453a98+_0x2ade11>_0x435ef7?_0x453a98+_0x2ade11:_0x435ef7,_0x4535ae=_0x2380dc<_0x4535ae?_0x2380dc:_0x4535ae,_0x2ebd2a=_0x2380dc+_0x1e8a47>_0x2ebd2a?_0x2380dc+_0x1e8a47:_0x2ebd2a;}return{'minRow':_0x387a4f,'maxRow':_0x435ef7,'minColumn':_0x4535ae,'maxColumn':_0x2ebd2a};}['_setupColumnsRowsFixing'](){const _0x1406c0=this['editor'],_0x370c82=_0x1406c0['plugins']['get']('TrackChangesEditing'),_0x582d91=_0x1406c0['plugins']['get']('TableUtils');_0x1406c0['model']['document']['on']('change:data',()=>{const _0x4ae8e3=Array['from'](_0x1406c0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39d070,data:_0x18ad20}of _0x4ae8e3){const {group:_0x14644f,id:_0x121463,subType:_0x1b81dc}=_0x370c82['_splitMarkerName'](_0x39d070);if('suggestion'!=_0x14644f)continue;if(null!=_0x18ad20['oldRange'])continue;const _0x1a3d88=_0x370c82['getSuggestion'](_0x121463);this['_tablePostFixingSubtypes']['includes'](_0x1b81dc)&&this['_tableSuggestions']['add'](_0x1a3d88);}},{'priority':'low'});const _0x19599c=(_0xc26ef4,_0x51ae71)=>{let _0x4ffec9=!0x1;const _0x28d2a1=_0x51ae71['createRangeOn'](_0xc26ef4),_0x4079dc=_0xc26ef4['findAncestor']('table'),_0x86c6e4=_0x582d91['getCellLocation'](_0xc26ef4);for(const _0x44695f of this['_tableSuggestions']){const _0x7ab277=_0x44695f['subType'],_0x141ab7=_0x7ab277['startsWith']('tablePaste'),_0x19007e=_0x7ab277['substr'](_0x141ab7?0xa:0x5),_0x30eecc=_0x19007e['toLowerCase'](),_0x146d5b=_0x30eecc['substr'](0x0,0x3)+'span',_0x575d5c='min'+_0x19007e,_0x20a865='max'+_0x19007e;if(!_0x44695f['isInContent'])continue;if(_0x4079dc!=_0x44695f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x44695f['isIntersectingWithRange'](_0x28d2a1))continue;const _0x4ba7a5=_0xc26ef4['hasAttribute'](_0x146d5b)?_0xc26ef4['getAttribute'](_0x146d5b)-0x1:0x0,_0x108e86=this['_getSuggestionCoords'](_0x44695f),_0x3401af=_0x108e86[_0x575d5c],_0x177180=_0x108e86[_0x20a865];_0x3401af<=_0x86c6e4[_0x30eecc]&&_0x86c6e4[_0x30eecc]+_0x4ba7a5<=_0x177180&&(_0x44695f['addRange'](_0x28d2a1),_0x4ffec9=!0x0);}return _0x4ffec9;};_0x1406c0['model']['document']['registerPostFixer'](_0x51d8aa=>{let _0x31e72d=!0x1;for(const _0xa1103 of _0x1406c0['model']['document']['differ']['getChanges']())if('insert'==_0xa1103['type']){if('tableRow'==_0xa1103['name']){for(const _0x398f68 of _0xa1103['position']['nodeAfter']['getChildren']())_0x31e72d=_0x31e72d||_0x19599c(_0x398f68,_0x51d8aa);}else'tableCell'==_0xa1103['name']&&(_0x31e72d=_0x31e72d||_0x19599c(_0xa1103['position']['nodeAfter'],_0x51d8aa));}return _0x31e72d;});}['_getSuggestionCoords'](_0x15031e){return this['_getCoordsForCells'](_0x15031e['getRanges']()['map'](_0x5e0998=>_0x5e0998['start']['nodeAfter']));}}function Ne(_0x4d63eb){return Array['from'](new Set(_0x4d63eb)['values']());}class Nt extends _0x252f3f{static get['requires'](){return[Ct];}['afterInit'](){const _0x436731=this['editor'],_0x50a25d=_0x436731['model']['document']['selection'],_0x3fabf3=_0x436731['locale'];if(!_0x436731['plugins']['has']('TableEditing'))return;const _0x32e733=_0x436731['plugins']['get']('TrackChangesEditing'),_0x374997=_0x436731['plugins']['get']('TableUtils'),_0x235db6=_0x436731['plugins']['get'](Ct);_0x235db6['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x32e733['enableCommand']('mergeTableCells',()=>{const _0x2f7972=_0x374997['getSelectionAffectedTableCells'](_0x436731['model']['document']['selection']);_0x436731['model']['change'](()=>{_0x32e733['markMultiRangeBlockFormat'](_0x2f7972,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x436731['commands']['get']('mergeTableCells')['on']('execute',(_0x10c145,_0x28d144)=>{_0x436731['commands']['get']('trackChanges')['value']&&(_0x28d144['length']>0x0&&_0x28d144[_0x28d144['length']-0x1]&&_0x28d144[_0x28d144['length']-0x1]['forceDefaultExecution']||_0x32e733['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x10c145['stop']());},{'priority':'highest'});for(const _0x356cfb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x594e90=_0x436731['commands']['get'](_0x356cfb);_0x32e733['enableCommand'](_0x356cfb,()=>{const _0x72d63b=_0x436731['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x304931=>_0x304931['is']('element','tableCell')),_0xf32295=_0x594e90['value'];_0x436731['model']['change'](()=>{_0x32e733['markMultiRangeBlockFormat']([_0x72d63b,_0xf32295],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1bbf06 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x448d62=_0x436731['commands']['get'](_0x1bbf06);_0x32e733['enableCommand'](_0x1bbf06,()=>{const _0x181fc2=_0x374997['getSelectionAffectedTableCells'](_0x436731['model']['document']['selection'])[0x0],_0x58a2fb=_0x181fc2['findAncestor']('table'),{column:_0x1bb176,row:_0x1a3a55}=_0x374997['getCellLocation'](_0x181fc2);let _0x45ef11=[];if('horizontally'==_0x448d62['direction']){const _0x781f54=_0x374997['createTableWalker'](_0x58a2fb,{'startRow':_0x1a3a55,'endRow':_0x1a3a55,'includeAllSlots':!0x0});_0x45ef11=Array['from'](_0x781f54)['map'](_0x406f6e=>_0x406f6e['cell']);}else{const _0x9d2e6c=_0x374997['createTableWalker'](_0x58a2fb,{'column':_0x1bb176,'includeAllSlots':!0x0});_0x45ef11=Array['from'](_0x9d2e6c)['map'](_0x26498a=>_0x26498a['cell']);}_0x436731['model']['change'](_0x5ba86c=>{_0x32e733['markBlockFormat'](_0x5ba86c['createRangeOn'](_0x181fc2),{'commandName':_0x1bbf06,'commandParams':[]},_0x45ef11,_0x1bbf06);});});}_0x32e733['descriptionFactory']['registerDescriptionCallback'](_0x21102e=>{if('formatBlock'!=_0x21102e['type']&&'formatInline'!=_0x21102e['type'])return;const {data:_0x5a923b}=_0x21102e;return _0x5a923b&&'mergeTableCells'==_0x5a923b['commandName']?{'type':'format','content':o(_0x3fabf3,'*Merge\x20cells*')}:void 0x0;}),_0x32e733['descriptionFactory']['registerDescriptionCallback'](_0x5a24d7=>{if('formatBlock'!=_0x5a24d7['type']&&'formatInline'!=_0x5a24d7['type'])return;const {data:_0xae86f4}=_0x5a24d7;return _0xae86f4?'splitTableCellVertically'==_0xae86f4['commandName']?{'type':'format','content':o(_0x3fabf3,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xae86f4['commandName']?{'type':'format','content':o(_0x3fabf3,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xf3b5a8=_0x235db6['_acceptFormatSuggestionCallbackFactory']();for(const _0x5d1d71 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x32e733['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d1d71,'accept',_0xf3b5a8);for(const _0x2da75e of['splitTableCellVertically','splitTableCellHorizontally'])_0x32e733['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2da75e,'accept',_0xf3b5a8);_0x32e733['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x78927f=>{_0x436731['model']['change'](_0x3268f6=>{const _0x176eaf=Array['from'](_0x50a25d['getRanges']())['map'](_0x2f4298=>_0x206398['fromRange'](_0x2f4298));_0x3268f6['setSelection'](_0x78927f),_0x436731['commands']['get']('mergeTableCells')['refresh'](),_0x436731['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x44047e=_0x176eaf['filter'](_0x41a222=>'$graveyard'!=_0x41a222['root']['rootName']);_0x44047e['length']>0x0&&_0x3268f6['setSelection'](_0x44047e);for(const _0x44feaa of _0x176eaf)_0x44feaa['detach']();});});for(const _0x44965f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x55be06=_0x436731['commands']['get'](_0x44965f);_0x55be06['on']('set:isEnabled',(_0x32ec09,_0x290145,_0x5dd711)=>{if(_0x5dd711){const _0x3c8629=_0x436731['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a6b02=>_0x1a6b02['is']('element','tableCell'));this['_areMergableCells'](_0x55be06['value'],_0x3c8629)||(_0x32ec09['return']=!0x1,_0x32ec09['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x370a58=this['editor']['commands']['get']('mergeTableCells'),_0x3d9723=this['editor']['plugins']['get']('TableUtils');if(!_0x370a58['isEnabled'])return!0x1;const _0x11d154=_0x3d9723['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3cfc80 of _0x11d154)for(const _0x176711 of _0x11d154)if(_0x3cfc80!=_0x176711&&!this['_areMergableCells'](_0x3cfc80,_0x176711))return!0x1;return!0x0;}['_areMergableCells'](_0x5ee64e,_0x1f6fb5){const _0x391717=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22baf9=this['editor']['model']['createRangeOn'](_0x5ee64e),_0x4dba63=this['editor']['model']['createRangeOn'](_0x1f6fb5),_0x4800a7=new Set(),_0x1478dc=new Set();for(const _0x396cc4 of _0x391717['getSuggestions']())if(('insertion'==_0x396cc4['type']||'deletion'==_0x396cc4['type']||'mergeTableCells'==_0x396cc4['subType'])&&_0x396cc4['isInContent']){for(const _0x265999 of _0x396cc4['getRanges']())_0x265999['containsRange'](_0x22baf9,!0x0)&&_0x4800a7['add'](_0x396cc4['type']+':'+_0x396cc4['author']['id']),_0x265999['containsRange'](_0x4dba63,!0x0)&&_0x1478dc['add'](_0x396cc4['type']+':'+_0x396cc4['author']['id']);}if(_0x4800a7['size']!=_0x1478dc['size'])return!0x1;for(const _0xe8ef58 of _0x4800a7)if(!_0x1478dc['has'](_0xe8ef58))return!0x1;return!0x0;}}class Dt extends _0x252f3f{static get['requires'](){return[Ct];}['afterInit'](){const _0x1c708f=this['editor'];if(!_0x1c708f['plugins']['has']('TableEditing'))return;const _0x151b51=_0x1c708f['locale'],_0x45e6e1=_0x1c708f['plugins']['get']('TrackChangesEditing');_0x45e6e1['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x45e6e1['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x45e6e1['registerBlockAttribute']('headingRows'),_0x45e6e1['registerBlockAttribute']('headingColumns'),_0x45e6e1['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x151b51,'FORMAT_HEADER_ROW')),_0x45e6e1['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x151b51,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1ea1fe=this['editor']['plugins']['get']('TrackChangesEditing'),_0x38d495=this['editor']['plugins']['get']('TableUtils'),_0x27fbfe=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0xb49c7e({showActiveMarker:_0x1a1c8b=!0x0,setDataAttribute:_0x56defd=!0x0}={}){return(_0x31006b,_0x5ddc99,_0x2ddca7)=>{const {type:_0x2f6c78,id:_0x2d441e}=_0x1ea1fe['_splitMarkerName'](_0x5ddc99['markerName']),_0x233e94=_0x1ea1fe['getSuggestion'](_0x2d441e),_0x2d6aec=_0x233e94['data'];if('formatBlock'!=_0x233e94['type']||!_0x2d6aec||'setTableColumnHeader'!=_0x2d6aec['commandName'])return;if(_0x5ddc99['item'])return void _0x31006b['stop']();if(!_0x2ddca7['consumable']['consume'](_0x5ddc99['markerRange'],_0x31006b['name']))return;const _0x27d6fb=_0x5ddc99['markerRange']['start']['nodeAfter'],_0x56daf6=_0x5ddc99['markerRange']['end']['nodeBefore'],_0x260be9=_0x27d6fb['parent']['parent'],{column:_0x130bfc}=_0x38d495['getCellLocation'](_0x27d6fb),{column:_0x32f579}=_0x38d495['getCellLocation'](_0x56daf6);for(let _0x20d13d=_0x130bfc;_0x20d13d<=_0x32f579;_0x20d13d++){const _0x4d983d=_0x38d495['createTableWalker'](_0x260be9,{'column':_0x20d13d,'includeAllSlots':!0x1});for(const _0x2713f6 of _0x4d983d){const _0x235b38=_0x2713f6['cell'],_0x57fbb8=_0x2ddca7['mapper']['toViewElement'](_0x235b38);_0x2ddca7['writer']['addClass']('ck-suggestion-marker-'+_0x2f6c78,_0x57fbb8),_0x56defd&&_0x2ddca7['writer']['setAttribute']('data-suggestion',_0x2d441e,_0x57fbb8),_0x2ddca7['mapper']['bindElementToMarker'](_0x57fbb8,_0x5ddc99['markerName']),_0x1a1c8b&&(_0x1ea1fe['activeMarkers']['includes'](_0x5ddc99['markerName'])?_0x2ddca7['writer']['addClass']('ck-suggestion-marker--active',_0x57fbb8):_0x2ddca7['writer']['removeClass']('ck-suggestion-marker--active',_0x57fbb8));}}};}_0x1ea1fe['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x27fbfe),_0x1ea1fe['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x27fbfe),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xb49c7e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x424835,_0x533290,_0x190d80)=>{_0x190d80['options']['showSuggestionHighlights']&&_0xb49c7e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x424835,_0x533290,_0x190d80);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xb39b72,_0x15f005,_0x537601)=>{const {type:_0x2df3c8,id:_0x53cabb}=_0x1ea1fe['_splitMarkerName'](_0x15f005['markerName']),_0x262deb=_0x1ea1fe['getSuggestion'](_0x53cabb),_0x416a06=_0x262deb['data'];if('formatBlock'!=_0x262deb['type']||!_0x416a06||'setTableColumnHeader'!=_0x416a06['commandName'])return;const _0x435a95=_0x537601['mapper']['markerNameToElements'](_0x15f005['markerName']);if(_0x435a95){for(const _0x50bcb7 of _0x435a95)_0x537601['writer']['removeClass']('ck-suggestion-marker-'+_0x2df3c8,_0x50bcb7),_0x537601['writer']['removeClass']('ck-suggestion-marker--active',_0x50bcb7),_0x537601['writer']['removeAttribute']('data-suggestion',_0x50bcb7),_0x537601['mapper']['unbindElementFromMarkerName'](_0x50bcb7,_0x15f005['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd4ff0a=this['editor'],_0x40965f=_0xd4ff0a['locale'];function _0x473f0b(_0x36f556){return{'type':'format','content':o(_0x40965f,'*Format:*\x20%0',_0x36f556)};}_0xd4ff0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52e894=>{if('formatBlock'!=_0x52e894['type'])return;const {data:_0x202dfa}=_0x52e894;if(_0x202dfa){if('setTableRowHeader'==_0x202dfa['commandName']){const _0x5dde72=_0x202dfa['commandParams'][0x0]['forceValue'];return _0x473f0b(o(_0x40965f,_0x5dde72?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x202dfa['commandName']){const _0x54eb43=_0x202dfa['commandParams'][0x0]['forceValue'];return _0x473f0b(o(_0x40965f,_0x54eb43?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x48349e=>[_0x48349e,null]));class Mt extends _0x252f3f{static get['requires'](){return[Ct];}['afterInit'](){const _0x506515=this['editor'];if(!_0x506515['plugins']['has']('TableClipboard'))return;const _0x575f52=_0x506515['plugins']['get']('TrackChangesEditing'),_0x1f0108=_0x506515['plugins']['get']('TableUtils'),_0x434c3a=_0x506515['plugins']['get'](Ct),_0x3d6332=_0x506515['plugins']['get']('TableClipboard');_0x434c3a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x506515['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x506515['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3cd962=null;_0x506515['model']['on']('insertContent',(_0x2d411e,_0x223702)=>{const [_0x344bcb,_0x20c52d]=_0x223702,_0x4f809b=_0x223702[_0x223702['length']-0x1];_0x4f809b&&_0x4f809b['forceDefaultExecution']||_0x575f52['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4d5a6d,_0x11cb56,_0x430699,_0x556bbe,_0x21c6ad){if(_0x11cb56&&!_0x11cb56['is']('documentSelection'))return!0x1;const _0x1c1065=_0x21c6ad['getTableIfOnlyTableInContent'](_0x4d5a6d,_0x430699);if(!_0x1c1065||!Ue(_0x1c1065,void 0x0,_0x556bbe))return!0x1;const _0xc899c5=_0x556bbe['getSelectionAffectedTableCells'](_0x430699['document']['selection']);if(!_0xc899c5['length'])return!0x1;const _0x155778=_0xc899c5[0x0]['findAncestor']('table'),_0x28d92f=_0x556bbe['getRowIndexes'](_0xc899c5),_0x529795=_0x556bbe['getColumnIndexes'](_0xc899c5),_0x589288={'startRow':_0x28d92f['first'],'endRow':_0x28d92f['last'],'startColumn':_0x529795['first'],'endColumn':_0x529795['last']};return 0x1==_0xc899c5['length']&&(_0x589288['endRow']+=_0x556bbe['getRows'](_0x1c1065)-0x1,_0x589288['endColumn']+=_0x556bbe['getColumns'](_0x1c1065)-0x1),Ue(_0x155778,_0x589288,_0x556bbe);}(_0x344bcb,_0x20c52d,_0x506515['model'],_0x1f0108,_0x3d6332)&&(_0x2d411e['stop'](),_0x3cd962={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x506515['model']['change'](()=>{_0x506515['model']['insertContent'](_0x223702[0x0],_0x223702[0x1],_0x223702[0x2],{'forceDefaultExecution':!0x0});const _0x2c149f=_0x359303(),{rowInsertionRanges:_0x1dee10,columnInsertionRanges:_0x5139fe,insertionRanges:_0x35d841,deletionRanges:_0x57a09,cells:_0x114cf0}=_0x3cd962;_0x1dee10['length']&&_0x575f52['markMultiRangeInsertion'](_0x1dee10,'tablePasteRow',{'tablePasteChainId':_0x2c149f}),_0x5139fe['length']&&_0x575f52['markMultiRangeInsertion'](_0x5139fe,'tablePasteColumn',{'tablePasteChainId':_0x2c149f}),_0x35d841['length']&&(_0x575f52['markMultiRangeInsertion'](_0x35d841,'tablePaste',{'tablePasteChainId':_0x2c149f,'skipNestingCheck':!0x0}),_0x35d841['forEach'](_0x3a9746=>_0x3a9746['detach']?.())),_0x57a09['length']&&(_0x575f52['markMultiRangeDeletion'](_0x57a09,'tablePaste',{'tablePasteChainId':_0x2c149f,'skipNestingCheck':!0x0}),_0x57a09['forEach'](_0x1d0da4=>_0x1d0da4['detach']?.()));const _0x5828d3=_0x575f52['markMultiRangeBlockFormat'](_0x114cf0['map'](({element:_0x25ca8a})=>_0x25ca8a),{'formatGroupId':_0x359303()},[],'tablePasteCell',{'tablePasteChainId':_0x2c149f});if(_0x5828d3){const _0x133473=_0x5828d3['getMarkers'](),_0xbe51a6=[];for(const {element:_0x360bb5,attributes:_0x501add}of _0x114cf0){if(!_0x501add)continue;const _0x47c234=_0x506515['model']['createRangeOn'](_0x360bb5),_0x3c2a7d=_0x133473['find'](_0x7ce32d=>_0x7ce32d['getRange']()['isEqual'](_0x47c234));_0x3c2a7d&&_0xbe51a6['push']([_0x3c2a7d['name'],_0x501add]);}_0xbe51a6['length']&&_0x5828d3['setAttribute']('markerAttributes',Object['fromEntries'](_0xbe51a6));}_0x3cd962=null;}));},{'priority':_0x49b899['high']+0xa}),_0x506515['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xe23e85,_0x36ee1d)=>{const [_0xc2938f,_0x26bec4,,_0x58d340]=_0x36ee1d;if(!_0x3cd962)return;_0xe23e85['stop']();const _0x4dadc6=_0xc2938f['cell'],_0x44e20f=_0x26bec4,_0x129bfa=Oe(_0x4dadc6),_0x44831e=Oe(_0x44e20f);_0xe23e85['return']=_0x4dadc6;let _0x2c83a3=null,_0x29a35f=null;if(_0x44831e||_0x129bfa){if(_0x129bfa&&!_0x44831e){_0x58d340['remove'](_0x4dadc6['getChild'](0x0));for(const _0x496c7c of Array['from'](_0x44e20f['getChildren']()))_0x58d340['insert'](_0x496c7c,_0x4dadc6,'end');const _0x39a7dc=_0x3cd962['rowInsertionIndexes']['includes'](_0xc2938f['row']),_0x6310a7=_0x3cd962['columnInsertionIndexes']['includes'](_0xc2938f['column']);_0x39a7dc||_0x6310a7||(_0x2c83a3=_0x206398['fromRange'](_0x58d340['createRangeIn'](_0x4dadc6)));}else _0x44831e&&!_0x129bfa&&(_0x29a35f=_0x58d340['createRangeIn'](_0x4dadc6));}else{const _0x5b59eb=_0x58d340['createElement']('tableCellSuggestion'),_0x2538f0=_0x58d340['createElement']('tableCellSuggestion');_0x58d340['wrap'](_0x58d340['createRangeIn'](_0x4dadc6),_0x2538f0),_0x58d340['insert'](_0x5b59eb,_0x4dadc6,0x0);for(const _0x44e394 of Array['from'](_0x44e20f['getChildren']()))_0x58d340['insert'](_0x44e394,_0x5b59eb,'end');_0x2c83a3=_0x206398['fromRange'](_0x58d340['createRangeOn'](_0x5b59eb)),_0x29a35f=_0x206398['fromRange'](_0x58d340['createRangeOn'](_0x2538f0));}const _0x2e1ae2=Array['from'](_0x44e20f['getAttributes']())['filter'](([_0x52bb8b])=>Be['includes'](_0x52bb8b));_0x3cd962['cells']['push']({'element':_0x4dadc6,'attributes':_0x2e1ae2['length']?Object['fromEntries'](_0x2e1ae2):null}),_0x2c83a3&&_0x3cd962['insertionRanges']['push'](_0x2c83a3),_0x29a35f&&_0x3cd962['deletionRanges']['push'](_0x29a35f);},{'priority':'high'}),_0x1f0108['on']('insertColumns',(_0x24a035,_0x3fc186)=>{const [_0x329fe1,_0x37f1bb={}]=_0x3fc186;if(!_0x3cd962)return;const _0x1f73c0=_0x37f1bb['at']||0x0,_0x3b6db5=_0x37f1bb['columns']||0x1;_0x3cd962['columnInsertionIndexes']=new Array(_0x3b6db5)['fill'](_0x1f73c0)['map']((_0x1cc166,_0x35be26)=>_0x1cc166+_0x35be26);for(const {cell:_0x375a57}of _0x1f0108['createTableWalker'](_0x329fe1,{'startColumn':_0x1f73c0,'endColumn':_0x1f73c0+_0x3b6db5-0x1}))_0x3cd962['columnInsertionRanges']['push'](_0x506515['model']['createRangeOn'](_0x375a57));},{'priority':'low'}),_0x1f0108['on']('insertRows',(_0x1af185,_0x5f4308)=>{const [_0x52b69d,_0x2c2046={}]=_0x5f4308;if(!_0x3cd962)return;const _0x5cb053=_0x2c2046['at']||0x0,_0x235ff7=_0x2c2046['rows']||0x1;_0x3cd962['rowInsertionIndexes']=new Array(_0x235ff7)['fill'](_0x5cb053)['map']((_0x9af2b0,_0x2f56bd)=>_0x9af2b0+_0x2f56bd);for(const {cell:_0x15ca56}of _0x1f0108['createTableWalker'](_0x52b69d,{'startRow':_0x5cb053,'endRow':_0x5cb053+_0x235ff7-0x1}))_0x3cd962['rowInsertionRanges']['push'](_0x506515['model']['createRangeOn'](_0x15ca56));},{'priority':'low'}),_0x575f52['descriptionFactory']['registerDescriptionCallback'](_0x358421=>{if(_0x358421['subType']&&_0x358421['subType']['startsWith']('tablePaste'))return _0x358421['previous']?{}:{'type':'insertion','content':o(_0x506515['locale'],'*Replace\x20table\x20cells*')};});const _0x4a19ab=()=>!0x1;for(const _0x5f5970 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x575f52['_suggestionFactory']['registerCustomCallback']('insertion',_0x5f5970,'join',_0x4a19ab),_0x575f52['_suggestionFactory']['registerCustomCallback']('deletion',_0x5f5970,'join',_0x4a19ab),_0x575f52['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5f5970,'join',_0x4a19ab);_0x575f52['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4a19ab),_0x575f52['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3db84b,_0x3ce2a1,_0x197b42)=>{const _0xe3c7=_0x3db84b['map'](_0x370a56=>_0x370a56['getContainedElement']())['filter'](_0x3e75ff=>_0x3e75ff),_0x3e3801=new Map(_0xe3c7['map'](_0x2f12a0=>[_0x2f12a0,null]));if(_0x3cd962){for(const {element:_0x3ad8af,attributes:_0x1c3f01}of _0x3cd962['cells'])_0x1c3f01&&_0x3e3801['set'](_0x3ad8af,_0x1c3f01);}else{if(_0x197b42&&_0x197b42['markerAttributes'])for(const [_0x559a3d,_0x22d9e3]of Object['entries'](_0x197b42['markerAttributes'])){const _0x2943b2=_0x506515['model']['markers']['get'](_0x559a3d),_0x21d8d3=_0x2943b2?_0x2943b2['getRange']()['getContainedElement']():null;_0x21d8d3&&_0x3e3801['set'](_0x21d8d3,_0x22d9e3);}}_0x506515['model']['change'](_0x224ae1=>{for(const [_0x4b420e,_0x5cfaca]of _0x3e3801)_0x224ae1['setAttributes']({...xe,..._0x5cfaca},_0x4b420e);});});const _0x19df71=(_0x15503d,_0x3d3fd3)=>{_0x575f52['_suggestionFactory']['registerCustomCallback'](_0x15503d,'tablePaste',_0x3d3fd3,(_0x36c68b,_0x14cca5,_0xe93cfa)=>{_0x506515['model']['change'](_0x401e15=>{const _0xd89cda=[];for(const _0x3e65f0 of _0x36c68b){const _0x14a0d4=_0x3e65f0['start']['nodeAfter'];_0x14a0d4['is']('element','tableCellSuggestion')&&_0xd89cda['push'](_0x14a0d4);}_0x575f52['_suggestionFactory']['getSuggestionCallback'](_0x15503d,null,_0x3d3fd3)(_0x36c68b,_0x14cca5,_0xe93cfa);for(const _0x50f24c of _0xd89cda)'$graveyard'!=_0x50f24c['root']['rootName']&&_0x401e15['unwrap'](_0x50f24c);});});};_0x19df71('insertion','accept'),_0x19df71('insertion','discard'),_0x19df71('deletion','accept'),_0x19df71('deletion','discard'),_0x575f52['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4a43f6=>{const _0x2394fb=_0x4a43f6['map'](_0x164c10=>_0x164c10['getContainedElement']()),_0x12047d=_0x2394fb[0x0]['findAncestor']('table'),{minRow:_0x519e57,maxRow:_0xe86a17}=_0x434c3a['_getCoordsForCells'](_0x2394fb);_0x1f0108['removeRows'](_0x12047d,{'at':_0x519e57,'rows':_0xe86a17-_0x519e57+0x1});}),_0x575f52['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x27b8c6=>{const _0x212c08=_0x27b8c6['map'](_0x304903=>_0x304903['getContainedElement']()),_0x72add4=_0x212c08[0x0]['findAncestor']('table'),{minColumn:_0x1d676,maxColumn:_0x5091c2}=_0x434c3a['_getCoordsForCells'](_0x212c08);_0x1f0108['removeColumns'](_0x72add4,{'at':_0x1d676,'columns':_0x5091c2-_0x1d676+0x1});});const _0x313905=(_0x408664,_0x41bf5d)=>{if(!_0x41bf5d['subType']||!_0x41bf5d['subType']['startsWith']('tablePaste'))return;const _0x10cf41=_0x41bf5d['attributes']['tablePasteChainId'],_0x2e221b=_0x575f52['getSuggestions']()['filter'](_0x283c3e=>_0x283c3e['isInContent']&&_0x283c3e['attributes']&&_0x283c3e['attributes']['tablePasteChainId']==_0x10cf41);_0x2e221b['length']&&_0x41bf5d['getAllAdjacentSuggestions']()['length']!=_0x2e221b['length']&&_0x2e221b['reduce']((_0x4df7e3,_0x4be4b3)=>(_0x4df7e3['next']=_0x4be4b3,_0x4be4b3['previous']=_0x4df7e3,_0x4be4b3));};function _0x39a54c(_0x413a54,_0x4f13d3=!0x0){const {id:_0x40c18b,authorId:_0x43d6c6}=_0x575f52['_splitMarkerName'](_0x413a54['markerName']),_0x112ee4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4b4227=_0x575f52['activeMarkers']['includes'](_0x413a54['markerName']);return _0x4b4227&&_0x112ee4['push']('ck-suggestion-marker--active'),{'classes':_0x112ee4,'attributes':{'data-suggestion':_0x40c18b,'data-author-id':_0x43d6c6},'priority':_0x4b4227&&_0x4f13d3?0xbc2:0xbb8};}_0x575f52['on']('suggestionLoaded',_0x313905,{'priority':'high'}),_0x575f52['on']('suggestionUnloaded',_0x313905,{'priority':'high'}),_0x506515['model']['document']['registerPostFixer'](()=>{let _0x19d17c=!0x1;const _0x5dace5=Array['from'](_0x506515['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4da6ef,data:_0x8324ed}of _0x5dace5){const {group:_0x110958,type:_0x29356d,id:_0x21e68b}=_0x575f52['_splitMarkerName'](_0x4da6ef);if('suggestion'!=_0x110958||'deletion'!=_0x29356d||_0x8324ed['oldRange'])continue;if(!_0x575f52['hasSuggestion'](_0x21e68b))continue;const _0x632070=_0x575f52['getSuggestion'](_0x21e68b)['getRanges'](),_0x5567c6=_0x506515['plugins']['get']('Users')['me'];for(const _0x39d040 of _0x575f52['getSuggestions']()){if(!_0x39d040['isInContent']||_0x39d040['author']!=_0x5567c6)continue;if('formatBlock'!=_0x39d040['type']||'tablePasteCell'!=_0x39d040['subType'])continue;if(_0x39d040['getRanges']()['every'](_0x30ad99=>_0x632070['some'](_0x486b56=>_0x486b56['containsRange'](_0x30ad99,!0x0)))){for(const _0x58da17 of _0x39d040['getAllAdjacentSuggestions']())_0x58da17['isInContent']&&(_0x58da17['discard'](),_0x19d17c=!0x0);}}}return _0x19d17c;}),_0x506515['model']['document']['registerPostFixer'](_0xd266ac=>{const _0x3bb3e1=_0x506515['commands']['get']('redo');if(!_0x3bb3e1||!_0x3bb3e1['_createdBatches']['has'](_0xd266ac['batch']))return!0x1;let _0x3e685b=!0x1;const _0x493784=_0x506515['plugins']['get']('Users')['me'],_0x12e1cd=_0x506515['model']['document']['differ']['getChanges'](),_0x58da69=Array['from'](_0x506515['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xb57bab,data:_0x863d40})=>{const {group:_0x37bffb,subType:_0x8026ac,authorId:_0x4daf06}=_0x575f52['_splitMarkerName'](_0xb57bab);return'suggestion'==_0x37bffb&&'tablePaste'==_0x8026ac&&_0x4daf06==_0x493784['id']&&!_0x863d40['oldRange'];});for(const _0x4fd5ff of _0x12e1cd){if('insert'!=_0x4fd5ff['type']||'tableCellSuggestion'!=_0x4fd5ff['name']||0x1!=_0x4fd5ff['length'])continue;const _0xa2622b=_0xd266ac['createRange'](_0x4fd5ff['position'],_0x4fd5ff['position']['getShiftedBy'](0x1));if(!_0x58da69['find'](({data:_0x542204})=>_0x542204['newRange']['isEqual'](_0xa2622b))){for(const {name:_0x5490bb,data:_0xf893e0}of _0x58da69)if(_0xa2622b['containsRange'](_0xf893e0['newRange'])){_0xd266ac['updateMarker'](_0x5490bb,{'range':_0xa2622b}),_0x3e685b=!0x0;break;}}}return _0x3e685b;}),_0x506515['model']['document']['registerPostFixer'](_0x3ce6bc=>{let _0x21bba1=!0x1;const _0x1549b5=_0x506515['plugins']['get']('Users')['me'],_0x24bae8=_0x575f52['getSuggestions']()['filter'](_0x234afc=>_0x234afc['isInContent']&&_0x234afc['author']==_0x1549b5),_0x5d88b6=new Set(),_0x27ca10=new Set();for(const _0x4cfc7b of _0x24bae8)if('tablePaste'==_0x4cfc7b['subType'])for(const _0x32adae of _0x4cfc7b['getMarkers']()){const _0x11d756=_0x32adae['getRange']()['getContainedElement']();if(_0x11d756){if(_0x11d756['is']('element','tableCellSuggestion')&&Oe(_0x11d756)){_0x4cfc7b['removeMarker'](_0x32adae['name']),_0x5d88b6['add'](_0x11d756),_0x21bba1=!0x0;const _0x230827=_0x11d756['nextSibling'],_0x4331fd=_0x11d756['previousSibling'],_0x4ec0c9=_0x230827&&_0x230827['is']('element','tableCellSuggestion'),_0x245c13=_0x4331fd&&_0x4331fd['is']('element','tableCellSuggestion');_0x4ec0c9&&!_0x5d88b6['has'](_0x230827)&&_0x27ca10['add'](_0x230827),_0x245c13&&!_0x5d88b6['has'](_0x4331fd)&&_0x27ca10['add'](_0x4331fd);}else _0x11d756['is']('element','paragraph')&&_0x11d756['isEmpty']&&(_0x4cfc7b['removeMarker'](_0x32adae['name']),_0x21bba1=!0x0);}}else{if('tablePasteCell'==_0x4cfc7b['subType']){if(!_0x4cfc7b['attributes']||!_0x4cfc7b['attributes']['tablePasteChainId'])continue;const _0x573d10=_0x4cfc7b['attributes']['markerAttributes'];if(_0x573d10&&Object['keys'](_0x573d10)['length'])continue;const _0x56d683=_0x4cfc7b['attributes']['tablePasteChainId'];let _0x19f7d0=!0x0,_0xbc291b=!0x0;for(const _0xe10921 of _0x24bae8)if(_0xe10921['subType']&&_0xe10921['subType']['startsWith']('tablePaste')){if(!_0xe10921['attributes']['tablePasteChainId']){_0xbc291b=!0x1;break;}if(_0xe10921['id']!=_0x4cfc7b['id']&&_0xe10921['attributes']['tablePasteChainId']==_0x56d683){_0x19f7d0=!0x1;break;}}_0xbc291b&&_0x19f7d0&&(_0x4cfc7b['removeMarkers'](),_0x21bba1=!0x0);}}for(const _0x286fa5 of _0x5d88b6)_0x3ce6bc['remove'](_0x286fa5);for(const _0x4b3782 of _0x27ca10)_0x3ce6bc['unwrap'](_0x4b3782);return _0x21bba1;}),_0x506515['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xcafb45=>_0x39a54c(_0xcafb45),'converterPriority':'high'}),_0x506515['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1438f3,_0x31f9f4)=>_0x31f9f4['options']['showSuggestionHighlights']?_0x39a54c(_0x1438f3,!0x1):null,'converterPriority':'high'});const _0x1a0ecc=_0x506515['editing']['view'];this['listenTo'](_0x1a0ecc['document'],'clipboardOutput',(_0x5020a4,_0x474c02)=>{const _0x372d0e=[];for(const _0xb2747e of _0x1a0ecc['createRangeIn'](_0x474c02['content'])['getItems']())_0xb2747e['is']('element','suggestion-td')&&_0x372d0e['push'](_0xb2747e);_0x1a0ecc['change'](_0x42cd8f=>{for(const _0x13bedb of _0x372d0e)_0x42cd8f['move'](_0x42cd8f['createRangeIn'](_0x13bedb),_0x42cd8f['createPositionBefore'](_0x13bedb)),_0x42cd8f['remove'](_0x13bedb);});});}}function Oe(_0x1b3554){if(_0x1b3554['isEmpty'])return!0x0;const _0x422180=_0x1b3554['getChild'](0x0);return _0x422180['is']('element','paragraph')&&_0x422180['isEmpty'];}function Ue(_0x208692,_0x1e5158={},_0x28e60b){for(const {isAnchor:_0x1d29a8,cellHeight:_0x607e37,cellWidth:_0x4fbc61}of _0x28e60b['createTableWalker'](_0x208692,{'includeAllSlots':!0x0,..._0x1e5158}))if(!_0x1d29a8||0x1!=_0x607e37||0x1!=_0x4fbc61)return!0x1;return!0x0;}class $t extends _0x252f3f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2b7978=this['editor']['plugins']['get']('TrackChangesEditing');_0x2b7978['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2b7978['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2b7978['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b7978['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2b7978['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2b7978['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x8c6f69,_0x56d1ef){const _0x2b473b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c055a=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1eaa67=_0x56d1ef['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5c78c7=_0x2c055a['getColumnGroupElement'](_0x1eaa67);let _0x581e2c=_0x5c78c7?_0x2c055a['getTableColumnsWidths'](_0x5c78c7):null,_0x111729=_0x1eaa67['getAttribute']('tableWidth')||null;const _0x40c8c0=_0x56d1ef['tableWidth']||_0x111729,_0x59e2aa=_0x56d1ef['columnWidths']||_0x581e2c,_0x2bf595=this['editor']['plugins']['get']('Users')['me'];for(const _0x97dccb of _0x2b473b['getSuggestions']()){const _0x2f5a1e=_0x97dccb['getContainedElement']();if('resizeTable'===_0x97dccb['subType']&&_0x2f5a1e===_0x1eaa67){_0x97dccb['author']!==_0x2bf595&&_0x97dccb['discard']();const _0x114f97=_0x97dccb['data']['commandParams'];_0x111729=_0x114f97[0x0]['tableWidth'],_0x581e2c=_0x114f97[0x0]['columnWidths'];break;}}_0x8c6f69({'table':_0x1eaa67,'tableWidth':_0x40c8c0,'columnWidths':_0x59e2aa}),_0x2b473b['markBlockFormat'](_0x1eaa67,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x111729,'columnWidths':_0x581e2c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3599c6){if('formatBlock'!=_0x3599c6['type']&&'formatInline'!=_0x3599c6['type'])return;const {data:_0x356022}=_0x3599c6;if(_0x356022&&'resizeTable'===_0x356022['formatGroupId']){const _0x2acaf1='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2acaf1)};}}}class Bt extends _0x252f3f{['afterInit'](){const _0x1bb85c=this['editor'];_0x1bb85c['plugins']['has']('Template')&&_0x1bb85c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x252f3f{['afterInit'](){const _0x36417a=this['editor'];if(!_0x36417a['commands']['get']('insertTableOfContents'))return;_0x36417a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x153284=_0x36417a['plugins']['get']('TrackChangesEditing'),_0x52d73c=_0x36417a['locale'];_0x153284['descriptionFactory']['registerElementLabel']('tableOfContents',_0xb111f=>o(_0x52d73c,'ELEMENT_TABLE_OF_CONTENTS',_0xb111f));}}class Rt extends _0x252f3f{['afterInit'](){const _0x10f34a=this['editor'];if(!_0x10f34a['plugins']['has']('Title'))return;const _0x2b0fea=_0x10f34a['plugins']['get']('TrackChangesEditing');_0x2b0fea['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x10f34a['locale'],'ELEMENT_TITLE')),_0x10f34a['model']['document']['registerPostFixer'](_0xc3deca=>{let _0x29bd53=!0x1;const _0x1d6b5c=Array['from'](_0x10f34a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x515a0f,data:_0x33b356}of _0x1d6b5c){const {group:_0x338e6c}=_0x2b0fea['_splitMarkerName'](_0x515a0f);if('suggestion'!==_0x338e6c||!_0x33b356['newRange'])continue;const _0x6fb44f=_0x33b356['newRange'],_0x3b08f2=_0x6fb44f['end']['nodeBefore'];if(!_0x3b08f2||!_0x3b08f2['is']('element','title-content'))continue;if(!_0x6fb44f['start']['isTouching'](_0x6fb44f['end']))continue;const _0x54e411=_0x10f34a['model']['schema']['getNearestSelectionRange'](_0x6fb44f['end'],'forward');if(_0x54e411&&_0x54e411['isCollapsed']){const _0x41f231=_0xc3deca['createRange'](_0x6fb44f['start'],_0x54e411['start']);_0x41f231['isEqual'](_0x6fb44f)||(_0xc3deca['updateMarker'](_0x515a0f,{'range':_0x41f231}),_0x29bd53=!0x0);}_0x29bd53||(_0xc3deca['removeMarker'](_0x515a0f),_0x29bd53=!0x0);}return _0x29bd53;});}}class Tt extends _0x252f3f{['afterInit'](){const _0x3f3022=this['editor'],_0xaf47f3=_0x3f3022['plugins']['get']('TrackChangesEditing');_0x3f3022['plugins']['has']('Uploadcare')&&(_0xaf47f3['enableCommand']('uploadcare'),_0x3f3022['plugins']['has']('UploadcareImageEdit')&&(_0xaf47f3['enableCommand']('uploadcareImageEdit'),_0xaf47f3['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xaf47f3['registerBlockAttribute']('uploadcareImageId'),_0xaf47f3['descriptionFactory']['registerDescriptionCallback'](_0x2d4726=>{if('attribute'!=_0x2d4726['type'])return;const {data:_0x2ac730}=_0x2d4726;return _0x2ac730&&'uploadcareImageId'==_0x2ac730['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x252f3f{['afterInit'](){const _0x52aaf6=this['editor'],_0x36465b=_0x52aaf6['plugins']['get']('TrackChangesEditing');_0x52aaf6['plugins']['has']('UndoEditing')&&(_0x36465b['enableCommand']('undo'),_0x36465b['enableCommand']('redo'));}}class Et extends _0x252f3f{static get['requires'](){return[Ct];}['afterInit'](){const _0x4d8e27=this['editor'];if(!_0x4d8e27['plugins']['has']('TableCaptionEditing'))return;_0x4d8e27['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x252f3f{['tableProperties'];['tableCellProperties'];constructor(_0x14c19){super(_0x14c19),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 _0x38c647=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1a7ab4 of this['tableProperties'])_0x38c647['enableCommand'](_0x1a7ab4,(_0x1c3955,_0xa34828)=>{const _0x52a744=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1a7ab4,[_0x52a744],this['tableProperties'],'tableProperties',_0x1c3955,_0xa34828);});_0x38c647['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x38c647['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38c647['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x313899,_0x523b5e)=>this['handleDiscardAction'](this['tableProperties'],_0x313899,_0x523b5e)),_0x38c647['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x566e09 of this['tableCellProperties'])_0x38c647['enableCommand'](_0x566e09,(_0x51d06e,_0x178d64)=>{const _0x7befce=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x566e09,_0x7befce,this['tableCellProperties'],'tableCellProperties',_0x51d06e,_0x178d64);});_0x38c647['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x38c647['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38c647['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1416ef,_0x4c6fec)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1416ef,_0x4c6fec)),_0x38c647['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x38c647['descriptionFactory']['registerDescriptionCallback'](_0x4287d0=>this['handleSuggestionDescription'](_0x4287d0));}['_handlePropertyChange'](_0x28dd00,_0x4bf818,_0x31c055,_0x4c60f7,_0x20bd90,_0x44c8ac){const _0xefb49f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x44c8ac['batch'],()=>{for(const _0x6c7331 of _0x4bf818){if(this['_getSuggestion'](_0x6c7331,_0x4c60f7))_0x20bd90(_0x44c8ac);else{const _0x4f7a2d={};for(const _0x14a1c9 of _0x31c055){const _0x429c2f=_0x6c7331['getAttribute'](_0x14a1c9);void 0x0!==_0x429c2f&&(_0x4f7a2d[_0x14a1c9]=_0x429c2f);}_0x20bd90(_0x44c8ac),_0xefb49f['markBlockFormat'](_0x6c7331,{'commandParams':[_0x4f7a2d]},[],_0x4c60f7);}}});}['handleDiscardAction'](_0x129d50,_0x1e5454,_0xac7bd8){const _0x7aeb06=_0x1e5454[0x0]['start']['nodeAfter'],_0x51c8c1=_0xac7bd8['commandParams'][0x0];this['editor']['model']['change'](_0x1c01cd=>{for(const _0x31db24 of _0x129d50)void 0x0!==_0x51c8c1[_0x31db24]?_0x1c01cd['setAttribute'](_0x31db24,_0x51c8c1[_0x31db24],_0x7aeb06):_0x1c01cd['removeAttribute'](_0x31db24,_0x7aeb06);});}['handleSuggestionDescription'](_0x29fc91){if(_0x29fc91['data'])switch(_0x29fc91['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'](_0xff3ff6,_0x4111d3){const _0x1c1acf=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x45e1f8 of _0x1c1acf['getSuggestions']({'skipNotAttached':!0x0})){const _0x4c9947=_0x45e1f8['getContainedElement']();if(_0x45e1f8['subType']===_0x4111d3&&_0x4c9947===_0xff3ff6)return _0x45e1f8;}return null;}}const m='$elementName';class p extends _0x252f3f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x344705,_0xfacd0f,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52f290){super(_0x52f290),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x31124f,_0x4de958,_0x1bb7ac,_0x265b43)=>{this['_model']['change'](()=>{for(const _0x55d6ec of[..._0x265b43,..._0x1bb7ac])this['_model']['markers']['has'](_0x55d6ec)&&_0x52f290['editing']['reconvertMarker'](_0x55d6ec);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x52f290['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(),_0x52f290['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x52f290['config']['get']('trackChanges.trackFormatChanges'),_0x52f290['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x52f290['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x52f290,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3a618c=this['editor'],_0x4f7cba=(_0x58639b,_0x4b7537)=>{if('attribute'!=_0x58639b)return'ck-suggestion-marker-'+_0x58639b;const _0x5c827c=_0x4b7537['split']('|')[0x0];return this['_isBlockAttribute'](_0x5c827c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3a618c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3acf6e=>{const {id:_0x2c6213,authorId:_0x433ba5,type:_0x1ba66f,subType:_0xff5324}=this['_splitMarkerName'](_0x3acf6e['markerName']),_0x3abc3a=['ck-suggestion-marker',_0x4f7cba(_0x1ba66f,_0xff5324)];let _0x15346c=0xbb8;return this['activeMarkers']['includes'](_0x3acf6e['markerName'])&&(_0x3abc3a['push']('ck-suggestion-marker--active'),_0x15346c=0xbc2),'deletion'==_0x1ba66f&&(_0x15346c+=0x5),{'classes':_0x3abc3a,'attributes':{'data-suggestion':_0x2c6213,'data-author-id':_0x433ba5},'priority':_0x15346c};}}),_0x3a618c['conversion']['for']('dataDowncast')['add'](_0xe89608=>{_0xe89608['on']('addMarker:suggestion',(_0x1a4118,_0x9b2f68,_0x3037b5)=>{if(!_0x3037b5['options']['showSuggestionHighlights'])return;const _0x1767ee=_0x9b2f68['item'];if(!_0x1767ee)return;const _0x42ad05=_0x3037b5['mapper']['toViewElement'](_0x1767ee);_0x3a618c['model']['schema']['isObject'](_0x1767ee)&&_0x42ad05&&!_0x42ad05['getCustomProperty']('widget')&&_0x42ad05['is']('containerElement')&&_0x1298fd(_0x42ad05,_0x3037b5['writer']);},{'priority':'high'});}),_0x3a618c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2e500f,_0x1bfcc8)=>{if(!_0x1bfcc8['options']['showSuggestionHighlights'])return null;const {type:_0xf41805,subType:_0x2ed3b6}=this['_splitMarkerName'](_0x2e500f['markerName']);return{'classes':['ck-suggestion-marker',_0x4f7cba(_0xf41805,_0x2ed3b6)],'priority':0xbb8};}});const _0x3e56cb=({showActiveMarkers:_0x5b8663=!0x0,isAttributeSuggestion:_0x643aaa=!0x1}={})=>(_0x166fe3,_0x273d63,_0x3567d4)=>{if(!_0x273d63['item'])return;const {id:_0x19ef05,authorId:_0x2e077b}=this['_splitMarkerName'](_0x273d63['markerName']);if(_0x643aaa){const _0x139546=this['_suggestions']['get'](_0x19ef05),_0x4d5970=this['_getAttributeKey'](_0x139546);if(!this['_isBlockAttribute'](_0x4d5970))return;}if(_0x273d63['item']['is']('selection'))return void _0x3567d4['consumable']['consume'](_0x273d63['item'],_0x166fe3['name']);const _0x5a5d0c=_0x3567d4['mapper']['toViewElement'](_0x273d63['item']);if(_0x273d63['item']['is']('element')&&_0x3a618c['model']['schema']['isBlock'](_0x273d63['item'])&&!_0x5a5d0c['getCustomProperty']('addHighlight')){_0x3567d4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5a5d0c),_0x3567d4['writer']['setAttribute']('data-suggestion',_0x19ef05,_0x5a5d0c),_0x3567d4['writer']['setAttribute']('data-author-id',_0x2e077b,_0x5a5d0c),_0x3567d4['mapper']['bindElementToMarker'](_0x5a5d0c,_0x273d63['markerName']),_0x5b8663&&(this['activeMarkers']['includes'](_0x273d63['markerName'])?_0x3567d4['writer']['addClass']('ck-suggestion-marker--active',_0x5a5d0c):_0x3567d4['writer']['removeClass']('ck-suggestion-marker--active',_0x5a5d0c));for(const _0x4bc4ff of _0x3a618c['model']['createRangeIn'](_0x273d63['item'])['getItems']())_0x3567d4['consumable']['consume'](_0x4bc4ff,_0x166fe3['name']);_0x3567d4['consumable']['consume'](_0x273d63['item'],_0x166fe3['name']);}};_0x3a618c['conversion']['for']('dataDowncast')['add'](_0x83bafe=>{_0x83bafe['on']('addMarker:suggestion:formatBlock',(_0x5dcef5,_0x591bb9,_0x34cb53)=>{_0x34cb53['options']['showSuggestionHighlights']&&_0x3e56cb({'showActiveMarkers':!0x1})(_0x5dcef5,_0x591bb9,_0x34cb53);},{'priority':'highest'});}),_0x3a618c['conversion']['for']('dataDowncast')['add'](_0x11d782=>{_0x11d782['on']('addMarker:suggestion:attribute',(_0x3d9c77,_0x4af95a,_0x5b059d)=>{_0x5b059d['options']['showSuggestionHighlights']&&_0x3e56cb({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3d9c77,_0x4af95a,_0x5b059d);},{'priority':'highest'});}),_0x3a618c['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3cba2e,_0x2327f7)=>_0x2327f7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3cba2e['substr'](0xb)}}),_0x3a618c['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1ba4e9,{writer:_0x37c794})=>{let _0x2bd095='suggestion:'+_0x1ba4e9['getAttribute']('suggestion-type')+':'+_0x1ba4e9['getAttribute']('id');return _0x1ba4e9['getAttribute']('marker-count')&&(_0x2bd095+=':'+_0x1ba4e9['getAttribute']('marker-count')),_0x37c794['createElement']('$marker',{'data-name':_0x2bd095});}}),_0x3a618c['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3a618c['conversion']['for']('editingDowncast')['add'](_0x421ea8=>{_0x421ea8['on']('addMarker:suggestion:formatBlock',_0x3e56cb(),{'priority':'high'});}),_0x3a618c['conversion']['for']('editingDowncast')['add'](_0x5cf4f2=>{_0x5cf4f2['on']('addMarker:suggestion:attribute',_0x3e56cb({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3a618c['conversion']['for']('editingDowncast')['add'](_0x36d533=>{_0x36d533['on']('removeMarker:suggestion:formatBlock',(_0x8b9ce2,_0x224252,_0x4e5bc9)=>{const _0x2e719a=_0x4e5bc9['mapper']['markerNameToElements'](_0x224252['markerName']);if(_0x2e719a){for(const _0x319cc2 of _0x2e719a)_0x319cc2['getCustomProperty']('addHighlight')||(_0x4e5bc9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x319cc2),_0x4e5bc9['writer']['removeAttribute']('data-suggestion',_0x319cc2),_0x4e5bc9['writer']['removeAttribute']('data-author-id',_0x319cc2),_0x4e5bc9['mapper']['unbindElementFromMarkerName'](_0x319cc2,_0x224252['markerName']));}},{'priority':'high'});}),_0x3a618c['conversion']['for']('editingDowncast')['add'](_0x2d9560=>{_0x2d9560['on']('removeMarker:suggestion:attribute',(_0x87d0c6,_0x22b866,_0x1e4b29)=>{const _0x2280fe=_0x1e4b29['mapper']['markerNameToElements'](_0x22b866['markerName']);if(!_0x2280fe)return;const {id:_0x3df32a}=this['_splitMarkerName'](_0x22b866['markerName']),_0x4d09fe=this['_suggestions']['get'](_0x3df32a),_0x42846f=this['_getAttributeKey'](_0x4d09fe);if(this['_isBlockAttribute'](_0x42846f)){for(const _0x3989b2 of _0x2280fe)_0x3989b2['getCustomProperty']('addHighlight')||(_0x1e4b29['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3989b2),_0x1e4b29['writer']['removeAttribute']('data-suggestion',_0x3989b2),_0x1e4b29['writer']['removeAttribute']('data-author-id',_0x3989b2),_0x1e4b29['mapper']['unbindElementFromMarkerName'](_0x3989b2,_0x22b866['markerName']));}},{'priority':'high'});}),_0x3a618c['model']['document']['registerPostFixer'](_0x2f9f90=>{let _0x37796c=!0x1;const _0x13f76d=Array['from'](_0x3a618c['model']['document']['differ']['getChangedMarkers']()),_0x1d0a9b=new Set();for(const {name:_0x3a46bf,data:_0x34270f}of _0x13f76d){const {group:_0x420f2a,type:_0x1d0921,subType:_0x2281ac,id:_0x566a85}=this['_splitMarkerName'](_0x3a46bf);if('suggestion'!==_0x420f2a)continue;const _0x795939=this['_suggestions']['get'](_0x566a85);if(null!=_0x34270f['newRange']){'formatInline'==_0x1d0921&&(_0x37796c=_0x37796c||Lt(_0x34270f['newRange'],_0x3a46bf,_0x2f9f90,_0x3a618c['model']['schema']));const _0x1076b7='attribute'==_0x1d0921&&this['_isBlockAttribute'](_0x2281ac['split']('|')[0x0]);if(_0x34270f['newRange']['isCollapsed']||'$graveyard'==_0x34270f['newRange']['root']['rootName']||'formatBlock'==_0x1d0921&&!Ht(_0x34270f['newRange'])||_0x1076b7&&!Ht(_0x34270f['newRange'])||'deletion'==_0x1d0921&&!(!Ft(_0x10f68f=_0x34270f['newRange'])&&!function(_0x4cdf21){return _0x4cdf21['start']['parent']==_0x4cdf21['end']['nodeBefore']&&_0x4cdf21['start']['isAtEnd'];}(_0x10f68f)))_0x2f9f90['removeMarker'](_0x3a46bf),_0x37796c=!0x0;else{if(!_0x795939||!_0x795939['isInContent'])continue;if(_0x34270f['newRange']&&_0x34270f['oldRange']&&_0x34270f['newRange']['isEqual'](_0x34270f['oldRange']))continue;_0x1d0a9b['add'](_0x795939);}}}var _0x10f68f;return _0x1d0a9b['size']>0x0&&(_0x37796c=!!this['_joinWithAdjacentSuggestions'](_0x1d0a9b)||_0x37796c),_0x37796c;}),_0x3a618c['model']['document']['registerPostFixer'](_0x482bb6=>{let _0x11f136=!0x1;for(const _0x8c6dc9 of _0x3a618c['model']['document']['differ']['getChanges']())if('insert'==_0x8c6dc9['type'])for(const _0x467e8f of this['_suggestions']['values']()){if(_0x467e8f['isMultiRange']||!_0x467e8f['isInContent'])continue;const _0x1e4f13='formatBlock'==_0x467e8f['type'],_0x15bb8b=this['_getAttributeKey'](_0x467e8f),_0x349d1b=_0x15bb8b&&this['_isBlockAttribute'](_0x15bb8b);if(!_0x1e4f13&&!_0x349d1b)continue;const _0x42ef2c=_0x467e8f['getFirstRange']();if(_0x42ef2c['start']['parent']!=_0x42ef2c['end']['parent']&&!_0x42ef2c['end']['isAtEnd']){const _0x2e5304=_0x3a618c['model']['createPositionAt'](_0x42ef2c['start']['nodeAfter'],'end'),_0x494da8=_0x3a618c['model']['createRange'](_0x42ef2c['start'],_0x2e5304);_0x482bb6['updateMarker'](_0x467e8f['getFirstMarker'](),{'range':_0x494da8}),_0x11f136=!0x0;}}return _0x11f136;}),_0x3a618c['model']['document']['registerPostFixer'](_0x40727b=>this['_processAttributeChanges'](_0x40727b)),_0x3a618c['model']['document']['registerPostFixer'](_0x55124f=>!_0x55124f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x55124f)),_0x3a618c['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3a618c['model']['document']['on']('change:data',(_0x65ea66,_0x10d37b)=>{if(!_0x10d37b['isLocal']||_0x10d37b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x322407=_0x3a618c['model']['document']['differ']['getChanges']();if(0x0==_0x322407['length'])return;const _0xf426ce=[],_0x95b15f=_0x322407['filter'](_0x4cc62a=>'attribute'==_0x4cc62a['type']),_0x321d29=_0x322407['filter'](_0x54ede0=>'insert'==_0x54ede0['type']&&'$text'!=_0x54ede0['name']);for(const _0x4671a7 of _0x95b15f)this['_isRegisteredAttribute'](_0x4671a7['attributeKey'])&&_0xf426ce['push']({'key':_0x4671a7['attributeKey'],'newValue':_0x4671a7['attributeNewValue'],'oldValue':_0x4671a7['attributeOldValue'],'range':qt(_0x4671a7['range'],_0x3a618c['model'])});for(const _0x29333d of _0x321d29){if('rename'!=_0x29333d['action']&&'refresh'!=_0x29333d['action'])continue;const _0x17b3b8=zt(_0x29333d['position']['nodeAfter'],_0x3a618c['model']),_0x232d71=_0x29333d['before'];'rename'==_0x29333d['action']&&_0xf426ce['push']({'key':m,'newValue':_0x29333d['name'],'oldValue':_0x232d71['name'],'range':_0x17b3b8});for(const [_0x1a8465,_0x557698]of _0x232d71['attributes']){if(!this['_isRegisteredAttribute'](_0x1a8465))continue;const _0x4907d6=_0x29333d['attributes']['get'](_0x1a8465);_0x557698!==_0x4907d6&&_0xf426ce['push']({'key':_0x1a8465,'newValue':_0x4907d6,'oldValue':_0x557698,'range':_0x17b3b8});}for(const [_0x5e9599,_0x2a59b9]of _0x29333d['attributes'])this['_isRegisteredAttribute'](_0x5e9599)&&(_0x232d71['attributes']['has'](_0x5e9599)||_0xf426ce['push']({'key':_0x5e9599,'newValue':_0x2a59b9,'oldValue':null,'range':_0x17b3b8}));}0x0!=_0xf426ce['length']&&_0x3a618c['model']['enqueueChange'](_0x10d37b,_0x440e87=>{const _0x4383ac=_0x359303();for(const {range:_0x4b8d76,key:_0x658c14,oldValue:_0x4db4b5,newValue:_0x1a6b94}of _0xf426ce)this['markAttributeChange'](_0x4b8d76,_0x658c14,_0x4db4b5,_0x1a6b94,{'groupId':_0x4383ac});this['_reduceExistingSuggestions'](_0x440e87,_0xf426ce);});},{'priority':'lowest'}),_0x3a618c['model']['markers']['on']('update:suggestion',(_0x5abdca,_0x4cabf9,_0x120ffe)=>{if(null==_0x120ffe){const {id:_0x14b95d}=this['_splitMarkerName'](_0x4cabf9['name']),_0x1867da=this['_suggestions']['get'](_0x14b95d);_0x1867da&&_0x1867da['addMarkerName'](_0x4cabf9['name']);}}),_0x3a618c['model']['document']['on']('change:data',()=>{const _0x3190fd=Array['from'](_0x3a618c['model']['document']['differ']['getChangedMarkers']())['filter'](_0x19e67a=>'suggestion'===this['_splitMarkerName'](_0x19e67a['name'])['group']);if(0x0===_0x3190fd['length'])return;_0x3190fd['sort']((_0x1cef7c,_0x1b1113)=>{const _0x5c7d36=_0x1cef7c['data']['oldRange'],_0x5802b0=_0x1b1113['data']['oldRange'];return null===_0x5c7d36&&null===_0x5802b0?0x0:null===_0x5c7d36&&null!==_0x5802b0?-0x1:null!==_0x5c7d36&&null===_0x5802b0?0x1:_0x5c7d36['start']['isBefore'](_0x5802b0['start'])?-0x1:0x1;});const _0x57763e=new Set(),_0x2b8491=new Set();for(const {name:_0x9189b1,data:_0x5e862d}of _0x3190fd){const {id:_0x21bb9a}=this['_splitMarkerName'](_0x9189b1);if(null===_0x5e862d['oldRange']){const _0xad4b96=this['_handleNewSuggestionMarker'](_0x9189b1);_0x2b8491['add'](_0xad4b96);}else{const _0x513927=this['_suggestions']['get'](_0x21bb9a);null!==_0x5e862d['newRange']||_0x513927['isInContent']?(_0x57763e['add'](_0x513927['head']),_0x2b8491['add'](_0x513927)):this['_removeSuggestion'](_0x513927);}}_0x2b8491['size']>0x0&&this['_refreshSuggestionsChain'](_0x2b8491);for(const _0x14ad9c of _0x57763e)this['fire']('suggestionChanged',_0x14ad9c);}),_0x3a618c['model']['on']('applyOperation',(_0x4102b5,_0x4c6039)=>{const _0x250368=_0x4c6039[0x0];if(!this['_suggestions']['size'])return;if(!_0x250368['isDocumentOperation'])return;if(_0x250368['batch']['isUndo']||!_0x250368['batch']['isLocal'])return;let _0x5045f6,_0x1e464b;switch(_0x250368['type']){case'insert':_0x5045f6=_0x3a618c['model']['createPositionAt'](_0x250368['position']),_0x1e464b=_0x5045f6['getShiftedBy'](_0x250368['howMany']);break;case'split':_0x5045f6=_0x3a618c['model']['createPositionAt'](_0x250368['splitPosition']),_0x1e464b=_0x3a618c['model']['createPositionAt'](_0x250368['moveTargetPosition']);break;case'move':_0x5045f6=_0x3a618c['model']['createPositionAt'](_0x250368['targetPosition']),_0x1e464b=_0x5045f6['getShiftedBy'](_0x250368['howMany']);break;default:return;}const _0x18dcaf=_0x3a618c['model']['createRange'](_0x5045f6,_0x1e464b);_0x3a618c['model']['change'](()=>{for(const {suggestion:_0x288441,meta:_0x164127}of this['_findSuggestions'](_0x18dcaf)){if(_0x288441['isMultiRange'])continue;if('formatInline'==_0x288441['type'])continue;const _0x457e14=this['_getAttributeKey'](_0x288441);if(_0x457e14&&this['_isBlockAttribute'](_0x457e14)&&'split'!=_0x250368['type'])continue;const _0x2ab14b=_0x288441['data']&&_0x288441['data']['multipleBlocks'];('formatBlock'!=_0x288441['type']||'split'==_0x250368['type']&&!_0x2ab14b)&&(_0x164127['containsRangeInObject']||'insertion'==_0x288441['type']&&_0x164127['isOwn']||_0x288441['getFirstRange']()['containsRange'](_0x18dcaf)&&this['_breakSuggestionMarker'](_0x288441,_0x5045f6,_0x1e464b));}});},{'priority':'lowest'}),_0x3a618c['model']['on']('deleteContent',(_0x43ca32,_0x3318bf)=>{const _0x3d9ba9=_0x3318bf[0x0],_0x7d5beb=_0x3318bf[0x1];if(_0x7d5beb&&_0x7d5beb['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3d9ba9['isCollapsed'])return;const _0x5359fe=_0x3a618c['model']['schema'],{start:_0x5184e9,end:_0x13bf41}=_0x3d9ba9['getFirstRange'](),_0x1a81d8=_0x5184e9['nodeAfter']&&_0x5359fe['isLimit'](_0x5184e9['nodeAfter'])?null:_0x5359fe['getNearestSelectionRange'](_0x5184e9,'forward'),_0x1c19d0=_0x13bf41['nodeBefore']&&_0x5359fe['isLimit'](_0x13bf41['nodeBefore'])?null:_0x5359fe['getNearestSelectionRange'](_0x13bf41,'backward'),_0x40bd73=_0x3a618c['model']['createRange'](_0x1a81d8?_0x1a81d8['start']:_0x5184e9,_0x1c19d0?_0x1c19d0['end']:_0x13bf41);_0x3a618c['model']['change'](_0x25152b=>{this['markDeletion'](_0x40bd73);const _0x58cb49=_0x3a618c['model']['schema']['getNearestSelectionRange'](_0x40bd73['start']);_0x3d9ba9['is']('documentSelection')?_0x25152b['setSelection'](_0x58cb49):_0x3d9ba9['setTo'](_0x58cb49);}),_0x43ca32['stop']();},{'priority':_0x49b899['normal']+0xa}),_0x3a618c['model']['on']('insertContent',(_0x1da6d6,_0x452cd9)=>{const _0x37ce8e=_0x452cd9[_0x452cd9['length']-0x1];_0x37ce8e&&_0x37ce8e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3a618c['model']['change'](()=>{let _0x4d2497=_0x3a618c['model']['insertContent'](_0x452cd9[0x0],_0x452cd9[0x1],_0x452cd9[0x2],{'forceDefaultExecution':!0x0});if(!_0x4d2497)return;_0x1da6d6['return']=_0x4d2497['clone']();const _0x27cb9c=_0x4d2497['end']['nodeBefore'],_0x2f3773=_0x3a618c['model']['schema'];_0x27cb9c&&_0x2f3773['isBlock'](_0x27cb9c)&&!_0x2f3773['isObject'](_0x27cb9c)&&(_0x4d2497=_0x3a618c['model']['createRange'](_0x4d2497['start'],_0x3a618c['model']['createPositionAt'](_0x27cb9c,'end'))),this['markInsertion'](_0x4d2497);}),_0x1da6d6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4de147=new O(_0x3a618c,this['_suggestions']);_0x3a618c['commands']['add']('acceptSuggestion',_0x4de147),this['enableCommand']('acceptSuggestion');const _0x799e5b=new R(_0x3a618c,this['_suggestions']);_0x3a618c['commands']['add']('discardSuggestion',_0x799e5b),this['enableCommand']('discardSuggestion'),_0x3a618c['commands']['add']('acceptAllSuggestions',new x(_0x3a618c,_0x4de147,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3a618c['commands']['add']('discardAllSuggestions',new x(_0x3a618c,_0x799e5b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3a618c['commands']['add']('acceptSelectedSuggestions',new E(_0x3a618c,_0x4de147,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3a618c['commands']['add']('discardSelectedSuggestions',new E(_0x3a618c,_0x799e5b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xdc1f75=_0x3a618c['plugins']['get']('CommentsRepository');this['listenTo'](_0xdc1f75,'addComment',(_0x524431,{threadId:_0x5c056e})=>{const _0x50d454=this['_suggestions']['get'](_0x5c056e);_0x50d454&&_0x50d454['commentThread']&&0x1===_0x50d454['commentThread']['length']&&this['_updateSuggestionData'](_0x5c056e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xdc1f75,'removeComment',(_0x59e4e9,{threadId:_0x53da8a})=>{const _0x3165ea=this['_suggestions']['get'](_0x53da8a);_0x3165ea&&_0x3165ea['commentThread']&&!_0x3165ea['commentThread']['length']&&this['_updateSuggestionData'](_0x53da8a,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x354b90){const _0x52fb8a=_0x22f5a4([0x73,0x55,0x65,0x31,0x47,0x74,0x76,0x4d,0x30,0x36,0x4f,0x46,0x38,0x62,0x33,0x4c,0x79,0x4b,0x49,0x51,0x6e,0x6d,0x6b,0x6a,0x42,0x44,0x43,0x32,0x6f,0x4a,0x69,0x66,0x57,0x70,0x6c,0x75,0x58,0x34,0x63,0x45,0x5a,0x77,0x48,0x56,0x67,0x71,0x50,0x72,0x59,0x52,0x68,0x7a,0x64,0x61,0x53,0x35,0x78,0x4e,0x54,0x39,0x41,0x37]),_0x448744=0x7d414ebc,_0x2b1659=0x7d462ed4^_0x448744,_0x1ea908=window[_0x22f5a4([0x44,0x61,0x74,0x65])][_0x22f5a4([0x6e,0x6f,0x77])](),_0x2b5b5f=_0x354b90[_0x22f5a4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x485a6b=new window[(_0x22f5a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45c45b=>{_0x2b5b5f[_0x22f5a4([0x6f,0x6e,0x63,0x65])](_0x22f5a4([0x72,0x65,0x61,0x64,0x79]),_0x45c45b);}),_0x22d769={[_0x22f5a4([0x6b,0x74,0x79])]:_0x22f5a4([0x45,0x43]),[_0x22f5a4([0x75,0x73,0x65])]:_0x22f5a4([0x73,0x69,0x67]),[_0x22f5a4([0x63,0x72,0x76])]:_0x22f5a4([0x50,0x2d,0x32,0x35,0x36]),[_0x22f5a4([0x78])]:_0x22f5a4([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]),[_0x22f5a4([0x79])]:_0x22f5a4([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]),[_0x22f5a4([0x61,0x6c,0x67])]:_0x22f5a4([0x45,0x53,0x32,0x35,0x36])},_0x59edfc=_0x2b5b5f[_0x22f5a4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x22f5a4([0x67,0x65,0x74])](_0x22f5a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b6f83(){let _0x2ee5d6,_0x3781f3=null,_0x30713b=null;try{if(_0x59edfc==_0x22f5a4([0x47,0x50,0x4c]))return _0x22f5a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2ee5d6=_0x1b1b79(),!_0x2ee5d6)return _0x22f5a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2ee5d6[_0x22f5a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x30713b=_0x18b305(_0x2ee5d6[_0x22f5a4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2ee5d6[_0x22f5a4([0x6a,0x74,0x69])])),await _0x3d2f32()?_0x419a0b()?_0x373e21()?_0x22f5a4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x512b11()?(_0x2ee5d6[_0x22f5a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22f5a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3781f3=_0x5e8e2f(_0x22f5a4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2ee5d6[_0x22f5a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x22f5a4([0x74,0x72,0x69,0x61,0x6c])&&(_0x3781f3=_0x5e8e2f(_0x22f5a4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x91229d()):_0x22f5a4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x22f5a4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x22f5a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x218074){return _0x22f5a4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x373e21(){const _0x3454b3=[_0x22f5a4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x22f5a4([0x74,0x72,0x69,0x61,0x6c])][_0x22f5a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ee5d6[_0x22f5a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ea908/0x3e8:0xe10*_0x2b1659;return _0x2ee5d6[_0x22f5a4([0x65,0x78,0x70])]<_0x3454b3;}function _0x419a0b(){const _0x1ae4c8=_0x2ee5d6[_0x22f5a4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1ae4c8)return!0x1;if(_0x1ae4c8[_0x22f5a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22f5a4([0x2a])))return!0x0;if(_0x1ae4c8[_0x22f5a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22f5a4([0x54,0x43])))return!0x0;if(_0x1ae4c8[_0x22f5a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22f5a4([0x52,0x54,0x43]))){if(_0x23f698())return!0x0;if(_0x400cc5()||_0x1c521d())return!0x0;}return!0x1;}function _0x512b11(){const _0x559066=_0x2ee5d6[_0x22f5a4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x559066||0x0==_0x559066[_0x22f5a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe695c}=new URL(window[_0x22f5a4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x559066[_0x22f5a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe695c))return!0x0;const _0xc4bcd3=_0xe695c[_0x22f5a4([0x73,0x70,0x6c,0x69,0x74])](_0x22f5a4([0x2e]));return _0x559066[_0x22f5a4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x336419=>_0x336419[_0x22f5a4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22f5a4([0x2a])))[_0x22f5a4([0x6d,0x61,0x70])](_0x81ebc6=>_0x81ebc6[_0x22f5a4([0x73,0x70,0x6c,0x69,0x74])](_0x22f5a4([0x2e])))[_0x22f5a4([0x73,0x6f,0x6d,0x65])](_0x3d59ec=>_0xc4bcd3[_0x22f5a4([0x65,0x76,0x65,0x72,0x79])]((_0xc96032,_0x58b4cd)=>_0x3d59ec[_0x58b4cd]===_0xc96032||_0x3d59ec[_0x58b4cd]===_0x22f5a4([0x2a])));}function _0x91229d(){return _0x3781f3&&_0x30713b?new window[(_0x22f5a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x313f50,_0x11403f)=>{_0x3781f3[_0x22f5a4([0x74,0x68,0x65,0x6e])](_0x313f50,_0x11403f),_0x30713b[_0x22f5a4([0x74,0x68,0x65,0x6e])](_0x2d56c4=>{_0x2d56c4!=_0x22f5a4([0x56,0x61,0x6c,0x69,0x64])&&_0x313f50(_0x2d56c4);},_0x11403f);}):_0x3781f3||_0x30713b||_0x22f5a4([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18b305(_0x13d3f6,_0x1ebb90){return new window[(_0x22f5a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c2967=>{if(_0x37001d())return _0x3c2967(_0x22f5a4([0x56,0x61,0x6c,0x69,0x64]));_0x52d3e9(),_0x2b5b5f[_0x22f5a4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x22f5a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46aa2d=!0x1;const _0x43c368=_0x359303();function _0x2229dc(_0x498aa0){return!!_0x498aa0&&(typeof _0x498aa0===_0x22f5a4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x498aa0===_0x22f5a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x498aa0[_0x22f5a4([0x74,0x68,0x65,0x6e])]===_0x22f5a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x498aa0[_0x22f5a4([0x63,0x61,0x74,0x63,0x68])]===_0x22f5a4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x29e1a3(_0x198487){_0x5274ac(_0x198487)[_0x22f5a4([0x74,0x68,0x65,0x6e])](_0x4ab7fc=>{if(!_0x4ab7fc||_0x4ab7fc[_0x22f5a4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x22f5a4([0x6f,0x6b]))return _0x22f5a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x14ecae(_0x59ec36(_0x43c368+_0x1ebb90))!=_0x4ab7fc[_0x22f5a4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x22f5a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x22f5a4([0x56,0x61,0x6c,0x69,0x64]);})[_0x22f5a4([0x74,0x68,0x65,0x6e])](_0x30265a=>(_0x56cd64(),_0x30265a),()=>{const _0x439a59=_0x4fab83();return null==_0x439a59?(_0x56cd64(),_0x22f5a4([0x56,0x61,0x6c,0x69,0x64])):_0x22f5a4(_0x1ea908-_0x439a59>(0x594dcabc^_0x448744)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x22f5a4([0x74,0x68,0x65,0x6e])](_0x3c2967)[_0x22f5a4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3c2967(_0x22f5a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x272906=0x7d77a03c^_0x448744;function _0x56cd64(){const _0x42cf10=_0x22f5a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x14ecae(_0x59ec36(_0x13d3f6)),_0x5929da=_0x2534ab(_0x14ecae(window[_0x22f5a4([0x4d,0x61,0x74,0x68])][_0x22f5a4([0x63,0x65,0x69,0x6c])](_0x1ea908/_0x272906)));window[_0x22f5a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22f5a4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42cf10,_0x5929da);}function _0x4fab83(){const _0x14d787=_0x22f5a4([0x6c,0x6c,0x63,0x74,0x2d])+_0x14ecae(_0x59ec36(_0x13d3f6)),_0x502075=window[_0x22f5a4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x22f5a4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14d787);return _0x502075?window[_0x22f5a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2534ab(_0x502075),0x10)*_0x272906:null;}function _0x5274ac(_0x4dd47d){return new window[(_0x22f5a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b07af,_0x53a44d)=>{_0x4dd47d[_0x22f5a4([0x74,0x68,0x65,0x6e])](_0x5b07af,_0x53a44d),window[_0x22f5a4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53a44d,0x7d409a7c^_0x448744);});}}_0x2b5b5f[_0x22f5a4([0x6f,0x6e])](_0x22f5a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x16364b,_0x1b504a)=>{if(_0x1b504a[0x0]!=_0x13d3f6)return _0x3c2967(_0x22f5a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1b504a[0x1]={..._0x1b504a[0x1],[_0x22f5a4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43c368};},{[_0x22f5a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22f5a4([0x68,0x69,0x67,0x68])}),_0x2b5b5f[_0x22f5a4([0x6f,0x6e])](_0x22f5a4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x232e3d=>{_0x2229dc(_0x232e3d[_0x22f5a4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46aa2d=!0x0,_0x29e1a3(_0x232e3d[_0x22f5a4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x22f5a4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x22f5a4([0x6c,0x6f,0x77])}),_0x485a6b[_0x22f5a4([0x74,0x68,0x65,0x6e])](()=>{_0x46aa2d||_0x3c2967(_0x22f5a4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37001d(){return _0x2b5b5f[_0x22f5a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22f5a4([0x76,0x69,0x65,0x77])][_0x22f5a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x22f5a4([0x61,0x75,0x74,0x6f]);}function _0x52d3e9(){_0x2b5b5f[_0x22f5a4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x22f5a4([0x76,0x69,0x65,0x77])][_0x22f5a4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x22f5a4([0x61,0x75,0x74,0x6f]);}}function _0x5e8e2f(_0x3b4609){const _0x29dae0=[new window[(_0x22f5a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310c35=>setTimeout(_0x310c35,0x7d487070^_0x448744)),_0x485a6b[_0x22f5a4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x22f5a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33a558=>{let _0x54732d=0x0;_0x2b5b5f[_0x22f5a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x22f5a4([0x6f,0x6e])](_0x22f5a4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x596c80,_0x3ccf77)=>{_0x3ccf77[0x0][_0x22f5a4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x54732d++,_0x54732d==(0x7d414f44^_0x448744)&&(_0x33a558(),_0x596c80[_0x22f5a4([0x6f,0x66,0x66])]());});}))];return window[_0x22f5a4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x22f5a4([0x72,0x61,0x63,0x65])](_0x29dae0)[_0x22f5a4([0x74,0x68,0x65,0x6e])](()=>_0x3b4609);}async function _0x4b3c9e(){await _0x485a6b,_0x2b5b5f[_0x22f5a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x22f5a4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee54a,_0x2b5b5f[_0x22f5a4([0x6d,0x6f,0x64,0x65,0x6c])][_0x22f5a4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3ee54a,_0x2b5b5f[_0x22f5a4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x22f5a4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x23f698(){return _0x203c3b(_0x22f5a4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c00e3(_0x22f5a4([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x22f5a4([0x73,0x74,0x61,0x74,0x65])]==_0x22f5a4([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x400cc5(){return _0x203c3b(_0x22f5a4([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 _0x1c521d(){return _0x203c3b(_0x22f5a4([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3906e6(_0x3cf92e){const _0x5d5e79=_0x1565ca();_0x2b5b5f[_0x5d5e79]=_0x22f5a4([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3cf92e,_0x3cf92e!=_0x22f5a4([0x56,0x61,0x6c,0x69,0x64])&&_0x4b3c9e();}function _0x1565ca(){const _0xb9b7a4=window[_0x22f5a4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x22f5a4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x22f5a4([0x6e,0x6f,0x77])]())[_0x22f5a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x22f5a4([0x2e]),'');let _0x4afae0=_0x22f5a4([0x73]);for(let _0x10b2d1=0x0;_0x10b2d1<_0xb9b7a4[_0x22f5a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x10b2d1+=0x2){let _0x229861=window[_0x22f5a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9b7a4[_0x22f5a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10b2d1,_0x10b2d1+0x2));_0x229861>=_0x52fb8a[_0x22f5a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x229861-=_0x52fb8a[_0x22f5a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4afae0+=_0x52fb8a[_0x229861];}return _0x4afae0;}function _0x1b1b79(){const _0x2fef30=_0x59edfc[_0x22f5a4([0x73,0x70,0x6c,0x69,0x74])](_0x22f5a4([0x2e]));if(0x3!=_0x2fef30[_0x22f5a4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4256b2(_0x2fef30[0x1]);function _0x4256b2(_0x1b8d42){const _0x533ae9=_0x158504(_0x1b8d42);return _0x533ae9&&_0x291a12()?_0x533ae9:null;function _0x291a12(){const _0x1f85be=_0x533ae9[_0x22f5a4([0x6a,0x74,0x69])],_0x4dc740=window[_0x22f5a4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f85be[_0x22f5a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f85be[_0x22f5a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1c2627={..._0x533ae9,[_0x22f5a4([0x6a,0x74,0x69])]:_0x1f85be[_0x22f5a4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f85be[_0x22f5a4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1c2627[_0x22f5a4([0x76,0x63])],_0x59ec36(_0x1c2627)==_0x4dc740;}}}async function _0x3d2f32(){let _0x296abd=!0x0;try{const _0x17a464=_0x59edfc[_0x22f5a4([0x73,0x70,0x6c,0x69,0x74])](_0x22f5a4([0x2e])),[_0x117094,_0x2c6221,_0x16efe6]=_0x17a464;return _0x56167f(_0x117094),await _0x2e2491(_0x117094,_0x2c6221,_0x16efe6),_0x296abd;}catch(_0x2a1459){return!0x1;}function _0x56167f(_0x5013a9){const _0x56ef47=_0x158504(_0x5013a9);_0x56ef47&&_0x56ef47[_0x22f5a4([0x61,0x6c,0x67])]==_0x22f5a4([0x45,0x53,0x32,0x35,0x36])||(_0x296abd=!0x1);}async function _0x2e2491(_0x414db9,_0x3825bc,_0x350354){const _0x29c2d5=window[_0x22f5a4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x22f5a4([0x66,0x72,0x6f,0x6d])](_0x1b0b0d(_0x350354),_0xf8b69=>_0xf8b69[_0x22f5a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18e4b7=new window[(_0x22f5a4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x22f5a4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x414db9+_0x22f5a4([0x2e])+_0x3825bc),_0x499f99=window[_0x22f5a4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x22f5a4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x499f99)return;const _0x148ece=await _0x499f99[_0x22f5a4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x22f5a4([0x6a,0x77,0x6b]),_0x22d769,{[_0x22f5a4([0x6e,0x61,0x6d,0x65])]:_0x22f5a4([0x45,0x43,0x44,0x53,0x41]),[_0x22f5a4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x22f5a4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x22f5a4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x499f99[_0x22f5a4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x22f5a4([0x6e,0x61,0x6d,0x65])]:_0x22f5a4([0x45,0x43,0x44,0x53,0x41]),[_0x22f5a4([0x68,0x61,0x73,0x68])]:{[_0x22f5a4([0x6e,0x61,0x6d,0x65])]:_0x22f5a4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x148ece,_0x29c2d5,_0x18e4b7)||(_0x296abd=!0x1);}}function _0x158504(_0x3c24e9){return _0x3c24e9[_0x22f5a4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x22f5a4([0x65,0x79]))?JSON[_0x22f5a4([0x70,0x61,0x72,0x73,0x65])](_0x1b0b0d(_0x3c24e9)):null;}function _0x1b0b0d(_0x4fa9f9){return window[_0x22f5a4([0x61,0x74,0x6f,0x62])](_0x4fa9f9[_0x22f5a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x22f5a4([0x2b]))[_0x22f5a4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x22f5a4([0x2f])));}function _0x59ec36(_0x246495){let _0x5035bf=0x1505;function _0x3066f2(_0x42faa9){for(let _0x5ae542=0x0;_0x5ae542<_0x42faa9[_0x22f5a4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ae542++){const _0xd7f418=_0x42faa9[_0x22f5a4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5ae542);_0x5035bf=(_0x5035bf<<0x5)+_0x5035bf+_0xd7f418,_0x5035bf&=_0x5035bf;}}function _0x1168bb(_0xe78898){Array[_0x22f5a4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe78898)?_0xe78898[_0x22f5a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1168bb):_0xe78898&&typeof _0xe78898==_0x22f5a4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x22f5a4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe78898)[_0x22f5a4([0x73,0x6f,0x72,0x74])]()[_0x22f5a4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fdc9b,_0x240072])=>{_0x3066f2(_0x2fdc9b),_0x1168bb(_0x240072);}):_0x3066f2(window[_0x22f5a4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe78898));}return _0x1168bb(_0x246495),_0x5035bf>>>0x0;}function _0x14ecae(_0x4dd8af){return _0x4dd8af[_0x22f5a4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x22f5a4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x22f5a4([0x30]));}function _0x2534ab(_0x567f5e){return _0x567f5e[_0x22f5a4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x22f5a4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x22f5a4([0x6a,0x6f,0x69,0x6e])]('');}function _0x203c3b(_0x2acd10){return _0x2b5b5f[_0x22f5a4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22f5a4([0x68,0x61,0x73])](_0x2acd10);}function _0x4c00e3(_0x29e65e){return _0x2b5b5f[_0x22f5a4([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x22f5a4([0x67,0x65,0x74])](_0x29e65e);}function _0x3ee54a(){}function _0x22f5a4(_0x72e52e){return _0x72e52e['map'](_0x40dd08=>String['fromCharCode'](_0x40dd08))['join']('');}_0x3906e6(await _0x5b6f83());}(this);}set['adapter'](_0x36483d){if(this['_adapter'])throw new _0x507dce('track-changes-adapter-already-set',this);this['_adapter']=_0x36483d;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x8d562a=!0x1,toJSON:_0x18164e=!0x1}={}){const _0x42bc98=[];for(const _0x3fe6a2 of this['_suggestions']['values']())_0x8d562a&&!_0x3fe6a2['isInContent']||_0x42bc98['push'](_0x3fe6a2);return _0x18164e?_0x42bc98['map'](_0x59a5bc=>_0x59a5bc['toJSON']()):_0x42bc98;}['getSuggestion'](_0x592ff6){const _0x82869=this['_suggestions']['get'](_0x592ff6);if(!_0x82869)throw new _0x507dce('track-changes-suggestion-not-found',this);return _0x82869;}['hasSuggestion'](_0x561f9f){return this['_suggestions']['has'](_0x561f9f);}['addSuggestionData'](_0x5435f8){const {authorId:_0x167348,id:_0x4f3394,attributes:_0x1954c6}=_0x5435f8,[_0x499314,_0x48b32e]=_0x5435f8['type']['split'](':'),_0x415892=this['_suggestions']['get'](_0x4f3394)||this['_createSuggestion'](_0x499314,_0x48b32e,_0x4f3394,_0x167348,_0x1954c6);if(this['_addThreadToSuggestion'](_0x415892),this['_checkSuggestionCorrectness'](_0x415892,_0x499314,_0x48b32e||null,_0x167348),_0x415892['createdAt']=_0x5435f8['createdAt'],_0x415892['_isDataLoaded']=!0x0,_0x1954c6&&_0x1954c6['@external']){const _0x23ec04=_0x1954c6['@external'],_0xbc14aa=this['_getExternalAuthor'](_0x23ec04['authorName']);_0x415892['authoredAt']=_0x23ec04['createdAt'],_0x415892['author']=_0xbc14aa,_0x415892['isExternal']=!0x0;}else _0x415892['authoredAt']=_0x5435f8['createdAt'];switch(_0x5435f8['data']&&(_0x415892['data']=_0x5435f8['data']),_0x5435f8['attributes']&&(_0x415892['attributes']=_0x5435f8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x415892['_saved']=!0x0),this['_suggestionState']['get'](_0x415892)){case'notReady':this['_suggestionState']['set'](_0x415892,'dataReady');break;case'markerReady':_0x415892['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x415892])),this['_refreshSuggestionsChain'](new Set([_0x415892])),this['_suggestionState']['set'](_0x415892,'ready'),this['fire']('suggestionLoaded',_0x415892)):this['_suggestionState']['set'](_0x415892,'removed');}return _0x415892;}['acceptSuggestion'](_0x5985d3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a8ef2 of _0x5985d3['getAllAdjacentSuggestions']())_0x4a8ef2['accept']();});});}['discardSuggestion'](_0x1303f0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16665a of _0x1303f0['getAllAdjacentSuggestions']())_0x16665a['discard']();});});}['enableCommand'](_0x13880d,_0x29234d){const _0x40b48e=this['editor']['commands']['get'](_0x13880d);if(!_0x40b48e)throw new _0x507dce('track-changes-command-not-found',this,{'commandName':_0x13880d});if(this['_enabledCommands']['has'](_0x40b48e))throw new _0x507dce('track-changes-enable-command-twice',this,{'commandName':_0x13880d});this['_enabledCommands']['add'](_0x40b48e),_0x29234d&&_0x40b48e['on']('execute',(_0x480df8,_0x101d0c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x101d0c['length']>0x0&&_0x101d0c[_0x101d0c['length']-0x1]&&_0x101d0c[_0x101d0c['length']-0x1]['forceDefaultExecution']?_0x101d0c['pop']():(_0x480df8['return']=_0x29234d((..._0x2291d4)=>_0x40b48e['execute'](..._0x2291d4,{'forceDefaultExecution':!0x0}),..._0x101d0c),_0x480df8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x28c51b){let _0x113423,_0x2dc85c;const _0x2aa85b=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x113423=_0x28c51b();}catch(_0x588167){_0x2dc85c=_0x588167;}return _0x2aa85b||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2dc85c&&_0x507dce['rethrowUnexpectedError'](_0x2dc85c,this),_0x113423;}['markInsertion'](_0x2737c5,_0x3f2734=null,_0x2ea2f2={}){if(_0x2737c5['isCollapsed'])return null;const _0x283d78=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3f7b51,meta:_0x1abe36}of this['_findSuggestions'](_0x2737c5,'insertion'))if(_0x1abe36['isOwn']){if(!_0x1abe36['isNextTo']){if(_0x1abe36['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x3f7b51,_0x2ea2f2))continue;return _0x3f7b51;}if(Qt(_0x3f7b51,_0x2ea2f2))return _0x3f7b51;this['_breakSuggestionMarker'](_0x3f7b51,_0x2737c5['start'],_0x2737c5['end']);break;}if(_0x3f2734==_0x3f7b51['subType']&&Qt(_0x3f7b51,_0x2ea2f2)){const _0x597d3b=_0x3f7b51['getFirstRange']();return _0x597d3b['start']['isEqual'](_0x2737c5['end'])?this['_setSuggestionRange'](_0x3f7b51,this['_model']['createRange'](_0x2737c5['start'],_0x597d3b['end'])):this['_setSuggestionRange'](_0x3f7b51,this['_model']['createRange'](_0x597d3b['start'],_0x2737c5['end'])),_0x3f7b51;}}const _0x56d117=_0x359303(),_0x583b9e=_0x283d78['id'],_0x5cb824=_0x3f2734?'insertion:'+_0x3f2734:'insertion',_0x559f36=this['_setSuggestionData']({'id':_0x56d117,'type':_0x5cb824,'createdAt':new Date(),'authorId':_0x583b9e,'attributes':_0x2ea2f2});return this['_addSuggestionMarker'](_0x5cb824,_0x56d117,_0x583b9e,_0x2737c5),_0x559f36;}['markMultiRangeInsertion'](_0x7b31fc,_0x83ae0c='multi',_0x2dc1e5={}){const _0x5eab51=this['editor']['plugins']['get']('Users')['me'],_0x365074=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x83ae0c,'join');for(const _0x124ede of this['getSuggestions']())if(_0x124ede['author']['id']==_0x5eab51['id']&&'insertion'==_0x124ede['type']&&_0x124ede['subType']==_0x83ae0c&&Qt(_0x124ede,_0x2dc1e5)&&(_0x365074(_0x124ede['getRanges'](),_0x7b31fc)||_0x365074(_0x7b31fc,_0x124ede['getRanges']()))){for(const _0x4b188f of _0x7b31fc)_0x124ede['addRange'](_0x4b188f);return _0x124ede;}for(const {suggestion:_0x182fbb,meta:_0x22778c}of this['_findSuggestions'](_0x7b31fc,'insertion')){if(!_0x22778c['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x22778c['containsRangeInObject'])continue;if(!Qt(_0x182fbb,_0x2dc1e5))continue;let _0x578b07=!0x0;for(const _0x1135cf of _0x182fbb['getRanges']())for(const _0x3f6f91 of _0x7b31fc)if(!_0x1135cf['containsRange'](_0x3f6f91)){_0x578b07=!0x1;break;}if(_0x578b07)return _0x182fbb;}const _0x39e026=_0x359303(),_0x6f2041=_0x5eab51['id'],_0x355c39='insertion:'+_0x83ae0c,_0x303eb5=this['_setSuggestionData']({'id':_0x39e026,'type':_0x355c39,'createdAt':new Date(),'authorId':_0x6f2041,'attributes':_0x2dc1e5});for(const _0x388874 of _0x7b31fc)this['_addSuggestionMarker'](_0x355c39,_0x39e026,_0x6f2041,_0x388874,u['getMultiRangeId']());return _0x303eb5;}['markInlineFormat'](_0x5385cc,_0xa98807,_0x4ef200=null,_0x4e82a7={}){if(_0x4ef200=_0x4ef200||Jt(_0xa98807),_0x5385cc['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5f1e8c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ef200,'accept');return this['forceDefaultExecution'](()=>_0x5f1e8c([_0x5385cc],_0xa98807,_0x4e82a7)),null;}const _0x3f9682=this['editor']['plugins']['get']('Users')['me'],_0x432ea6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x116ce8,meta:_0x3a64cb}of this['_findSuggestions'](_0x5385cc,'insertion'))_0x3a64cb['isOwn']&&!_0x3a64cb['isInsideObject']&&_0x432ea6['push'](..._0x116ce8['getRanges']());}const _0x30ea8d=function(_0x586a1f,_0x55c8e6){const _0x544d07=[];for(const _0x178adf of _0x55c8e6){const _0x1f96c8=_0x586a1f['getIntersection'](_0x178adf);_0x1f96c8&&_0x544d07['push'](_0x1f96c8);}return _0x544d07;}(_0x5385cc,_0x432ea6),_0xd2f101=function(_0x4566c5,_0x11c259){const _0x116985=[_0x4566c5];for(const _0x3a70a1 of _0x11c259){let _0x2bc536=0x0;for(;_0x2bc536<_0x116985['length'];){const _0xcf25e3=_0x116985[_0x2bc536]['getDifference'](_0x3a70a1);_0x116985['splice'](_0x2bc536,0x1,..._0xcf25e3),_0x2bc536+=_0xcf25e3['length'];}}return _0x116985;}(_0x5385cc,_0x432ea6);_0x30ea8d['length']&&this['_model']['change'](()=>{for(const _0x400482 of _0x30ea8d){const _0x31cdd1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4ef200,'accept');this['forceDefaultExecution'](()=>_0x31cdd1([_0x400482],_0xa98807,_0x4e82a7));}});for(const _0x3002c9 of _0xd2f101){let _0x568f0b=null,_0x232620=_0x3002c9['start'],_0x580ea7=_0x3002c9['end'];for(const {suggestion:_0x373a0b,meta:_0x4bd8a2}of this['_findSuggestions'](_0x3002c9,'formatInline')){if(!_0x4bd8a2['isOwn'])continue;if(_0x373a0b['subType']!=_0x4ef200)continue;if(!Qt(_0x373a0b,_0x4e82a7))continue;const _0x38aea6=_0x373a0b['getFirstRange']();if(_0x38aea6['containsRange'](_0x3002c9,!0x0))return null;_0x232620=_0x232620['isBefore'](_0x38aea6['start'])?_0x232620:_0x38aea6['start'],_0x580ea7=_0x580ea7['isAfter'](_0x38aea6['end'])?_0x580ea7:_0x38aea6['end'],_0x568f0b?_0x38aea6['start']['isBefore'](_0x568f0b['getFirstRange']()['start'])?(_0x568f0b['removeMarkers'](),_0x568f0b=_0x373a0b):_0x373a0b['removeMarkers']():_0x568f0b=_0x373a0b;}const _0x2ae1d4=this['_model']['createRange'](_0x232620,_0x580ea7);if(_0x568f0b)this['_setSuggestionRange'](_0x568f0b,_0x2ae1d4);else{const _0x50ddd0=_0x359303(),_0x322f05=_0x3f9682['id'];this['_setSuggestionData']({'id':_0x50ddd0,'type':'formatInline:'+_0x4ef200,'data':_0xa98807,'createdAt':new Date(),'authorId':_0x322f05,'attributes':_0x4e82a7}),this['_addSuggestionMarker']('formatInline:'+_0x4ef200,_0x50ddd0,_0x322f05,_0x2ae1d4);}}return null;}['markBlockFormat'](_0x589464,_0x5e53ac,_0x2fc7a3=[],_0x4470ce=null,_0xabb778={}){_0x5e53ac['formatGroupId']||(_0x5e53ac['formatGroupId']=_0x5e53ac['commandName']),_0x5e53ac['multipleBlocks']=_0x589464['is']('range'),_0x4470ce=_0x4470ce||Jt(_0x5e53ac);const _0x684cd7=_0x2fc7a3['map'](_0x891c55=>zt(_0x891c55,this['_model'])),_0x544fb3=_0x589464['is']('range')?_0x589464:zt(_0x589464,this['_model']);if('never'===this['_trackFormatChanges']){const _0x14ee8e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4470ce,'accept');return this['forceDefaultExecution'](()=>_0x14ee8e([_0x544fb3],_0x5e53ac,_0xabb778)),null;}_0x684cd7['push'](_0x544fb3);let _0x187e84=!0x0;for(const _0x245883 of _0x684cd7)if(!this['_rangeIsInLocalUserInsertion'](_0x245883)){_0x187e84=!0x1;break;}if(_0x187e84&&'always'!==this['_trackFormatChanges']){const _0x14d9f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4470ce,'accept');return this['forceDefaultExecution'](()=>_0x14d9f2([_0x544fb3],_0x5e53ac,_0xabb778)),null;}let _0x4010f8=null,_0x1626ba=_0x544fb3['start'],_0x3c62cc=_0x544fb3['end'];for(const {suggestion:_0x59bc1f,meta:_0x4609b8}of this['_findSuggestions'](_0x544fb3,'formatBlock')){if(!_0x4609b8['isOwn'])continue;if(_0x4609b8['isNextTo']||_0x4609b8['containsRangeInObject']||_0x4609b8['isInsideObject'])continue;if(_0x59bc1f['data']['formatGroupId']!=_0x5e53ac['formatGroupId'])continue;if(!Qt(_0x59bc1f,_0xabb778))continue;const _0x3f7b67=_0x59bc1f['getFirstRange']();if(_0x59bc1f['subType']==_0x4470ce){if(_0x3f7b67['containsRange'](_0x544fb3,!0x0))return null;_0x1626ba=_0x1626ba['isBefore'](_0x3f7b67['start'])?_0x1626ba:_0x3f7b67['start'],_0x3c62cc=_0x3c62cc['isAfter'](_0x3f7b67['end'])?_0x3c62cc:_0x3f7b67['end'],_0x4010f8?_0x3f7b67['start']['isBefore'](_0x4010f8['getFirstRange']()['start'])?(_0x4010f8['removeMarkers'](),_0x4010f8=_0x59bc1f):_0x59bc1f['removeMarkers']():_0x4010f8=_0x59bc1f;}else{const _0x27feb0=_0x544fb3['getIntersection'](_0x3f7b67);this['_cutOutSuggestionMarker'](_0x59bc1f,_0x27feb0);}}const _0x52d00c=this['editor']['plugins']['get']('Users')['me'],_0x13aef9=_0x359303(),_0x4a3e6e=_0x52d00c['id'];if(_0x4010f8)return this['_setSuggestionRange'](_0x4010f8,this['_model']['createRange'](_0x1626ba,_0x3c62cc)),_0x4010f8;{const _0x2a09db=this['_setSuggestionData']({'id':_0x13aef9,'type':'formatBlock:'+_0x4470ce,'data':_0x5e53ac,'createdAt':new Date(),'authorId':_0x4a3e6e,'attributes':_0xabb778});return this['_addSuggestionMarker']('formatBlock:'+_0x4470ce,_0x13aef9,_0x4a3e6e,this['_model']['createRange'](_0x1626ba,_0x3c62cc)),_0x2a09db;}}['markMultiRangeBlockFormat'](_0x58ca75,_0x13b7b7,_0x21b2d1=[],_0x23dee3=null,_0xaf2d06={}){_0x13b7b7['formatGroupId']||(_0x13b7b7['formatGroupId']=_0x13b7b7['commandName']);const _0x37f4ed=_0x58ca75[0x0];_0x13b7b7['multipleBlocks']=_0x37f4ed['is']('range'),_0x23dee3=_0x23dee3||Jt(_0x13b7b7);const _0x56e91f=_0x21b2d1['map'](_0xc3cd03=>zt(_0xc3cd03,this['_model'])),_0x5e9cd9=_0x37f4ed['is']('range')?_0x58ca75:_0x58ca75['map'](_0x52cd04=>zt(_0x52cd04,this['_model']));if('never'===this['_trackFormatChanges']){const _0x513f33=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23dee3,'accept');return this['forceDefaultExecution'](()=>_0x513f33(_0x5e9cd9,_0x13b7b7,_0xaf2d06)),null;}_0x56e91f['push'](..._0x5e9cd9);let _0x4a6416=!0x0;for(const _0x4797f6 of _0x56e91f)if(!this['_rangeIsInLocalUserInsertion'](_0x4797f6)){_0x4a6416=!0x1;break;}if(_0x4a6416&&'always'!==this['_trackFormatChanges']){const _0x2caf30=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23dee3,'accept');return this['forceDefaultExecution'](()=>_0x2caf30(_0x5e9cd9,_0x13b7b7,_0xaf2d06)),null;}const _0x1ae111=this['editor']['plugins']['get']('Users')['me'];for(const _0x3103dd of this['getSuggestions']()){if(_0x3103dd['author']['id']!=_0x1ae111['id'])continue;if('formatBlock'!=_0x3103dd['type']||_0x3103dd['data']['formatGroupId']!=_0x13b7b7['formatGroupId'])continue;if(!Qt(_0x3103dd,_0xaf2d06))continue;const _0x30bad0=_0x3103dd['subType']==_0x23dee3;for(let _0x1e50f9=0x0;_0x1e50f9<_0x5e9cd9['length'];_0x1e50f9++){const _0x550bd5=_0x5e9cd9[_0x1e50f9];for(const _0x58fdbb of _0x3103dd['getMarkers']()){const _0x2e075b=_0x58fdbb['getRange']();if(_0x550bd5['isEqual'](_0x2e075b)){_0x30bad0?(_0x5e9cd9['splice'](_0x1e50f9,0x1),_0x1e50f9--):_0x3103dd['removeMarker'](_0x58fdbb['name']);break;}}}}if(0x0==_0x5e9cd9['length'])return null;const _0x4a7964=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23dee3,'join');for(const _0x25bfc1 of this['getSuggestions']())if(_0x25bfc1['author']['id']==_0x1ae111['id']&&'formatBlock'==_0x25bfc1['type']&&_0x25bfc1['data']['formatGroupId']==_0x13b7b7['formatGroupId']&&_0x25bfc1['subType']==_0x23dee3&&Qt(_0x25bfc1,_0xaf2d06)&&(_0x4a7964(_0x25bfc1['getRanges'](),_0x5e9cd9)||_0x4a7964(_0x5e9cd9,_0x25bfc1['getRanges']()))){for(const _0x537beb of _0x5e9cd9)_0x25bfc1['addRange'](_0x537beb);return _0x25bfc1;}const _0x960b21=_0x359303(),_0x4a4c6e=_0x1ae111['id'],_0x4e378c='formatBlock:'+_0x23dee3,_0x45ebff=this['_setSuggestionData']({'id':_0x960b21,'type':_0x4e378c,'data':_0x13b7b7,'createdAt':new Date(),'authorId':_0x4a4c6e,'attributes':_0xaf2d06});for(const _0x1c37bb of _0x5e9cd9)this['_addSuggestionMarker'](_0x4e378c,_0x960b21,_0x4a4c6e,_0x1c37bb,u['getMultiRangeId']());return _0x45ebff;}['markDeletion'](_0x56789a,_0x41c2dd=null,_0x7f49d1={}){if(_0x56789a['isCollapsed'])return null;const _0x17ca9d=this['editor']['plugins']['get']('Users')['me'],_0x265a8e=new _0x206398(_0x56789a['start'],_0x56789a['end']);for(const {suggestion:_0x26e98e,meta:_0x33c4cc}of this['_findSuggestions'](_0x265a8e,'insertion'))if(_0x33c4cc['isOwn']&&!_0x33c4cc['isNextTo']){if(_0x26e98e['isMultiRange']){const _0x645da7=_0x26e98e['getRanges']()['filter'](_0x10afcb=>'$graveyard'!=_0x10afcb['root']['rootName']);_0x645da7['every'](_0x696eea=>_0x265a8e['containsRange'](_0x696eea,!0x0))&&_0x26e98e['discard']();if(_0x645da7['some'](_0x17a6bf=>_0x17a6bf['containsRange'](_0x265a8e,!0x0))){const _0x3d293d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c2dd,'accept');return this['forceDefaultExecution'](()=>_0x3d293d([_0x265a8e],null,_0x7f49d1)),null;}}else{const _0x346ed2=_0x265a8e['getIntersection'](_0x26e98e['getFirstRange']());null!==_0x346ed2&&_0x26e98e['_onDiscard']([_0x346ed2],null,_0x7f49d1);}}if(_0x265a8e['detach'](),_0x265a8e['isCollapsed']||'$graveyard'==_0x265a8e['root']['rootName'])return null;let _0x306c1b=null,_0x1c0c92=_0x265a8e['start'],_0x52a89e=_0x265a8e['end'];const _0x22a50c=this['_findSuggestions'](_0x265a8e,'deletion');for(const {suggestion:_0x3a7d6e,meta:_0x1d9a3e}of _0x22a50c){const _0x41edf3=this['_model']['createRange'](_0x1c0c92,_0x52a89e);if(_0x1d9a3e['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d9a3e['containsRangeInObject']&&!_0x1d9a3e['isInsideObject'])){if(_0x3a7d6e['isMultiRange']){if(!Qt(_0x3a7d6e,_0x7f49d1))continue;let _0xe9b3c9=!0x0;for(const _0x4c0b6a of _0x3a7d6e['getRanges']()){if(_0x4c0b6a['containsRange'](_0x41edf3,!0x0))return _0x3a7d6e;_0x41edf3['containsRange'](_0x4c0b6a)||(_0xe9b3c9=!0x1);}_0xe9b3c9&&_0x3a7d6e['discard']();}else{const _0x2888e7=_0x3a7d6e['getFirstRange']();if(_0x2888e7['containsRange'](_0x41edf3,!0x0))return _0x3a7d6e;if(!Qt(_0x3a7d6e,_0x7f49d1)){_0x41edf3['containsRange'](_0x2888e7)?_0x3a7d6e['removeMarkers']():_0x2888e7['containsPosition'](_0x1c0c92)?_0x1c0c92=_0x2888e7['end']:_0x2888e7['containsPosition'](_0x52a89e)&&(_0x52a89e=_0x2888e7['start']);continue;}_0x1c0c92=_0x1c0c92['isBefore'](_0x2888e7['start'])?_0x1c0c92:_0x2888e7['start'],_0x52a89e=_0x52a89e['isAfter'](_0x2888e7['end'])?_0x52a89e:_0x2888e7['end'],_0x7f49d1=Object['assign']({},_0x3a7d6e['attributes']),_0x306c1b?_0x2888e7['start']['isBefore'](_0x306c1b['getFirstRange']()['start'])?(_0x306c1b['removeMarkers'](),_0x306c1b=_0x3a7d6e):_0x3a7d6e['removeMarkers']():_0x306c1b=_0x3a7d6e;}}}if(_0x306c1b)return this['_setSuggestionRange'](_0x306c1b,this['_model']['createRange'](_0x1c0c92,_0x52a89e)),_0x306c1b;{const _0x1d02ea=_0x359303(),_0x5a1dda=this['_model']['createRange'](_0x1c0c92,_0x52a89e),_0xfe13f8=_0x17ca9d['id'],_0x217935=_0x41c2dd?'deletion:'+_0x41c2dd:'deletion',_0x537859=this['_setSuggestionData']({'id':_0x1d02ea,'type':_0x217935,'createdAt':new Date(),'authorId':_0xfe13f8,'attributes':_0x7f49d1});return this['_addSuggestionMarker'](_0x217935,_0x1d02ea,_0xfe13f8,_0x5a1dda),_0x537859;}}['markMultiRangeDeletion'](_0x202b43,_0x28b20c='multi',_0x2ef498={}){const _0x23d520=this['editor']['plugins']['get']('Users')['me'],_0x2dd561=_0x202b43['map'](_0x2c9f6f=>new _0x206398(_0x2c9f6f['start'],_0x2c9f6f['end'])),_0xab72a2=new Set();for(const {suggestion:_0x42643b,meta:_0x535f4c}of this['_findSuggestions'](_0x2dd561,'insertion'))_0x535f4c['isOwn']&&!_0x535f4c['isNextTo']&&_0xab72a2['add'](_0x42643b);for(const _0x51b0b2 of _0xab72a2)if(_0x51b0b2['isMultiRange']){const _0x44ad86=_0x51b0b2['getRanges']();(!_0x51b0b2['attributes']||!_0x51b0b2['attributes']['skipNestingCheck'])&&(_0x44ad86['every'](_0x3d4c57=>_0x2dd561['some'](_0x5a06cb=>_0x5a06cb['containsRange'](_0x3d4c57,!0x0)))&&_0x51b0b2['discard']());if(_0x2dd561['every'](_0x31deae=>_0x44ad86['some'](_0x14340a=>_0x14340a['containsRange'](_0x31deae,!0x0)))){const _0x434a63=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b20c,'accept');return this['forceDefaultExecution'](()=>_0x434a63(_0x202b43,null,_0x2ef498)),null;}}else{const _0x213064=_0x51b0b2['getFirstRange']();_0x2dd561['some'](_0x16de04=>_0x16de04['containsRange'](_0x213064,!0x0))&&_0x51b0b2['discard']();if(_0x2dd561['every'](_0x25ec28=>_0x213064['containsRange'](_0x25ec28,!0x0))){const _0x73aed0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b20c,'accept');return this['forceDefaultExecution'](()=>_0x73aed0(_0x2dd561,null,_0x2ef498)),null;}}const _0x4df39f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x28b20c,'join');let _0x359e14=null;for(const _0x27b5a7 of this['getSuggestions']())if(_0x27b5a7['author']['id']==_0x23d520['id']&&_0x27b5a7['isInContent']&&'deletion'==_0x27b5a7['type']&&_0x27b5a7['subType']==_0x28b20c&&Qt(_0x27b5a7,_0x2ef498)&&(_0x4df39f(_0x27b5a7['getRanges'](),_0x2dd561)||_0x4df39f(_0x2dd561,_0x27b5a7['getRanges']()))){if(_0x359e14){if(_0x27b5a7['commentThread']&&_0x27b5a7['commentThread']['length'])continue;for(const _0x8a9789 of _0x27b5a7['getRanges']())_0x359e14['isIntersectingWithRange'](_0x8a9789)||_0x359e14['addRange'](_0x8a9789);_0x27b5a7['removeMarkers']();}else{_0x359e14=_0x27b5a7;for(const _0x281f1a of _0x2dd561)_0x27b5a7['isIntersectingWithRange'](_0x281f1a)||_0x27b5a7['addRange'](_0x281f1a);}}if(_0x359e14)return _0x359e14;_0xab72a2['clear']();for(const {suggestion:_0x39d698,meta:_0x551eb1}of this['_findSuggestions'](_0x2dd561,'deletion'))_0x551eb1['isOwn']&&(this['_mergeNestedSuggestions']||!_0x551eb1['containsRangeInObject']&&!_0x551eb1['isInsideObject'])&&Qt(_0x39d698,_0x2ef498)&&_0xab72a2['add'](_0x39d698);for(const _0x1a6252 of _0xab72a2){const _0x5f2328=_0x1a6252['getRanges']();if(!_0x2ef498||!_0x2ef498['skipNestingCheck']){if(_0x2dd561['every'](_0x3e8172=>_0x5f2328['some'](_0x3ccca0=>_0x3ccca0['containsRange'](_0x3e8172,!0x0))))return _0x1a6252;}(!_0x1a6252['attributes']||!_0x1a6252['attributes']['skipNestingCheck'])&&(_0x5f2328['every'](_0x4874c5=>_0x2dd561['some'](_0x2ce4e7=>_0x2ce4e7['containsRange'](_0x4874c5,!0x0)))&&_0x1a6252['discard']());}const _0xb01416=_0x359303(),_0x21b178=_0x23d520['id'],_0xd09035='deletion:'+_0x28b20c,_0x34e437=this['_setSuggestionData']({'id':_0xb01416,'type':_0xd09035,'createdAt':new Date(),'authorId':_0x21b178,'attributes':_0x2ef498});for(const _0x20ba6d of _0x2dd561)_0x20ba6d['detach'](),_0x20ba6d['isCollapsed']||'$graveyard'==_0x20ba6d['root']['rootName']||this['_addSuggestionMarker'](_0xd09035,_0xb01416,_0x21b178,_0x20ba6d,u['getMultiRangeId']());return _0x34e437;}['markAttributeChange'](_0x39f887,_0x25f5d9,_0x30e1e0,_0x582e8a,_0x1d3c89){if(_0x39f887['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3bcc62=this['editor']['plugins']['get']('Users')['me']['id'],_0x543ea0=Array['from'](this['_suggestions']['values']())['filter'](_0x4a7def=>'attribute'==_0x4a7def['type']&&_0x4a7def['data']['key']==_0x25f5d9&&_0x4a7def['isIntersectingWithRange'](_0x39f887));if('default'===this['_trackFormatChanges']){const _0x1c2ada=this['_findSuggestions'](_0x39f887,'insertion')['filter'](({meta:_0x551dc6})=>_0x551dc6['isOwn']&&!_0x551dc6['isInsideObject']&&!_0x551dc6['isNextTo'])['map'](({suggestion:_0x1c1f7d})=>_0x1c1f7d);_0x543ea0['unshift'](..._0x1c2ada);}const _0x353be6=new Map([[_0x39f887,_0x30e1e0]]);for(const _0x4399a4 of _0x543ea0){const _0x2eb7bb='attribute'==_0x4399a4['type']?_0x4399a4['data']['oldValue']:void 0x0,_0x417507=_0x4399a4['getFirstRange'](),_0x1ba925=Array['from'](_0x353be6['keys']())['find'](_0x37c651=>_0x37c651['isIntersecting'](_0x417507));if(!_0x1ba925)continue;const _0x31472e=_0x1ba925['getDifference'](_0x417507);this['_isBlockAttribute'](_0x25f5d9)&&'insertion'==_0x4399a4['type']&&0x0!=_0x31472e['length']||(_0x353be6['delete'](_0x1ba925),_0x31472e['forEach'](_0x5b46a1=>{_0x353be6['set'](_0x5b46a1,_0x30e1e0);}),'insertion'!=_0x4399a4['type']&&_0x2eb7bb!=_0x582e8a&&_0x353be6['set'](_0x1ba925['getIntersection'](_0x417507),_0x2eb7bb));}const _0x13295a=[];for(const [_0x16949d,_0x5e0363]of _0x353be6){const _0x5d524b=_0x359303(),_0x193c1d={'key':_0x25f5d9,'oldValue':_0x5e0363,'newValue':_0x582e8a};_0x25f5d9['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':_0x25f5d9});const _0x5d1c3d=('attribute:'+(_0x25f5d9+'|'+Jt({'newValue':_0x582e8a})))['substring'](0x0,0x3c),_0x1d4fbe=this['_setSuggestionData']({'id':_0x5d524b,'type':_0x5d1c3d,'data':_0x193c1d,'createdAt':new Date(),'authorId':_0x3bcc62,'attributes':_0x1d3c89});_0x13295a['push'](_0x1d4fbe),this['_addSuggestionMarker'](_0x5d1c3d,_0x5d524b,_0x3bcc62,_0x16949d);}return _0x13295a;}['enableDefaultAttributesIntegration'](_0x3ccae0){this['enableCommand'](_0x3ccae0,(_0x370909,..._0x19c139)=>{this['_recordAttributeChanges'](()=>{_0x370909(..._0x19c139);});});}['registerBlockAttribute'](_0xe640d1){this['_blockAttributeKeys']['add'](_0xe640d1);}['registerInlineAttribute'](_0x50faca){this['_inlineAttributeKeys']['add'](_0x50faca);}['_getAttributeKey'](_0x8a3cbc){return'attribute'==_0x8a3cbc['type']?_0x8a3cbc['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x39dea0,_0x55e56b){const _0x15bcb4=_0x39dea0['getFirstMarker']();this['_model']['change'](_0x59297f=>{_0x59297f['updateMarker'](_0x15bcb4,{'range':_0x55e56b});});}['_addThreadToSuggestion'](_0x135a0b){const _0x43d100=_0x135a0b['id'],_0x434419=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x43d100)||this['_commentsRepository']['addCommentThread']({'channelId':_0x434419,'threadId':_0x43d100,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x359d05=this['_commentsRepository']['getCommentThread'](_0x43d100);_0x359d05['unbind']('isRemovable'),_0x359d05['isRemovable']=!0x1,_0x135a0b['commentThread']=_0x359d05;}['_checkSuggestionCorrectness'](_0x25fd2e,_0x5b059c,_0x1f8718,_0x147635){if(_0x25fd2e['type']!=_0x5b059c||_0x25fd2e['subType']!=_0x1f8718||_0x25fd2e['creator']['id']!=_0x147635)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x507dce('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5a44c5,_0xdc7dbd){const _0xf900e9=_0x5a44c5['getFirstRange']();if(_0xdc7dbd['isEqual'](_0xf900e9))_0x5a44c5['removeMarkers']();else{if(_0xf900e9['containsRange'](_0xdc7dbd)){const _0x4c832a=this['_model']['createPositionAt'](_0xdc7dbd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a44c5,this['_model']['createRange'](_0xf900e9['start'],_0x4c832a));const _0x1d0c7a=_0x359303(),_0x2d26cd=_0x5a44c5['creator']['id'],_0x59a7ae=_0x5a44c5['type']+':'+_0x5a44c5['subType'];this['_setSuggestionData']({'id':_0x1d0c7a,'type':_0x59a7ae,'createdAt':new Date(),'authorId':_0x2d26cd,'data':_0x5a44c5['data'],'attributes':_0x5a44c5['attributes']});const _0x17bb5a=this['_model']['createPositionAt'](_0xdc7dbd['end']['parent'],'after'),_0x337179=this['_model']['createRange'](_0x17bb5a,_0xf900e9['end']);this['_addSuggestionMarker'](_0x59a7ae,_0x1d0c7a,_0x2d26cd,_0x337179);}else{if(_0xf900e9['containsPosition'](_0xdc7dbd['start'])){const _0x2d608f=this['_model']['createPositionAt'](_0xdc7dbd['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5a44c5,this['_model']['createRange'](_0xf900e9['start'],_0x2d608f));}else{const _0x221bd7=this['_model']['createPositionAt'](_0xdc7dbd['end']['parent'],'after');this['_setSuggestionRange'](_0x5a44c5,this['_model']['createRange'](_0x221bd7,_0xf900e9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5bbf3a){for(const {suggestion:_0x56800a,meta:_0x478456}of this['_findSuggestions'](_0x5bbf3a,'insertion')){if(!_0x478456['isOwn'])continue;const _0x1d0f95=_0x56800a['getRanges']();for(const _0x13a1ae of _0x1d0f95)if(!_0x5bbf3a['getDifference'](_0x13a1ae)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2965ea){const _0x4416d8=this['editor']['plugins']['get']('Users')['getUser'](_0x2965ea);if(!_0x4416d8)throw new _0x507dce('track-changes-user-not-found',this);return _0x4416d8;}['_getExternalAuthor'](_0x23a347){const _0x38b619=this['editor']['plugins']['get']('Users'),_0x1d6c6c=_0x3d1ff7('external:'+_0x23a347),_0x47bd90=_0x38b619['getUser'](_0x1d6c6c);return _0x47bd90||_0x38b619['addUser']({'id':_0x1d6c6c,'name':_0x23a347});}['_createSuggestion'](_0x2ac846,_0x5e3421,_0x39fe75,_0x240412,_0x439d35){const _0x2b8161=this['_getAuthorFromId'](_0x240412),_0x47edd9=this['_suggestionFactory']['buildSuggestion'](_0x2ac846,_0x5e3421,_0x39fe75,_0x2b8161,_0x439d35,_0x30d4f8=>{this['_updateSuggestionData'](_0x39fe75,{'attributes':_0x30d4f8});const _0x2e9080=this['getSuggestion'](_0x39fe75);this['_joinWithAdjacentSuggestions'](new Set([_0x2e9080])),this['_refreshSuggestionsChain'](new Set([_0x2e9080]));});return this['listenTo'](_0x47edd9,'accept',()=>{this['_updateSuggestionData'](_0x39fe75,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x47edd9,'discard',()=>{this['_updateSuggestionData'](_0x39fe75,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39fe75,_0x47edd9),this['_suggestionState']['set'](_0x47edd9,'notReady'),_0x47edd9;}['_splitMarkerName'](_0x5a00d8){const _0x4bc0bf=_0x5a00d8['split'](':');return{'group':_0x4bc0bf[0x0],'type':_0x4bc0bf[0x1],'subType':_0x4bc0bf['length']>=0x5?_0x4bc0bf[0x2]:null,'id':_0x4bc0bf['length']<0x5?_0x4bc0bf[0x2]:_0x4bc0bf[0x3],'authorId':_0x4bc0bf['length']<0x5?_0x4bc0bf[0x3]:_0x4bc0bf[0x4],'markerCount':0x6==_0x4bc0bf['length']?_0x4bc0bf[0x5]:null};}['_breakSuggestionMarker'](_0x319c7f,_0x4e1238,_0x465b59){const _0x4ee22d=_0x319c7f['getFirstRange'](),_0x5e23a4=_0x4ee22d['start'],_0x2d9027=_0x4ee22d['end'];this['_setSuggestionRange'](_0x319c7f,this['_model']['createRange'](_0x5e23a4,_0x4e1238));const _0x1dfd35=_0x359303(),_0x377d3c=_0x319c7f['creator']['id'],_0xc542b7=_0x319c7f['type']+(_0x319c7f['subType']?':'+_0x319c7f['subType']:'');this['_setSuggestionData']({'id':_0x1dfd35,'type':_0xc542b7,'createdAt':new Date(),'authorId':_0x377d3c,'originalSuggestionId':_0x319c7f['id'],'attributes':_0x319c7f['attributes'],'data':_0x319c7f['data']});const _0x41c621=this['_getAttributeKey'](_0x319c7f);('formatBlock'==_0x319c7f['type']||_0x41c621&&this['_isBlockAttribute'](_0x41c621))&&(_0x465b59=this['_model']['createPositionBefore'](_0x465b59['parent'])),this['_addSuggestionMarker'](_0xc542b7,_0x1dfd35,_0x377d3c,this['_model']['createRange'](_0x465b59,_0x2d9027));}['_findSuggestions'](_0x524e5c,_0x81fdab=null){const _0x155bfa=[],_0x4854dd=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x524e5c)||(_0x524e5c=[_0x524e5c]);for(const _0x46e198 of this['getSuggestions']()){if(!_0x46e198['isInContent'])continue;if(_0x81fdab&&_0x46e198['type']!=_0x81fdab)continue;let _0x558176=!0x1;for(const _0x45d847 of _0x46e198['getRanges']()){for(const _0x310ba7 of _0x524e5c){const _0x280fd7=_0x310ba7['start']['isEqual'](_0x45d847['end'])||_0x310ba7['end']['isEqual'](_0x45d847['start']);if(_0x280fd7||_0x310ba7['getIntersection'](_0x45d847)){const _0x44cfb3=_0x310ba7['containsRange'](_0x45d847)&&Gt(this['_model']['schema'],_0x45d847['start'],_0x310ba7),_0x8e5ac2=_0x45d847['containsRange'](_0x310ba7)&&Gt(this['_model']['schema'],_0x310ba7['start'],_0x45d847);_0x155bfa['push']({'suggestion':_0x46e198,'meta':{'isOwn':_0x4854dd==_0x46e198['author'],'isNextTo':_0x280fd7,'isInsideObject':_0x44cfb3,'containsRangeInObject':_0x8e5ac2}}),_0x558176=!0x0;break;}}if(_0x558176)break;}}return _0x155bfa;}['_addSuggestionMarker'](_0x5e7e29,_0x59f58d,_0x1b7c74,_0x524fde,_0x538b89){this['_model']['change'](_0x49c8a2=>{let _0x4a40c6='suggestion:'+_0x5e7e29+':'+_0x59f58d+':'+_0x1b7c74;_0x538b89&&(_0x4a40c6=_0x4a40c6+':'+_0x538b89),_0x49c8a2['addMarker'](_0x4a40c6,{'range':_0x524fde,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x330879){const _0x357256=_0x330879['previous'],_0x397238=_0x330879['next'];_0x330879['previous']=null,_0x330879['next']=null,null!=_0x357256&&_0x357256['next']==_0x330879&&(_0x357256['next']=_0x397238),null!=_0x397238&&_0x397238['previous']==_0x330879&&(_0x397238['previous']=_0x357256),'ready'==this['_suggestionState']['get'](_0x330879)&&(this['_suggestionState']['set'](_0x330879,'removed'),this['fire']('suggestionUnloaded',_0x330879,_0x357256,_0x397238));}['_setSuggestionData'](_0x1516f1){const _0x455e6e=_0x1516f1['id'],_0x4719a5=this['addSuggestionData'](_0x1516f1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4ebacc=this['editor']['plugins']['get']('PendingActions'),_0x35188b=_0x4719a5['hasComments'],_0x576fdb=_0x4719a5['subType']?_0x4719a5['type']+':'+_0x4719a5['subType']:_0x4719a5['type'],_0x3fead7=this['editor']['locale'],_0x16fb56=_0x4ebacc['add'](o(_0x3fead7,'PENDING_ACTION_SUGGESTION')),_0x188b87={'id':_0x455e6e,'type':_0x576fdb,'hasComments':_0x35188b,'data':_0x1516f1['data']||null,'originalSuggestionId':_0x1516f1['originalSuggestionId']||null,'attributes':_0x4719a5['attributes']};this['_adapter']['addSuggestion'](_0x188b87)['then'](_0x1e2927=>{_0x4719a5['_saved']=!0x0,_0x4ebacc['remove'](_0x16fb56),_0x1e2927&&_0x1e2927['createdAt']&&(this['_suggestions']['get'](_0x455e6e)['createdAt']=_0x1e2927['createdAt']);})['catch'](_0x516b30=>{throw _0x56f1b7('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4719a5['discard']();}),_0x4719a5['stopListening'](),this['_suggestions']['delete'](_0x4719a5['id']),this['_suggestionState']['delete'](_0x4719a5),_0x516b30;});}return _0x4719a5;}['_isBlockAttribute'](_0x5e9df6){return this['_blockAttributeKeys']['has'](_0x5e9df6);}['_updateSuggestionData'](_0x533efe,_0x37da3a){const _0x30a9c3=this['editor']['plugins']['get']('PendingActions'),_0xdda5b1=this['getSuggestion'](_0x533efe);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xdda5b1['_saved']){const _0x442fe6=_0x30a9c3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x533efe,_0x37da3a)['then'](()=>{_0x30a9c3['remove'](_0x442fe6);});}else _0xdda5b1['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x533efe,_0x37da3a);});}}['_getSuggestionData'](_0xf6074c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x507dce('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xf6074c);}['_handleNewSuggestionMarker'](_0x17d688){const {id:_0x16a6db,type:_0x1f3647,subType:_0x59a774,authorId:_0x134365}=this['_splitMarkerName'](_0x17d688),_0x2acd7f=this['_suggestions']['get'](_0x16a6db)||this['_createSuggestion'](_0x1f3647,_0x59a774,_0x16a6db,_0x134365,{});switch(this['_checkSuggestionCorrectness'](_0x2acd7f,_0x1f3647,_0x59a774,_0x134365),this['_suggestionState']['get'](_0x2acd7f)){case'notReady':this['_getSuggestionData'](_0x16a6db)['then'](_0x4c44d1=>{let _0x491717=Promise['resolve']();_0x4c44d1['hasComments']&&(_0x491717=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x16a6db})),_0x491717['then'](()=>{this['addSuggestionData'](_0x4c44d1)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2acd7f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x16a6db,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2acd7f,'ready'),this['fire']('suggestionLoaded',_0x2acd7f);break;case'ready':this['fire']('suggestionChanged',_0x2acd7f);}return _0x2acd7f['addMarkerName'](_0x17d688),_0x2acd7f;}['_refreshSuggestionsChain'](_0x33da57){const _0x402522=Array['from'](_0x33da57),_0x3d9002=_0x402522['filter'](_0x4ee4d1=>'attribute'==_0x4ee4d1['type']);this['_refreshAttributeSuggestionsChain'](_0x3d9002);const _0x8420e9=_0x402522['filter'](_0x53350b=>!_0x53350b['isMultiRange']&&'attribute'!=_0x53350b['type']),_0x1239d2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f4668=>!_0x3f4668['isMultiRange']&&'attribute'!=_0x3f4668['type']),_0x3bb974=_0x1239d2['filter'](_0x3599f2=>!_0x33da57['has'](_0x3599f2)),_0x588245=new Map(_0x1239d2['map'](_0xaf5d29=>[_0xaf5d29,this['_suggestionFactory']['getSuggestionCallback'](_0xaf5d29['type'],_0xaf5d29['subType'],'chain')])),_0x23d1ed=new Map(_0x1239d2['map'](_0x13f99f=>[_0x13f99f,_0x13f99f['getFirstRange']()])),_0x192927=new Set(),_0x5ea83c=new Set();for(let _0x49d2ef=0x0;_0x49d2ef<_0x8420e9['length'];_0x49d2ef++)_0x58c5db(_0x8420e9[_0x49d2ef],_0x8420e9,_0x49d2ef+0x1);for(let _0x5338f0=0x0;_0x5338f0<_0x8420e9['length'];_0x5338f0++)_0x58c5db(_0x8420e9[_0x5338f0],_0x3bb974,0x0);const _0x34f475=new Set();for(let _0x1d25c6=0x0;_0x1d25c6<_0x8420e9['length'];_0x1d25c6++){const _0x10be2a=_0x8420e9[_0x1d25c6];!_0x5ea83c['has'](_0x10be2a)&&_0x10be2a['previous']&&(_0x34f475['add'](_0x10be2a['previous']),_0x10be2a['previous']['next']===_0x10be2a&&(_0x10be2a['previous']['next']=null),_0x10be2a['previous']=null),!_0x192927['has'](_0x10be2a)&&_0x10be2a['next']&&(_0x34f475['add'](_0x10be2a['next']),_0x10be2a['next']['previous']===_0x10be2a&&(_0x10be2a['next']['previous']=null),_0x10be2a['next']=null);}function _0x58c5db(_0x1830f5,_0x32914e,_0x25ee5f){for(let _0x13cead=_0x25ee5f;_0x13cead<_0x32914e['length'];_0x13cead++){const _0x392790=_0x4568da(_0x1830f5,_0x32914e[_0x13cead]);_0x392790&&(_0x392790[0x0]['next']=_0x392790[0x1],_0x392790[0x1]['previous']=_0x392790[0x0],_0x192927['add'](_0x392790[0x0]),_0x5ea83c['add'](_0x392790[0x1]));}}function _0x4568da(_0x534abe,_0x177f56){if(_0x534abe['author']['id']!==_0x177f56['author']['id'])return null;const _0xdd2803=_0x588245['get'](_0x534abe)(_0x534abe,_0x177f56,_0x23d1ed['get'](_0x534abe),_0x23d1ed['get'](_0x177f56));if(!_0xdd2803)return null;return _0x588245['get'](_0x177f56)(_0x534abe,_0x177f56,_0x23d1ed['get'](_0x534abe),_0x23d1ed['get'](_0x177f56))?_0xdd2803[0x1]['commentThread']&&_0xdd2803[0x1]['commentThread']['length']?null:_0xdd2803:null;}_0x34f475['size']&&this['_refreshSuggestionsChain'](_0x34f475);}['_refreshAttributeSuggestionsChain'](_0x49d56c){if(0x0==_0x49d56c['length'])return;const _0x1c845a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1d91a6=>'attribute'==_0x1d91a6['type']&&_0x1d91a6['_isDataLoaded']),_0x277857=[],_0x50138f=new Map();for(const _0x24f4fe of _0x1c845a){const _0x29e19a=_0x3d1ff7(_0x24f4fe['attributes']);_0x50138f['has'](_0x29e19a)||(_0x50138f['set'](_0x29e19a,_0x277857['length']),_0x277857['push']([]));const _0x5a0b00=_0x50138f['get'](_0x29e19a);_0x277857[_0x5a0b00]['push'](_0x24f4fe);}!(function(){_0x277857['sort']((_0x1ad2d0,_0x3b372e)=>{const _0x5f3de6=_0x1ad2d0[0x0]['createdAt'],_0x195ec5=_0x3b372e[0x0]['createdAt'];return _0x5f3de6==_0x195ec5?_0x1ad2d0[0x0]['attributes']['groupId']<_0x3b372e[0x0]['attributes']['groupId']?-0x1:0x1:_0x5f3de6<_0x195ec5?-0x1:0x1;});for(const _0x584f23 of _0x277857)_0x584f23['sort']((_0x2dd86a,_0x233d05)=>_0x2dd86a['id']<_0x233d05['id']?-0x1:0x1);}());for(let _0x13bcc3=0x0;_0x13bcc3<_0x277857['length'];_0x13bcc3++){if(0x0==_0x277857[_0x13bcc3]['length'])continue;const _0x210f4b=[];for(let _0x6107bb=_0x13bcc3+0x1;_0x6107bb<_0x277857['length'];_0x6107bb++)0x0!=_0x277857[_0x6107bb]['length']&&_0x14e49b(_0x277857[_0x13bcc3],_0x277857[_0x6107bb])&&_0x210f4b['push'](_0x6107bb);for(const _0x22371a of _0x210f4b)_0x277857[_0x13bcc3]=_0x277857[_0x13bcc3]['concat'](_0x277857[_0x22371a]),_0x277857[_0x22371a]=[];}for(const _0x5185f5 of _0x277857)for(let _0x3e564a=0x0;_0x3e564a<_0x5185f5['length'];_0x3e564a++){const _0x1c90ca=_0x5185f5[_0x3e564a+0x1]||null;_0x5185f5[_0x3e564a]['next']!==_0x1c90ca&&(_0x5185f5[_0x3e564a]['next']=_0x1c90ca);}for(const _0x5a3304 of _0x277857)for(let _0xd03bb6=0x0;_0xd03bb6<_0x5a3304['length'];_0xd03bb6++){const _0x2cb71d=_0x5a3304[_0xd03bb6-0x1]||null;_0x5a3304[_0xd03bb6]['previous']!==_0x2cb71d&&(_0x5a3304[_0xd03bb6]['previous']=_0x2cb71d);}function _0x14e49b(_0x10d445,_0xc2c18c){if(_0x10d445[0x0]['attributes']['groupId']!==_0xc2c18c[0x0]['attributes']['groupId']&&_0x10d445[0x0]['author']!==_0xc2c18c[0x0]['author'])return!0x1;if(!function(_0x58096d,_0x5bfcfd){if(!_0x58096d['hasComments']&&!_0x5bfcfd['hasComments'])return!0x0;if(_0x58096d['hasComments']&&_0x5bfcfd['hasComments'])return!0x1;if(_0x58096d['hasComments']&&_0x5bfcfd['createdAt']<_0x58096d['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5bfcfd['hasComments']&&_0x58096d['createdAt']<_0x5bfcfd['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x10d445[0x0],_0xc2c18c[0x0]))return!0x1;const _0x29eb13=Vt(_0x10d445[0x0]['attributes'],'groupId'),_0xa3f2ce=Vt(_0xc2c18c[0x0]['attributes'],'groupId');if(!_0x3f16fd(_0x29eb13,_0xa3f2ce))return!0x1;return!!_0x10d445['every'](_0x55ebc8=>_0xc2c18c['some'](_0x41fb10=>_0x55ebc8['getFirstRange']()['isEqual'](_0x41fb10['getFirstRange']())))&&_0xc2c18c['every'](_0x512f8b=>_0x10d445['some'](_0x5bb184=>_0x512f8b['getFirstRange']()['isEqual'](_0x5bb184['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2eee8a){const _0x43c3b7=Array['from'](_0x2eee8a),_0x3e7868=this['getSuggestions']({'skipNotAttached':!0x0}),_0x564b83=_0x3e7868['filter'](_0x143af4=>!_0x2eee8a['has'](_0x143af4)),_0x512708=new Map(_0x43c3b7['map'](_0x5430e2=>[_0x5430e2,this['_suggestionFactory']['getSuggestionCallback'](_0x5430e2['type'],_0x5430e2['subType'],'join')])),_0x2a3084=new Map(_0x3e7868['map'](_0x2617b4=>[_0x2617b4,_0x2617b4['getRanges']()]));for(let _0x2441bd=0x0;_0x2441bd<_0x43c3b7['length'];_0x2441bd++){if(_0xe5c3a5(this,_0x43c3b7[_0x2441bd],_0x43c3b7,_0x2441bd+0x1))return!0x0;}for(let _0x284db2=0x0;_0x284db2<_0x43c3b7['length'];_0x284db2++){if(_0xe5c3a5(this,_0x43c3b7[_0x284db2],_0x564b83,0x0))return!0x0;}return!0x1;function _0xe5c3a5(_0x1c3aee,_0x42c24c,_0x1467d9,_0x2a57a3){for(let _0xfe11fc=_0x2a57a3;_0xfe11fc<_0x1467d9['length'];_0xfe11fc++){const _0x161a8e=_0x1467d9[_0xfe11fc];if(_0x161a8e['type']!==_0x42c24c['type']||_0x161a8e['author']['id']!==_0x42c24c['author']['id']||_0x161a8e['subType']!==_0x42c24c['subType'])continue;if(!Wt(_0x42c24c,_0x161a8e))continue;if('attribute'==_0x42c24c['type']&&_0x42c24c['data']['oldValue']!=_0x161a8e['data']['oldValue'])continue;if('attribute'==_0x42c24c['type']&&_0x1c3aee['_isBlockAttribute'](_0x42c24c['data']['key']))continue;if('formatBlock'==_0x42c24c['type']){const _0x59c768=_0x1c3aee['editor']['model'],_0x3f04cd=_0x42c24c['getContainedElement']();if(_0x3f04cd&&(_0x59c768['schema']['isObject'](_0x3f04cd)||_0x59c768['schema']['isLimit'](_0x3f04cd)))continue;}const _0xf42abb=_0x512708['get'](_0x42c24c),_0x235ae0=_0x2a3084['get'](_0x42c24c),_0x503246=_0x2a3084['get'](_0x161a8e),_0x351b29=_0x42c24c['commentThread']&&_0x42c24c['commentThread']['length'],_0x2ca307=_0x161a8e['commentThread']&&_0x161a8e['commentThread']['length'];if(!_0x351b29&&_0xf42abb(_0x503246,_0x235ae0))return _0x1c3aee['_joinSuggestions'](_0x161a8e,_0x42c24c),_0x2a3084['delete'](_0x42c24c),!0x0;if(!_0x2ca307&&_0xf42abb(_0x235ae0,_0x503246))return _0x1c3aee['_joinSuggestions'](_0x42c24c,_0x161a8e),_0x2a3084['delete'](_0x161a8e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x598d82,_0x45197c){if(_0x598d82['isMultiRange']){for(const _0x5bcfb6 of _0x45197c['getRanges']())_0x598d82['addRange'](_0x5bcfb6);}else{const _0xf184fe=_0x45197c['getFirstRange']()['end'];this['_setSuggestionRange'](_0x598d82,this['_model']['createRange'](_0x598d82['getFirstRange']()['start'],_0xf184fe));}_0x45197c['removeMarkers']();}['_getMarkerAnnouncementText'](_0x14f656,_0x46431b,_0x4683cd){const _0x5db513=_0x14f656['startsWith']('format')||_0x14f656['startsWith']('attribute')?'FORMATTING':_0x14f656['toUpperCase']();return o(this['editor']['locale'],_0x46431b+'_'+_0x5db513+'_SUGGESTION_ANNOUNCEMENT',_0x4683cd);}['_initAriaMarkerChangeAnnouncements'](){const _0x345a46=this['editor'];if(!_0x345a46['ui'])return;const {ariaLiveAnnouncer:_0x3e86fb}=_0x345a46['ui'];_0x484349(this['_model'],({left:_0x29176b,entered:_0x15c318})=>{for(const _0x143b4d of _0x29176b){const {group:_0x25ce41,type:_0xc06f92}=this['_splitMarkerName'](_0x143b4d['name']);if('suggestion'===_0x25ce41){_0x3e86fb['announce'](this['_getMarkerAnnouncementText'](_0xc06f92,'LEAVE'));break;}}for(const _0x369ede of _0x15c318){const {group:_0x2839d2,type:_0x5ca3fd}=this['_splitMarkerName'](_0x369ede['name']);if('suggestion'===_0x2839d2){_0x3e86fb['announce'](this['_getMarkerAnnouncementText'](_0x5ca3fd,'ENTER',_0x1d5cb9(_0x390e15)));break;}}});}['_processAttributeChanges'](_0x529869){if(this['_recordAttributeSuggestions'])return!0x1;const _0x198f46=this['editor'],_0x36e84d=_0x198f46['model']['document']['differ']['getChanges']();if(0x0==_0x36e84d['length'])return!0x1;const _0x14d077=[],_0x51b924=_0x36e84d['filter'](_0xeee4ac=>'attribute'==_0xeee4ac['type']),_0xf9098f=_0x36e84d['filter'](_0x26ebf7=>'insert'==_0x26ebf7['type']&&'$text'!=_0x26ebf7['name']),_0x17c770=_0x36e84d['filter'](_0x5e4f9a=>'remove'==_0x5e4f9a['type']&&'$text'!=_0x5e4f9a['name']);for(const _0x18188e of _0x51b924)_0x14d077['push']({'key':_0x18188e['attributeKey'],'newValue':_0x18188e['attributeNewValue'],'oldValue':_0x18188e['attributeOldValue'],'range':qt(_0x18188e['range'],_0x198f46['model'])});for(const _0x33390a of _0xf9098f){const _0x3dafa3=_0x17c770['find'](_0xd27ac1=>_0xd27ac1['position']['isEqual'](_0x33390a['position']));_0x3dafa3&&_0x14d077['push']({'key':m,'newValue':_0x33390a['name'],'oldValue':_0x3dafa3['name'],'range':_0x198f46['model']['createRangeOn'](_0x33390a['position']['nodeAfter'])});}return 0x0!=_0x14d077['length']&&this['_reduceExistingSuggestions'](_0x529869,_0x14d077);}['_processAttributeSuggestions'](_0x15b65c){let _0x393a72=!0x1;const _0x4a17b8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16e5b6=>_0x16e5b6['data']['newRange']&&_0x16e5b6['name']['startsWith']('suggestion:attribute:'));for(const _0x5ee897 of _0x4a17b8){const {subType:_0x15e888,id:_0x3541a2}=this['_splitMarkerName'](_0x5ee897['name']),_0x557d5a=_0x15e888['split']('|')[0x0];for(const _0x129411 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x129411['id']!=_0x3541a2&&'attribute'==_0x129411['type']&&_0x129411['data']&&_0x129411['data']['key']==_0x557d5a&&_0x129411['getFirstRange']()['isIntersecting'](_0x5ee897['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x129411,_0x5ee897['data']['newRange'],_0x15b65c),_0x393a72=!0x0);}return _0x393a72;}['_recordAttributeChanges'](_0x186235){this['_recordAttributeSuggestions']=!0x0,_0x186235();}['_isRegisteredAttribute'](_0x334411){const _0x29b4fb=this['_isBlockAttribute'](_0x334411),_0x576ebf=this['_inlineAttributeKeys']['has'](_0x334411);return _0x29b4fb||_0x576ebf;}['_reduceExistingSuggestions'](_0x30a842,_0x381cd2){if(0x0==_0x381cd2['length'])return!0x1;let _0x5f5962=!0x1;for(const _0x5716c6 of _0x381cd2){const _0x301251=this['_findSuggestions'](_0x5716c6['range'],'attribute')['filter'](_0x1ee9b5=>!_0x1ee9b5['meta']['isNextTo'])['map'](_0xde96b5=>_0xde96b5['suggestion']),_0x596fa3=_0x3d1ff7({'newValue':_0x5716c6['newValue']});_0x301251['filter'](_0x2921f2=>{const [_0x5cdf38,_0x29e617]=_0x2921f2['subType']['split']('|');return _0x5cdf38==_0x5716c6['key']&&_0x29e617!=_0x596fa3;})['forEach'](_0x125db7=>{this['_reduceSuggestionAttributeRange'](_0x125db7,_0x5716c6['range'],_0x30a842),_0x5f5962=!0x0;});}return _0x5f5962;}['_reduceSuggestionAttributeRange'](_0x24e162,_0x4d602e,_0x407a54){const _0x1fe21c=_0x24e162['getFirstRange']()['getDifference'](_0x4d602e);0x0!==_0x1fe21c['length']?0x1!==_0x1fe21c['length']?this['_breakSuggestionMarker'](_0x24e162,_0x4d602e['start'],_0x4d602e['end']):this['_setSuggestionRange'](_0x24e162,_0x1fe21c[0x0]):_0x407a54['removeMarker'](_0x24e162['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x370bbf){this['_editor']=_0x370bbf,this['_model']=_0x370bbf['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x52a609,_0x2653e5,_0x35d2b0,_0x23a9c8,_0x4a8431,_0x243e9b){return new u(this['_model'],{'type':_0x52a609,'subType':_0x2653e5,'id':_0x35d2b0,'author':_0x23a9c8,'creator':_0x23a9c8,'attributes':_0x4a8431,'onAttributesChange':_0x243e9b,'onAccept':(..._0x2e2549)=>this['getSuggestionCallback'](_0x52a609,_0x2653e5,'accept')(..._0x2e2549),'onDiscard':(..._0x51f7f7)=>this['getSuggestionCallback'](_0x52a609,_0x2653e5,'discard')(..._0x51f7f7)});}['registerCustomCallback'](_0x33cbb4,_0x11c794,_0x445c27,_0x523a96){const _0xef02d1=_0x33cbb4+':'+_0x11c794+':'+_0x445c27;this['_customCallbacks']['set'](_0xef02d1,_0x523a96);}['getSuggestionCallback'](_0x148d02,_0x4c3dab,_0x475ea2){const _0x1db330=_0x148d02+':'+_0x4c3dab+':'+_0x475ea2;return this['_customCallbacks']['get'](_0x1db330)||this['_defaultCallbacks']['get'](_0x148d02+':'+_0x475ea2);}['_registerDefaultCallbacks'](){const _0x5e595c=()=>!0x1,_0x499b8b=_0x5d5997=>{_0x5d5997['sort']((_0x12d492,_0x2074f8)=>_0x12d492['start']['isBefore'](_0x2074f8['start'])?0x1:-0x1),this['_model']['change'](_0x12242d=>{for(const _0x812219 of _0x5d5997){let _0xafbf95;_0xafbf95=_0x812219['end']['isAtEnd']&&_0x812219['end']['parent']==_0x812219['start']['nodeAfter']?_0x12242d['createSelection'](_0x812219['start']['nodeAfter'],'on'):_0x12242d['createSelection'](_0x812219),this['_model']['deleteContent'](_0xafbf95,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x29c3a2=(_0x1bacad,_0x3d4499)=>{_0x3d4499&&this['_model']['change'](_0x110163=>{const {commandName:_0x10a48b,commandParams:_0x459c4d=[]}=_0x3d4499,_0x319d89=_0x1bacad['map'](_0xd48cd4=>(Ft(_0xd48cd4)&&(_0xd48cd4=this['_model']['createRange'](_0xd48cd4['end'])),_0xd48cd4))['filter'](_0x2122c5=>'$graveyard'!==_0x2122c5['root']['rootName']);if(_0x319d89['length']<0x1)return;const _0x1ff071=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x10ca1f=>_0x206398['fromRange'](_0x10ca1f));_0x110163['setSelection'](_0x319d89);for(const _0x37a112 of this['_editor']['commands']['commands']())_0x37a112['refresh']();_0x459c4d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x10a48b,..._0x459c4d);const _0x266385=_0x1ff071['filter'](_0x4d34a7=>'$graveyard'!=_0x4d34a7['root']['rootName']);_0x266385['length']>0x0&&_0x110163['setSelection'](_0x266385);for(const _0x58dff6 of _0x1ff071)_0x58dff6['detach']();});},_0x1f8b6b=(_0x11cc20,_0x273010)=>0x1==_0x11cc20['length']&&0x1==_0x273010['length']&&_0x11cc20[0x0]['end']['isEqual'](_0x273010[0x0]['start']),_0x49b9a0=(_0x3204bc,_0x1e0400,_0x110f03,_0x4f3b75)=>Kt(_0x3204bc,_0x1e0400,_0x110f03,_0x4f3b75)?[_0x3204bc,_0x1e0400]:Kt(_0x1e0400,_0x3204bc,_0x4f3b75,_0x110f03)?[_0x1e0400,_0x3204bc]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e595c),this['_defaultCallbacks']['set']('insertion:discard',_0x499b8b),this['_defaultCallbacks']['set']('insertion:join',_0x1f8b6b),this['_defaultCallbacks']['set']('insertion:chain',_0x49b9a0),this['_defaultCallbacks']['set']('deletion:accept',_0x499b8b),this['_defaultCallbacks']['set']('deletion:discard',_0x5e595c),this['_defaultCallbacks']['set']('deletion:join',_0x1f8b6b),this['_defaultCallbacks']['set']('deletion:chain',_0x49b9a0),this['_defaultCallbacks']['set']('formatInline:accept',_0x29c3a2),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e595c),this['_defaultCallbacks']['set']('formatInline:join',_0x1f8b6b),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e595c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x29c3a2),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e595c),this['_defaultCallbacks']['set']('formatBlock:join',_0x1f8b6b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e595c),this['_defaultCallbacks']['set']('attribute:accept',_0x5e595c),this['_defaultCallbacks']['set']('attribute:discard',(_0x2d19cc,_0x46f4bc)=>{if(!_0x46f4bc)return;const _0x2a6728=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x234f6d=>{if(_0x46f4bc['key']==m)for(const _0x270713 of _0x2d19cc){const _0x218a9b=_0x270713['start']['nodeAfter'],_0x2a8848=_0x46f4bc['oldValue'];_0x234f6d['rename'](_0x218a9b,_0x2a8848);}else{if(_0x2a6728['_isBlockAttribute'](_0x46f4bc['key'])){for(const _0x48e2c8 of _0x2d19cc)void 0x0!==_0x46f4bc['oldValue']?_0x234f6d['setAttribute'](_0x46f4bc['key'],_0x46f4bc['oldValue'],_0x48e2c8['start']['nodeAfter']):_0x234f6d['removeAttribute'](_0x46f4bc['key'],_0x48e2c8['start']['nodeAfter']);}else{for(const _0x26356e of _0x2d19cc)_0x46f4bc['oldValue']?_0x234f6d['setAttribute'](_0x46f4bc['key'],_0x46f4bc['oldValue'],_0x26356e):_0x234f6d['removeAttribute'](_0x46f4bc['key'],_0x26356e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1f8b6b);}}function Gt(_0x46c8c5,_0x3e10c9,_0x8c67a6){for(const _0x225f78 of _0x3e10c9['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x225f78['root']==_0x225f78)return!0x1;if(!_0x8c67a6['containsItem'](_0x225f78))return!0x1;if(_0x46c8c5['isObject'](_0x225f78)||_0x46c8c5['isLimit'](_0x225f78))return!0x0;}return!0x1;}function Ft(_0x306d42){return _0x306d42['end']['parent']==_0x306d42['start']['nodeAfter']&&_0x306d42['end']['isAtStart'];}function Lt(_0x54495f,_0x2adbb1,_0x224fc5,_0x423d6c){const _0x380f1e=_0x4ee261=>!_0x4ee261['item']['is']('$textProxy')&&!_0x423d6c['isObject'](_0x4ee261['item']),_0x405601=_0x54495f['start']['getLastMatchingPosition'](_0x380f1e),_0x3ab651=_0x54495f['end']['getLastMatchingPosition'](_0x380f1e,{'direction':'backward'});return(!_0x54495f['start']['isEqual'](_0x405601)||!_0x54495f['end']['isEqual'](_0x3ab651))&&(_0x405601['isBefore'](_0x3ab651)?_0x224fc5['updateMarker'](_0x2adbb1,{'range':_0x224fc5['createRange'](_0x405601,_0x3ab651)}):_0x224fc5['removeMarker'](_0x2adbb1),!0x0);}function Jt(_0x993357){return _0x3d1ff7(_0x993357);}function Ht(_0x5c8e57){const _0x16a38d=_0x5c8e57['start']['nodeAfter'];return _0x16a38d&&_0x16a38d['is']('element');}function qt(_0x594a73,_0x5899be){return null==_0x594a73['end']['nodeBefore']&&_0x594a73['end']['parent']==_0x594a73['start']['nodeAfter']?zt(_0x594a73['start']['nodeAfter'],_0x5899be):_0x594a73;}function zt(_0x2b07a6,_0x455f22){const _0x55ea5f=_0x455f22['schema']['isObject'](_0x2b07a6)||_0x455f22['schema']['isSelectable'](_0x2b07a6);return _0x455f22['createRange'](_0x455f22['createPositionAt'](_0x2b07a6,'before'),_0x55ea5f?_0x455f22['createPositionAfter'](_0x2b07a6):_0x455f22['createPositionAt'](_0x2b07a6,'end'));}function Kt(_0x21ed39,_0x42d5b3,_0x46b48a,_0x1e1975){return!!Wt(_0x21ed39,_0x42d5b3)&&_0x46b48a['end']['isEqual'](_0x1e1975['start']);}function Wt(_0xba5a15,_0x197593){if(!_0xba5a15['_isDataLoaded']||!_0x197593['_isDataLoaded'])return!0x1;const _0x2fdf04=new Set(Object['keys'](_0xba5a15['attributes'])),_0x23df6f=new Set(Object['keys'](_0x197593['attributes']));if(_0x2fdf04['delete']('groupId'),_0x23df6f['delete']('groupId'),0x0==_0x2fdf04['size']&&0x0==_0x23df6f['size'])return!0x0;if(_0x2fdf04['size']!=_0x23df6f['size'])return!0x1;const _0x1a00a3={..._0xba5a15['attributes']},_0x24c461={..._0x197593['attributes']};return delete _0x1a00a3['groupId'],delete _0x24c461['groupId'],JSON['stringify'](_0x1a00a3)==JSON['stringify'](_0x24c461);}function Qt(_0x4cb1dc,_0x228f19){const _0x59e630=Xt(_0x4cb1dc['attributes']),_0x55a98e=Xt(_0x228f19);if(!_0x4cb1dc['_isDataLoaded'])return!0x1;for(const _0x194304 of Object['keys'](_0x55a98e))if(!_0x3f16fd(_0x59e630[_0x194304],_0x55a98e[_0x194304]))return!0x1;return!0x0;}function Xt(_0x1fa6e0){const _0x58d9aa=Object['assign']({},_0x1fa6e0);return delete _0x58d9aa['skipNestingCheck'],delete _0x58d9aa['tablePasteChainId'],_0x58d9aa;}class Ce extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x1f9d65(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x14f54c,_0xffb8aa,_0x24f7d4,_0x2e2fec){super(),this['model']=_0xffb8aa,this['view']=_0x24f7d4,this['commentThreadController']=_0x2e2fec,this['_editor']=_0x14f54c,this['_acceptCommand']=_0x14f54c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x14f54c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4a7e8c,_0x19de91)=>_0x4a7e8c||_0x19de91),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x242f71=>_0x242f71&&this['_editor']['model']['canEditAt'](_0xffb8aa['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2b725c=>_0x2b725c&&this['_editor']['model']['canEditAt'](_0xffb8aa['getRanges']())),this['_pendingAction']=null,_0x24f7d4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x24f7d4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x24f7d4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x24f7d4,'change:isDirty',()=>{_0x24f7d4['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 _0x5c94bc=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5c94bc);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x4491ae{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2214c7,_0x28488f,_0x479d67,_0x1273bd){super(_0x2214c7),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x50948d(_0x2214c7,o(_0x2214c7,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x28488f['authoredAt']),this['bind']('authoredAt')['to'](_0x28488f),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',_0x28488f,'authoredAt',this,'descriptionParts',(_0x49d981,_0x2bc050,_0x3ea48f)=>{const _0x1ed7e1=_0x3ea48f['map'](_0x24277d=>cs(_0x24277d['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x49d981-0x1,_0x28488f['author']['name'],_0x2bc050?_0x1273bd['formatDateTime'](_0x2bc050):'',new DOMParser()['parseFromString'](_0x1ed7e1,'text/html')['body']['textContent']]);}),this['focusables']=new _0x17c479(),this['focusTracker']=new _0x2f75fc(),this['keystrokes']=new _0xbd6a5(),this['focusCycler']=new _0x2fa3f5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4b6b85=>_0x4b6b85['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x28488f,this['_localUser']=_0x479d67,this['_config']=_0x1273bd,_0x1273bd['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2fe803(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x133ac6}=this['_config'];this['commentsListView']=new _0x133ac6(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',_0x2c1582=>_0x2c1582+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x351aed,_0x4f15c5)=>_0x351aed||!!_0x4f15c5);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4ce9a3}=this['_config'],_0x1e675d=new _0x4ce9a3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1e9bc7=_0x1e675d['commentInputView'];return _0x1e675d['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1e9bc7,'value',(_0x2e241c,_0x19ed00,_0x207ba1)=>!!_0x207ba1||_0x2e241c&&!_0x19ed00),_0x1e9bc7['on']('submit',(_0x5caa31,_0x258a0c)=>{this['fire']('addComment',_0x258a0c),_0x1e9bc7['editor']['setData']('');}),_0x1e9bc7['on']('cancel',()=>this['focus']()),_0x1e9bc7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1e675d;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x2cb311,_0x5255ee,_0xbc4ad2,_0x2a9efc){super(_0x2cb311,_0x5255ee,_0xbc4ad2,_0x2a9efc),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2b1f78=>_0x2b1f78&&_0x2b1f78[0x0]?_0x2b1f78[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2af88a,_0x3a9c9a)=>{let _0x124531='';for(const _0x26f18e of _0x2af88a)_0x124531+='<p>'+cs(_0x26f18e['content'],_0x26f18e['color'])+'</p>';return _0x3a9c9a?_0x124531:_0x509418(_0x124531,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2a9efc['SuggestionView'](_0x2cb311,_0x5255ee,{'formatDateTime':_0x2a9efc['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 _0x7d8afd=this['bindTemplate'],_0x44d9e4=[this['suggestionView']];return this['commentsListView']&&_0x44d9e4['push'](this['commentsListView']),this['commentThreadInputView']&&_0x44d9e4['push'](this['commentThreadInputView']),_0x44d9e4['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x7d8afd['if']('isActive','ck-suggestion-wrapper--active'),_0x7d8afd['to']('type',_0x7ef1c1=>'ck-suggestion-'+_0x7ef1c1),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':_0x7d8afd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x44d9e4};}['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 fe extends _0x4491ae{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5b64cd,_0x3ddf34,_0x2947ed){super(_0x5b64cd),this['_model']=_0x3ddf34,this['_config']=_0x2947ed,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3ddf34),this['acceptButton']=this['_createButton'](o(_0x5b64cd,'Accept\x20suggestion'),_0xc843ba['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5b64cd,'Discard\x20suggestion'),_0xc843ba['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5a4be6(_0x5b64cd,_0x3ddf34['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x17c479([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2f75fc(),this['keystrokes']=new _0xbd6a5(),this['focusCycler']=new _0x2fa3f5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x47892b=>_0x47892b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x46c3a6=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x46c3a6['innerHTML']=this['description'],this['on']('change:description',(_0x3d1f2d,_0x5bd676,_0x1e4a02)=>{_0x46c3a6['innerHTML']=_0x1e4a02;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x23dca9=this['bindTemplate'],_0x30594d=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x23dca9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x23dca9['to']('authoredAt',_0x8e8df2=>this['_config']['formatDateTime'](_0x8e8df2))}]}]},{'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']&&_0x30594d['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':_0x30594d}]};}['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'](_0x3dff72,_0x2e9899,_0x3021de,_0x5f0896,_0x26a6b6){const _0x1be552=new _0x4519e9(this['locale']);return _0x1be552['set']({'label':_0x3dff72,'icon':_0x2e9899,'tooltip':!0x0,'tooltipPosition':_0x26a6b6}),_0x1be552['extendTemplate']({'attributes':{'class':_0x3021de}}),_0x1be552['on']('execute',()=>{this['fire'](_0x5f0896,this['_model']['id']);}),_0x1be552;}['_setupKeyboardNavigation'](){const _0x3e69ae=this['element'];this['keystrokes']['listenTo'](_0x3e69ae);for(const _0x51db0f of this['focusables'])this['focusTracker']['add'](_0x51db0f['element']),this['keystrokes']['listenTo'](_0x51db0f['element']);this['keystrokes']['set']('enter',(_0xadf84c,_0x26b3f3)=>{_0x3e69ae===_0xadf84c['target']&&(this['focusCycler']['focusFirst'](),_0x26b3f3());}),this['keystrokes']['set']('esc',(_0x31bb9d,_0x2bbdd7)=>{_0x3e69ae!==_0x31bb9d['target']&&(this['focus'](),_0x2bbdd7());});}}var we='<!--\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-2025,\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 _0x252f3f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x344705,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf5f324){super(_0xf5f324),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x455792=this['editor']['config'];_0x455792['define']('trackChanges.SuggestionThreadView',pe),_0x455792['define']('trackChanges.SuggestionView',fe),_0x455792['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x455792['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x271d67,_0xcb862a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x37b2a6,_0x42ebf4]of this['_handleControllerBuffer']){const _0x14baf7=this['_suggestionToController']['has'](_0x37b2a6);_0x14baf7||_0x42ebf4?_0x14baf7&&_0x42ebf4&&this['_destroyController'](_0x37b2a6):this['_initializeController'](_0x37b2a6);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x271d67,_0xcb862a);}['init'](){const _0x248e43=this['editor'],_0x3d500a=_0x248e43['plugins']['get']('TrackChangesEditing'),_0x27f039=_0x248e43['plugins']['get']('Annotations'),_0x938f10=_0x248e43['plugins']['get']('EditorAnnotations'),_0x335c1e=_0x248e43['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x938f10['addSourceCollector'](()=>{const _0x3eec41=[];for(const [_0x2ab682,_0xe982e4]of Array['from'](this['_suggestionToController'])){const _0x28d9c0=_0x2ab682['getAllAdjacentSuggestions'](),_0x7a3220=[];for(const _0xeab3c0 of _0x28d9c0){if(!_0xeab3c0['isInContent'])continue;if(_0xeab3c0['isMultiRange']){_0x7a3220['push'](..._0xeab3c0['getRanges']());continue;}const _0x4ebf7e=_0xeab3c0['getFirstRange']();if(_0x7a3220['length']>0x0){const _0x2c5714=_0x7a3220[0x0]['getJoined'](_0x4ebf7e);if(_0x2c5714){_0x7a3220[0x0]=_0x2c5714;continue;}}_0x7a3220['push'](_0x4ebf7e);}_0x3eec41['push']([_0xe982e4['view'],_0x7a3220]);}return _0x3eec41;}),this['listenTo'](_0x3d500a,'suggestionLoaded',(_0x3947f4,_0x3e7e09)=>{this['listenTo'](_0x3e7e09,'change:previous',(_0x4245af,_0x200329,_0x1bf5da,_0x48b68d)=>{_0x3e7e09['isInContent']&&(null==_0x1bf5da?(this['_updateController'](_0x48b68d['head']),this['_handleSuggestionControllerDelayed'](_0x3e7e09,!0x1)):(this['_updateController'](_0x1bf5da['head']),null==_0x48b68d&&this['_handleSuggestionControllerDelayed'](_0x3e7e09,!0x0)));}),null!==_0x3e7e09['previous']?this['_updateController'](_0x3e7e09['head']):this['_handleSuggestionControllerDelayed'](_0x3e7e09,!0x1);}),this['listenTo'](_0x3d500a,'suggestionUnloaded',(_0x2cd209,_0xbac79c,_0x3f2725)=>{this['stopListening'](_0xbac79c,'change:previous'),this['_handleControllerBuffer']['delete'](_0xbac79c),this['_suggestionToController']['has'](_0xbac79c)&&this['_destroyController'](_0xbac79c),_0x3f2725&&this['_updateController'](_0x3f2725['head']);}),this['listenTo'](_0x3d500a,'suggestionChanged',(_0x2e5604,_0x18e1a6)=>{this['_updateController'](_0x18e1a6);}),this['listenTo'](_0x27f039,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x335c1e,'addComment',(_0x1b4694,{threadId:_0x28b2a7,isFromAdapter:_0x4d6010})=>{if(_0x4d6010||!_0x3d500a['hasSuggestion'](_0x28b2a7))return;const _0x5c222c=_0x3d500a['getSuggestion'](_0x28b2a7);this['_suggestionToController']['get'](_0x5c222c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x80e6a5=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x30fd1f;for(const _0x511c38 in _0x80e6a5){const _0x5280a3=_0x511c38,_0x48df5d=_0x80e6a5[_0x5280a3];if('trackChangesLicenseKeyValid'==_0x48df5d||'trackChangesLicenseKeyInvalid'==_0x48df5d||'trackChangesLicenseKeyExpired'==_0x48df5d||'trackChangesLicenseKeyDomainLimit'==_0x48df5d||'trackChangesLicenseKeyNotAllowed'==_0x48df5d||'trackChangesLicenseKeyEvaluationLimit'==_0x48df5d||'trackChangesLicenseKeyTrialLimit'==_0x48df5d||'trackChangesLicenseKeyUsageLimit'==_0x48df5d){delete _0x80e6a5[_0x5280a3],_0x30fd1f=_0x48df5d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x30fd1f&&_0x80e6a5['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x30fd1f&&_0x80e6a5['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x30fd1f&&_0x80e6a5['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x30fd1f&&_0x80e6a5['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x30fd1f&&_0x80e6a5['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x30fd1f&&_0x80e6a5['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x30fd1f&&_0x80e6a5['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1d508c=this['editor']['plugins']['get']('Annotations'),_0x3e6236=this['editor']['plugins']['get']('TrackChangesEditing'),_0x581ea8=Array['from'](_0x1d508c['activeAnnotations'],_0x5c81ea=>_0x5c81ea['innerView'])['filter'](_0x2a9042=>this['_viewToController']['has'](_0x2a9042)),_0x38c326=[];for(const _0x196ade of _0x581ea8){const _0xc81f32=this['_viewToController']['get'](_0x196ade)['model']['getAllAdjacentSuggestions']();_0x38c326['push'](..._0xc81f32['reduce']((_0x1511a7,_0xd550f6)=>[..._0x1511a7,..._0xd550f6['getMarkerNames']()],[]));}_0x3e6236['activeMarkers']=_0x38c326;}['_addUIComponentsToFactory'](){const _0x15ca5b=this['editor'],_0x19a711=_0x15ca5b['locale'],_0x4a7f99=o(_0x19a711,'Track\x20changes'),_0x529e2d=new _0x192eee([{'type':'switchbutton','model':new _0x416284({'withText':!0x0,'isToggleable':!0x0,'label':_0x4a7f99,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x416284({'withText':!0x0,'label':o(_0x19a711,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x416284({'withText':!0x0,'label':o(_0x19a711,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x416284({'withText':!0x0,'label':o(_0x19a711,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x416284({'withText':!0x0,'label':o(_0x19a711,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x15ca5b['plugins']['has']('TrackChangesPreview')&&_0x529e2d['addMany']([{'type':'separator'},{'type':'button','model':new _0x416284({'withText':!0x0,'label':o(_0x19a711,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xe2ddfe of _0x529e2d)if(ke(_0xe2ddfe)){const _0x2647d2=_0x15ca5b['commands']['get'](_0xe2ddfe['model']['commandName']);_0xe2ddfe['model']['bind']('isOn','isEnabled')['to'](_0x2647d2,'value','isEnabled');}_0x15ca5b['ui']['componentFactory']['add']('trackChanges',_0x5242f8=>this['_createToolbarButton'](_0x5242f8,_0x529e2d,_0x4a7f99)),_0x15ca5b['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3cb968=>this['_createMenuBarMenu'](_0x3cb968,_0x529e2d,_0x4a7f99));}['_createToolbarButton'](_0x4b5d9e,_0x2671e8,_0x45b5bc){const _0x316b73=_0x1d384a(_0x4b5d9e,_0x3c44e5),_0x4023ed=this['editor']['commands']['get']('trackChanges');_0x316b73['buttonView']['set']({'tooltip':_0x45b5bc,'label':_0x45b5bc,'icon':we}),_0x316b73['buttonView']['bind']('isOn')['to'](_0x4023ed,'value'),_0x316b73['buttonView']['on']('execute',()=>{_0x4023ed['execute'](),this['editor']['editing']['view']['focus']();}),_0x4de973(_0x316b73,_0x2671e8,{'role':'menu'});const _0x2085d0=[];for(const _0x913984 of _0x2671e8)ke(_0x913984)&&_0x2085d0['push'](this['editor']['commands']['get'](_0x913984['model']['commandName']));const _0x4c050e=_0x316b73['buttonView'];return _0x4c050e['actionView']['unbind']('isEnabled'),_0x4c050e['arrowView']['unbind']('isEnabled'),_0x4c050e['actionView']['bind']('isEnabled')['to'](_0x4023ed,'isEnabled'),_0x4c050e['arrowView']['bind']('isEnabled')['toMany'](_0x2085d0,'isEnabled',(..._0x4b467c)=>_0x4b467c['some'](_0x3accba=>_0x3accba)),_0x316b73['on']('execute',_0x160927=>{this['editor']['execute'](_0x160927['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x316b73;}['_createMenuBarMenu'](_0x12c87e,_0x354bc9,_0x4df6fb){const _0xbadb4a=new _0x43f88d(_0x12c87e),_0x5a15c5=this['editor']['commands']['get']('trackChanges');_0xbadb4a['buttonView']['set']({'label':_0x4df6fb,'icon':we});const _0x7daf8d=new _0xd2408e(_0x12c87e);for(const _0x5237f5 of _0x354bc9){if('separator'==_0x5237f5['type']){_0x7daf8d['items']['add'](new _0x5534e8(_0x12c87e));continue;}const _0x40fce4=new _0x4ccbef(_0x12c87e,_0xbadb4a),_0x30da35=new _0xe3bb37(_0x12c87e),_0x14f742=_0x5237f5['model'];_0x30da35['bind'](...Object['keys'](_0x14f742))['to'](_0x14f742),_0x30da35['delegate']('execute')['to'](_0xbadb4a),_0x30da35['on']('execute',()=>{this['editor']['execute'](_0x14f742['commandName']),this['editor']['editing']['view']['focus']();}),_0x40fce4['children']['add'](_0x30da35),_0x7daf8d['items']['add'](_0x40fce4);}return _0xbadb4a['bind']('isEnabled')['to'](_0x5a15c5,'isEnabled'),_0xbadb4a['panelView']['children']['add'](_0x7daf8d),_0xbadb4a;}['_initializeController'](_0x1913e0){const _0x247be1=this['editor'],_0x30eb04=_0x247be1['config'],_0x50f658=_0x247be1['plugins']['get']('Annotations'),_0x1c6727=_0x247be1['plugins']['get']('CommentsRepository'),_0x625a5=_0x247be1['plugins']['get']('EditorAnnotations'),_0x425d41=_0x247be1['plugins']['get'](_0x344705)['me'],_0x48c35e=_0x30eb04['get']('trackChanges')['SuggestionThreadView'],_0x43e52b=_0x30eb04['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x377ca6,CommentThreadInputView:_0x486fa0}=_0x247be1['plugins']['get']('CommentsUI');let _0x597dae,_0x11bd6c,_0x5315ea;this['_annotationViews']['has'](_0x1913e0['id'])?(_0x11bd6c=this['_annotationViews']['get'](_0x1913e0['id']),_0x597dae=_0x11bd6c['mainView']):(_0x597dae=new _0x48c35e(_0x247be1['locale'],_0x1913e0,_0x425d41,{'disableComments':this['_disableComments'],'editorConfig':{..._0x30eb04['get']('comments.editorConfig'),'licenseKey':_0x30eb04['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x30eb04['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x30eb04['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x30eb04['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0xdcaabe(_0x30eb04['get']('locale')),'CommentView':_0x30eb04['get']('comments')['CommentView'],'CommentsListView':_0x377ca6,'CommentThreadInputView':_0x486fa0,'SuggestionView':_0x43e52b}),_0x597dae['suggestionView']['acceptButton']['on']('execute',()=>{_0x247be1['editing']['view']['focus']();}),_0x597dae['suggestionView']['discardButton']['on']('execute',()=>{_0x247be1['editing']['view']['focus']();}),_0x11bd6c=_0x50f658['createAnnotationView'](this['editor']['locale'],_0x597dae),_0x11bd6c['bind']('isDirty')['to'](_0x597dae,'isDirty'),_0x11bd6c['bind']('length')['to'](_0x597dae),_0x11bd6c['bind']('type')['to'](_0x597dae,'type',_0xa5a816=>'suggestion-'+_0xa5a816),_0x597dae['on']('escape',()=>{_0x5315ea['fire']('escape');}),this['_annotationViews']['set'](_0x1913e0['id'],_0x11bd6c));const _0x1a701d=_0x1c6727['createCommentThreadController'](_0x1913e0['commentThread'],_0x597dae),_0xb57218=new Ce(_0x247be1,_0x1913e0,_0x597dae,_0x1a701d),_0xd1834d=_0x1913e0['getAllAdjacentSuggestions']()['filter'](_0x264622=>_0x264622['isInContent']);_0x597dae['descriptionParts']=_0x247be1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xd1834d),this['_suggestionToController']['set'](_0x1913e0,_0xb57218),this['_viewToController']['set'](_0x597dae,_0xb57218),_0x5315ea=_0x50f658['createAnnotation']({'view':_0x11bd6c,'target':()=>{const _0x5968e1=[],_0x46e071=_0x1913e0['getAllAdjacentSuggestions']()['filter'](_0x104264=>_0x104264['isInContent']);for(const _0x9bbf2a of _0x46e071)_0x5968e1['push'](..._0x9bbf2a['getMarkers']());return _0x470613(_0x247be1['editing'],_0x5968e1);},'type':()=>'suggestion-'+_0xb57218['view']['type']}),_0x1c6727['_bindAnnotationToEditors'](_0x597dae,_0x5315ea),_0x50f658['add'](_0x5315ea),_0x625a5['registerAnnotation'](_0x5315ea);}['_destroyController'](_0x2b416b){const _0x3c0cb5=this['editor']['plugins']['get']('CommentsRepository'),_0x73fda8=this['editor']['plugins']['get']('Annotations'),_0x463a56=this['_suggestionToController']['get'](_0x2b416b),_0x22bdf5=_0x463a56['view'],_0x5df6e8=_0x73fda8['getByInnerView'](_0x22bdf5);_0x3c0cb5['_unbindEditors'](_0x22bdf5),_0x5df6e8&&_0x73fda8['remove'](_0x5df6e8),this['_suggestionToController']['delete'](_0x2b416b),this['_viewToController']['delete'](_0x22bdf5),_0x463a56['destroy']();}['_updateController'](_0x1df241){if(!_0x1df241['isInContent']||!this['_suggestionToController']['has'](_0x1df241))return;const _0x478757=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3968d0=this['_suggestionToController']['get'](_0x1df241),_0x42630f=_0x1df241['getAllAdjacentSuggestions']();_0x3968d0['view']['descriptionParts']=_0x478757['descriptionFactory']['getDescriptions'](_0x42630f);}['destroy'](){for(const _0x5c466b of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c466b);for(const _0x34ef9e of this['_annotationViews']['values']())_0x34ef9e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x372a08){return'model'in _0x372a08;}class k extends _0x252f3f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x338b3f){this['editor']['plugins']['get'](p)['adapter']=_0x338b3f;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x31ab93){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x31ab93);}['getSuggestions']({skipNotAttached:_0x489dc7=!0x1,toJSON:_0x245d83=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x489dc7,'toJSON':_0x245d83});}['getSuggestion'](_0x317d28){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x317d28);}}const w=['Pagination'];class T extends _0x252f3f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x251f33=this['editor'];if(_0x251f33['config']['define']('trackChangesData.editorCreator',_0x41b5b1=>{const _0xab2f3c=_0x251f33['model']['document']['getRootNames']()['reduce']((_0x1e46c4,_0x139ecc)=>(_0x1e46c4[_0x139ecc]='',_0x1e46c4),{});return _0x251f33['constructor']['create'](_0xab2f3c,_0x41b5b1);}),'function'!=typeof _0x251f33['config']['get']('trackChangesData')['editorCreator'])throw new _0x507dce('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4ec968){return N(this['editor'],!0x0,_0x4ec968);}['getDataWithDiscardedSuggestions'](_0x4d46bd){return N(this['editor'],!0x1,_0x4d46bd);}}class D extends _0x252f3f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x6d0a24){function _0x526355(_0x37a80d){return _0x37a80d['map'](_0x3d258f=>String['fromCharCode'](_0x3d258f))['join']('');}super(_0x6d0a24),this['result']='end',_0x6d0a24[_0x526355([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x526355([0x76,0x69,0x65,0x77])][_0x526355([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x526355([0x61,0x75,0x74,0x6f]),_0x6d0a24[_0x526355([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x526355([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x526355([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x526355([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x526355([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0xe912d7){return void 0x0!==_0xe912d7['getRootsAttributes'];}async function N(_0x132c5a,_0x1d860c,_0x5d9e86){const _0x370c7d=_0x503ee0(_0x132c5a,w);_0x370c7d['plugins']['push'](p,D),_0x370c7d['rootsAttributes']=Fe(_0x132c5a)?_0x132c5a['getRootsAttributes']():void 0x0;const _0x39558f=document['createDocumentFragment'](),_0x35c120=_0x132c5a['config']['get']('trackChangesData')['editorCreator'],_0x4cc4a8=await _0x35c120(_0x370c7d,()=>function(_0x44302e){const _0x7418a5=document['createElement']('div');return _0x44302e['appendChild'](_0x7418a5),_0x7418a5;}(_0x39558f));!function(_0x37951c,_0x1f39b9){const _0x1f741f=_0x37951c['model']['document']['getRootNames']()['reduce']((_0x5d0214,_0x56f3b1)=>(_0x5d0214[_0x56f3b1]=_0x37951c['data']['get']({'rootName':_0x56f3b1}),_0x5d0214),{}),_0x1c1dd3=_0x37951c['plugins']['get']('Users')['users']['map'](_0x1a4ee3=>({'id':_0x1a4ee3['id'],'name':_0x1a4ee3['name']})),_0x112c48=_0x37951c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x544b6a=_0x37951c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x481c5c=_0x1f39b9['plugins']['get']('Users'),_0x31dee7=_0x1f39b9['plugins']['get']('TrackChangesEditing'),_0x15d06c=_0x1f39b9['plugins']['get']('CommentsRepository');for(const _0x52b003 of _0x15d06c['getCommentThreads']())_0x52b003['remove']();for(const _0x4df56c of _0x1c1dd3)_0x481c5c['getUser'](_0x4df56c['id'])||_0x481c5c['addUser'](_0x4df56c);_0x481c5c['me']||_0x481c5c['useAnonymousUser']();for(const _0x5980bd of _0x544b6a)_0x15d06c['addCommentThread'](_0x5980bd);for(const _0x4afb78 of _0x112c48)_0x31dee7['addSuggestionData'](_0x4afb78);_0x1f39b9['data']['set'](_0x1f741f);}(_0x132c5a,_0x4cc4a8),_0x4cc4a8['execute'](_0x1d860c?'acceptAllSuggestions':'discardAllSuggestions');const _0x3f6081=Fe(_0x4cc4a8)?_0x4cc4a8['getFullData'](_0x5d9e86):_0x4cc4a8['data']['get'](_0x5d9e86);return await _0x4cc4a8['destroy'](),_0x3f6081;}class Me extends _0x4491ae{['options'];constructor(_0x1b53bd,_0x46e85f){super(_0x1b53bd),this['options']=_0x46e85f,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x1ca7ee,_0x17d42b){if(!this['element'])return;const _0x186330=[];for(const [_0x38e46c,_0x3f0fcf]of _0x1ca7ee){const _0x3108ec=document['createElement']('div');_0x3108ec['setAttribute']('data-ck-root-name',_0x38e46c),_0x3108ec['className']=_0x3f0fcf['classes']+'\x20ck-track-changes-preview__root-container',_0x3108ec['innerHTML']=_0x3f0fcf['content'],_0x186330['push'](_0x3108ec);}_0x17d42b(this['element'],_0x186330),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x1c9a99){super(_0x1c9a99),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1e196b=this['editor'],_0x27d902=_0x1e196b['locale'],_0x3069bf=_0x1e196b['plugins']['get']('Dialog');let _0x39a781;const _0x537187=function(_0x25d94c){const _0x1d128e={};if('editables'in _0x25d94c['ui']['view']){for(const [_0x129ccc,_0x229f40]of Object['entries'](_0x25d94c['ui']['view']['editables']))_0x1d128e[_0x129ccc]=_0x229f40['element'];}else _0x1d128e[_0x25d94c['model']['document']['getRootNames']()[0x0]]=_0x25d94c['ui']['view']['editable']['element'];return _0x1d128e;}(_0x1e196b),_0x140b51=function(_0x5104da){let _0x615b06=0x0;for(const _0x22a59f of Object['values'](_0x5104da))_0x615b06=Math['max'](_0x615b06,_0x22a59f['getBoundingClientRect']()['width']);let _0x2aa5d0=0x0;for(const _0x46e0d2 of Object['values'](_0x5104da))_0x2aa5d0+=_0x46e0d2['getBoundingClientRect']()['height'];const _0x180129=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x28922b=Math['min'](_0x2aa5d0,_0x180129);return{'width':_0x615b06,'height':_0x28922b};}(_0x537187);_0x3069bf['show']({'id':'finalContentPreview','title':o(_0x27d902,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x27d902,{'dialogRects':_0x140b51}),'onHide':()=>{_0x39a781['detachFromDom']();},'onShow':()=>{_0x1e196b['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1d0c18=>{const _0x2c5049=this['_standarizeRootsData'](_0x1d0c18,_0x1e196b,_0x537187);_0x3069bf['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2c5049,_0x1e196b['config']['get']('trackChanges.preview.renderFunction'));}),_0x39a781=new _0x2f9e23(_0x27d902,[_0x3069bf['view']]),_0x39a781['attachToDom'](),_0x39a781['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1e196b['once']('destroy',()=>{_0x39a781['detachFromDom']();});const _0x3ba87e=_0x3069bf['view']['headerView']['class'];_0x3069bf['view']['headerView']['class']=_0x3ba87e?_0x3ba87e+'\x20ck-reset_all':'ck-reset_all',_0x3069bf['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3069bf['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2d9ff2=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x48768d=_0x2d9ff2['previewMode'],_0x47a133={};if('$labels'===_0x48768d){for(const _0x475e01 of _0x2d9ff2['getMergeFieldsIds']())_0x47a133[_0x475e01]=_0x2d9ff2['getLabel'](_0x475e01)||_0x475e01;}else{const _0x59441f='$defaultValues'===_0x48768d?_0x2d9ff2['getDefaultValues']():_0x2d9ff2['getDataSetValues'](_0x48768d,!0x0);for(const _0x2c51a2 of Object['entries'](_0x59441f)){const [_0x8bdb34,_0x23e31d]=_0x2c51a2;_0x47a133[_0x8bdb34]=null!==_0x23e31d?_0x23e31d:_0x2d9ff2['getLabel'](_0x8bdb34)||_0x8bdb34;}}return{'mergeFieldsData':_0x47a133};}['_standarizeRootsData'](_0xe5d413,_0x13f7e4,_0x463cbe){let _0xc4ab83;if('string'==typeof _0xe5d413){const _0x18d3a8=_0x13f7e4['model']['document']['getRootNames']()[0x0];_0xc4ab83={[_0x18d3a8]:_0xe5d413};}else _0xc4ab83=_0xe5d413;const _0x54834a=this['_fixMediaEmbeds'](_0xc4ab83,_0x13f7e4),_0x5a7511=function(_0x37a25a,_0x3d45cd){for(const [_0x185326,_0x6d82f]of _0x37a25a)_0x6d82f['classes']=_0x3d45cd[_0x185326]['classList']['value']['replace']('ck-focused','');return _0x37a25a;}(this['_sortRoots'](_0x13f7e4)['reduce']((_0x4ec0c8,_0x3e15fb)=>(_0x4ec0c8['push']([_0x3e15fb,{'content':_0x54834a[_0x3e15fb],'classes':''}]),_0x4ec0c8),[]),_0x463cbe);return _0x5a7511;}['_fixMediaEmbeds'](_0x5a4611,_0x382b76){if(!_0x382b76['plugins']['has']('MediaEmbedEditing'))return _0x5a4611;const _0x418140=_0x382b76['plugins']['get']('MediaEmbedEditing');for(const [_0x5dde07,_0x160fd8]of Object['entries'](_0x5a4611)){const _0x54a182=document['createElement']('div');_0x54a182['innerHTML']=_0x160fd8,(_0x54a182['querySelectorAll']('figure.media')['forEach'](_0x4ddcf8=>{const _0x18b277=_0x4ddcf8['querySelector']('oembed');if(_0x18b277){const _0x253475=_0x18b277['getAttribute']('url');if(_0x253475){const _0x3da8bd=_0x418140['registry']['getMediaViewElement'](new _0x5c0621(_0x382b76['editing']['view']['document']),_0x253475,{'elementName':'','renderForEditingView':!0x0}),_0x4000b7=document['createElement']('div');_0x4000b7['classList']['add']('ck-media__wrapper'),_0x3da8bd['render'](_0x4000b7,_0x382b76['editing']['view']['domConverter']),_0x18b277['replaceWith'](_0x4000b7);}}}),_0x5a4611[_0x5dde07]=_0x54a182['innerHTML']);}return _0x5a4611;}['_sortRoots'](_0x18959d){if(!function(_0x297cb1){return void 0x0!==_0x297cb1['getRootsAttributes'];}(_0x18959d))return _0x18959d['model']['document']['getRootNames']();const _0x2c5bf4=[],_0x4c85c6=new Map();for(const _0x26c74c of _0x18959d['model']['document']['getRootNames']()){const _0x26c159=_0x18959d['editing']['view']['getDomRoot'](_0x26c74c)['getClientRects']()['item'](0x0);_0x2c5bf4['push'](_0x26c74c),_0x4c85c6['set'](_0x26c74c,_0x26c159);}return _0x2c5bf4['sort']((_0x104d14,_0x3361ba)=>{const _0x2615dc=_0x4c85c6['get'](_0x104d14),_0x238cea=_0x4c85c6['get'](_0x3361ba);return _0x2615dc['y']-_0x238cea['y']||_0x2615dc['x']-_0x238cea['x'];}),_0x2c5bf4;}}class te extends _0x252f3f{static get['requires'](){return[T,_0x9ef329];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d5be4){super(_0x2d5be4),_0x2d5be4['commands']['add']('previewFinalContent',new re(this['editor'])),_0x2d5be4['config']['define']('trackChanges.preview.renderFunction',(_0x23b9e8,_0xe360f4)=>{for(const _0x557800 of _0xe360f4)_0x23b9e8['appendChild'](_0x557800);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|