@ckeditor/ckeditor5-track-changes 44.0.0-alpha.10 → 44.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +10 -10
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x422a62(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4dc055,_0x34297d){super(),this['id']=_0x34297d['id'],this['type']=_0x34297d['type'],this['subType']=_0x34297d['subType']||null,this['author']=_0x34297d['author'],this['creator']=_0x34297d['creator']||_0x34297d['author'],this['isExternal']=Boolean(_0x34297d['attributes']&&_0x34297d['attributes']['@external']),this['data']=null,this['_model']=_0x4dc055,this['_onAccept']=_0x34297d['onAccept'],this['_onDiscard']=_0x34297d['onDiscard'],this['_onAttributesChange']=_0x34297d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x34297d['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 _0x447da5=this;for(;_0x447da5['previous'];)_0x447da5=_0x447da5['previous'];return _0x447da5;}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'](_0x350c8c){this['_markerNames']['add'](_0x350c8c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x17f2ee=>this['_model']['markers']['get'](_0x17f2ee))['filter'](_0x518dc4=>_0x518dc4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x47a4b6=>{for(const _0x35ba58 of this['getMarkers']())_0x47a4b6['removeMarker'](_0x35ba58);}),this['_markerNames']['clear']();}['removeMarker'](_0xfba9bc){this['_model']['change'](_0x1ac73a=>{_0x1ac73a['removeMarker'](_0xfba9bc);}),this['_markerNames']['delete'](_0xfba9bc);}['addRange'](_0x437c3e){const _0x510359='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x510359),this['_model']['change'](_0x2c8257=>{_0x2c8257['addMarker'](_0x510359,{'range':_0x437c3e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4236ba){for(const _0x8ae7d8 of this['getRanges']())if(_0x8ae7d8['isIntersecting'](_0x4236ba))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x51f31d=>_0x51f31d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3e0e8f,_0xb03b3d)=>[..._0x3e0e8f,..._0xb03b3d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x10baae=this['getRanges']();if(0x1!=_0x10baae['length'])return null;const _0x28cac0=_0x10baae[0x0],_0x3505c2=_0x28cac0['start']['nodeAfter'],_0x6f8d7e=_0x28cac0['end']['nodeBefore'];return _0x3505c2 instanceof _0x47838e?_0x3505c2!=_0x6f8d7e?null:_0x3505c2: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 _0x3f534e=[];let _0x12cf8c=this['head'];for(;_0x12cf8c;)_0x3f534e['push'](_0x12cf8c),_0x12cf8c=_0x12cf8c['next'];return _0x3f534e;}['setAttribute'](_0x404de3,_0x3b748a){const _0x3dbdf1=_0x4f7656(this['attributes']);_0x464cfc(_0x3dbdf1,_0x404de3,_0x3b748a),_0x32835f(_0x3dbdf1,this['attributes'])||(this['attributes']=_0x3dbdf1,this['_onAttributesChange'](_0x3dbdf1));}['removeAttribute'](_0x5ddaf7){const _0x564473=_0x4f7656(this['attributes']);_0x224bdc(_0x564473,_0x5ddaf7),_0x32835f(_0x564473,this['attributes'])||(this['attributes']=_0x564473,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 _0x13811a()['substr'](0x1,0x5);}}function o(_0x351c39,_0x2017f6,_0x32e7d1){const _0x47f968=_0x351c39['t'],t=_0x351c39['t'];switch(_0x2017f6){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x32e7d1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x32e7d1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x32e7d1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x32e7d1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x32e7d1);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',_0x32e7d1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x32e7d1);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x32e7d1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x32e7d1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x32e7d1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x32e7d1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x32e7d1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x32e7d1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x32e7d1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x32e7d1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x32e7d1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x32e7d1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x32e7d1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x32e7d1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x32e7d1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x32e7d1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x32e7d1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x32e7d1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x32e7d1);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'},_0x32e7d1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x32e7d1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x32e7d1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x32e7d1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x32e7d1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x32e7d1);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'},_0x32e7d1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x32e7d1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x32e7d1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x32e7d1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x32e7d1);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'},_0x32e7d1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x32e7d1);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'},_0x32e7d1);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'},_0x32e7d1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x32e7d1);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'},_0x32e7d1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x32e7d1);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'},_0x32e7d1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x32e7d1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x32e7d1);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'},_0x32e7d1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x32e7d1);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 _0x47f968({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x32e7d1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x47f968({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x32e7d1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x32e7d1);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'},_0x32e7d1);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'},_0x32e7d1);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'},_0x32e7d1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2017f6;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3d9c04,_0x2cb4fd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3d9c04,this['_locale']=_0x2cb4fd;}['getDescriptions'](_0x56f98a){const _0x19708=[],_0x46b4b4=new Set(),_0x5b3582=new Set();for(let _0x43d527=0x0;_0x43d527<_0x56f98a['length'];_0x43d527++){const _0x3a2b10=_0x56f98a[_0x43d527];if(!_0x3a2b10['isInContent'])continue;const _0x3de39c=this['_handleCustomCallbackDescription'](_0x3a2b10);if(_0x3de39c){if(null!=_0x3a2b10['subType']){if(_0x46b4b4['has'](_0x3a2b10['subType']))continue;_0x46b4b4['add'](_0x3a2b10['subType']);}_0x19708['push'](_0x3de39c);}else{if('attribute'!=_0x3a2b10['type'])'insertion'!=_0x3a2b10['type']&&'deletion'!=_0x3a2b10['type']||this['_handleInsertRemoveSuggestionDescription'](_0x19708,_0x3a2b10,_0x56f98a[_0x43d527+0x1]);else{const _0x5bc951=_0x3a2b10['data']['key'];if(_0x5b3582['has'](_0x5bc951))continue;_0x5b3582['add'](_0x3a2b10['data']['key']),_0x5bc951==m?this['_handleRenameSuggestionDescription'](_0x19708,_0x3a2b10):this['_handleAttributeSuggestionDescription'](_0x19708,_0x3a2b10);}}}return this['_resolveDescriptionItems'](_0x19708);}['registerDescriptionCallback'](_0x582b88){this['_customCallbacks']['push'](_0x582b88);}['registerElementLabel'](_0x35aed8,_0x43cc36,_0x52b58e=_0x5c2694['normal']){'function'==typeof _0x35aed8?_0x142465(this['_itemLabelsCallbacks'],{'matchingCallback':_0x35aed8,'label':_0x43cc36,'priority':_0x52b58e}):this['_itemLabels']['set'](_0x35aed8,_0x43cc36);}['registerAttributeLabel'](_0x51215f,_0x472c2a){this['_attributeLabels']['set'](_0x51215f,_0x472c2a);}['getItemLabel'](_0x4021ea,_0x54898a=0x1){let _0x18e87d;for(const _0x2b7f48 of this['_itemLabelsCallbacks'])if(_0x2b7f48['matchingCallback'](_0x4021ea)){_0x18e87d=_0x2b7f48['label'];break;}return _0x18e87d||(_0x18e87d=this['_itemLabels']['get'](_0x4021ea['name'])),_0x18e87d?_0x18e87d(_0x54898a):0x1!==_0x54898a?_0x54898a+'\x20'+_0x4021ea['name']+'s':''+_0x4021ea['name'];}['_addDescriptionItems'](_0x4876da,_0xe9dfd3){const _0x1dc4af=_0xe9dfd3['getFirstRange']()['getWalker'](),_0x6787ab='insertion'==_0xe9dfd3['type']?'add':'remove';for(const _0x136009 of _0x1dc4af){const _0x188ba8=_0x136009['item'],_0x28cba4=_0x4876da[_0x4876da['length']-0x1];if(_0x188ba8['is']('$textProxy'))_0x28cba4&&_0x28cba4['type']['indexOf']('Container')>-0x1&&_0x4876da['pop'](),_0x28cba4&&'text'==_0x28cba4['type']?_0x28cba4[_0x6787ab]+=_0x188ba8['data']:_0x4876da['push']({'type':'text','add':'add'==_0x6787ab?_0x188ba8['data']:'','remove':'remove'==_0x6787ab?_0x188ba8['data']:''});else{if(this['_schema']['isObject'](_0x188ba8)){const _0x244317=_0x188ba8;if(_0x28cba4&&_0x28cba4['type']['indexOf']('Container')>-0x1&&_0x4876da['pop'](),'elementEnd'==_0x136009['type'])continue;_0x28cba4&&_0x28cba4['type']==_0x6787ab+'Object'&&_0x28cba4['element']['name']==_0x244317['name']?_0x28cba4['quantity']++:_0x4876da['push']({'type':_0x6787ab+'Object','element':_0x244317,'quantity':0x1}),_0x1dc4af['skip'](_0x25c493=>!('elementEnd'==_0x25c493['type']&&_0x25c493['item']==_0x188ba8));}else{if(this['_schema']['checkChild'](_0x188ba8,'$text')||_0x188ba8['is']('element','softBreak')){const _0x50e6f7=_0x188ba8;if('add'==_0x6787ab&&'elementStart'==_0x136009['type']||'remove'==_0x6787ab&&'elementEnd'==_0x136009['type'])continue;if(_0x28cba4&&-0x1==_0x28cba4['type']['indexOf']('Container')){'text'==_0x28cba4['type']&&(_0x28cba4[_0x6787ab]+='\x0a');continue;}let _0x28a353;if(_0x28a353='add'==_0x6787ab?_0x50e6f7['nextSibling']&&!this['_schema']['isObject'](_0x50e6f7['nextSibling'])?_0x50e6f7['nextSibling']:null:_0x50e6f7['previousSibling']&&!this['_schema']['isObject'](_0x50e6f7['previousSibling'])?_0x50e6f7['previousSibling']:null,_0x50e6f7['isEmpty']||_0x28a353&&_0x28a353['isEmpty']){const _0x57970d=_0x28a353&&_0x28a353['isEmpty']?_0x28a353:_0x50e6f7;_0x28cba4&&_0x28cba4['type']==_0x6787ab+'EmptyContainer'&&_0x28cba4['element']['name']==_0x57970d['name']?_0x28cba4['quantity']++:_0x4876da['push']({'type':_0x6787ab+'EmptyContainer','element':_0x57970d,'quantity':0x1});}else _0x4876da['push']({'type':_0x6787ab+'Container','element':_0x50e6f7});}}}}}['_resolveDescriptionItems'](_0x313d3b){const _0x456ee4=this['_locale'],_0x191626=[],_0x5971da=[],_0x2ac063=[];for(const _0x15f220 of _0x313d3b)switch(_0x15f220['type']){case'text':if(_0x15f220['add']=_0x15f220['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x15f220['remove']=_0x15f220['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x15f220['add']&&''!=_0x15f220['remove']){_0x191626['push']({'type':'replace','content':o(_0x456ee4,'REPLACE_TEXT',['\x22'+_0x15f220['remove']+'\x22','\x22'+_0x15f220['add']+'\x22'])});continue;}if(null!=_0x15f220['add']['match'](/^ +$/)){_0x191626['push']({'type':'insertion','content':o(_0x456ee4,'*Insert:*\x20%0',o(_0x456ee4,'ELEMENT_SPACE',_0x15f220['add']['length']))});continue;}if(null!=_0x15f220['remove']['match'](/^ +$/)){_0x191626['push']({'type':'deletion','content':o(_0x456ee4,'*Remove:*\x20%0',o(_0x456ee4,'ELEMENT_SPACE',_0x15f220['remove']['length']))});continue;}if(''!=_0x15f220['add']){_0x191626['push']({'type':'insertion','content':o(_0x456ee4,'*Insert:*\x20%0','\x22'+_0x15f220['add']+'\x22')});continue;}_0x191626['push']({'type':'deletion','content':o(_0x456ee4,'*Remove:*\x20%0','\x22'+_0x15f220['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x191626['push']({'type':'insertion','content':o(_0x456ee4,'*Insert:*\x20%0',this['getItemLabel'](_0x15f220['element'],_0x15f220['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x191626['push']({'type':'deletion','content':o(_0x456ee4,'*Remove:*\x20%0',this['getItemLabel'](_0x15f220['element'],_0x15f220['quantity']))});continue;case'addContainer':_0x191626['push']({'type':'insertion','content':o(_0x456ee4,'*Split:*\x20%0',this['getItemLabel'](_0x15f220['element'],_0x15f220['quantity']))});continue;case'removeContainer':_0x191626['push']({'type':'deletion','content':o(_0x456ee4,'*Merge:*\x20%0',this['getItemLabel'](_0x15f220['element'],_0x15f220['quantity']))});continue;case'addFormat':_0x5971da['push'](_0x15f220['key']);continue;case'removeFormat':_0x2ac063['push'](_0x15f220['key']);continue;default:_0x191626['push'](_0x15f220);}if(_0x5971da['length']){const _0x37a4e1=_0x5971da['map'](_0x50f97b=>this['_attributeLabels']['has'](_0x50f97b)?this['_attributeLabels']['get'](_0x50f97b):_0x50f97b)['join'](',\x20');_0x191626['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x37a4e1)});}if(_0x2ac063['length']){const _0x1c6502=_0x2ac063['map'](_0x460323=>this['_attributeLabels']['has'](_0x460323)?this['_attributeLabels']['get'](_0x460323):_0x460323)['join'](',\x20');_0x191626['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1c6502)});}return _0x191626;}['_handleCustomCallbackDescription'](_0x4588a7){for(const _0xa732d0 of this['_customCallbacks']){const _0x58ca9b=_0xa732d0(_0x4588a7);if(_0x58ca9b&&'type'in _0x58ca9b)return _0x58ca9b;}}['_handleAttributeSuggestionDescription'](_0x899bc4,_0x349038){const _0x5564b4=_0x349038['data'],_0x165ace=void 0x0===_0x5564b4['newValue']?'removeFormat':'addFormat';_0x899bc4['push']({'type':_0x165ace,'key':_0x5564b4['key']});}['_handleRenameSuggestionDescription'](_0x42fad5,_0x5e9619){_0x42fad5['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5e9619['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3ad5f2,_0x5009be,_0x34327b){if(this['_addDescriptionItems'](_0x3ad5f2,_0x5009be),_0x34327b&&_0x34327b['getFirstRange']()&&!_0x5009be['getFirstRange']()['end']['isEqual'](_0x34327b['getFirstRange']()['start'])){const _0x303125=_0x3ad5f2[_0x3ad5f2['length']-0x1],_0x5498b3='insertion'==_0x5009be['type']?'add':'remove';_0x303125&&'text'==_0x303125['type']&&(_0x303125[_0x5498b3]+='\x0a');}}}class U extends _0x30a5e2{['afterInit'](){const _0x3fa780=this['editor'],_0xd3fbca=_0x3fa780['plugins']['get']('TrackChangesEditing');_0x3fa780['commands']['get']('showAIAssistant')&&_0xd3fbca['enableCommand']('showAIAssistant');}}class V extends _0x30a5e2{['afterInit'](){const _0x3440c4=this['editor'],_0x4cc907=_0x3440c4['locale'];if(!_0x3440c4['plugins']['has']('AlignmentEditing'))return;const _0x51c0f3=_0x3440c4['plugins']['get']('TrackChangesEditing');_0x51c0f3['enableDefaultAttributesIntegration']('alignment'),_0x51c0f3['registerBlockAttribute']('alignment'),_0x51c0f3['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4cc907,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x581e6c=this['editor'],_0x5b54df=_0x581e6c['locale'];_0x581e6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42825f=>{if('formatBlock'!=_0x42825f['type'])return;const {data:_0x5c10fa}=_0x42825f;if(_0x5c10fa&&'alignment'==_0x5c10fa['commandName']){const _0x10f991=_0x5c10fa['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5b54df,'*Format:*\x20%0',function(_0x4b2f13){switch(_0x4b2f13){case'left':return o(_0x5b54df,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5b54df,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5b54df,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5b54df,'FORMAT_JUSTIFY_TEXT');}}(_0x10f991))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x30a5e2{['afterInit'](){const _0x26fce6=this['editor'],_0x59059f=_0x26fce6['plugins']['get']('TrackChangesEditing'),_0x21f443=_0x26fce6['locale'];for(const _0x405160 of Zt){if(!_0x26fce6['plugins']['has'](_0x405160))continue;const _0x42c82a=_0x405160['slice'](0x0,-0x7)['toLowerCase'](),_0x36133e='FORMAT_'+_0x42c82a['toUpperCase']();_0x59059f['enableDefaultAttributesIntegration'](_0x42c82a),_0x59059f['registerInlineAttribute'](_0x42c82a),_0x59059f['descriptionFactory']['registerAttributeLabel'](_0x42c82a,o(_0x21f443,_0x36133e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a325c=this['editor'],_0x1fa83c=_0x3a325c['locale'],_0x2a49a4=_0x3a325c['plugins']['get']('TrackChangesEditing');function _0x437fdc(_0x55f492,_0x3b9497){_0x2a49a4['descriptionFactory']['registerDescriptionCallback'](_0x473604=>{if('formatInline'!=_0x473604['type'])return;const {data:_0x426218}=_0x473604;return _0x426218&&_0x426218['commandName']===_0x55f492?_0x426218['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1fa83c,'*Format:*\x20%0',_0x3b9497)}:{'type':'format','content':o(_0x1fa83c,'*Remove\x20format:*\x20%0',_0x3b9497)}:void 0x0;});}_0x437fdc('bold',o(_0x1fa83c,'FORMAT_BOLD')),_0x437fdc('italic',o(_0x1fa83c,'FORMAT_ITALIC')),_0x437fdc('underline',o(_0x1fa83c,'FORMAT_UNDERLINE')),_0x437fdc('code',o(_0x1fa83c,'FORMAT_CODE')),_0x437fdc('strikethrough',o(_0x1fa83c,'FORMAT_STRIKETHROUGH')),_0x437fdc('subscript',o(_0x1fa83c,'FORMAT_SUBSCRIPT')),_0x437fdc('superscript',o(_0x1fa83c,'FORMAT_SUPERSCRIPT'));}}class F extends _0x30a5e2{['afterInit'](){const _0x1cf2c5=this['editor'],_0x5f669f=_0x1cf2c5['locale'];if(!_0x1cf2c5['plugins']['has']('BlockQuoteEditing'))return;const _0x2f3774=_0x1cf2c5['plugins']['get']('TrackChangesEditing'),_0x3c0654=this['editor']['commands']['get']('blockQuote');_0x2f3774['enableCommand']('blockQuote',(_0x3f8669,_0x1e32bb={})=>{const _0x294a0b=this['editor']['model']['document']['selection'],_0x5aabbd=_0x1e32bb&&void 0x0!==_0x1e32bb['forceValue']?_0x1e32bb['forceValue']:!_0x3c0654['value'];let _0x4149a9=[];if(_0x5aabbd){const _0x39f4f0=Array['from'](_0x294a0b['getSelectedBlocks']())['filter'](_0x2f8863=>oo(_0x2f8863)||function(_0x268a0c,_0x3215dd){const _0x886a14=_0x3215dd['checkChild'](_0x268a0c['parent'],'blockQuote'),_0x13b52d=_0x3215dd['checkChild'](['$root','blockQuote'],_0x268a0c);return _0x886a14&&_0x13b52d;}(_0x2f8863,this['editor']['model']['schema']));_0x4149a9=to(_0x39f4f0,_0x1cf2c5['model']);}else{const _0x3c1642=Array['from'](_0x294a0b['getSelectedBlocks']())['filter'](_0x571ee2=>oo(_0x571ee2));_0x4149a9=to(_0x3c1642,_0x1cf2c5['model']);}_0x1cf2c5['model']['change'](()=>{for(const _0x471148 of _0x4149a9)_0x2f3774['markBlockFormat'](_0x471148,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5aabbd}]});});}),_0x2f3774['descriptionFactory']['registerDescriptionCallback'](_0x35eb6f=>{const {data:_0x58f7ab}=_0x35eb6f;if(_0x58f7ab&&'blockQuote'==_0x58f7ab['commandName']){const _0x3a9959=o(_0x5f669f,'ELEMENT_BLOCK_QUOTE');return _0x58f7ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5f669f,'*Set\x20format:*\x20%0',_0x3a9959)}:{'type':'format','content':o(_0x5f669f,'*Remove\x20format:*\x20%0',_0x3a9959)};}});}}function oo(_0x558d93){return'blockQuote'==_0x558d93['parent']['name'];}class L extends _0x30a5e2{['afterInit'](){const _0x37b905=this['editor'],_0x51c4cc=_0x37b905['locale'],_0x2c423e=_0x37b905['plugins']['get']('TrackChangesEditing');_0x37b905['plugins']['has']('BookmarkEditing')&&(_0x2c423e['enableCommand']('insertBookmark'),_0x2c423e['enableDefaultAttributesIntegration']('updateBookmark'),_0x2c423e['registerBlockAttribute']('bookmarkId'),_0x2c423e['descriptionFactory']['registerDescriptionCallback'](_0x328bab=>{if('insertion'!=_0x328bab['type']&&'deletion'!=_0x328bab['type']&&'attribute'!=_0x328bab['type'])return;const _0x575381=_0x328bab['getContainedElement']();if(null==_0x575381)return;if(!_0x575381['is']('element','bookmark'))return;const _0x5981b4=_0x575381['getAttribute']('bookmarkId');if('insertion'==_0x328bab['type'])return{'type':'insertion','content':o(_0x51c4cc,'*Insert:*\x20%0','\x22'+_0x5981b4+'\x22\x20'+o(_0x51c4cc,'ELEMENT_BOOKMARK'))};if('deletion'==_0x328bab['type'])return{'type':'deletion','content':o(_0x51c4cc,'*Remove:*\x20%0','\x22'+_0x5981b4+'\x22\x20'+o(_0x51c4cc,'ELEMENT_BOOKMARK'))};const {data:_0x36a74d}=_0x328bab;if(!_0x36a74d||'bookmarkId'!=_0x36a74d['key'])return;return{'type':'format','content':o(_0x51c4cc,'*Set\x20bookmark:*\x20%0','\x22'+_0x36a74d['newValue']+'\x22')};}));}}class J extends _0x30a5e2{['afterInit'](){const _0x46959d=this['editor'];_0x46959d['plugins']['has']('CaseChange')&&(_0x46959d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x46959d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x46959d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x30a5e2{['afterInit'](){const _0xbceeac=this['editor'];_0xbceeac['commands']['get']('ckbox')&&_0xbceeac['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x30a5e2{['afterInit'](){const _0x4229a9=this['editor'];if(!_0x4229a9['plugins']['has']('CodeBlock'))return;const _0x238fad=_0x4229a9['plugins']['get']('TrackChangesEditing'),_0x4ea82d=_0x4229a9['locale'],_0x297c90=_0x4229a9['config']['get']('codeBlock')['languages'],_0xed854d=_0x4229a9['commands']['get']('codeBlock');_0x238fad['enableCommand']('indentCodeBlock'),_0x238fad['enableCommand']('outdentCodeBlock'),_0x238fad['enableCommand']('codeBlock',(_0x17036e,_0x52f0e1={})=>{const _0x327b28=_0x4229a9['model'],_0x4f4f8a=_0x4229a9['model']['document']['selection'],_0x10db4d=_0x52f0e1&&void 0x0!==_0x52f0e1['forceValue']?_0x52f0e1['forceValue']:!_0xed854d['value'];let _0x4b810e;_0x52f0e1['language']||(_0x52f0e1['language']=_0x297c90[0x0]['language']),_0x4b810e=_0x10db4d?Array['from'](_0x4f4f8a['getSelectedBlocks']())['filter'](_0x104a47=>eo(_0x104a47)||function(_0x39f6c1,_0x4db936){if(_0x39f6c1['is']('rootElement')||_0x4db936['isLimit'](_0x39f6c1))return!0x1;return _0x4db936['checkChild'](_0x39f6c1['parent'],'codeBlock');}(_0x104a47,_0x327b28['schema'])):Array['from'](_0x4f4f8a['getSelectedBlocks']())['filter'](_0x30d9c9=>eo(_0x30d9c9));const _0x5d7e2b=to(_0x4b810e,_0x327b28);_0x327b28['change'](()=>{for(const _0x36d59c of _0x5d7e2b)_0x238fad['markBlockFormat'](_0x36d59c,{'commandName':'codeBlock','commandParams':[{..._0x52f0e1,'forceValue':_0x10db4d}],'formatGroupId':'blockName'});});}),(_0x238fad['descriptionFactory']['registerElementLabel']('codeBlock',_0x1230d9=>o(_0x4ea82d,'ELEMENT_CODE_BLOCK',_0x1230d9)),_0x238fad['descriptionFactory']['registerDescriptionCallback'](_0x5c5002=>{if('formatBlock'!=_0x5c5002['type'])return;const _0x2a5732=_0x4ea82d['t'],{data:_0x29c002}=_0x5c5002;if(!_0x29c002||'codeBlock'!=_0x29c002['commandName'])return;const _0x19598f=_0x29c002['commandParams'][0x0]['language'],_0x54ab7c=_0x2a5732(_0x297c90['find'](_0x5222a9=>_0x5222a9['language']===_0x19598f)['label'])['toLowerCase']();return _0x29c002['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ea82d,'*Set\x20format:*\x20%0',o(_0x4ea82d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x54ab7c+')')}:{'type':'format','content':o(_0x4ea82d,'*Remove\x20format:*\x20%0',o(_0x4ea82d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xa1477c){return'codeBlock'==_0xa1477c['name'];}class z extends _0x30a5e2{['afterInit'](){const _0x14a29e=this['editor'];if(!_0x14a29e['plugins']['has']('CommentsEditing'))return;_0x14a29e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x517f01,_0x2ff429,_0x30655d){const _0x3bcd53=[];for(const _0x254b68 of _0x2ff429['getItems']())_0x254b68['hasAttribute'](_0x517f01)&&_0x3bcd53['push'](_0x30655d['createRangeOn'](_0x254b68));return _0x3bcd53;}function Ne(_0x480eb0,_0x367c40,{showActiveMarker:_0x2027bf=!0x0}={}){const _0x50cb20=_0x480eb0['plugins']['get']('TrackChangesEditing');return(_0x403042,_0x4a984a,_0xf3254d)=>{if(!_0xf3254d['consumable']['test'](_0x4a984a['markerRange'],_0x403042['name']))return;const _0xd1531c=_0x4a984a['markerRange']['getWalker'](),_0x509c94=_0x4a984a['markerRange']['start'],_0x156447=_0x480eb0['model']['schema'];let _0x490f5b=null,_0x20ead8=null,_0xc651a=!0x1,_0x13d49b=!0x1;for(const _0x15d20d of _0xd1531c){const _0x9afe11=_0x15d20d['item'];_0xc651a=_0xc651a||_0x156447['isContent'](_0x9afe11);const _0x7f36c8=_0xf3254d['mapper']['toViewElement'](_0x9afe11);if(_0x7f36c8&&_0x7f36c8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x15d20d['type']&&(_0x156447['isBlock'](_0x9afe11)&&!_0x156447['isLimit'](_0x9afe11)&&(_0x9afe11['nextSibling']||_0x509c94['isAtEnd']?_0x490f5b&&_0x490f5b['parent']==_0x9afe11||(_0x490f5b=_0x9afe11,_0x389e7b(_0x15d20d['previousPosition']),_0x13d49b=!0x0):_0x20ead8=_0x20ead8||_0x15d20d['previousPosition']));}function _0x389e7b(_0x774cab){const {authorId:_0x5b70b2}=_0x50cb20['_splitMarkerName'](_0x4a984a['markerName']),_0x16c415=_0xf3254d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x367c40,'data-author-id':_0x5b70b2}),_0x1210e7=_0xf3254d['mapper']['toViewPosition'](_0x774cab);_0x2027bf&&_0x50cb20['activeMarkers']['includes'](_0x4a984a['markerName'])&&_0xf3254d['writer']['addClass']('ck-suggestion-marker--active',_0x16c415),_0xf3254d['writer']['insert'](_0x1210e7,_0x16c415),_0xf3254d['mapper']['bindElementToMarker'](_0x16c415,_0x4a984a['markerName']);}_0xc651a||_0x13d49b||!_0x20ead8||_0x389e7b(_0x20ead8);};}class K extends _0x30a5e2{static get['requires'](){return[_0x3f6a7a];}['init'](){const _0x38a408=this['editor'],_0x36875c=_0x38a408['plugins']['get']('TrackChangesEditing');_0x36875c['enableCommand']('delete');const _0x7903=_0x38a408['commands']['get']('deleteForward');_0x36875c['enableCommand']('deleteForward',(_0x2d202b,_0x1a2327={})=>{const _0x7c9cf1=_0x38a408['model']['createSelection'](_0x38a408['model']['document']['selection']);_0x7c9cf1['isCollapsed']&&_0x38a408['model']['modifySelection'](_0x7c9cf1,{'direction':'forward','unit':_0x1a2327['unit']});const _0x163cd5=_0x7c9cf1['getFirstRange'](),_0x413cd0=_0x2dc34a['fromRange'](_0x163cd5);let _0x4736c2;_0x2d202b(_0x1a2327),_0x4736c2='$graveyard'==_0x413cd0['root']['rootName']?_0x38a408['model']['createRange'](_0x163cd5['start']):_0x38a408['model']['createRange'](_0x413cd0['start'],_0x413cd0['end']),_0x413cd0['detach'](),_0x38a408['model']['enqueueChange'](_0x7903['buffer']['batch'],_0x391993=>{_0x7903['buffer']['lock'](),_0x391993['setSelection'](_0x391993['createRange'](_0x4736c2['end'])),_0x7903['buffer']['unlock']();});}),_0x38a408['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x38a408,'merge'),{'priority':'high'}),_0x38a408['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x185448,_0x27e11d,_0x3f956f)=>{_0x3f956f['options']['showSuggestionHighlights']&&Ne(_0x38a408,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x185448,_0x27e11d,_0x3f956f);},{'priority':'high'}),_0x38a408['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x582a8a,_0x324f1e,_0x1f1f82)=>{const _0x4b0e3c=_0x1f1f82['mapper']['markerNameToElements'](_0x324f1e['markerName']);if(_0x4b0e3c){for(const _0x3bca53 of _0x4b0e3c)_0x3bca53['is']('uiElement')&&(_0x1f1f82['mapper']['unbindElementFromMarkerName'](_0x3bca53,_0x324f1e['markerName']),_0x1f1f82['writer']['remove'](_0x3bca53));}},{'priority':'high'});}}class W extends _0x30a5e2{['afterInit'](){const _0x3a2e4e=this['editor'];if(!_0x3a2e4e['plugins']['has']('ListEditing'))return;const _0x5d47ea=_0x3a2e4e['locale'],_0x19dacc=_0x3a2e4e['plugins']['get']('TrackChangesEditing'),_0x2691db=_0x3a2e4e['plugins']['has']('TodoListEditing'),_0x1ccd3f=!!_0x3a2e4e['config']['get']('list.multiBlock');function _0x834195(_0x54350c){return{'type':'format','content':''+o(_0x5d47ea,'*Set\x20format:*\x20%0',_0x54350c)};}function _0x2b94b7(_0x7596ad){return{'type':'format','content':''+o(_0x5d47ea,'*Remove\x20format:*\x20%0',_0x7596ad)};}_0x19dacc['enableDefaultAttributesIntegration']('numberedList'),_0x19dacc['enableDefaultAttributesIntegration']('bulletedList'),_0x19dacc['enableDefaultAttributesIntegration']('customNumberedList'),_0x19dacc['enableDefaultAttributesIntegration']('customBulletedList'),_0x19dacc['enableDefaultAttributesIntegration']('indentList'),_0x19dacc['enableDefaultAttributesIntegration']('outdentList'),_0x19dacc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x19dacc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x19dacc['registerBlockAttribute']('listItemId'),_0x19dacc['registerBlockAttribute']('listType'),_0x19dacc['registerBlockAttribute']('listIndent'),_0x1ccd3f&&(_0x19dacc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x19dacc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2691db&&(_0x19dacc['enableDefaultAttributesIntegration']('todoList'),_0x19dacc['enableDefaultAttributesIntegration']('checkTodoList'),_0x19dacc['registerBlockAttribute']('todoListChecked'),_0x19dacc['descriptionFactory']['registerDescriptionCallback'](_0x220839=>{const {data:_0x50b9d0}=_0x220839;if(_0x50b9d0&&'todoListChecked'==_0x50b9d0['key'])return{'type':'format','content':_0x50b9d0['newValue']?o(_0x5d47ea,'*Check\x20item*'):o(_0x5d47ea,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a4847=>{if(_0x4a4847['batch']['isUndo'])return!0x1;let _0x2ce7b7=!0x1;const _0x257760=_0x19dacc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x623fe=>'todoListChecked'===_0x19dacc['_getAttributeKey'](_0x623fe));for(const _0x28ef9c of _0x257760){'todo'!=_0x28ef9c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x19dacc['_findSuggestions'](_0x28ef9c['getFirstRange'](),'attribute')['find'](_0x4bafc3=>'listType'===_0x19dacc['_getAttributeKey'](_0x4bafc3['suggestion']))||(_0x4a4847['removeMarker'](_0x28ef9c['getFirstMarker']()),_0x2ce7b7=!0x0));}return _0x2ce7b7;})),_0x19dacc['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5d47ea,'FORMAT_INDENT'));const _0x2d5964={'type':'format','content':''};_0x19dacc['descriptionFactory']['registerDescriptionCallback'](_0x194638=>{const {data:_0x4289d4}=_0x194638;if(!_0x4289d4||'listType'!=_0x4289d4['key'])return;let _0x407d49=_0x194638['head'];for(;_0x407d49;){if(_0x407d49['data']&&(('listStyle'==_0x407d49['data']['key']||'listMarkerStyle'==_0x407d49['data']['key'])&&(_0x407d49['data']['newValue']&&'default'!=_0x407d49['data']['newValue']||'default'!=_0x407d49['data']['oldValue']&&!_0x4289d4['newValue'])||!_0x1ccd3f&&_0x407d49['data']['key']==m))return _0x2d5964;_0x407d49=_0x407d49['next'];}if(null==_0x4289d4['newValue'])switch(_0x4289d4['oldValue']){case'bulleted':return _0x2b94b7(o(_0x5d47ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b94b7(o(_0x5d47ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b94b7(o(_0x5d47ea,'ELEMENT_TODO_LIST'));}switch(_0x4289d4['newValue']){case'bulleted':return _0x834195(o(_0x5d47ea,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x834195(o(_0x5d47ea,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x834195(o(_0x5d47ea,'ELEMENT_TODO_LIST'));}}),_0x19dacc['descriptionFactory']['registerDescriptionCallback'](_0x2e05a4=>{const {data:_0x185cc7}=_0x2e05a4;if(_0x185cc7&&'listIndent'==_0x185cc7['key'])return null==_0x185cc7['newValue']||null==_0x185cc7['oldValue']&&0x0==_0x185cc7['newValue']?_0x2d5964:void 0x0;}),_0x19dacc['descriptionFactory']['registerDescriptionCallback'](_0x1a3456=>{if('attribute'!=_0x1a3456['type'])return;const {data:_0x30e727}=_0x1a3456;if(!_0x30e727||'listItemId'!=_0x30e727['key'])return;const _0x462096=Te(_0x1a3456);return'newValue'==_0x462096?{'type':'format','content':o(_0x5d47ea,'*Merge:*\x20list\x20item')}:'oldValue'==_0x462096?{'type':'format','content':o(_0x5d47ea,'*Split:*\x20list\x20item')}:_0x2d5964;}),_0x3a2e4e['model']['document']['registerPostFixer'](_0x508955=>this['listItemIdFixer'](_0x508955)),_0x3a2e4e['model']['document']['registerPostFixer'](_0x2d192d=>this['noTrackChangesFixer'](_0x2d192d)),_0x3a2e4e['model']['document']['on']('change:data',(_0x51d956,_0x515cfb)=>{if(_0x515cfb['isUndo']||!_0x515cfb['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x59b2da){if(_0x59b2da['batch']['isUndo']||!_0x59b2da['batch']['isLocal'])return!0x1;let _0x537588=!0x1;const _0x45af45=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d8422=>_0x5d8422['data']&&'listItemId'==_0x5d8422['data']['key'])['filter'](_0x45283d=>_0x45283d['data']['newValue']&&_0x45283d['data']['oldValue']);for(const _0xdc7b21 of _0x45af45)Te(_0xdc7b21)||(_0x59b2da['removeMarker'](_0xdc7b21['getFirstMarker']()),_0x537588=!0x0);return _0x537588;}['noTrackChangesFixer'](_0x10df93){if(_0x10df93['batch']['isUndo']||!_0x10df93['batch']['isLocal'])return!0x1;const _0x3131f8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3131f8['trackChangesCommand']['value'])return!0x1;let _0x2aa276=!0x1;const _0x4d865c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5596f6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x94534f=>'attribute'==_0x94534f['type'])['filter'](_0x5e7ae1=>_0x4d865c['includes'](_0x5e7ae1['attributeKey']));if(0x0==_0x5596f6['length'])return _0x2aa276;for(const _0x47d366 of _0x5596f6){const _0x13a887=_0x3131f8['_findSuggestions'](_0x47d366['range'],'attribute')['filter'](_0x1c7fa0=>!_0x1c7fa0['meta']['isNextTo'])['map'](_0x45a798=>_0x45a798['suggestion'])['filter'](_0x2f6cb2=>{const _0x51ced4=_0x3131f8['_getAttributeKey'](_0x2f6cb2);return _0x4d865c['includes'](_0x51ced4);});if(_0x13a887['length']){for(const _0x4542a2 of _0x13a887)_0x10df93['removeMarker'](_0x4542a2['getFirstMarker']());_0x2aa276=!0x0;}}return _0x2aa276;}['assureChains'](){const _0x374eb5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20d2a4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x133b7c;const _0x14adf4=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x576051=>{if(_0x576051['data']['oldRange']||!_0x576051['data']['newRange'])return null;if(!_0x576051['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x986c4c}=_0x374eb5['_splitMarkerName'](_0x576051['name']);if(!_0x374eb5['hasSuggestion'](_0x986c4c))return null;const _0x49a8fc=_0x374eb5['getSuggestion'](_0x986c4c);return _0x20d2a4['includes'](_0x49a8fc['data']['key']);})['map'](_0x2abf14=>{const {id:_0x4a3dea}=_0x374eb5['_splitMarkerName'](_0x2abf14['name']),_0x441c83=_0x374eb5['getSuggestion'](_0x4a3dea);return _0x133b7c=_0x441c83['attributes']['groupId'],_0x441c83['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14adf4['size'])return;const _0x2bf860=_0x374eb5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3116da=>'attribute'==_0x3116da['type']&&_0x3116da['data']&&_0x20d2a4['includes'](_0x3116da['data']['key'])&&_0x3116da['attributes']['groupId']!=_0x133b7c)['map'](_0x4f117b=>({'listItem':_0x4f117b['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4f117b['attributes']['groupId']})),_0x283864=new Set();for(const {groupId:_0x18682d,listItem:_0x459014}of _0x2bf860)_0x14adf4['has'](_0x459014)&&_0x283864['add'](_0x18682d);for(const _0xd80bc7 of _0x374eb5['getSuggestions']())_0x283864['has'](_0xd80bc7['attributes']['groupId'])&&_0xd80bc7['setAttribute']('groupId',_0x133b7c);}['_supportLegacySuggestions'](){const _0x53fe63=this['editor'],_0x219ee0=_0x53fe63['locale'],_0x21ec90=_0x53fe63['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x21ec90['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x248252,_0x16098d){const _0x146369=[];for(let _0x15a6be of _0x248252)_0x15a6be['start']['nodeAfter']===_0x15a6be['end']['parent']&&(_0x15a6be=_0x53fe63['model']['createRange'](_0x53fe63['model']['createPositionAt'](_0x15a6be['start']['nodeAfter'],0x0))),_0x146369['push'](_0x15a6be);_0x53fe63['model']['change'](_0x5ab3a8=>{const _0x58c8f4=_0x53fe63['model']['document']['selection'],_0x446d2f=Array['from'](_0x58c8f4['getRanges']())['map'](_0x5e8c8e=>_0x2dc34a['fromRange'](_0x5e8c8e));_0x5ab3a8['setSelection'](_0x146369),_0x53fe63['commands']['get'](_0x16098d['commandName'])['refresh'](),_0x16098d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x53fe63['execute'](_0x16098d['commandName'],..._0x16098d['commandParams']),_0x5ab3a8['setSelection'](_0x446d2f);for(const _0x3d640e of _0x446d2f)_0x3d640e['detach']();});}),_0x21ec90['descriptionFactory']['registerElementLabel'](function(_0x590d1b){const _0x47f856=!_0x53fe63['model']['schema']['isObject'](_0x590d1b),_0x8cf35a=_0x590d1b['previousSibling'],_0x445c03=_0x590d1b['nextSibling'],_0x262dd7=_0x590d1b['getAttribute']('listItemId'),_0x71a49c=!_0x8cf35a||_0x8cf35a['getAttribute']('listItemId')!==_0x262dd7,_0x485d98=!_0x445c03||_0x445c03['getAttribute']('listItemId')!==_0x262dd7;return _0x47f856&&Boolean(_0x262dd7)&&_0x71a49c&&_0x485d98;},_0x3b6f12=>o(_0x219ee0,'ELEMENT_LIST_ITEM',_0x3b6f12));}['_registerLegacyDescription'](){const _0x3b3ef9=this['editor'],_0x217656=_0x3b3ef9['locale'];function _0x53d025(_0x412380){const _0x4825b2=_0x3b3ef9['commands']['get']('bulletedList')['value'],_0x3d26e7=_0x3b3ef9['commands']['get']('numberedList')['value'];return'numberedList'===_0x412380?_0x4825b2:_0x3d26e7;}_0x3b3ef9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x455df2){if('formatBlock'!=_0x455df2['type'])return;const {data:_0x1b0c25}=_0x455df2;if(!_0x1b0c25)return;let _0x1e2b5e,_0x15fbf7,_0x32997f,_0x2b341c;switch(_0x1b0c25['commandName']){case'bulletedList':_0x32997f=_0x1b0c25['commandParams'][0x0]['forceValue'],_0x2b341c=_0x53d025(_0x1b0c25['commandName']),_0x1e2b5e=_0x32997f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b341c&&_0x3b3ef9['config']['get']('list.multiBlock')||(_0x1e2b5e='*Change\x20to:*\x20%0'),_0x15fbf7={'type':'format','content':o(_0x217656,_0x1e2b5e,o(_0x217656,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x32997f=_0x1b0c25['commandParams'][0x0]['forceValue'],_0x2b341c=_0x53d025(_0x1b0c25['commandName']),_0x1e2b5e=_0x32997f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2b341c&&_0x3b3ef9['config']['get']('list.multiBlock')||(_0x1e2b5e='*Change\x20to:*\x20%0'),_0x15fbf7={'type':'format','content':o(_0x217656,_0x1e2b5e,o(_0x217656,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1e2b5e='*Indent:*\x20%0',_0x15fbf7={'type':'format','content':o(_0x217656,_0x1e2b5e,o(_0x217656,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1e2b5e=function(_0x1dc1a3){const _0x3421ff=_0x1dc1a3['getFirstRange']();let _0x2145ce=_0x3421ff['start']['nodeAfter'];for(;_0x2145ce&&_0x3421ff['containsItem'](_0x2145ce);){if(_0x2145ce['getAttribute']('listIndent')>0x0)return!0x1;_0x2145ce=_0x2145ce['nextSibling'];}return!0x0;}(_0x455df2)?o(_0x217656,'*Format:*\x20remove\x20from\x20%0',o(_0x217656,function(_0x5bcca0){return'ELEMENT_'+_0x5bcca0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x455df2))):o(_0x217656,'*Outdent:*\x20%0',o(_0x217656,'ELEMENT_LIST_ITEM')),_0x15fbf7={'type':'format','content':_0x1e2b5e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1b0c25['multipleBlocks']&&(_0x1e2b5e='*Merge:*\x20%0',_0x15fbf7={'type':'deletion','content':o(_0x217656,_0x1e2b5e,o(_0x217656,'ELEMENT_LIST_ITEM'))});}return _0x15fbf7;});}}function Te(_0x9e7d3d){let _0x272ea3=_0x9e7d3d['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x272ea3;){const _0x194301=_0x272ea3['getAttribute']('listItemId');if(!_0x194301)return!0x1;if(_0x194301==_0x9e7d3d['data']['newValue'])return'newValue';if(_0x194301==_0x9e7d3d['data']['oldValue'])return'oldValue';_0x272ea3=_0x272ea3['previousSibling'];}return!0x1;}class ye extends _0x30a5e2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x118bbf=this['editor']['config']['get']('list.properties'),_0x36eb6c=this['editor']['plugins']['get']('TrackChangesEditing');_0x118bbf['styles']&&(_0x36eb6c['enableDefaultAttributesIntegration']('listStyle'),_0x36eb6c['registerBlockAttribute']('listStyle')),_0x118bbf['reversed']&&(_0x36eb6c['enableDefaultAttributesIntegration']('listReversed'),_0x36eb6c['registerBlockAttribute']('listReversed')),_0x118bbf['startIndex']&&(_0x36eb6c['enableDefaultAttributesIntegration']('listStart'),_0x36eb6c['registerBlockAttribute']('listStart'));const _0x36870e={'type':'format','content':''};_0x36eb6c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3ac3ed=this['editor']['locale'];_0x36eb6c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3ac3ed,'FORMAT_LIST_REVERSED')),_0x36eb6c['descriptionFactory']['registerDescriptionCallback'](_0x7de676=>{const {data:_0x5d78ce}=_0x7de676;if(_0x5d78ce&&'listReversed'==_0x5d78ce['key'])return null==_0x5d78ce['newValue']||0x0==_0x5d78ce['newValue']&&null==_0x5d78ce['oldValue']?_0x36870e:void 0x0;}),_0x36eb6c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3ac3ed,'FORMAT_LIST_START')),_0x36eb6c['descriptionFactory']['registerDescriptionCallback'](_0x4dc2bf=>{const {data:_0x2f5687}=_0x4dc2bf;if(_0x2f5687&&'listStart'==_0x2f5687['key'])return null==_0x2f5687['newValue']||0x1==_0x2f5687['newValue']&&null==_0x2f5687['oldValue']?_0x36870e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3b4079=>{if(_0x3b4079['batch']['isUndo'])return!0x1;let _0xc9e0c4=!0x1;const _0x3caffb=_0x36eb6c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x105b9d=>{const _0x3312b2=_0x36eb6c['_getAttributeKey'](_0x105b9d);return'listStart'==_0x3312b2||'listReversed'==_0x3312b2;});for(const _0x5a25a0 of _0x3caffb){const _0x35e567=_0x5a25a0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x35e567||'customNumbered'==_0x35e567)continue;_0x36eb6c['_findSuggestions'](_0x5a25a0['getFirstRange'](),'attribute')['find'](_0x134a24=>'listType'==_0x36eb6c['_getAttributeKey'](_0x134a24['suggestion']))||(_0x3b4079['removeMarker'](_0x5a25a0['getFirstMarker']()),_0xc9e0c4=!0x0);}return _0xc9e0c4;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5930f6){const _0xdde597=this['editor']['locale'],{data:_0x55a2ef}=_0x5930f6,_0x2d8bf3={'type':'format','content':''};if(!_0x55a2ef||'listStyle'!=_0x55a2ef['key'])return;if(!_0x55a2ef['oldValue'])return'default'==_0x55a2ef['newValue']?_0x2d8bf3:{'type':'format','content':''+o(_0xdde597,'*Set\x20format:*\x20%0',o(_0xdde597,this['_getTranslationKeyForListStyle'](_0x55a2ef['newValue'])))};if(!_0x55a2ef['newValue']){if('default'==_0x55a2ef['oldValue'])return _0x2d8bf3;let _0x5f2465=_0x5930f6['head'];for(;_0x5f2465;){if(_0x5f2465['data']&&'listType'==_0x5f2465['data']['key']&&_0x5f2465['data']['newValue'])return _0x2d8bf3;_0x5f2465=_0x5f2465['next'];}return{'type':'format','content':''+o(_0xdde597,'*Remove\x20format:*\x20%0',o(_0xdde597,this['_getTranslationKeyForListStyle'](_0x55a2ef['oldValue'])))};}if('default'!=_0x55a2ef['newValue'])return{'type':'format','content':''+o(_0xdde597,'*Set\x20format:*\x20%0',o(_0xdde597,this['_getTranslationKeyForListStyle'](_0x55a2ef['newValue'])))};let _0x6936db=_0x5930f6['head'];for(;_0x6936db;){if(_0x6936db['data']&&'listType'==_0x6936db['data']['key']&&_0x6936db['data']['newValue']&&_0x6936db['data']['oldValue'])return _0x2d8bf3;_0x6936db=_0x6936db['next'];}return{'type':'format','content':o(_0xdde597,'*Set\x20format:*\x20%0',o(_0xdde597,'ELEMENT_'+_0x5930f6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x338998=this['editor'],_0x7bcd7b=_0x338998['locale'];_0x338998['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37166e=>{if('formatBlock'!=_0x37166e['type'])return;const {data:_0x244eef}=_0x37166e;if(!_0x244eef)return;let _0x5b8e53,_0x5de2f4;switch(_0x244eef['commandName']){case'listStyle':_0x5b8e53='*Change\x20to:*\x20%0',_0x5de2f4={'type':'format','content':o(_0x7bcd7b,_0x5b8e53,o(_0x7bcd7b,this['_getTranslationKeyForListStyle'](_0x244eef['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5b8e53=_0x244eef['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5de2f4={'type':'format','content':o(_0x7bcd7b,_0x5b8e53)};break;case'listStart':_0x5b8e53='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5de2f4={'type':'format','content':o(_0x7bcd7b,_0x5b8e53,_0x244eef['commandParams'][0x0]['startIndex'])};}return _0x5de2f4;});}['_getTranslationKeyForListStyle'](_0x566326){return'ELEMENT_'+function(_0x10135d){if(Se['includes'](_0x10135d))return'bulleted';if(_e['includes'](_0x10135d))return'numbered';return null;}(_0x566326)['toUpperCase']()+'_LIST_'+_0x566326['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x30a5e2{static get['requires'](){return[_0x20d19f];}['init'](){const _0x4b3204=this['editor'],_0x4909be=_0x4b3204['plugins']['get']('TrackChangesEditing'),_0x2f7953=_0x4b3204['commands']['get']('enter');_0x4909be['enableCommand']('enter',()=>{_0x4b3204['model']['change'](_0x458593=>{const _0x7f9609=_0x4b3204['model']['document']['selection'],_0x3b460c=_0x7f9609['getFirstPosition'](),_0x503960=_0x2dc34a['fromRange'](_0x7f9609['getFirstRange']());if(_0x2f7953['enterBlock'](_0x458593)){const _0x23a1b=_0x4b3204['model']['createPositionAt'](_0x3b460c['parent']['nextSibling'],0x0),_0x14d1bb=_0x458593['createRange'](_0x3b460c,_0x23a1b);_0x4909be['markInsertion'](_0x14d1bb);}else _0x458593['setSelection'](_0x458593['createRange'](_0x503960['end']));_0x503960['detach'](),_0x2f7953['fire']('afterExecute',{'writer':_0x458593});});}),_0x4b3204['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x4b3204,'split'),{'priority':'high'}),_0x4b3204['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x34eb33,_0xa4ab5,_0x28a649)=>{const _0x989798=_0x28a649['mapper']['markerNameToElements'](_0xa4ab5['markerName']);if(_0x989798){for(const _0xf3452f of _0x989798)_0xf3452f['hasClass']('ck-suggestion-marker-split')&&(_0x28a649['mapper']['unbindElementFromMarkerName'](_0xf3452f,_0xa4ab5['markerName']),_0x28a649['writer']['remove'](_0xf3452f));}},{'priority':'high'}),_0x4b3204['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3db14d,_0x14db6d,_0x68b984)=>{_0x68b984['options']['showSuggestionHighlights']&&Ne(_0x4b3204,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3db14d,_0x14db6d,_0x68b984);},{'priority':'high'});}}class Y extends _0x30a5e2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x377955=this['editor']['plugins']['get']('TrackChangesEditing');_0x377955['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x377955['enableCommand']('findNext'),_0x377955['enableCommand']('findPrevious'),_0x377955['enableCommand']('replace'),_0x377955['enableCommand']('replaceAll');}['handleFindCommand'](_0x3494aa,_0x24e1f1,_0x3a76e7={}){const _0x1897e6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3494aa(_0x386960=>{let _0x21e27a=('string'==typeof _0x24e1f1?_0x1897e6['findByTextCallback'](_0x24e1f1,_0x3a76e7):_0x24e1f1)(_0x386960);Array['isArray'](_0x21e27a)&&(_0x21e27a={'results':_0x21e27a,'searchText':'string'==typeof _0x24e1f1?_0x24e1f1:''});const _0x1a2e22=_0x21e27a['results']['filter'](_0x1f8cb1=>!0x1===this['_isInDeletionRange'](_0x1f8cb1,_0x386960['item']));return{..._0x21e27a,'results':_0x1a2e22};},_0x3a76e7);}['_isInDeletionRange'](_0x37b01b,_0x33c0c8){const _0x508ce6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33c0c8,_0x37b01b['start']),this['editor']['model']['createPositionAt'](_0x33c0c8,_0x37b01b['end']));for(const _0x141a0a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x508ce6['getIntersection'](_0x141a0a['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x30a5e2{['afterInit'](){const _0x10f8e0=this['editor']['locale'],_0x2a695f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x520df6,commandName:_0x5cc71b}of ro)this['editor']['plugins']['has'](_0x520df6)&&(_0x2a695f['enableDefaultAttributesIntegration'](_0x5cc71b),_0x2a695f['registerInlineAttribute'](_0x5cc71b));_0x2a695f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x10f8e0,'FORMAT_FONT_SIZE')),_0x2a695f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x10f8e0,'FORMAT_FONT_FAMILY')),_0x2a695f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x10f8e0,'FORMAT_FONT_COLOR')),_0x2a695f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x10f8e0,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36017e=this['editor'],_0x1f07cf=_0x36017e['locale'];_0x36017e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb642=>{const _0x574046=_0x1f07cf['t'];if('formatInline'!=_0x2bb642['type'])return;const {data:_0x147527}=_0x2bb642;if(null!=_0x147527){if('fontSize'==_0x147527['commandName']){const _0x155836=_0x147527['commandParams'][0x0]['value'];if(_0x155836){const _0x11b8d3=_0x574046(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x516917=>_0x516917['model']==_0x155836)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1f07cf,'*Set\x20font\x20size:*\x20%0',_0x11b8d3)};}return{'type':'format','content':o(_0x1f07cf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x147527['commandName']){const _0x36a4b3=_0x147527['commandParams'][0x0]['value'];return _0x36a4b3?{'type':'format','content':o(_0x1f07cf,'*Set\x20font\x20family:*\x20%0',_0x36a4b3)}:{'type':'format','content':o(_0x1f07cf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x147527['commandName']){const _0x1cf3c2=_0x147527['commandParams'][0x0]['value'];if(_0x1cf3c2){const _0x267adb=_0x1bb4cc(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4521b0=>_0x4521b0['model']==_0x1cf3c2);let _0x29c234=_0x1cf3c2,_0x1d56bd='';return _0x267adb&&(_0x29c234=_0x267adb['label'],_0x1d56bd=_0x574046(_0x29c234)['toLowerCase']()),{'type':'format','content':o(_0x1f07cf,'*Set\x20font\x20color:*\x20%0',_0x1d56bd)['trim'](),'color':{'value':_0x1cf3c2,'title':_0x1d56bd||_0x29c234}};}return{'type':'format','content':o(_0x1f07cf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x147527['commandName']){const _0x5ab1ec=_0x147527['commandParams'][0x0]['value'];if(_0x5ab1ec){const _0x5680e2=_0x1bb4cc(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3fc52a=>_0x3fc52a['model']==_0x5ab1ec);let _0xda726b=_0x5ab1ec,_0x1779cb='';return _0x5680e2&&(_0xda726b=_0x5680e2['label'],_0x1779cb=_0x574046(_0xda726b)['toLowerCase']()),{'type':'format','content':o(_0x1f07cf,'*Set\x20font\x20background\x20color:*\x20%0',_0x1779cb)['trim'](),'color':{'value':_0x5ab1ec,'title':_0x1779cb||_0xda726b}};}return{'type':'format','content':o(_0x1f07cf,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x30a5e2{['afterInit'](){const _0x53be33=this['editor'],_0x464d1e=_0x53be33['plugins']['get']('TrackChangesEditing'),_0x9c335d=_0x53be33['commands']['get']('copyFormat'),_0x1f0b2f=_0x53be33['commands']['get']('pasteFormat');_0x9c335d&&_0x1f0b2f&&(_0x464d1e['enableDefaultAttributesIntegration']('pasteFormat'),_0x464d1e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4153cc=this['editor'],_0x19d169=_0x4153cc['locale'];_0x4153cc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31b077=>{if('formatBlock'!=_0x31b077['type']&&'formatInline'!=_0x31b077['type'])return;const {data:_0x8458b6}=_0x31b077;if(_0x8458b6&&'pasteFormat'===_0x8458b6['commandName']){const _0x48a641=[],_0x24c749=_0x8458b6['commandParams'][0x0];for(const [_0x4e02ec,_0x404aee]of Object['entries'](_0x24c749))_0x48a641['push'](so(_0x4153cc,_0x4e02ec,_0x404aee));return _0x48a641['length']?{'type':'format','content':o(_0x19d169,'*Set\x20format\x20to:*\x20%0',_0x48a641['join'](',\x20'))}:{'type':'format','content':o(_0x19d169,'*Remove\x20all\x20formatting*')};}});}}function so(_0x95c1d,_0x1be658,_0x5afcca){const _0xcad63f=_0x95c1d['locale']['t'],_0x5d22d6=_0x1be658['split'](/(?=[A-Z])/)['join']('\x20'),_0x81e471=_0xcad63f(_0x5d22d6['charAt'](0x0)['toUpperCase']()+_0x5d22d6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5afcca)return _0x81e471;if('fontColor'===_0x1be658||'fontBackgroundColor'===_0x1be658){const _0x88f8fe=_0x1bb4cc(_0x95c1d['config']['get']('fontColor.colors'))['find'](_0x224cda=>_0x224cda['model']==_0x5afcca);return _0x81e471+'\x20('+(_0x88f8fe?_0xcad63f(_0x88f8fe['label'])['toLowerCase']():_0x5afcca)+')';}if('fontSize'===_0x1be658&&isNaN(parseFloat(_0x5afcca))){const _0x41f626=_0x95c1d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x95c1d['config']['get']('fontSize.options'))['find'](_0x57a96c=>_0x57a96c['model']==_0x5afcca);return _0x81e471+'\x20('+(_0x41f626?_0xcad63f(_0x41f626['title'])['toLowerCase']():_0x5afcca)+')';}return _0x81e471+'\x20('+_0x5afcca+')';}class nt extends _0x30a5e2{['_headingOptions'];['afterInit'](){const _0x25a99a=this['editor'];if(!_0x25a99a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x25a99a['config']['get']('heading.options');const _0x2f792e=_0x25a99a['locale'],_0x20d2c7=_0x25a99a['plugins']['get']('TrackChangesEditing');_0x20d2c7['enableDefaultAttributesIntegration']('heading');for(const _0x54db8e of this['_headingOptions'])'paragraph'!=_0x54db8e['model']&&_0x20d2c7['descriptionFactory']['registerElementLabel'](_0x54db8e['model'],_0x388abd=>{const _0x5d5b51=this['_getHeadingLevel'](_0x54db8e['model']);return null!==_0x5d5b51?_0x1202f7(_0x388abd,_0x5d5b51):_0x17e6bb(_0x388abd,_0x54db8e['title']);});function _0x1202f7(_0x4b6700,_0xd8a6bf){return o(_0x2f792e,'ELEMENT_HEADING',[_0x4b6700,_0xd8a6bf]);}function _0x17e6bb(_0x14da61,_0x4adbee){return o(_0x2f792e,'ELEMENT_HEADING_CUSTOM',[_0x14da61,_0x4adbee]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x268ca5=this['editor'],_0x4e6557=_0x268ca5['locale'];function _0x23adc7(_0x4ea959,_0x28f0ed){return o(_0x4e6557,'ELEMENT_HEADING_CUSTOM',[_0x4ea959,_0x28f0ed]);}_0x268ca5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x928983=>{if('formatBlock'!=_0x928983['type'])return;const {data:_0x3110cf}=_0x928983;if(_0x3110cf&&'heading'==_0x3110cf['commandName']){const _0x45eeed=_0x3110cf['commandParams'][0x0]['value'],_0x27647a=this['_getHeadingLevel'](_0x45eeed);if(null!==_0x27647a)return{'type':'format','content':o(_0x4e6557,'*Change\x20to:*\x20%0',(_0x174e21=0x1,_0x5a0e60=_0x27647a,o(_0x4e6557,'ELEMENT_HEADING',[_0x174e21,_0x5a0e60])))};const _0xea0b0=this['_headingOptions']['find'](_0x200755=>_0x200755['model']===_0x45eeed)['title'];return{'type':'format','content':o(_0x4e6557,'*Change\x20to:*\x20%0',_0x23adc7(0x1,_0xea0b0))};}var _0x174e21,_0x5a0e60;});}['_getHeadingLevel'](_0x332f9c){const _0x289f1e=_0x332f9c['match'](/^heading(\d+)/);if(_0x289f1e)return _0x289f1e[0x1];const _0x287149=this['_headingOptions']?.['find'](_0x20fa51=>_0x20fa51['model']==_0x332f9c);if(_0x287149&&_0x287149['view']){const _0x1e7b8c=_0x287149['view'],_0x48121e=(_0x1e7b8c['name']??_0x1e7b8c)['match'](/^h(\d+)/);if(_0x48121e)return _0x48121e[0x1];}return null;}}class it extends _0x30a5e2{['afterInit'](){const _0x5ea632=this['editor'];if(!_0x5ea632['plugins']['has']('HighlightEditing'))return;const _0x3ad80d=_0x5ea632['plugins']['get']('TrackChangesEditing'),_0x4f56eb=_0x5ea632['locale'];_0x3ad80d['enableDefaultAttributesIntegration']('highlight'),_0x3ad80d['registerInlineAttribute']('highlight'),_0x3ad80d['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4f56eb,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x161197=this['editor'],_0x5d8161=_0x161197['locale'];_0x161197['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2742db=>{if('formatInline'!=_0x2742db['type'])return;const {data:_0x1c771a}=_0x2742db;if(_0x1c771a&&'highlight'==_0x1c771a['commandName']){const _0x1db15b=_0x5d8161['t'],_0x140e3f=_0x1c771a['commandParams'][0x0]['value'];if(_0x140e3f){const _0x4df62c=_0x161197['config']['get']('highlight.options')['find'](_0xea1f85=>_0xea1f85['model']==_0x140e3f),_0x5c53fc=_0x1db15b(_0x4df62c['title'])['toLowerCase']();return{'type':'format','content':o(_0x5d8161,'*Set\x20highlight:*\x20%0',_0x5c53fc),'color':{'value':_0x4df62c['color'],'title':_0x4df62c['title']}};}return{'type':'format','content':o(_0x5d8161,'*Remove\x20highlight*',o(_0x5d8161,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x30a5e2{['afterInit'](){const _0x4f9579=this['editor'];if(!_0x4f9579['plugins']['has']('HorizontalLineEditing'))return;_0x4f9579['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x31bf1e=_0x4f9579['plugins']['get']('TrackChangesEditing'),_0x33a51c=_0x4f9579['locale'];_0x31bf1e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x492e8c=>o(_0x33a51c,'ELEMENT_HORIZONTAL_LINE',_0x492e8c)),_0x4f9579['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4fb5fd,{writer:_0x1b2972,options:_0x48a83e})=>{if(!_0x48a83e['showSuggestionHighlights'])return null;const _0x565a50=_0x1b2972['createContainerElement']('div'),_0x40a043=_0x1b2972['createEmptyElement']('hr');return _0x1b2972['addClass']('ck-horizontal-line',_0x565a50),_0x1b2972['insert'](_0x1b2972['createPositionAt'](_0x565a50,0x0),_0x40a043),_0x565a50;},'converterPriority':'high'});}}class st extends _0x30a5e2{['afterInit'](){const _0x3d774f=this['editor'];if(!_0x3d774f['plugins']['has']('HtmlEmbed'))return;const _0x50c0c6=_0x3d774f['plugins']['get']('TrackChangesEditing'),_0x4bb6cc=_0x3d774f['locale'];_0x50c0c6['descriptionFactory']['registerElementLabel']('rawHtml',_0x5b3a82=>o(_0x4bb6cc,'ELEMENT_HTML_EMBED',_0x5b3a82)),_0x50c0c6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x50c0c6['registerBlockAttribute']('value'),_0x50c0c6['descriptionFactory']['registerDescriptionCallback'](_0x1b0422=>{if('attribute'!=_0x1b0422['type'])return;const {data:_0x5a1419}=_0x1b0422;if(_0x5a1419&&'value'==_0x5a1419['key']&&_0x1b0422['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3bb646=o(_0x4bb6cc,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4bb6cc,'*Change\x20%0\x20content*',_0x3bb646)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x126e2f=this['editor'],_0xe05d6e=_0x126e2f['locale'];_0x126e2f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x785546=>{if('formatBlock'!=_0x785546['type'])return;const {data:_0xa6b3cc}=_0x785546;if(_0xa6b3cc&&'htmlEmbed'==_0xa6b3cc['commandName']){const _0x3cd8a5=o(_0xe05d6e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe05d6e,'*Change\x20%0\x20content*',_0x3cd8a5)};}});}}class ot extends _0x30a5e2{['afterInit'](){const _0x4efdc0=this['editor'];if(!_0x4efdc0['plugins']['has']('ImageEditing'))return;const _0x33adf3=_0x4efdc0['plugins']['get']('TrackChangesEditing'),_0x173c77=_0x4efdc0['plugins']['get']('ImageUtils'),_0x38fd89=_0x4efdc0['locale'];_0x33adf3['enableCommand']('insertImage'),_0x33adf3['descriptionFactory']['registerElementLabel']('imageBlock',_0x27cd18=>o(_0x38fd89,'ELEMENT_IMAGE',_0x27cd18)),_0x33adf3['descriptionFactory']['registerElementLabel']('imageInline',_0x5f39a8=>o(_0x38fd89,'ELEMENT_INLINE_IMAGE',_0x5f39a8)),_0x33adf3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x38fd89,'ELEMENT_CAPTION')),_0x4efdc0['plugins']['has']('ImageUploadEditing')&&_0x33adf3['enableCommand']('uploadImage'),_0x4efdc0['plugins']['has']('ImageBlockEditing')&&_0x4efdc0['plugins']['has']('ImageInlineEditing')&&(_0x33adf3['enableCommand']('imageTypeInline',(_0x6f4f96,_0x394218)=>{const _0x38caaf=_0x173c77['getClosestSelectedImageElement'](_0x4efdc0['model']['document']['selection']);_0x4efdc0['model']['change'](()=>{_0x33adf3['markBlockFormat'](_0x38caaf,{'commandName':'imageTypeInline','commandParams':[_0x394218]},[],'convertBlockImageToInline');});}),_0x33adf3['enableCommand']('imageTypeBlock',(_0x3729f6,_0x341eba)=>{_0x4efdc0['model']['change'](_0x479b11=>{let _0xdedf46=_0x173c77['getClosestSelectedImageElement'](_0x4efdc0['model']['document']['selection']),_0x134077=_0x479b11['createRangeOn'](_0xdedf46);const _0x464cc0=_0x20cb8b['fromPosition'](_0x134077['start'],'toPrevious'),_0x272da1=_0x20cb8b['fromPosition'](_0x134077['end'],'toNext');_0x33adf3['forceDefaultExecution'](()=>_0x3729f6(_0x341eba)),_0xdedf46=_0x173c77['getClosestSelectedImageElement'](_0x4efdc0['model']['document']['selection']),_0x134077=_0x479b11['createRangeOn'](_0xdedf46);const _0x53e3d4=_0x479b11['createRange'](_0x464cc0,_0x272da1);_0x464cc0['detach'](),_0x272da1['detach'](),_0x33adf3['markBlockFormat'](_0xdedf46,{'commandName':'imageTypeInline','commandParams':[_0x341eba]},[],'convertInlineImageToBlock'),_0x53e3d4['start']['isBefore'](_0x134077['start'])&&_0x33adf3['markInsertion'](_0x479b11['createRange'](_0x53e3d4['start'],_0x134077['start']),'convertInlineImageToBlock'),_0x134077['end']['isBefore'](_0x53e3d4['end'])&&_0x33adf3['markInsertion'](_0x479b11['createRange'](_0x134077['end'],_0x53e3d4['end']),'convertInlineImageToBlock');});}),_0x33adf3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x33adf3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x33adf3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x33adf3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x33adf3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x33adf3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x583109])=>{const _0x1679f9=_0x33adf3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x17d01d=_0x583109['start'],_0x3379cd=_0x583109['end'];const _0xfa5a5=_0x4efdc0['model']['schema']['getNearestSelectionRange'](_0x17d01d,'backward'),_0x28e7f6=_0x4efdc0['model']['schema']['getNearestSelectionRange'](_0x3379cd,'forward');_0xfa5a5['isCollapsed']&&(_0x17d01d=_0xfa5a5['start']),_0x28e7f6['isCollapsed']&&(_0x3379cd=_0x28e7f6['end']),_0x1679f9([_0x4efdc0['model']['createRange'](_0x17d01d,_0x3379cd)]);}),_0x33adf3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x42bc26),_0x33adf3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x42bc26)),_0x4efdc0['plugins']['has']('ImageCaptionEditing')&&(_0x33adf3['enableCommand']('toggleImageCaption',(_0x17c525,_0x126c95)=>{const _0x2c138e=_0x4efdc0['plugins']['get']('ImageCaptionUtils');let _0x54ed49=_0x173c77['getClosestSelectedImageElement'](_0x4efdc0['model']['document']['selection']),_0xd9e5f9=_0x2c138e['getCaptionFromImageModelElement'](_0x54ed49);_0x4efdc0['model']['change'](()=>{if(_0xd9e5f9)return void _0x33adf3['markDeletion'](_0x4efdc0['model']['createRangeOn'](_0xd9e5f9));const _0x59a9a8=_0x173c77['isBlockImage'](_0x54ed49);_0x17c525(_0x126c95),_0x54ed49=_0x173c77['getClosestSelectedImageElement'](_0x4efdc0['model']['document']['selection']),_0xd9e5f9=_0x2c138e['getCaptionFromImageModelElement'](_0x54ed49),_0x33adf3['markInsertion'](_0x4efdc0['model']['createRangeOn'](_0xd9e5f9),_0x59a9a8?null:'imageCaption');});}),_0x33adf3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x42bc26));const _0x52852e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1b7483(_0x509c88,_0x529993){const _0x575464=_0x52852e['findIndex'](({type:_0x38f90d,subType:_0x1bbb2e})=>_0x509c88['type']==_0x38f90d&&_0x509c88['subType']==_0x1bbb2e),_0x3f95cb=_0x52852e['findIndex'](({type:_0x22a7a5,subType:_0x4b5869})=>_0x529993['type']==_0x22a7a5&&_0x529993['subType']==_0x4b5869);if(_0x575464<0x0||_0x3f95cb<0x0)return!0x1;const _0x26ce86=_0x509c88['getFirstRange'](),_0x3aac20=_0x529993['getFirstRange']();if((0x0==_0x575464||0x1==_0x575464)&&0x2==_0x3f95cb&&_0x26ce86['isIntersecting'](_0x3aac20))return!0x0;if(0x2==_0x575464&&0x3==_0x3f95cb){const _0xfb8f05=_0x33adf3['_findSuggestions'](_0x26ce86,'insertion')['filter'](({suggestion:_0x143627,meta:_0x361c0f})=>_0x361c0f['isOwn']&&'convertInlineImageToBlock'==_0x143627['subType']);if(_0xfb8f05['length']>0x1&&_0x3aac20['end']['isEqual'](_0x26ce86['start']))return!0x0;if(0x1==_0xfb8f05['length']&&(_0x26ce86['start']['isEqual'](_0x3aac20['end'])||_0x26ce86['end']['isEqual'](_0x3aac20['start'])))return!0x0;}if(0x3==_0x575464&&0x3==_0x3f95cb&&_0x26ce86['start']['isBefore'](_0x3aac20['start'])){const _0x3bd2fd=_0x26ce86['end']['nodeAfter'],_0x22f363=_0x3aac20['start']['nodeBefore'];return _0x173c77['isBlockImage'](_0x3bd2fd)&&_0x3bd2fd===_0x22f363;}return!0x1;}function _0x42bc26(_0x58ea87,_0x510546){return _0x1b7483(_0x58ea87,_0x510546)?[_0x58ea87,_0x510546]:_0x1b7483(_0x510546,_0x58ea87)?[_0x510546,_0x58ea87]:null;}_0x4efdc0['plugins']['has']('ImageResize')&&(_0x33adf3['enableDefaultAttributesIntegration']('resizeImage'),_0x33adf3['registerBlockAttribute']('resizedWidth'),_0x33adf3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x38fd89,'FORMAT_IMAGE_SIZE'))),_0x4efdc0['plugins']['has']('ImageTextAlternativeEditing')&&(_0x33adf3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x33adf3['registerBlockAttribute']('alt')),_0x33adf3['descriptionFactory']['registerDescriptionCallback'](_0x8ac9af=>{if(!!_0x52852e['find'](({type:_0x2cdb7e,subType:_0x981da5})=>_0x8ac9af['type']==_0x2cdb7e&&_0x8ac9af['subType']==_0x981da5))return _0x8ac9af['previous']?{}:void 0x0;}),_0x33adf3['descriptionFactory']['registerDescriptionCallback'](_0x26986d=>{if('insertion'==_0x26986d['type']||'deletion'==_0x26986d['type']){const _0x6ece19=_0x26986d['getContainedElement']();if(_0x6ece19&&_0x6ece19['is']('element','caption'))return{'type':'insertion'==_0x26986d['type']?'addObject':'removeObject','element':_0x6ece19,'quantity':0x1};}}),_0x33adf3['descriptionFactory']['registerDescriptionCallback'](_0x17d43c=>'formatBlock'==_0x17d43c['type']&&'convertInlineImageToBlock'==_0x17d43c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x17d43c['type']&&'convertBlockImageToInline'==_0x17d43c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x33adf3['descriptionFactory']['registerDescriptionCallback'](_0x740f04=>{if('attribute'!=_0x740f04['type'])return;const {data:_0x211e26}=_0x740f04;if(!_0x211e26||'alt'!=_0x211e26['key'])return;const _0x14590b=_0x211e26['newValue'];return _0x14590b?{'type':'format','content':o(_0x38fd89,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x14590b+'\x22')}:{'type':'format','content':o(_0x38fd89,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21bdad=this['editor'],_0xe0834=_0x21bdad['locale'];_0x21bdad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a8ff3=>{if('formatBlock'!=_0x2a8ff3['type']&&'formatInline'!=_0x2a8ff3['type'])return;const {data:_0x4ca0cd}=_0x2a8ff3;if(_0x4ca0cd){if('imageTextAlternative'==_0x4ca0cd['commandName']){const _0x3a18a6=_0x4ca0cd['commandParams'][0x0]['newValue'];return _0x3a18a6?{'type':'format','content':o(_0xe0834,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3a18a6+'\x22')}:{'type':'format','content':o(_0xe0834,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4ca0cd['commandName']){const _0x3ba962=_0x4ca0cd['commandParams'][0x0]['width'];return _0x3ba962?{'type':'format','content':o(_0xe0834,'*Set\x20image\x20width:*\x20%0',_0x3ba962)}:{'type':'format','content':o(_0xe0834,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x30a5e2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x146a80=this['editor']['locale'],_0x54940d=this['editor']['plugins']['get']('TrackChangesEditing');_0x54940d['enableDefaultAttributesIntegration']('replaceImageSource'),_0x54940d['registerBlockAttribute']('src'),_0x54940d['descriptionFactory']['registerDescriptionCallback'](_0x2abdcd=>{if('attribute'!=_0x2abdcd['type'])return;const {data:_0x1064cf}=_0x2abdcd;return _0x1064cf&&'src'==_0x1064cf['key']?_0x1064cf['newValue']&&_0x1064cf['oldValue']?{'type':'format','content':o(_0x146a80,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5c4213=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c4213['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5c4213['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c4213['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5c4213['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3196d5=this['editor'],_0x503160=_0x3196d5['locale'];_0x3196d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x412a38=>{if('formatBlock'!=_0x412a38['type']&&'formatInline'!=_0x412a38['type'])return;const {data:_0x5c6cf5}=_0x412a38;if(!_0x5c6cf5||'replaceImageSource'!=_0x5c6cf5['commandName'])return;return{'type':'format','content':o(_0x503160,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x30a5e2{['afterInit'](){const _0x2954b1=this['editor'];if(!_0x2954b1['plugins']['has']('ImageStyleEditing'))return;const _0x3de623=_0x2954b1['plugins']['get']('TrackChangesEditing'),_0x5b64b9=_0x2954b1['plugins']['get']('ImageUtils'),_0x43ad6c={};_0x3de623['enableCommand']('imageStyle',(_0x717c19,_0x958e39)=>{const _0x12003b=_0x2954b1['plugins']['get']('Users')['me'],_0x5d3499=_0x2954b1['commands']['get']('imageStyle');let _0x521ec3=_0x5b64b9['getClosestSelectedImageElement'](_0x2954b1['model']['document']['selection']),_0x2cdbaf=_0x2954b1['model']['createRangeOn'](_0x521ec3),_0x348e87=_0x5d3499['value'];if(_0x348e87==_0x958e39['value'])return;const _0xd34e5b={'commandName':'imageStyle','commandParams':[_0x958e39],'formatGroupId':_0x13811a()};_0x2954b1['model']['change'](()=>{if(_0x3de623['getSuggestions']()['filter'](_0x3de181=>_0x3de181['isInContent']&&_0x12003b==_0x3de181['author']&&('formatBlock'==_0x3de181['type']||'formatInline'==_0x3de181['type'])&&('imageStylePreApply'==_0x3de181['subType']||'imageStylePostApply'==_0x3de181['subType'])&&_0x3de181['getFirstRange']()['isEqual'](_0x2cdbaf))['forEach'](_0x1a103c=>_0x3de623['discardSuggestion'](_0x1a103c['head'])),_0x521ec3=_0x5b64b9['getClosestSelectedImageElement'](_0x2954b1['model']['document']['selection']),_0x2cdbaf=_0x2954b1['model']['createRangeOn'](_0x521ec3),_0x5d3499['refresh'](),_0x2954b1['commands']['get']('imageTypeInline')['refresh'](),_0x2954b1['commands']['get']('imageTypeBlock')['refresh'](),_0x348e87=_0x5d3499['value'],_0x348e87!=_0x958e39['value'])return _0x5b64b9['isInlineImage'](_0x521ec3)&&_0x5d3499['shouldConvertImageType'](_0x958e39['value'],_0x521ec3)?(_0x717c19({..._0x958e39,'setImageSizes':!0x1}),_0x521ec3=_0x5b64b9['getClosestSelectedImageElement'](_0x2954b1['model']['document']['selection']),void _0x3de623['markBlockFormat'](_0x521ec3,{..._0xd34e5b,'commandReversedParams':[{'value':_0x348e87||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5b64b9['isBlockImage'](_0x521ec3)?_0x3de623['markBlockFormat'](_0x521ec3,_0xd34e5b,[],'imageStylePostApply'):_0x3de623['markInlineFormat'](_0x2cdbaf,_0xd34e5b,'imageStylePostApply'));});});for(const _0x446a7b of _0x2954b1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x43ad6c[_0x446a7b['name']]=_0x446a7b['title']['toLowerCase']();_0x3de623['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3de623['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3de623['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3de623['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x3a8cfb])=>{_0x5b64b9['setImageNaturalSizeAttributes'](_0x3a8cfb['getContainedElement']());}),_0x3de623['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x535d0d,_0x2dbaa3)=>{_0x3de623['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x535d0d,{'commandName':_0x2dbaa3['commandName'],'commandParams':_0x2dbaa3['commandReversedParams']});}),_0x3de623['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x46def3,_0x5def6c){if(_0x4f6fee(_0x46def3,_0x5def6c))return[_0x46def3,_0x5def6c];if(_0x4f6fee(_0x5def6c,_0x46def3))return[_0x5def6c,_0x46def3];return null;});const _0x1c6cae=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4f6fee(_0x4e0608,_0x16f359){const _0x57f157=_0x1c6cae['findIndex'](({type:_0x25827c,subType:_0x595688})=>_0x4e0608['type']==_0x25827c&&_0x4e0608['subType']==_0x595688),_0x33252d=_0x1c6cae['findIndex'](({type:_0x5d362b,subType:_0x59523e})=>_0x16f359['type']==_0x5d362b&&_0x16f359['subType']==_0x59523e);if(_0x57f157<0x0||_0x33252d<0x0)return!0x1;const _0x576def=_0x4e0608['getFirstRange'](),_0x119420=_0x16f359['getFirstRange']();if((0x0==_0x57f157||0x1==_0x57f157)&&0x2==_0x33252d&&_0x576def['isIntersecting'](_0x119420))return!0x0;if(0x2==_0x57f157&&0x3==_0x33252d){const _0x1f99d6=_0x3de623['_findSuggestions'](_0x576def,'insertion')['filter'](({suggestion:_0x57fd63,meta:_0x4fd4dd})=>_0x4fd4dd['isOwn']&&'convertInlineImageToBlock'==_0x57fd63['subType']);if(_0x1f99d6['length']>0x1&&_0x119420['end']['isEqual'](_0x576def['start']))return!0x0;if(0x1==_0x1f99d6['length']&&(_0x576def['start']['isEqual'](_0x119420['end'])||_0x576def['end']['isEqual'](_0x119420['start'])))return!0x0;}if(0x3==_0x57f157&&0x3==_0x33252d&&_0x576def['start']['isBefore'](_0x119420['start'])){const _0x32f9ae=_0x576def['end']['nodeAfter'],_0x47691d=_0x119420['start']['nodeBefore'];return _0x5b64b9['isBlockImage'](_0x32f9ae)&&_0x32f9ae===_0x47691d;}return!0x1;}_0x2954b1['model']['document']['registerPostFixer'](()=>{let _0x35c663=!0x1;const _0x1f8db2=Array['from'](_0x2954b1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e5174,data:_0x2d61ff}of _0x1f8db2){const {group:_0x23915c,type:_0x843d3,subType:_0x8512b4,id:_0x31f2f9}=_0x3de623['_splitMarkerName'](_0x2e5174);if('suggestion'==_0x23915c&&_0x3de623['hasSuggestion'](_0x31f2f9)){if('formatBlock'==_0x843d3&&('imageStylePreApply'==_0x8512b4||'imageStylePostApply'==_0x8512b4)){const _0x527c52=_0x3de623['getSuggestion'](_0x31f2f9);if(_0x2d61ff['newRange']){const _0x2753ec=_0x527c52['getFirstRange']()['getContainedElement']();if(_0x5b64b9['isBlockImage'](_0x2753ec))continue;_0x3de623['discardSuggestion'](_0x527c52),_0x35c663=!0x0;}}if('insertion'==_0x843d3&&'imageCaption'==_0x8512b4&&!_0x2d61ff['newRange']){const _0xddcd04=_0x3de623['getSuggestion'](_0x31f2f9);_0xddcd04['next']&&_0xddcd04['next']['isInContent']&&(_0x3de623['discardSuggestion'](_0xddcd04['next']),_0x35c663=!0x0);}}}return _0x35c663;}),this['_registerLegacyDescription'](_0x43ad6c);}['_registerLegacyDescription'](_0x38eaf2){const _0x3f47d5=this['editor'],_0x57cd37=_0x3f47d5['locale'];_0x3f47d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b07d0=>{if('formatBlock'!=_0x4b07d0['type']&&'formatInline'!=_0x4b07d0['type'])return;const {data:_0xccb606}=_0x4b07d0;if(!_0xccb606||'imageStyle'!=_0xccb606['commandName'])return;const _0x13859b=_0xccb606['commandParams'][0x0]['value'];return _0x4eb9f5('side'===_0x13859b?o(_0x57cd37,'FORMAT_SIDE_IMAGE'):_0x38eaf2[_0x13859b]||_0x13859b);function _0x4eb9f5(_0x1b6fec){return{'type':'format','content':o(_0x57cd37,'*Format:*\x20%0',_0x1b6fec)};}});}}class ct extends _0x30a5e2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x125e72){super(_0x125e72),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5ba270=this['editor'],_0x15f499=_0x5ba270['commands']['get']('importWord'),_0x4d254d=_0x5ba270['commands']['get']('trackChanges');_0x15f499&&(_0x15f499['on']('execute',(_0x333ff8,[,_0x198c1f])=>{this['_trackChangesValueDuringImport']=_0x4d254d['value'],_0x198c1f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x15f499,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x15f499,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4d254d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5ba270['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1b9455,_0xdf7b80){const {suggestions:_0x10d93f}=_0xdf7b80,_0x533d62=this['editor']['commands']['get']('trackChanges'),_0x3dc7ad=_0x533d62['value'];this['_trackChangesValueDuringImport']!==_0x3dc7ad&&(_0x533d62['execute'](),this['_trackChangesExecuted']=!0x0),_0x10d93f&&_0x10d93f['forEach'](({id:_0xbdb1c2,type:_0x33eb93,author:_0x389481,created_at:_0xb1adac})=>{const _0x4ca599={'id':_0xbdb1c2,'type':_0x33eb93,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x389481,'createdAt':_0xb1adac?new Date(_0xb1adac):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4ca599);});}}class ut extends _0x30a5e2{['afterInit'](){const _0x5acce7=this['editor'],_0x4eeb25=_0x5acce7['plugins']['get']('TrackChangesEditing');if(_0x5acce7['plugins']['has']('IndentEditing')&&(_0x4eeb25['enableCommand']('indent'),_0x4eeb25['enableCommand']('outdent')),_0x5acce7['plugins']['has']('IndentBlock')){for(const _0x546e94 of['indentBlock','outdentBlock'])_0x4eeb25['enableDefaultAttributesIntegration'](_0x546e94);}const _0x5add17=_0x5acce7['locale'];_0x4eeb25['registerBlockAttribute']('blockIndent'),_0x4eeb25['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5add17,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x209e6d=this['editor'],_0x3d37ee=_0x209e6d['locale'],_0x5ce13d=_0x209e6d['plugins']['get']('TrackChangesEditing');_0x5ce13d['descriptionFactory']['registerDescriptionCallback'](_0x4507a9=>{if('formatBlock'!=_0x4507a9['type'])return;const {data:_0x10b985}=_0x4507a9;if(!_0x10b985)return;if('indentBlock'!=_0x10b985['commandName']&&'outdentBlock'!=_0x10b985['commandName'])return;const _0x5a0395=_0x4507a9['getItems']()[0x0],_0x46392c=_0x5ce13d['descriptionFactory']['getItemLabel'](_0x5a0395);return'indentBlock'==_0x10b985['commandName']?{'type':'format','content':o(_0x3d37ee,'*Indent:*\x20%0',_0x46392c)}:'outdentBlock'==_0x10b985['commandName']?{'type':'format','content':o(_0x3d37ee,'*Outdent:*\x20%0',_0x46392c)}:void 0x0;});}}class ft extends _0x30a5e2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x30a5e2{['afterInit'](){const _0x30e0c2=this['editor'];if(!_0x30e0c2['plugins']['has']('LinkEditing'))return;const _0x9284ce=_0x30e0c2['plugins']['get']('TrackChangesEditing'),_0x45d5f8=_0x30e0c2['commands']['get']('link');_0x9284ce['enableDefaultAttributesIntegration']('link'),_0x9284ce['enableDefaultAttributesIntegration']('unlink'),_0x9284ce['registerInlineAttribute']('linkHref');for(const _0x14e09c of _0x45d5f8['manualDecorators'])_0x9284ce['registerInlineAttribute'](_0x14e09c['id']),_0x9284ce['descriptionFactory']['registerAttributeLabel'](_0x14e09c['id'],'link\x20('+_0x14e09c['label']['toLowerCase']()+')');_0x9284ce['descriptionFactory']['registerDescriptionCallback'](_0x1eabd3=>{if('attribute'!=_0x1eabd3['type'])return;const {data:_0xba3fcb}=_0x1eabd3;if(!_0xba3fcb||'linkHref'!=_0xba3fcb['key'])return;const _0x27a635=_0xba3fcb['newValue'],_0x5d327f=_0x30e0c2['locale'];return{'type':'format','content':null==_0x27a635?o(_0x5d327f,'*Remove\x20link*'):o(_0x5d327f,'*Set\x20link:*\x20%0','\x22'+_0x27a635+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x364197=this['editor'],_0x28b186=_0x364197['locale'];_0x364197['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50055c=>{if('formatInline'!=_0x50055c['type'])return;const {data:_0x34b0a6}=_0x50055c;if(_0x34b0a6){if('link'==_0x34b0a6['commandName']){const _0x18f1e3=_0x34b0a6['commandParams'][0x0];return{'type':'format','content':o(_0x28b186,'*Set\x20link:*\x20%0','\x22'+_0x18f1e3+'\x22')};}return'unlink'==_0x34b0a6['commandName']?{'type':'format','content':o(_0x28b186,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x30a5e2{['afterInit'](){const _0x1dd12e=this['editor'],_0x428979=_0x1dd12e['locale'];if(!_0x1dd12e['plugins']['has']('LegacyListEditing'))return;const _0x2ddba1=_0x1dd12e['plugins']['get']('TrackChangesEditing'),_0x526818=_0x1dd12e['plugins']['has']('LegacyTodoListEditing');function _0x53b6c1(_0x20e97c){return()=>{const _0x8fa39e=_0x1dd12e['model']['document']['selection'],_0x466bdd=_0x1dd12e['commands']['get'](_0x20e97c);if(_0x466bdd['value'])return void _0x1dd12e['execute']('paragraph',{});const _0x4b8f79=_0x20e97c['slice'](0x0,-0x4),_0x137bc1=function(_0x5ce69b,_0x4e3e38,_0x28618c){let _0x40852c=Array['from'](_0x5ce69b)['filter'](_0x5e9027=>function(_0x3ec356,_0x3bd98a){return _0x3bd98a['checkChild'](_0x3ec356['parent'],'listItem')&&!_0x3bd98a['isObject'](_0x3ec356);}(_0x5e9027,_0x28618c));_0x40852c=_0x40852c['filter'](_0x18bd5c=>!_0x18bd5c['is']('element','listItem')||_0x18bd5c['getAttribute']('listType')!=_0x4e3e38);const _0x5e183b=new Set();for(const _0x3b7ae5 of _0x40852c)_0x3b7ae5['is']('element','listItem')?_0x5e183b['add'](Le(_0x3b7ae5)):_0x5e183b['add'](_0x3b7ae5);return Array['from'](_0x5e183b);}(_0x8fa39e['getSelectedBlocks'](),_0x4b8f79,_0x1dd12e['model']['schema']);_0x1dd12e['model']['change'](()=>{for(const _0x51a9ef of _0x137bc1)_0x2ddba1['markBlockFormat'](_0x51a9ef,{'commandName':_0x20e97c,'commandParams':[{'forceValue':!_0x466bdd['value']}],'formatGroupId':'blockName'},Ee(_0x51a9ef));});};}function _0x588c75(_0x5c58e1){return()=>{const _0x49985d=function(_0x396dc3){let _0x32264d=Array['from'](_0x396dc3);const _0xbf92e7=_0x32264d['findIndex'](_0x31d5ed=>'listItem'!=_0x31d5ed['name']);return _0xbf92e7>-0x1&&(_0x32264d=_0x32264d['slice'](0x0,_0xbf92e7)),_0x32264d;}(_0x1dd12e['model']['document']['selection']['getSelectedBlocks']()),_0x5dad09=_0x1dd12e['model']['createRange'](_0x1dd12e['model']['createPositionAt'](_0x49985d[0x0],'before'),_0x1dd12e['model']['createPositionAt'](_0x49985d[_0x49985d['length']-0x1],'end'));_0x1dd12e['model']['change'](()=>{_0x2ddba1['markBlockFormat'](_0x5dad09,{'commandName':_0x5c58e1,'commandParams':[],'formatGroupId':'listIndent'},function(_0x38987d){const _0x4f6fb7=new Set();for(const _0x4bac70 of _0x38987d){let _0x3101e7=_0x4bac70['nextSibling'];for(;_0x3101e7&&_0x3101e7['getAttribute']('listIndent')>_0x4bac70['getAttribute']('listIndent');)_0x4f6fb7['add'](_0x3101e7),_0x3101e7=_0x3101e7['nextSibling'];}return Array['from'](_0x4f6fb7);}(_0x49985d));});};}_0x2ddba1['enableCommand']('numberedList',_0x53b6c1('numberedList')),_0x2ddba1['enableCommand']('bulletedList',_0x53b6c1('bulletedList')),_0x526818&&_0x2ddba1['enableCommand']('todoList',_0x53b6c1('todoList')),_0x2ddba1['enableCommand']('indentList',_0x588c75('indentList')),_0x2ddba1['enableCommand']('outdentList',_0x588c75('outdentList')),_0x526818&&_0x2ddba1['enableCommand']('checkTodoList',()=>{const _0x189b95=_0x1dd12e['commands']['get']('checkTodoList'),_0x4faa0a=Array['from'](_0x189b95['_selectedElements']);_0x4faa0a['filter'](_0x103975=>_0x103975['getAttribute']('todoListChecked')!=_0x189b95['value']),_0x1dd12e['model']['change'](()=>{for(const _0x4954ae of _0x4faa0a)_0x2ddba1['markBlockFormat'](_0x4954ae,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x189b95['value']}]});});}),_0x2ddba1['descriptionFactory']['registerElementLabel']('listItem',_0x22e5e0=>o(_0x428979,'ELEMENT_LIST_ITEM',_0x22e5e0)),_0x2ddba1['descriptionFactory']['registerDescriptionCallback'](_0x396549=>{if('formatBlock'!=_0x396549['type']&&'formatInline'!=_0x396549['type'])return;const {data:_0x41480c}=_0x396549;if(_0x41480c){if('numberedList'==_0x41480c['commandName']||'bulletedList'==_0x41480c['commandName']||'todoList'==_0x41480c['commandName'])switch(_0x41480c['commandName']['replace']('List','')){case'bulleted':return _0x49f6c1(o(_0x428979,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49f6c1(o(_0x428979,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49f6c1(o(_0x428979,'ELEMENT_TODO_LIST'));}if('indentList'==_0x41480c['commandName'])return{'type':'format','content':o(_0x428979,'*Indent:*\x20%0',o(_0x428979,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x41480c['commandName'])return{'type':'format','content':o(_0x428979,'*Outdent:*\x20%0',o(_0x428979,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x41480c['commandName'])return _0x41480c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x428979,'*Check\x20item*')}:{'type':'format','content':o(_0x428979,'*Uncheck\x20item*')};}function _0x49f6c1(_0x2d786a){return{'type':'format','content':o(_0x428979,'*Change\x20to:*\x20%0',_0x2d786a)};}});}}function Le(_0x5acbe2){const _0x2b824d=_0x5acbe2['getAttribute']('listIndent');if(0x0==_0x2b824d)return _0x5acbe2;let _0x5c698d=_0x5acbe2;for(;_0x5acbe2['previousSibling']&&_0x5acbe2['previousSibling']['is']('element','listItem');){const _0x4d38ae=_0x5acbe2['previousSibling']['getAttribute']('listIndent');if(_0x4d38ae==_0x2b824d)_0x5c698d=_0x5acbe2['previousSibling'];else{if(_0x4d38ae<_0x2b824d)break;}_0x5acbe2=_0x5acbe2['previousSibling'];}return _0x5c698d;}function Ee(_0x466572){const _0x378952=[];if(_0x466572['is']('element','listItem')&&_0x466572['getAttribute']('listIndent')>0x0){let _0x5595d8=_0x466572['nextSibling'];for(;_0x5595d8&&'listItem'==_0x5595d8['name']&&_0x5595d8['getAttribute']('listIndent')==_0x466572['getAttribute']('listIndent');)_0x378952['push'](_0x5595d8),_0x5595d8=_0x5595d8['nextSibling'];}return _0x378952;}class Q extends _0x30a5e2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32262d=this['editor']['config']['get']('list.properties'),_0x70b73=this['editor']['plugins']['get']('TrackChangesEditing');_0x32262d['styles']&&_0x70b73['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32262d['reversed']&&_0x70b73['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32262d['startIndex']&&_0x70b73['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x70b73['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2b429b,_0x55b941={}){const _0x44cb42=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bac42=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x44cb42['markMultiRangeBlockFormat'](_0x4bac42,{'commandName':'listStyle','commandParams':[{'type':_0x55b941['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x534c00,_0x241663={}){const _0x3bc456=this['editor']['plugins']['get']('TrackChangesEditing'),_0x137baf=this['_getSuggestionBlocks'](_0xbce8ff=>_0xbce8ff['is']('element','listItem')&&'numbered'===_0xbce8ff['getAttribute']('listType'));if(_0x137baf['length']<0x1)return;const _0x47cc18=_0x137baf['map'](_0x5e6355=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5e6355,'before'),this['editor']['model']['createPositionAt'](_0x5e6355,0x0)));this['editor']['model']['change'](()=>{_0x3bc456['markMultiRangeBlockFormat'](_0x47cc18,{'commandName':'listReversed','commandParams':[{'reversed':_0x241663['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4def7b,_0x518939={}){const _0x54d6af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b1306=this['_getSuggestionBlocks'](_0x4bbbba=>_0x4bbbba['is']('element','listItem')&&'numbered'===_0x4bbbba['getAttribute']('listType'));if(_0x2b1306['length']<0x1)return;const _0x2ffbf6=_0x2b1306['map'](_0x15a5d8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x15a5d8,'before'),this['editor']['model']['createPositionAt'](_0x15a5d8,0x0)));this['editor']['model']['change'](()=>{_0x54d6af['markMultiRangeBlockFormat'](_0x2ffbf6,{'commandName':'listStart','commandParams':[{'startIndex':_0x518939['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x174b89){if('formatBlock'!=_0x174b89['type']&&'formatInline'!=_0x174b89['type'])return;const _0x28e851=this['editor']['locale'],{data:_0x55b78d}=_0x174b89;if(!_0x55b78d)return;let _0x482910,_0x337c45;switch(_0x55b78d['commandName']){case'listStyle':_0x482910='*Change\x20to:*\x20%0',_0x337c45={'type':'format','content':o(_0x28e851,_0x482910,o(_0x28e851,this['_getTranslationKeyForListStyle'](_0x55b78d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x482910=_0x55b78d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x337c45={'type':'format','content':o(_0x28e851,_0x482910)};break;case'listStart':_0x482910='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x337c45={'type':'format','content':o(_0x28e851,_0x482910,_0x55b78d['commandParams'][0x0]['startIndex'])};}return _0x337c45;}['_getSuggestionBlocksForListStyle'](){const _0x509ec2=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b2065=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2b2065[0x0]?.['is']('element','listItem')&&_0x2b2065['unshift'](..._0x509ec2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2b2065[_0x2b2065['length']-0x1]?.['is']('element','listItem')&&_0x2b2065['push'](..._0x509ec2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b2065=[...new Set(_0x2b2065)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2b2065=_0x2b2065['filter'](_0x37f538=>_0x37f538['is']('element','listItem'))),_0x2b2065;}['_getSuggestionBlocks'](_0x2246d3){const _0x481d8a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d4393=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2246d3)['map'](_0x171a6d=>{const _0x5465b5=this['editor']['model']['createPositionAt'](_0x171a6d,0x0);return[..._0x481d8a['getSiblingNodes'](_0x5465b5,'backward'),..._0x481d8a['getSiblingNodes'](_0x5465b5,'forward')];})['flat']();return _0x2d4393=[...new Set(_0x2d4393)],_0x2d4393;}['_getTranslationKeyForListStyle'](_0x574640){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x574640)||'default')['toUpperCase']()+'_LIST_'+_0x574640['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x30a5e2{['afterInit'](){const _0x1535be=this['editor'];if(!_0x1535be['plugins']['has']('MediaEmbedEditing'))return;const _0x418595=_0x1535be['plugins']['get']('TrackChangesEditing'),_0x3a573c=_0x1535be['locale'];_0x418595['enableCommand']('mediaEmbed'),_0x418595['descriptionFactory']['registerElementLabel']('media',_0x1e4f09=>o(_0x3a573c,'ELEMENT_MEDIA',_0x1e4f09)),_0x1535be['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1387a3,{writer:_0x124e44,options:_0x3db084})=>{if(_0x3db084['showSuggestionHighlights'])return _0x124e44['createEmptyElement']('div');},'converterPriority':'high'}),_0x1535be['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1e1e19,_0x41b910,_0x55245e)=>{_0x55245e['options']['showSuggestionHighlights']&&_0x1e1e19['stop']();},{'priority':'high'});}}class mt extends _0x30a5e2{['afterInit'](){const _0xdf965e=this['editor'];_0xdf965e['plugins']['has']('MentionEditing')&&_0xdf965e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x30a5e2{['afterInit'](){const _0x5f2c00=this['editor'];if(!_0x5f2c00['plugins']['has']('MergeFieldsEditing'))return;_0x5f2c00['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5f2c00['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x4df36f=_0x5f2c00['plugins']['get']('TrackChangesEditing'),_0x56fc54=_0x5f2c00['locale'];_0x4df36f['descriptionFactory']['registerElementLabel']('mergeField',_0x1e6608=>o(_0x56fc54,'ELEMENT_MERGE_FIELD',_0x1e6608)),_0x4df36f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4a24ab=>o(_0x56fc54,'ELEMENT_MERGE_FIELD',_0x4a24ab)),_0x4df36f['descriptionFactory']['registerDescriptionCallback'](_0x14c47c=>{if('insertion'!=_0x14c47c['type']&&'deletion'!=_0x14c47c['type'])return;const _0x310896=_0x14c47c['getContainedElement']();if(null==_0x310896)return;if(!_0x310896['is']('element','mergeField')&&!_0x310896['is']('element','mergeFieldBlock'))return;const _0x5991d0=_0x5f2c00['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x310896['getAttribute']('id'));return'insertion'==_0x14c47c['type']?{'type':'insertion','content':o(_0x56fc54,'*Insert:*\x20%0','\x22'+_0x5991d0+'\x22\x20'+o(_0x56fc54,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x56fc54,'*Remove:*\x20%0','\x22'+_0x5991d0+'\x22\x20'+o(_0x56fc54,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x30a5e2{['afterInit'](){const _0x59a99a=this['editor'],_0x1c1281=_0x59a99a['plugins']['get']('TrackChangesEditing');_0x59a99a['plugins']['has']('MultiLevelList')&&(_0x1c1281['enableDefaultAttributesIntegration']('multiLevelList'),_0x1c1281['registerBlockAttribute']('listMarkerStyle'),_0x1c1281['descriptionFactory']['registerDescriptionCallback'](_0x1e2e3b=>this['handleDescriptions'](_0x1e2e3b)));}['handleDescriptions'](_0x54b9b4){const _0x21e35a=this['editor']['locale'],{data:_0xc2baca}=_0x54b9b4,_0x2fa51e={'type':'format','content':''};if(_0xc2baca&&'listMarkerStyle'==_0xc2baca['key']){if(!_0xc2baca['oldValue'])return{'type':'format','content':o(_0x21e35a,'*Set\x20format:*\x20%0',o(_0x21e35a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc2baca['newValue']+')'};if(!_0xc2baca['newValue']){let _0x1bf5a5=_0x54b9b4['head'];for(;_0x1bf5a5;){if(_0x1bf5a5['data']&&'listType'==_0x1bf5a5['data']['key']&&_0x1bf5a5['data']['newValue'])return _0x2fa51e;_0x1bf5a5=_0x1bf5a5['next'];}return{'type':'format','content':o(_0x21e35a,'*Remove\x20format:*\x20%0',o(_0x21e35a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc2baca['oldValue']+')'};}}}}class kt extends _0x30a5e2{['afterInit'](){const _0x1c4629=this['editor'];if(!_0x1c4629['plugins']['has']('PageBreakEditing'))return;_0x1c4629['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4edc0f=_0x1c4629['plugins']['get']('TrackChangesEditing'),_0x5ee8f1=_0x1c4629['locale'];_0x4edc0f['descriptionFactory']['registerElementLabel']('pageBreak',_0x2bf05a=>o(_0x5ee8f1,'ELEMENT_PAGE_BREAK',_0x2bf05a));}}class bt extends _0x30a5e2{['afterInit'](){const _0x6ba19b=this['editor'];if(!_0x6ba19b['plugins']['has']('Paragraph'))return;const _0x3221b9=_0x6ba19b['locale'],_0x982fab=_0x6ba19b['plugins']['get']('TrackChangesEditing');_0x982fab['descriptionFactory']['registerElementLabel']('paragraph',_0x476f13=>o(_0x3221b9,'ELEMENT_PARAGRAPH',_0x476f13)),_0x982fab['enableDefaultAttributesIntegration']('paragraph'),_0x982fab['enableCommand']('insertParagraph'),_0x6ba19b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x6ba19b),{'priority':'highest'}),_0x6ba19b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x39ef1f,_0x234a2e,_0x35cf23)=>{_0x35cf23['options']['showSuggestionHighlights']&&nr(_0x6ba19b,{'showActiveMarker':!0x1})(_0x39ef1f,_0x234a2e,_0x35cf23);},{'priority':'highest'});const _0x17f6dd=_0x982fab['descriptionFactory'];_0x17f6dd['registerDescriptionCallback'](_0x845cf7=>{if('insertion'!==_0x845cf7['type'])return;const {start:_0x586c55,end:_0x5c1f11}=_0x845cf7['getFirstRange']();if(!_0x586c55['isTouching'](_0x5c1f11)||!_0x586c55['nodeAfter'])return;const _0x34894b=_0x6ba19b['model']['schema'],_0x5b0c9d=_0x586c55['nodeAfter'];return _0x34894b['isBlock'](_0x5b0c9d)&&!_0x34894b['isLimit'](_0x5b0c9d)&&_0x34894b['checkChild'](_0x5b0c9d,'$text')?{'type':'insertion','content':o(_0x3221b9,'*Insert:*\x20%0',_0x17f6dd['getItemLabel'](_0x5b0c9d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22fbd2=this['editor'],_0x621bb7=_0x22fbd2['locale'];_0x22fbd2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43bb8e=>{if('formatBlock'!=_0x43bb8e['type'])return;const {data:_0x5bb453}=_0x43bb8e;return _0x5bb453&&'paragraph'==_0x5bb453['commandName']?{'type':'format','content':o(_0x621bb7,'*Change\x20to:*\x20%0',o(_0x621bb7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x46d398,{showActiveMarker:_0x1bf6e7=!0x0}={}){return(_0x130a6d,_0x556c53,_0x2d4b14)=>{const _0x53905c=_0x46d398['plugins']['get']('TrackChangesEditing'),_0x2fb322=_0x556c53['markerRange']['start'],_0x52d11c=_0x556c53['markerRange']['end'],_0x3a8dc9=_0x46d398['model']['schema'];if(!_0x2fb322['isTouching'](_0x52d11c)||!_0x2fb322['nodeAfter'])return;const _0x44f685=_0x2fb322['nodeAfter'];if(_0x3a8dc9['isBlock'](_0x44f685)&&!_0x3a8dc9['isLimit'](_0x44f685)&&_0x3a8dc9['checkChild'](_0x44f685,'$text')){if(!_0x2d4b14['consumable']['consume'](_0x556c53['markerRange'],_0x130a6d['name']))return;const {authorId:_0x228a23}=_0x53905c['_splitMarkerName'](_0x556c53['markerName']),_0x1bbc22=_0x2d4b14['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x228a23}),_0x57f4f5=_0x2d4b14['mapper']['toViewPosition'](_0x52d11c);_0x1bf6e7&&_0x53905c['activeMarkers']['includes'](_0x556c53['markerName'])&&_0x2d4b14['writer']['addClass']('ck-suggestion-marker--active',_0x1bbc22),_0x2d4b14['writer']['insert'](_0x57f4f5,_0x1bbc22),_0x2d4b14['mapper']['bindElementToMarker'](_0x1bbc22,_0x556c53['markerName']);}};}class yt extends _0x30a5e2{['afterInit'](){const _0x358bef=this['editor'];if(!_0x358bef['plugins']['has']('RemoveFormatEditing'))return;_0x358bef['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a7e9c=this['editor'];_0x4a7e9c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c650c=>{if('formatBlock'!=_0x1c650c['type']&&'formatInline'!=_0x1c650c['type'])return;const {data:_0x8617f9}=_0x1c650c;return _0x8617f9&&'removeFormat'==_0x8617f9['commandName']?{'type':'format','content':o(_0x4a7e9c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x30a5e2{['afterInit'](){const _0x462c53=this['editor'];if(!_0x462c53['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x317359=_0x462c53['plugins']['get']('TrackChangesEditing');_0x317359['enableCommand']('goToPreviousRestrictedEditingException'),_0x317359['enableCommand']('goToNextRestrictedEditingException');const _0x3d0e56=_0x462c53['plugins']['get']('RestrictedEditingModeEditing');_0x3d0e56['enableCommand']('trackChanges'),_0x3d0e56['enableCommand']('acceptSuggestion'),_0x3d0e56['enableCommand']('discardSuggestion'),_0x3d0e56['enableCommand']('acceptAllSuggestions'),_0x3d0e56['enableCommand']('discardAllSuggestions'),_0x3d0e56['enableCommand']('acceptSelectedSuggestions'),_0x3d0e56['enableCommand']('discardSelectedSuggestions');}}class St extends _0x30a5e2{static get['requires'](){return[_0x247339];}['init'](){const _0x367bc5=this['editor'],_0x5adda3=_0x367bc5['plugins']['get']('TrackChangesEditing');_0x5adda3['enableCommand']('shiftEnter'),_0x367bc5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x367bc5),{'priority':'high'}),_0x367bc5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x367bc5),{'priority':'high'}),_0x367bc5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x552ef3,_0x40268d,_0x42c70e)=>{_0x42c70e['options']['showSuggestionHighlights']&&ke(_0x367bc5,{'showActiveMarker':!0x1})(_0x552ef3,_0x40268d,_0x42c70e);}),_0x5adda3['descriptionFactory']['registerElementLabel']('softBreak',_0x14ea56=>o(_0x367bc5['locale'],'ELEMENT_LINE_BREAK',_0x14ea56));}}function ke(_0x2cbe19,{showActiveMarker:_0x2563a2=!0x0}={}){return(_0x10058a,_0x4c2811,_0x18c72b)=>{const _0x317d87=_0x2cbe19['plugins']['get']('TrackChangesEditing');if(!_0x18c72b['consumable']['test'](_0x4c2811['markerRange'],_0x10058a['name']))return;const _0x311474=_0x2cbe19['model'];for(const _0x24fa9e of _0x4c2811['markerRange']['getItems']()){if(!_0x24fa9e['is']('element','softBreak'))continue;const _0x8596f3='deletion'==_0x4c2811['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2fa6ff}=_0x317d87['_splitMarkerName'](_0x4c2811['markerName']),_0x31d1f4=_0x18c72b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x8596f3,'data-author-id':_0x2fa6ff}),_0x247276=_0x18c72b['mapper']['toViewPosition'](_0x311474['createPositionBefore'](_0x24fa9e));_0x2563a2&&_0x317d87['activeMarkers']['includes'](_0x4c2811['markerName'])&&_0x18c72b['writer']['addClass']('ck-suggestion-marker--active',_0x31d1f4),_0x18c72b['writer']['insert'](_0x247276,_0x31d1f4),_0x18c72b['mapper']['bindElementToMarker'](_0x31d1f4,_0x4c2811['markerName']);}};}class At extends _0x30a5e2{['afterInit'](){const _0x56a7de=this['editor'],_0x52c3d6=_0x56a7de['model'],_0x41fcbe=_0x56a7de['locale'];if(!_0x56a7de['plugins']['has']('StandardEditingModeEditing'))return;const _0x7a9010=_0x56a7de['plugins']['get']('TrackChangesEditing'),_0x1cd788='restrictedEditingException',_0x45314f=_0x56a7de['commands']['get'](_0x1cd788);_0x7a9010['enableCommand'](_0x1cd788,(_0x458e9b,_0x36bf5d={})=>{const _0x1fc8a0=_0x52c3d6['document']['selection'];if(_0x1fc8a0['isCollapsed'])return void _0x458e9b(_0x36bf5d);const _0x16cf6a=void 0x0!==_0x36bf5d['forceValue']?_0x36bf5d['forceValue']:!_0x45314f['value'];_0x52c3d6['change'](()=>{const _0x54fdd5=Array['from'](_0x1fc8a0['getRanges']());for(const _0xb23cf1 of _0x54fdd5){const _0xb7613a=_0x16cf6a?[_0xb23cf1]:io(_0x1cd788,_0xb23cf1,_0x52c3d6);for(const _0x257d52 of _0xb7613a)_0x7a9010['markInlineFormat'](_0x257d52,{'commandName':_0x1cd788,'commandParams':[{'forceValue':_0x16cf6a}]});}});}),_0x7a9010['descriptionFactory']['registerDescriptionCallback'](_0x88287f=>{if('formatBlock'!=_0x88287f['type']&&'formatInline'!=_0x88287f['type'])return;const {data:_0x32dc63}=_0x88287f;return _0x32dc63&&_0x32dc63['commandName']==_0x1cd788?_0x32dc63['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41fcbe,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x41fcbe,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x30a5e2{['afterInit'](){const _0x5ed1a9=this['editor'];if(!_0x5ed1a9['plugins']['has']('Style')||!_0x5ed1a9['plugins']['has']('DataSchema'))return;const _0x2346d9=_0x5ed1a9['plugins']['get']('TrackChangesEditing'),_0x41516c=_0x5ed1a9['locale'],_0x476bfd=_0x5ed1a9['config']['get']('style')||{},_0x648739=_0x5ed1a9['plugins']['get']('GeneralHtmlSupport'),_0x5aa21f=_0x5ed1a9['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5ed1a9['plugins']['get']('DataSchema'),_0x476bfd['definitions']);_0x2346d9['enableDefaultAttributesIntegration']('style');const _0x3e9b05=new Set();for(const _0xaed0c6 of _0x5aa21f['block']){const _0x1dce04=_0x648739['getGhsAttributeNameForElement'](_0xaed0c6['element']);_0x3e9b05['add'](_0x1dce04);}const _0x77951d=new Set();for(const _0x8172af of _0x5aa21f['inline']){const _0xeb22bc=_0x648739['getGhsAttributeNameForElement'](_0x8172af['element']);_0x77951d['add'](_0xeb22bc);for(const _0x22598e of _0x8172af['ghsAttributes'])_0x77951d['add'](_0x22598e);}for(const _0x52f234 of _0x3e9b05)_0x2346d9['registerBlockAttribute'](_0x52f234),_0x2346d9['descriptionFactory']['registerAttributeLabel'](_0x52f234,o(_0x41516c,'FORMAT_STYLE'));for(const _0x3cfa8b of _0x77951d)_0x2346d9['registerInlineAttribute'](_0x3cfa8b),_0x2346d9['descriptionFactory']['registerAttributeLabel'](_0x3cfa8b,o(_0x41516c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d5e90=this['editor'],_0xf0daba=_0x1d5e90['locale'];_0x1d5e90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x587f74=>{if('formatBlock'!=_0x587f74['type']&&'formatInline'!=_0x587f74['type'])return;const {data:_0x2824fe}=_0x587f74;return _0x2824fe&&'style'===_0x2824fe['commandName']?_0x2824fe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf0daba,'*Set\x20format:*\x20%0',_0x2824fe['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xf0daba,'*Remove\x20format:*\x20%0',_0x2824fe['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x30a5e2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x324801){super(_0x324801),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5b7c8a=this['editor'],_0x4155f2=_0x5b7c8a['model']['document']['selection'];if(!_0x5b7c8a['plugins']['has']('TableEditing'))return;const _0x1126f4=_0x5b7c8a['locale'],_0x2ea63b=_0x5b7c8a['plugins']['get']('TrackChangesEditing'),_0x25ddc0=_0x5b7c8a['plugins']['get']('TableUtils');_0x2ea63b['descriptionFactory']['registerElementLabel']('table',_0x12defe=>o(_0x1126f4,'ELEMENT_TABLE',_0x12defe)),this['_setupColumnsRowsFixing'](),_0x2ea63b['enableCommand']('insertTable'),_0x2ea63b['enableCommand']('selectTableRow'),_0x2ea63b['enableCommand']('selectTableColumn');for(const _0x240b33 of['insertTableRowAbove','insertTableRowBelow']){const _0x3de216=_0x5b7c8a['commands']['get'](_0x240b33);_0x2ea63b['enableCommand'](_0x240b33,_0x4e0019=>{_0x5b7c8a['model']['change'](_0x51ba18=>{_0x4e0019();const _0x4b1f22='above'===_0x3de216['order'],_0x23b191=_0x25ddc0['getSelectionAffectedTableCells'](_0x4155f2),_0xcf2840=_0x25ddc0['getRowIndexes'](_0x23b191),_0x10ba47=_0x4b1f22?_0xcf2840['first']-0x1:_0xcf2840['last']+0x1,_0x20ee99=_0x23b191[0x0]['findAncestor']('table'),_0x2e46af=_0x25ddc0['createTableWalker'](_0x20ee99,{'startRow':_0x10ba47,'endRow':_0x10ba47}),_0x5986e5=Array['from'](_0x2e46af)['map'](_0x5e92c8=>_0x51ba18['createRangeOn'](_0x5e92c8['cell']));_0x2ea63b['markMultiRangeInsertion'](_0x5986e5,'tableRow');});});}for(const _0xf2e149 of['insertTableColumnLeft','insertTableColumnRight']){const _0x22e788=_0x5b7c8a['commands']['get'](_0xf2e149);_0x2ea63b['enableCommand'](_0xf2e149,_0x48b04b=>{_0x5b7c8a['model']['change'](_0x217752=>{_0x48b04b();const _0x15e1c6='left'===_0x22e788['order'],_0x5159d9=_0x25ddc0['getSelectionAffectedTableCells'](_0x4155f2),_0x6f7c10=_0x25ddc0['getColumnIndexes'](_0x5159d9),_0x18291b=_0x15e1c6?_0x6f7c10['first']-0x1:_0x6f7c10['last']+0x1,_0x22c13d=_0x5159d9[0x0]['findAncestor']('table'),_0x3665d8=_0x25ddc0['createTableWalker'](_0x22c13d,{'startRow':0x0,'column':_0x18291b,'includeAllSlots':!0x1}),_0x4a3585=Array['from'](_0x3665d8)['map'](_0xb92979=>_0x217752['createRangeOn'](_0xb92979['cell']));_0x2ea63b['markMultiRangeInsertion'](_0x4a3585,'tableColumn');});});}for(const _0x2db954 of['removeTableRow','removeTableColumn']){const _0x635ba7=_0x2db954['substr'](0xb),_0x586c69=_0x635ba7['toLowerCase'](),_0x57d7cd=_0x586c69['substr'](0x0,0x3)+'span',_0x58de83='table'+_0x635ba7,_0x225228='min'+_0x635ba7,_0x57ec69='max'+_0x635ba7;_0x2ea63b['enableCommand'](_0x2db954,()=>{_0x5b7c8a['model']['change'](_0x4d2d29=>{const _0x47f469=_0x25ddc0['getSelectionAffectedTableCells'](_0x4155f2),_0x223d30=_0x47f469[0x0]['findAncestor']('table');let _0x1886c0;if('removeTableRow'==_0x2db954){const _0x581fdc=_0x25ddc0['getRowIndexes'](_0x47f469);_0x1886c0={'startRow':_0x581fdc['first'],'endRow':_0x581fdc['last'],'includeAllSlots':!0x0};}else{const _0x3e4169=_0x25ddc0['getColumnIndexes'](_0x47f469);_0x1886c0={'startColumn':_0x3e4169['first'],'endColumn':_0x3e4169['last'],'includeAllSlots':!0x0};}const _0x5c9cd6=_0x25ddc0['createTableWalker'](_0x223d30,_0x1886c0),_0x3a67c7=Array['from'](_0x5c9cd6)['map'](({cell:_0x5f4182})=>_0x5f4182),_0x4c7c94=Re(_0x3a67c7['filter'](_0x164e8a=>_0x164e8a['hasAttribute'](_0x57d7cd))),_0x538bec=Re(_0x3a67c7['filter'](_0x22c68e=>!_0x22c68e['hasAttribute'](_0x57d7cd)))['map'](_0x41df69=>_0x4d2d29['createRangeOn'](_0x41df69)),_0x23a7f3=_0x2ea63b['markMultiRangeDeletion'](_0x538bec,_0x58de83);if(_0x23a7f3&&('tableRow'==_0x23a7f3['subType']||'tableColumn'==_0x23a7f3['subType'])){const _0x190204=this['_getSuggestionCoords'](_0x23a7f3);for(const _0x5c5f04 of _0x4c7c94){const _0x263a05=_0x4d2d29['createRangeOn'](_0x5c5f04),_0x5c853e=_0x25ddc0['getCellLocation'](_0x5c5f04),_0x3b817e=_0x5c5f04['getAttribute'](_0x57d7cd)-0x1,_0x47b8f3=_0x190204[_0x225228],_0x1d34dc=_0x190204[_0x57ec69];_0x47b8f3<=_0x5c853e[_0x586c69]&&_0x5c853e[_0x586c69]+_0x3b817e<=_0x1d34dc&&_0x23a7f3['addRange'](_0x263a05);}}});});}function _0x1ee90b(_0x954743){const _0x1a6aa0=Array['from'](_0x4155f2['getRanges']())['map'](_0x552f2e=>_0x2dc34a['fromRange'](_0x552f2e));_0x5b7c8a['model']['change'](_0x4f2b02=>{const _0x2cdf48=_0x4f2b02['batch'];_0x954743=_0x954743['filter'](_0x8204d2=>'$graveyard'!=_0x8204d2['root']['rootName']),_0x4f2b02['setSelection'](_0x954743),_0x5b7c8a['commands']['get']('removeTableRow')['refresh'](),_0x5b7c8a['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5b7c8a['model']['enqueueChange'](()=>{_0x5b7c8a['model']['enqueueChange'](_0x2cdf48,_0x22d736=>{const _0x4252c8=_0x1a6aa0['filter'](_0x415703=>'$graveyard'!=_0x415703['root']['rootName']);_0x4252c8['length']>0x0&&_0x22d736['setSelection'](_0x4252c8);for(const _0x3cb9f5 of _0x1a6aa0)_0x3cb9f5['detach']();});});});}function _0x5155e2(_0x56f62f){_0x5b7c8a['model']['change'](_0x91278c=>{const _0xb490da=Array['from'](_0x4155f2['getRanges']())['map'](_0x135f9b=>_0x2dc34a['fromRange'](_0x135f9b)),_0x4626bf=[];for(const _0x3def09 of _0x56f62f)for(const _0x55ff48 of _0x3def09['getItems']({'shallow':!0x0}))_0x4626bf['push'](_0x55ff48);for(const _0x1db52e of _0x4626bf)'$graveyard'!=_0x1db52e['root']['rootName']&&(_0x91278c['setSelection'](_0x91278c['createPositionAt'](_0x1db52e,0x0)),_0x5b7c8a['commands']['get']('removeTableColumn')['refresh'](),_0x5b7c8a['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x324f37=_0xb490da['filter'](_0x1c5f25=>'$graveyard'!=_0x1c5f25['root']['rootName']);_0x324f37['length']>0x0&&_0x91278c['setSelection'](_0x324f37);for(const _0x366889 of _0xb490da)_0x366889['detach']();});}function _0x530ced(_0x576e45,_0x1cd420){return _0x1cd420['every'](_0x404fe6=>_0x576e45['some'](_0x18029b=>_0x18029b['end']['isEqual'](_0x404fe6['start'])||_0x404fe6['end']['isEqual'](_0x18029b['start'])));}function _0x435f36(_0x4e8c1a,_0x255f2d){return!_0x4e8c1a['some'](_0x5b3cbb=>_0x255f2d['some'](_0x1787c7=>_0x5b3cbb['isIntersecting'](_0x1787c7)))&&_0x4e8c1a['some'](_0x2286a5=>_0x255f2d['some'](_0x451699=>_0x2286a5['end']['isTouching'](_0x451699['start'])));}_0x5b7c8a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x19525e,_0x5d2152,_0x1c9268)=>{if(!_0x1c9268['options']['showSuggestionHighlights'])return;const _0x504894=_0x5d2152['item'];if(!_0x504894)return;const _0x5565b1=_0x1c9268['mapper']['toViewElement'](_0x504894);function _0x3569be(_0x2af04d){return Array['isArray'](_0x2af04d)?_0x2af04d:[_0x2af04d];}_0x5565b1&&'tableCell'===_0x504894['name']&&_0x5c1011(_0x5565b1,_0x1c9268['writer'],(_0x14f534,_0x357551,_0x379b8b)=>_0x379b8b['addClass'](_0x3569be(_0x357551['classes']),_0x14f534),(_0xf599aa,_0x306ff8,_0x389a75)=>_0x389a75['removeClass'](_0x3569be(_0x306ff8['classes']),_0xf599aa));},{'priority':'highest'}),_0x2ea63b['descriptionFactory']['registerDescriptionCallback'](_0x4d40c7=>{if('insertion'!=_0x4d40c7['type']&&'deletion'!=_0x4d40c7['type'])return;const _0xc2e312=_0x4d40c7['getContainedElement']();if(null!=_0xc2e312&&_0xc2e312['is']('element','table')){if('insertion'==_0x4d40c7['type']){const _0x35e19b=_0x4d40c7['getItems']()['filter'](_0x1dd37c=>_0x1dd37c['is']('$textProxy'))['map'](_0x165356=>_0x165356['data']);if(_0x35e19b['length'])return{'type':'insertion','content':o(_0x1126f4,'*Insert:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x35e19b['join']('\x20')+'\x22'))};}if('deletion'==_0x4d40c7['type']){const _0x5efae7=_0x4d40c7['getItems']()['filter'](_0x66ff5b=>_0x66ff5b['is']('$textProxy'))['map'](_0x1adada=>_0x1adada['data']);if(_0x5efae7['length'])return{'type':'deletion','content':o(_0x1126f4,'*Remove:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5efae7['join']('\x20')+'\x22'))};}}}),_0x2ea63b['descriptionFactory']['registerDescriptionCallback'](_0x177e2d=>{if('tableRow'==_0x177e2d['subType']){const _0x53cff5=_0x177e2d['getItems']()['filter'](_0x41bbc7=>_0x41bbc7['is']('$textProxy'))['map'](_0xc7c1e0=>_0xc7c1e0['data']),_0x29f2ca=this['_getSuggestionCoords'](_0x177e2d),_0x3dac10=_0x29f2ca['maxRow']-_0x29f2ca['minRow']+0x1;if('insertion'==_0x177e2d['type'])return _0x53cff5['length']?{'type':'insertion','content':o(_0x1126f4,'*Insert:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3dac10,'\x22'+_0x53cff5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1126f4,'*Insert:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_ROW',_0x3dac10))};if('deletion'==_0x177e2d['type'])return _0x53cff5['length']?{'type':'deletion','content':o(_0x1126f4,'*Remove:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3dac10,'\x22'+_0x53cff5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1126f4,'*Remove:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_ROW',_0x3dac10))};}if('tableColumn'==_0x177e2d['subType']){const _0x3dc2cb=_0x177e2d['getItems']()['filter'](_0x4fe4a8=>_0x4fe4a8['is']('$textProxy'))['map'](_0x54b5fb=>_0x54b5fb['data']),_0x2a358b=this['_getSuggestionCoords'](_0x177e2d),_0xfad3a4=_0x2a358b['maxColumn']-_0x2a358b['minColumn']+0x1;if('insertion'==_0x177e2d['type'])return _0x3dc2cb['length']?{'type':'insertion','content':o(_0x1126f4,'*Insert:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfad3a4,'\x22'+_0x3dc2cb['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1126f4,'*Insert:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_COLUMN',_0xfad3a4))};if('deletion'==_0x177e2d['type'])return _0x3dc2cb['length']?{'type':'deletion','content':o(_0x1126f4,'*Remove:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0xfad3a4,'\x22'+_0x3dc2cb['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1126f4,'*Remove:*\x20%0',o(_0x1126f4,'ELEMENT_TABLE_COLUMN',_0xfad3a4))};}}),_0x2ea63b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1ee90b),_0x2ea63b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1ee90b),_0x2ea63b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5155e2),_0x2ea63b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5155e2),_0x2ea63b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x530ced),_0x2ea63b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x530ced),_0x2ea63b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x435f36),_0x2ea63b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x435f36);}['_acceptFormatSuggestionCallbackFactory'](){const _0x105621=this['editor'],_0xe02a94=_0x105621['model']['document']['selection'];return(_0x3ba361,_0x318bff)=>{_0x105621['model']['change'](_0x11976e=>{const {commandName:_0x2d91dc,commandParams:_0x17e2ae}=_0x318bff;let _0x243072=_0x3ba361[0x0]['end']['nodeBefore'];_0x17e2ae&&_0x17e2ae[0x0]&&!0x1===_0x17e2ae[0x0]['forceValue']&&(_0x243072=_0x3ba361[0x0]['start']['nodeAfter']);const _0x2f36fc=_0x11976e['createRangeIn'](_0x243072);if('$graveyard'==_0x2f36fc['root']['rootName'])return;const _0xe65cb4=Array['from'](_0xe02a94['getRanges']())['map'](_0x664350=>_0x2dc34a['fromRange'](_0x664350));_0x11976e['setSelection'](_0x2f36fc),_0x105621['commands']['get'](_0x2d91dc)['refresh'](),_0x17e2ae['push']({'forceDefaultExecution':!0x0}),_0x105621['execute'](_0x2d91dc,..._0x17e2ae);const _0x4197a8=_0xe65cb4['filter'](_0x332ad8=>'$graveyard'!=_0x332ad8['root']['rootName']);_0x4197a8['length']>0x0&&_0x11976e['setSelection'](_0x4197a8);for(const _0x1cdec4 of _0xe65cb4)_0x1cdec4['detach']();});};}['_getCoordsForCells'](_0x3f7b89){const _0x520d16=this['editor']['plugins']['get']('TableUtils');let _0x220af4=Number['MAX_SAFE_INTEGER'],_0x1637f0=Number['MIN_SAFE_INTEGER'],_0x558742=Number['MAX_SAFE_INTEGER'],_0x5b4869=Number['MIN_SAFE_INTEGER'];for(const _0x2c1d61 of _0x3f7b89){if('$graveyard'==_0x2c1d61['root']['rootName'])continue;const {row:_0x234c6b,column:_0x17e7b7}=_0x520d16['getCellLocation'](_0x2c1d61),_0x7aaeaf=_0x2c1d61['hasAttribute']('rowspan')?_0x2c1d61['getAttribute']('rowspan')-0x1:0x0,_0x39cd42=_0x2c1d61['hasAttribute']('colspan')?_0x2c1d61['getAttribute']('colspan')-0x1:0x0;_0x220af4=_0x234c6b<_0x220af4?_0x234c6b:_0x220af4,_0x1637f0=_0x234c6b+_0x7aaeaf>_0x1637f0?_0x234c6b+_0x7aaeaf:_0x1637f0,_0x558742=_0x17e7b7<_0x558742?_0x17e7b7:_0x558742,_0x5b4869=_0x17e7b7+_0x39cd42>_0x5b4869?_0x17e7b7+_0x39cd42:_0x5b4869;}return{'minRow':_0x220af4,'maxRow':_0x1637f0,'minColumn':_0x558742,'maxColumn':_0x5b4869};}['_setupColumnsRowsFixing'](){const _0x56178f=this['editor'],_0x4f4ef5=_0x56178f['plugins']['get']('TrackChangesEditing'),_0x39e0f1=_0x56178f['plugins']['get']('TableUtils');_0x56178f['model']['document']['on']('change:data',()=>{const _0x305e14=Array['from'](_0x56178f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4ae3eb,data:_0x4cdb99}of _0x305e14){const {group:_0x843491,id:_0x36f323,subType:_0x3f2ede}=_0x4f4ef5['_splitMarkerName'](_0x4ae3eb);if('suggestion'!=_0x843491)continue;if(null!=_0x4cdb99['oldRange'])continue;const _0x484d02=_0x4f4ef5['getSuggestion'](_0x36f323);this['_tablePostFixingSubtypes']['includes'](_0x3f2ede)&&this['_tableSuggestions']['add'](_0x484d02);}},{'priority':'low'});const _0x34de74=(_0x4a7ec7,_0x7365ec)=>{let _0x3b60ce=!0x1;const _0x503897=_0x7365ec['createRangeOn'](_0x4a7ec7),_0x45f704=_0x4a7ec7['findAncestor']('table'),_0x3366b2=_0x39e0f1['getCellLocation'](_0x4a7ec7);for(const _0x5a2593 of this['_tableSuggestions']){const _0x5e521c=_0x5a2593['subType'],_0x3456d0=_0x5e521c['startsWith']('tablePaste'),_0x1cfeb2=_0x5e521c['substr'](_0x3456d0?0xa:0x5),_0x290e11=_0x1cfeb2['toLowerCase'](),_0x1f880c=_0x290e11['substr'](0x0,0x3)+'span',_0x131674='min'+_0x1cfeb2,_0x4c8817='max'+_0x1cfeb2;if(!_0x5a2593['isInContent'])continue;if(_0x45f704!=_0x5a2593['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5a2593['isIntersectingWithRange'](_0x503897))continue;const _0x3c7d05=_0x4a7ec7['hasAttribute'](_0x1f880c)?_0x4a7ec7['getAttribute'](_0x1f880c)-0x1:0x0,_0x11e4ee=this['_getSuggestionCoords'](_0x5a2593),_0x364b59=_0x11e4ee[_0x131674],_0x2659fe=_0x11e4ee[_0x4c8817];_0x364b59<=_0x3366b2[_0x290e11]&&_0x3366b2[_0x290e11]+_0x3c7d05<=_0x2659fe&&(_0x5a2593['addRange'](_0x503897),_0x3b60ce=!0x0);}return _0x3b60ce;};_0x56178f['model']['document']['registerPostFixer'](_0x32b393=>{let _0x2a2658=!0x1;for(const _0x27355a of _0x56178f['model']['document']['differ']['getChanges']())if('insert'==_0x27355a['type']){if('tableRow'==_0x27355a['name']){for(const _0x329e10 of _0x27355a['position']['nodeAfter']['getChildren']())_0x2a2658=_0x2a2658||_0x34de74(_0x329e10,_0x32b393);}else'tableCell'==_0x27355a['name']&&(_0x2a2658=_0x2a2658||_0x34de74(_0x27355a['position']['nodeAfter'],_0x32b393));}return _0x2a2658;});}['_getSuggestionCoords'](_0x136909){return this['_getCoordsForCells'](_0x136909['getRanges']()['map'](_0x3c0739=>_0x3c0739['start']['nodeAfter']));}}function Re(_0x49f240){return Array['from'](new Set(_0x49f240)['values']());}class _t extends _0x30a5e2{static get['requires'](){return[vt];}['afterInit'](){const _0x3a1bf0=this['editor'],_0x25b770=_0x3a1bf0['model']['document']['selection'],_0x4aa32c=_0x3a1bf0['locale'];if(!_0x3a1bf0['plugins']['has']('TableEditing'))return;const _0x2805a9=_0x3a1bf0['plugins']['get']('TrackChangesEditing'),_0x144130=_0x3a1bf0['plugins']['get']('TableUtils'),_0x543179=_0x3a1bf0['plugins']['get'](vt);_0x543179['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2805a9['enableCommand']('mergeTableCells',()=>{const _0x436741=_0x144130['getSelectionAffectedTableCells'](_0x3a1bf0['model']['document']['selection']);_0x3a1bf0['model']['change'](()=>{_0x2805a9['markMultiRangeBlockFormat'](_0x436741,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3a1bf0['commands']['get']('mergeTableCells')['on']('execute',(_0x3a84f7,_0x45116f)=>{_0x3a1bf0['commands']['get']('trackChanges')['value']&&(_0x45116f['length']>0x0&&_0x45116f[_0x45116f['length']-0x1]&&_0x45116f[_0x45116f['length']-0x1]['forceDefaultExecution']||_0x2805a9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3a84f7['stop']());},{'priority':'highest'});for(const _0x455e74 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x409c9e=_0x3a1bf0['commands']['get'](_0x455e74);_0x2805a9['enableCommand'](_0x455e74,()=>{const _0x410c47=_0x3a1bf0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x254032=>_0x254032['is']('element','tableCell')),_0x1c5dad=_0x409c9e['value'];_0x3a1bf0['model']['change'](()=>{_0x2805a9['markMultiRangeBlockFormat']([_0x410c47,_0x1c5dad],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1d28d5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x50fd64=_0x3a1bf0['commands']['get'](_0x1d28d5);_0x2805a9['enableCommand'](_0x1d28d5,()=>{const _0x5d38d2=_0x144130['getSelectionAffectedTableCells'](_0x3a1bf0['model']['document']['selection'])[0x0],_0x19d51e=_0x5d38d2['findAncestor']('table'),{column:_0x55ff1e,row:_0x107e5b}=_0x144130['getCellLocation'](_0x5d38d2);let _0x236ea6=[];if('horizontally'==_0x50fd64['direction']){const _0x156795=_0x144130['createTableWalker'](_0x19d51e,{'startRow':_0x107e5b,'endRow':_0x107e5b,'includeAllSlots':!0x0});_0x236ea6=Array['from'](_0x156795)['map'](_0x2ea5b3=>_0x2ea5b3['cell']);}else{const _0x3a6003=_0x144130['createTableWalker'](_0x19d51e,{'column':_0x55ff1e,'includeAllSlots':!0x0});_0x236ea6=Array['from'](_0x3a6003)['map'](_0x1d8c28=>_0x1d8c28['cell']);}_0x3a1bf0['model']['change'](_0x2fd864=>{_0x2805a9['markBlockFormat'](_0x2fd864['createRangeOn'](_0x5d38d2),{'commandName':_0x1d28d5,'commandParams':[]},_0x236ea6,_0x1d28d5);});});}_0x2805a9['descriptionFactory']['registerDescriptionCallback'](_0x452b21=>{if('formatBlock'!=_0x452b21['type']&&'formatInline'!=_0x452b21['type'])return;const {data:_0x4ceb94}=_0x452b21;return _0x4ceb94&&'mergeTableCells'==_0x4ceb94['commandName']?{'type':'format','content':o(_0x4aa32c,'*Merge\x20cells*')}:void 0x0;}),_0x2805a9['descriptionFactory']['registerDescriptionCallback'](_0x243bae=>{if('formatBlock'!=_0x243bae['type']&&'formatInline'!=_0x243bae['type'])return;const {data:_0x275b90}=_0x243bae;return _0x275b90?'splitTableCellVertically'==_0x275b90['commandName']?{'type':'format','content':o(_0x4aa32c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x275b90['commandName']?{'type':'format','content':o(_0x4aa32c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xb80b45=_0x543179['_acceptFormatSuggestionCallbackFactory']();for(const _0x27c392 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2805a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x27c392,'accept',_0xb80b45);for(const _0x291bb1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2805a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x291bb1,'accept',_0xb80b45);_0x2805a9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x455fa8=>{_0x3a1bf0['model']['change'](_0x1f9d6e=>{const _0x4878f1=Array['from'](_0x25b770['getRanges']())['map'](_0x49d882=>_0x2dc34a['fromRange'](_0x49d882));_0x1f9d6e['setSelection'](_0x455fa8),_0x3a1bf0['commands']['get']('mergeTableCells')['refresh'](),_0x3a1bf0['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x13727c=_0x4878f1['filter'](_0x35d530=>'$graveyard'!=_0x35d530['root']['rootName']);_0x13727c['length']>0x0&&_0x1f9d6e['setSelection'](_0x13727c);for(const _0x190f1f of _0x4878f1)_0x190f1f['detach']();});});for(const _0x17f3e4 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x31c260=_0x3a1bf0['commands']['get'](_0x17f3e4);_0x31c260['on']('set:isEnabled',(_0x47d166,_0x412591,_0x2bec7a)=>{if(_0x2bec7a){const _0x5cbac6=_0x3a1bf0['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x50b8d0=>_0x50b8d0['is']('element','tableCell'));this['_areMergableCells'](_0x31c260['value'],_0x5cbac6)||(_0x47d166['return']=!0x1,_0x47d166['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5436f5=this['editor']['commands']['get']('mergeTableCells'),_0x39c8f3=this['editor']['plugins']['get']('TableUtils');if(!_0x5436f5['isEnabled'])return!0x1;const _0x49814d=_0x39c8f3['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x43d79f of _0x49814d)for(const _0x449f5c of _0x49814d)if(_0x43d79f!=_0x449f5c&&!this['_areMergableCells'](_0x43d79f,_0x449f5c))return!0x1;return!0x0;}['_areMergableCells'](_0x270cca,_0x372363){const _0x3f493f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5149a7=this['editor']['model']['createRangeOn'](_0x270cca),_0x205b1b=this['editor']['model']['createRangeOn'](_0x372363),_0x279629=new Set(),_0x8848f9=new Set();for(const _0x215ae0 of _0x3f493f['getSuggestions']())if(('insertion'==_0x215ae0['type']||'deletion'==_0x215ae0['type']||'mergeTableCells'==_0x215ae0['subType'])&&_0x215ae0['isInContent']){for(const _0x29d0af of _0x215ae0['getRanges']())_0x29d0af['containsRange'](_0x5149a7,!0x0)&&_0x279629['add'](_0x215ae0['type']+':'+_0x215ae0['author']['id']),_0x29d0af['containsRange'](_0x205b1b,!0x0)&&_0x8848f9['add'](_0x215ae0['type']+':'+_0x215ae0['author']['id']);}if(_0x279629['size']!=_0x8848f9['size'])return!0x1;for(const _0x261666 of _0x279629)if(!_0x8848f9['has'](_0x261666))return!0x1;return!0x0;}}class Ct extends _0x30a5e2{static get['requires'](){return[vt];}['afterInit'](){const _0x5c895e=this['editor'];if(!_0x5c895e['plugins']['has']('TableEditing'))return;const _0x2150ff=_0x5c895e['locale'],_0x1ccad3=_0x5c895e['plugins']['get']('TrackChangesEditing');_0x1ccad3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1ccad3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1ccad3['registerBlockAttribute']('headingRows'),_0x1ccad3['registerBlockAttribute']('headingColumns'),_0x1ccad3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x2150ff,'FORMAT_HEADER_ROW')),_0x1ccad3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x2150ff,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x306a30=this['editor']['plugins']['get']('TrackChangesEditing'),_0xeefb7d=this['editor']['plugins']['get']('TableUtils'),_0x30732c=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x8f9539({showActiveMarker:_0x1f96c4=!0x0,setDataAttribute:_0x55fb59=!0x0}={}){return(_0x5740ea,_0x2915ee,_0x19facf)=>{const {type:_0x549155,id:_0x11961e}=_0x306a30['_splitMarkerName'](_0x2915ee['markerName']),_0x1ef48c=_0x306a30['getSuggestion'](_0x11961e),_0x3a5e97=_0x1ef48c['data'];if('formatBlock'!=_0x1ef48c['type']||!_0x3a5e97||'setTableColumnHeader'!=_0x3a5e97['commandName'])return;if(_0x2915ee['item'])return void _0x5740ea['stop']();if(!_0x19facf['consumable']['consume'](_0x2915ee['markerRange'],_0x5740ea['name']))return;const _0x3274f3=_0x2915ee['markerRange']['start']['nodeAfter'],_0x16bd70=_0x2915ee['markerRange']['end']['nodeBefore'],_0x6fd4cc=_0x3274f3['parent']['parent'],{column:_0x5cee36}=_0xeefb7d['getCellLocation'](_0x3274f3),{column:_0x10ff5e}=_0xeefb7d['getCellLocation'](_0x16bd70);for(let _0x177a5f=_0x5cee36;_0x177a5f<=_0x10ff5e;_0x177a5f++){const _0x152d3f=_0xeefb7d['createTableWalker'](_0x6fd4cc,{'column':_0x177a5f,'includeAllSlots':!0x1});for(const _0x37ede4 of _0x152d3f){const _0x53e458=_0x37ede4['cell'],_0x106044=_0x19facf['mapper']['toViewElement'](_0x53e458);_0x19facf['writer']['addClass']('ck-suggestion-marker-'+_0x549155,_0x106044),_0x55fb59&&_0x19facf['writer']['setAttribute']('data-suggestion',_0x11961e,_0x106044),_0x19facf['mapper']['bindElementToMarker'](_0x106044,_0x2915ee['markerName']),_0x1f96c4&&(_0x306a30['activeMarkers']['includes'](_0x2915ee['markerName'])?_0x19facf['writer']['addClass']('ck-suggestion-marker--active',_0x106044):_0x19facf['writer']['removeClass']('ck-suggestion-marker--active',_0x106044));}}};}_0x306a30['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x30732c),_0x306a30['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x30732c),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x8f9539(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a8c10,_0x5bf8b8,_0x123ec4)=>{_0x123ec4['options']['showSuggestionHighlights']&&_0x8f9539({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4a8c10,_0x5bf8b8,_0x123ec4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x20686f,_0x55f4b5,_0x317b9d)=>{const {type:_0x16839d,id:_0x225b04}=_0x306a30['_splitMarkerName'](_0x55f4b5['markerName']),_0x4ae71e=_0x306a30['getSuggestion'](_0x225b04),_0x14127f=_0x4ae71e['data'];if('formatBlock'!=_0x4ae71e['type']||!_0x14127f||'setTableColumnHeader'!=_0x14127f['commandName'])return;const _0x5d9ca9=_0x317b9d['mapper']['markerNameToElements'](_0x55f4b5['markerName']);if(_0x5d9ca9){for(const _0x35f9bd of _0x5d9ca9)_0x317b9d['writer']['removeClass']('ck-suggestion-marker-'+_0x16839d,_0x35f9bd),_0x317b9d['writer']['removeClass']('ck-suggestion-marker--active',_0x35f9bd),_0x317b9d['writer']['removeAttribute']('data-suggestion',_0x35f9bd),_0x317b9d['mapper']['unbindElementFromMarkerName'](_0x35f9bd,_0x55f4b5['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18ef47=this['editor'],_0x2ccf1f=_0x18ef47['locale'];function _0x4a7b08(_0x43a9f4){return{'type':'format','content':o(_0x2ccf1f,'*Format:*\x20%0',_0x43a9f4)};}_0x18ef47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4dcfab=>{if('formatBlock'!=_0x4dcfab['type'])return;const {data:_0xeda156}=_0x4dcfab;if(_0xeda156){if('setTableRowHeader'==_0xeda156['commandName']){const _0x4bcebe=_0xeda156['commandParams'][0x0]['forceValue'];return _0x4a7b08(o(_0x2ccf1f,_0x4bcebe?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0xeda156['commandName']){const _0x3f36a5=_0xeda156['commandParams'][0x0]['forceValue'];return _0x4a7b08(o(_0x2ccf1f,_0x3f36a5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x4870fd=>[_0x4870fd,null]));class Nt extends _0x30a5e2{static get['requires'](){return[vt];}['afterInit'](){const _0x4d57f6=this['editor'];if(!_0x4d57f6['plugins']['has']('TableClipboard'))return;const _0x5936ea=_0x4d57f6['plugins']['get']('TrackChangesEditing'),_0x34f176=_0x4d57f6['plugins']['get']('TableUtils'),_0x3f2457=_0x4d57f6['plugins']['get'](vt),_0x4ece1a=_0x4d57f6['plugins']['get']('TableClipboard');_0x3f2457['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4d57f6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4d57f6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5b2aeb=null;_0x4d57f6['model']['on']('insertContent',(_0x2e8daa,_0x4f9ae4)=>{const [_0x1dc4f6,_0x41ee81]=_0x4f9ae4,_0x4dbf27=_0x4f9ae4[_0x4f9ae4['length']-0x1];_0x4dbf27&&_0x4dbf27['forceDefaultExecution']||_0x5936ea['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1efc17,_0x644240,_0x573ce2,_0x399e9d,_0x4027d0){if(_0x644240&&!_0x644240['is']('documentSelection'))return!0x1;const _0x261b08=_0x4027d0['getTableIfOnlyTableInContent'](_0x1efc17,_0x573ce2);if(!_0x261b08||!Ae(_0x261b08,void 0x0,_0x399e9d))return!0x1;const _0x2768a8=_0x399e9d['getSelectionAffectedTableCells'](_0x573ce2['document']['selection']);if(!_0x2768a8['length'])return!0x1;const _0x370790=_0x2768a8[0x0]['findAncestor']('table'),_0x3092db=_0x399e9d['getRowIndexes'](_0x2768a8),_0x336195=_0x399e9d['getColumnIndexes'](_0x2768a8),_0x4f84ec={'startRow':_0x3092db['first'],'endRow':_0x3092db['last'],'startColumn':_0x336195['first'],'endColumn':_0x336195['last']};return 0x1==_0x2768a8['length']&&(_0x4f84ec['endRow']+=_0x399e9d['getRows'](_0x261b08)-0x1,_0x4f84ec['endColumn']+=_0x399e9d['getColumns'](_0x261b08)-0x1),Ae(_0x370790,_0x4f84ec,_0x399e9d);}(_0x1dc4f6,_0x41ee81,_0x4d57f6['model'],_0x34f176,_0x4ece1a)&&(_0x2e8daa['stop'](),_0x5b2aeb={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4d57f6['model']['change'](()=>{_0x4d57f6['model']['insertContent'](_0x4f9ae4[0x0],_0x4f9ae4[0x1],_0x4f9ae4[0x2],{'forceDefaultExecution':!0x0});const _0x31b3b7=_0x13811a(),{rowInsertionRanges:_0x2a6cc9,columnInsertionRanges:_0x4c6287,insertionRanges:_0x4becc2,deletionRanges:_0xf83d45,cells:_0x1c453e}=_0x5b2aeb;_0x2a6cc9['length']&&_0x5936ea['markMultiRangeInsertion'](_0x2a6cc9,'tablePasteRow',{'tablePasteChainId':_0x31b3b7}),_0x4c6287['length']&&_0x5936ea['markMultiRangeInsertion'](_0x4c6287,'tablePasteColumn',{'tablePasteChainId':_0x31b3b7}),_0x4becc2['length']&&(_0x5936ea['markMultiRangeInsertion'](_0x4becc2,'tablePaste',{'tablePasteChainId':_0x31b3b7,'skipNestingCheck':!0x0}),_0x4becc2['forEach'](_0x459ae6=>_0x459ae6['detach']?.())),_0xf83d45['length']&&(_0x5936ea['markMultiRangeDeletion'](_0xf83d45,'tablePaste',{'tablePasteChainId':_0x31b3b7,'skipNestingCheck':!0x0}),_0xf83d45['forEach'](_0x529784=>_0x529784['detach']?.()));const _0x14ea84=_0x5936ea['markMultiRangeBlockFormat'](_0x1c453e['map'](({element:_0xf28fe6})=>_0xf28fe6),{'formatGroupId':_0x13811a()},[],'tablePasteCell',{'tablePasteChainId':_0x31b3b7});if(_0x14ea84){const _0x534f52=_0x14ea84['getMarkers'](),_0x3c898b=[];for(const {element:_0x330d78,attributes:_0x12d158}of _0x1c453e){if(!_0x12d158)continue;const _0x31749c=_0x4d57f6['model']['createRangeOn'](_0x330d78),_0x5b65a1=_0x534f52['find'](_0x3302e7=>_0x3302e7['getRange']()['isEqual'](_0x31749c));_0x5b65a1&&_0x3c898b['push']([_0x5b65a1['name'],_0x12d158]);}_0x3c898b['length']&&_0x14ea84['setAttribute']('markerAttributes',Object['fromEntries'](_0x3c898b));}_0x5b2aeb=null;}));},{'priority':_0x5c2694['high']+0xa}),_0x4d57f6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3e5e8e,_0x80c3d)=>{const [_0x5810a3,_0x32538b,,_0x583916]=_0x80c3d;if(!_0x5b2aeb)return;_0x3e5e8e['stop']();const _0x492cbf=_0x5810a3['cell'],_0x46ee2e=_0x32538b,_0x3a2e03=je(_0x492cbf),_0x27ae82=je(_0x46ee2e);_0x3e5e8e['return']=_0x492cbf;let _0x3f8b1c=null,_0x215022=null;if(_0x27ae82||_0x3a2e03){if(_0x3a2e03&&!_0x27ae82){_0x583916['remove'](_0x492cbf['getChild'](0x0));for(const _0x1a4fab of Array['from'](_0x46ee2e['getChildren']()))_0x583916['insert'](_0x1a4fab,_0x492cbf,'end');const _0x162d28=_0x5b2aeb['rowInsertionIndexes']['includes'](_0x5810a3['row']),_0x4bb953=_0x5b2aeb['columnInsertionIndexes']['includes'](_0x5810a3['column']);_0x162d28||_0x4bb953||(_0x3f8b1c=_0x2dc34a['fromRange'](_0x583916['createRangeIn'](_0x492cbf)));}else _0x27ae82&&!_0x3a2e03&&(_0x215022=_0x583916['createRangeIn'](_0x492cbf));}else{const _0x3b25f8=_0x583916['createElement']('tableCellSuggestion'),_0x1e067a=_0x583916['createElement']('tableCellSuggestion');_0x583916['wrap'](_0x583916['createRangeIn'](_0x492cbf),_0x1e067a),_0x583916['insert'](_0x3b25f8,_0x492cbf,0x0);for(const _0x553e24 of Array['from'](_0x46ee2e['getChildren']()))_0x583916['insert'](_0x553e24,_0x3b25f8,'end');_0x3f8b1c=_0x2dc34a['fromRange'](_0x583916['createRangeOn'](_0x3b25f8)),_0x215022=_0x2dc34a['fromRange'](_0x583916['createRangeOn'](_0x1e067a));}const _0x5d112c=Array['from'](_0x46ee2e['getAttributes']())['filter'](([_0x5a08cc])=>we['includes'](_0x5a08cc));_0x5b2aeb['cells']['push']({'element':_0x492cbf,'attributes':_0x5d112c['length']?Object['fromEntries'](_0x5d112c):null}),_0x3f8b1c&&_0x5b2aeb['insertionRanges']['push'](_0x3f8b1c),_0x215022&&_0x5b2aeb['deletionRanges']['push'](_0x215022);},{'priority':'high'}),_0x34f176['on']('insertColumns',(_0x2b74a6,_0x195d08)=>{const [_0x55745a,_0x19be7a={}]=_0x195d08;if(!_0x5b2aeb)return;const _0x120c19=_0x19be7a['at']||0x0,_0x2e7f4a=_0x19be7a['columns']||0x1;_0x5b2aeb['columnInsertionIndexes']=new Array(_0x2e7f4a)['fill'](_0x120c19)['map']((_0x2eb2f7,_0x204297)=>_0x2eb2f7+_0x204297);for(const {cell:_0x4329e7}of _0x34f176['createTableWalker'](_0x55745a,{'startColumn':_0x120c19,'endColumn':_0x120c19+_0x2e7f4a-0x1}))_0x5b2aeb['columnInsertionRanges']['push'](_0x4d57f6['model']['createRangeOn'](_0x4329e7));},{'priority':'low'}),_0x34f176['on']('insertRows',(_0x1adbd6,_0x35cdd6)=>{const [_0x3ec3fd,_0x19aca2={}]=_0x35cdd6;if(!_0x5b2aeb)return;const _0x4f2dd2=_0x19aca2['at']||0x0,_0x35d9b2=_0x19aca2['rows']||0x1;_0x5b2aeb['rowInsertionIndexes']=new Array(_0x35d9b2)['fill'](_0x4f2dd2)['map']((_0x446e52,_0x540100)=>_0x446e52+_0x540100);for(const {cell:_0x532310}of _0x34f176['createTableWalker'](_0x3ec3fd,{'startRow':_0x4f2dd2,'endRow':_0x4f2dd2+_0x35d9b2-0x1}))_0x5b2aeb['rowInsertionRanges']['push'](_0x4d57f6['model']['createRangeOn'](_0x532310));},{'priority':'low'}),_0x5936ea['descriptionFactory']['registerDescriptionCallback'](_0x373130=>{if(_0x373130['subType']&&_0x373130['subType']['startsWith']('tablePaste'))return _0x373130['previous']?{}:{'type':'insertion','content':o(_0x4d57f6['locale'],'*Replace\x20table\x20cells*')};});const _0x1c1f07=()=>!0x1;for(const _0x25e907 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5936ea['_suggestionFactory']['registerCustomCallback']('insertion',_0x25e907,'join',_0x1c1f07),_0x5936ea['_suggestionFactory']['registerCustomCallback']('deletion',_0x25e907,'join',_0x1c1f07),_0x5936ea['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x25e907,'join',_0x1c1f07);_0x5936ea['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1c1f07),_0x5936ea['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x56f7fc,_0x2d449b,_0x38fc6b)=>{const _0x2e5845=_0x56f7fc['map'](_0x1963d7=>_0x1963d7['getContainedElement']())['filter'](_0x4a7701=>_0x4a7701),_0x3a1733=new Map(_0x2e5845['map'](_0x2987e4=>[_0x2987e4,null]));if(_0x5b2aeb){for(const {element:_0x3ff3d7,attributes:_0x41f755}of _0x5b2aeb['cells'])_0x41f755&&_0x3a1733['set'](_0x3ff3d7,_0x41f755);}else{if(_0x38fc6b&&_0x38fc6b['markerAttributes'])for(const [_0x10e0af,_0x204c85]of Object['entries'](_0x38fc6b['markerAttributes'])){const _0x2c6301=_0x4d57f6['model']['markers']['get'](_0x10e0af),_0x1b4a15=_0x2c6301?_0x2c6301['getRange']()['getContainedElement']():null;_0x1b4a15&&_0x3a1733['set'](_0x1b4a15,_0x204c85);}}_0x4d57f6['model']['change'](_0x3b890a=>{for(const [_0x121622,_0x2acc49]of _0x3a1733)_0x3b890a['setAttributes']({...ve,..._0x2acc49},_0x121622);});});const _0x2c7871=(_0x353335,_0x57d5dd)=>{_0x5936ea['_suggestionFactory']['registerCustomCallback'](_0x353335,'tablePaste',_0x57d5dd,(_0x4a12cf,_0x4db705,_0x1ef9d3)=>{_0x4d57f6['model']['change'](_0x456ab5=>{const _0x7415a2=[];for(const _0x1f621f of _0x4a12cf){const _0x49c404=_0x1f621f['start']['nodeAfter'];_0x49c404['is']('element','tableCellSuggestion')&&_0x7415a2['push'](_0x49c404);}_0x5936ea['_suggestionFactory']['getSuggestionCallback'](_0x353335,null,_0x57d5dd)(_0x4a12cf,_0x4db705,_0x1ef9d3);for(const _0x5a8b52 of _0x7415a2)'$graveyard'!=_0x5a8b52['root']['rootName']&&_0x456ab5['unwrap'](_0x5a8b52);});});};_0x2c7871('insertion','accept'),_0x2c7871('insertion','discard'),_0x2c7871('deletion','accept'),_0x2c7871('deletion','discard'),_0x5936ea['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x37025b=>{const _0x58f025=_0x37025b['map'](_0x2d6a37=>_0x2d6a37['getContainedElement']()),_0x1472e8=_0x58f025[0x0]['findAncestor']('table'),{minRow:_0x183ce2,maxRow:_0x22e351}=_0x3f2457['_getCoordsForCells'](_0x58f025);_0x34f176['removeRows'](_0x1472e8,{'at':_0x183ce2,'rows':_0x22e351-_0x183ce2+0x1});}),_0x5936ea['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1712c2=>{const _0x55f32f=_0x1712c2['map'](_0x119499=>_0x119499['getContainedElement']()),_0x1ebcff=_0x55f32f[0x0]['findAncestor']('table'),{minColumn:_0xdfa6a2,maxColumn:_0x3b0b76}=_0x3f2457['_getCoordsForCells'](_0x55f32f);_0x34f176['removeColumns'](_0x1ebcff,{'at':_0xdfa6a2,'columns':_0x3b0b76-_0xdfa6a2+0x1});});const _0x470572=(_0x38d1f5,_0x4e31ad)=>{if(!_0x4e31ad['subType']||!_0x4e31ad['subType']['startsWith']('tablePaste'))return;const _0x489be2=_0x4e31ad['attributes']['tablePasteChainId'],_0x5efa9a=_0x5936ea['getSuggestions']()['filter'](_0x45016e=>_0x45016e['isInContent']&&_0x45016e['attributes']&&_0x45016e['attributes']['tablePasteChainId']==_0x489be2);_0x5efa9a['length']&&_0x4e31ad['getAllAdjacentSuggestions']()['length']!=_0x5efa9a['length']&&_0x5efa9a['reduce']((_0x402012,_0xac5abb)=>(_0x402012['next']=_0xac5abb,_0xac5abb['previous']=_0x402012,_0xac5abb));};function _0x3aef46(_0x1dd6ca,_0x3d6a5c=!0x0){const {id:_0x1940ff,authorId:_0x1daa6f}=_0x5936ea['_splitMarkerName'](_0x1dd6ca['markerName']),_0x3243cc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x28d1bc=_0x5936ea['activeMarkers']['includes'](_0x1dd6ca['markerName']);return _0x28d1bc&&_0x3243cc['push']('ck-suggestion-marker--active'),{'classes':_0x3243cc,'attributes':{'data-suggestion':_0x1940ff,'data-author-id':_0x1daa6f},'priority':_0x28d1bc&&_0x3d6a5c?0xbc2:0xbb8};}_0x5936ea['on']('suggestionLoaded',_0x470572,{'priority':'high'}),_0x5936ea['on']('suggestionUnloaded',_0x470572,{'priority':'high'}),_0x4d57f6['model']['document']['registerPostFixer'](()=>{let _0xd57c5c=!0x1;const _0x3f9fd6=Array['from'](_0x4d57f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c4439,data:_0x10ec5f}of _0x3f9fd6){const {group:_0x240378,type:_0x522357,id:_0x3a1f04}=_0x5936ea['_splitMarkerName'](_0x5c4439);if('suggestion'!=_0x240378||'deletion'!=_0x522357||_0x10ec5f['oldRange'])continue;if(!_0x5936ea['hasSuggestion'](_0x3a1f04))continue;const _0x1f28f1=_0x5936ea['getSuggestion'](_0x3a1f04)['getRanges'](),_0x27adbd=_0x4d57f6['plugins']['get']('Users')['me'];for(const _0x53cca9 of _0x5936ea['getSuggestions']()){if(!_0x53cca9['isInContent']||_0x53cca9['author']!=_0x27adbd)continue;if('formatBlock'!=_0x53cca9['type']||'tablePasteCell'!=_0x53cca9['subType'])continue;if(_0x53cca9['getRanges']()['every'](_0x29de12=>_0x1f28f1['some'](_0x55ecbf=>_0x55ecbf['containsRange'](_0x29de12,!0x0)))){for(const _0x5c153e of _0x53cca9['getAllAdjacentSuggestions']())_0x5c153e['isInContent']&&(_0x5c153e['discard'](),_0xd57c5c=!0x0);}}}return _0xd57c5c;}),_0x4d57f6['model']['document']['registerPostFixer'](_0x38eeae=>{const _0x47686c=_0x4d57f6['commands']['get']('redo');if(!_0x47686c||!_0x47686c['_createdBatches']['has'](_0x38eeae['batch']))return!0x1;let _0x39408b=!0x1;const _0x16af3f=_0x4d57f6['plugins']['get']('Users')['me'],_0x299fa9=_0x4d57f6['model']['document']['differ']['getChanges'](),_0x2c0909=Array['from'](_0x4d57f6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x207605,data:_0x3dd1e0})=>{const {group:_0x4779b1,subType:_0x4ac386,authorId:_0xea0a18}=_0x5936ea['_splitMarkerName'](_0x207605);return'suggestion'==_0x4779b1&&'tablePaste'==_0x4ac386&&_0xea0a18==_0x16af3f['id']&&!_0x3dd1e0['oldRange'];});for(const _0x1f67f2 of _0x299fa9){if('insert'!=_0x1f67f2['type']||'tableCellSuggestion'!=_0x1f67f2['name']||0x1!=_0x1f67f2['length'])continue;const _0x3afffd=_0x38eeae['createRange'](_0x1f67f2['position'],_0x1f67f2['position']['getShiftedBy'](0x1));if(!_0x2c0909['find'](({data:_0x156b1a})=>_0x156b1a['newRange']['isEqual'](_0x3afffd))){for(const {name:_0x271fc0,data:_0x4ff2e6}of _0x2c0909)if(_0x3afffd['containsRange'](_0x4ff2e6['newRange'])){_0x38eeae['updateMarker'](_0x271fc0,{'range':_0x3afffd}),_0x39408b=!0x0;break;}}}return _0x39408b;}),_0x4d57f6['model']['document']['registerPostFixer'](_0x41cf77=>{let _0x229562=!0x1;const _0x332d89=_0x4d57f6['plugins']['get']('Users')['me'],_0x389b9d=_0x5936ea['getSuggestions']()['filter'](_0xb96308=>_0xb96308['isInContent']&&_0xb96308['author']==_0x332d89),_0x2f6fe8=new Set(),_0x10080b=new Set();for(const _0x215a0a of _0x389b9d)if('tablePaste'==_0x215a0a['subType'])for(const _0x36920f of _0x215a0a['getMarkers']()){const _0x4c7cd3=_0x36920f['getRange']()['getContainedElement']();if(_0x4c7cd3){if(_0x4c7cd3['is']('element','tableCellSuggestion')&&je(_0x4c7cd3)){_0x215a0a['removeMarker'](_0x36920f['name']),_0x2f6fe8['add'](_0x4c7cd3),_0x229562=!0x0;const _0x48c19e=_0x4c7cd3['nextSibling'],_0x4a2559=_0x4c7cd3['previousSibling'],_0x591259=_0x48c19e&&_0x48c19e['is']('element','tableCellSuggestion'),_0x52fb65=_0x4a2559&&_0x4a2559['is']('element','tableCellSuggestion');_0x591259&&!_0x2f6fe8['has'](_0x48c19e)&&_0x10080b['add'](_0x48c19e),_0x52fb65&&!_0x2f6fe8['has'](_0x4a2559)&&_0x10080b['add'](_0x4a2559);}else _0x4c7cd3['is']('element','paragraph')&&_0x4c7cd3['isEmpty']&&(_0x215a0a['removeMarker'](_0x36920f['name']),_0x229562=!0x0);}}else{if('tablePasteCell'==_0x215a0a['subType']){if(!_0x215a0a['attributes']||!_0x215a0a['attributes']['tablePasteChainId'])continue;const _0x1bcff1=_0x215a0a['attributes']['markerAttributes'];if(_0x1bcff1&&Object['keys'](_0x1bcff1)['length'])continue;const _0x15d0dd=_0x215a0a['attributes']['tablePasteChainId'];let _0x40a777=!0x0,_0x344c16=!0x0;for(const _0x4a0430 of _0x389b9d)if(_0x4a0430['subType']&&_0x4a0430['subType']['startsWith']('tablePaste')){if(!_0x4a0430['attributes']['tablePasteChainId']){_0x344c16=!0x1;break;}if(_0x4a0430['id']!=_0x215a0a['id']&&_0x4a0430['attributes']['tablePasteChainId']==_0x15d0dd){_0x40a777=!0x1;break;}}_0x344c16&&_0x40a777&&(_0x215a0a['removeMarkers'](),_0x229562=!0x0);}}for(const _0x4c101c of _0x2f6fe8)_0x41cf77['remove'](_0x4c101c);for(const _0x49133f of _0x10080b)_0x41cf77['unwrap'](_0x49133f);return _0x229562;}),_0x4d57f6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x3683d5=>_0x3aef46(_0x3683d5),'converterPriority':'high'}),_0x4d57f6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x36d7f7,_0x4f87f7)=>_0x4f87f7['options']['showSuggestionHighlights']?_0x3aef46(_0x36d7f7,!0x1):null,'converterPriority':'high'});const _0x4c4224=_0x4d57f6['editing']['view'];this['listenTo'](_0x4c4224['document'],'clipboardOutput',(_0x41f2bb,_0x2edba8)=>{const _0x31705a=[];for(const _0x4b898d of _0x4c4224['createRangeIn'](_0x2edba8['content'])['getItems']())_0x4b898d['is']('element','suggestion-td')&&_0x31705a['push'](_0x4b898d);_0x4c4224['change'](_0x393b6a=>{for(const _0x58c2e8 of _0x31705a)_0x393b6a['move'](_0x393b6a['createRangeIn'](_0x58c2e8),_0x393b6a['createPositionBefore'](_0x58c2e8)),_0x393b6a['remove'](_0x58c2e8);});});}}function je(_0x1dbfca){if(_0x1dbfca['isEmpty'])return!0x0;const _0x44c25f=_0x1dbfca['getChild'](0x0);return _0x44c25f['is']('element','paragraph')&&_0x44c25f['isEmpty'];}function Ae(_0x37b127,_0x9bcc5={},_0x4ef905){for(const {isAnchor:_0x569f95,cellHeight:_0x5bd8c4,cellWidth:_0x5e1af9}of _0x4ef905['createTableWalker'](_0x37b127,{'includeAllSlots':!0x0,..._0x9bcc5}))if(!_0x569f95||0x1!=_0x5bd8c4||0x1!=_0x5e1af9)return!0x1;return!0x0;}class Dt extends _0x30a5e2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1f7941=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f7941['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1f7941['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1f7941['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f7941['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1f7941['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1f7941['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x56bb56,_0x5534c0){const _0x32fa6a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11788b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2f2f18=_0x5534c0['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x7c814d=_0x11788b['getColumnGroupElement'](_0x2f2f18);let _0x56126b=_0x7c814d?_0x11788b['getTableColumnsWidths'](_0x7c814d):null,_0x1bf790=_0x2f2f18['getAttribute']('tableWidth')||null;const _0x39434c=_0x5534c0['tableWidth']||_0x1bf790,_0x33c761=_0x5534c0['columnWidths']||_0x56126b,_0x1d8338=this['editor']['plugins']['get']('Users')['me'];for(const _0x3a8fec of _0x32fa6a['getSuggestions']()){const _0x7b1478=_0x3a8fec['getContainedElement']();if('resizeTable'===_0x3a8fec['subType']&&_0x7b1478===_0x2f2f18){_0x3a8fec['author']!==_0x1d8338&&_0x3a8fec['discard']();const _0x5b187e=_0x3a8fec['data']['commandParams'];_0x1bf790=_0x5b187e[0x0]['tableWidth'],_0x56126b=_0x5b187e[0x0]['columnWidths'];break;}}_0x56bb56({'table':_0x2f2f18,'tableWidth':_0x39434c,'columnWidths':_0x33c761}),_0x32fa6a['markBlockFormat'](_0x2f2f18,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1bf790,'columnWidths':_0x56126b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x25c904){if('formatBlock'!=_0x25c904['type']&&'formatInline'!=_0x25c904['type'])return;const {data:_0x202075}=_0x25c904;if(_0x202075&&'resizeTable'===_0x202075['formatGroupId']){const _0x1c2c86='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1c2c86)};}}}class Mt extends _0x30a5e2{['afterInit'](){const _0x1181ae=this['editor'];_0x1181ae['plugins']['has']('Template')&&_0x1181ae['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x30a5e2{['afterInit'](){const _0x390cb8=this['editor'];if(!_0x390cb8['commands']['get']('insertTableOfContents'))return;_0x390cb8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x594fa5=_0x390cb8['plugins']['get']('TrackChangesEditing'),_0x253c03=_0x390cb8['locale'];_0x594fa5['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3a785d=>o(_0x253c03,'ELEMENT_TABLE_OF_CONTENTS',_0x3a785d));}}class Bt extends _0x30a5e2{['afterInit'](){const _0x44701f=this['editor'];if(!_0x44701f['plugins']['has']('Title'))return;const _0xeb2a7c=_0x44701f['plugins']['get']('TrackChangesEditing');_0xeb2a7c['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x44701f['locale'],'ELEMENT_TITLE')),_0x44701f['model']['document']['registerPostFixer'](_0x588695=>{let _0x2bf449=!0x1;const _0x3e35bd=Array['from'](_0x44701f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x31e795,data:_0x119084}of _0x3e35bd){const {group:_0x3c4f2f}=_0xeb2a7c['_splitMarkerName'](_0x31e795);if('suggestion'!==_0x3c4f2f||!_0x119084['newRange'])continue;const _0x28d2c2=_0x119084['newRange'],_0x43e824=_0x28d2c2['end']['nodeBefore'];if(!_0x43e824||!_0x43e824['is']('element','title-content'))continue;if(!_0x28d2c2['start']['isTouching'](_0x28d2c2['end']))continue;const _0x5b5c1e=_0x44701f['model']['schema']['getNearestSelectionRange'](_0x28d2c2['end'],'forward');if(_0x5b5c1e&&_0x5b5c1e['isCollapsed']){const _0x3741b4=_0x588695['createRange'](_0x28d2c2['start'],_0x5b5c1e['start']);_0x3741b4['isEqual'](_0x28d2c2)||(_0x588695['updateMarker'](_0x31e795,{'range':_0x3741b4}),_0x2bf449=!0x0);}_0x2bf449||(_0x588695['removeMarker'](_0x31e795),_0x2bf449=!0x0);}return _0x2bf449;});}}class Ot extends _0x30a5e2{['afterInit'](){const _0x592dcf=this['editor'],_0x4cd7e7=_0x592dcf['plugins']['get']('TrackChangesEditing');_0x592dcf['plugins']['has']('UndoEditing')&&(_0x4cd7e7['enableCommand']('undo'),_0x4cd7e7['enableCommand']('redo'));}}class Rt extends _0x30a5e2{static get['requires'](){return[vt];}['afterInit'](){const _0x3cce37=this['editor'];if(!_0x3cce37['plugins']['has']('TableCaptionEditing'))return;_0x3cce37['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x30a5e2{['tableProperties'];['tableCellProperties'];constructor(_0x1b8c60){super(_0x1b8c60),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 _0x1fda29=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xee2ceb of this['tableProperties'])_0x1fda29['enableCommand'](_0xee2ceb,(_0x31c982,_0x4c6cd4)=>{const _0x45ec7d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xee2ceb,[_0x45ec7d],this['tableProperties'],'tableProperties',_0x31c982,_0x4c6cd4);});_0x1fda29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x1fda29['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fda29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1e8a22,_0x578122)=>this['handleDiscardAction'](this['tableProperties'],_0x1e8a22,_0x578122)),_0x1fda29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x42db9a of this['tableCellProperties'])_0x1fda29['enableCommand'](_0x42db9a,(_0x1c7f57,_0x3f4c1b)=>{const _0x4d5626=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x42db9a,_0x4d5626,this['tableCellProperties'],'tableCellProperties',_0x1c7f57,_0x3f4c1b);});_0x1fda29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x1fda29['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1fda29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x476d83,_0x1da817)=>this['handleDiscardAction'](this['tableCellProperties'],_0x476d83,_0x1da817)),_0x1fda29['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x1fda29['descriptionFactory']['registerDescriptionCallback'](_0x3d47dc=>this['handleSuggestionDescription'](_0x3d47dc));}['_handlePropertyChange'](_0x4a66f9,_0x151eef,_0x5703cb,_0x111afe,_0x471f11,_0x692b4){const _0x32f0a2=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x692b4['batch'],()=>{for(const _0x42d229 of _0x151eef){if(this['_getSuggestion'](_0x42d229,_0x111afe))_0x471f11(_0x692b4);else{const _0x388cd8={};for(const _0x315259 of _0x5703cb){const _0x22a6df=_0x42d229['getAttribute'](_0x315259);void 0x0!==_0x22a6df&&(_0x388cd8[_0x315259]=_0x22a6df);}_0x471f11(_0x692b4),_0x32f0a2['markBlockFormat'](_0x42d229,{'commandParams':[_0x388cd8]},[],_0x111afe);}}});}['handleDiscardAction'](_0x3eb8ee,_0x1ffc63,_0x146e3d){const _0x1dfdda=_0x1ffc63[0x0]['start']['nodeAfter'],_0x5ae41d=_0x146e3d['commandParams'][0x0];this['editor']['model']['change'](_0xe075f5=>{for(const _0x5be5d9 of _0x3eb8ee)void 0x0!==_0x5ae41d[_0x5be5d9]?_0xe075f5['setAttribute'](_0x5be5d9,_0x5ae41d[_0x5be5d9],_0x1dfdda):_0xe075f5['removeAttribute'](_0x5be5d9,_0x1dfdda);});}['handleSuggestionDescription'](_0x34855a){if(_0x34855a['data'])switch(_0x34855a['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'](_0x2d7be8,_0x158a8d){const _0x25bf8e=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1f5374 of _0x25bf8e['getSuggestions']({'skipNotAttached':!0x0})){const _0x5cf677=_0x1f5374['getContainedElement']();if(_0x1f5374['subType']===_0x158a8d&&_0x5cf677===_0x2d7be8)return _0x1f5374;}return null;}}const m='$elementName';class p extends _0x30a5e2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x530fe2,_0x5d6eaa,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x14455b){super(_0x14455b),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x32998b,_0x30634a,_0x2c05b5,_0x49d2da)=>{this['_model']['change'](()=>{for(const _0x942fac of[..._0x49d2da,..._0x2c05b5])this['_model']['markers']['has'](_0x942fac)&&_0x14455b['editing']['reconvertMarker'](_0x942fac);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x14455b['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(),_0x14455b['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x14455b['config']['get']('trackChanges.trackFormatChanges'),_0x14455b['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x14455b['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x14455b,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x5b3fd1=this['editor'],_0x29553e=(_0x3e7218,_0x574c72)=>{if('attribute'!=_0x3e7218)return'ck-suggestion-marker-'+_0x3e7218;const _0xa9d6a0=_0x574c72['split']('|')[0x0];return this['_isBlockAttribute'](_0xa9d6a0)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x5b3fd1['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x43d2e0=>{const {id:_0x18e9f4,authorId:_0x144ddc,type:_0x580408,subType:_0x5d19c9}=this['_splitMarkerName'](_0x43d2e0['markerName']),_0x8b2986=['ck-suggestion-marker',_0x29553e(_0x580408,_0x5d19c9)];let _0x415837=0xbb8;return this['activeMarkers']['includes'](_0x43d2e0['markerName'])&&(_0x8b2986['push']('ck-suggestion-marker--active'),_0x415837=0xbc2),'deletion'==_0x580408&&(_0x415837+=0x5),{'classes':_0x8b2986,'attributes':{'data-suggestion':_0x18e9f4,'data-author-id':_0x144ddc},'priority':_0x415837};}}),_0x5b3fd1['conversion']['for']('dataDowncast')['add'](_0x32a939=>{_0x32a939['on']('addMarker:suggestion',(_0x266555,_0xde6e3a,_0x4486bf)=>{if(!_0x4486bf['options']['showSuggestionHighlights'])return;const _0x3c44d0=_0xde6e3a['item'];if(!_0x3c44d0)return;const _0xbde12f=_0x4486bf['mapper']['toViewElement'](_0x3c44d0);_0x5b3fd1['model']['schema']['isObject'](_0x3c44d0)&&_0xbde12f&&!_0xbde12f['getCustomProperty']('widget')&&_0xbde12f['is']('containerElement')&&_0x2a862f(_0xbde12f,_0x4486bf['writer']);},{'priority':'high'});}),_0x5b3fd1['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x692a06,_0x4ca1c8)=>{if(!_0x4ca1c8['options']['showSuggestionHighlights'])return null;const {type:_0x552ceb,subType:_0x1cd403}=this['_splitMarkerName'](_0x692a06['markerName']);return{'classes':['ck-suggestion-marker',_0x29553e(_0x552ceb,_0x1cd403)],'priority':0xbb8};}});const _0x4e12eb=({showActiveMarkers:_0x3df163=!0x0,isAttributeSuggestion:_0x344c4f=!0x1}={})=>(_0x330dad,_0x2c334a,_0x496877)=>{if(!_0x2c334a['item'])return;const {id:_0x5d049b,authorId:_0x261ffe}=this['_splitMarkerName'](_0x2c334a['markerName']);if(_0x344c4f){const _0x247278=this['_suggestions']['get'](_0x5d049b),_0x4d1f60=this['_getAttributeKey'](_0x247278);if(!this['_isBlockAttribute'](_0x4d1f60))return;}if(_0x2c334a['item']['is']('selection'))return void _0x496877['consumable']['consume'](_0x2c334a['item'],_0x330dad['name']);const _0x4d7eda=_0x496877['mapper']['toViewElement'](_0x2c334a['item']);if(_0x2c334a['item']['is']('element')&&_0x5b3fd1['model']['schema']['isBlock'](_0x2c334a['item'])&&!_0x4d7eda['getCustomProperty']('addHighlight')){_0x496877['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4d7eda),_0x496877['writer']['setAttribute']('data-suggestion',_0x5d049b,_0x4d7eda),_0x496877['writer']['setAttribute']('data-author-id',_0x261ffe,_0x4d7eda),_0x496877['mapper']['bindElementToMarker'](_0x4d7eda,_0x2c334a['markerName']),_0x3df163&&(this['activeMarkers']['includes'](_0x2c334a['markerName'])?_0x496877['writer']['addClass']('ck-suggestion-marker--active',_0x4d7eda):_0x496877['writer']['removeClass']('ck-suggestion-marker--active',_0x4d7eda));for(const _0x14163a of _0x5b3fd1['model']['createRangeIn'](_0x2c334a['item'])['getItems']())_0x496877['consumable']['consume'](_0x14163a,_0x330dad['name']);_0x496877['consumable']['consume'](_0x2c334a['item'],_0x330dad['name']);}};_0x5b3fd1['conversion']['for']('dataDowncast')['add'](_0x4e1c40=>{_0x4e1c40['on']('addMarker:suggestion:formatBlock',(_0x50228a,_0x4fd9f6,_0x5b569a)=>{_0x5b569a['options']['showSuggestionHighlights']&&_0x4e12eb({'showActiveMarkers':!0x1})(_0x50228a,_0x4fd9f6,_0x5b569a);},{'priority':'highest'});}),_0x5b3fd1['conversion']['for']('dataDowncast')['add'](_0x11a252=>{_0x11a252['on']('addMarker:suggestion:attribute',(_0x48b716,_0x3736b0,_0x200c5e)=>{_0x200c5e['options']['showSuggestionHighlights']&&_0x4e12eb({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x48b716,_0x3736b0,_0x200c5e);},{'priority':'highest'});}),_0x5b3fd1['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1dceba,_0x1e4708)=>_0x1e4708['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1dceba['substr'](0xb)}}),_0x5b3fd1['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x456bd7,{writer:_0x12faaf})=>{let _0xa6e3a1='suggestion:'+_0x456bd7['getAttribute']('suggestion-type')+':'+_0x456bd7['getAttribute']('id');return _0x456bd7['getAttribute']('marker-count')&&(_0xa6e3a1+=':'+_0x456bd7['getAttribute']('marker-count')),_0x12faaf['createElement']('$marker',{'data-name':_0xa6e3a1});}}),_0x5b3fd1['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x5b3fd1['conversion']['for']('editingDowncast')['add'](_0x116fa3=>{_0x116fa3['on']('addMarker:suggestion:formatBlock',_0x4e12eb(),{'priority':'high'});}),_0x5b3fd1['conversion']['for']('editingDowncast')['add'](_0x2648a2=>{_0x2648a2['on']('addMarker:suggestion:attribute',_0x4e12eb({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x5b3fd1['conversion']['for']('editingDowncast')['add'](_0x2d23cd=>{_0x2d23cd['on']('removeMarker:suggestion:formatBlock',(_0x14c07e,_0x589e07,_0x4ec0b2)=>{const _0x534aa0=_0x4ec0b2['mapper']['markerNameToElements'](_0x589e07['markerName']);if(_0x534aa0){for(const _0x35adf2 of _0x534aa0)_0x35adf2['getCustomProperty']('addHighlight')||(_0x4ec0b2['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35adf2),_0x4ec0b2['writer']['removeAttribute']('data-suggestion',_0x35adf2),_0x4ec0b2['writer']['removeAttribute']('data-author-id',_0x35adf2),_0x4ec0b2['mapper']['unbindElementFromMarkerName'](_0x35adf2,_0x589e07['markerName']));}},{'priority':'high'});}),_0x5b3fd1['conversion']['for']('editingDowncast')['add'](_0x18a07f=>{_0x18a07f['on']('removeMarker:suggestion:attribute',(_0x303220,_0x305e66,_0x4a70b8)=>{const _0x1f172e=_0x4a70b8['mapper']['markerNameToElements'](_0x305e66['markerName']);if(!_0x1f172e)return;const {id:_0x39b91b}=this['_splitMarkerName'](_0x305e66['markerName']),_0x3bbdcc=this['_suggestions']['get'](_0x39b91b),_0x144e98=this['_getAttributeKey'](_0x3bbdcc);if(this['_isBlockAttribute'](_0x144e98)){for(const _0x3dd96c of _0x1f172e)_0x3dd96c['getCustomProperty']('addHighlight')||(_0x4a70b8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3dd96c),_0x4a70b8['writer']['removeAttribute']('data-suggestion',_0x3dd96c),_0x4a70b8['writer']['removeAttribute']('data-author-id',_0x3dd96c),_0x4a70b8['mapper']['unbindElementFromMarkerName'](_0x3dd96c,_0x305e66['markerName']));}},{'priority':'high'});}),_0x5b3fd1['model']['document']['registerPostFixer'](_0x1905bf=>{let _0x296857=!0x1;const _0x32ef3a=Array['from'](_0x5b3fd1['model']['document']['differ']['getChangedMarkers']()),_0x387738=new Set();for(const {name:_0x89b889,data:_0x5122e9}of _0x32ef3a){const {group:_0x16820c,type:_0x9a14f8,subType:_0x19d7d0,id:_0x4c0509}=this['_splitMarkerName'](_0x89b889);if('suggestion'!==_0x16820c)continue;const _0x2554dc=this['_suggestions']['get'](_0x4c0509);if(null!=_0x5122e9['newRange']){'formatInline'==_0x9a14f8&&(_0x296857=_0x296857||Pt(_0x5122e9['newRange'],_0x89b889,_0x1905bf,_0x5b3fd1['model']['schema']));const _0x41a792='attribute'==_0x9a14f8&&this['_isBlockAttribute'](_0x19d7d0['split']('|')[0x0]);if(_0x5122e9['newRange']['isCollapsed']||'$graveyard'==_0x5122e9['newRange']['root']['rootName']||'formatBlock'==_0x9a14f8&&!Ft(_0x5122e9['newRange'])||_0x41a792&&!Ft(_0x5122e9['newRange'])||'deletion'==_0x9a14f8&&!(!Vt(_0x21d9d2=_0x5122e9['newRange'])&&!function(_0x127a2a){return _0x127a2a['start']['parent']==_0x127a2a['end']['nodeBefore']&&_0x127a2a['start']['isAtEnd'];}(_0x21d9d2)))_0x1905bf['removeMarker'](_0x89b889),_0x296857=!0x0;else{if(!_0x2554dc||!_0x2554dc['isInContent'])continue;if(_0x5122e9['newRange']&&_0x5122e9['oldRange']&&_0x5122e9['newRange']['isEqual'](_0x5122e9['oldRange']))continue;_0x387738['add'](_0x2554dc);}}}var _0x21d9d2;return _0x387738['size']>0x0&&(_0x296857=!!this['_joinWithAdjacentSuggestions'](_0x387738)||_0x296857),_0x296857;}),_0x5b3fd1['model']['document']['registerPostFixer'](_0xe0d259=>{let _0x4dfec7=!0x1;for(const _0x30ba50 of _0x5b3fd1['model']['document']['differ']['getChanges']())if('insert'==_0x30ba50['type'])for(const _0x3d888d of this['_suggestions']['values']()){if(_0x3d888d['isMultiRange']||!_0x3d888d['isInContent'])continue;const _0x34517a='formatBlock'==_0x3d888d['type'],_0x4b5a27=this['_getAttributeKey'](_0x3d888d),_0x53069a=_0x4b5a27&&this['_isBlockAttribute'](_0x4b5a27);if(!_0x34517a&&!_0x53069a)continue;const _0xba792b=_0x3d888d['getFirstRange']();if(_0xba792b['start']['parent']!=_0xba792b['end']['parent']&&!_0xba792b['end']['isAtEnd']){const _0x2d036f=_0x5b3fd1['model']['createPositionAt'](_0xba792b['start']['nodeAfter'],'end'),_0x5befa1=_0x5b3fd1['model']['createRange'](_0xba792b['start'],_0x2d036f);_0xe0d259['updateMarker'](_0x3d888d['getFirstMarker'](),{'range':_0x5befa1}),_0x4dfec7=!0x0;}}return _0x4dfec7;}),_0x5b3fd1['model']['document']['registerPostFixer'](_0x18fc78=>this['_processAttributeChanges'](_0x18fc78)),_0x5b3fd1['model']['document']['registerPostFixer'](_0x4c8cf0=>!_0x4c8cf0['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4c8cf0)),_0x5b3fd1['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x5b3fd1['model']['document']['on']('change:data',(_0x19b533,_0x427844)=>{if(!_0x427844['isLocal']||_0x427844['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1e624b=_0x5b3fd1['model']['document']['differ']['getChanges']();if(0x0==_0x1e624b['length'])return;const _0x3a6349=[],_0x344099=_0x1e624b['filter'](_0x13cbbb=>'attribute'==_0x13cbbb['type']),_0x4f2344=_0x1e624b['filter'](_0x582dfc=>'insert'==_0x582dfc['type']&&'$text'!=_0x582dfc['name']);for(const _0x5089ed of _0x344099)this['_isRegisteredAttribute'](_0x5089ed['attributeKey'])&&_0x3a6349['push']({'key':_0x5089ed['attributeKey'],'newValue':_0x5089ed['attributeNewValue'],'oldValue':_0x5089ed['attributeOldValue'],'range':Lt(_0x5089ed['range'],_0x5b3fd1['model'])});for(const _0x2fbdf5 of _0x4f2344){if('rename'!=_0x2fbdf5['action']&&'refresh'!=_0x2fbdf5['action'])continue;const _0x495208=Jt(_0x2fbdf5['position']['nodeAfter'],_0x5b3fd1['model']),_0x24a10e=_0x2fbdf5['before'];'rename'==_0x2fbdf5['action']&&_0x3a6349['push']({'key':m,'newValue':_0x2fbdf5['name'],'oldValue':_0x24a10e['name'],'range':_0x495208});for(const [_0x119839,_0x5c9cc4]of _0x24a10e['attributes']){if(!this['_isRegisteredAttribute'](_0x119839))continue;const _0x53d441=_0x2fbdf5['attributes']['get'](_0x119839);_0x5c9cc4!==_0x53d441&&_0x3a6349['push']({'key':_0x119839,'newValue':_0x53d441,'oldValue':_0x5c9cc4,'range':_0x495208});}for(const [_0x578019,_0x1594f1]of _0x2fbdf5['attributes'])this['_isRegisteredAttribute'](_0x578019)&&(_0x24a10e['attributes']['has'](_0x578019)||_0x3a6349['push']({'key':_0x578019,'newValue':_0x1594f1,'oldValue':null,'range':_0x495208}));}0x0!=_0x3a6349['length']&&_0x5b3fd1['model']['enqueueChange'](_0x427844,_0x11f83c=>{const _0x1c6f99=_0x13811a();for(const {range:_0x327080,key:_0x2f326f,oldValue:_0x5256e2,newValue:_0xda06e1}of _0x3a6349)this['markAttributeChange'](_0x327080,_0x2f326f,_0x5256e2,_0xda06e1,{'groupId':_0x1c6f99});this['_reduceExistingSuggestions'](_0x11f83c,_0x3a6349);});},{'priority':'lowest'}),_0x5b3fd1['model']['markers']['on']('update:suggestion',(_0x5ca937,_0x36bbe3,_0x4d3368)=>{if(null==_0x4d3368){const {id:_0x306123}=this['_splitMarkerName'](_0x36bbe3['name']),_0x1bf50d=this['_suggestions']['get'](_0x306123);_0x1bf50d&&_0x1bf50d['addMarkerName'](_0x36bbe3['name']);}}),_0x5b3fd1['model']['document']['on']('change:data',()=>{const _0x4204bb=Array['from'](_0x5b3fd1['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5f0428=>'suggestion'===this['_splitMarkerName'](_0x5f0428['name'])['group']);if(0x0===_0x4204bb['length'])return;_0x4204bb['sort']((_0x38255c,_0x317830)=>{const _0x33462e=_0x38255c['data']['oldRange'],_0xeae098=_0x317830['data']['oldRange'];return null===_0x33462e&&null===_0xeae098?0x0:null===_0x33462e&&null!==_0xeae098?-0x1:null!==_0x33462e&&null===_0xeae098?0x1:_0x33462e['start']['isBefore'](_0xeae098['start'])?-0x1:0x1;});const _0x26c5a9=new Set(),_0x27c87b=new Set();for(const {name:_0x4c1093,data:_0x389997}of _0x4204bb){const {id:_0x5a69aa}=this['_splitMarkerName'](_0x4c1093);if(null===_0x389997['oldRange']){const _0x1cd01a=this['_handleNewSuggestionMarker'](_0x4c1093);_0x27c87b['add'](_0x1cd01a);}else{const _0x55193f=this['_suggestions']['get'](_0x5a69aa);null!==_0x389997['newRange']||_0x55193f['isInContent']?(_0x26c5a9['add'](_0x55193f['head']),_0x27c87b['add'](_0x55193f)):this['_removeSuggestion'](_0x55193f);}}_0x27c87b['size']>0x0&&this['_refreshSuggestionsChain'](_0x27c87b);for(const _0xa3f97c of _0x26c5a9)this['fire']('suggestionChanged',_0xa3f97c);}),_0x5b3fd1['model']['on']('applyOperation',(_0x336470,_0x5ebb6e)=>{const _0xa0053=_0x5ebb6e[0x0];if(!this['_suggestions']['size'])return;if(!_0xa0053['isDocumentOperation'])return;if(_0xa0053['batch']['isUndo']||!_0xa0053['batch']['isLocal'])return;let _0xa98c33,_0x1f8a53;switch(_0xa0053['type']){case'insert':_0xa98c33=_0x5b3fd1['model']['createPositionAt'](_0xa0053['position']),_0x1f8a53=_0xa98c33['getShiftedBy'](_0xa0053['howMany']);break;case'split':_0xa98c33=_0x5b3fd1['model']['createPositionAt'](_0xa0053['splitPosition']),_0x1f8a53=_0x5b3fd1['model']['createPositionAt'](_0xa0053['moveTargetPosition']);break;case'move':_0xa98c33=_0x5b3fd1['model']['createPositionAt'](_0xa0053['targetPosition']),_0x1f8a53=_0xa98c33['getShiftedBy'](_0xa0053['howMany']);break;default:return;}const _0x1c14f6=_0x5b3fd1['model']['createRange'](_0xa98c33,_0x1f8a53);_0x5b3fd1['model']['change'](()=>{for(const {suggestion:_0x4facb8,meta:_0x4075b2}of this['_findSuggestions'](_0x1c14f6)){if(_0x4facb8['isMultiRange'])continue;if('formatInline'==_0x4facb8['type'])continue;const _0xb39fde=this['_getAttributeKey'](_0x4facb8);if(_0xb39fde&&this['_isBlockAttribute'](_0xb39fde)&&'split'!=_0xa0053['type'])continue;const _0x571e72=_0x4facb8['data']&&_0x4facb8['data']['multipleBlocks'];('formatBlock'!=_0x4facb8['type']||'split'==_0xa0053['type']&&!_0x571e72)&&(_0x4075b2['containsRangeInObject']||'insertion'==_0x4facb8['type']&&_0x4075b2['isOwn']||_0x4facb8['getFirstRange']()['containsRange'](_0x1c14f6)&&this['_breakSuggestionMarker'](_0x4facb8,_0xa98c33,_0x1f8a53));}});},{'priority':'lowest'}),_0x5b3fd1['model']['on']('deleteContent',(_0x260713,_0x573c0a)=>{const _0x5b87e7=_0x573c0a[0x0],_0x4cece8=_0x573c0a[0x1];if(_0x4cece8&&_0x4cece8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5b87e7['isCollapsed'])return;const _0x4866ee=_0x5b3fd1['model']['schema'],{start:_0x2be2bd,end:_0x29b495}=_0x5b87e7['getFirstRange'](),_0x56a06f=_0x2be2bd['nodeAfter']&&_0x4866ee['isLimit'](_0x2be2bd['nodeAfter'])?null:_0x4866ee['getNearestSelectionRange'](_0x2be2bd,'forward'),_0x34163c=_0x29b495['nodeBefore']&&_0x4866ee['isLimit'](_0x29b495['nodeBefore'])?null:_0x4866ee['getNearestSelectionRange'](_0x29b495,'backward'),_0x18be21=_0x5b3fd1['model']['createRange'](_0x56a06f?_0x56a06f['start']:_0x2be2bd,_0x34163c?_0x34163c['end']:_0x29b495);_0x5b3fd1['model']['change'](_0x17248b=>{this['markDeletion'](_0x18be21);const _0x5db349=_0x5b3fd1['model']['schema']['getNearestSelectionRange'](_0x18be21['start']);_0x5b87e7['is']('documentSelection')?_0x17248b['setSelection'](_0x5db349):_0x5b87e7['setTo'](_0x5db349);}),_0x260713['stop']();},{'priority':_0x5c2694['normal']+0xa}),_0x5b3fd1['model']['on']('insertContent',(_0x3a21b7,_0x536ac7)=>{const _0x4621c5=_0x536ac7[_0x536ac7['length']-0x1];_0x4621c5&&_0x4621c5['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x5b3fd1['model']['change'](()=>{let _0x445912=_0x5b3fd1['model']['insertContent'](_0x536ac7[0x0],_0x536ac7[0x1],_0x536ac7[0x2],{'forceDefaultExecution':!0x0});if(!_0x445912)return;_0x3a21b7['return']=_0x445912['clone']();const _0x41eb7d=_0x445912['end']['nodeBefore'],_0x591232=_0x5b3fd1['model']['schema'];_0x41eb7d&&_0x591232['isBlock'](_0x41eb7d)&&!_0x591232['isObject'](_0x41eb7d)&&(_0x445912=_0x5b3fd1['model']['createRange'](_0x445912['start'],_0x5b3fd1['model']['createPositionAt'](_0x41eb7d,'end'))),this['markInsertion'](_0x445912);}),_0x3a21b7['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3c5e88=new O(_0x5b3fd1,this['_suggestions']);_0x5b3fd1['commands']['add']('acceptSuggestion',_0x3c5e88),this['enableCommand']('acceptSuggestion');const _0x534cb4=new R(_0x5b3fd1,this['_suggestions']);_0x5b3fd1['commands']['add']('discardSuggestion',_0x534cb4),this['enableCommand']('discardSuggestion'),_0x5b3fd1['commands']['add']('acceptAllSuggestions',new x(_0x5b3fd1,_0x3c5e88,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x5b3fd1['commands']['add']('discardAllSuggestions',new x(_0x5b3fd1,_0x534cb4,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x5b3fd1['commands']['add']('acceptSelectedSuggestions',new E(_0x5b3fd1,_0x3c5e88,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x5b3fd1['commands']['add']('discardSelectedSuggestions',new E(_0x5b3fd1,_0x534cb4,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2de862=_0x5b3fd1['plugins']['get']('CommentsRepository');this['listenTo'](_0x2de862,'addComment',(_0x40d3f3,{threadId:_0x213a0f})=>{const _0xc7e97c=this['_suggestions']['get'](_0x213a0f);_0xc7e97c&&_0xc7e97c['commentThread']&&0x1===_0xc7e97c['commentThread']['length']&&this['_updateSuggestionData'](_0x213a0f,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2de862,'removeComment',(_0x1579f6,{threadId:_0x84d399})=>{const _0x444acd=this['_suggestions']['get'](_0x84d399);_0x444acd&&_0x444acd['commentThread']&&!_0x444acd['commentThread']['length']&&this['_updateSuggestionData'](_0x84d399,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x7842d7){const _0x533170=_0x2cbf71([0x6e,0x58,0x48,0x34,0x55,0x44,0x79,0x46,0x47,0x4a,0x73,0x5a,0x51,0x6d,0x68,0x69,0x77,0x53,0x64,0x7a,0x6f,0x76,0x67,0x42,0x74,0x4b,0x37,0x75,0x6c,0x71,0x36,0x72,0x52,0x30,0x50,0x38,0x6b,0x63,0x4c,0x54,0x35,0x49,0x4e,0x6a,0x43,0x70,0x31,0x57,0x39,0x4f,0x33,0x59,0x41,0x45,0x65,0x62,0x78,0x32,0x66,0x4d,0x61,0x56]),_0xc6ff4c=0x2d7df5e3,_0x5026fb=0x2d7aadbb^_0xc6ff4c,_0x11179c=window[_0x2cbf71([0x44,0x61,0x74,0x65])][_0x2cbf71([0x6e,0x6f,0x77])](),_0x12f274=_0x7842d7[_0x2cbf71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1777e0=new window[(_0x2cbf71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ba242=>{_0x12f274[_0x2cbf71([0x6f,0x6e,0x63,0x65])](_0x2cbf71([0x72,0x65,0x61,0x64,0x79]),_0x5ba242);}),_0x475f56={[_0x2cbf71([0x6b,0x74,0x79])]:_0x2cbf71([0x45,0x43]),[_0x2cbf71([0x75,0x73,0x65])]:_0x2cbf71([0x73,0x69,0x67]),[_0x2cbf71([0x63,0x72,0x76])]:_0x2cbf71([0x50,0x2d,0x32,0x35,0x36]),[_0x2cbf71([0x78])]:_0x2cbf71([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]),[_0x2cbf71([0x79])]:_0x2cbf71([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]),[_0x2cbf71([0x61,0x6c,0x67])]:_0x2cbf71([0x45,0x53,0x32,0x35,0x36])},_0x2a45b8=_0x12f274[_0x2cbf71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cbf71([0x67,0x65,0x74])](_0x2cbf71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2f50d0(){let _0x547273,_0x4c1362=null,_0xfff59f=null;try{if(_0x2a45b8==_0x2cbf71([0x47,0x50,0x4c]))return _0x2cbf71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x547273=_0x2abcb2(),!_0x547273)return _0x2cbf71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x547273[_0x2cbf71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xfff59f=_0x18bd8c(_0x547273[_0x2cbf71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x547273[_0x2cbf71([0x6a,0x74,0x69])])),await _0x5458b8()?_0x38370b()?_0x4a04b7()?_0x2cbf71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x436088()?(_0x547273[_0x2cbf71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cbf71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4c1362=_0x58c95b(_0x2cbf71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x547273[_0x2cbf71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cbf71([0x74,0x72,0x69,0x61,0x6c])&&(_0x4c1362=_0x58c95b(_0x2cbf71([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x547273[_0x2cbf71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cbf71([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4c1362=_0x58c95b(_0x2cbf71([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23ecdf()):_0x2cbf71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cbf71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cbf71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x45fd68){return _0x2cbf71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a04b7(){const _0x38e8fb=[_0x2cbf71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cbf71([0x74,0x72,0x69,0x61,0x6c])][_0x2cbf71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x547273[_0x2cbf71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11179c/0x3e8:0xe10*_0x5026fb;return _0x547273[_0x2cbf71([0x65,0x78,0x70])]<_0x38e8fb;}function _0x38370b(){const _0x174a85=_0x547273[_0x2cbf71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x174a85)return!0x1;if(_0x174a85[_0x2cbf71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cbf71([0x2a])))return!0x0;if(_0x174a85[_0x2cbf71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cbf71([0x54,0x43])))return!0x0;if(_0x174a85[_0x2cbf71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cbf71([0x52,0x54,0x43]))){if(_0x1b62f1())return!0x0;if(_0x486239()||_0x2eaaa8())return!0x0;}return!0x1;}function _0x436088(){const _0x5acdb6=_0x547273[_0x2cbf71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5acdb6||0x0==_0x5acdb6[_0x2cbf71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3133e9}=new URL(window[_0x2cbf71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5acdb6[_0x2cbf71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3133e9))return!0x0;const _0x56611b=_0x3133e9[_0x2cbf71([0x73,0x70,0x6c,0x69,0x74])](_0x2cbf71([0x2e]));return _0x5acdb6[_0x2cbf71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xdbadfc=>_0xdbadfc[_0x2cbf71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cbf71([0x2a])))[_0x2cbf71([0x6d,0x61,0x70])](_0x41c74=>_0x41c74[_0x2cbf71([0x73,0x70,0x6c,0x69,0x74])](_0x2cbf71([0x2e])))[_0x2cbf71([0x73,0x6f,0x6d,0x65])](_0x8bb427=>_0x56611b[_0x2cbf71([0x65,0x76,0x65,0x72,0x79])]((_0xf25253,_0x559a88)=>_0x8bb427[_0x559a88]===_0xf25253||_0x8bb427[_0x559a88]===_0x2cbf71([0x2a])));}function _0x23ecdf(){return _0x4c1362&&_0xfff59f?new window[(_0x2cbf71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x59f2c1,_0x5fd1c9)=>{_0x4c1362[_0x2cbf71([0x74,0x68,0x65,0x6e])](_0x59f2c1,_0x5fd1c9),_0xfff59f[_0x2cbf71([0x74,0x68,0x65,0x6e])](_0x247920=>{_0x247920!=_0x2cbf71([0x56,0x61,0x6c,0x69,0x64])&&_0x59f2c1(_0x247920);},_0x5fd1c9);}):_0x4c1362||_0xfff59f||_0x2cbf71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x18bd8c(_0x431e27,_0x425e1f){return new window[(_0x2cbf71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x509afe=>{if(_0x5f40cf())return _0x509afe(_0x2cbf71([0x56,0x61,0x6c,0x69,0x64]));_0x5648cd(),_0x12f274[_0x2cbf71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cbf71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1be431=!0x1;const _0x37f876=_0x13811a();function _0x9e1584(_0x2cdb2b){return!!_0x2cdb2b&&(typeof _0x2cdb2b===_0x2cbf71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2cdb2b===_0x2cbf71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2cdb2b[_0x2cbf71([0x74,0x68,0x65,0x6e])]===_0x2cbf71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2cdb2b[_0x2cbf71([0x63,0x61,0x74,0x63,0x68])]===_0x2cbf71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4f1531(_0x1749a7){_0x1f9c9b(_0x1749a7)[_0x2cbf71([0x74,0x68,0x65,0x6e])](_0x51ebd2=>{if(!_0x51ebd2||_0x51ebd2[_0x2cbf71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cbf71([0x6f,0x6b]))return _0x2cbf71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e7419(_0x273fbc(_0x37f876+_0x425e1f))!=_0x51ebd2[_0x2cbf71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cbf71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cbf71([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cbf71([0x74,0x68,0x65,0x6e])](_0x20510b=>(_0x5e9c19(),_0x20510b),()=>{const _0x2e4988=_0x30b2b8();return null==_0x2e4988?(_0x5e9c19(),_0x2cbf71([0x56,0x61,0x6c,0x69,0x64])):_0x2cbf71(_0x11179c-_0x2e4988>(0x97171e3^_0xc6ff4c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cbf71([0x74,0x68,0x65,0x6e])](_0x509afe)[_0x2cbf71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x509afe(_0x2cbf71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x594f2d=0x2d4b1b63^_0xc6ff4c;function _0x5e9c19(){const _0x55d682=_0x2cbf71([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e7419(_0x273fbc(_0x431e27)),_0x275710=_0x1e871f(_0x3e7419(window[_0x2cbf71([0x4d,0x61,0x74,0x68])][_0x2cbf71([0x63,0x65,0x69,0x6c])](_0x11179c/_0x594f2d)));window[_0x2cbf71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cbf71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55d682,_0x275710);}function _0x30b2b8(){const _0x42e364=_0x2cbf71([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e7419(_0x273fbc(_0x431e27)),_0x5eb4c5=window[_0x2cbf71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cbf71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42e364);return _0x5eb4c5?window[_0x2cbf71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e871f(_0x5eb4c5),0x10)*_0x594f2d:null;}function _0x1f9c9b(_0x328c2e){return new window[(_0x2cbf71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xdc5b72,_0x513615)=>{_0x328c2e[_0x2cbf71([0x74,0x68,0x65,0x6e])](_0xdc5b72,_0x513615),window[_0x2cbf71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x513615,0x2d7c2123^_0xc6ff4c);});}}_0x12f274[_0x2cbf71([0x6f,0x6e])](_0x2cbf71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41728c,_0x3c8545)=>{if(_0x3c8545[0x0]!=_0x431e27)return _0x509afe(_0x2cbf71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c8545[0x1]={..._0x3c8545[0x1],[_0x2cbf71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37f876};},{[_0x2cbf71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cbf71([0x68,0x69,0x67,0x68])}),_0x12f274[_0x2cbf71([0x6f,0x6e])](_0x2cbf71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43cdc9=>{_0x9e1584(_0x43cdc9[_0x2cbf71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1be431=!0x0,_0x4f1531(_0x43cdc9[_0x2cbf71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cbf71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cbf71([0x6c,0x6f,0x77])}),_0x1777e0[_0x2cbf71([0x74,0x68,0x65,0x6e])](()=>{_0x1be431||_0x509afe(_0x2cbf71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5f40cf(){return _0x12f274[_0x2cbf71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cbf71([0x76,0x69,0x65,0x77])][_0x2cbf71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cbf71([0x61,0x75,0x74,0x6f]);}function _0x5648cd(){_0x12f274[_0x2cbf71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cbf71([0x76,0x69,0x65,0x77])][_0x2cbf71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cbf71([0x61,0x75,0x74,0x6f]);}}function _0x58c95b(_0x1a3bec){const _0x5057b0=[new window[(_0x2cbf71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58c9e2=>setTimeout(_0x58c9e2,0x2d74cb2f^_0xc6ff4c)),_0x1777e0[_0x2cbf71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cbf71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x447e6d=>{let _0x155e72=0x0;_0x12f274[_0x2cbf71([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cbf71([0x6f,0x6e])](_0x2cbf71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x51a150,_0x36e4c5)=>{_0x36e4c5[0x0][_0x2cbf71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x155e72++,_0x155e72==(0x2d7df41b^_0xc6ff4c)&&(_0x447e6d(),_0x51a150[_0x2cbf71([0x6f,0x66,0x66])]());});}))];return window[_0x2cbf71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cbf71([0x72,0x61,0x63,0x65])](_0x5057b0)[_0x2cbf71([0x74,0x68,0x65,0x6e])](()=>_0x1a3bec);}async function _0x135d7e(){await _0x1777e0,_0x12f274[_0x2cbf71([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cbf71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2abbb2,_0x12f274[_0x2cbf71([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cbf71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2abbb2,_0x12f274[_0x2cbf71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cbf71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b62f1(){return _0x40d375(_0x2cbf71([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4170e2(_0x2cbf71([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2cbf71([0x73,0x74,0x61,0x74,0x65])]==_0x2cbf71([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x486239(){return _0x40d375(_0x2cbf71([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 _0x2eaaa8(){return _0x40d375(_0x2cbf71([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x469eaf(_0x32817f){const _0x10af04=_0x2c32c5();_0x12f274[_0x10af04]=_0x2cbf71([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x32817f,_0x32817f!=_0x2cbf71([0x56,0x61,0x6c,0x69,0x64])&&_0x135d7e();}function _0x2c32c5(){const _0x429b2e=window[_0x2cbf71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cbf71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cbf71([0x6e,0x6f,0x77])]())[_0x2cbf71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cbf71([0x2e]),'');let _0x318773=_0x2cbf71([0x6e]);for(let _0x47a449=0x0;_0x47a449<_0x429b2e[_0x2cbf71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47a449+=0x2){let _0x1f62d1=window[_0x2cbf71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x429b2e[_0x2cbf71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47a449,_0x47a449+0x2));_0x1f62d1>=_0x533170[_0x2cbf71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f62d1-=_0x533170[_0x2cbf71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x318773+=_0x533170[_0x1f62d1];}return _0x318773;}function _0x2abcb2(){const _0xf553ba=_0x2a45b8[_0x2cbf71([0x73,0x70,0x6c,0x69,0x74])](_0x2cbf71([0x2e]));if(0x3!=_0xf553ba[_0x2cbf71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4e9d30(_0xf553ba[0x1]);function _0x4e9d30(_0x2e421f){const _0x154473=_0x1fd934(_0x2e421f);return _0x154473&&_0x1b4968()?_0x154473:null;function _0x1b4968(){const _0x540354=_0x154473[_0x2cbf71([0x6a,0x74,0x69])],_0x5089bc=window[_0x2cbf71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x540354[_0x2cbf71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x540354[_0x2cbf71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ccaee={..._0x154473,[_0x2cbf71([0x6a,0x74,0x69])]:_0x540354[_0x2cbf71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x540354[_0x2cbf71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ccaee[_0x2cbf71([0x76,0x63])],_0x273fbc(_0x3ccaee)==_0x5089bc;}}}async function _0x5458b8(){let _0x59e215=!0x0;try{const _0x6195b5=_0x2a45b8[_0x2cbf71([0x73,0x70,0x6c,0x69,0x74])](_0x2cbf71([0x2e])),[_0x332cf7,_0xb50bef,_0x2c839a]=_0x6195b5;return _0x162474(_0x332cf7),await _0x2c5d83(_0x332cf7,_0xb50bef,_0x2c839a),_0x59e215;}catch(_0x4ef61c){return!0x1;}function _0x162474(_0x36cb25){const _0x257068=_0x1fd934(_0x36cb25);_0x257068&&_0x257068[_0x2cbf71([0x61,0x6c,0x67])]==_0x2cbf71([0x45,0x53,0x32,0x35,0x36])||(_0x59e215=!0x1);}async function _0x2c5d83(_0x36b5b2,_0x35e2b4,_0x32c321){const _0x438304=window[_0x2cbf71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cbf71([0x66,0x72,0x6f,0x6d])](_0x295430(_0x32c321),_0x45fc12=>_0x45fc12[_0x2cbf71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2a5467=new window[(_0x2cbf71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cbf71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x36b5b2+_0x2cbf71([0x2e])+_0x35e2b4),_0x2083ad=window[_0x2cbf71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cbf71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2083ad)return;const _0xc1532a=await _0x2083ad[_0x2cbf71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cbf71([0x6a,0x77,0x6b]),_0x475f56,{[_0x2cbf71([0x6e,0x61,0x6d,0x65])]:_0x2cbf71([0x45,0x43,0x44,0x53,0x41]),[_0x2cbf71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cbf71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cbf71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2083ad[_0x2cbf71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cbf71([0x6e,0x61,0x6d,0x65])]:_0x2cbf71([0x45,0x43,0x44,0x53,0x41]),[_0x2cbf71([0x68,0x61,0x73,0x68])]:{[_0x2cbf71([0x6e,0x61,0x6d,0x65])]:_0x2cbf71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xc1532a,_0x438304,_0x2a5467)||(_0x59e215=!0x1);}}function _0x1fd934(_0x2bb05f){return _0x2bb05f[_0x2cbf71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cbf71([0x65,0x79]))?JSON[_0x2cbf71([0x70,0x61,0x72,0x73,0x65])](_0x295430(_0x2bb05f)):null;}function _0x295430(_0x3095bb){return window[_0x2cbf71([0x61,0x74,0x6f,0x62])](_0x3095bb[_0x2cbf71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cbf71([0x2b]))[_0x2cbf71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cbf71([0x2f])));}function _0x273fbc(_0xeb8a85){let _0x2db70d=0x1505;function _0x4b15bd(_0x38c4fc){for(let _0x39dd07=0x0;_0x39dd07<_0x38c4fc[_0x2cbf71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39dd07++){const _0x2b5eee=_0x38c4fc[_0x2cbf71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x39dd07);_0x2db70d=(_0x2db70d<<0x5)+_0x2db70d+_0x2b5eee,_0x2db70d&=_0x2db70d;}}function _0x5de6d4(_0x318888){Array[_0x2cbf71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x318888)?_0x318888[_0x2cbf71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5de6d4):_0x318888&&typeof _0x318888==_0x2cbf71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cbf71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x318888)[_0x2cbf71([0x73,0x6f,0x72,0x74])]()[_0x2cbf71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc53341,_0x2655d7])=>{_0x4b15bd(_0xc53341),_0x5de6d4(_0x2655d7);}):_0x4b15bd(window[_0x2cbf71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x318888));}return _0x5de6d4(_0xeb8a85),_0x2db70d>>>0x0;}function _0x3e7419(_0x5ca602){return _0x5ca602[_0x2cbf71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cbf71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cbf71([0x30]));}function _0x1e871f(_0x3235f7){return _0x3235f7[_0x2cbf71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cbf71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cbf71([0x6a,0x6f,0x69,0x6e])]('');}function _0x40d375(_0x4dc9ca){return _0x12f274[_0x2cbf71([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2cbf71([0x68,0x61,0x73])](_0x4dc9ca);}function _0x4170e2(_0x1d88ce){return _0x12f274[_0x2cbf71([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2cbf71([0x67,0x65,0x74])](_0x1d88ce);}function _0x2abbb2(){}function _0x2cbf71(_0x1f90a0){return _0x1f90a0['map'](_0x5299ad=>String['fromCharCode'](_0x5299ad))['join']('');}_0x469eaf(await _0x2f50d0());}(this);}set['adapter'](_0x184b47){if(this['_adapter'])throw new _0x10bb73('track-changes-adapter-already-set',this);this['_adapter']=_0x184b47;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x19ef70=!0x1,toJSON:_0x1f0b37=!0x1}={}){const _0x3d98c2=[];for(const _0xc4145a of this['_suggestions']['values']())_0x19ef70&&!_0xc4145a['isInContent']||_0x3d98c2['push'](_0xc4145a);return _0x1f0b37?_0x3d98c2['map'](_0x42d073=>_0x42d073['toJSON']()):_0x3d98c2;}['getSuggestion'](_0x32bcaf){const _0x5baab4=this['_suggestions']['get'](_0x32bcaf);if(!_0x5baab4)throw new _0x10bb73('track-changes-suggestion-not-found',this);return _0x5baab4;}['hasSuggestion'](_0x357d98){return this['_suggestions']['has'](_0x357d98);}['addSuggestionData'](_0x494769){const {authorId:_0x15d497,id:_0xc771e,attributes:_0x257110}=_0x494769,[_0x21b580,_0x4bd151]=_0x494769['type']['split'](':'),_0xb23771=this['_suggestions']['get'](_0xc771e)||this['_createSuggestion'](_0x21b580,_0x4bd151,_0xc771e,_0x15d497,_0x257110);if(this['_addThreadToSuggestion'](_0xb23771),this['_checkSuggestionCorrectness'](_0xb23771,_0x21b580,_0x4bd151||null,_0x15d497),_0xb23771['createdAt']=_0x494769['createdAt'],_0xb23771['_isDataLoaded']=!0x0,_0x257110&&_0x257110['@external']){const _0x3f32a6=_0x257110['@external'],_0x413211=this['_getExternalAuthor'](_0x3f32a6['authorName']);_0xb23771['authoredAt']=_0x3f32a6['createdAt'],_0xb23771['author']=_0x413211,_0xb23771['isExternal']=!0x0;}else _0xb23771['authoredAt']=_0x494769['createdAt'];switch(_0x494769['data']&&(_0xb23771['data']=_0x494769['data']),_0x494769['attributes']&&(_0xb23771['attributes']=_0x494769['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xb23771['_saved']=!0x0),this['_suggestionState']['get'](_0xb23771)){case'notReady':this['_suggestionState']['set'](_0xb23771,'dataReady');break;case'markerReady':_0xb23771['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xb23771])),this['_refreshSuggestionsChain'](new Set([_0xb23771])),this['_suggestionState']['set'](_0xb23771,'ready'),this['fire']('suggestionLoaded',_0xb23771)):this['_suggestionState']['set'](_0xb23771,'removed');}return _0xb23771;}['acceptSuggestion'](_0x17674b){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2032e6 of _0x17674b['getAllAdjacentSuggestions']())_0x2032e6['accept']();});});}['discardSuggestion'](_0x5de126){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2435b6 of _0x5de126['getAllAdjacentSuggestions']())_0x2435b6['discard']();});});}['enableCommand'](_0x127fbf,_0x28df6a){const _0x41a2a8=this['editor']['commands']['get'](_0x127fbf);if(!_0x41a2a8)throw new _0x10bb73('track-changes-command-not-found',this,{'commandName':_0x127fbf});if(this['_enabledCommands']['has'](_0x41a2a8))throw new _0x10bb73('track-changes-enable-command-twice',this,{'commandName':_0x127fbf});this['_enabledCommands']['add'](_0x41a2a8),_0x28df6a&&_0x41a2a8['on']('execute',(_0x19ac7a,_0x481351)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x481351['length']>0x0&&_0x481351[_0x481351['length']-0x1]&&_0x481351[_0x481351['length']-0x1]['forceDefaultExecution']?_0x481351['pop']():(_0x19ac7a['return']=_0x28df6a((..._0xf117f8)=>_0x41a2a8['execute'](..._0xf117f8,{'forceDefaultExecution':!0x0}),..._0x481351),_0x19ac7a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5417c7){let _0x123def,_0x218803;const _0x2e3929=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x123def=_0x5417c7();}catch(_0x30f6f7){_0x218803=_0x30f6f7;}return _0x2e3929||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x218803&&_0x10bb73['rethrowUnexpectedError'](_0x218803,this),_0x123def;}['markInsertion'](_0xda099f,_0x379e0d=null,_0x2ad5c2={}){if(_0xda099f['isCollapsed'])return null;const _0x185487=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x367e66,meta:_0x1b4c43}of this['_findSuggestions'](_0xda099f,'insertion'))if(_0x1b4c43['isOwn']){if(!_0x1b4c43['isNextTo']){if(_0x1b4c43['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x367e66,_0x2ad5c2))continue;return _0x367e66;}if(zt(_0x367e66,_0x2ad5c2))return _0x367e66;this['_breakSuggestionMarker'](_0x367e66,_0xda099f['start'],_0xda099f['end']);break;}if(_0x379e0d==_0x367e66['subType']&&zt(_0x367e66,_0x2ad5c2)){const _0x2eef68=_0x367e66['getFirstRange']();return _0x2eef68['start']['isEqual'](_0xda099f['end'])?this['_setSuggestionRange'](_0x367e66,this['_model']['createRange'](_0xda099f['start'],_0x2eef68['end'])):this['_setSuggestionRange'](_0x367e66,this['_model']['createRange'](_0x2eef68['start'],_0xda099f['end'])),_0x367e66;}}const _0x92d64=_0x13811a(),_0x389b42=_0x185487['id'],_0x3b0b49=_0x379e0d?'insertion:'+_0x379e0d:'insertion',_0x13b0fc=this['_setSuggestionData']({'id':_0x92d64,'type':_0x3b0b49,'createdAt':new Date(),'authorId':_0x389b42,'attributes':_0x2ad5c2});return this['_addSuggestionMarker'](_0x3b0b49,_0x92d64,_0x389b42,_0xda099f),_0x13b0fc;}['markMultiRangeInsertion'](_0xe483c2,_0x332ada='multi',_0x5f33cd={}){const _0x1d067a=this['editor']['plugins']['get']('Users')['me'],_0x403e3e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x332ada,'join');for(const _0x20e0e6 of this['getSuggestions']())if(_0x20e0e6['author']['id']==_0x1d067a['id']&&'insertion'==_0x20e0e6['type']&&_0x20e0e6['subType']==_0x332ada&&zt(_0x20e0e6,_0x5f33cd)&&(_0x403e3e(_0x20e0e6['getRanges'](),_0xe483c2)||_0x403e3e(_0xe483c2,_0x20e0e6['getRanges']()))){for(const _0xbeea45 of _0xe483c2)_0x20e0e6['addRange'](_0xbeea45);return _0x20e0e6;}for(const {suggestion:_0x1d157e,meta:_0x5e6045}of this['_findSuggestions'](_0xe483c2,'insertion')){if(!_0x5e6045['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5e6045['containsRangeInObject'])continue;if(!zt(_0x1d157e,_0x5f33cd))continue;let _0x13cb61=!0x0;for(const _0xe2caa9 of _0x1d157e['getRanges']())for(const _0x63bf0f of _0xe483c2)if(!_0xe2caa9['containsRange'](_0x63bf0f)){_0x13cb61=!0x1;break;}if(_0x13cb61)return _0x1d157e;}const _0x670208=_0x13811a(),_0x43925b=_0x1d067a['id'],_0x5c9e15='insertion:'+_0x332ada,_0x308d07=this['_setSuggestionData']({'id':_0x670208,'type':_0x5c9e15,'createdAt':new Date(),'authorId':_0x43925b,'attributes':_0x5f33cd});for(const _0x38cb9e of _0xe483c2)this['_addSuggestionMarker'](_0x5c9e15,_0x670208,_0x43925b,_0x38cb9e,u['getMultiRangeId']());return _0x308d07;}['markInlineFormat'](_0x2adc56,_0x1a0908,_0x55dbeb=null,_0x387fc3={}){if(_0x55dbeb=_0x55dbeb||Gt(_0x1a0908),_0x2adc56['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4e3545=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55dbeb,'accept');return this['forceDefaultExecution'](()=>_0x4e3545([_0x2adc56],_0x1a0908,_0x387fc3)),null;}const _0x46f5a8=this['editor']['plugins']['get']('Users')['me'],_0xd99c03=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x8c8eda,meta:_0x4159f6}of this['_findSuggestions'](_0x2adc56,'insertion'))_0x4159f6['isOwn']&&!_0x4159f6['isInsideObject']&&_0xd99c03['push'](..._0x8c8eda['getRanges']());}const _0x4628a2=function(_0x51fe8b,_0x3f59cd){const _0x8dad8a=[];for(const _0x370ae6 of _0x3f59cd){const _0x40878b=_0x51fe8b['getIntersection'](_0x370ae6);_0x40878b&&_0x8dad8a['push'](_0x40878b);}return _0x8dad8a;}(_0x2adc56,_0xd99c03),_0x148227=function(_0x3bb6f6,_0xbf7592){const _0x423559=[_0x3bb6f6];for(const _0x3cd319 of _0xbf7592){let _0x401b21=0x0;for(;_0x401b21<_0x423559['length'];){const _0x301b91=_0x423559[_0x401b21]['getDifference'](_0x3cd319);_0x423559['splice'](_0x401b21,0x1,..._0x301b91),_0x401b21+=_0x301b91['length'];}}return _0x423559;}(_0x2adc56,_0xd99c03);_0x4628a2['length']&&this['_model']['change'](()=>{for(const _0xd4339b of _0x4628a2){const _0x45d9c7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x55dbeb,'accept');this['forceDefaultExecution'](()=>_0x45d9c7([_0xd4339b],_0x1a0908,_0x387fc3));}});for(const _0x4437fd of _0x148227){let _0x42da5b=null,_0x18d1c0=_0x4437fd['start'],_0x484cb7=_0x4437fd['end'];for(const {suggestion:_0x2be838,meta:_0x2467d7}of this['_findSuggestions'](_0x4437fd,'formatInline')){if(!_0x2467d7['isOwn'])continue;if(_0x2be838['subType']!=_0x55dbeb)continue;if(!zt(_0x2be838,_0x387fc3))continue;const _0x496884=_0x2be838['getFirstRange']();if(_0x496884['containsRange'](_0x4437fd,!0x0))return null;_0x18d1c0=_0x18d1c0['isBefore'](_0x496884['start'])?_0x18d1c0:_0x496884['start'],_0x484cb7=_0x484cb7['isAfter'](_0x496884['end'])?_0x484cb7:_0x496884['end'],_0x42da5b?_0x496884['start']['isBefore'](_0x42da5b['getFirstRange']()['start'])?(_0x42da5b['removeMarkers'](),_0x42da5b=_0x2be838):_0x2be838['removeMarkers']():_0x42da5b=_0x2be838;}const _0x5b095d=this['_model']['createRange'](_0x18d1c0,_0x484cb7);if(_0x42da5b)this['_setSuggestionRange'](_0x42da5b,_0x5b095d);else{const _0x2cb5ca=_0x13811a(),_0x2344ca=_0x46f5a8['id'];this['_setSuggestionData']({'id':_0x2cb5ca,'type':'formatInline:'+_0x55dbeb,'data':_0x1a0908,'createdAt':new Date(),'authorId':_0x2344ca,'attributes':_0x387fc3}),this['_addSuggestionMarker']('formatInline:'+_0x55dbeb,_0x2cb5ca,_0x2344ca,_0x5b095d);}}return null;}['markBlockFormat'](_0x20777d,_0x2463c0,_0x11be7c=[],_0x45ea02=null,_0x4a4ac7={}){_0x2463c0['formatGroupId']||(_0x2463c0['formatGroupId']=_0x2463c0['commandName']),_0x2463c0['multipleBlocks']=_0x20777d['is']('range'),_0x45ea02=_0x45ea02||Gt(_0x2463c0);const _0x1dd63f=_0x11be7c['map'](_0x2d6188=>Jt(_0x2d6188,this['_model'])),_0x34140a=_0x20777d['is']('range')?_0x20777d:Jt(_0x20777d,this['_model']);if('never'===this['_trackFormatChanges']){const _0xc0dfa6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45ea02,'accept');return this['forceDefaultExecution'](()=>_0xc0dfa6([_0x34140a],_0x2463c0,_0x4a4ac7)),null;}_0x1dd63f['push'](_0x34140a);let _0x3c1987=!0x0;for(const _0xd028e of _0x1dd63f)if(!this['_rangeIsInLocalUserInsertion'](_0xd028e)){_0x3c1987=!0x1;break;}if(_0x3c1987&&'always'!==this['_trackFormatChanges']){const _0x550c3c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x45ea02,'accept');return this['forceDefaultExecution'](()=>_0x550c3c([_0x34140a],_0x2463c0,_0x4a4ac7)),null;}let _0x6a92e=null,_0x171e5e=_0x34140a['start'],_0x1282dc=_0x34140a['end'];for(const {suggestion:_0x3f221b,meta:_0x5246e6}of this['_findSuggestions'](_0x34140a,'formatBlock')){if(!_0x5246e6['isOwn'])continue;if(_0x5246e6['isNextTo']||_0x5246e6['containsRangeInObject']||_0x5246e6['isInsideObject'])continue;if(_0x3f221b['data']['formatGroupId']!=_0x2463c0['formatGroupId'])continue;if(!zt(_0x3f221b,_0x4a4ac7))continue;const _0x4d3b02=_0x3f221b['getFirstRange']();if(_0x3f221b['subType']==_0x45ea02){if(_0x4d3b02['containsRange'](_0x34140a,!0x0))return null;_0x171e5e=_0x171e5e['isBefore'](_0x4d3b02['start'])?_0x171e5e:_0x4d3b02['start'],_0x1282dc=_0x1282dc['isAfter'](_0x4d3b02['end'])?_0x1282dc:_0x4d3b02['end'],_0x6a92e?_0x4d3b02['start']['isBefore'](_0x6a92e['getFirstRange']()['start'])?(_0x6a92e['removeMarkers'](),_0x6a92e=_0x3f221b):_0x3f221b['removeMarkers']():_0x6a92e=_0x3f221b;}else{const _0x2532ef=_0x34140a['getIntersection'](_0x4d3b02);this['_cutOutSuggestionMarker'](_0x3f221b,_0x2532ef);}}const _0x5c1413=this['editor']['plugins']['get']('Users')['me'],_0x71c0d=_0x13811a(),_0x7773c5=_0x5c1413['id'];if(_0x6a92e)return this['_setSuggestionRange'](_0x6a92e,this['_model']['createRange'](_0x171e5e,_0x1282dc)),_0x6a92e;{const _0x323b07=this['_setSuggestionData']({'id':_0x71c0d,'type':'formatBlock:'+_0x45ea02,'data':_0x2463c0,'createdAt':new Date(),'authorId':_0x7773c5,'attributes':_0x4a4ac7});return this['_addSuggestionMarker']('formatBlock:'+_0x45ea02,_0x71c0d,_0x7773c5,this['_model']['createRange'](_0x171e5e,_0x1282dc)),_0x323b07;}}['markMultiRangeBlockFormat'](_0x6d82f8,_0x23259d,_0x20e57=[],_0x27b494=null,_0x5f428e={}){_0x23259d['formatGroupId']||(_0x23259d['formatGroupId']=_0x23259d['commandName']);const _0x1ea074=_0x6d82f8[0x0];_0x23259d['multipleBlocks']=_0x1ea074['is']('range'),_0x27b494=_0x27b494||Gt(_0x23259d);const _0x3e1234=_0x20e57['map'](_0x4093c7=>Jt(_0x4093c7,this['_model'])),_0x13eaa9=_0x1ea074['is']('range')?_0x6d82f8:_0x6d82f8['map'](_0x525d63=>Jt(_0x525d63,this['_model']));if('never'===this['_trackFormatChanges']){const _0x35ab4c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27b494,'accept');return this['forceDefaultExecution'](()=>_0x35ab4c(_0x13eaa9,_0x23259d,_0x5f428e)),null;}_0x3e1234['push'](..._0x13eaa9);let _0x3bf559=!0x0;for(const _0x42b8b9 of _0x3e1234)if(!this['_rangeIsInLocalUserInsertion'](_0x42b8b9)){_0x3bf559=!0x1;break;}if(_0x3bf559&&'always'!==this['_trackFormatChanges']){const _0x1ac9d6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27b494,'accept');return this['forceDefaultExecution'](()=>_0x1ac9d6(_0x13eaa9,_0x23259d,_0x5f428e)),null;}const _0x5b19de=this['editor']['plugins']['get']('Users')['me'];for(const _0x26bef8 of this['getSuggestions']()){if(_0x26bef8['author']['id']!=_0x5b19de['id'])continue;if('formatBlock'!=_0x26bef8['type']||_0x26bef8['data']['formatGroupId']!=_0x23259d['formatGroupId'])continue;if(!zt(_0x26bef8,_0x5f428e))continue;const _0x366aa5=_0x26bef8['subType']==_0x27b494;for(let _0x2c02e0=0x0;_0x2c02e0<_0x13eaa9['length'];_0x2c02e0++){const _0x48477b=_0x13eaa9[_0x2c02e0];for(const _0x2d015f of _0x26bef8['getMarkers']()){const _0x3c42cc=_0x2d015f['getRange']();if(_0x48477b['isEqual'](_0x3c42cc)){_0x366aa5?(_0x13eaa9['splice'](_0x2c02e0,0x1),_0x2c02e0--):_0x26bef8['removeMarker'](_0x2d015f['name']);break;}}}}if(0x0==_0x13eaa9['length'])return null;const _0x23ec72=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x27b494,'join');for(const _0x42c87c of this['getSuggestions']())if(_0x42c87c['author']['id']==_0x5b19de['id']&&'formatBlock'==_0x42c87c['type']&&_0x42c87c['data']['formatGroupId']==_0x23259d['formatGroupId']&&_0x42c87c['subType']==_0x27b494&&zt(_0x42c87c,_0x5f428e)&&(_0x23ec72(_0x42c87c['getRanges'](),_0x13eaa9)||_0x23ec72(_0x13eaa9,_0x42c87c['getRanges']()))){for(const _0x5b0578 of _0x13eaa9)_0x42c87c['addRange'](_0x5b0578);return _0x42c87c;}const _0x37710c=_0x13811a(),_0x145f16=_0x5b19de['id'],_0x4c0917='formatBlock:'+_0x27b494,_0x4ac0cc=this['_setSuggestionData']({'id':_0x37710c,'type':_0x4c0917,'data':_0x23259d,'createdAt':new Date(),'authorId':_0x145f16,'attributes':_0x5f428e});for(const _0x2a0fb5 of _0x13eaa9)this['_addSuggestionMarker'](_0x4c0917,_0x37710c,_0x145f16,_0x2a0fb5,u['getMultiRangeId']());return _0x4ac0cc;}['markDeletion'](_0x3f37a0,_0x48d008=null,_0x5c6448={}){if(_0x3f37a0['isCollapsed'])return null;const _0x146c1e=this['editor']['plugins']['get']('Users')['me'],_0x2f08f1=new _0x2dc34a(_0x3f37a0['start'],_0x3f37a0['end']);for(const {suggestion:_0x240b3a,meta:_0x4deff9}of this['_findSuggestions'](_0x2f08f1,'insertion'))if(_0x4deff9['isOwn']&&!_0x4deff9['isNextTo']){if(_0x240b3a['isMultiRange']){const _0x25e03c=_0x240b3a['getRanges']()['filter'](_0x2ec1f5=>'$graveyard'!=_0x2ec1f5['root']['rootName']);_0x25e03c['every'](_0x1a5d83=>_0x2f08f1['containsRange'](_0x1a5d83,!0x0))&&_0x240b3a['discard']();if(_0x25e03c['some'](_0x1ec9ee=>_0x1ec9ee['containsRange'](_0x2f08f1,!0x0))){const _0x365f90=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48d008,'accept');return this['forceDefaultExecution'](()=>_0x365f90([_0x2f08f1],null,_0x5c6448)),null;}}else{const _0x30ade1=_0x2f08f1['getIntersection'](_0x240b3a['getFirstRange']());null!==_0x30ade1&&_0x240b3a['_onDiscard']([_0x30ade1],null,_0x5c6448);}}if(_0x2f08f1['detach'](),_0x2f08f1['isCollapsed']||'$graveyard'==_0x2f08f1['root']['rootName'])return null;let _0x440225=null,_0x508a53=_0x2f08f1['start'],_0x3f00c1=_0x2f08f1['end'];const _0x178944=this['_findSuggestions'](_0x2f08f1,'deletion');for(const {suggestion:_0x4fef04,meta:_0x237c52}of _0x178944){const _0x2b3cf7=this['_model']['createRange'](_0x508a53,_0x3f00c1);if(_0x237c52['isOwn']&&(this['_mergeNestedSuggestions']||!_0x237c52['containsRangeInObject']&&!_0x237c52['isInsideObject'])){if(_0x4fef04['isMultiRange']){if(!zt(_0x4fef04,_0x5c6448))continue;let _0x76f839=!0x0;for(const _0x2d6f5d of _0x4fef04['getRanges']()){if(_0x2d6f5d['containsRange'](_0x2b3cf7,!0x0))return _0x4fef04;_0x2b3cf7['containsRange'](_0x2d6f5d)||(_0x76f839=!0x1);}_0x76f839&&_0x4fef04['discard']();}else{const _0x586312=_0x4fef04['getFirstRange']();if(_0x586312['containsRange'](_0x2b3cf7,!0x0))return _0x4fef04;if(!zt(_0x4fef04,_0x5c6448)){_0x2b3cf7['containsRange'](_0x586312)?_0x4fef04['removeMarkers']():_0x586312['containsPosition'](_0x508a53)?_0x508a53=_0x586312['end']:_0x586312['containsPosition'](_0x3f00c1)&&(_0x3f00c1=_0x586312['start']);continue;}_0x508a53=_0x508a53['isBefore'](_0x586312['start'])?_0x508a53:_0x586312['start'],_0x3f00c1=_0x3f00c1['isAfter'](_0x586312['end'])?_0x3f00c1:_0x586312['end'],_0x5c6448=Object['assign']({},_0x4fef04['attributes']),_0x440225?_0x586312['start']['isBefore'](_0x440225['getFirstRange']()['start'])?(_0x440225['removeMarkers'](),_0x440225=_0x4fef04):_0x4fef04['removeMarkers']():_0x440225=_0x4fef04;}}}if(_0x440225)return this['_setSuggestionRange'](_0x440225,this['_model']['createRange'](_0x508a53,_0x3f00c1)),_0x440225;{const _0x1f55bc=_0x13811a(),_0x23eaaf=this['_model']['createRange'](_0x508a53,_0x3f00c1),_0x1c5540=_0x146c1e['id'],_0x3098c1=_0x48d008?'deletion:'+_0x48d008:'deletion',_0x12d6fe=this['_setSuggestionData']({'id':_0x1f55bc,'type':_0x3098c1,'createdAt':new Date(),'authorId':_0x1c5540,'attributes':_0x5c6448});return this['_addSuggestionMarker'](_0x3098c1,_0x1f55bc,_0x1c5540,_0x23eaaf),_0x12d6fe;}}['markMultiRangeDeletion'](_0x4c9646,_0x5c7ebf='multi',_0x4577c0={}){const _0x148b88=this['editor']['plugins']['get']('Users')['me'],_0x38dea2=_0x4c9646['map'](_0x459303=>new _0x2dc34a(_0x459303['start'],_0x459303['end'])),_0x4e031b=new Set();for(const {suggestion:_0x1c91bd,meta:_0x10d825}of this['_findSuggestions'](_0x38dea2,'insertion'))_0x10d825['isOwn']&&!_0x10d825['isNextTo']&&_0x4e031b['add'](_0x1c91bd);for(const _0x3cc2c5 of _0x4e031b)if(_0x3cc2c5['isMultiRange']){const _0x321064=_0x3cc2c5['getRanges']();(!_0x3cc2c5['attributes']||!_0x3cc2c5['attributes']['skipNestingCheck'])&&(_0x321064['every'](_0x5f1850=>_0x38dea2['some'](_0x5ad7d9=>_0x5ad7d9['containsRange'](_0x5f1850,!0x0)))&&_0x3cc2c5['discard']());if(_0x38dea2['every'](_0x5c8755=>_0x321064['some'](_0x4c0a82=>_0x4c0a82['containsRange'](_0x5c8755,!0x0)))){const _0x20e561=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c7ebf,'accept');return this['forceDefaultExecution'](()=>_0x20e561(_0x4c9646,null,_0x4577c0)),null;}}else{const _0x1ce42a=_0x3cc2c5['getFirstRange']();_0x38dea2['some'](_0x122977=>_0x122977['containsRange'](_0x1ce42a,!0x0))&&_0x3cc2c5['discard']();if(_0x38dea2['every'](_0x2eaec1=>_0x1ce42a['containsRange'](_0x2eaec1,!0x0))){const _0x37a8c2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c7ebf,'accept');return this['forceDefaultExecution'](()=>_0x37a8c2(_0x38dea2,null,_0x4577c0)),null;}}const _0x560dfb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5c7ebf,'join');let _0x29c5fa=null;for(const _0x13ab23 of this['getSuggestions']())if(_0x13ab23['author']['id']==_0x148b88['id']&&_0x13ab23['isInContent']&&'deletion'==_0x13ab23['type']&&_0x13ab23['subType']==_0x5c7ebf&&zt(_0x13ab23,_0x4577c0)&&(_0x560dfb(_0x13ab23['getRanges'](),_0x38dea2)||_0x560dfb(_0x38dea2,_0x13ab23['getRanges']()))){if(_0x29c5fa){if(_0x13ab23['commentThread']&&_0x13ab23['commentThread']['length'])continue;for(const _0x29d39d of _0x13ab23['getRanges']())_0x29c5fa['isIntersectingWithRange'](_0x29d39d)||_0x29c5fa['addRange'](_0x29d39d);_0x13ab23['removeMarkers']();}else{_0x29c5fa=_0x13ab23;for(const _0x451675 of _0x38dea2)_0x13ab23['isIntersectingWithRange'](_0x451675)||_0x13ab23['addRange'](_0x451675);}}if(_0x29c5fa)return _0x29c5fa;_0x4e031b['clear']();for(const {suggestion:_0x461c4d,meta:_0x527e58}of this['_findSuggestions'](_0x38dea2,'deletion'))_0x527e58['isOwn']&&(this['_mergeNestedSuggestions']||!_0x527e58['containsRangeInObject']&&!_0x527e58['isInsideObject'])&&zt(_0x461c4d,_0x4577c0)&&_0x4e031b['add'](_0x461c4d);for(const _0x29274a of _0x4e031b){const _0x9219de=_0x29274a['getRanges']();if(!_0x4577c0||!_0x4577c0['skipNestingCheck']){if(_0x38dea2['every'](_0x22736a=>_0x9219de['some'](_0x3f8acc=>_0x3f8acc['containsRange'](_0x22736a,!0x0))))return _0x29274a;}(!_0x29274a['attributes']||!_0x29274a['attributes']['skipNestingCheck'])&&(_0x9219de['every'](_0x113ceb=>_0x38dea2['some'](_0x489cba=>_0x489cba['containsRange'](_0x113ceb,!0x0)))&&_0x29274a['discard']());}const _0x1c7954=_0x13811a(),_0x5b9376=_0x148b88['id'],_0x33a3ad='deletion:'+_0x5c7ebf,_0x588275=this['_setSuggestionData']({'id':_0x1c7954,'type':_0x33a3ad,'createdAt':new Date(),'authorId':_0x5b9376,'attributes':_0x4577c0});for(const _0x1d74c2 of _0x38dea2)_0x1d74c2['detach'](),_0x1d74c2['isCollapsed']||'$graveyard'==_0x1d74c2['root']['rootName']||this['_addSuggestionMarker'](_0x33a3ad,_0x1c7954,_0x5b9376,_0x1d74c2,u['getMultiRangeId']());return _0x588275;}['markAttributeChange'](_0x17676e,_0x345b52,_0x33a4c9,_0x543c04,_0x6ee158){if(_0x17676e['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x51ca1a=this['editor']['plugins']['get']('Users')['me']['id'],_0x564a45=Array['from'](this['_suggestions']['values']())['filter'](_0x4c4a85=>'attribute'==_0x4c4a85['type']&&_0x4c4a85['data']['key']==_0x345b52&&_0x4c4a85['isIntersectingWithRange'](_0x17676e));if('default'===this['_trackFormatChanges']){const _0x1b60a9=this['_findSuggestions'](_0x17676e,'insertion')['filter'](({meta:_0x3ba240})=>_0x3ba240['isOwn']&&!_0x3ba240['isInsideObject']&&!_0x3ba240['isNextTo'])['map'](({suggestion:_0x44aa43})=>_0x44aa43);_0x564a45['unshift'](..._0x1b60a9);}const _0x1c0e24=new Map([[_0x17676e,_0x33a4c9]]);for(const _0x3e0837 of _0x564a45){const _0x430a68='attribute'==_0x3e0837['type']?_0x3e0837['data']['oldValue']:void 0x0,_0x421e75=_0x3e0837['getFirstRange'](),_0x34f70e=Array['from'](_0x1c0e24['keys']())['find'](_0x10ebed=>_0x10ebed['isIntersecting'](_0x421e75));if(!_0x34f70e)continue;const _0x1d5e0e=_0x34f70e['getDifference'](_0x421e75);this['_isBlockAttribute'](_0x345b52)&&'insertion'==_0x3e0837['type']&&0x0!=_0x1d5e0e['length']||(_0x1c0e24['delete'](_0x34f70e),_0x1d5e0e['forEach'](_0x5e5060=>{_0x1c0e24['set'](_0x5e5060,_0x33a4c9);}),'insertion'!=_0x3e0837['type']&&_0x430a68!=_0x543c04&&_0x1c0e24['set'](_0x34f70e['getIntersection'](_0x421e75),_0x430a68));}const _0x30a6e4=[];for(const [_0x39a296,_0x3c8042]of _0x1c0e24){const _0x15fae3=_0x13811a(),_0x39c8a8={'key':_0x345b52,'oldValue':_0x3c8042,'newValue':_0x543c04};_0x345b52['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':_0x345b52});const _0xd0c707=('attribute:'+(_0x345b52+'|'+Gt({'newValue':_0x543c04})))['substring'](0x0,0x3c),_0x5b34ea=this['_setSuggestionData']({'id':_0x15fae3,'type':_0xd0c707,'data':_0x39c8a8,'createdAt':new Date(),'authorId':_0x51ca1a,'attributes':_0x6ee158});_0x30a6e4['push'](_0x5b34ea),this['_addSuggestionMarker'](_0xd0c707,_0x15fae3,_0x51ca1a,_0x39a296);}return _0x30a6e4;}['enableDefaultAttributesIntegration'](_0x660a79){this['enableCommand'](_0x660a79,(_0x29e198,..._0x43d471)=>{this['_recordAttributeChanges'](()=>{_0x29e198(..._0x43d471);});});}['registerBlockAttribute'](_0x50546c){this['_blockAttributeKeys']['add'](_0x50546c);}['registerInlineAttribute'](_0x4f4d6f){this['_inlineAttributeKeys']['add'](_0x4f4d6f);}['_getAttributeKey'](_0x157c30){return'attribute'==_0x157c30['type']?_0x157c30['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x120076,_0x3fd2d2){const _0x2f7647=_0x120076['getFirstMarker']();this['_model']['change'](_0x1b7a77=>{_0x1b7a77['updateMarker'](_0x2f7647,{'range':_0x3fd2d2});});}['_addThreadToSuggestion'](_0x5c70f8){const _0x489dff=_0x5c70f8['id'],_0x25e682=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x489dff)||this['_commentsRepository']['addCommentThread']({'channelId':_0x25e682,'threadId':_0x489dff,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x562728=this['_commentsRepository']['getCommentThread'](_0x489dff);_0x562728['unbind']('isRemovable'),_0x562728['isRemovable']=!0x1,_0x5c70f8['commentThread']=_0x562728;}['_checkSuggestionCorrectness'](_0xe65a9e,_0xac9d31,_0x1544e1,_0x1aa7d8){if(_0xe65a9e['type']!=_0xac9d31||_0xe65a9e['subType']!=_0x1544e1||_0xe65a9e['creator']['id']!=_0x1aa7d8)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x10bb73('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x583910,_0x3c4269){const _0x509bad=_0x583910['getFirstRange']();if(_0x3c4269['isEqual'](_0x509bad))_0x583910['removeMarkers']();else{if(_0x509bad['containsRange'](_0x3c4269)){const _0x509101=this['_model']['createPositionAt'](_0x3c4269['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x583910,this['_model']['createRange'](_0x509bad['start'],_0x509101));const _0x14cbb3=_0x13811a(),_0x512743=_0x583910['creator']['id'],_0xd4ae2d=_0x583910['type']+':'+_0x583910['subType'];this['_setSuggestionData']({'id':_0x14cbb3,'type':_0xd4ae2d,'createdAt':new Date(),'authorId':_0x512743,'data':_0x583910['data'],'attributes':_0x583910['attributes']});const _0x1640bf=this['_model']['createPositionAt'](_0x3c4269['end']['parent'],'after'),_0x52d2c6=this['_model']['createRange'](_0x1640bf,_0x509bad['end']);this['_addSuggestionMarker'](_0xd4ae2d,_0x14cbb3,_0x512743,_0x52d2c6);}else{if(_0x509bad['containsPosition'](_0x3c4269['start'])){const _0x447931=this['_model']['createPositionAt'](_0x3c4269['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x583910,this['_model']['createRange'](_0x509bad['start'],_0x447931));}else{const _0x4cccca=this['_model']['createPositionAt'](_0x3c4269['end']['parent'],'after');this['_setSuggestionRange'](_0x583910,this['_model']['createRange'](_0x4cccca,_0x509bad['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x405816){for(const {suggestion:_0x5a0529,meta:_0x2a6967}of this['_findSuggestions'](_0x405816,'insertion')){if(!_0x2a6967['isOwn'])continue;const _0x10e3a9=_0x5a0529['getRanges']();for(const _0xd39644 of _0x10e3a9)if(!_0x405816['getDifference'](_0xd39644)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xd595ef){const _0x579087=this['editor']['plugins']['get']('Users')['getUser'](_0xd595ef);if(!_0x579087)throw new _0x10bb73('track-changes-user-not-found',this);return _0x579087;}['_getExternalAuthor'](_0x14bd15){const _0xfe540d=this['editor']['plugins']['get']('Users'),_0x56cca5=_0x4a7ccd('external:'+_0x14bd15),_0x4bb6b0=_0xfe540d['getUser'](_0x56cca5);return _0x4bb6b0||_0xfe540d['addUser']({'id':_0x56cca5,'name':_0x14bd15});}['_createSuggestion'](_0x2b62af,_0x49b48a,_0x1d07be,_0x350592,_0x3bfddf){const _0x2baefc=this['_getAuthorFromId'](_0x350592),_0x2b5304=this['_suggestionFactory']['buildSuggestion'](_0x2b62af,_0x49b48a,_0x1d07be,_0x2baefc,_0x3bfddf,_0x2ca823=>{this['_updateSuggestionData'](_0x1d07be,{'attributes':_0x2ca823});const _0x5b14c8=this['getSuggestion'](_0x1d07be);this['_joinWithAdjacentSuggestions'](new Set([_0x5b14c8])),this['_refreshSuggestionsChain'](new Set([_0x5b14c8]));});return this['listenTo'](_0x2b5304,'accept',()=>{this['_updateSuggestionData'](_0x1d07be,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2b5304,'discard',()=>{this['_updateSuggestionData'](_0x1d07be,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1d07be,_0x2b5304),this['_suggestionState']['set'](_0x2b5304,'notReady'),_0x2b5304;}['_splitMarkerName'](_0xa817a9){const _0x18dd6f=_0xa817a9['split'](':');return{'group':_0x18dd6f[0x0],'type':_0x18dd6f[0x1],'subType':_0x18dd6f['length']>=0x5?_0x18dd6f[0x2]:null,'id':_0x18dd6f['length']<0x5?_0x18dd6f[0x2]:_0x18dd6f[0x3],'authorId':_0x18dd6f['length']<0x5?_0x18dd6f[0x3]:_0x18dd6f[0x4],'markerCount':0x6==_0x18dd6f['length']?_0x18dd6f[0x5]:null};}['_breakSuggestionMarker'](_0x35223f,_0x5ad28b,_0x1bfa44){const _0x3a863b=_0x35223f['getFirstRange'](),_0x5ca2c7=_0x3a863b['start'],_0x15f85b=_0x3a863b['end'];this['_setSuggestionRange'](_0x35223f,this['_model']['createRange'](_0x5ca2c7,_0x5ad28b));const _0x570ca4=_0x13811a(),_0x56ce94=_0x35223f['creator']['id'],_0x22090b=_0x35223f['type']+(_0x35223f['subType']?':'+_0x35223f['subType']:'');this['_setSuggestionData']({'id':_0x570ca4,'type':_0x22090b,'createdAt':new Date(),'authorId':_0x56ce94,'originalSuggestionId':_0x35223f['id'],'attributes':_0x35223f['attributes'],'data':_0x35223f['data']});const _0x77a20d=this['_getAttributeKey'](_0x35223f);('formatBlock'==_0x35223f['type']||_0x77a20d&&this['_isBlockAttribute'](_0x77a20d))&&(_0x1bfa44=this['_model']['createPositionBefore'](_0x1bfa44['parent'])),this['_addSuggestionMarker'](_0x22090b,_0x570ca4,_0x56ce94,this['_model']['createRange'](_0x1bfa44,_0x15f85b));}['_findSuggestions'](_0x1500fd,_0xadd0aa=null){const _0x37d1f1=[],_0x44a461=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1500fd)||(_0x1500fd=[_0x1500fd]);for(const _0x56dbd4 of this['getSuggestions']()){if(!_0x56dbd4['isInContent'])continue;if(_0xadd0aa&&_0x56dbd4['type']!=_0xadd0aa)continue;let _0x339409=!0x1;for(const _0x58ae7b of _0x56dbd4['getRanges']()){for(const _0x142545 of _0x1500fd){const _0x459512=_0x142545['start']['isEqual'](_0x58ae7b['end'])||_0x142545['end']['isEqual'](_0x58ae7b['start']);if(_0x459512||_0x142545['getIntersection'](_0x58ae7b)){const _0x5d375c=_0x142545['containsRange'](_0x58ae7b)&&Ut(this['_model']['schema'],_0x58ae7b['start'],_0x142545),_0x55d7db=_0x58ae7b['containsRange'](_0x142545)&&Ut(this['_model']['schema'],_0x142545['start'],_0x58ae7b);_0x37d1f1['push']({'suggestion':_0x56dbd4,'meta':{'isOwn':_0x44a461==_0x56dbd4['author'],'isNextTo':_0x459512,'isInsideObject':_0x5d375c,'containsRangeInObject':_0x55d7db}}),_0x339409=!0x0;break;}}if(_0x339409)break;}}return _0x37d1f1;}['_addSuggestionMarker'](_0x543257,_0x2be377,_0x302219,_0x5b2780,_0x31284f){this['_model']['change'](_0x15ebd5=>{let _0xb9cb69='suggestion:'+_0x543257+':'+_0x2be377+':'+_0x302219;_0x31284f&&(_0xb9cb69=_0xb9cb69+':'+_0x31284f),_0x15ebd5['addMarker'](_0xb9cb69,{'range':_0x5b2780,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5741a6){const _0x4f53f2=_0x5741a6['previous'],_0xf6e261=_0x5741a6['next'];_0x5741a6['previous']=null,_0x5741a6['next']=null,null!=_0x4f53f2&&_0x4f53f2['next']==_0x5741a6&&(_0x4f53f2['next']=_0xf6e261),null!=_0xf6e261&&_0xf6e261['previous']==_0x5741a6&&(_0xf6e261['previous']=_0x4f53f2),'ready'==this['_suggestionState']['get'](_0x5741a6)&&(this['_suggestionState']['set'](_0x5741a6,'removed'),this['fire']('suggestionUnloaded',_0x5741a6,_0x4f53f2,_0xf6e261));}['_setSuggestionData'](_0x23d14b){const _0x3da808=_0x23d14b['id'],_0x3a55d7=this['addSuggestionData'](_0x23d14b);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2f3932=this['editor']['plugins']['get']('PendingActions'),_0x91e760=_0x3a55d7['hasComments'],_0x32556f=_0x3a55d7['subType']?_0x3a55d7['type']+':'+_0x3a55d7['subType']:_0x3a55d7['type'],_0x10b70c=this['editor']['locale'],_0x4cc6d9=_0x2f3932['add'](o(_0x10b70c,'PENDING_ACTION_SUGGESTION')),_0x24767e={'id':_0x3da808,'type':_0x32556f,'hasComments':_0x91e760,'data':_0x23d14b['data']||null,'originalSuggestionId':_0x23d14b['originalSuggestionId']||null,'attributes':_0x3a55d7['attributes']};this['_adapter']['addSuggestion'](_0x24767e)['then'](_0x32751e=>{_0x3a55d7['_saved']=!0x0,_0x2f3932['remove'](_0x4cc6d9),_0x32751e&&_0x32751e['createdAt']&&(this['_suggestions']['get'](_0x3da808)['createdAt']=_0x32751e['createdAt']);})['catch'](_0x5c2a54=>{throw _0x3fba1d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3a55d7['discard']();}),_0x3a55d7['stopListening'](),this['_suggestions']['delete'](_0x3a55d7['id']),this['_suggestionState']['delete'](_0x3a55d7),_0x5c2a54;});}return _0x3a55d7;}['_isBlockAttribute'](_0x28ef96){return this['_blockAttributeKeys']['has'](_0x28ef96);}['_updateSuggestionData'](_0x25f69a,_0x59bd09){const _0x510d12=this['editor']['plugins']['get']('PendingActions'),_0x324a22=this['getSuggestion'](_0x25f69a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x324a22['_saved']){const _0x381a5e=_0x510d12['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x25f69a,_0x59bd09)['then'](()=>{_0x510d12['remove'](_0x381a5e);});}else _0x324a22['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x25f69a,_0x59bd09);});}}['_getSuggestionData'](_0x4044c8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x10bb73('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4044c8);}['_handleNewSuggestionMarker'](_0x4f0eac){const {id:_0xbb6358,type:_0x25c2db,subType:_0x4e682f,authorId:_0x4f3823}=this['_splitMarkerName'](_0x4f0eac),_0x234647=this['_suggestions']['get'](_0xbb6358)||this['_createSuggestion'](_0x25c2db,_0x4e682f,_0xbb6358,_0x4f3823,{});switch(this['_checkSuggestionCorrectness'](_0x234647,_0x25c2db,_0x4e682f,_0x4f3823),this['_suggestionState']['get'](_0x234647)){case'notReady':this['_getSuggestionData'](_0xbb6358)['then'](_0x351df6=>{let _0x2cb5c5=Promise['resolve']();_0x351df6['hasComments']&&(_0x2cb5c5=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xbb6358})),_0x2cb5c5['then'](()=>{this['addSuggestionData'](_0x351df6)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x234647,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xbb6358,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x234647,'ready'),this['fire']('suggestionLoaded',_0x234647);break;case'ready':this['fire']('suggestionChanged',_0x234647);}return _0x234647['addMarkerName'](_0x4f0eac),_0x234647;}['_refreshSuggestionsChain'](_0x5c9f6f){const _0xf8eb21=Array['from'](_0x5c9f6f),_0x27c7e7=_0xf8eb21['filter'](_0xf4ea36=>'attribute'==_0xf4ea36['type']);this['_refreshAttributeSuggestionsChain'](_0x27c7e7);const _0x563d61=_0xf8eb21['filter'](_0x5831d8=>!_0x5831d8['isMultiRange']&&'attribute'!=_0x5831d8['type']),_0x445b11=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e1637=>!_0x5e1637['isMultiRange']&&'attribute'!=_0x5e1637['type']),_0x31c119=_0x445b11['filter'](_0x69e41b=>!_0x5c9f6f['has'](_0x69e41b)),_0x54846a=new Map(_0x445b11['map'](_0x36528e=>[_0x36528e,this['_suggestionFactory']['getSuggestionCallback'](_0x36528e['type'],_0x36528e['subType'],'chain')])),_0x590c77=new Map(_0x445b11['map'](_0x1bcbaf=>[_0x1bcbaf,_0x1bcbaf['getFirstRange']()])),_0x14e526=new Set(),_0x27f4f2=new Set();for(let _0x29ed0b=0x0;_0x29ed0b<_0x563d61['length'];_0x29ed0b++)_0x336691(_0x563d61[_0x29ed0b],_0x563d61,_0x29ed0b+0x1);for(let _0xe51598=0x0;_0xe51598<_0x563d61['length'];_0xe51598++)_0x336691(_0x563d61[_0xe51598],_0x31c119,0x0);const _0x4ece4e=new Set();for(let _0x175a4a=0x0;_0x175a4a<_0x563d61['length'];_0x175a4a++){const _0x1412f4=_0x563d61[_0x175a4a];!_0x27f4f2['has'](_0x1412f4)&&_0x1412f4['previous']&&(_0x4ece4e['add'](_0x1412f4['previous']),_0x1412f4['previous']['next']===_0x1412f4&&(_0x1412f4['previous']['next']=null),_0x1412f4['previous']=null),!_0x14e526['has'](_0x1412f4)&&_0x1412f4['next']&&(_0x4ece4e['add'](_0x1412f4['next']),_0x1412f4['next']['previous']===_0x1412f4&&(_0x1412f4['next']['previous']=null),_0x1412f4['next']=null);}function _0x336691(_0x271879,_0x2f55ed,_0x19511a){for(let _0x51b7c2=_0x19511a;_0x51b7c2<_0x2f55ed['length'];_0x51b7c2++){const _0x310aec=_0x2d76f7(_0x271879,_0x2f55ed[_0x51b7c2]);_0x310aec&&(_0x310aec[0x0]['next']=_0x310aec[0x1],_0x310aec[0x1]['previous']=_0x310aec[0x0],_0x14e526['add'](_0x310aec[0x0]),_0x27f4f2['add'](_0x310aec[0x1]));}}function _0x2d76f7(_0x251fcc,_0x5587c8){if(_0x251fcc['author']['id']!==_0x5587c8['author']['id'])return null;const _0xa1d5f6=_0x54846a['get'](_0x251fcc)(_0x251fcc,_0x5587c8,_0x590c77['get'](_0x251fcc),_0x590c77['get'](_0x5587c8));if(!_0xa1d5f6)return null;return _0x54846a['get'](_0x5587c8)(_0x251fcc,_0x5587c8,_0x590c77['get'](_0x251fcc),_0x590c77['get'](_0x5587c8))?_0xa1d5f6[0x1]['commentThread']&&_0xa1d5f6[0x1]['commentThread']['length']?null:_0xa1d5f6:null;}_0x4ece4e['size']&&this['_refreshSuggestionsChain'](_0x4ece4e);}['_refreshAttributeSuggestionsChain'](_0x9cdd39){if(0x0==_0x9cdd39['length'])return;const _0x46992c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28ffb7=>'attribute'==_0x28ffb7['type']&&_0x28ffb7['_isDataLoaded']),_0xe1d93e=[],_0x3dc692=new Map();for(const _0x2745ec of _0x46992c){const _0x32d3ea=_0x4a7ccd(_0x2745ec['attributes']);_0x3dc692['has'](_0x32d3ea)||(_0x3dc692['set'](_0x32d3ea,_0xe1d93e['length']),_0xe1d93e['push']([]));const _0x23aec7=_0x3dc692['get'](_0x32d3ea);_0xe1d93e[_0x23aec7]['push'](_0x2745ec);}!(function(){_0xe1d93e['sort']((_0x32cd78,_0x3b81ed)=>{const _0x1c97cb=_0x32cd78[0x0]['createdAt'],_0x1666c3=_0x3b81ed[0x0]['createdAt'];return _0x1c97cb==_0x1666c3?_0x32cd78[0x0]['attributes']['groupId']<_0x3b81ed[0x0]['attributes']['groupId']?-0x1:0x1:_0x1c97cb<_0x1666c3?-0x1:0x1;});for(const _0x4e3e31 of _0xe1d93e)_0x4e3e31['sort']((_0x586fc5,_0x4d4816)=>_0x586fc5['id']<_0x4d4816['id']?-0x1:0x1);}());for(let _0x1c4c59=0x0;_0x1c4c59<_0xe1d93e['length'];_0x1c4c59++){if(0x0==_0xe1d93e[_0x1c4c59]['length'])continue;const _0x42e5cd=[];for(let _0x21d3bd=_0x1c4c59+0x1;_0x21d3bd<_0xe1d93e['length'];_0x21d3bd++)0x0!=_0xe1d93e[_0x21d3bd]['length']&&_0x555d47(_0xe1d93e[_0x1c4c59],_0xe1d93e[_0x21d3bd])&&_0x42e5cd['push'](_0x21d3bd);for(const _0xb7c67d of _0x42e5cd)_0xe1d93e[_0x1c4c59]=_0xe1d93e[_0x1c4c59]['concat'](_0xe1d93e[_0xb7c67d]),_0xe1d93e[_0xb7c67d]=[];}for(const _0x32ddb3 of _0xe1d93e)for(let _0x368d90=0x0;_0x368d90<_0x32ddb3['length'];_0x368d90++){const _0x5aeac3=_0x32ddb3[_0x368d90+0x1]||null;_0x32ddb3[_0x368d90]['next']!==_0x5aeac3&&(_0x32ddb3[_0x368d90]['next']=_0x5aeac3);}for(const _0x16aeef of _0xe1d93e)for(let _0x59d4f4=0x0;_0x59d4f4<_0x16aeef['length'];_0x59d4f4++){const _0x2675eb=_0x16aeef[_0x59d4f4-0x1]||null;_0x16aeef[_0x59d4f4]['previous']!==_0x2675eb&&(_0x16aeef[_0x59d4f4]['previous']=_0x2675eb);}function _0x555d47(_0x35e112,_0x3e4415){if(_0x35e112[0x0]['attributes']['groupId']!==_0x3e4415[0x0]['attributes']['groupId']&&_0x35e112[0x0]['author']!==_0x3e4415[0x0]['author'])return!0x1;if(!function(_0x33a64e,_0x1c3f20){if(!_0x33a64e['hasComments']&&!_0x1c3f20['hasComments'])return!0x0;if(_0x33a64e['hasComments']&&_0x1c3f20['hasComments'])return!0x1;if(_0x33a64e['hasComments']&&_0x1c3f20['createdAt']<_0x33a64e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c3f20['hasComments']&&_0x33a64e['createdAt']<_0x1c3f20['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x35e112[0x0],_0x3e4415[0x0]))return!0x1;const _0x26d751=xt(_0x35e112[0x0]['attributes'],'groupId'),_0x2eba4d=xt(_0x3e4415[0x0]['attributes'],'groupId');if(!_0x32835f(_0x26d751,_0x2eba4d))return!0x1;return!!_0x35e112['every'](_0xb8c34f=>_0x3e4415['some'](_0x188739=>_0xb8c34f['getFirstRange']()['isEqual'](_0x188739['getFirstRange']())))&&_0x3e4415['every'](_0x5b2fb1=>_0x35e112['some'](_0x20e7b1=>_0x5b2fb1['getFirstRange']()['isEqual'](_0x20e7b1['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3c0cab){const _0x12fbd0=Array['from'](_0x3c0cab),_0xcd43f9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5042c0=_0xcd43f9['filter'](_0x341341=>!_0x3c0cab['has'](_0x341341)),_0x3c55f4=new Map(_0x12fbd0['map'](_0x40c505=>[_0x40c505,this['_suggestionFactory']['getSuggestionCallback'](_0x40c505['type'],_0x40c505['subType'],'join')])),_0x3f682b=new Map(_0xcd43f9['map'](_0x4532d1=>[_0x4532d1,_0x4532d1['getRanges']()]));for(let _0x28f55b=0x0;_0x28f55b<_0x12fbd0['length'];_0x28f55b++){if(_0x2f5238(this,_0x12fbd0[_0x28f55b],_0x12fbd0,_0x28f55b+0x1))return!0x0;}for(let _0x3d441f=0x0;_0x3d441f<_0x12fbd0['length'];_0x3d441f++){if(_0x2f5238(this,_0x12fbd0[_0x3d441f],_0x5042c0,0x0))return!0x0;}return!0x1;function _0x2f5238(_0x22ff1e,_0xd02703,_0x35570e,_0x348e5e){for(let _0x454518=_0x348e5e;_0x454518<_0x35570e['length'];_0x454518++){const _0x54e6eb=_0x35570e[_0x454518];if(_0x54e6eb['type']!==_0xd02703['type']||_0x54e6eb['author']['id']!==_0xd02703['author']['id']||_0x54e6eb['subType']!==_0xd02703['subType'])continue;if(!qt(_0xd02703,_0x54e6eb))continue;if('attribute'==_0xd02703['type']&&_0xd02703['data']['oldValue']!=_0x54e6eb['data']['oldValue'])continue;if('attribute'==_0xd02703['type']&&_0x22ff1e['_isBlockAttribute'](_0xd02703['data']['key']))continue;if('formatBlock'==_0xd02703['type']){const _0x2fa377=_0x22ff1e['editor']['model'],_0x5a747c=_0xd02703['getContainedElement']();if(_0x5a747c&&(_0x2fa377['schema']['isObject'](_0x5a747c)||_0x2fa377['schema']['isLimit'](_0x5a747c)))continue;}const _0x2efad9=_0x3c55f4['get'](_0xd02703),_0x4677b9=_0x3f682b['get'](_0xd02703),_0x407a95=_0x3f682b['get'](_0x54e6eb),_0x222c5b=_0xd02703['commentThread']&&_0xd02703['commentThread']['length'],_0x534818=_0x54e6eb['commentThread']&&_0x54e6eb['commentThread']['length'];if(!_0x222c5b&&_0x2efad9(_0x407a95,_0x4677b9))return _0x22ff1e['_joinSuggestions'](_0x54e6eb,_0xd02703),_0x3f682b['delete'](_0xd02703),!0x0;if(!_0x534818&&_0x2efad9(_0x4677b9,_0x407a95))return _0x22ff1e['_joinSuggestions'](_0xd02703,_0x54e6eb),_0x3f682b['delete'](_0x54e6eb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x14a971,_0x3d0585){if(_0x14a971['isMultiRange']){for(const _0x1c651e of _0x3d0585['getRanges']())_0x14a971['addRange'](_0x1c651e);}else{const _0xf6da3a=_0x3d0585['getFirstRange']()['end'];this['_setSuggestionRange'](_0x14a971,this['_model']['createRange'](_0x14a971['getFirstRange']()['start'],_0xf6da3a));}_0x3d0585['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3be656,_0x27df38,_0x152bb1){const _0x13529f=_0x3be656['startsWith']('format')||_0x3be656['startsWith']('attribute')?'FORMATTING':_0x3be656['toUpperCase']();return o(this['editor']['locale'],_0x27df38+'_'+_0x13529f+'_SUGGESTION_ANNOUNCEMENT',_0x152bb1);}['_initAriaMarkerChangeAnnouncements'](){const _0x35525a=this['editor'];if(!_0x35525a['ui'])return;const {ariaLiveAnnouncer:_0x26ab6c}=_0x35525a['ui'];_0x1662e5(this['_model'],({left:_0x6b4506,entered:_0x1bd122})=>{for(const _0x8939c9 of _0x6b4506){const {group:_0x55b90f,type:_0x15971c}=this['_splitMarkerName'](_0x8939c9['name']);if('suggestion'===_0x55b90f){_0x26ab6c['announce'](this['_getMarkerAnnouncementText'](_0x15971c,'LEAVE'));break;}}for(const _0x3d4caa of _0x1bd122){const {group:_0x17a654,type:_0x513077}=this['_splitMarkerName'](_0x3d4caa['name']);if('suggestion'===_0x17a654){_0x26ab6c['announce'](this['_getMarkerAnnouncementText'](_0x513077,'ENTER',_0x3c4483(_0x41f235)));break;}}});}['_processAttributeChanges'](_0x2c987f){if(this['_recordAttributeSuggestions'])return!0x1;const _0xdcf54d=this['editor'],_0x213a40=_0xdcf54d['model']['document']['differ']['getChanges']();if(0x0==_0x213a40['length'])return!0x1;const _0x3fde62=[],_0x2507d4=_0x213a40['filter'](_0x3e84d4=>'attribute'==_0x3e84d4['type']),_0x2a3def=_0x213a40['filter'](_0x5725bd=>'insert'==_0x5725bd['type']&&'$text'!=_0x5725bd['name']),_0x265443=_0x213a40['filter'](_0x324bb9=>'remove'==_0x324bb9['type']&&'$text'!=_0x324bb9['name']);for(const _0x4fb201 of _0x2507d4)_0x3fde62['push']({'key':_0x4fb201['attributeKey'],'newValue':_0x4fb201['attributeNewValue'],'oldValue':_0x4fb201['attributeOldValue'],'range':Lt(_0x4fb201['range'],_0xdcf54d['model'])});for(const _0x23b51d of _0x2a3def){const _0x450910=_0x265443['find'](_0x187157=>_0x187157['position']['isEqual'](_0x23b51d['position']));_0x450910&&_0x3fde62['push']({'key':m,'newValue':_0x23b51d['name'],'oldValue':_0x450910['name'],'range':_0xdcf54d['model']['createRangeOn'](_0x23b51d['position']['nodeAfter'])});}return 0x0!=_0x3fde62['length']&&this['_reduceExistingSuggestions'](_0x2c987f,_0x3fde62);}['_processAttributeSuggestions'](_0x378969){let _0x1f5bc4=!0x1;const _0x1abea9=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x52ea1b=>_0x52ea1b['data']['newRange']&&_0x52ea1b['name']['startsWith']('suggestion:attribute:'));for(const _0x40a3cd of _0x1abea9){const {subType:_0x2da5bf,id:_0x424301}=this['_splitMarkerName'](_0x40a3cd['name']),_0x467715=_0x2da5bf['split']('|')[0x0];for(const _0x3fc435 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3fc435['id']!=_0x424301&&'attribute'==_0x3fc435['type']&&_0x3fc435['data']&&_0x3fc435['data']['key']==_0x467715&&_0x3fc435['getFirstRange']()['isIntersecting'](_0x40a3cd['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3fc435,_0x40a3cd['data']['newRange'],_0x378969),_0x1f5bc4=!0x0);}return _0x1f5bc4;}['_recordAttributeChanges'](_0x5508ac){this['_recordAttributeSuggestions']=!0x0,_0x5508ac();}['_isRegisteredAttribute'](_0x5c395a){const _0x6e087c=this['_isBlockAttribute'](_0x5c395a),_0x30d31e=this['_inlineAttributeKeys']['has'](_0x5c395a);return _0x6e087c||_0x30d31e;}['_reduceExistingSuggestions'](_0x40f3ad,_0x40829a){if(0x0==_0x40829a['length'])return!0x1;let _0xd7237d=!0x1;for(const _0x3d37f4 of _0x40829a){const _0x4d4392=this['_findSuggestions'](_0x3d37f4['range'],'attribute')['filter'](_0x391020=>!_0x391020['meta']['isNextTo'])['map'](_0x5f319a=>_0x5f319a['suggestion']),_0x2e4393=_0x4a7ccd({'newValue':_0x3d37f4['newValue']});_0x4d4392['filter'](_0x48cf9b=>{const [_0x34709d,_0x43e81a]=_0x48cf9b['subType']['split']('|');return _0x34709d==_0x3d37f4['key']&&_0x43e81a!=_0x2e4393;})['forEach'](_0x5c1df6=>{this['_reduceSuggestionAttributeRange'](_0x5c1df6,_0x3d37f4['range'],_0x40f3ad),_0xd7237d=!0x0;});}return _0xd7237d;}['_reduceSuggestionAttributeRange'](_0x3299e4,_0x404f68,_0x1e1339){const _0x535a08=_0x3299e4['getFirstRange']()['getDifference'](_0x404f68);0x0!==_0x535a08['length']?0x1!==_0x535a08['length']?this['_breakSuggestionMarker'](_0x3299e4,_0x404f68['start'],_0x404f68['end']):this['_setSuggestionRange'](_0x3299e4,_0x535a08[0x0]):_0x1e1339['removeMarker'](_0x3299e4['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x571e77){this['_editor']=_0x571e77,this['_model']=_0x571e77['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3a673a,_0x5ced50,_0x18c1bf,_0x2d2218,_0x3e94f7,_0x210cf5){return new u(this['_model'],{'type':_0x3a673a,'subType':_0x5ced50,'id':_0x18c1bf,'author':_0x2d2218,'creator':_0x2d2218,'attributes':_0x3e94f7,'onAttributesChange':_0x210cf5,'onAccept':(..._0xd9c850)=>this['getSuggestionCallback'](_0x3a673a,_0x5ced50,'accept')(..._0xd9c850),'onDiscard':(..._0x29518e)=>this['getSuggestionCallback'](_0x3a673a,_0x5ced50,'discard')(..._0x29518e)});}['registerCustomCallback'](_0x4b09f3,_0xe20386,_0x3f92dd,_0x2378d5){const _0x1ae04f=_0x4b09f3+':'+_0xe20386+':'+_0x3f92dd;this['_customCallbacks']['set'](_0x1ae04f,_0x2378d5);}['getSuggestionCallback'](_0x4d7042,_0x290602,_0x3bc724){const _0x452bfe=_0x4d7042+':'+_0x290602+':'+_0x3bc724;return this['_customCallbacks']['get'](_0x452bfe)||this['_defaultCallbacks']['get'](_0x4d7042+':'+_0x3bc724);}['_registerDefaultCallbacks'](){const _0x46a149=()=>!0x1,_0x2c3e8e=_0x5d9f5a=>{_0x5d9f5a['sort']((_0x2bb4ad,_0x320e64)=>_0x2bb4ad['start']['isBefore'](_0x320e64['start'])?0x1:-0x1),this['_model']['change'](_0x553e16=>{for(const _0x1e2a3c of _0x5d9f5a){let _0x20ec99;_0x20ec99=_0x1e2a3c['end']['isAtEnd']&&_0x1e2a3c['end']['parent']==_0x1e2a3c['start']['nodeAfter']?_0x553e16['createSelection'](_0x1e2a3c['start']['nodeAfter'],'on'):_0x553e16['createSelection'](_0x1e2a3c),this['_model']['deleteContent'](_0x20ec99,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x1c8a14=(_0x2f348f,_0x2dba72)=>{_0x2dba72&&this['_model']['change'](_0x5c148a=>{const {commandName:_0x2aa070,commandParams:_0x74160c=[]}=_0x2dba72,_0x5d4895=_0x2f348f['map'](_0x29bd07=>(Vt(_0x29bd07)&&(_0x29bd07=this['_model']['createRange'](_0x29bd07['end'])),_0x29bd07))['filter'](_0x107934=>'$graveyard'!==_0x107934['root']['rootName']);if(_0x5d4895['length']<0x1)return;const _0x503102=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x55a614=>_0x2dc34a['fromRange'](_0x55a614));_0x5c148a['setSelection'](_0x5d4895);for(const _0x2a970b of this['_editor']['commands']['commands']())_0x2a970b['refresh']();_0x74160c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2aa070,..._0x74160c);const _0x50f4b0=_0x503102['filter'](_0x391614=>'$graveyard'!=_0x391614['root']['rootName']);_0x50f4b0['length']>0x0&&_0x5c148a['setSelection'](_0x50f4b0);for(const _0x2b5ea5 of _0x503102)_0x2b5ea5['detach']();});},_0x62930e=(_0xc62959,_0x29c979)=>0x1==_0xc62959['length']&&0x1==_0x29c979['length']&&_0xc62959[0x0]['end']['isEqual'](_0x29c979[0x0]['start']),_0x242841=(_0x2dc32d,_0x5d8919,_0x2ac029,_0x940ac)=>Ht(_0x2dc32d,_0x5d8919,_0x2ac029,_0x940ac)?[_0x2dc32d,_0x5d8919]:Ht(_0x5d8919,_0x2dc32d,_0x940ac,_0x2ac029)?[_0x5d8919,_0x2dc32d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x46a149),this['_defaultCallbacks']['set']('insertion:discard',_0x2c3e8e),this['_defaultCallbacks']['set']('insertion:join',_0x62930e),this['_defaultCallbacks']['set']('insertion:chain',_0x242841),this['_defaultCallbacks']['set']('deletion:accept',_0x2c3e8e),this['_defaultCallbacks']['set']('deletion:discard',_0x46a149),this['_defaultCallbacks']['set']('deletion:join',_0x62930e),this['_defaultCallbacks']['set']('deletion:chain',_0x242841),this['_defaultCallbacks']['set']('formatInline:accept',_0x1c8a14),this['_defaultCallbacks']['set']('formatInline:discard',_0x46a149),this['_defaultCallbacks']['set']('formatInline:join',_0x62930e),this['_defaultCallbacks']['set']('formatInline:chain',_0x46a149),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1c8a14),this['_defaultCallbacks']['set']('formatBlock:discard',_0x46a149),this['_defaultCallbacks']['set']('formatBlock:join',_0x62930e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x46a149),this['_defaultCallbacks']['set']('attribute:accept',_0x46a149),this['_defaultCallbacks']['set']('attribute:discard',(_0x313ed4,_0x5d902f)=>{if(!_0x5d902f)return;const _0x2973e5=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x274b9c=>{if(_0x5d902f['key']==m)for(const _0x1e16c3 of _0x313ed4){const _0x2fb004=_0x1e16c3['start']['nodeAfter'],_0x559f4d=_0x5d902f['oldValue'];_0x274b9c['rename'](_0x2fb004,_0x559f4d);}else{if(_0x2973e5['_isBlockAttribute'](_0x5d902f['key'])){for(const _0x162654 of _0x313ed4)void 0x0!==_0x5d902f['oldValue']?_0x274b9c['setAttribute'](_0x5d902f['key'],_0x5d902f['oldValue'],_0x162654['start']['nodeAfter']):_0x274b9c['removeAttribute'](_0x5d902f['key'],_0x162654['start']['nodeAfter']);}else{for(const _0x2a5612 of _0x313ed4)_0x5d902f['oldValue']?_0x274b9c['setAttribute'](_0x5d902f['key'],_0x5d902f['oldValue'],_0x2a5612):_0x274b9c['removeAttribute'](_0x5d902f['key'],_0x2a5612);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x62930e);}}function Ut(_0xb66bee,_0x54a82d,_0x636fc8){for(const _0x3eb286 of _0x54a82d['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3eb286['root']==_0x3eb286)return!0x1;if(!_0x636fc8['containsItem'](_0x3eb286))return!0x1;if(_0xb66bee['isObject'](_0x3eb286)||_0xb66bee['isLimit'](_0x3eb286))return!0x0;}return!0x1;}function Vt(_0xafac12){return _0xafac12['end']['parent']==_0xafac12['start']['nodeAfter']&&_0xafac12['end']['isAtStart'];}function Pt(_0x172a07,_0x164bb7,_0x291056,_0x33ef1b){const _0x3f0411=_0x612842=>!_0x612842['item']['is']('$textProxy')&&!_0x33ef1b['isObject'](_0x612842['item']),_0x16deeb=_0x172a07['start']['getLastMatchingPosition'](_0x3f0411),_0x45f88f=_0x172a07['end']['getLastMatchingPosition'](_0x3f0411,{'direction':'backward'});return(!_0x172a07['start']['isEqual'](_0x16deeb)||!_0x172a07['end']['isEqual'](_0x45f88f))&&(_0x16deeb['isBefore'](_0x45f88f)?_0x291056['updateMarker'](_0x164bb7,{'range':_0x291056['createRange'](_0x16deeb,_0x45f88f)}):_0x291056['removeMarker'](_0x164bb7),!0x0);}function Gt(_0x96bb36){return _0x4a7ccd(_0x96bb36);}function Ft(_0x56f55e){const _0x3c881a=_0x56f55e['start']['nodeAfter'];return _0x3c881a&&_0x3c881a['is']('element');}function Lt(_0x2c7f7d,_0x42d660){return null==_0x2c7f7d['end']['nodeBefore']&&_0x2c7f7d['end']['parent']==_0x2c7f7d['start']['nodeAfter']?Jt(_0x2c7f7d['start']['nodeAfter'],_0x42d660):_0x2c7f7d;}function Jt(_0x3990e0,_0x2c04d6){const _0x40e546=_0x2c04d6['schema']['isObject'](_0x3990e0)||_0x2c04d6['schema']['isSelectable'](_0x3990e0);return _0x2c04d6['createRange'](_0x2c04d6['createPositionAt'](_0x3990e0,'before'),_0x40e546?_0x2c04d6['createPositionAfter'](_0x3990e0):_0x2c04d6['createPositionAt'](_0x3990e0,'end'));}function Ht(_0x3c9613,_0x38d6a3,_0x5c57ae,_0x3a0f7f){return!!qt(_0x3c9613,_0x38d6a3)&&_0x5c57ae['end']['isEqual'](_0x3a0f7f['start']);}function qt(_0x555527,_0x4af813){if(!_0x555527['_isDataLoaded']||!_0x4af813['_isDataLoaded'])return!0x1;const _0x845526=new Set(Object['keys'](_0x555527['attributes'])),_0x4961e1=new Set(Object['keys'](_0x4af813['attributes']));if(_0x845526['delete']('groupId'),_0x4961e1['delete']('groupId'),0x0==_0x845526['size']&&0x0==_0x4961e1['size'])return!0x0;if(_0x845526['size']!=_0x4961e1['size'])return!0x1;const _0x555b89={..._0x555527['attributes']},_0x395d89={..._0x4af813['attributes']};return delete _0x555b89['groupId'],delete _0x395d89['groupId'],JSON['stringify'](_0x555b89)==JSON['stringify'](_0x395d89);}function zt(_0xa621cf,_0x44cefa){const _0x39b757=Kt(_0xa621cf['attributes']),_0x9227d3=Kt(_0x44cefa);if(!_0xa621cf['_isDataLoaded'])return!0x1;for(const _0x461d31 of Object['keys'](_0x9227d3))if(!_0x32835f(_0x39b757[_0x461d31],_0x9227d3[_0x461d31]))return!0x1;return!0x0;}function Kt(_0xfcb3d3){const _0x5d9858=Object['assign']({},_0xfcb3d3);return delete _0x5d9858['skipNestingCheck'],delete _0x5d9858['tablePasteChainId'],_0x5d9858;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x422a62(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3e3362,_0x33d9a3,_0x47aa75,_0x762600){super(),this['model']=_0x33d9a3,this['view']=_0x47aa75,this['commentThreadController']=_0x762600,this['_editor']=_0x3e3362,this['_acceptCommand']=_0x3e3362['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3e3362['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x68a4b1,_0x20fc37)=>_0x68a4b1||_0x20fc37),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1bbbcd=>_0x1bbbcd&&this['_editor']['model']['canEditAt'](_0x33d9a3['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x220111=>_0x220111&&this['_editor']['model']['canEditAt'](_0x33d9a3['getRanges']())),this['_pendingAction']=null,_0x47aa75['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x47aa75,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x47aa75,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x47aa75,'change:isDirty',()=>{_0x47aa75['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 _0x2c0b31=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2c0b31);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x47bc63{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x22b03b,_0x3e75d6,_0x56702e,_0x5f04ab){super(_0x22b03b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x43fe12(_0x22b03b,o(_0x22b03b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3e75d6['authoredAt']),this['bind']('authoredAt')['to'](_0x3e75d6),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',_0x3e75d6,'authoredAt',this,'descriptionParts',(_0x23ea54,_0x381917,_0x15fcf1)=>{const _0x15cb78=_0x15fcf1['map'](_0x453a11=>ns(_0x453a11['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x23ea54-0x1,_0x3e75d6['author']['name'],_0x381917?_0x5f04ab['formatDateTime'](_0x381917):'',new DOMParser()['parseFromString'](_0x15cb78,'text/html')['body']['textContent']]);}),this['focusables']=new _0x523e68(),this['focusTracker']=new _0x492b38(),this['keystrokes']=new _0x200985(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5be530=>_0x5be530['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3e75d6,this['_localUser']=_0x56702e,this['_config']=_0x5f04ab,_0x5f04ab['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x170121(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x6a26c7}=this['_config'];this['commentsListView']=new _0x6a26c7(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',_0x147eae=>_0x147eae+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x361977,_0x28a40d)=>_0x361977||!!_0x28a40d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4e7f3d}=this['_config'],_0x6ca388=new _0x4e7f3d(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x639dd8=_0x6ca388['commentInputView'];return _0x6ca388['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x639dd8,'value',(_0x886880,_0x1aa24d,_0x2a81b3)=>!!_0x2a81b3||_0x886880&&!_0x1aa24d),_0x639dd8['on']('submit',(_0x1aa56a,_0x4adb95)=>{this['fire']('addComment',_0x4adb95),_0x639dd8['editor']['setData']('');}),_0x639dd8['on']('cancel',()=>this['focus']()),_0x639dd8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x6ca388;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x33fe44,_0x5028e1,_0xd0c62,_0x3177c6){super(_0x33fe44,_0x5028e1,_0xd0c62,_0x3177c6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2b08c2=>_0x2b08c2&&_0x2b08c2[0x0]?_0x2b08c2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4f1434,_0x1503bc)=>{let _0x26bb58='';for(const _0x3eb229 of _0x4f1434)_0x26bb58+='<p>'+ns(_0x3eb229['content'],_0x3eb229['color'])+'</p>';return _0x1503bc?_0x26bb58:ti(_0x26bb58,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3177c6['SuggestionView'](_0x33fe44,_0x5028e1,{'formatDateTime':_0x3177c6['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 _0x4356df=this['bindTemplate'],_0x349366=[this['suggestionView']];return this['commentsListView']&&_0x349366['push'](this['commentsListView']),this['commentThreadInputView']&&_0x349366['push'](this['commentThreadInputView']),_0x349366['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4356df['if']('isActive','ck-suggestion-wrapper--active'),_0x4356df['to']('type',_0x4ab3cc=>'ck-suggestion-'+_0x4ab3cc),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':_0x4356df['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x349366};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ue extends _0x47bc63{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x567da5,_0x3941c8,_0x5db0d8){super(_0x567da5),this['_model']=_0x3941c8,this['_config']=_0x5db0d8,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3941c8),this['acceptButton']=this['_createButton'](o(_0x567da5,'Accept\x20suggestion'),_0x2390ab['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x567da5,'Discard\x20suggestion'),_0x2390ab['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xa9ee04(_0x567da5,_0x3941c8['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x523e68([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x492b38(),this['keystrokes']=new _0x200985(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x251ce2=>_0x251ce2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4446de=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4446de['innerHTML']=this['description'],this['on']('change:description',(_0x1be5e6,_0xc1b0d9,_0x45f634)=>{_0x4446de['innerHTML']=_0x45f634;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5ed7d9=this['bindTemplate'],_0x3d588e=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x5ed7d9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5ed7d9['to']('authoredAt',_0x57c421=>this['_config']['formatDateTime'](_0x57c421))}]}]},{'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']&&_0x3d588e['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':_0x3d588e}]};}['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'](_0x8751e3,_0x2d00ba,_0x3057ea,_0x4a767e,_0x3bb03c){const _0x418fa7=new _0x2ab6a5(this['locale']);return _0x418fa7['set']({'label':_0x8751e3,'icon':_0x2d00ba,'tooltip':!0x0,'tooltipPosition':_0x3bb03c}),_0x418fa7['extendTemplate']({'attributes':{'class':_0x3057ea}}),_0x418fa7['on']('execute',()=>{this['fire'](_0x4a767e,this['_model']['id']);}),_0x418fa7;}['_setupKeyboardNavigation'](){const _0x73fbb2=this['element'];this['keystrokes']['listenTo'](_0x73fbb2);for(const _0x14d81a of this['focusables'])this['focusTracker']['add'](_0x14d81a['element']),this['keystrokes']['listenTo'](_0x14d81a['element']);this['keystrokes']['set']('enter',(_0xda735f,_0x16c921)=>{_0x73fbb2===_0xda735f['target']&&(this['focusCycler']['focusFirst'](),_0x16c921());}),this['keystrokes']['set']('esc',(_0x3156f6,_0x378118)=>{_0x73fbb2!==_0x3156f6['target']&&(this['focus'](),_0x378118());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x30a5e2{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x530fe2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x228133){super(_0x228133),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1886a1=this['editor']['config'];_0x1886a1['define']('trackChanges.SuggestionThreadView',de),_0x1886a1['define']('trackChanges.SuggestionView',ue),_0x1886a1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1886a1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x203d9b,_0x51b609){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2faa06,_0x4d6077]of this['_handleControllerBuffer']){const _0x477dd6=this['_suggestionToController']['has'](_0x2faa06);_0x477dd6||_0x4d6077?_0x477dd6&&_0x4d6077&&this['_destroyController'](_0x2faa06):this['_initializeController'](_0x2faa06);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x203d9b,_0x51b609);}['init'](){const _0x3c430b=this['editor'],_0xac183=_0x3c430b['plugins']['get']('TrackChangesEditing'),_0x2b8a91=_0x3c430b['plugins']['get']('Annotations'),_0x550950=_0x3c430b['plugins']['get']('EditorAnnotations'),_0x47dc77=_0x3c430b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x550950['addSourceCollector'](()=>{const _0x6ecbe2=[];for(const [_0x537737,_0x5532b5]of Array['from'](this['_suggestionToController'])){const _0xfe2546=_0x537737['getAllAdjacentSuggestions'](),_0x546f3f=[];for(const _0x124fb1 of _0xfe2546){if(!_0x124fb1['isInContent'])continue;if(_0x124fb1['isMultiRange']){_0x546f3f['push'](..._0x124fb1['getRanges']());continue;}const _0x5708fb=_0x124fb1['getFirstRange']();if(_0x546f3f['length']>0x0){const _0x260bbe=_0x546f3f[0x0]['getJoined'](_0x5708fb);if(_0x260bbe){_0x546f3f[0x0]=_0x260bbe;continue;}}_0x546f3f['push'](_0x5708fb);}_0x6ecbe2['push']([_0x5532b5['view'],_0x546f3f]);}return _0x6ecbe2;}),this['listenTo'](_0xac183,'suggestionLoaded',(_0x2c4748,_0x5e421)=>{this['listenTo'](_0x5e421,'change:previous',(_0x1cd7d0,_0x42ad44,_0x2cf5de,_0x43cdd8)=>{_0x5e421['isInContent']&&(null==_0x2cf5de?(this['_updateController'](_0x43cdd8['head']),this['_handleSuggestionControllerDelayed'](_0x5e421,!0x1)):(this['_updateController'](_0x2cf5de['head']),null==_0x43cdd8&&this['_handleSuggestionControllerDelayed'](_0x5e421,!0x0)));}),null!==_0x5e421['previous']?this['_updateController'](_0x5e421['head']):this['_handleSuggestionControllerDelayed'](_0x5e421,!0x1);}),this['listenTo'](_0xac183,'suggestionUnloaded',(_0x7286cc,_0x4cb12e,_0x39b247)=>{this['stopListening'](_0x4cb12e,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4cb12e),this['_suggestionToController']['has'](_0x4cb12e)&&this['_destroyController'](_0x4cb12e),_0x39b247&&this['_updateController'](_0x39b247['head']);}),this['listenTo'](_0xac183,'suggestionChanged',(_0x314b5c,_0xe0d4ea)=>{this['_updateController'](_0xe0d4ea);}),this['listenTo'](_0x2b8a91,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x47dc77,'addComment',(_0x810084,{threadId:_0x44b717,isFromAdapter:_0x1fc2af})=>{if(_0x1fc2af||!_0xac183['hasSuggestion'](_0x44b717))return;const _0x416338=_0xac183['getSuggestion'](_0x44b717);this['_suggestionToController']['get'](_0x416338)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1e028b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xc15a21;for(const _0x19dbb4 in _0x1e028b){const _0x363d7b=_0x19dbb4,_0x31631e=_0x1e028b[_0x363d7b];if('trackChangesLicenseKeyValid'==_0x31631e||'trackChangesLicenseKeyInvalid'==_0x31631e||'trackChangesLicenseKeyExpired'==_0x31631e||'trackChangesLicenseKeyDomainLimit'==_0x31631e||'trackChangesLicenseKeyNotAllowed'==_0x31631e||'trackChangesLicenseKeyEvaluationLimit'==_0x31631e||'trackChangesLicenseKeyTrialLimit'==_0x31631e||'trackChangesLicenseKeyDevelopmentLimit'==_0x31631e||'trackChangesLicenseKeyUsageLimit'==_0x31631e){delete _0x1e028b[_0x363d7b],_0xc15a21=_0x31631e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0xc15a21&&_0x1e028b['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0xc15a21&&_0x1e028b['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0xc15a21&&_0x1e028b['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0xc15a21&&_0x1e028b['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0xc15a21&&_0x1e028b['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0xc15a21&&_0x1e028b['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0xc15a21&&_0x1e028b['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0xc15a21&&_0x1e028b['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5d1c35=this['editor']['plugins']['get']('Annotations'),_0x5f044c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e734a=Array['from'](_0x5d1c35['activeAnnotations'],_0x24671c=>_0x24671c['innerView'])['filter'](_0xd63e24=>this['_viewToController']['has'](_0xd63e24)),_0x20cb94=[];for(const _0x1abf3f of _0x5e734a){const _0x1097ee=this['_viewToController']['get'](_0x1abf3f)['model']['getAllAdjacentSuggestions']();_0x20cb94['push'](..._0x1097ee['reduce']((_0x482f12,_0x3dfa51)=>[..._0x482f12,..._0x3dfa51['getMarkerNames']()],[]));}_0x5f044c['activeMarkers']=_0x20cb94;}['_addUIComponentsToFactory'](){const _0x4d8a25=this['editor'],_0x368f63=_0x4d8a25['locale'],_0x5b44c2=o(_0x368f63,'Track\x20changes'),_0x34bf87=new _0xc027f0([{'type':'switchbutton','model':new _0x2172d7({'withText':!0x0,'isToggleable':!0x0,'label':_0x5b44c2,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2172d7({'withText':!0x0,'label':o(_0x368f63,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2172d7({'withText':!0x0,'label':o(_0x368f63,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2172d7({'withText':!0x0,'label':o(_0x368f63,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2172d7({'withText':!0x0,'label':o(_0x368f63,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4ad325 of _0x34bf87)if(pe(_0x4ad325)){const _0x52b1b7=_0x4d8a25['commands']['get'](_0x4ad325['model']['commandName']);_0x4ad325['model']['bind']('isOn','isEnabled')['to'](_0x52b1b7,'value','isEnabled');}_0x4d8a25['ui']['componentFactory']['add']('trackChanges',_0x28e855=>this['_createToolbarButton'](_0x28e855,_0x34bf87,_0x5b44c2)),_0x4d8a25['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3a206b=>this['_createMenuBarMenu'](_0x3a206b,_0x34bf87,_0x5b44c2));}['_createToolbarButton'](_0x188d9c,_0x29cbd6,_0x2597b2){const _0x570066=_0x2bf6d9(_0x188d9c,_0x13cdbf),_0x584779=this['editor']['commands']['get']('trackChanges');_0x570066['buttonView']['set']({'tooltip':_0x2597b2,'label':_0x2597b2,'icon':Ce}),_0x570066['buttonView']['bind']('isOn')['to'](_0x584779,'value'),_0x570066['buttonView']['on']('execute',()=>{_0x584779['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x570066,_0x29cbd6,{'role':'menu'});const _0x2b7ccc=[];for(const _0x4dbf1b of _0x29cbd6)pe(_0x4dbf1b)&&_0x2b7ccc['push'](this['editor']['commands']['get'](_0x4dbf1b['model']['commandName']));const _0x21b95f=_0x570066['buttonView'];return _0x21b95f['actionView']['unbind']('isEnabled'),_0x21b95f['arrowView']['unbind']('isEnabled'),_0x21b95f['actionView']['bind']('isEnabled')['to'](_0x584779,'isEnabled'),_0x21b95f['arrowView']['bind']('isEnabled')['toMany'](_0x2b7ccc,'isEnabled',(..._0x50c253)=>_0x50c253['some'](_0x57342c=>_0x57342c)),_0x570066['on']('execute',_0x1474dd=>{this['editor']['execute'](_0x1474dd['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x570066;}['_createMenuBarMenu'](_0x3ae7a1,_0x5d6787,_0xda1586){const _0x4afdaa=new _0x3d5c50(_0x3ae7a1),_0x186b62=this['editor']['commands']['get']('trackChanges');_0x4afdaa['buttonView']['set']({'label':_0xda1586,'icon':Ce});const _0x3d3f6b=new _0x8b088b(_0x3ae7a1);for(const _0xdac75b of _0x5d6787){if('separator'==_0xdac75b['type']){_0x3d3f6b['items']['add'](new _0x1151e4(_0x3ae7a1));continue;}const _0x2a4bb1=new _0x1ef41f(_0x3ae7a1,_0x4afdaa),_0x1052bc=new _0x5c4eba(_0x3ae7a1),_0x475423=_0xdac75b['model'];_0x1052bc['bind'](...Object['keys'](_0x475423))['to'](_0x475423),_0x1052bc['delegate']('execute')['to'](_0x4afdaa),_0x1052bc['on']('execute',()=>{this['editor']['execute'](_0x475423['commandName']),this['editor']['editing']['view']['focus']();}),_0x2a4bb1['children']['add'](_0x1052bc),_0x3d3f6b['items']['add'](_0x2a4bb1);}return _0x4afdaa['bind']('isEnabled')['to'](_0x186b62,'isEnabled'),_0x4afdaa['panelView']['children']['add'](_0x3d3f6b),_0x4afdaa;}['_initializeController'](_0x59a3e3){const _0x29e314=this['editor'],_0x130b30=_0x29e314['config'],_0xf388f0=_0x29e314['plugins']['get']('Annotations'),_0x5bfca6=_0x29e314['plugins']['get']('CommentsRepository'),_0x9b5765=_0x29e314['plugins']['get']('EditorAnnotations'),_0x3ea58d=_0x29e314['plugins']['get'](_0x530fe2)['me'],_0x1774c0=_0x130b30['get']('trackChanges')['SuggestionThreadView'],_0x353c72=_0x130b30['get']('trackChanges')['SuggestionView'],{CommentsListView:_0xac8beb,CommentThreadInputView:_0x55a66a}=_0x29e314['plugins']['get']('CommentsUI');let _0x5dafee,_0xaa97c1,_0x17cf08;this['_annotationViews']['has'](_0x59a3e3['id'])?(_0xaa97c1=this['_annotationViews']['get'](_0x59a3e3['id']),_0x5dafee=_0xaa97c1['mainView']):(_0x5dafee=new _0x1774c0(_0x29e314['locale'],_0x59a3e3,_0x3ea58d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x130b30['get']('comments.editorConfig'),'licenseKey':_0x130b30['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x130b30['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x130b30['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x130b30['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x31fd95(_0x130b30['get']('locale')),'CommentView':_0x130b30['get']('comments')['CommentView'],'CommentsListView':_0xac8beb,'CommentThreadInputView':_0x55a66a,'SuggestionView':_0x353c72}),_0x5dafee['suggestionView']['acceptButton']['on']('execute',()=>{_0x29e314['editing']['view']['focus']();}),_0x5dafee['suggestionView']['discardButton']['on']('execute',()=>{_0x29e314['editing']['view']['focus']();}),_0xaa97c1=_0xf388f0['createAnnotationView'](this['editor']['locale'],_0x5dafee),_0xaa97c1['bind']('isDirty')['to'](_0x5dafee,'isDirty'),_0xaa97c1['bind']('length')['to'](_0x5dafee),_0xaa97c1['bind']('type')['to'](_0x5dafee,'type',_0x5108dd=>'suggestion-'+_0x5108dd),_0x5dafee['on']('escape',()=>{_0x17cf08['fire']('escape');}),this['_annotationViews']['set'](_0x59a3e3['id'],_0xaa97c1));const _0x2701e5=_0x5bfca6['createCommentThreadController'](_0x59a3e3['commentThread'],_0x5dafee),_0x2f810c=new ge(_0x29e314,_0x59a3e3,_0x5dafee,_0x2701e5),_0x1809d8=_0x59a3e3['getAllAdjacentSuggestions']()['filter'](_0x42c03f=>_0x42c03f['isInContent']);_0x5dafee['descriptionParts']=_0x29e314['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1809d8),this['_suggestionToController']['set'](_0x59a3e3,_0x2f810c),this['_viewToController']['set'](_0x5dafee,_0x2f810c),_0x17cf08=_0xf388f0['createAnnotation']({'view':_0xaa97c1,'target':()=>{const _0x31dc34=[],_0x50754e=_0x59a3e3['getAllAdjacentSuggestions']()['filter'](_0x2f61b2=>_0x2f61b2['isInContent']);for(const _0x57e64a of _0x50754e)_0x31dc34['push'](..._0x57e64a['getMarkers']());return _0x17b9f6(_0x29e314['editing'],_0x31dc34);},'type':()=>'suggestion-'+_0x2f810c['view']['type']}),_0x5bfca6['_bindAnnotationToEditors'](_0x5dafee,_0x17cf08),_0xf388f0['add'](_0x17cf08),_0x9b5765['registerAnnotation'](_0x17cf08);}['_destroyController'](_0x5869e5){const _0x3d0d18=this['editor']['plugins']['get']('CommentsRepository'),_0x18dfa8=this['editor']['plugins']['get']('Annotations'),_0xb949f0=this['_suggestionToController']['get'](_0x5869e5),_0x4f3bd7=_0xb949f0['view'],_0x30ed81=_0x18dfa8['getByInnerView'](_0x4f3bd7);_0x3d0d18['_unbindEditors'](_0x4f3bd7),_0x30ed81&&_0x18dfa8['remove'](_0x30ed81),this['_suggestionToController']['delete'](_0x5869e5),this['_viewToController']['delete'](_0x4f3bd7),_0xb949f0['destroy']();}['_updateController'](_0x207b9b){if(!_0x207b9b['isInContent']||!this['_suggestionToController']['has'](_0x207b9b))return;const _0x30745d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4171bd=this['_suggestionToController']['get'](_0x207b9b),_0x920882=_0x207b9b['getAllAdjacentSuggestions']();_0x4171bd['view']['descriptionParts']=_0x30745d['descriptionFactory']['getDescriptions'](_0x920882);}['destroy'](){for(const _0xa74a24 of this['_suggestionToController']['keys']())this['_destroyController'](_0xa74a24);for(const _0x5a02f9 of this['_annotationViews']['values']())_0x5a02f9['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x448b31){return'model'in _0x448b31;}class k extends _0x30a5e2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x144da5){this['editor']['plugins']['get'](p)['adapter']=_0x144da5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1dc839){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1dc839);}['getSuggestions']({skipNotAttached:_0x455f46=!0x1,toJSON:_0x13cb4a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x455f46,'toJSON':_0x13cb4a});}['getSuggestion'](_0x5cfebf){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5cfebf);}}const w=['Pagination'];class T extends _0x30a5e2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x315026=this['editor'];if(_0x315026['config']['define']('trackChangesData.editorCreator',_0x55c038=>{const _0x7e4d49=_0x315026['model']['document']['getRootNames']()['reduce']((_0x3790c8,_0x3cf30f)=>(_0x3790c8[_0x3cf30f]='',_0x3790c8),{});return _0x315026['constructor']['create'](_0x7e4d49,_0x55c038);}),'function'!=typeof _0x315026['config']['get']('trackChangesData')['editorCreator'])throw new _0x10bb73('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2b386c){return N(this['editor'],!0x0,_0x2b386c);}['getDataWithDiscardedSuggestions'](_0x277e58){return N(this['editor'],!0x1,_0x277e58);}}class D extends _0x30a5e2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4dbd82){function _0x4903f9(_0x2d649c){return _0x2d649c['map'](_0x1f2d82=>String['fromCharCode'](_0x1f2d82))['join']('');}super(_0x4dbd82),this['result']='end',_0x4dbd82[_0x4903f9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4903f9([0x76,0x69,0x65,0x77])][_0x4903f9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4903f9([0x61,0x75,0x74,0x6f]),_0x4dbd82[_0x4903f9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4903f9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4903f9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4903f9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4903f9([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x63f17e){return void 0x0!==_0x63f17e['getRootsAttributes'];}async function N(_0x396894,_0x35b8b5,_0x2c8f5c){const _0x51346c=_0x545072(_0x396894,w);_0x51346c['plugins']['push'](p,D),_0x51346c['rootsAttributes']=v(_0x396894)?_0x396894['getRootsAttributes']():void 0x0;const _0x4e668e=document['createDocumentFragment'](),_0x106522=_0x396894['config']['get']('trackChangesData')['editorCreator'],_0x1c5a33=await _0x106522(_0x51346c,()=>function(_0x9829db){const _0x1a3532=document['createElement']('div');return _0x9829db['appendChild'](_0x1a3532),_0x1a3532;}(_0x4e668e));!function(_0x26741c,_0x21da20){const _0x3490a3=_0x26741c['model']['document']['getRootNames']()['reduce']((_0x1c913e,_0x52d845)=>(_0x1c913e[_0x52d845]=_0x26741c['data']['get']({'rootName':_0x52d845}),_0x1c913e),{}),_0x3f37a9=_0x26741c['plugins']['get']('Users')['users']['map'](_0x48fcc5=>({'id':_0x48fcc5['id'],'name':_0x48fcc5['name']})),_0x547ac9=_0x26741c['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2e4aea=_0x26741c['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3cf6fe=_0x21da20['plugins']['get']('Users'),_0x5c201f=_0x21da20['plugins']['get']('TrackChangesEditing'),_0x5c736c=_0x21da20['plugins']['get']('CommentsRepository');for(const _0x44a8c9 of _0x5c736c['getCommentThreads']())_0x44a8c9['remove']();for(const _0x1eb433 of _0x3f37a9)_0x3cf6fe['getUser'](_0x1eb433['id'])||_0x3cf6fe['addUser'](_0x1eb433);_0x3cf6fe['me']||_0x3cf6fe['useAnonymousUser']();for(const _0x736da5 of _0x2e4aea)_0x5c736c['addCommentThread'](_0x736da5);for(const _0x319af0 of _0x547ac9)_0x5c201f['addSuggestionData'](_0x319af0);_0x21da20['data']['set'](_0x3490a3);}(_0x396894,_0x1c5a33),_0x1c5a33['execute'](_0x35b8b5?'acceptAllSuggestions':'discardAllSuggestions');const _0x53e2e7=v(_0x1c5a33)?_0x1c5a33['getFullData'](_0x2c8f5c):_0x1c5a33['data']['get'](_0x2c8f5c);return await _0x1c5a33['destroy'](),_0x53e2e7;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as Qt,Plugin as _0x1f739f,PendingActions as _0xb2980b,icons as _0xd426bb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x243768,ObservableMixin as _0x29f64b,uid as _0x46f059,insertToPriorityArray as _0x87288b,priorities as _0x16c4bf,logWarning as _0x561160,getEnvKeystrokeText as _0x21e46d,FocusTracker as _0x133ea1,KeystrokeHandler as _0x823bdb,Collection as _0x5b8f52}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x56821b,View as _0x2cb6df,ViewCollection as _0x449b37,FocusCycler as ts,ViewModel as _0x3948a5,createDropdown as _0xc304a4,SplitButtonView as _0x1b5c51,addListToDropdown as te,MenuBarMenuView as _0x598971,MenuBarMenuListView as _0x42d103,ListSeparatorView as _0x499831,MenuBarMenuListItemView as _0x3abd64,MenuBarMenuListItemButtonView as _0x3bdccb}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3dcaf7,hashObject as _0x546877,surroundingMarkersDetector as _0x1b81b3,FOCUS_ANNOTATION_KEYSTROKE as _0x2645ad,AriaDescriptionView as _0x354581,setupThreadKeyboardNavigation as _0x7aee60,trimHtml as ti,UserView as _0x1e2953,LateFocusButtonView as _0x4bf5b0,getDateTimeFormatter as _0x4e831d,getAllMarkersDomElementsSorted as _0x3c74c6,sanitizeEditorConfig as _0x3f089f}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x322f1d,LiveRange as _0x1c86da,LivePosition as _0x486d4b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x585a32,toWidget as _0x2411ad}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x29a02a,set as _0x32359c,isEqual as _0x2e7dfd,unset as _0x4cdd25,omit as xt}from'lodash-es';import{Delete as _0x24be65,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x35b6d3,ShiftEnter as _0x31c13c}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x4bbef3,_0x4f6fe5){super(_0x4bbef3),this['_enabledCommands']=_0x4f6fe5,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 _0x4a604a of this['editor']['commands']['commands']())_0x4a604a['affectsData']&&!this['_enabledCommands']['has'](_0x4a604a)&&_0x4a604a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x6b6c60 of this['editor']['commands']['commands']())_0x6b6c60['affectsData']&&!this['_enabledCommands']['has'](_0x6b6c60)&&_0x6b6c60['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x48f3b1,_0x7cdf61){super(_0x48f3b1),this['_suggestions']=_0x7cdf61,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x64f7c0){const _0x5251bc=this['_suggestions']['get'](_0x64f7c0);if(!_0x5251bc)throw new _0x243768('track-changes-accept-suggestion-not-found',this);const _0x2ece3b=_0x5251bc['getRanges']();this['editor']['model']['canEditAt'](_0x2ece3b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5251bc);}}class R extends Qt{['_suggestions'];constructor(_0x440e96,_0x10d0e4){super(_0x440e96),this['_suggestions']=_0x10d0e4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x113d24){const _0x50430a=this['_suggestions']['get'](_0x113d24);if(!_0x50430a)throw new _0x243768('track-changes-discard-suggestion-not-found',this);const _0x940397=_0x50430a['getRanges']();this['editor']['model']['canEditAt'](_0x940397)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x50430a);}}function ns(_0x2bc010,_0x16124c){let _0x5b2233='';return _0x5b2233+=_0x2bc010['split']('*')['map']((_0x5b0eaf,_0x16562e)=>_0x16562e%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x5b0eaf)+'</span>':nn(_0x5b0eaf))['join'](''),_0x16124c&&(_0x5b2233+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x16124c['value']+'\x22\x20title=\x22'+_0x16124c['title']+'\x22></span>'),_0x5b2233;}function nn(_0x197b0e){const _0x46f6ab=document['createElement']('span');return _0x46f6ab['innerText']=_0x197b0e,_0x46f6ab['innerHTML'];}function Wt(_0x19b2b0){return _0x19b2b0['sort']((_0x5e6578,_0x193c82)=>'deletion'==_0x5e6578['type']&&'deletion'!=_0x193c82['type']?-0x1:'deletion'!=_0x5e6578['type']&&'deletion'==_0x193c82['type']?0x1:0x0);}function to(_0x1ed8d7,_0xa8d5e9){let _0x2b4bf8,_0x586799=0x0;const _0x3d2ba1=[],_0x5d0fdc=_0xa8d5e9['schema'];for(;_0x586799<_0x1ed8d7['length'];){const _0x5ce4dc=_0x1ed8d7[_0x586799],_0x4d2e86=_0x1ed8d7[_0x586799+0x1];_0x2b4bf8||(_0x2b4bf8=_0xa8d5e9['createPositionBefore'](_0x5ce4dc)),on(_0xa8d5e9,_0x5ce4dc,_0x4d2e86)||(_0x3d2ba1['push'](_0xa8d5e9['createRange'](_0x2b4bf8,_0x5d0fdc['isObject'](_0x5ce4dc)?_0xa8d5e9['createPositionAfter'](_0x5ce4dc):_0xa8d5e9['createPositionAt'](_0x5ce4dc,'end'))),_0x2b4bf8=null),_0x586799++;}return _0x3d2ba1;}function on(_0x1a087a,_0x21b923,_0xbb60){if(!_0xbb60)return!0x1;const _0x1c1477=_0x1a087a['createPositionAfter'](_0x21b923),_0x262255=_0x1a087a['createPositionBefore'](_0xbb60);return _0x1c1477['isTouching'](_0x262255);}function Xt(_0x37a56b,_0x383429,_0x3baf04){for(;_0x3baf04['length'];){const _0x3f3b48=_0x3baf04['splice'](0x0,0x64);_0x37a56b['change'](()=>{for(const _0x316982 of _0x3f3b48)_0x316982['isInContent']&&_0x383429['execute'](_0x316982['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x4e0d43,_0x2d6f1c,_0x279b04){super(_0x4e0d43),this['_command']=_0x2d6f1c,this['_suggestions']=_0x279b04,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x478b54=Array['from'](this['_suggestions']['values']())['some'](_0x381510=>_0x381510['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x478b54;}['execute'](){const _0x21d149=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x1c5b58 of _0x21d149){const _0x31625e=_0x1c5b58['getRanges']();if(!this['editor']['model']['canEditAt'](_0x31625e))return;}Xt(this['editor']['model'],this['_command'],_0x21d149);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xeee1c0,_0x4957e3,_0x569d56){super(_0xeee1c0),this['_command']=_0x4957e3,this['_suggestions']=_0x569d56,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x51edfa=this['editor']['model']['document']['selection'],_0x27b267=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x506c10,_0x4c5a01){const _0x279075=Array['from'](_0x506c10['getRanges']()),_0x29d584=new Set();for(const _0x2ac48d of _0x4c5a01)if(_0x2ac48d['isInContent']){for(const _0x4711cf of _0x279075)for(const _0x4cc557 of _0x2ac48d['getRanges']())(_0x4711cf['isIntersecting'](_0x4cc557)||_0x506c10['isCollapsed']&&!_0x2ac48d['isMultiRange']&&_0x2ac48d['next']&&_0x4cc557['end']['isTouching'](_0x4711cf['start']))&&_0x29d584['add'](_0x2ac48d);}return _0x29d584;}(_0x51edfa,_0x27b267),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x26c13d=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x3b25e6 of _0x26c13d){const _0x4fcac1=_0x3b25e6['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4fcac1))return;}Xt(this['editor']['model'],this['_command'],_0x26c13d);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x29f64b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3577e3,_0x218f6d){super(),this['id']=_0x218f6d['id'],this['type']=_0x218f6d['type'],this['subType']=_0x218f6d['subType']||null,this['author']=_0x218f6d['author'],this['creator']=_0x218f6d['creator']||_0x218f6d['author'],this['isExternal']=Boolean(_0x218f6d['attributes']&&_0x218f6d['attributes']['@external']),this['data']=null,this['_model']=_0x3577e3,this['_onAccept']=_0x218f6d['onAccept'],this['_onDiscard']=_0x218f6d['onDiscard'],this['_onAttributesChange']=_0x218f6d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x218f6d['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 _0x3f5d9e=this;for(;_0x3f5d9e['previous'];)_0x3f5d9e=_0x3f5d9e['previous'];return _0x3f5d9e;}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'](_0x2e9d7c){this['_markerNames']['add'](_0x2e9d7c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3b85a8=>this['_model']['markers']['get'](_0x3b85a8))['filter'](_0xd0742e=>_0xd0742e);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x577e94=>{for(const _0x4bb149 of this['getMarkers']())_0x577e94['removeMarker'](_0x4bb149);}),this['_markerNames']['clear']();}['removeMarker'](_0x11972d){this['_model']['change'](_0x26d96a=>{_0x26d96a['removeMarker'](_0x11972d);}),this['_markerNames']['delete'](_0x11972d);}['addRange'](_0x5220f4){const _0x5b34d6='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5b34d6),this['_model']['change'](_0x3838cc=>{_0x3838cc['addMarker'](_0x5b34d6,{'range':_0x5220f4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x17b20d){for(const _0x17ee46 of this['getRanges']())if(_0x17ee46['isIntersecting'](_0x17b20d))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x11a421=>_0x11a421['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x42184c,_0x21e0af)=>[..._0x42184c,..._0x21e0af['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5eef4b=this['getRanges']();if(0x1!=_0x5eef4b['length'])return null;const _0x3db75e=_0x5eef4b[0x0],_0x299365=_0x3db75e['start']['nodeAfter'],_0x20ee7b=_0x3db75e['end']['nodeBefore'];return _0x299365 instanceof _0x322f1d?_0x299365!=_0x20ee7b?null:_0x299365: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 _0x339027=[];let _0x3d5abb=this['head'];for(;_0x3d5abb;)_0x339027['push'](_0x3d5abb),_0x3d5abb=_0x3d5abb['next'];return _0x339027;}['setAttribute'](_0x3e61c9,_0x44ff2b){const _0x17d207=_0x29a02a(this['attributes']);_0x32359c(_0x17d207,_0x3e61c9,_0x44ff2b),_0x2e7dfd(_0x17d207,this['attributes'])||(this['attributes']=_0x17d207,this['_onAttributesChange'](_0x17d207));}['removeAttribute'](_0x2ef41e){const _0x3326e8=_0x29a02a(this['attributes']);_0x4cdd25(_0x3326e8,_0x2ef41e),_0x2e7dfd(_0x3326e8,this['attributes'])||(this['attributes']=_0x3326e8,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 _0x46f059()['substr'](0x1,0x5);}}function o(_0x16ee2a,_0x199a52,_0x22435d){const _0x570fb3=_0x16ee2a['t'],t=_0x16ee2a['t'];switch(_0x199a52){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x22435d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x22435d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x22435d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x22435d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x22435d);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',_0x22435d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x22435d);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x22435d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x22435d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x22435d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x22435d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x22435d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x22435d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x22435d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x22435d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x22435d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x22435d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x22435d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x22435d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x22435d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x22435d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x22435d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x22435d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x22435d);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'},_0x22435d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x22435d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x22435d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x22435d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x22435d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x22435d);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'},_0x22435d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x22435d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x22435d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x22435d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x22435d);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'},_0x22435d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x22435d);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'},_0x22435d);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'},_0x22435d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x22435d);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'},_0x22435d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x22435d);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'},_0x22435d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x22435d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x22435d);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'},_0x22435d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x22435d);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 _0x570fb3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x22435d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x570fb3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x22435d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x22435d);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'},_0x22435d);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'},_0x22435d);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'},_0x22435d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x199a52;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2a12c5,_0x2c7bf3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2a12c5,this['_locale']=_0x2c7bf3;}['getDescriptions'](_0x3adfde){const _0x3b9392=[],_0x506688=new Set(),_0x5e8343=new Set();for(let _0x3f7e09=0x0;_0x3f7e09<_0x3adfde['length'];_0x3f7e09++){const _0x67a42b=_0x3adfde[_0x3f7e09];if(!_0x67a42b['isInContent'])continue;const _0x28bc48=this['_handleCustomCallbackDescription'](_0x67a42b);if(_0x28bc48){if(null!=_0x67a42b['subType']){if(_0x506688['has'](_0x67a42b['subType']))continue;_0x506688['add'](_0x67a42b['subType']);}_0x3b9392['push'](_0x28bc48);}else{if('attribute'!=_0x67a42b['type'])'insertion'!=_0x67a42b['type']&&'deletion'!=_0x67a42b['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3b9392,_0x67a42b,_0x3adfde[_0x3f7e09+0x1]);else{const _0x56d11a=_0x67a42b['data']['key'];if(_0x5e8343['has'](_0x56d11a))continue;_0x5e8343['add'](_0x67a42b['data']['key']),_0x56d11a==m?this['_handleRenameSuggestionDescription'](_0x3b9392,_0x67a42b):this['_handleAttributeSuggestionDescription'](_0x3b9392,_0x67a42b);}}}return this['_resolveDescriptionItems'](_0x3b9392);}['registerDescriptionCallback'](_0x4d5bce){this['_customCallbacks']['push'](_0x4d5bce);}['registerElementLabel'](_0x470dd1,_0x3f7db9,_0x41317c=_0x16c4bf['normal']){'function'==typeof _0x470dd1?_0x87288b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x470dd1,'label':_0x3f7db9,'priority':_0x41317c}):this['_itemLabels']['set'](_0x470dd1,_0x3f7db9);}['registerAttributeLabel'](_0x218d45,_0x2396dd){this['_attributeLabels']['set'](_0x218d45,_0x2396dd);}['getItemLabel'](_0x2bf1d9,_0x5f4f57=0x1){let _0x36d57a;for(const _0x59a659 of this['_itemLabelsCallbacks'])if(_0x59a659['matchingCallback'](_0x2bf1d9)){_0x36d57a=_0x59a659['label'];break;}return _0x36d57a||(_0x36d57a=this['_itemLabels']['get'](_0x2bf1d9['name'])),_0x36d57a?_0x36d57a(_0x5f4f57):0x1!==_0x5f4f57?_0x5f4f57+'\x20'+_0x2bf1d9['name']+'s':''+_0x2bf1d9['name'];}['_addDescriptionItems'](_0x5200f9,_0xccaf37){const _0x3173a9=_0xccaf37['getFirstRange']()['getWalker'](),_0x7b3adb='insertion'==_0xccaf37['type']?'add':'remove';for(const _0x463f2f of _0x3173a9){const _0x22fcf8=_0x463f2f['item'],_0x10371b=_0x5200f9[_0x5200f9['length']-0x1];if(_0x22fcf8['is']('$textProxy'))_0x10371b&&_0x10371b['type']['indexOf']('Container')>-0x1&&_0x5200f9['pop'](),_0x10371b&&'text'==_0x10371b['type']?_0x10371b[_0x7b3adb]+=_0x22fcf8['data']:_0x5200f9['push']({'type':'text','add':'add'==_0x7b3adb?_0x22fcf8['data']:'','remove':'remove'==_0x7b3adb?_0x22fcf8['data']:''});else{if(this['_schema']['isObject'](_0x22fcf8)){const _0x21a90b=_0x22fcf8;if(_0x10371b&&_0x10371b['type']['indexOf']('Container')>-0x1&&_0x5200f9['pop'](),'elementEnd'==_0x463f2f['type'])continue;_0x10371b&&_0x10371b['type']==_0x7b3adb+'Object'&&_0x10371b['element']['name']==_0x21a90b['name']?_0x10371b['quantity']++:_0x5200f9['push']({'type':_0x7b3adb+'Object','element':_0x21a90b,'quantity':0x1}),_0x3173a9['skip'](_0x2467b9=>!('elementEnd'==_0x2467b9['type']&&_0x2467b9['item']==_0x22fcf8));}else{if(this['_schema']['checkChild'](_0x22fcf8,'$text')||_0x22fcf8['is']('element','softBreak')){const _0x367344=_0x22fcf8;if('add'==_0x7b3adb&&'elementStart'==_0x463f2f['type']||'remove'==_0x7b3adb&&'elementEnd'==_0x463f2f['type'])continue;if(_0x10371b&&-0x1==_0x10371b['type']['indexOf']('Container')){'text'==_0x10371b['type']&&(_0x10371b[_0x7b3adb]+='\x0a');continue;}let _0x541dc2;if(_0x541dc2='add'==_0x7b3adb?_0x367344['nextSibling']&&!this['_schema']['isObject'](_0x367344['nextSibling'])?_0x367344['nextSibling']:null:_0x367344['previousSibling']&&!this['_schema']['isObject'](_0x367344['previousSibling'])?_0x367344['previousSibling']:null,_0x367344['isEmpty']||_0x541dc2&&_0x541dc2['isEmpty']){const _0x36d7c0=_0x541dc2&&_0x541dc2['isEmpty']?_0x541dc2:_0x367344;_0x10371b&&_0x10371b['type']==_0x7b3adb+'EmptyContainer'&&_0x10371b['element']['name']==_0x36d7c0['name']?_0x10371b['quantity']++:_0x5200f9['push']({'type':_0x7b3adb+'EmptyContainer','element':_0x36d7c0,'quantity':0x1});}else _0x5200f9['push']({'type':_0x7b3adb+'Container','element':_0x367344});}}}}}['_resolveDescriptionItems'](_0x3e8d50){const _0x1c2281=this['_locale'],_0x5990e6=[],_0x3e28d5=[],_0x50e79b=[];for(const _0x61053a of _0x3e8d50)switch(_0x61053a['type']){case'text':if(_0x61053a['add']=_0x61053a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x61053a['remove']=_0x61053a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x61053a['add']&&''!=_0x61053a['remove']){_0x5990e6['push']({'type':'replace','content':o(_0x1c2281,'REPLACE_TEXT',['\x22'+_0x61053a['remove']+'\x22','\x22'+_0x61053a['add']+'\x22'])});continue;}if(null!=_0x61053a['add']['match'](/^ +$/)){_0x5990e6['push']({'type':'insertion','content':o(_0x1c2281,'*Insert:*\x20%0',o(_0x1c2281,'ELEMENT_SPACE',_0x61053a['add']['length']))});continue;}if(null!=_0x61053a['remove']['match'](/^ +$/)){_0x5990e6['push']({'type':'deletion','content':o(_0x1c2281,'*Remove:*\x20%0',o(_0x1c2281,'ELEMENT_SPACE',_0x61053a['remove']['length']))});continue;}if(''!=_0x61053a['add']){_0x5990e6['push']({'type':'insertion','content':o(_0x1c2281,'*Insert:*\x20%0','\x22'+_0x61053a['add']+'\x22')});continue;}_0x5990e6['push']({'type':'deletion','content':o(_0x1c2281,'*Remove:*\x20%0','\x22'+_0x61053a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5990e6['push']({'type':'insertion','content':o(_0x1c2281,'*Insert:*\x20%0',this['getItemLabel'](_0x61053a['element'],_0x61053a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5990e6['push']({'type':'deletion','content':o(_0x1c2281,'*Remove:*\x20%0',this['getItemLabel'](_0x61053a['element'],_0x61053a['quantity']))});continue;case'addContainer':_0x5990e6['push']({'type':'insertion','content':o(_0x1c2281,'*Split:*\x20%0',this['getItemLabel'](_0x61053a['element'],_0x61053a['quantity']))});continue;case'removeContainer':_0x5990e6['push']({'type':'deletion','content':o(_0x1c2281,'*Merge:*\x20%0',this['getItemLabel'](_0x61053a['element'],_0x61053a['quantity']))});continue;case'addFormat':_0x3e28d5['push'](_0x61053a['key']);continue;case'removeFormat':_0x50e79b['push'](_0x61053a['key']);continue;default:_0x5990e6['push'](_0x61053a);}if(_0x3e28d5['length']){const _0x281531=_0x3e28d5['map'](_0x38b8b7=>this['_attributeLabels']['has'](_0x38b8b7)?this['_attributeLabels']['get'](_0x38b8b7):_0x38b8b7)['join'](',\x20');_0x5990e6['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x281531)});}if(_0x50e79b['length']){const _0xa5ff58=_0x50e79b['map'](_0x4d9dd1=>this['_attributeLabels']['has'](_0x4d9dd1)?this['_attributeLabels']['get'](_0x4d9dd1):_0x4d9dd1)['join'](',\x20');_0x5990e6['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xa5ff58)});}return _0x5990e6;}['_handleCustomCallbackDescription'](_0x45f7ee){for(const _0x291962 of this['_customCallbacks']){const _0x1e0992=_0x291962(_0x45f7ee);if(_0x1e0992&&'type'in _0x1e0992)return _0x1e0992;}}['_handleAttributeSuggestionDescription'](_0x358c58,_0x39a513){const _0x2767c1=_0x39a513['data'],_0x44eeb6=void 0x0===_0x2767c1['newValue']?'removeFormat':'addFormat';_0x358c58['push']({'type':_0x44eeb6,'key':_0x2767c1['key']});}['_handleRenameSuggestionDescription'](_0x2506dc,_0x24dec7){_0x2506dc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x24dec7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4d4123,_0x1f11ab,_0x2d847d){if(this['_addDescriptionItems'](_0x4d4123,_0x1f11ab),_0x2d847d&&_0x2d847d['getFirstRange']()&&!_0x1f11ab['getFirstRange']()['end']['isEqual'](_0x2d847d['getFirstRange']()['start'])){const _0x69c595=_0x4d4123[_0x4d4123['length']-0x1],_0x42c243='insertion'==_0x1f11ab['type']?'add':'remove';_0x69c595&&'text'==_0x69c595['type']&&(_0x69c595[_0x42c243]+='\x0a');}}}class U extends _0x1f739f{['afterInit'](){const _0x1aaddb=this['editor'],_0x27fc98=_0x1aaddb['plugins']['get']('TrackChangesEditing');_0x1aaddb['commands']['get']('showAIAssistant')&&_0x27fc98['enableCommand']('showAIAssistant');}}class V extends _0x1f739f{['afterInit'](){const _0x16f449=this['editor'],_0x47274e=_0x16f449['locale'];if(!_0x16f449['plugins']['has']('AlignmentEditing'))return;const _0x198400=_0x16f449['plugins']['get']('TrackChangesEditing');_0x198400['enableDefaultAttributesIntegration']('alignment'),_0x198400['registerBlockAttribute']('alignment'),_0x198400['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x47274e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36cc77=this['editor'],_0x1c56fd=_0x36cc77['locale'];_0x36cc77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24a356=>{if('formatBlock'!=_0x24a356['type'])return;const {data:_0x40b3a7}=_0x24a356;if(_0x40b3a7&&'alignment'==_0x40b3a7['commandName']){const _0x3193ed=_0x40b3a7['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1c56fd,'*Format:*\x20%0',function(_0x29571f){switch(_0x29571f){case'left':return o(_0x1c56fd,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1c56fd,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1c56fd,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1c56fd,'FORMAT_JUSTIFY_TEXT');}}(_0x3193ed))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1f739f{['afterInit'](){const _0x4cf03a=this['editor'],_0x35039f=_0x4cf03a['plugins']['get']('TrackChangesEditing'),_0x38ef98=_0x4cf03a['locale'];for(const _0x181cb6 of Zt){if(!_0x4cf03a['plugins']['has'](_0x181cb6))continue;const _0x2e94ae=_0x181cb6['slice'](0x0,-0x7)['toLowerCase'](),_0x46dc2f='FORMAT_'+_0x2e94ae['toUpperCase']();_0x35039f['enableDefaultAttributesIntegration'](_0x2e94ae),_0x35039f['registerInlineAttribute'](_0x2e94ae),_0x35039f['descriptionFactory']['registerAttributeLabel'](_0x2e94ae,o(_0x38ef98,_0x46dc2f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1354ea=this['editor'],_0x2a3bc5=_0x1354ea['locale'],_0x2f878c=_0x1354ea['plugins']['get']('TrackChangesEditing');function _0x49da60(_0x1a6e50,_0x43eadd){_0x2f878c['descriptionFactory']['registerDescriptionCallback'](_0x42a804=>{if('formatInline'!=_0x42a804['type'])return;const {data:_0x5639f1}=_0x42a804;return _0x5639f1&&_0x5639f1['commandName']===_0x1a6e50?_0x5639f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a3bc5,'*Format:*\x20%0',_0x43eadd)}:{'type':'format','content':o(_0x2a3bc5,'*Remove\x20format:*\x20%0',_0x43eadd)}:void 0x0;});}_0x49da60('bold',o(_0x2a3bc5,'FORMAT_BOLD')),_0x49da60('italic',o(_0x2a3bc5,'FORMAT_ITALIC')),_0x49da60('underline',o(_0x2a3bc5,'FORMAT_UNDERLINE')),_0x49da60('code',o(_0x2a3bc5,'FORMAT_CODE')),_0x49da60('strikethrough',o(_0x2a3bc5,'FORMAT_STRIKETHROUGH')),_0x49da60('subscript',o(_0x2a3bc5,'FORMAT_SUBSCRIPT')),_0x49da60('superscript',o(_0x2a3bc5,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1f739f{['afterInit'](){const _0x300531=this['editor'],_0x3636bd=_0x300531['locale'];if(!_0x300531['plugins']['has']('BlockQuoteEditing'))return;const _0x16da91=_0x300531['plugins']['get']('TrackChangesEditing'),_0x190753=this['editor']['commands']['get']('blockQuote');_0x16da91['enableCommand']('blockQuote',(_0x302b2d,_0x11778d={})=>{const _0x48ab12=this['editor']['model']['document']['selection'],_0x27426b=_0x11778d&&void 0x0!==_0x11778d['forceValue']?_0x11778d['forceValue']:!_0x190753['value'];let _0x53bc4a=[];if(_0x27426b){const _0x2cd330=Array['from'](_0x48ab12['getSelectedBlocks']())['filter'](_0x266fa0=>oo(_0x266fa0)||function(_0x1c9dd9,_0x4d3506){const _0x91f2ec=_0x4d3506['checkChild'](_0x1c9dd9['parent'],'blockQuote'),_0x45a7f2=_0x4d3506['checkChild'](['$root','blockQuote'],_0x1c9dd9);return _0x91f2ec&&_0x45a7f2;}(_0x266fa0,this['editor']['model']['schema']));_0x53bc4a=to(_0x2cd330,_0x300531['model']);}else{const _0x3a0b52=Array['from'](_0x48ab12['getSelectedBlocks']())['filter'](_0x560366=>oo(_0x560366));_0x53bc4a=to(_0x3a0b52,_0x300531['model']);}_0x300531['model']['change'](()=>{for(const _0xebd489 of _0x53bc4a)_0x16da91['markBlockFormat'](_0xebd489,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x27426b}]});});}),_0x16da91['descriptionFactory']['registerDescriptionCallback'](_0x2f5dfe=>{const {data:_0x382fcd}=_0x2f5dfe;if(_0x382fcd&&'blockQuote'==_0x382fcd['commandName']){const _0x92d5d0=o(_0x3636bd,'ELEMENT_BLOCK_QUOTE');return _0x382fcd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3636bd,'*Set\x20format:*\x20%0',_0x92d5d0)}:{'type':'format','content':o(_0x3636bd,'*Remove\x20format:*\x20%0',_0x92d5d0)};}});}}function oo(_0x48b8be){return'blockQuote'==_0x48b8be['parent']['name'];}class L extends _0x1f739f{['afterInit'](){const _0x464553=this['editor'],_0x4f8d31=_0x464553['locale'],_0x5f3426=_0x464553['plugins']['get']('TrackChangesEditing');_0x464553['plugins']['has']('BookmarkEditing')&&(_0x5f3426['enableCommand']('insertBookmark'),_0x5f3426['enableDefaultAttributesIntegration']('updateBookmark'),_0x5f3426['registerBlockAttribute']('bookmarkId'),_0x5f3426['descriptionFactory']['registerDescriptionCallback'](_0xb4fdba=>{if('insertion'!=_0xb4fdba['type']&&'deletion'!=_0xb4fdba['type']&&'attribute'!=_0xb4fdba['type'])return;const _0x2d5df8=_0xb4fdba['getContainedElement']();if(null==_0x2d5df8)return;if(!_0x2d5df8['is']('element','bookmark'))return;const _0x38776d=_0x2d5df8['getAttribute']('bookmarkId');if('insertion'==_0xb4fdba['type'])return{'type':'insertion','content':o(_0x4f8d31,'*Insert:*\x20%0','\x22'+_0x38776d+'\x22\x20'+o(_0x4f8d31,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb4fdba['type'])return{'type':'deletion','content':o(_0x4f8d31,'*Remove:*\x20%0','\x22'+_0x38776d+'\x22\x20'+o(_0x4f8d31,'ELEMENT_BOOKMARK'))};const {data:_0x19a376}=_0xb4fdba;if(!_0x19a376||'bookmarkId'!=_0x19a376['key'])return;return{'type':'format','content':o(_0x4f8d31,'*Set\x20bookmark:*\x20%0','\x22'+_0x19a376['newValue']+'\x22')};}));}}class J extends _0x1f739f{['afterInit'](){const _0x54864c=this['editor'];_0x54864c['plugins']['has']('CaseChange')&&(_0x54864c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x54864c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x54864c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1f739f{['afterInit'](){const _0x368616=this['editor'];_0x368616['commands']['get']('ckbox')&&_0x368616['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x1f739f{['afterInit'](){const _0x9ad28a=this['editor'];if(!_0x9ad28a['plugins']['has']('CodeBlock'))return;const _0x3b6a8d=_0x9ad28a['plugins']['get']('TrackChangesEditing'),_0x5cec0f=_0x9ad28a['locale'],_0x3838=_0x9ad28a['config']['get']('codeBlock')['languages'],_0x40da1f=_0x9ad28a['commands']['get']('codeBlock');_0x3b6a8d['enableCommand']('indentCodeBlock'),_0x3b6a8d['enableCommand']('outdentCodeBlock'),_0x3b6a8d['enableCommand']('codeBlock',(_0x370c81,_0x1e5e82={})=>{const _0xa832b1=_0x9ad28a['model'],_0x1062b9=_0x9ad28a['model']['document']['selection'],_0x38461d=_0x1e5e82&&void 0x0!==_0x1e5e82['forceValue']?_0x1e5e82['forceValue']:!_0x40da1f['value'];let _0x246abc;_0x1e5e82['language']||(_0x1e5e82['language']=_0x3838[0x0]['language']),_0x246abc=_0x38461d?Array['from'](_0x1062b9['getSelectedBlocks']())['filter'](_0x222b91=>eo(_0x222b91)||function(_0x2582fb,_0x453287){if(_0x2582fb['is']('rootElement')||_0x453287['isLimit'](_0x2582fb))return!0x1;return _0x453287['checkChild'](_0x2582fb['parent'],'codeBlock');}(_0x222b91,_0xa832b1['schema'])):Array['from'](_0x1062b9['getSelectedBlocks']())['filter'](_0x4ddb2d=>eo(_0x4ddb2d));const _0x5ca2e0=to(_0x246abc,_0xa832b1);_0xa832b1['change'](()=>{for(const _0x4620fb of _0x5ca2e0)_0x3b6a8d['markBlockFormat'](_0x4620fb,{'commandName':'codeBlock','commandParams':[{..._0x1e5e82,'forceValue':_0x38461d}],'formatGroupId':'blockName'});});}),(_0x3b6a8d['descriptionFactory']['registerElementLabel']('codeBlock',_0x1219c4=>o(_0x5cec0f,'ELEMENT_CODE_BLOCK',_0x1219c4)),_0x3b6a8d['descriptionFactory']['registerDescriptionCallback'](_0x3cca81=>{if('formatBlock'!=_0x3cca81['type'])return;const _0x532ae0=_0x5cec0f['t'],{data:_0x2abbf9}=_0x3cca81;if(!_0x2abbf9||'codeBlock'!=_0x2abbf9['commandName'])return;const _0x51f14e=_0x2abbf9['commandParams'][0x0]['language'],_0x5d2fe6=_0x532ae0(_0x3838['find'](_0x57a1fa=>_0x57a1fa['language']===_0x51f14e)['label'])['toLowerCase']();return _0x2abbf9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5cec0f,'*Set\x20format:*\x20%0',o(_0x5cec0f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5d2fe6+')')}:{'type':'format','content':o(_0x5cec0f,'*Remove\x20format:*\x20%0',o(_0x5cec0f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3707e2){return'codeBlock'==_0x3707e2['name'];}class z extends _0x1f739f{['afterInit'](){const _0x32f648=this['editor'];if(!_0x32f648['plugins']['has']('CommentsEditing'))return;_0x32f648['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x527918,_0x33f026,_0x2027d1){const _0x391bd4=[];for(const _0x39655a of _0x33f026['getItems']())_0x39655a['hasAttribute'](_0x527918)&&_0x391bd4['push'](_0x2027d1['createRangeOn'](_0x39655a));return _0x391bd4;}function Ne(_0x33e92c,_0x853965,{showActiveMarker:_0xc3d1a8=!0x0}={}){const _0x206b61=_0x33e92c['plugins']['get']('TrackChangesEditing');return(_0x2579b0,_0x3795ee,_0x268452)=>{if(!_0x268452['consumable']['test'](_0x3795ee['markerRange'],_0x2579b0['name']))return;const _0xcbd7fb=_0x3795ee['markerRange']['getWalker'](),_0x56be34=_0x3795ee['markerRange']['start'],_0x4e71c7=_0x33e92c['model']['schema'];let _0x19b211=null,_0x401db9=null,_0x4bb30e=!0x1,_0x534e9e=!0x1;for(const _0x1327e5 of _0xcbd7fb){const _0x519a57=_0x1327e5['item'];_0x4bb30e=_0x4bb30e||_0x4e71c7['isContent'](_0x519a57);const _0x4b42ff=_0x268452['mapper']['toViewElement'](_0x519a57);if(_0x4b42ff&&_0x4b42ff['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1327e5['type']&&(_0x4e71c7['isBlock'](_0x519a57)&&!_0x4e71c7['isLimit'](_0x519a57)&&(_0x519a57['nextSibling']||_0x56be34['isAtEnd']?_0x19b211&&_0x19b211['parent']==_0x519a57||(_0x19b211=_0x519a57,_0x5f017a(_0x1327e5['previousPosition']),_0x534e9e=!0x0):_0x401db9=_0x401db9||_0x1327e5['previousPosition']));}function _0x5f017a(_0x1d9130){const {authorId:_0x434566}=_0x206b61['_splitMarkerName'](_0x3795ee['markerName']),_0x9f9689=_0x268452['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x853965,'data-author-id':_0x434566}),_0x47b346=_0x268452['mapper']['toViewPosition'](_0x1d9130);_0xc3d1a8&&_0x206b61['activeMarkers']['includes'](_0x3795ee['markerName'])&&_0x268452['writer']['addClass']('ck-suggestion-marker--active',_0x9f9689),_0x268452['writer']['insert'](_0x47b346,_0x9f9689),_0x268452['mapper']['bindElementToMarker'](_0x9f9689,_0x3795ee['markerName']);}_0x4bb30e||_0x534e9e||!_0x401db9||_0x5f017a(_0x401db9);};}class K extends _0x1f739f{static get['requires'](){return[_0x24be65];}['init'](){const _0x1d9489=this['editor'],_0x304573=_0x1d9489['plugins']['get']('TrackChangesEditing');_0x304573['enableCommand']('delete');const _0x60fb66=_0x1d9489['commands']['get']('deleteForward');_0x304573['enableCommand']('deleteForward',(_0xf10b09,_0x4d53b9={})=>{const _0x187a01=_0x1d9489['model']['createSelection'](_0x1d9489['model']['document']['selection']);_0x187a01['isCollapsed']&&_0x1d9489['model']['modifySelection'](_0x187a01,{'direction':'forward','unit':_0x4d53b9['unit']});const _0x23ba45=_0x187a01['getFirstRange'](),_0x253ece=_0x1c86da['fromRange'](_0x23ba45);let _0x5958d3;_0xf10b09(_0x4d53b9),_0x5958d3='$graveyard'==_0x253ece['root']['rootName']?_0x1d9489['model']['createRange'](_0x23ba45['start']):_0x1d9489['model']['createRange'](_0x253ece['start'],_0x253ece['end']),_0x253ece['detach'](),_0x1d9489['model']['enqueueChange'](_0x60fb66['buffer']['batch'],_0xd429d3=>{_0x60fb66['buffer']['lock'](),_0xd429d3['setSelection'](_0xd429d3['createRange'](_0x5958d3['end'])),_0x60fb66['buffer']['unlock']();});}),_0x1d9489['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x1d9489,'merge'),{'priority':'high'}),_0x1d9489['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x17c523,_0xa64a66,_0x3f78d8)=>{_0x3f78d8['options']['showSuggestionHighlights']&&Ne(_0x1d9489,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x17c523,_0xa64a66,_0x3f78d8);},{'priority':'high'}),_0x1d9489['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4ffa94,_0xaaf05a,_0x4d0464)=>{const _0x2a4633=_0x4d0464['mapper']['markerNameToElements'](_0xaaf05a['markerName']);if(_0x2a4633){for(const _0x3cd941 of _0x2a4633)_0x3cd941['is']('uiElement')&&(_0x4d0464['mapper']['unbindElementFromMarkerName'](_0x3cd941,_0xaaf05a['markerName']),_0x4d0464['writer']['remove'](_0x3cd941));}},{'priority':'high'});}}class W extends _0x1f739f{['afterInit'](){const _0x1b68c9=this['editor'];if(!_0x1b68c9['plugins']['has']('ListEditing'))return;const _0x165f92=_0x1b68c9['locale'],_0x530352=_0x1b68c9['plugins']['get']('TrackChangesEditing'),_0x110f95=_0x1b68c9['plugins']['has']('TodoListEditing'),_0x198d6e=!!_0x1b68c9['config']['get']('list.multiBlock');function _0x33a4fc(_0x5d0ce8){return{'type':'format','content':''+o(_0x165f92,'*Set\x20format:*\x20%0',_0x5d0ce8)};}function _0x52167d(_0x5efb75){return{'type':'format','content':''+o(_0x165f92,'*Remove\x20format:*\x20%0',_0x5efb75)};}_0x530352['enableDefaultAttributesIntegration']('numberedList'),_0x530352['enableDefaultAttributesIntegration']('bulletedList'),_0x530352['enableDefaultAttributesIntegration']('customNumberedList'),_0x530352['enableDefaultAttributesIntegration']('customBulletedList'),_0x530352['enableDefaultAttributesIntegration']('indentList'),_0x530352['enableDefaultAttributesIntegration']('outdentList'),_0x530352['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x530352['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x530352['registerBlockAttribute']('listItemId'),_0x530352['registerBlockAttribute']('listType'),_0x530352['registerBlockAttribute']('listIndent'),_0x198d6e&&(_0x530352['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x530352['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x110f95&&(_0x530352['enableDefaultAttributesIntegration']('todoList'),_0x530352['enableDefaultAttributesIntegration']('checkTodoList'),_0x530352['registerBlockAttribute']('todoListChecked'),_0x530352['descriptionFactory']['registerDescriptionCallback'](_0x42488e=>{const {data:_0x8b458}=_0x42488e;if(_0x8b458&&'todoListChecked'==_0x8b458['key'])return{'type':'format','content':_0x8b458['newValue']?o(_0x165f92,'*Check\x20item*'):o(_0x165f92,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x381dbe=>{if(_0x381dbe['batch']['isUndo'])return!0x1;let _0x1b13ae=!0x1;const _0x652cd2=_0x530352['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42f9a9=>'todoListChecked'===_0x530352['_getAttributeKey'](_0x42f9a9));for(const _0x3a7a58 of _0x652cd2){'todo'!=_0x3a7a58['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x530352['_findSuggestions'](_0x3a7a58['getFirstRange'](),'attribute')['find'](_0x5d397b=>'listType'===_0x530352['_getAttributeKey'](_0x5d397b['suggestion']))||(_0x381dbe['removeMarker'](_0x3a7a58['getFirstMarker']()),_0x1b13ae=!0x0));}return _0x1b13ae;})),_0x530352['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x165f92,'FORMAT_INDENT'));const _0x4a510e={'type':'format','content':''};_0x530352['descriptionFactory']['registerDescriptionCallback'](_0xcb9dff=>{const {data:_0x1194d1}=_0xcb9dff;if(!_0x1194d1||'listType'!=_0x1194d1['key'])return;let _0x460d2f=_0xcb9dff['head'];for(;_0x460d2f;){if(_0x460d2f['data']&&(('listStyle'==_0x460d2f['data']['key']||'listMarkerStyle'==_0x460d2f['data']['key'])&&(_0x460d2f['data']['newValue']&&'default'!=_0x460d2f['data']['newValue']||'default'!=_0x460d2f['data']['oldValue']&&!_0x1194d1['newValue'])||!_0x198d6e&&_0x460d2f['data']['key']==m))return _0x4a510e;_0x460d2f=_0x460d2f['next'];}if(null==_0x1194d1['newValue'])switch(_0x1194d1['oldValue']){case'bulleted':return _0x52167d(o(_0x165f92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x52167d(o(_0x165f92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x52167d(o(_0x165f92,'ELEMENT_TODO_LIST'));}switch(_0x1194d1['newValue']){case'bulleted':return _0x33a4fc(o(_0x165f92,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33a4fc(o(_0x165f92,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33a4fc(o(_0x165f92,'ELEMENT_TODO_LIST'));}}),_0x530352['descriptionFactory']['registerDescriptionCallback'](_0xefaab2=>{const {data:_0x55aae8}=_0xefaab2;if(_0x55aae8&&'listIndent'==_0x55aae8['key'])return null==_0x55aae8['newValue']||null==_0x55aae8['oldValue']&&0x0==_0x55aae8['newValue']?_0x4a510e:void 0x0;}),_0x530352['descriptionFactory']['registerDescriptionCallback'](_0x299d63=>{if('attribute'!=_0x299d63['type'])return;const {data:_0x209533}=_0x299d63;if(!_0x209533||'listItemId'!=_0x209533['key'])return;const _0x178400=Te(_0x299d63);return'newValue'==_0x178400?{'type':'format','content':o(_0x165f92,'*Merge:*\x20list\x20item')}:'oldValue'==_0x178400?{'type':'format','content':o(_0x165f92,'*Split:*\x20list\x20item')}:_0x4a510e;}),_0x1b68c9['model']['document']['registerPostFixer'](_0x49ae44=>this['listItemIdFixer'](_0x49ae44)),_0x1b68c9['model']['document']['registerPostFixer'](_0x236deb=>this['noTrackChangesFixer'](_0x236deb)),_0x1b68c9['model']['document']['on']('change:data',(_0x2c9fb7,_0x1031ea)=>{if(_0x1031ea['isUndo']||!_0x1031ea['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4c28b3){if(_0x4c28b3['batch']['isUndo']||!_0x4c28b3['batch']['isLocal'])return!0x1;let _0x5e447f=!0x1;const _0x5e7df6=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56ba2d=>_0x56ba2d['data']&&'listItemId'==_0x56ba2d['data']['key'])['filter'](_0x13bcb8=>_0x13bcb8['data']['newValue']&&_0x13bcb8['data']['oldValue']);for(const _0x58cec9 of _0x5e7df6)Te(_0x58cec9)||(_0x4c28b3['removeMarker'](_0x58cec9['getFirstMarker']()),_0x5e447f=!0x0);return _0x5e447f;}['noTrackChangesFixer'](_0x2ede20){if(_0x2ede20['batch']['isUndo']||!_0x2ede20['batch']['isLocal'])return!0x1;const _0x53c4cd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x53c4cd['trackChangesCommand']['value'])return!0x1;let _0x5b2593=!0x1;const _0x22413d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1dcb9d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x14285f=>'attribute'==_0x14285f['type'])['filter'](_0x4c395f=>_0x22413d['includes'](_0x4c395f['attributeKey']));if(0x0==_0x1dcb9d['length'])return _0x5b2593;for(const _0x3540da of _0x1dcb9d){const _0x43f875=_0x53c4cd['_findSuggestions'](_0x3540da['range'],'attribute')['filter'](_0x14c069=>!_0x14c069['meta']['isNextTo'])['map'](_0x39c20a=>_0x39c20a['suggestion'])['filter'](_0x291179=>{const _0x4969be=_0x53c4cd['_getAttributeKey'](_0x291179);return _0x22413d['includes'](_0x4969be);});if(_0x43f875['length']){for(const _0x2c8480 of _0x43f875)_0x2ede20['removeMarker'](_0x2c8480['getFirstMarker']());_0x5b2593=!0x0;}}return _0x5b2593;}['assureChains'](){const _0x6004e1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b6104=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x6e9770;const _0x27043b=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x11446e=>{if(_0x11446e['data']['oldRange']||!_0x11446e['data']['newRange'])return null;if(!_0x11446e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5589a9}=_0x6004e1['_splitMarkerName'](_0x11446e['name']);if(!_0x6004e1['hasSuggestion'](_0x5589a9))return null;const _0x467894=_0x6004e1['getSuggestion'](_0x5589a9);return _0x3b6104['includes'](_0x467894['data']['key']);})['map'](_0x51e8ae=>{const {id:_0x4c47d3}=_0x6004e1['_splitMarkerName'](_0x51e8ae['name']),_0x45ea66=_0x6004e1['getSuggestion'](_0x4c47d3);return _0x6e9770=_0x45ea66['attributes']['groupId'],_0x45ea66['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x27043b['size'])return;const _0x4d8d26=_0x6004e1['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x100514=>'attribute'==_0x100514['type']&&_0x100514['data']&&_0x3b6104['includes'](_0x100514['data']['key'])&&_0x100514['attributes']['groupId']!=_0x6e9770)['map'](_0x22e6ea=>({'listItem':_0x22e6ea['getFirstRange']()['start']['nodeAfter'],'groupId':_0x22e6ea['attributes']['groupId']})),_0x149e55=new Set();for(const {groupId:_0x1ac851,listItem:_0x1e7e1b}of _0x4d8d26)_0x27043b['has'](_0x1e7e1b)&&_0x149e55['add'](_0x1ac851);for(const _0x32fe7e of _0x6004e1['getSuggestions']())_0x149e55['has'](_0x32fe7e['attributes']['groupId'])&&_0x32fe7e['setAttribute']('groupId',_0x6e9770);}['_supportLegacySuggestions'](){const _0x32f921=this['editor'],_0x72e89=_0x32f921['locale'],_0x1f7366=_0x32f921['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1f7366['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2e81c0,_0x5d5b48){const _0x444b07=[];for(let _0x40a214 of _0x2e81c0)_0x40a214['start']['nodeAfter']===_0x40a214['end']['parent']&&(_0x40a214=_0x32f921['model']['createRange'](_0x32f921['model']['createPositionAt'](_0x40a214['start']['nodeAfter'],0x0))),_0x444b07['push'](_0x40a214);_0x32f921['model']['change'](_0x46d232=>{const _0x1b4baa=_0x32f921['model']['document']['selection'],_0x127a15=Array['from'](_0x1b4baa['getRanges']())['map'](_0x21b988=>_0x1c86da['fromRange'](_0x21b988));_0x46d232['setSelection'](_0x444b07),_0x32f921['commands']['get'](_0x5d5b48['commandName'])['refresh'](),_0x5d5b48['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x32f921['execute'](_0x5d5b48['commandName'],..._0x5d5b48['commandParams']),_0x46d232['setSelection'](_0x127a15);for(const _0x584221 of _0x127a15)_0x584221['detach']();});}),_0x1f7366['descriptionFactory']['registerElementLabel'](function(_0x455d9d){const _0xd3b06d=!_0x32f921['model']['schema']['isObject'](_0x455d9d),_0x263d4f=_0x455d9d['previousSibling'],_0x1248c7=_0x455d9d['nextSibling'],_0x1fb320=_0x455d9d['getAttribute']('listItemId'),_0xfecad2=!_0x263d4f||_0x263d4f['getAttribute']('listItemId')!==_0x1fb320,_0x1521a6=!_0x1248c7||_0x1248c7['getAttribute']('listItemId')!==_0x1fb320;return _0xd3b06d&&Boolean(_0x1fb320)&&_0xfecad2&&_0x1521a6;},_0x1b3fc1=>o(_0x72e89,'ELEMENT_LIST_ITEM',_0x1b3fc1));}['_registerLegacyDescription'](){const _0x456a80=this['editor'],_0x553442=_0x456a80['locale'];function _0x3acf1b(_0x283ef5){const _0x36a024=_0x456a80['commands']['get']('bulletedList')['value'],_0x2b559c=_0x456a80['commands']['get']('numberedList')['value'];return'numberedList'===_0x283ef5?_0x36a024:_0x2b559c;}_0x456a80['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x84e487){if('formatBlock'!=_0x84e487['type'])return;const {data:_0x9e1c8a}=_0x84e487;if(!_0x9e1c8a)return;let _0x11c860,_0x30f137,_0x335a5a,_0x445d8f;switch(_0x9e1c8a['commandName']){case'bulletedList':_0x335a5a=_0x9e1c8a['commandParams'][0x0]['forceValue'],_0x445d8f=_0x3acf1b(_0x9e1c8a['commandName']),_0x11c860=_0x335a5a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x445d8f&&_0x456a80['config']['get']('list.multiBlock')||(_0x11c860='*Change\x20to:*\x20%0'),_0x30f137={'type':'format','content':o(_0x553442,_0x11c860,o(_0x553442,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x335a5a=_0x9e1c8a['commandParams'][0x0]['forceValue'],_0x445d8f=_0x3acf1b(_0x9e1c8a['commandName']),_0x11c860=_0x335a5a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x445d8f&&_0x456a80['config']['get']('list.multiBlock')||(_0x11c860='*Change\x20to:*\x20%0'),_0x30f137={'type':'format','content':o(_0x553442,_0x11c860,o(_0x553442,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x11c860='*Indent:*\x20%0',_0x30f137={'type':'format','content':o(_0x553442,_0x11c860,o(_0x553442,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x11c860=function(_0x2bab03){const _0x39a1b1=_0x2bab03['getFirstRange']();let _0x1ce2e6=_0x39a1b1['start']['nodeAfter'];for(;_0x1ce2e6&&_0x39a1b1['containsItem'](_0x1ce2e6);){if(_0x1ce2e6['getAttribute']('listIndent')>0x0)return!0x1;_0x1ce2e6=_0x1ce2e6['nextSibling'];}return!0x0;}(_0x84e487)?o(_0x553442,'*Format:*\x20remove\x20from\x20%0',o(_0x553442,function(_0x424e39){return'ELEMENT_'+_0x424e39['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x84e487))):o(_0x553442,'*Outdent:*\x20%0',o(_0x553442,'ELEMENT_LIST_ITEM')),_0x30f137={'type':'format','content':_0x11c860};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x9e1c8a['multipleBlocks']&&(_0x11c860='*Merge:*\x20%0',_0x30f137={'type':'deletion','content':o(_0x553442,_0x11c860,o(_0x553442,'ELEMENT_LIST_ITEM'))});}return _0x30f137;});}}function Te(_0x2f636b){let _0x1462fa=_0x2f636b['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1462fa;){const _0x1cc1ec=_0x1462fa['getAttribute']('listItemId');if(!_0x1cc1ec)return!0x1;if(_0x1cc1ec==_0x2f636b['data']['newValue'])return'newValue';if(_0x1cc1ec==_0x2f636b['data']['oldValue'])return'oldValue';_0x1462fa=_0x1462fa['previousSibling'];}return!0x1;}class ye extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3678ce=this['editor']['config']['get']('list.properties'),_0x24bcdc=this['editor']['plugins']['get']('TrackChangesEditing');_0x3678ce['styles']&&(_0x24bcdc['enableDefaultAttributesIntegration']('listStyle'),_0x24bcdc['registerBlockAttribute']('listStyle')),_0x3678ce['reversed']&&(_0x24bcdc['enableDefaultAttributesIntegration']('listReversed'),_0x24bcdc['registerBlockAttribute']('listReversed')),_0x3678ce['startIndex']&&(_0x24bcdc['enableDefaultAttributesIntegration']('listStart'),_0x24bcdc['registerBlockAttribute']('listStart'));const _0x3270bc={'type':'format','content':''};_0x24bcdc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x54e711=this['editor']['locale'];_0x24bcdc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x54e711,'FORMAT_LIST_REVERSED')),_0x24bcdc['descriptionFactory']['registerDescriptionCallback'](_0x23560b=>{const {data:_0x394ac9}=_0x23560b;if(_0x394ac9&&'listReversed'==_0x394ac9['key'])return null==_0x394ac9['newValue']||0x0==_0x394ac9['newValue']&&null==_0x394ac9['oldValue']?_0x3270bc:void 0x0;}),_0x24bcdc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x54e711,'FORMAT_LIST_START')),_0x24bcdc['descriptionFactory']['registerDescriptionCallback'](_0x2da455=>{const {data:_0x50f4c9}=_0x2da455;if(_0x50f4c9&&'listStart'==_0x50f4c9['key'])return null==_0x50f4c9['newValue']||0x1==_0x50f4c9['newValue']&&null==_0x50f4c9['oldValue']?_0x3270bc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x34ccda=>{if(_0x34ccda['batch']['isUndo'])return!0x1;let _0x595273=!0x1;const _0x2c931b=_0x24bcdc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x215fbf=>{const _0x589562=_0x24bcdc['_getAttributeKey'](_0x215fbf);return'listStart'==_0x589562||'listReversed'==_0x589562;});for(const _0x8d1b6a of _0x2c931b){const _0x72a61f=_0x8d1b6a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x72a61f||'customNumbered'==_0x72a61f)continue;_0x24bcdc['_findSuggestions'](_0x8d1b6a['getFirstRange'](),'attribute')['find'](_0x2df8c7=>'listType'==_0x24bcdc['_getAttributeKey'](_0x2df8c7['suggestion']))||(_0x34ccda['removeMarker'](_0x8d1b6a['getFirstMarker']()),_0x595273=!0x0);}return _0x595273;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x333089){const _0xbe7f8b=this['editor']['locale'],{data:_0x3c8d41}=_0x333089,_0x27265a={'type':'format','content':''};if(!_0x3c8d41||'listStyle'!=_0x3c8d41['key'])return;if(!_0x3c8d41['oldValue'])return'default'==_0x3c8d41['newValue']?_0x27265a:{'type':'format','content':''+o(_0xbe7f8b,'*Set\x20format:*\x20%0',o(_0xbe7f8b,this['_getTranslationKeyForListStyle'](_0x3c8d41['newValue'])))};if(!_0x3c8d41['newValue']){if('default'==_0x3c8d41['oldValue'])return _0x27265a;let _0x16d9b5=_0x333089['head'];for(;_0x16d9b5;){if(_0x16d9b5['data']&&'listType'==_0x16d9b5['data']['key']&&_0x16d9b5['data']['newValue'])return _0x27265a;_0x16d9b5=_0x16d9b5['next'];}return{'type':'format','content':''+o(_0xbe7f8b,'*Remove\x20format:*\x20%0',o(_0xbe7f8b,this['_getTranslationKeyForListStyle'](_0x3c8d41['oldValue'])))};}if('default'!=_0x3c8d41['newValue'])return{'type':'format','content':''+o(_0xbe7f8b,'*Set\x20format:*\x20%0',o(_0xbe7f8b,this['_getTranslationKeyForListStyle'](_0x3c8d41['newValue'])))};let _0x87659e=_0x333089['head'];for(;_0x87659e;){if(_0x87659e['data']&&'listType'==_0x87659e['data']['key']&&_0x87659e['data']['newValue']&&_0x87659e['data']['oldValue'])return _0x27265a;_0x87659e=_0x87659e['next'];}return{'type':'format','content':o(_0xbe7f8b,'*Set\x20format:*\x20%0',o(_0xbe7f8b,'ELEMENT_'+_0x333089['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x24be0a=this['editor'],_0x39510e=_0x24be0a['locale'];_0x24be0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e3dba=>{if('formatBlock'!=_0x1e3dba['type'])return;const {data:_0xf4ef8b}=_0x1e3dba;if(!_0xf4ef8b)return;let _0x51921,_0x5b8fab;switch(_0xf4ef8b['commandName']){case'listStyle':_0x51921='*Change\x20to:*\x20%0',_0x5b8fab={'type':'format','content':o(_0x39510e,_0x51921,o(_0x39510e,this['_getTranslationKeyForListStyle'](_0xf4ef8b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x51921=_0xf4ef8b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b8fab={'type':'format','content':o(_0x39510e,_0x51921)};break;case'listStart':_0x51921='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b8fab={'type':'format','content':o(_0x39510e,_0x51921,_0xf4ef8b['commandParams'][0x0]['startIndex'])};}return _0x5b8fab;});}['_getTranslationKeyForListStyle'](_0x2346c8){return'ELEMENT_'+function(_0x58bf21){if(Se['includes'](_0x58bf21))return'bulleted';if(_e['includes'](_0x58bf21))return'numbered';return null;}(_0x2346c8)['toUpperCase']()+'_LIST_'+_0x2346c8['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x1f739f{static get['requires'](){return[_0x35b6d3];}['init'](){const _0x2632d7=this['editor'],_0x48ba6=_0x2632d7['plugins']['get']('TrackChangesEditing'),_0x179a2c=_0x2632d7['commands']['get']('enter');_0x48ba6['enableCommand']('enter',()=>{_0x2632d7['model']['change'](_0x4eed4b=>{const _0x5830b7=_0x2632d7['model']['document']['selection'],_0x2d5db8=_0x5830b7['getFirstPosition'](),_0x1c7699=_0x1c86da['fromRange'](_0x5830b7['getFirstRange']());if(_0x179a2c['enterBlock'](_0x4eed4b)){const _0x4f47e3=_0x2632d7['model']['createPositionAt'](_0x2d5db8['parent']['nextSibling'],0x0),_0x417d5c=_0x4eed4b['createRange'](_0x2d5db8,_0x4f47e3);_0x48ba6['markInsertion'](_0x417d5c);}else _0x4eed4b['setSelection'](_0x4eed4b['createRange'](_0x1c7699['end']));_0x1c7699['detach'](),_0x179a2c['fire']('afterExecute',{'writer':_0x4eed4b});});}),_0x2632d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x2632d7,'split'),{'priority':'high'}),_0x2632d7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x43a45f,_0x5c028e,_0x38ee5a)=>{const _0x25e683=_0x38ee5a['mapper']['markerNameToElements'](_0x5c028e['markerName']);if(_0x25e683){for(const _0x2f1f34 of _0x25e683)_0x2f1f34['hasClass']('ck-suggestion-marker-split')&&(_0x38ee5a['mapper']['unbindElementFromMarkerName'](_0x2f1f34,_0x5c028e['markerName']),_0x38ee5a['writer']['remove'](_0x2f1f34));}},{'priority':'high'}),_0x2632d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x24721b,_0x3e236b,_0x5654f0)=>{_0x5654f0['options']['showSuggestionHighlights']&&Ne(_0x2632d7,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x24721b,_0x3e236b,_0x5654f0);},{'priority':'high'});}}class Y extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x7c3ad1=this['editor']['plugins']['get']('TrackChangesEditing');_0x7c3ad1['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x7c3ad1['enableCommand']('findNext'),_0x7c3ad1['enableCommand']('findPrevious'),_0x7c3ad1['enableCommand']('replace'),_0x7c3ad1['enableCommand']('replaceAll');}['handleFindCommand'](_0x359278,_0x5e2e34,_0x45bf63={}){const _0x2b4db6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x359278(_0x545fc3=>{let _0x400491=('string'==typeof _0x5e2e34?_0x2b4db6['findByTextCallback'](_0x5e2e34,_0x45bf63):_0x5e2e34)(_0x545fc3);Array['isArray'](_0x400491)&&(_0x400491={'results':_0x400491,'searchText':'string'==typeof _0x5e2e34?_0x5e2e34:''});const _0x5c0083=_0x400491['results']['filter'](_0x372ffd=>!0x1===this['_isInDeletionRange'](_0x372ffd,_0x545fc3['item']));return{..._0x400491,'results':_0x5c0083};},_0x45bf63);}['_isInDeletionRange'](_0xcd583e,_0x3d8dc4){const _0x22bc63=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3d8dc4,_0xcd583e['start']),this['editor']['model']['createPositionAt'](_0x3d8dc4,_0xcd583e['end']));for(const _0x548f8d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x22bc63['getIntersection'](_0x548f8d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x1f739f{['afterInit'](){const _0x101abd=this['editor']['locale'],_0x4be079=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5de061,commandName:_0xcea3f4}of ro)this['editor']['plugins']['has'](_0x5de061)&&(_0x4be079['enableDefaultAttributesIntegration'](_0xcea3f4),_0x4be079['registerInlineAttribute'](_0xcea3f4));_0x4be079['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x101abd,'FORMAT_FONT_SIZE')),_0x4be079['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x101abd,'FORMAT_FONT_FAMILY')),_0x4be079['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x101abd,'FORMAT_FONT_COLOR')),_0x4be079['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x101abd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7d5a7a=this['editor'],_0xa1ede9=_0x7d5a7a['locale'];_0x7d5a7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1500ae=>{const _0x2a3370=_0xa1ede9['t'];if('formatInline'!=_0x1500ae['type'])return;const {data:_0x163abf}=_0x1500ae;if(null!=_0x163abf){if('fontSize'==_0x163abf['commandName']){const _0x221fb7=_0x163abf['commandParams'][0x0]['value'];if(_0x221fb7){const _0x2ca836=_0x2a3370(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x516f6d=>_0x516f6d['model']==_0x221fb7)['title'])['toLowerCase']();return{'type':'format','content':o(_0xa1ede9,'*Set\x20font\x20size:*\x20%0',_0x2ca836)};}return{'type':'format','content':o(_0xa1ede9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x163abf['commandName']){const _0x47a5d8=_0x163abf['commandParams'][0x0]['value'];return _0x47a5d8?{'type':'format','content':o(_0xa1ede9,'*Set\x20font\x20family:*\x20%0',_0x47a5d8)}:{'type':'format','content':o(_0xa1ede9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x163abf['commandName']){const _0x2ac2a3=_0x163abf['commandParams'][0x0]['value'];if(_0x2ac2a3){const _0x4b2bae=_0x56821b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2df55e=>_0x2df55e['model']==_0x2ac2a3);let _0x562b4c=_0x2ac2a3,_0x295c5f='';return _0x4b2bae&&(_0x562b4c=_0x4b2bae['label'],_0x295c5f=_0x2a3370(_0x562b4c)['toLowerCase']()),{'type':'format','content':o(_0xa1ede9,'*Set\x20font\x20color:*\x20%0',_0x295c5f)['trim'](),'color':{'value':_0x2ac2a3,'title':_0x295c5f||_0x562b4c}};}return{'type':'format','content':o(_0xa1ede9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x163abf['commandName']){const _0x3c462d=_0x163abf['commandParams'][0x0]['value'];if(_0x3c462d){const _0x76ff77=_0x56821b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x13d5c1=>_0x13d5c1['model']==_0x3c462d);let _0x3d600c=_0x3c462d,_0x19fb70='';return _0x76ff77&&(_0x3d600c=_0x76ff77['label'],_0x19fb70=_0x2a3370(_0x3d600c)['toLowerCase']()),{'type':'format','content':o(_0xa1ede9,'*Set\x20font\x20background\x20color:*\x20%0',_0x19fb70)['trim'](),'color':{'value':_0x3c462d,'title':_0x19fb70||_0x3d600c}};}return{'type':'format','content':o(_0xa1ede9,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x1f739f{['afterInit'](){const _0x256ebc=this['editor'],_0x2b77f7=_0x256ebc['plugins']['get']('TrackChangesEditing'),_0x5e0b81=_0x256ebc['commands']['get']('copyFormat'),_0x547509=_0x256ebc['commands']['get']('pasteFormat');_0x5e0b81&&_0x547509&&(_0x2b77f7['enableDefaultAttributesIntegration']('pasteFormat'),_0x2b77f7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3b9150=this['editor'],_0x2728d9=_0x3b9150['locale'];_0x3b9150['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28a073=>{if('formatBlock'!=_0x28a073['type']&&'formatInline'!=_0x28a073['type'])return;const {data:_0x452f4f}=_0x28a073;if(_0x452f4f&&'pasteFormat'===_0x452f4f['commandName']){const _0x37ce35=[],_0x53d005=_0x452f4f['commandParams'][0x0];for(const [_0x27402c,_0x3eb16f]of Object['entries'](_0x53d005))_0x37ce35['push'](so(_0x3b9150,_0x27402c,_0x3eb16f));return _0x37ce35['length']?{'type':'format','content':o(_0x2728d9,'*Set\x20format\x20to:*\x20%0',_0x37ce35['join'](',\x20'))}:{'type':'format','content':o(_0x2728d9,'*Remove\x20all\x20formatting*')};}});}}function so(_0x560731,_0x5a90e7,_0x1bef8c){const _0x40ba1f=_0x560731['locale']['t'],_0x4eab83=_0x5a90e7['split'](/(?=[A-Z])/)['join']('\x20'),_0x10f80a=_0x40ba1f(_0x4eab83['charAt'](0x0)['toUpperCase']()+_0x4eab83['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1bef8c)return _0x10f80a;if('fontColor'===_0x5a90e7||'fontBackgroundColor'===_0x5a90e7){const _0x4bc8a8=_0x56821b(_0x560731['config']['get']('fontColor.colors'))['find'](_0x468cb8=>_0x468cb8['model']==_0x1bef8c);return _0x10f80a+'\x20('+(_0x4bc8a8?_0x40ba1f(_0x4bc8a8['label'])['toLowerCase']():_0x1bef8c)+')';}if('fontSize'===_0x5a90e7&&isNaN(parseFloat(_0x1bef8c))){const _0x2e6794=_0x560731['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x560731['config']['get']('fontSize.options'))['find'](_0x3ee66a=>_0x3ee66a['model']==_0x1bef8c);return _0x10f80a+'\x20('+(_0x2e6794?_0x40ba1f(_0x2e6794['title'])['toLowerCase']():_0x1bef8c)+')';}return _0x10f80a+'\x20('+_0x1bef8c+')';}class nt extends _0x1f739f{['_headingOptions'];['afterInit'](){const _0x4a793a=this['editor'];if(!_0x4a793a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4a793a['config']['get']('heading.options');const _0x269508=_0x4a793a['locale'],_0x3d45b2=_0x4a793a['plugins']['get']('TrackChangesEditing');_0x3d45b2['enableDefaultAttributesIntegration']('heading');for(const _0x4efc10 of this['_headingOptions'])'paragraph'!=_0x4efc10['model']&&_0x3d45b2['descriptionFactory']['registerElementLabel'](_0x4efc10['model'],_0x369dd1=>{const _0x2aee5e=this['_getHeadingLevel'](_0x4efc10['model']);return null!==_0x2aee5e?_0x29f4ef(_0x369dd1,_0x2aee5e):_0x152aa1(_0x369dd1,_0x4efc10['title']);});function _0x29f4ef(_0x8db6f8,_0x5d0cc2){return o(_0x269508,'ELEMENT_HEADING',[_0x8db6f8,_0x5d0cc2]);}function _0x152aa1(_0x2af872,_0x5cd030){return o(_0x269508,'ELEMENT_HEADING_CUSTOM',[_0x2af872,_0x5cd030]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a5924=this['editor'],_0x2b653b=_0x4a5924['locale'];function _0x3d651f(_0x484cca,_0x39cf84){return o(_0x2b653b,'ELEMENT_HEADING_CUSTOM',[_0x484cca,_0x39cf84]);}_0x4a5924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42dd29=>{if('formatBlock'!=_0x42dd29['type'])return;const {data:_0x6f532f}=_0x42dd29;if(_0x6f532f&&'heading'==_0x6f532f['commandName']){const _0x5bb362=_0x6f532f['commandParams'][0x0]['value'],_0x41b137=this['_getHeadingLevel'](_0x5bb362);if(null!==_0x41b137)return{'type':'format','content':o(_0x2b653b,'*Change\x20to:*\x20%0',(_0x5cb92c=0x1,_0x3d6bdc=_0x41b137,o(_0x2b653b,'ELEMENT_HEADING',[_0x5cb92c,_0x3d6bdc])))};const _0x477c01=this['_headingOptions']['find'](_0x12a3b0=>_0x12a3b0['model']===_0x5bb362)['title'];return{'type':'format','content':o(_0x2b653b,'*Change\x20to:*\x20%0',_0x3d651f(0x1,_0x477c01))};}var _0x5cb92c,_0x3d6bdc;});}['_getHeadingLevel'](_0x1f1eaa){const _0xf746d8=_0x1f1eaa['match'](/^heading(\d+)/);if(_0xf746d8)return _0xf746d8[0x1];const _0x3b9f3b=this['_headingOptions']?.['find'](_0x273d44=>_0x273d44['model']==_0x1f1eaa);if(_0x3b9f3b&&_0x3b9f3b['view']){const _0x1a329a=_0x3b9f3b['view'],_0x372e05=(_0x1a329a['name']??_0x1a329a)['match'](/^h(\d+)/);if(_0x372e05)return _0x372e05[0x1];}return null;}}class it extends _0x1f739f{['afterInit'](){const _0x164aee=this['editor'];if(!_0x164aee['plugins']['has']('HighlightEditing'))return;const _0x57b58b=_0x164aee['plugins']['get']('TrackChangesEditing'),_0xcfab8=_0x164aee['locale'];_0x57b58b['enableDefaultAttributesIntegration']('highlight'),_0x57b58b['registerInlineAttribute']('highlight'),_0x57b58b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xcfab8,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2611a6=this['editor'],_0x201fcf=_0x2611a6['locale'];_0x2611a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44e4ea=>{if('formatInline'!=_0x44e4ea['type'])return;const {data:_0x58335d}=_0x44e4ea;if(_0x58335d&&'highlight'==_0x58335d['commandName']){const _0xdb30db=_0x201fcf['t'],_0x40502e=_0x58335d['commandParams'][0x0]['value'];if(_0x40502e){const _0x1bab2a=_0x2611a6['config']['get']('highlight.options')['find'](_0x4df9b6=>_0x4df9b6['model']==_0x40502e),_0x518a8c=_0xdb30db(_0x1bab2a['title'])['toLowerCase']();return{'type':'format','content':o(_0x201fcf,'*Set\x20highlight:*\x20%0',_0x518a8c),'color':{'value':_0x1bab2a['color'],'title':_0x1bab2a['title']}};}return{'type':'format','content':o(_0x201fcf,'*Remove\x20highlight*',o(_0x201fcf,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x1f739f{['afterInit'](){const _0x46dea3=this['editor'];if(!_0x46dea3['plugins']['has']('HorizontalLineEditing'))return;_0x46dea3['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3c0d4c=_0x46dea3['plugins']['get']('TrackChangesEditing'),_0x3a3fea=_0x46dea3['locale'];_0x3c0d4c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2287bd=>o(_0x3a3fea,'ELEMENT_HORIZONTAL_LINE',_0x2287bd)),_0x46dea3['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x58b021,{writer:_0x995468,options:_0x533ce7})=>{if(!_0x533ce7['showSuggestionHighlights'])return null;const _0x81df9d=_0x995468['createContainerElement']('div'),_0x54065a=_0x995468['createEmptyElement']('hr');return _0x995468['addClass']('ck-horizontal-line',_0x81df9d),_0x995468['insert'](_0x995468['createPositionAt'](_0x81df9d,0x0),_0x54065a),_0x81df9d;},'converterPriority':'high'});}}class st extends _0x1f739f{['afterInit'](){const _0xee9ece=this['editor'];if(!_0xee9ece['plugins']['has']('HtmlEmbed'))return;const _0x27fbc7=_0xee9ece['plugins']['get']('TrackChangesEditing'),_0x102d70=_0xee9ece['locale'];_0x27fbc7['descriptionFactory']['registerElementLabel']('rawHtml',_0x202bc9=>o(_0x102d70,'ELEMENT_HTML_EMBED',_0x202bc9)),_0x27fbc7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x27fbc7['registerBlockAttribute']('value'),_0x27fbc7['descriptionFactory']['registerDescriptionCallback'](_0x2a6583=>{if('attribute'!=_0x2a6583['type'])return;const {data:_0x4597cb}=_0x2a6583;if(_0x4597cb&&'value'==_0x4597cb['key']&&_0x2a6583['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3b1473=o(_0x102d70,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x102d70,'*Change\x20%0\x20content*',_0x3b1473)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c55be=this['editor'],_0x1c29e5=_0x4c55be['locale'];_0x4c55be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25b43f=>{if('formatBlock'!=_0x25b43f['type'])return;const {data:_0xc6865f}=_0x25b43f;if(_0xc6865f&&'htmlEmbed'==_0xc6865f['commandName']){const _0xbdb26e=o(_0x1c29e5,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1c29e5,'*Change\x20%0\x20content*',_0xbdb26e)};}});}}class ot extends _0x1f739f{['afterInit'](){const _0x29cb63=this['editor'];if(!_0x29cb63['plugins']['has']('ImageEditing'))return;const _0x25eb74=_0x29cb63['plugins']['get']('TrackChangesEditing'),_0x2dcc7c=_0x29cb63['plugins']['get']('ImageUtils'),_0x3af89=_0x29cb63['locale'];_0x25eb74['enableCommand']('insertImage'),_0x25eb74['descriptionFactory']['registerElementLabel']('imageBlock',_0x19c4d6=>o(_0x3af89,'ELEMENT_IMAGE',_0x19c4d6)),_0x25eb74['descriptionFactory']['registerElementLabel']('imageInline',_0x1ac169=>o(_0x3af89,'ELEMENT_INLINE_IMAGE',_0x1ac169)),_0x25eb74['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3af89,'ELEMENT_CAPTION')),_0x29cb63['plugins']['has']('ImageUploadEditing')&&_0x25eb74['enableCommand']('uploadImage'),_0x29cb63['plugins']['has']('ImageBlockEditing')&&_0x29cb63['plugins']['has']('ImageInlineEditing')&&(_0x25eb74['enableCommand']('imageTypeInline',(_0x3287f7,_0x5e5b95)=>{const _0x544eb6=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']);_0x29cb63['model']['change'](()=>{_0x25eb74['markBlockFormat'](_0x544eb6,{'commandName':'imageTypeInline','commandParams':[_0x5e5b95]},[],'convertBlockImageToInline');});}),_0x25eb74['enableCommand']('imageTypeBlock',(_0x3272e3,_0x1d18f3)=>{_0x29cb63['model']['change'](_0x2d0887=>{let _0x4e9e9c=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']),_0x5939ee=_0x2d0887['createRangeOn'](_0x4e9e9c);const _0x3ed0fa=_0x486d4b['fromPosition'](_0x5939ee['start'],'toPrevious'),_0x387a8a=_0x486d4b['fromPosition'](_0x5939ee['end'],'toNext');_0x25eb74['forceDefaultExecution'](()=>_0x3272e3(_0x1d18f3)),_0x4e9e9c=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']),_0x5939ee=_0x2d0887['createRangeOn'](_0x4e9e9c);const _0x37d039=_0x2d0887['createRange'](_0x3ed0fa,_0x387a8a);_0x3ed0fa['detach'](),_0x387a8a['detach'](),_0x25eb74['markBlockFormat'](_0x4e9e9c,{'commandName':'imageTypeInline','commandParams':[_0x1d18f3]},[],'convertInlineImageToBlock'),_0x37d039['start']['isBefore'](_0x5939ee['start'])&&_0x25eb74['markInsertion'](_0x2d0887['createRange'](_0x37d039['start'],_0x5939ee['start']),'convertInlineImageToBlock'),_0x5939ee['end']['isBefore'](_0x37d039['end'])&&_0x25eb74['markInsertion'](_0x2d0887['createRange'](_0x5939ee['end'],_0x37d039['end']),'convertInlineImageToBlock');});}),_0x25eb74['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x25eb74['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x25eb74['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x25eb74['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x25eb74['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x25eb74['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x557649])=>{const _0x1a4d11=_0x25eb74['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x14a1dd=_0x557649['start'],_0x2402e4=_0x557649['end'];const _0x4084b2=_0x29cb63['model']['schema']['getNearestSelectionRange'](_0x14a1dd,'backward'),_0x169b2b=_0x29cb63['model']['schema']['getNearestSelectionRange'](_0x2402e4,'forward');_0x4084b2['isCollapsed']&&(_0x14a1dd=_0x4084b2['start']),_0x169b2b['isCollapsed']&&(_0x2402e4=_0x169b2b['end']),_0x1a4d11([_0x29cb63['model']['createRange'](_0x14a1dd,_0x2402e4)]);}),_0x25eb74['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3b5634),_0x25eb74['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3b5634)),_0x29cb63['plugins']['has']('ImageCaptionEditing')&&(_0x25eb74['enableCommand']('toggleImageCaption',(_0x2564e4,_0x1a4957)=>{const _0x4fab57=_0x29cb63['plugins']['get']('ImageCaptionUtils');let _0x1d1851=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']),_0x458633=_0x4fab57['getCaptionFromImageModelElement'](_0x1d1851);_0x29cb63['model']['change'](()=>{if(_0x458633)return void _0x25eb74['markDeletion'](_0x29cb63['model']['createRangeOn'](_0x458633));const _0xb6c2ce=_0x2dcc7c['isBlockImage'](_0x1d1851);_0x2564e4(_0x1a4957),_0x1d1851=_0x2dcc7c['getClosestSelectedImageElement'](_0x29cb63['model']['document']['selection']),_0x458633=_0x4fab57['getCaptionFromImageModelElement'](_0x1d1851),_0x25eb74['markInsertion'](_0x29cb63['model']['createRangeOn'](_0x458633),_0xb6c2ce?null:'imageCaption');});}),_0x25eb74['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3b5634));const _0x438ed8=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb9df14(_0x50677c,_0x2db7b1){const _0x24f556=_0x438ed8['findIndex'](({type:_0x4c9792,subType:_0x29786d})=>_0x50677c['type']==_0x4c9792&&_0x50677c['subType']==_0x29786d),_0x9c3693=_0x438ed8['findIndex'](({type:_0x12755e,subType:_0x32673f})=>_0x2db7b1['type']==_0x12755e&&_0x2db7b1['subType']==_0x32673f);if(_0x24f556<0x0||_0x9c3693<0x0)return!0x1;const _0x180a6b=_0x50677c['getFirstRange'](),_0x56ff09=_0x2db7b1['getFirstRange']();if((0x0==_0x24f556||0x1==_0x24f556)&&0x2==_0x9c3693&&_0x180a6b['isIntersecting'](_0x56ff09))return!0x0;if(0x2==_0x24f556&&0x3==_0x9c3693){const _0x3c9cb7=_0x25eb74['_findSuggestions'](_0x180a6b,'insertion')['filter'](({suggestion:_0x562646,meta:_0x16311e})=>_0x16311e['isOwn']&&'convertInlineImageToBlock'==_0x562646['subType']);if(_0x3c9cb7['length']>0x1&&_0x56ff09['end']['isEqual'](_0x180a6b['start']))return!0x0;if(0x1==_0x3c9cb7['length']&&(_0x180a6b['start']['isEqual'](_0x56ff09['end'])||_0x180a6b['end']['isEqual'](_0x56ff09['start'])))return!0x0;}if(0x3==_0x24f556&&0x3==_0x9c3693&&_0x180a6b['start']['isBefore'](_0x56ff09['start'])){const _0x47eccd=_0x180a6b['end']['nodeAfter'],_0x57c10e=_0x56ff09['start']['nodeBefore'];return _0x2dcc7c['isBlockImage'](_0x47eccd)&&_0x47eccd===_0x57c10e;}return!0x1;}function _0x3b5634(_0x4ca3ec,_0x4b9bdc){return _0xb9df14(_0x4ca3ec,_0x4b9bdc)?[_0x4ca3ec,_0x4b9bdc]:_0xb9df14(_0x4b9bdc,_0x4ca3ec)?[_0x4b9bdc,_0x4ca3ec]:null;}_0x29cb63['plugins']['has']('ImageResize')&&(_0x25eb74['enableDefaultAttributesIntegration']('resizeImage'),_0x25eb74['registerBlockAttribute']('resizedWidth'),_0x25eb74['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3af89,'FORMAT_IMAGE_SIZE'))),_0x29cb63['plugins']['has']('ImageTextAlternativeEditing')&&(_0x25eb74['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x25eb74['registerBlockAttribute']('alt')),_0x25eb74['descriptionFactory']['registerDescriptionCallback'](_0x466e11=>{if(!!_0x438ed8['find'](({type:_0xfa940e,subType:_0x50bc5b})=>_0x466e11['type']==_0xfa940e&&_0x466e11['subType']==_0x50bc5b))return _0x466e11['previous']?{}:void 0x0;}),_0x25eb74['descriptionFactory']['registerDescriptionCallback'](_0x48fa1d=>{if('insertion'==_0x48fa1d['type']||'deletion'==_0x48fa1d['type']){const _0x548181=_0x48fa1d['getContainedElement']();if(_0x548181&&_0x548181['is']('element','caption'))return{'type':'insertion'==_0x48fa1d['type']?'addObject':'removeObject','element':_0x548181,'quantity':0x1};}}),_0x25eb74['descriptionFactory']['registerDescriptionCallback'](_0x490b50=>'formatBlock'==_0x490b50['type']&&'convertInlineImageToBlock'==_0x490b50['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x490b50['type']&&'convertBlockImageToInline'==_0x490b50['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x25eb74['descriptionFactory']['registerDescriptionCallback'](_0x2ae346=>{if('attribute'!=_0x2ae346['type'])return;const {data:_0x2ec086}=_0x2ae346;if(!_0x2ec086||'alt'!=_0x2ec086['key'])return;const _0x2ad445=_0x2ec086['newValue'];return _0x2ad445?{'type':'format','content':o(_0x3af89,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ad445+'\x22')}:{'type':'format','content':o(_0x3af89,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x130600=this['editor'],_0x4343c2=_0x130600['locale'];_0x130600['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5989ac=>{if('formatBlock'!=_0x5989ac['type']&&'formatInline'!=_0x5989ac['type'])return;const {data:_0x379f92}=_0x5989ac;if(_0x379f92){if('imageTextAlternative'==_0x379f92['commandName']){const _0x249a28=_0x379f92['commandParams'][0x0]['newValue'];return _0x249a28?{'type':'format','content':o(_0x4343c2,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x249a28+'\x22')}:{'type':'format','content':o(_0x4343c2,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x379f92['commandName']){const _0x1d44a5=_0x379f92['commandParams'][0x0]['width'];return _0x1d44a5?{'type':'format','content':o(_0x4343c2,'*Set\x20image\x20width:*\x20%0',_0x1d44a5)}:{'type':'format','content':o(_0x4343c2,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xd66636=this['editor']['locale'],_0x6ab8cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x6ab8cc['enableDefaultAttributesIntegration']('replaceImageSource'),_0x6ab8cc['registerBlockAttribute']('src'),_0x6ab8cc['descriptionFactory']['registerDescriptionCallback'](_0x188ae0=>{if('attribute'!=_0x188ae0['type'])return;const {data:_0x240c7c}=_0x188ae0;return _0x240c7c&&'src'==_0x240c7c['key']?_0x240c7c['newValue']&&_0x240c7c['oldValue']?{'type':'format','content':o(_0xd66636,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x46d1d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x46d1d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x46d1d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x46d1d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x46d1d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35a0dc=this['editor'],_0x2f251c=_0x35a0dc['locale'];_0x35a0dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x276327=>{if('formatBlock'!=_0x276327['type']&&'formatInline'!=_0x276327['type'])return;const {data:_0xc304d3}=_0x276327;if(!_0xc304d3||'replaceImageSource'!=_0xc304d3['commandName'])return;return{'type':'format','content':o(_0x2f251c,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x1f739f{['afterInit'](){const _0x5978eb=this['editor'];if(!_0x5978eb['plugins']['has']('ImageStyleEditing'))return;const _0x1eb4b3=_0x5978eb['plugins']['get']('TrackChangesEditing'),_0x28d04f=_0x5978eb['plugins']['get']('ImageUtils'),_0x23169d={};_0x1eb4b3['enableCommand']('imageStyle',(_0x1e43f3,_0x49a659)=>{const _0x134415=_0x5978eb['plugins']['get']('Users')['me'],_0x302415=_0x5978eb['commands']['get']('imageStyle');let _0x37eec1=_0x28d04f['getClosestSelectedImageElement'](_0x5978eb['model']['document']['selection']),_0xe6a032=_0x5978eb['model']['createRangeOn'](_0x37eec1),_0x160133=_0x302415['value'];if(_0x160133==_0x49a659['value'])return;const _0x371207={'commandName':'imageStyle','commandParams':[_0x49a659],'formatGroupId':_0x46f059()};_0x5978eb['model']['change'](()=>{if(_0x1eb4b3['getSuggestions']()['filter'](_0x3a70c4=>_0x3a70c4['isInContent']&&_0x134415==_0x3a70c4['author']&&('formatBlock'==_0x3a70c4['type']||'formatInline'==_0x3a70c4['type'])&&('imageStylePreApply'==_0x3a70c4['subType']||'imageStylePostApply'==_0x3a70c4['subType'])&&_0x3a70c4['getFirstRange']()['isEqual'](_0xe6a032))['forEach'](_0x46e1aa=>_0x1eb4b3['discardSuggestion'](_0x46e1aa['head'])),_0x37eec1=_0x28d04f['getClosestSelectedImageElement'](_0x5978eb['model']['document']['selection']),_0xe6a032=_0x5978eb['model']['createRangeOn'](_0x37eec1),_0x302415['refresh'](),_0x5978eb['commands']['get']('imageTypeInline')['refresh'](),_0x5978eb['commands']['get']('imageTypeBlock')['refresh'](),_0x160133=_0x302415['value'],_0x160133!=_0x49a659['value'])return _0x28d04f['isInlineImage'](_0x37eec1)&&_0x302415['shouldConvertImageType'](_0x49a659['value'],_0x37eec1)?(_0x1e43f3({..._0x49a659,'setImageSizes':!0x1}),_0x37eec1=_0x28d04f['getClosestSelectedImageElement'](_0x5978eb['model']['document']['selection']),void _0x1eb4b3['markBlockFormat'](_0x37eec1,{..._0x371207,'commandReversedParams':[{'value':_0x160133||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28d04f['isBlockImage'](_0x37eec1)?_0x1eb4b3['markBlockFormat'](_0x37eec1,_0x371207,[],'imageStylePostApply'):_0x1eb4b3['markInlineFormat'](_0xe6a032,_0x371207,'imageStylePostApply'));});});for(const _0x2c00a9 of _0x5978eb['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x23169d[_0x2c00a9['name']]=_0x2c00a9['title']['toLowerCase']();_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x53a578])=>{_0x28d04f['setImageNaturalSizeAttributes'](_0x53a578['getContainedElement']());}),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x55df73,_0x1738de)=>{_0x1eb4b3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x55df73,{'commandName':_0x1738de['commandName'],'commandParams':_0x1738de['commandReversedParams']});}),_0x1eb4b3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3a1142,_0x1d6edc){if(_0x5c8d4c(_0x3a1142,_0x1d6edc))return[_0x3a1142,_0x1d6edc];if(_0x5c8d4c(_0x1d6edc,_0x3a1142))return[_0x1d6edc,_0x3a1142];return null;});const _0x7cb512=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c8d4c(_0x127cd9,_0x3cc1ad){const _0x24a80c=_0x7cb512['findIndex'](({type:_0x322871,subType:_0x523b78})=>_0x127cd9['type']==_0x322871&&_0x127cd9['subType']==_0x523b78),_0x585754=_0x7cb512['findIndex'](({type:_0x249373,subType:_0x585661})=>_0x3cc1ad['type']==_0x249373&&_0x3cc1ad['subType']==_0x585661);if(_0x24a80c<0x0||_0x585754<0x0)return!0x1;const _0x5e5e5c=_0x127cd9['getFirstRange'](),_0xac6f0c=_0x3cc1ad['getFirstRange']();if((0x0==_0x24a80c||0x1==_0x24a80c)&&0x2==_0x585754&&_0x5e5e5c['isIntersecting'](_0xac6f0c))return!0x0;if(0x2==_0x24a80c&&0x3==_0x585754){const _0x262128=_0x1eb4b3['_findSuggestions'](_0x5e5e5c,'insertion')['filter'](({suggestion:_0x52f333,meta:_0xf83799})=>_0xf83799['isOwn']&&'convertInlineImageToBlock'==_0x52f333['subType']);if(_0x262128['length']>0x1&&_0xac6f0c['end']['isEqual'](_0x5e5e5c['start']))return!0x0;if(0x1==_0x262128['length']&&(_0x5e5e5c['start']['isEqual'](_0xac6f0c['end'])||_0x5e5e5c['end']['isEqual'](_0xac6f0c['start'])))return!0x0;}if(0x3==_0x24a80c&&0x3==_0x585754&&_0x5e5e5c['start']['isBefore'](_0xac6f0c['start'])){const _0x4293d8=_0x5e5e5c['end']['nodeAfter'],_0x2debf8=_0xac6f0c['start']['nodeBefore'];return _0x28d04f['isBlockImage'](_0x4293d8)&&_0x4293d8===_0x2debf8;}return!0x1;}_0x5978eb['model']['document']['registerPostFixer'](()=>{let _0x182167=!0x1;const _0x5472c7=Array['from'](_0x5978eb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x74afa0,data:_0x267fe0}of _0x5472c7){const {group:_0xc92dcc,type:_0x317400,subType:_0x873b55,id:_0x44a31d}=_0x1eb4b3['_splitMarkerName'](_0x74afa0);if('suggestion'==_0xc92dcc&&_0x1eb4b3['hasSuggestion'](_0x44a31d)){if('formatBlock'==_0x317400&&('imageStylePreApply'==_0x873b55||'imageStylePostApply'==_0x873b55)){const _0x2e95b0=_0x1eb4b3['getSuggestion'](_0x44a31d);if(_0x267fe0['newRange']){const _0x375d1f=_0x2e95b0['getFirstRange']()['getContainedElement']();if(_0x28d04f['isBlockImage'](_0x375d1f))continue;_0x1eb4b3['discardSuggestion'](_0x2e95b0),_0x182167=!0x0;}}if('insertion'==_0x317400&&'imageCaption'==_0x873b55&&!_0x267fe0['newRange']){const _0x17ba5c=_0x1eb4b3['getSuggestion'](_0x44a31d);_0x17ba5c['next']&&_0x17ba5c['next']['isInContent']&&(_0x1eb4b3['discardSuggestion'](_0x17ba5c['next']),_0x182167=!0x0);}}}return _0x182167;}),this['_registerLegacyDescription'](_0x23169d);}['_registerLegacyDescription'](_0x13b737){const _0x3c807a=this['editor'],_0x48b7be=_0x3c807a['locale'];_0x3c807a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x509571=>{if('formatBlock'!=_0x509571['type']&&'formatInline'!=_0x509571['type'])return;const {data:_0x55064d}=_0x509571;if(!_0x55064d||'imageStyle'!=_0x55064d['commandName'])return;const _0x50bae9=_0x55064d['commandParams'][0x0]['value'];return _0x8ea767('side'===_0x50bae9?o(_0x48b7be,'FORMAT_SIDE_IMAGE'):_0x13b737[_0x50bae9]||_0x50bae9);function _0x8ea767(_0xa7cc39){return{'type':'format','content':o(_0x48b7be,'*Format:*\x20%0',_0xa7cc39)};}});}}class ct extends _0x1f739f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x7726ee){super(_0x7726ee),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x33eab1=this['editor'],_0x24a3c3=_0x33eab1['commands']['get']('importWord'),_0x487190=_0x33eab1['commands']['get']('trackChanges');_0x24a3c3&&(_0x24a3c3['on']('execute',(_0x448420,[,_0x31cbcf])=>{this['_trackChangesValueDuringImport']=_0x487190['value'],_0x31cbcf['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x24a3c3,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x24a3c3,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x487190['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x33eab1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x272c9b,_0x70b774){const {suggestions:_0x474d73}=_0x70b774,_0x5efb90=this['editor']['commands']['get']('trackChanges'),_0x32b466=_0x5efb90['value'];this['_trackChangesValueDuringImport']!==_0x32b466&&(_0x5efb90['execute'](),this['_trackChangesExecuted']=!0x0),_0x474d73&&_0x474d73['forEach'](({id:_0x55a13c,type:_0x28c016,author:_0x313032,created_at:_0x4a389f})=>{const _0x2a39fe={'id':_0x55a13c,'type':_0x28c016,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x313032,'createdAt':_0x4a389f?new Date(_0x4a389f):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2a39fe);});}}class ut extends _0x1f739f{['afterInit'](){const _0x23320d=this['editor'],_0x82bb94=_0x23320d['plugins']['get']('TrackChangesEditing');if(_0x23320d['plugins']['has']('IndentEditing')&&(_0x82bb94['enableCommand']('indent'),_0x82bb94['enableCommand']('outdent')),_0x23320d['plugins']['has']('IndentBlock')){for(const _0x4a15b8 of['indentBlock','outdentBlock'])_0x82bb94['enableDefaultAttributesIntegration'](_0x4a15b8);}const _0x2a999b=_0x23320d['locale'];_0x82bb94['registerBlockAttribute']('blockIndent'),_0x82bb94['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x2a999b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31b989=this['editor'],_0x51afe5=_0x31b989['locale'],_0x445c96=_0x31b989['plugins']['get']('TrackChangesEditing');_0x445c96['descriptionFactory']['registerDescriptionCallback'](_0x2f0cc1=>{if('formatBlock'!=_0x2f0cc1['type'])return;const {data:_0x9728d4}=_0x2f0cc1;if(!_0x9728d4)return;if('indentBlock'!=_0x9728d4['commandName']&&'outdentBlock'!=_0x9728d4['commandName'])return;const _0x1e6357=_0x2f0cc1['getItems']()[0x0],_0x581cbe=_0x445c96['descriptionFactory']['getItemLabel'](_0x1e6357);return'indentBlock'==_0x9728d4['commandName']?{'type':'format','content':o(_0x51afe5,'*Indent:*\x20%0',_0x581cbe)}:'outdentBlock'==_0x9728d4['commandName']?{'type':'format','content':o(_0x51afe5,'*Outdent:*\x20%0',_0x581cbe)}:void 0x0;});}}class ft extends _0x1f739f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1f739f{['afterInit'](){const _0xf0480c=this['editor'];if(!_0xf0480c['plugins']['has']('LinkEditing'))return;const _0xb11d85=_0xf0480c['plugins']['get']('TrackChangesEditing'),_0x3b8ab3=_0xf0480c['commands']['get']('link');_0xb11d85['enableDefaultAttributesIntegration']('link'),_0xb11d85['enableDefaultAttributesIntegration']('unlink'),_0xb11d85['registerInlineAttribute']('linkHref');for(const _0x57b48c of _0x3b8ab3['manualDecorators'])_0xb11d85['registerInlineAttribute'](_0x57b48c['id']),_0xb11d85['descriptionFactory']['registerAttributeLabel'](_0x57b48c['id'],'link\x20('+_0x57b48c['label']['toLowerCase']()+')');_0xb11d85['descriptionFactory']['registerDescriptionCallback'](_0x53e619=>{if('attribute'!=_0x53e619['type'])return;const {data:_0x4a5239}=_0x53e619;if(!_0x4a5239||'linkHref'!=_0x4a5239['key'])return;const _0x2258ed=_0x4a5239['newValue'],_0x5daf0e=_0xf0480c['locale'];return{'type':'format','content':null==_0x2258ed?o(_0x5daf0e,'*Remove\x20link*'):o(_0x5daf0e,'*Set\x20link:*\x20%0','\x22'+_0x2258ed+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x452ce5=this['editor'],_0x32868f=_0x452ce5['locale'];_0x452ce5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba776=>{if('formatInline'!=_0x2ba776['type'])return;const {data:_0x36f292}=_0x2ba776;if(_0x36f292){if('link'==_0x36f292['commandName']){const _0x26e1c8=_0x36f292['commandParams'][0x0];return{'type':'format','content':o(_0x32868f,'*Set\x20link:*\x20%0','\x22'+_0x26e1c8+'\x22')};}return'unlink'==_0x36f292['commandName']?{'type':'format','content':o(_0x32868f,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x1f739f{['afterInit'](){const _0x2a1f52=this['editor'],_0x4038d6=_0x2a1f52['locale'];if(!_0x2a1f52['plugins']['has']('LegacyListEditing'))return;const _0x18518e=_0x2a1f52['plugins']['get']('TrackChangesEditing'),_0x2f5d62=_0x2a1f52['plugins']['has']('LegacyTodoListEditing');function _0xb184f9(_0x44e485){return()=>{const _0x2f6c26=_0x2a1f52['model']['document']['selection'],_0x3eefff=_0x2a1f52['commands']['get'](_0x44e485);if(_0x3eefff['value'])return void _0x2a1f52['execute']('paragraph',{});const _0xe39c95=_0x44e485['slice'](0x0,-0x4),_0x5e2299=function(_0x4bbce4,_0x20932f,_0x3264a0){let _0x5c1f04=Array['from'](_0x4bbce4)['filter'](_0x3846b7=>function(_0x5d1f30,_0x31cefe){return _0x31cefe['checkChild'](_0x5d1f30['parent'],'listItem')&&!_0x31cefe['isObject'](_0x5d1f30);}(_0x3846b7,_0x3264a0));_0x5c1f04=_0x5c1f04['filter'](_0x4db04d=>!_0x4db04d['is']('element','listItem')||_0x4db04d['getAttribute']('listType')!=_0x20932f);const _0x5be744=new Set();for(const _0x4ba2b8 of _0x5c1f04)_0x4ba2b8['is']('element','listItem')?_0x5be744['add'](Le(_0x4ba2b8)):_0x5be744['add'](_0x4ba2b8);return Array['from'](_0x5be744);}(_0x2f6c26['getSelectedBlocks'](),_0xe39c95,_0x2a1f52['model']['schema']);_0x2a1f52['model']['change'](()=>{for(const _0x107bbd of _0x5e2299)_0x18518e['markBlockFormat'](_0x107bbd,{'commandName':_0x44e485,'commandParams':[{'forceValue':!_0x3eefff['value']}],'formatGroupId':'blockName'},Ee(_0x107bbd));});};}function _0x4fe744(_0x1c8909){return()=>{const _0x1bb97c=function(_0x19c1c0){let _0x5158d4=Array['from'](_0x19c1c0);const _0x226ee8=_0x5158d4['findIndex'](_0x1ff575=>'listItem'!=_0x1ff575['name']);return _0x226ee8>-0x1&&(_0x5158d4=_0x5158d4['slice'](0x0,_0x226ee8)),_0x5158d4;}(_0x2a1f52['model']['document']['selection']['getSelectedBlocks']()),_0x1007b8=_0x2a1f52['model']['createRange'](_0x2a1f52['model']['createPositionAt'](_0x1bb97c[0x0],'before'),_0x2a1f52['model']['createPositionAt'](_0x1bb97c[_0x1bb97c['length']-0x1],'end'));_0x2a1f52['model']['change'](()=>{_0x18518e['markBlockFormat'](_0x1007b8,{'commandName':_0x1c8909,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3e3bdb){const _0x5bee2c=new Set();for(const _0x584dd5 of _0x3e3bdb){let _0x1605d2=_0x584dd5['nextSibling'];for(;_0x1605d2&&_0x1605d2['getAttribute']('listIndent')>_0x584dd5['getAttribute']('listIndent');)_0x5bee2c['add'](_0x1605d2),_0x1605d2=_0x1605d2['nextSibling'];}return Array['from'](_0x5bee2c);}(_0x1bb97c));});};}_0x18518e['enableCommand']('numberedList',_0xb184f9('numberedList')),_0x18518e['enableCommand']('bulletedList',_0xb184f9('bulletedList')),_0x2f5d62&&_0x18518e['enableCommand']('todoList',_0xb184f9('todoList')),_0x18518e['enableCommand']('indentList',_0x4fe744('indentList')),_0x18518e['enableCommand']('outdentList',_0x4fe744('outdentList')),_0x2f5d62&&_0x18518e['enableCommand']('checkTodoList',()=>{const _0x1c80a7=_0x2a1f52['commands']['get']('checkTodoList'),_0xd4c2a1=Array['from'](_0x1c80a7['_selectedElements']);_0xd4c2a1['filter'](_0x368102=>_0x368102['getAttribute']('todoListChecked')!=_0x1c80a7['value']),_0x2a1f52['model']['change'](()=>{for(const _0xd753e1 of _0xd4c2a1)_0x18518e['markBlockFormat'](_0xd753e1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1c80a7['value']}]});});}),_0x18518e['descriptionFactory']['registerElementLabel']('listItem',_0x57766f=>o(_0x4038d6,'ELEMENT_LIST_ITEM',_0x57766f)),_0x18518e['descriptionFactory']['registerDescriptionCallback'](_0x5f1be8=>{if('formatBlock'!=_0x5f1be8['type']&&'formatInline'!=_0x5f1be8['type'])return;const {data:_0x321deb}=_0x5f1be8;if(_0x321deb){if('numberedList'==_0x321deb['commandName']||'bulletedList'==_0x321deb['commandName']||'todoList'==_0x321deb['commandName'])switch(_0x321deb['commandName']['replace']('List','')){case'bulleted':return _0xa57374(o(_0x4038d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa57374(o(_0x4038d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa57374(o(_0x4038d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x321deb['commandName'])return{'type':'format','content':o(_0x4038d6,'*Indent:*\x20%0',o(_0x4038d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x321deb['commandName'])return{'type':'format','content':o(_0x4038d6,'*Outdent:*\x20%0',o(_0x4038d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x321deb['commandName'])return _0x321deb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4038d6,'*Check\x20item*')}:{'type':'format','content':o(_0x4038d6,'*Uncheck\x20item*')};}function _0xa57374(_0x43b69d){return{'type':'format','content':o(_0x4038d6,'*Change\x20to:*\x20%0',_0x43b69d)};}});}}function Le(_0x263c7a){const _0x1d7a8a=_0x263c7a['getAttribute']('listIndent');if(0x0==_0x1d7a8a)return _0x263c7a;let _0x2e138d=_0x263c7a;for(;_0x263c7a['previousSibling']&&_0x263c7a['previousSibling']['is']('element','listItem');){const _0x348b2c=_0x263c7a['previousSibling']['getAttribute']('listIndent');if(_0x348b2c==_0x1d7a8a)_0x2e138d=_0x263c7a['previousSibling'];else{if(_0x348b2c<_0x1d7a8a)break;}_0x263c7a=_0x263c7a['previousSibling'];}return _0x2e138d;}function Ee(_0x1426d5){const _0x4cf4e3=[];if(_0x1426d5['is']('element','listItem')&&_0x1426d5['getAttribute']('listIndent')>0x0){let _0x41c67a=_0x1426d5['nextSibling'];for(;_0x41c67a&&'listItem'==_0x41c67a['name']&&_0x41c67a['getAttribute']('listIndent')==_0x1426d5['getAttribute']('listIndent');)_0x4cf4e3['push'](_0x41c67a),_0x41c67a=_0x41c67a['nextSibling'];}return _0x4cf4e3;}class Q extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5e3b62=this['editor']['config']['get']('list.properties'),_0x3dad5a=this['editor']['plugins']['get']('TrackChangesEditing');_0x5e3b62['styles']&&_0x3dad5a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5e3b62['reversed']&&_0x3dad5a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5e3b62['startIndex']&&_0x3dad5a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3dad5a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x18d673,_0x45e6ad={}){const _0x498866=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cb099=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x498866['markMultiRangeBlockFormat'](_0x2cb099,{'commandName':'listStyle','commandParams':[{'type':_0x45e6ad['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3996b5,_0x21e8de={}){const _0x2d6c25=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52f7df=this['_getSuggestionBlocks'](_0x4e533b=>_0x4e533b['is']('element','listItem')&&'numbered'===_0x4e533b['getAttribute']('listType'));if(_0x52f7df['length']<0x1)return;const _0x1a92fa=_0x52f7df['map'](_0x4755a6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4755a6,'before'),this['editor']['model']['createPositionAt'](_0x4755a6,0x0)));this['editor']['model']['change'](()=>{_0x2d6c25['markMultiRangeBlockFormat'](_0x1a92fa,{'commandName':'listReversed','commandParams':[{'reversed':_0x21e8de['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x326758,_0x62fc44={}){const _0x2a3a58=this['editor']['plugins']['get']('TrackChangesEditing'),_0x329cae=this['_getSuggestionBlocks'](_0x1028ee=>_0x1028ee['is']('element','listItem')&&'numbered'===_0x1028ee['getAttribute']('listType'));if(_0x329cae['length']<0x1)return;const _0xa31932=_0x329cae['map'](_0x375ee5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x375ee5,'before'),this['editor']['model']['createPositionAt'](_0x375ee5,0x0)));this['editor']['model']['change'](()=>{_0x2a3a58['markMultiRangeBlockFormat'](_0xa31932,{'commandName':'listStart','commandParams':[{'startIndex':_0x62fc44['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xbc413f){if('formatBlock'!=_0xbc413f['type']&&'formatInline'!=_0xbc413f['type'])return;const _0xb024e6=this['editor']['locale'],{data:_0x43bef5}=_0xbc413f;if(!_0x43bef5)return;let _0x1738ea,_0x5b432c;switch(_0x43bef5['commandName']){case'listStyle':_0x1738ea='*Change\x20to:*\x20%0',_0x5b432c={'type':'format','content':o(_0xb024e6,_0x1738ea,o(_0xb024e6,this['_getTranslationKeyForListStyle'](_0x43bef5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1738ea=_0x43bef5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b432c={'type':'format','content':o(_0xb024e6,_0x1738ea)};break;case'listStart':_0x1738ea='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b432c={'type':'format','content':o(_0xb024e6,_0x1738ea,_0x43bef5['commandParams'][0x0]['startIndex'])};}return _0x5b432c;}['_getSuggestionBlocksForListStyle'](){const _0x1c8f19=this['editor']['plugins']['get']('LegacyListUtils');let _0xbad34d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xbad34d[0x0]?.['is']('element','listItem')&&_0xbad34d['unshift'](..._0x1c8f19['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xbad34d[_0xbad34d['length']-0x1]?.['is']('element','listItem')&&_0xbad34d['push'](..._0x1c8f19['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xbad34d=[...new Set(_0xbad34d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xbad34d=_0xbad34d['filter'](_0xf383bf=>_0xf383bf['is']('element','listItem'))),_0xbad34d;}['_getSuggestionBlocks'](_0x17b092){const _0x1d455b=this['editor']['plugins']['get']('LegacyListUtils');let _0xe19366=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x17b092)['map'](_0x5d922e=>{const _0x3446d5=this['editor']['model']['createPositionAt'](_0x5d922e,0x0);return[..._0x1d455b['getSiblingNodes'](_0x3446d5,'backward'),..._0x1d455b['getSiblingNodes'](_0x3446d5,'forward')];})['flat']();return _0xe19366=[...new Set(_0xe19366)],_0xe19366;}['_getTranslationKeyForListStyle'](_0x536154){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x536154)||'default')['toUpperCase']()+'_LIST_'+_0x536154['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x1f739f{['afterInit'](){const _0x19fc9b=this['editor'];if(!_0x19fc9b['plugins']['has']('MediaEmbedEditing'))return;const _0x13657f=_0x19fc9b['plugins']['get']('TrackChangesEditing'),_0x24dbc7=_0x19fc9b['locale'];_0x13657f['enableCommand']('mediaEmbed'),_0x13657f['descriptionFactory']['registerElementLabel']('media',_0x11af5a=>o(_0x24dbc7,'ELEMENT_MEDIA',_0x11af5a)),_0x19fc9b['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4195c4,{writer:_0x4c2766,options:_0x1979da})=>{if(_0x1979da['showSuggestionHighlights'])return _0x4c2766['createEmptyElement']('div');},'converterPriority':'high'}),_0x19fc9b['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3440c3,_0x1401d7,_0x374c02)=>{_0x374c02['options']['showSuggestionHighlights']&&_0x3440c3['stop']();},{'priority':'high'});}}class mt extends _0x1f739f{['afterInit'](){const _0xbb3d68=this['editor'];_0xbb3d68['plugins']['has']('MentionEditing')&&_0xbb3d68['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x1f739f{['afterInit'](){const _0x2cfac8=this['editor'];if(!_0x2cfac8['plugins']['has']('MergeFieldsEditing'))return;_0x2cfac8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x2cfac8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x411863=_0x2cfac8['plugins']['get']('TrackChangesEditing'),_0x5df812=_0x2cfac8['locale'];_0x411863['descriptionFactory']['registerElementLabel']('mergeField',_0x24d2f7=>o(_0x5df812,'ELEMENT_MERGE_FIELD',_0x24d2f7)),_0x411863['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x45f4c5=>o(_0x5df812,'ELEMENT_MERGE_FIELD',_0x45f4c5)),_0x411863['descriptionFactory']['registerDescriptionCallback'](_0x270a9b=>{if('insertion'!=_0x270a9b['type']&&'deletion'!=_0x270a9b['type'])return;const _0x222c15=_0x270a9b['getContainedElement']();if(null==_0x222c15)return;if(!_0x222c15['is']('element','mergeField')&&!_0x222c15['is']('element','mergeFieldBlock'))return;const _0x14dc35=_0x2cfac8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x222c15['getAttribute']('id'));return'insertion'==_0x270a9b['type']?{'type':'insertion','content':o(_0x5df812,'*Insert:*\x20%0','\x22'+_0x14dc35+'\x22\x20'+o(_0x5df812,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5df812,'*Remove:*\x20%0','\x22'+_0x14dc35+'\x22\x20'+o(_0x5df812,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x1f739f{['afterInit'](){const _0x586570=this['editor'],_0x1dc0d8=_0x586570['plugins']['get']('TrackChangesEditing');_0x586570['plugins']['has']('MultiLevelList')&&(_0x1dc0d8['enableDefaultAttributesIntegration']('multiLevelList'),_0x1dc0d8['registerBlockAttribute']('listMarkerStyle'),_0x1dc0d8['descriptionFactory']['registerDescriptionCallback'](_0x37f855=>this['handleDescriptions'](_0x37f855)));}['handleDescriptions'](_0x269de7){const _0x12612a=this['editor']['locale'],{data:_0x350563}=_0x269de7,_0x4146a2={'type':'format','content':''};if(_0x350563&&'listMarkerStyle'==_0x350563['key']){if(!_0x350563['oldValue'])return{'type':'format','content':o(_0x12612a,'*Set\x20format:*\x20%0',o(_0x12612a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x350563['newValue']+')'};if(!_0x350563['newValue']){let _0x5a729c=_0x269de7['head'];for(;_0x5a729c;){if(_0x5a729c['data']&&'listType'==_0x5a729c['data']['key']&&_0x5a729c['data']['newValue'])return _0x4146a2;_0x5a729c=_0x5a729c['next'];}return{'type':'format','content':o(_0x12612a,'*Remove\x20format:*\x20%0',o(_0x12612a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x350563['oldValue']+')'};}}}}class kt extends _0x1f739f{['afterInit'](){const _0x548f5c=this['editor'];if(!_0x548f5c['plugins']['has']('PageBreakEditing'))return;_0x548f5c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a67f1=_0x548f5c['plugins']['get']('TrackChangesEditing'),_0x314cc4=_0x548f5c['locale'];_0x3a67f1['descriptionFactory']['registerElementLabel']('pageBreak',_0x3e8ed7=>o(_0x314cc4,'ELEMENT_PAGE_BREAK',_0x3e8ed7));}}class bt extends _0x1f739f{['afterInit'](){const _0x276ea1=this['editor'];if(!_0x276ea1['plugins']['has']('Paragraph'))return;const _0x26d924=_0x276ea1['locale'],_0x4376c4=_0x276ea1['plugins']['get']('TrackChangesEditing');_0x4376c4['descriptionFactory']['registerElementLabel']('paragraph',_0x465d01=>o(_0x26d924,'ELEMENT_PARAGRAPH',_0x465d01)),_0x4376c4['enableDefaultAttributesIntegration']('paragraph'),_0x4376c4['enableCommand']('insertParagraph'),_0x276ea1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x276ea1),{'priority':'highest'}),_0x276ea1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e9d2e,_0x471ef0,_0x4a7ddd)=>{_0x4a7ddd['options']['showSuggestionHighlights']&&nr(_0x276ea1,{'showActiveMarker':!0x1})(_0x2e9d2e,_0x471ef0,_0x4a7ddd);},{'priority':'highest'});const _0x4de964=_0x4376c4['descriptionFactory'];_0x4de964['registerDescriptionCallback'](_0x35409a=>{if('insertion'!==_0x35409a['type'])return;const {start:_0x543de0,end:_0x115cae}=_0x35409a['getFirstRange']();if(!_0x543de0['isTouching'](_0x115cae)||!_0x543de0['nodeAfter'])return;const _0x49d7cd=_0x276ea1['model']['schema'],_0xdf2810=_0x543de0['nodeAfter'];return _0x49d7cd['isBlock'](_0xdf2810)&&!_0x49d7cd['isLimit'](_0xdf2810)&&_0x49d7cd['checkChild'](_0xdf2810,'$text')?{'type':'insertion','content':o(_0x26d924,'*Insert:*\x20%0',_0x4de964['getItemLabel'](_0xdf2810,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11b50a=this['editor'],_0x1c339c=_0x11b50a['locale'];_0x11b50a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f4992=>{if('formatBlock'!=_0x5f4992['type'])return;const {data:_0x490732}=_0x5f4992;return _0x490732&&'paragraph'==_0x490732['commandName']?{'type':'format','content':o(_0x1c339c,'*Change\x20to:*\x20%0',o(_0x1c339c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x11f71c,{showActiveMarker:_0x14cc1f=!0x0}={}){return(_0x511695,_0x48a5a7,_0x2af6c6)=>{const _0x9ffe4b=_0x11f71c['plugins']['get']('TrackChangesEditing'),_0x2335ac=_0x48a5a7['markerRange']['start'],_0x4884dc=_0x48a5a7['markerRange']['end'],_0x447969=_0x11f71c['model']['schema'];if(!_0x2335ac['isTouching'](_0x4884dc)||!_0x2335ac['nodeAfter'])return;const _0x476899=_0x2335ac['nodeAfter'];if(_0x447969['isBlock'](_0x476899)&&!_0x447969['isLimit'](_0x476899)&&_0x447969['checkChild'](_0x476899,'$text')){if(!_0x2af6c6['consumable']['consume'](_0x48a5a7['markerRange'],_0x511695['name']))return;const {authorId:_0x549286}=_0x9ffe4b['_splitMarkerName'](_0x48a5a7['markerName']),_0x3e3939=_0x2af6c6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x549286}),_0x1f74d1=_0x2af6c6['mapper']['toViewPosition'](_0x4884dc);_0x14cc1f&&_0x9ffe4b['activeMarkers']['includes'](_0x48a5a7['markerName'])&&_0x2af6c6['writer']['addClass']('ck-suggestion-marker--active',_0x3e3939),_0x2af6c6['writer']['insert'](_0x1f74d1,_0x3e3939),_0x2af6c6['mapper']['bindElementToMarker'](_0x3e3939,_0x48a5a7['markerName']);}};}class yt extends _0x1f739f{['afterInit'](){const _0x36473b=this['editor'];if(!_0x36473b['plugins']['has']('RemoveFormatEditing'))return;_0x36473b['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x321408=this['editor'];_0x321408['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aa7a9=>{if('formatBlock'!=_0x4aa7a9['type']&&'formatInline'!=_0x4aa7a9['type'])return;const {data:_0x64b9d4}=_0x4aa7a9;return _0x64b9d4&&'removeFormat'==_0x64b9d4['commandName']?{'type':'format','content':o(_0x321408['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x1f739f{['afterInit'](){const _0x266ab6=this['editor'];if(!_0x266ab6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x47cf12=_0x266ab6['plugins']['get']('TrackChangesEditing');_0x47cf12['enableCommand']('goToPreviousRestrictedEditingException'),_0x47cf12['enableCommand']('goToNextRestrictedEditingException');const _0x3ad71f=_0x266ab6['plugins']['get']('RestrictedEditingModeEditing');_0x3ad71f['enableCommand']('trackChanges'),_0x3ad71f['enableCommand']('acceptSuggestion'),_0x3ad71f['enableCommand']('discardSuggestion'),_0x3ad71f['enableCommand']('acceptAllSuggestions'),_0x3ad71f['enableCommand']('discardAllSuggestions'),_0x3ad71f['enableCommand']('acceptSelectedSuggestions'),_0x3ad71f['enableCommand']('discardSelectedSuggestions');}}class St extends _0x1f739f{static get['requires'](){return[_0x31c13c];}['init'](){const _0x538dc1=this['editor'],_0x11924e=_0x538dc1['plugins']['get']('TrackChangesEditing');_0x11924e['enableCommand']('shiftEnter'),_0x538dc1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x538dc1),{'priority':'high'}),_0x538dc1['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x538dc1),{'priority':'high'}),_0x538dc1['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x17f7b3,_0x48e70c,_0x50aa7c)=>{_0x50aa7c['options']['showSuggestionHighlights']&&ke(_0x538dc1,{'showActiveMarker':!0x1})(_0x17f7b3,_0x48e70c,_0x50aa7c);}),_0x11924e['descriptionFactory']['registerElementLabel']('softBreak',_0x2d2aff=>o(_0x538dc1['locale'],'ELEMENT_LINE_BREAK',_0x2d2aff));}}function ke(_0x1cb5cc,{showActiveMarker:_0x52a2f2=!0x0}={}){return(_0x49f9d,_0x3efb78,_0x56402d)=>{const _0x5dc863=_0x1cb5cc['plugins']['get']('TrackChangesEditing');if(!_0x56402d['consumable']['test'](_0x3efb78['markerRange'],_0x49f9d['name']))return;const _0x20a66e=_0x1cb5cc['model'];for(const _0xec12a4 of _0x3efb78['markerRange']['getItems']()){if(!_0xec12a4['is']('element','softBreak'))continue;const _0x51933a='deletion'==_0x3efb78['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x475a9a}=_0x5dc863['_splitMarkerName'](_0x3efb78['markerName']),_0x981b5b=_0x56402d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51933a,'data-author-id':_0x475a9a}),_0x373a19=_0x56402d['mapper']['toViewPosition'](_0x20a66e['createPositionBefore'](_0xec12a4));_0x52a2f2&&_0x5dc863['activeMarkers']['includes'](_0x3efb78['markerName'])&&_0x56402d['writer']['addClass']('ck-suggestion-marker--active',_0x981b5b),_0x56402d['writer']['insert'](_0x373a19,_0x981b5b),_0x56402d['mapper']['bindElementToMarker'](_0x981b5b,_0x3efb78['markerName']);}};}class At extends _0x1f739f{['afterInit'](){const _0x39cefa=this['editor'],_0x39f893=_0x39cefa['model'],_0x513906=_0x39cefa['locale'];if(!_0x39cefa['plugins']['has']('StandardEditingModeEditing'))return;const _0x469fef=_0x39cefa['plugins']['get']('TrackChangesEditing'),_0x536def='restrictedEditingException',_0xc9a0c=_0x39cefa['commands']['get'](_0x536def);_0x469fef['enableCommand'](_0x536def,(_0x1ed3bf,_0x25fd2a={})=>{const _0x585bee=_0x39f893['document']['selection'];if(_0x585bee['isCollapsed'])return void _0x1ed3bf(_0x25fd2a);const _0x461769=void 0x0!==_0x25fd2a['forceValue']?_0x25fd2a['forceValue']:!_0xc9a0c['value'];_0x39f893['change'](()=>{const _0x3f08e5=Array['from'](_0x585bee['getRanges']());for(const _0x2ae4d2 of _0x3f08e5){const _0x8529ea=_0x461769?[_0x2ae4d2]:io(_0x536def,_0x2ae4d2,_0x39f893);for(const _0x4c5967 of _0x8529ea)_0x469fef['markInlineFormat'](_0x4c5967,{'commandName':_0x536def,'commandParams':[{'forceValue':_0x461769}]});}});}),_0x469fef['descriptionFactory']['registerDescriptionCallback'](_0x529540=>{if('formatBlock'!=_0x529540['type']&&'formatInline'!=_0x529540['type'])return;const {data:_0x16af46}=_0x529540;return _0x16af46&&_0x16af46['commandName']==_0x536def?_0x16af46['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x513906,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x513906,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x1f739f{['afterInit'](){const _0x5c8d93=this['editor'];if(!_0x5c8d93['plugins']['has']('Style')||!_0x5c8d93['plugins']['has']('DataSchema'))return;const _0x4ca073=_0x5c8d93['plugins']['get']('TrackChangesEditing'),_0x2a9697=_0x5c8d93['locale'],_0x1f4fb9=_0x5c8d93['config']['get']('style')||{},_0xece41b=_0x5c8d93['plugins']['get']('GeneralHtmlSupport'),_0x457c3a=_0x5c8d93['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5c8d93['plugins']['get']('DataSchema'),_0x1f4fb9['definitions']);_0x4ca073['enableDefaultAttributesIntegration']('style');const _0x4c937a=new Set();for(const _0x198d10 of _0x457c3a['block']){const _0x36eb2c=_0xece41b['getGhsAttributeNameForElement'](_0x198d10['element']);_0x4c937a['add'](_0x36eb2c);}const _0x3935e7=new Set();for(const _0x52fa99 of _0x457c3a['inline']){const _0x402cb3=_0xece41b['getGhsAttributeNameForElement'](_0x52fa99['element']);_0x3935e7['add'](_0x402cb3);for(const _0x21819b of _0x52fa99['ghsAttributes'])_0x3935e7['add'](_0x21819b);}for(const _0xe1e8ee of _0x4c937a)_0x4ca073['registerBlockAttribute'](_0xe1e8ee),_0x4ca073['descriptionFactory']['registerAttributeLabel'](_0xe1e8ee,o(_0x2a9697,'FORMAT_STYLE'));for(const _0x2a349e of _0x3935e7)_0x4ca073['registerInlineAttribute'](_0x2a349e),_0x4ca073['descriptionFactory']['registerAttributeLabel'](_0x2a349e,o(_0x2a9697,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26ceee=this['editor'],_0xcdcdaa=_0x26ceee['locale'];_0x26ceee['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x48cd41=>{if('formatBlock'!=_0x48cd41['type']&&'formatInline'!=_0x48cd41['type'])return;const {data:_0xacf58b}=_0x48cd41;return _0xacf58b&&'style'===_0xacf58b['commandName']?_0xacf58b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xcdcdaa,'*Set\x20format:*\x20%0',_0xacf58b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xcdcdaa,'*Remove\x20format:*\x20%0',_0xacf58b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x1f739f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x121469){super(_0x121469),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x17745b=this['editor'],_0x149a30=_0x17745b['model']['document']['selection'];if(!_0x17745b['plugins']['has']('TableEditing'))return;const _0x38df5e=_0x17745b['locale'],_0x278fb7=_0x17745b['plugins']['get']('TrackChangesEditing'),_0x3bdcdc=_0x17745b['plugins']['get']('TableUtils');_0x278fb7['descriptionFactory']['registerElementLabel']('table',_0x37ae08=>o(_0x38df5e,'ELEMENT_TABLE',_0x37ae08)),this['_setupColumnsRowsFixing'](),_0x278fb7['enableCommand']('insertTable'),_0x278fb7['enableCommand']('selectTableRow'),_0x278fb7['enableCommand']('selectTableColumn');for(const _0x427573 of['insertTableRowAbove','insertTableRowBelow']){const _0x528e5d=_0x17745b['commands']['get'](_0x427573);_0x278fb7['enableCommand'](_0x427573,_0x5db502=>{_0x17745b['model']['change'](_0x1b2820=>{_0x5db502();const _0xda77ba='above'===_0x528e5d['order'],_0x4b9f4c=_0x3bdcdc['getSelectionAffectedTableCells'](_0x149a30),_0x5cd5c1=_0x3bdcdc['getRowIndexes'](_0x4b9f4c),_0x53e77d=_0xda77ba?_0x5cd5c1['first']-0x1:_0x5cd5c1['last']+0x1,_0x326240=_0x4b9f4c[0x0]['findAncestor']('table'),_0x4aa2af=_0x3bdcdc['createTableWalker'](_0x326240,{'startRow':_0x53e77d,'endRow':_0x53e77d}),_0x520202=Array['from'](_0x4aa2af)['map'](_0x4a56c5=>_0x1b2820['createRangeOn'](_0x4a56c5['cell']));_0x278fb7['markMultiRangeInsertion'](_0x520202,'tableRow');});});}for(const _0x41df2a of['insertTableColumnLeft','insertTableColumnRight']){const _0xc151df=_0x17745b['commands']['get'](_0x41df2a);_0x278fb7['enableCommand'](_0x41df2a,_0x140d00=>{_0x17745b['model']['change'](_0x419926=>{_0x140d00();const _0x32724c='left'===_0xc151df['order'],_0x2639c1=_0x3bdcdc['getSelectionAffectedTableCells'](_0x149a30),_0xdb509c=_0x3bdcdc['getColumnIndexes'](_0x2639c1),_0x5994fd=_0x32724c?_0xdb509c['first']-0x1:_0xdb509c['last']+0x1,_0x5124f7=_0x2639c1[0x0]['findAncestor']('table'),_0x1702b2=_0x3bdcdc['createTableWalker'](_0x5124f7,{'startRow':0x0,'column':_0x5994fd,'includeAllSlots':!0x1}),_0x58ab66=Array['from'](_0x1702b2)['map'](_0x92ed3e=>_0x419926['createRangeOn'](_0x92ed3e['cell']));_0x278fb7['markMultiRangeInsertion'](_0x58ab66,'tableColumn');});});}for(const _0x16267a of['removeTableRow','removeTableColumn']){const _0x1d254b=_0x16267a['substr'](0xb),_0x4d0325=_0x1d254b['toLowerCase'](),_0x24f7c1=_0x4d0325['substr'](0x0,0x3)+'span',_0x2774b2='table'+_0x1d254b,_0x52a6cd='min'+_0x1d254b,_0x1865c4='max'+_0x1d254b;_0x278fb7['enableCommand'](_0x16267a,()=>{_0x17745b['model']['change'](_0x1660de=>{const _0x1d9c45=_0x3bdcdc['getSelectionAffectedTableCells'](_0x149a30),_0x494829=_0x1d9c45[0x0]['findAncestor']('table');let _0x2fd6ad;if('removeTableRow'==_0x16267a){const _0x2c9805=_0x3bdcdc['getRowIndexes'](_0x1d9c45);_0x2fd6ad={'startRow':_0x2c9805['first'],'endRow':_0x2c9805['last'],'includeAllSlots':!0x0};}else{const _0x39bb7e=_0x3bdcdc['getColumnIndexes'](_0x1d9c45);_0x2fd6ad={'startColumn':_0x39bb7e['first'],'endColumn':_0x39bb7e['last'],'includeAllSlots':!0x0};}const _0x1ac781=_0x3bdcdc['createTableWalker'](_0x494829,_0x2fd6ad),_0x1b10b4=Array['from'](_0x1ac781)['map'](({cell:_0x5eeaf6})=>_0x5eeaf6),_0x5b5e56=Re(_0x1b10b4['filter'](_0x3677c4=>_0x3677c4['hasAttribute'](_0x24f7c1))),_0x26f379=Re(_0x1b10b4['filter'](_0x2b1b0a=>!_0x2b1b0a['hasAttribute'](_0x24f7c1)))['map'](_0x2f30ef=>_0x1660de['createRangeOn'](_0x2f30ef)),_0x4d669c=_0x278fb7['markMultiRangeDeletion'](_0x26f379,_0x2774b2);if(_0x4d669c&&('tableRow'==_0x4d669c['subType']||'tableColumn'==_0x4d669c['subType'])){const _0x1b2e52=this['_getSuggestionCoords'](_0x4d669c);for(const _0x4395eb of _0x5b5e56){const _0x40e9eb=_0x1660de['createRangeOn'](_0x4395eb),_0x3d2cd9=_0x3bdcdc['getCellLocation'](_0x4395eb),_0x16ff34=_0x4395eb['getAttribute'](_0x24f7c1)-0x1,_0x536d97=_0x1b2e52[_0x52a6cd],_0x3e4e2d=_0x1b2e52[_0x1865c4];_0x536d97<=_0x3d2cd9[_0x4d0325]&&_0x3d2cd9[_0x4d0325]+_0x16ff34<=_0x3e4e2d&&_0x4d669c['addRange'](_0x40e9eb);}}});});}function _0xcd0b5e(_0x5ea4ce){const _0x54f2b6=Array['from'](_0x149a30['getRanges']())['map'](_0xc8c743=>_0x1c86da['fromRange'](_0xc8c743));_0x17745b['model']['change'](_0x7520c9=>{const _0x4b3a1a=_0x7520c9['batch'];_0x5ea4ce=_0x5ea4ce['filter'](_0x2af63d=>'$graveyard'!=_0x2af63d['root']['rootName']),_0x7520c9['setSelection'](_0x5ea4ce),_0x17745b['commands']['get']('removeTableRow')['refresh'](),_0x17745b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x17745b['model']['enqueueChange'](()=>{_0x17745b['model']['enqueueChange'](_0x4b3a1a,_0x365301=>{const _0x57f05f=_0x54f2b6['filter'](_0x3b6601=>'$graveyard'!=_0x3b6601['root']['rootName']);_0x57f05f['length']>0x0&&_0x365301['setSelection'](_0x57f05f);for(const _0x5870ac of _0x54f2b6)_0x5870ac['detach']();});});});}function _0x3e0213(_0x32302c){_0x17745b['model']['change'](_0xc076d9=>{const _0x222ca5=Array['from'](_0x149a30['getRanges']())['map'](_0x54b76f=>_0x1c86da['fromRange'](_0x54b76f)),_0x4a88ea=[];for(const _0x5c77c8 of _0x32302c)for(const _0x329268 of _0x5c77c8['getItems']({'shallow':!0x0}))_0x4a88ea['push'](_0x329268);for(const _0x290ee4 of _0x4a88ea)'$graveyard'!=_0x290ee4['root']['rootName']&&(_0xc076d9['setSelection'](_0xc076d9['createPositionAt'](_0x290ee4,0x0)),_0x17745b['commands']['get']('removeTableColumn')['refresh'](),_0x17745b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x415a9d=_0x222ca5['filter'](_0x4ce4e0=>'$graveyard'!=_0x4ce4e0['root']['rootName']);_0x415a9d['length']>0x0&&_0xc076d9['setSelection'](_0x415a9d);for(const _0x3af526 of _0x222ca5)_0x3af526['detach']();});}function _0x16024c(_0x306847,_0x41b18d){return _0x41b18d['every'](_0x14e2e5=>_0x306847['some'](_0x3e9524=>_0x3e9524['end']['isEqual'](_0x14e2e5['start'])||_0x14e2e5['end']['isEqual'](_0x3e9524['start'])));}function _0x5366bb(_0x764523,_0x5b88cb){return!_0x764523['some'](_0x5d64d2=>_0x5b88cb['some'](_0x12eade=>_0x5d64d2['isIntersecting'](_0x12eade)))&&_0x764523['some'](_0x4d0c48=>_0x5b88cb['some'](_0x4a5bfe=>_0x4d0c48['end']['isTouching'](_0x4a5bfe['start'])));}_0x17745b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25b040,_0x570019,_0x5a5ce0)=>{if(!_0x5a5ce0['options']['showSuggestionHighlights'])return;const _0x2a401e=_0x570019['item'];if(!_0x2a401e)return;const _0x534f39=_0x5a5ce0['mapper']['toViewElement'](_0x2a401e);function _0x4bd66c(_0xa87b5a){return Array['isArray'](_0xa87b5a)?_0xa87b5a:[_0xa87b5a];}_0x534f39&&'tableCell'===_0x2a401e['name']&&_0x585a32(_0x534f39,_0x5a5ce0['writer'],(_0x580a9d,_0x44a584,_0x8996e6)=>_0x8996e6['addClass'](_0x4bd66c(_0x44a584['classes']),_0x580a9d),(_0x1f3bc0,_0x19ad92,_0x114834)=>_0x114834['removeClass'](_0x4bd66c(_0x19ad92['classes']),_0x1f3bc0));},{'priority':'highest'}),_0x278fb7['descriptionFactory']['registerDescriptionCallback'](_0x579fea=>{if('insertion'!=_0x579fea['type']&&'deletion'!=_0x579fea['type'])return;const _0x1ad7b4=_0x579fea['getContainedElement']();if(null!=_0x1ad7b4&&_0x1ad7b4['is']('element','table')){if('insertion'==_0x579fea['type']){const _0x106988=_0x579fea['getItems']()['filter'](_0xc2b86c=>_0xc2b86c['is']('$textProxy'))['map'](_0x93ebe2=>_0x93ebe2['data']);if(_0x106988['length'])return{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x106988['join']('\x20')+'\x22'))};}if('deletion'==_0x579fea['type']){const _0x27f678=_0x579fea['getItems']()['filter'](_0x4f4216=>_0x4f4216['is']('$textProxy'))['map'](_0x343870=>_0x343870['data']);if(_0x27f678['length'])return{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x27f678['join']('\x20')+'\x22'))};}}}),_0x278fb7['descriptionFactory']['registerDescriptionCallback'](_0x29a6e3=>{if('tableRow'==_0x29a6e3['subType']){const _0x2de28f=_0x29a6e3['getItems']()['filter'](_0x478e83=>_0x478e83['is']('$textProxy'))['map'](_0x104607=>_0x104607['data']),_0x1f0d05=this['_getSuggestionCoords'](_0x29a6e3),_0x1977f8=_0x1f0d05['maxRow']-_0x1f0d05['minRow']+0x1;if('insertion'==_0x29a6e3['type'])return _0x2de28f['length']?{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1977f8,'\x22'+_0x2de28f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_ROW',_0x1977f8))};if('deletion'==_0x29a6e3['type'])return _0x2de28f['length']?{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1977f8,'\x22'+_0x2de28f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_ROW',_0x1977f8))};}if('tableColumn'==_0x29a6e3['subType']){const _0x19dbb0=_0x29a6e3['getItems']()['filter'](_0x1d8540=>_0x1d8540['is']('$textProxy'))['map'](_0xb520aa=>_0xb520aa['data']),_0x5b9c39=this['_getSuggestionCoords'](_0x29a6e3),_0x5ed758=_0x5b9c39['maxColumn']-_0x5b9c39['minColumn']+0x1;if('insertion'==_0x29a6e3['type'])return _0x19dbb0['length']?{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5ed758,'\x22'+_0x19dbb0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x38df5e,'*Insert:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_COLUMN',_0x5ed758))};if('deletion'==_0x29a6e3['type'])return _0x19dbb0['length']?{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5ed758,'\x22'+_0x19dbb0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x38df5e,'*Remove:*\x20%0',o(_0x38df5e,'ELEMENT_TABLE_COLUMN',_0x5ed758))};}}),_0x278fb7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xcd0b5e),_0x278fb7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xcd0b5e),_0x278fb7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3e0213),_0x278fb7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3e0213),_0x278fb7['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x16024c),_0x278fb7['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x16024c),_0x278fb7['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x5366bb),_0x278fb7['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x5366bb);}['_acceptFormatSuggestionCallbackFactory'](){const _0x216ce1=this['editor'],_0x14bbb1=_0x216ce1['model']['document']['selection'];return(_0x314913,_0x6642)=>{_0x216ce1['model']['change'](_0x1554c4=>{const {commandName:_0x107a2a,commandParams:_0x2a51ef}=_0x6642;let _0x59d660=_0x314913[0x0]['end']['nodeBefore'];_0x2a51ef&&_0x2a51ef[0x0]&&!0x1===_0x2a51ef[0x0]['forceValue']&&(_0x59d660=_0x314913[0x0]['start']['nodeAfter']);const _0x12a514=_0x1554c4['createRangeIn'](_0x59d660);if('$graveyard'==_0x12a514['root']['rootName'])return;const _0x2ba4c9=Array['from'](_0x14bbb1['getRanges']())['map'](_0x5b7b71=>_0x1c86da['fromRange'](_0x5b7b71));_0x1554c4['setSelection'](_0x12a514),_0x216ce1['commands']['get'](_0x107a2a)['refresh'](),_0x2a51ef['push']({'forceDefaultExecution':!0x0}),_0x216ce1['execute'](_0x107a2a,..._0x2a51ef);const _0x481b1e=_0x2ba4c9['filter'](_0x232732=>'$graveyard'!=_0x232732['root']['rootName']);_0x481b1e['length']>0x0&&_0x1554c4['setSelection'](_0x481b1e);for(const _0x22e67f of _0x2ba4c9)_0x22e67f['detach']();});};}['_getCoordsForCells'](_0x411a7d){const _0x40cdb7=this['editor']['plugins']['get']('TableUtils');let _0x465001=Number['MAX_SAFE_INTEGER'],_0x4a4124=Number['MIN_SAFE_INTEGER'],_0x5b9a07=Number['MAX_SAFE_INTEGER'],_0x799c34=Number['MIN_SAFE_INTEGER'];for(const _0x52fb8e of _0x411a7d){if('$graveyard'==_0x52fb8e['root']['rootName'])continue;const {row:_0x595f8d,column:_0x14b9a2}=_0x40cdb7['getCellLocation'](_0x52fb8e),_0x3598c3=_0x52fb8e['hasAttribute']('rowspan')?_0x52fb8e['getAttribute']('rowspan')-0x1:0x0,_0x4eb81f=_0x52fb8e['hasAttribute']('colspan')?_0x52fb8e['getAttribute']('colspan')-0x1:0x0;_0x465001=_0x595f8d<_0x465001?_0x595f8d:_0x465001,_0x4a4124=_0x595f8d+_0x3598c3>_0x4a4124?_0x595f8d+_0x3598c3:_0x4a4124,_0x5b9a07=_0x14b9a2<_0x5b9a07?_0x14b9a2:_0x5b9a07,_0x799c34=_0x14b9a2+_0x4eb81f>_0x799c34?_0x14b9a2+_0x4eb81f:_0x799c34;}return{'minRow':_0x465001,'maxRow':_0x4a4124,'minColumn':_0x5b9a07,'maxColumn':_0x799c34};}['_setupColumnsRowsFixing'](){const _0x2f9de9=this['editor'],_0x7471d3=_0x2f9de9['plugins']['get']('TrackChangesEditing'),_0x56de89=_0x2f9de9['plugins']['get']('TableUtils');_0x2f9de9['model']['document']['on']('change:data',()=>{const _0x1814df=Array['from'](_0x2f9de9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3295a2,data:_0x132df3}of _0x1814df){const {group:_0xa25fa,id:_0xd1ce9f,subType:_0x50efc0}=_0x7471d3['_splitMarkerName'](_0x3295a2);if('suggestion'!=_0xa25fa)continue;if(null!=_0x132df3['oldRange'])continue;const _0x1f94d9=_0x7471d3['getSuggestion'](_0xd1ce9f);this['_tablePostFixingSubtypes']['includes'](_0x50efc0)&&this['_tableSuggestions']['add'](_0x1f94d9);}},{'priority':'low'});const _0x59d2ca=(_0x178a88,_0x45a598)=>{let _0x48e9a4=!0x1;const _0x5030ac=_0x45a598['createRangeOn'](_0x178a88),_0x214e80=_0x178a88['findAncestor']('table'),_0x2e8176=_0x56de89['getCellLocation'](_0x178a88);for(const _0x529368 of this['_tableSuggestions']){const _0x32eded=_0x529368['subType'],_0x28d754=_0x32eded['startsWith']('tablePaste'),_0x3b040f=_0x32eded['substr'](_0x28d754?0xa:0x5),_0x1671fe=_0x3b040f['toLowerCase'](),_0x5b8ef0=_0x1671fe['substr'](0x0,0x3)+'span',_0x38d3ad='min'+_0x3b040f,_0x34ed10='max'+_0x3b040f;if(!_0x529368['isInContent'])continue;if(_0x214e80!=_0x529368['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x529368['isIntersectingWithRange'](_0x5030ac))continue;const _0x3fc06c=_0x178a88['hasAttribute'](_0x5b8ef0)?_0x178a88['getAttribute'](_0x5b8ef0)-0x1:0x0,_0x2f5736=this['_getSuggestionCoords'](_0x529368),_0x34c987=_0x2f5736[_0x38d3ad],_0x2e1c0d=_0x2f5736[_0x34ed10];_0x34c987<=_0x2e8176[_0x1671fe]&&_0x2e8176[_0x1671fe]+_0x3fc06c<=_0x2e1c0d&&(_0x529368['addRange'](_0x5030ac),_0x48e9a4=!0x0);}return _0x48e9a4;};_0x2f9de9['model']['document']['registerPostFixer'](_0xd7534b=>{let _0x281fa4=!0x1;for(const _0x47038e of _0x2f9de9['model']['document']['differ']['getChanges']())if('insert'==_0x47038e['type']){if('tableRow'==_0x47038e['name']){for(const _0x16c2d8 of _0x47038e['position']['nodeAfter']['getChildren']())_0x281fa4=_0x281fa4||_0x59d2ca(_0x16c2d8,_0xd7534b);}else'tableCell'==_0x47038e['name']&&(_0x281fa4=_0x281fa4||_0x59d2ca(_0x47038e['position']['nodeAfter'],_0xd7534b));}return _0x281fa4;});}['_getSuggestionCoords'](_0x591124){return this['_getCoordsForCells'](_0x591124['getRanges']()['map'](_0x53ac66=>_0x53ac66['start']['nodeAfter']));}}function Re(_0x5eb381){return Array['from'](new Set(_0x5eb381)['values']());}class _t extends _0x1f739f{static get['requires'](){return[vt];}['afterInit'](){const _0x4fcd99=this['editor'],_0x511ae9=_0x4fcd99['model']['document']['selection'],_0x31702e=_0x4fcd99['locale'];if(!_0x4fcd99['plugins']['has']('TableEditing'))return;const _0x2e5313=_0x4fcd99['plugins']['get']('TrackChangesEditing'),_0x436695=_0x4fcd99['plugins']['get']('TableUtils'),_0x32e6ee=_0x4fcd99['plugins']['get'](vt);_0x32e6ee['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2e5313['enableCommand']('mergeTableCells',()=>{const _0x588066=_0x436695['getSelectionAffectedTableCells'](_0x4fcd99['model']['document']['selection']);_0x4fcd99['model']['change'](()=>{_0x2e5313['markMultiRangeBlockFormat'](_0x588066,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4fcd99['commands']['get']('mergeTableCells')['on']('execute',(_0x75188c,_0x40d71d)=>{_0x4fcd99['commands']['get']('trackChanges')['value']&&(_0x40d71d['length']>0x0&&_0x40d71d[_0x40d71d['length']-0x1]&&_0x40d71d[_0x40d71d['length']-0x1]['forceDefaultExecution']||_0x2e5313['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x75188c['stop']());},{'priority':'highest'});for(const _0x4512f1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39b1e1=_0x4fcd99['commands']['get'](_0x4512f1);_0x2e5313['enableCommand'](_0x4512f1,()=>{const _0x360a0e=_0x4fcd99['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x272c1e=>_0x272c1e['is']('element','tableCell')),_0x4533cc=_0x39b1e1['value'];_0x4fcd99['model']['change'](()=>{_0x2e5313['markMultiRangeBlockFormat']([_0x360a0e,_0x4533cc],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x55adae of['splitTableCellVertically','splitTableCellHorizontally']){const _0x208bcc=_0x4fcd99['commands']['get'](_0x55adae);_0x2e5313['enableCommand'](_0x55adae,()=>{const _0x467f78=_0x436695['getSelectionAffectedTableCells'](_0x4fcd99['model']['document']['selection'])[0x0],_0x258dfe=_0x467f78['findAncestor']('table'),{column:_0x24e86e,row:_0x4691d7}=_0x436695['getCellLocation'](_0x467f78);let _0xf1b2a5=[];if('horizontally'==_0x208bcc['direction']){const _0x4a2b94=_0x436695['createTableWalker'](_0x258dfe,{'startRow':_0x4691d7,'endRow':_0x4691d7,'includeAllSlots':!0x0});_0xf1b2a5=Array['from'](_0x4a2b94)['map'](_0x44a322=>_0x44a322['cell']);}else{const _0x2e15aa=_0x436695['createTableWalker'](_0x258dfe,{'column':_0x24e86e,'includeAllSlots':!0x0});_0xf1b2a5=Array['from'](_0x2e15aa)['map'](_0x40ef67=>_0x40ef67['cell']);}_0x4fcd99['model']['change'](_0x4fba68=>{_0x2e5313['markBlockFormat'](_0x4fba68['createRangeOn'](_0x467f78),{'commandName':_0x55adae,'commandParams':[]},_0xf1b2a5,_0x55adae);});});}_0x2e5313['descriptionFactory']['registerDescriptionCallback'](_0x9b77bd=>{if('formatBlock'!=_0x9b77bd['type']&&'formatInline'!=_0x9b77bd['type'])return;const {data:_0x2a689f}=_0x9b77bd;return _0x2a689f&&'mergeTableCells'==_0x2a689f['commandName']?{'type':'format','content':o(_0x31702e,'*Merge\x20cells*')}:void 0x0;}),_0x2e5313['descriptionFactory']['registerDescriptionCallback'](_0x465a76=>{if('formatBlock'!=_0x465a76['type']&&'formatInline'!=_0x465a76['type'])return;const {data:_0x3bc672}=_0x465a76;return _0x3bc672?'splitTableCellVertically'==_0x3bc672['commandName']?{'type':'format','content':o(_0x31702e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3bc672['commandName']?{'type':'format','content':o(_0x31702e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x353a89=_0x32e6ee['_acceptFormatSuggestionCallbackFactory']();for(const _0x2202cc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2e5313['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2202cc,'accept',_0x353a89);for(const _0x220227 of['splitTableCellVertically','splitTableCellHorizontally'])_0x2e5313['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x220227,'accept',_0x353a89);_0x2e5313['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a44df=>{_0x4fcd99['model']['change'](_0x56e088=>{const _0x1d2efb=Array['from'](_0x511ae9['getRanges']())['map'](_0x54942a=>_0x1c86da['fromRange'](_0x54942a));_0x56e088['setSelection'](_0x3a44df),_0x4fcd99['commands']['get']('mergeTableCells')['refresh'](),_0x4fcd99['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x47443a=_0x1d2efb['filter'](_0xe5a783=>'$graveyard'!=_0xe5a783['root']['rootName']);_0x47443a['length']>0x0&&_0x56e088['setSelection'](_0x47443a);for(const _0x109454 of _0x1d2efb)_0x109454['detach']();});});for(const _0x49db1f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3accfc=_0x4fcd99['commands']['get'](_0x49db1f);_0x3accfc['on']('set:isEnabled',(_0xc62d2d,_0x50b32d,_0x4019bc)=>{if(_0x4019bc){const _0x4c5271=_0x4fcd99['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x19951b=>_0x19951b['is']('element','tableCell'));this['_areMergableCells'](_0x3accfc['value'],_0x4c5271)||(_0xc62d2d['return']=!0x1,_0xc62d2d['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x395d68=this['editor']['commands']['get']('mergeTableCells'),_0x32ccb9=this['editor']['plugins']['get']('TableUtils');if(!_0x395d68['isEnabled'])return!0x1;const _0x4c0dd7=_0x32ccb9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x48132d of _0x4c0dd7)for(const _0x5aade5 of _0x4c0dd7)if(_0x48132d!=_0x5aade5&&!this['_areMergableCells'](_0x48132d,_0x5aade5))return!0x1;return!0x0;}['_areMergableCells'](_0x1e1088,_0x19d5ac){const _0x42f4a7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54f817=this['editor']['model']['createRangeOn'](_0x1e1088),_0x31efa4=this['editor']['model']['createRangeOn'](_0x19d5ac),_0x4d1b60=new Set(),_0x30475b=new Set();for(const _0x24b63b of _0x42f4a7['getSuggestions']())if(('insertion'==_0x24b63b['type']||'deletion'==_0x24b63b['type']||'mergeTableCells'==_0x24b63b['subType'])&&_0x24b63b['isInContent']){for(const _0xb0763e of _0x24b63b['getRanges']())_0xb0763e['containsRange'](_0x54f817,!0x0)&&_0x4d1b60['add'](_0x24b63b['type']+':'+_0x24b63b['author']['id']),_0xb0763e['containsRange'](_0x31efa4,!0x0)&&_0x30475b['add'](_0x24b63b['type']+':'+_0x24b63b['author']['id']);}if(_0x4d1b60['size']!=_0x30475b['size'])return!0x1;for(const _0x5d75a2 of _0x4d1b60)if(!_0x30475b['has'](_0x5d75a2))return!0x1;return!0x0;}}class Ct extends _0x1f739f{static get['requires'](){return[vt];}['afterInit'](){const _0x37ef05=this['editor'];if(!_0x37ef05['plugins']['has']('TableEditing'))return;const _0x145168=_0x37ef05['locale'],_0x14b1f0=_0x37ef05['plugins']['get']('TrackChangesEditing');_0x14b1f0['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x14b1f0['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x14b1f0['registerBlockAttribute']('headingRows'),_0x14b1f0['registerBlockAttribute']('headingColumns'),_0x14b1f0['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x145168,'FORMAT_HEADER_ROW')),_0x14b1f0['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x145168,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1767e0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55828f=this['editor']['plugins']['get']('TableUtils'),_0x18fffe=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x551b68({showActiveMarker:_0x4743cc=!0x0,setDataAttribute:_0x456031=!0x0}={}){return(_0x33172a,_0x5d2460,_0x10404f)=>{const {type:_0x4e33eb,id:_0xe7174e}=_0x1767e0['_splitMarkerName'](_0x5d2460['markerName']),_0x1bfbea=_0x1767e0['getSuggestion'](_0xe7174e),_0x1672b0=_0x1bfbea['data'];if('formatBlock'!=_0x1bfbea['type']||!_0x1672b0||'setTableColumnHeader'!=_0x1672b0['commandName'])return;if(_0x5d2460['item'])return void _0x33172a['stop']();if(!_0x10404f['consumable']['consume'](_0x5d2460['markerRange'],_0x33172a['name']))return;const _0x2b0749=_0x5d2460['markerRange']['start']['nodeAfter'],_0x2baf4f=_0x5d2460['markerRange']['end']['nodeBefore'],_0x4bbb3b=_0x2b0749['parent']['parent'],{column:_0x1b205c}=_0x55828f['getCellLocation'](_0x2b0749),{column:_0x54b2a0}=_0x55828f['getCellLocation'](_0x2baf4f);for(let _0x1ada9c=_0x1b205c;_0x1ada9c<=_0x54b2a0;_0x1ada9c++){const _0x54eb80=_0x55828f['createTableWalker'](_0x4bbb3b,{'column':_0x1ada9c,'includeAllSlots':!0x1});for(const _0x4d5ff7 of _0x54eb80){const _0x458541=_0x4d5ff7['cell'],_0x5491f0=_0x10404f['mapper']['toViewElement'](_0x458541);_0x10404f['writer']['addClass']('ck-suggestion-marker-'+_0x4e33eb,_0x5491f0),_0x456031&&_0x10404f['writer']['setAttribute']('data-suggestion',_0xe7174e,_0x5491f0),_0x10404f['mapper']['bindElementToMarker'](_0x5491f0,_0x5d2460['markerName']),_0x4743cc&&(_0x1767e0['activeMarkers']['includes'](_0x5d2460['markerName'])?_0x10404f['writer']['addClass']('ck-suggestion-marker--active',_0x5491f0):_0x10404f['writer']['removeClass']('ck-suggestion-marker--active',_0x5491f0));}}};}_0x1767e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x18fffe),_0x1767e0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x18fffe),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x551b68(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2dad14,_0x4121b5,_0x186fb9)=>{_0x186fb9['options']['showSuggestionHighlights']&&_0x551b68({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2dad14,_0x4121b5,_0x186fb9);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e7035,_0x3197ee,_0x3c11d7)=>{const {type:_0x3742e0,id:_0x5a0f26}=_0x1767e0['_splitMarkerName'](_0x3197ee['markerName']),_0x12e59f=_0x1767e0['getSuggestion'](_0x5a0f26),_0x5b375f=_0x12e59f['data'];if('formatBlock'!=_0x12e59f['type']||!_0x5b375f||'setTableColumnHeader'!=_0x5b375f['commandName'])return;const _0xff3c1e=_0x3c11d7['mapper']['markerNameToElements'](_0x3197ee['markerName']);if(_0xff3c1e){for(const _0x4c5cf7 of _0xff3c1e)_0x3c11d7['writer']['removeClass']('ck-suggestion-marker-'+_0x3742e0,_0x4c5cf7),_0x3c11d7['writer']['removeClass']('ck-suggestion-marker--active',_0x4c5cf7),_0x3c11d7['writer']['removeAttribute']('data-suggestion',_0x4c5cf7),_0x3c11d7['mapper']['unbindElementFromMarkerName'](_0x4c5cf7,_0x3197ee['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b0806=this['editor'],_0x4d2a31=_0x5b0806['locale'];function _0x43301a(_0x2e246f){return{'type':'format','content':o(_0x4d2a31,'*Format:*\x20%0',_0x2e246f)};}_0x5b0806['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18243b=>{if('formatBlock'!=_0x18243b['type'])return;const {data:_0x14ed02}=_0x18243b;if(_0x14ed02){if('setTableRowHeader'==_0x14ed02['commandName']){const _0x191bf1=_0x14ed02['commandParams'][0x0]['forceValue'];return _0x43301a(o(_0x4d2a31,_0x191bf1?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x14ed02['commandName']){const _0x2ac625=_0x14ed02['commandParams'][0x0]['forceValue'];return _0x43301a(o(_0x4d2a31,_0x2ac625?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0xc83760=>[_0xc83760,null]));class Nt extends _0x1f739f{static get['requires'](){return[vt];}['afterInit'](){const _0x3e90e8=this['editor'];if(!_0x3e90e8['plugins']['has']('TableClipboard'))return;const _0x109847=_0x3e90e8['plugins']['get']('TrackChangesEditing'),_0x3375f2=_0x3e90e8['plugins']['get']('TableUtils'),_0x2c2b1c=_0x3e90e8['plugins']['get'](vt),_0x3d1209=_0x3e90e8['plugins']['get']('TableClipboard');_0x2c2b1c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3e90e8['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3e90e8['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x64a169=null;_0x3e90e8['model']['on']('insertContent',(_0xced813,_0x2b9798)=>{const [_0xe8ad1,_0xc11df5]=_0x2b9798,_0x5893ca=_0x2b9798[_0x2b9798['length']-0x1];_0x5893ca&&_0x5893ca['forceDefaultExecution']||_0x109847['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x399394,_0x5ba9ed,_0x40f2ac,_0x271d56,_0x499493){if(_0x5ba9ed&&!_0x5ba9ed['is']('documentSelection'))return!0x1;const _0x55921f=_0x499493['getTableIfOnlyTableInContent'](_0x399394,_0x40f2ac);if(!_0x55921f||!Ae(_0x55921f,void 0x0,_0x271d56))return!0x1;const _0x383e71=_0x271d56['getSelectionAffectedTableCells'](_0x40f2ac['document']['selection']);if(!_0x383e71['length'])return!0x1;const _0x369bec=_0x383e71[0x0]['findAncestor']('table'),_0x1e44e3=_0x271d56['getRowIndexes'](_0x383e71),_0x35a373=_0x271d56['getColumnIndexes'](_0x383e71),_0x678ab9={'startRow':_0x1e44e3['first'],'endRow':_0x1e44e3['last'],'startColumn':_0x35a373['first'],'endColumn':_0x35a373['last']};return 0x1==_0x383e71['length']&&(_0x678ab9['endRow']+=_0x271d56['getRows'](_0x55921f)-0x1,_0x678ab9['endColumn']+=_0x271d56['getColumns'](_0x55921f)-0x1),Ae(_0x369bec,_0x678ab9,_0x271d56);}(_0xe8ad1,_0xc11df5,_0x3e90e8['model'],_0x3375f2,_0x3d1209)&&(_0xced813['stop'](),_0x64a169={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3e90e8['model']['change'](()=>{_0x3e90e8['model']['insertContent'](_0x2b9798[0x0],_0x2b9798[0x1],_0x2b9798[0x2],{'forceDefaultExecution':!0x0});const _0x46a6d9=_0x46f059(),{rowInsertionRanges:_0x36858b,columnInsertionRanges:_0x3fcd0b,insertionRanges:_0x21baad,deletionRanges:_0x19e992,cells:_0x546909}=_0x64a169;_0x36858b['length']&&_0x109847['markMultiRangeInsertion'](_0x36858b,'tablePasteRow',{'tablePasteChainId':_0x46a6d9}),_0x3fcd0b['length']&&_0x109847['markMultiRangeInsertion'](_0x3fcd0b,'tablePasteColumn',{'tablePasteChainId':_0x46a6d9}),_0x21baad['length']&&(_0x109847['markMultiRangeInsertion'](_0x21baad,'tablePaste',{'tablePasteChainId':_0x46a6d9,'skipNestingCheck':!0x0}),_0x21baad['forEach'](_0x2037b8=>_0x2037b8['detach']?.())),_0x19e992['length']&&(_0x109847['markMultiRangeDeletion'](_0x19e992,'tablePaste',{'tablePasteChainId':_0x46a6d9,'skipNestingCheck':!0x0}),_0x19e992['forEach'](_0x2c1679=>_0x2c1679['detach']?.()));const _0x2f9b7e=_0x109847['markMultiRangeBlockFormat'](_0x546909['map'](({element:_0x35efa4})=>_0x35efa4),{'formatGroupId':_0x46f059()},[],'tablePasteCell',{'tablePasteChainId':_0x46a6d9});if(_0x2f9b7e){const _0x3957e1=_0x2f9b7e['getMarkers'](),_0x954023=[];for(const {element:_0xd62a5c,attributes:_0x1fcb86}of _0x546909){if(!_0x1fcb86)continue;const _0x1a7e6b=_0x3e90e8['model']['createRangeOn'](_0xd62a5c),_0x374bca=_0x3957e1['find'](_0x39711b=>_0x39711b['getRange']()['isEqual'](_0x1a7e6b));_0x374bca&&_0x954023['push']([_0x374bca['name'],_0x1fcb86]);}_0x954023['length']&&_0x2f9b7e['setAttribute']('markerAttributes',Object['fromEntries'](_0x954023));}_0x64a169=null;}));},{'priority':_0x16c4bf['high']+0xa}),_0x3e90e8['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5b9e3f,_0x1c7336)=>{const [_0x3264fd,_0x5330c6,,_0x2e9cb5]=_0x1c7336;if(!_0x64a169)return;_0x5b9e3f['stop']();const _0x1b743f=_0x3264fd['cell'],_0x338765=_0x5330c6,_0x5d3b91=je(_0x1b743f),_0x1f9efc=je(_0x338765);_0x5b9e3f['return']=_0x1b743f;let _0x26f9c5=null,_0x47c3d4=null;if(_0x1f9efc||_0x5d3b91){if(_0x5d3b91&&!_0x1f9efc){_0x2e9cb5['remove'](_0x1b743f['getChild'](0x0));for(const _0x12098d of Array['from'](_0x338765['getChildren']()))_0x2e9cb5['insert'](_0x12098d,_0x1b743f,'end');const _0x47443b=_0x64a169['rowInsertionIndexes']['includes'](_0x3264fd['row']),_0x35600c=_0x64a169['columnInsertionIndexes']['includes'](_0x3264fd['column']);_0x47443b||_0x35600c||(_0x26f9c5=_0x1c86da['fromRange'](_0x2e9cb5['createRangeIn'](_0x1b743f)));}else _0x1f9efc&&!_0x5d3b91&&(_0x47c3d4=_0x2e9cb5['createRangeIn'](_0x1b743f));}else{const _0x31e172=_0x2e9cb5['createElement']('tableCellSuggestion'),_0x427bda=_0x2e9cb5['createElement']('tableCellSuggestion');_0x2e9cb5['wrap'](_0x2e9cb5['createRangeIn'](_0x1b743f),_0x427bda),_0x2e9cb5['insert'](_0x31e172,_0x1b743f,0x0);for(const _0x4ee78a of Array['from'](_0x338765['getChildren']()))_0x2e9cb5['insert'](_0x4ee78a,_0x31e172,'end');_0x26f9c5=_0x1c86da['fromRange'](_0x2e9cb5['createRangeOn'](_0x31e172)),_0x47c3d4=_0x1c86da['fromRange'](_0x2e9cb5['createRangeOn'](_0x427bda));}const _0x5721c2=Array['from'](_0x338765['getAttributes']())['filter'](([_0x3ec2c8])=>we['includes'](_0x3ec2c8));_0x64a169['cells']['push']({'element':_0x1b743f,'attributes':_0x5721c2['length']?Object['fromEntries'](_0x5721c2):null}),_0x26f9c5&&_0x64a169['insertionRanges']['push'](_0x26f9c5),_0x47c3d4&&_0x64a169['deletionRanges']['push'](_0x47c3d4);},{'priority':'high'}),_0x3375f2['on']('insertColumns',(_0x4180e4,_0x325c9b)=>{const [_0x2ac709,_0x32efcc={}]=_0x325c9b;if(!_0x64a169)return;const _0x3c8cc7=_0x32efcc['at']||0x0,_0x179278=_0x32efcc['columns']||0x1;_0x64a169['columnInsertionIndexes']=new Array(_0x179278)['fill'](_0x3c8cc7)['map']((_0x4e15f0,_0x1872b3)=>_0x4e15f0+_0x1872b3);for(const {cell:_0x57e60e}of _0x3375f2['createTableWalker'](_0x2ac709,{'startColumn':_0x3c8cc7,'endColumn':_0x3c8cc7+_0x179278-0x1}))_0x64a169['columnInsertionRanges']['push'](_0x3e90e8['model']['createRangeOn'](_0x57e60e));},{'priority':'low'}),_0x3375f2['on']('insertRows',(_0x4ab39b,_0x53fd67)=>{const [_0x27cf3b,_0x58631f={}]=_0x53fd67;if(!_0x64a169)return;const _0x3a6ddc=_0x58631f['at']||0x0,_0x392626=_0x58631f['rows']||0x1;_0x64a169['rowInsertionIndexes']=new Array(_0x392626)['fill'](_0x3a6ddc)['map']((_0x2d0364,_0x18ead8)=>_0x2d0364+_0x18ead8);for(const {cell:_0x22173c}of _0x3375f2['createTableWalker'](_0x27cf3b,{'startRow':_0x3a6ddc,'endRow':_0x3a6ddc+_0x392626-0x1}))_0x64a169['rowInsertionRanges']['push'](_0x3e90e8['model']['createRangeOn'](_0x22173c));},{'priority':'low'}),_0x109847['descriptionFactory']['registerDescriptionCallback'](_0x14a141=>{if(_0x14a141['subType']&&_0x14a141['subType']['startsWith']('tablePaste'))return _0x14a141['previous']?{}:{'type':'insertion','content':o(_0x3e90e8['locale'],'*Replace\x20table\x20cells*')};});const _0x11738c=()=>!0x1;for(const _0x1a26ee of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x109847['_suggestionFactory']['registerCustomCallback']('insertion',_0x1a26ee,'join',_0x11738c),_0x109847['_suggestionFactory']['registerCustomCallback']('deletion',_0x1a26ee,'join',_0x11738c),_0x109847['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1a26ee,'join',_0x11738c);_0x109847['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x11738c),_0x109847['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x18c7d7,_0x1b2c14,_0x32f22c)=>{const _0xda77c1=_0x18c7d7['map'](_0x4a9ccb=>_0x4a9ccb['getContainedElement']())['filter'](_0x264895=>_0x264895),_0x36e8ec=new Map(_0xda77c1['map'](_0x7dd299=>[_0x7dd299,null]));if(_0x64a169){for(const {element:_0x19d8d8,attributes:_0x5a35de}of _0x64a169['cells'])_0x5a35de&&_0x36e8ec['set'](_0x19d8d8,_0x5a35de);}else{if(_0x32f22c&&_0x32f22c['markerAttributes'])for(const [_0x4e63a5,_0x236944]of Object['entries'](_0x32f22c['markerAttributes'])){const _0x5c2d04=_0x3e90e8['model']['markers']['get'](_0x4e63a5),_0x4080e3=_0x5c2d04?_0x5c2d04['getRange']()['getContainedElement']():null;_0x4080e3&&_0x36e8ec['set'](_0x4080e3,_0x236944);}}_0x3e90e8['model']['change'](_0x532c11=>{for(const [_0x23d4f1,_0x16eb7a]of _0x36e8ec)_0x532c11['setAttributes']({...ve,..._0x16eb7a},_0x23d4f1);});});const _0x36c544=(_0x4197e4,_0x1e5956)=>{_0x109847['_suggestionFactory']['registerCustomCallback'](_0x4197e4,'tablePaste',_0x1e5956,(_0x576269,_0x51a1af,_0x267614)=>{_0x3e90e8['model']['change'](_0x1e0ef5=>{const _0x23ff6c=[];for(const _0x4ae727 of _0x576269){const _0x23ddda=_0x4ae727['start']['nodeAfter'];_0x23ddda['is']('element','tableCellSuggestion')&&_0x23ff6c['push'](_0x23ddda);}_0x109847['_suggestionFactory']['getSuggestionCallback'](_0x4197e4,null,_0x1e5956)(_0x576269,_0x51a1af,_0x267614);for(const _0x5a0c26 of _0x23ff6c)'$graveyard'!=_0x5a0c26['root']['rootName']&&_0x1e0ef5['unwrap'](_0x5a0c26);});});};_0x36c544('insertion','accept'),_0x36c544('insertion','discard'),_0x36c544('deletion','accept'),_0x36c544('deletion','discard'),_0x109847['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x490857=>{const _0x52122d=_0x490857['map'](_0x29f838=>_0x29f838['getContainedElement']()),_0xf93404=_0x52122d[0x0]['findAncestor']('table'),{minRow:_0x1c8184,maxRow:_0x4538e3}=_0x2c2b1c['_getCoordsForCells'](_0x52122d);_0x3375f2['removeRows'](_0xf93404,{'at':_0x1c8184,'rows':_0x4538e3-_0x1c8184+0x1});}),_0x109847['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4ec3e0=>{const _0xb2f8cd=_0x4ec3e0['map'](_0x13698e=>_0x13698e['getContainedElement']()),_0x13bb62=_0xb2f8cd[0x0]['findAncestor']('table'),{minColumn:_0x5ccbe5,maxColumn:_0x539b07}=_0x2c2b1c['_getCoordsForCells'](_0xb2f8cd);_0x3375f2['removeColumns'](_0x13bb62,{'at':_0x5ccbe5,'columns':_0x539b07-_0x5ccbe5+0x1});});const _0x41db7d=(_0x47680d,_0xfc1c42)=>{if(!_0xfc1c42['subType']||!_0xfc1c42['subType']['startsWith']('tablePaste'))return;const _0x51aa66=_0xfc1c42['attributes']['tablePasteChainId'],_0x336961=_0x109847['getSuggestions']()['filter'](_0x39669b=>_0x39669b['isInContent']&&_0x39669b['attributes']&&_0x39669b['attributes']['tablePasteChainId']==_0x51aa66);_0x336961['length']&&_0xfc1c42['getAllAdjacentSuggestions']()['length']!=_0x336961['length']&&_0x336961['reduce']((_0x395bc0,_0x4804ac)=>(_0x395bc0['next']=_0x4804ac,_0x4804ac['previous']=_0x395bc0,_0x4804ac));};function _0x8103f7(_0x25be1f,_0x3fb3a7=!0x0){const {id:_0x26d3f7,authorId:_0x418ef9}=_0x109847['_splitMarkerName'](_0x25be1f['markerName']),_0x2bcc63=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3cf5bf=_0x109847['activeMarkers']['includes'](_0x25be1f['markerName']);return _0x3cf5bf&&_0x2bcc63['push']('ck-suggestion-marker--active'),{'classes':_0x2bcc63,'attributes':{'data-suggestion':_0x26d3f7,'data-author-id':_0x418ef9},'priority':_0x3cf5bf&&_0x3fb3a7?0xbc2:0xbb8};}_0x109847['on']('suggestionLoaded',_0x41db7d,{'priority':'high'}),_0x109847['on']('suggestionUnloaded',_0x41db7d,{'priority':'high'}),_0x3e90e8['model']['document']['registerPostFixer'](()=>{let _0x4ed499=!0x1;const _0x2007c5=Array['from'](_0x3e90e8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xb10c08,data:_0x516e93}of _0x2007c5){const {group:_0x510a07,type:_0x39ba93,id:_0x6f5354}=_0x109847['_splitMarkerName'](_0xb10c08);if('suggestion'!=_0x510a07||'deletion'!=_0x39ba93||_0x516e93['oldRange'])continue;if(!_0x109847['hasSuggestion'](_0x6f5354))continue;const _0x29bd5f=_0x109847['getSuggestion'](_0x6f5354)['getRanges'](),_0x171412=_0x3e90e8['plugins']['get']('Users')['me'];for(const _0x47c683 of _0x109847['getSuggestions']()){if(!_0x47c683['isInContent']||_0x47c683['author']!=_0x171412)continue;if('formatBlock'!=_0x47c683['type']||'tablePasteCell'!=_0x47c683['subType'])continue;if(_0x47c683['getRanges']()['every'](_0xeae5b8=>_0x29bd5f['some'](_0x3b8b26=>_0x3b8b26['containsRange'](_0xeae5b8,!0x0)))){for(const _0x3e51e1 of _0x47c683['getAllAdjacentSuggestions']())_0x3e51e1['isInContent']&&(_0x3e51e1['discard'](),_0x4ed499=!0x0);}}}return _0x4ed499;}),_0x3e90e8['model']['document']['registerPostFixer'](_0x3bf94f=>{const _0x22dab7=_0x3e90e8['commands']['get']('redo');if(!_0x22dab7||!_0x22dab7['_createdBatches']['has'](_0x3bf94f['batch']))return!0x1;let _0x1c729f=!0x1;const _0x3b9a68=_0x3e90e8['plugins']['get']('Users')['me'],_0x52c2d3=_0x3e90e8['model']['document']['differ']['getChanges'](),_0x169570=Array['from'](_0x3e90e8['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x53702b,data:_0x3de6f3})=>{const {group:_0x1fdde6,subType:_0x13d89e,authorId:_0x22f9fa}=_0x109847['_splitMarkerName'](_0x53702b);return'suggestion'==_0x1fdde6&&'tablePaste'==_0x13d89e&&_0x22f9fa==_0x3b9a68['id']&&!_0x3de6f3['oldRange'];});for(const _0x5c5b02 of _0x52c2d3){if('insert'!=_0x5c5b02['type']||'tableCellSuggestion'!=_0x5c5b02['name']||0x1!=_0x5c5b02['length'])continue;const _0xed4b9d=_0x3bf94f['createRange'](_0x5c5b02['position'],_0x5c5b02['position']['getShiftedBy'](0x1));if(!_0x169570['find'](({data:_0x3e2b8b})=>_0x3e2b8b['newRange']['isEqual'](_0xed4b9d))){for(const {name:_0x4e9d14,data:_0xacdeea}of _0x169570)if(_0xed4b9d['containsRange'](_0xacdeea['newRange'])){_0x3bf94f['updateMarker'](_0x4e9d14,{'range':_0xed4b9d}),_0x1c729f=!0x0;break;}}}return _0x1c729f;}),_0x3e90e8['model']['document']['registerPostFixer'](_0x4d67b3=>{let _0x3f5375=!0x1;const _0x4ac4cc=_0x3e90e8['plugins']['get']('Users')['me'],_0x57d9ad=_0x109847['getSuggestions']()['filter'](_0x309064=>_0x309064['isInContent']&&_0x309064['author']==_0x4ac4cc),_0x1ada07=new Set(),_0x247c1c=new Set();for(const _0x18e361 of _0x57d9ad)if('tablePaste'==_0x18e361['subType'])for(const _0x456d71 of _0x18e361['getMarkers']()){const _0x229368=_0x456d71['getRange']()['getContainedElement']();if(_0x229368){if(_0x229368['is']('element','tableCellSuggestion')&&je(_0x229368)){_0x18e361['removeMarker'](_0x456d71['name']),_0x1ada07['add'](_0x229368),_0x3f5375=!0x0;const _0x3c9783=_0x229368['nextSibling'],_0x19886b=_0x229368['previousSibling'],_0x205573=_0x3c9783&&_0x3c9783['is']('element','tableCellSuggestion'),_0x126226=_0x19886b&&_0x19886b['is']('element','tableCellSuggestion');_0x205573&&!_0x1ada07['has'](_0x3c9783)&&_0x247c1c['add'](_0x3c9783),_0x126226&&!_0x1ada07['has'](_0x19886b)&&_0x247c1c['add'](_0x19886b);}else _0x229368['is']('element','paragraph')&&_0x229368['isEmpty']&&(_0x18e361['removeMarker'](_0x456d71['name']),_0x3f5375=!0x0);}}else{if('tablePasteCell'==_0x18e361['subType']){if(!_0x18e361['attributes']||!_0x18e361['attributes']['tablePasteChainId'])continue;const _0x372e8c=_0x18e361['attributes']['markerAttributes'];if(_0x372e8c&&Object['keys'](_0x372e8c)['length'])continue;const _0x517c57=_0x18e361['attributes']['tablePasteChainId'];let _0xccbd86=!0x0,_0x415959=!0x0;for(const _0x2ec1f0 of _0x57d9ad)if(_0x2ec1f0['subType']&&_0x2ec1f0['subType']['startsWith']('tablePaste')){if(!_0x2ec1f0['attributes']['tablePasteChainId']){_0x415959=!0x1;break;}if(_0x2ec1f0['id']!=_0x18e361['id']&&_0x2ec1f0['attributes']['tablePasteChainId']==_0x517c57){_0xccbd86=!0x1;break;}}_0x415959&&_0xccbd86&&(_0x18e361['removeMarkers'](),_0x3f5375=!0x0);}}for(const _0x551c8a of _0x1ada07)_0x4d67b3['remove'](_0x551c8a);for(const _0x1e71e1 of _0x247c1c)_0x4d67b3['unwrap'](_0x1e71e1);return _0x3f5375;}),_0x3e90e8['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x10515f=>_0x8103f7(_0x10515f),'converterPriority':'high'}),_0x3e90e8['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x271a39,_0x3f791a)=>_0x3f791a['options']['showSuggestionHighlights']?_0x8103f7(_0x271a39,!0x1):null,'converterPriority':'high'});const _0xcccaf4=_0x3e90e8['editing']['view'];this['listenTo'](_0xcccaf4['document'],'clipboardOutput',(_0x2d63a5,_0x37a354)=>{const _0x444a7e=[];for(const _0x18f7ed of _0xcccaf4['createRangeIn'](_0x37a354['content'])['getItems']())_0x18f7ed['is']('element','suggestion-td')&&_0x444a7e['push'](_0x18f7ed);_0xcccaf4['change'](_0x1fe758=>{for(const _0x572ce7 of _0x444a7e)_0x1fe758['move'](_0x1fe758['createRangeIn'](_0x572ce7),_0x1fe758['createPositionBefore'](_0x572ce7)),_0x1fe758['remove'](_0x572ce7);});});}}function je(_0x510e27){if(_0x510e27['isEmpty'])return!0x0;const _0x37d5fa=_0x510e27['getChild'](0x0);return _0x37d5fa['is']('element','paragraph')&&_0x37d5fa['isEmpty'];}function Ae(_0x433ff5,_0x40cae0={},_0x4eccd4){for(const {isAnchor:_0x3a99d1,cellHeight:_0x514a0f,cellWidth:_0x5ba6c6}of _0x4eccd4['createTableWalker'](_0x433ff5,{'includeAllSlots':!0x0,..._0x40cae0}))if(!_0x3a99d1||0x1!=_0x514a0f||0x1!=_0x5ba6c6)return!0x1;return!0x0;}class Dt extends _0x1f739f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x59c9f9=this['editor']['plugins']['get']('TrackChangesEditing');_0x59c9f9['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x59c9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x59c9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59c9f9['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x59c9f9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x59c9f9['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2bf68d,_0x3b8eba){const _0x561e8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x471aa6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4df0ab=_0x3b8eba['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4ecb6d=_0x471aa6['getColumnGroupElement'](_0x4df0ab);let _0x45d006=_0x4ecb6d?_0x471aa6['getTableColumnsWidths'](_0x4ecb6d):null,_0x46aa24=_0x4df0ab['getAttribute']('tableWidth')||null;const _0x192248=_0x3b8eba['tableWidth']||_0x46aa24,_0x27a2c7=_0x3b8eba['columnWidths']||_0x45d006,_0x70a38=this['editor']['plugins']['get']('Users')['me'];for(const _0x173ad3 of _0x561e8a['getSuggestions']()){const _0x55e9d0=_0x173ad3['getContainedElement']();if('resizeTable'===_0x173ad3['subType']&&_0x55e9d0===_0x4df0ab){_0x173ad3['author']!==_0x70a38&&_0x173ad3['discard']();const _0x336c01=_0x173ad3['data']['commandParams'];_0x46aa24=_0x336c01[0x0]['tableWidth'],_0x45d006=_0x336c01[0x0]['columnWidths'];break;}}_0x2bf68d({'table':_0x4df0ab,'tableWidth':_0x192248,'columnWidths':_0x27a2c7}),_0x561e8a['markBlockFormat'](_0x4df0ab,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x46aa24,'columnWidths':_0x45d006}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x55ed80){if('formatBlock'!=_0x55ed80['type']&&'formatInline'!=_0x55ed80['type'])return;const {data:_0x2faaa9}=_0x55ed80;if(_0x2faaa9&&'resizeTable'===_0x2faaa9['formatGroupId']){const _0x49f6df='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x49f6df)};}}}class Mt extends _0x1f739f{['afterInit'](){const _0x417cbc=this['editor'];_0x417cbc['plugins']['has']('Template')&&_0x417cbc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x1f739f{['afterInit'](){const _0x236edc=this['editor'];if(!_0x236edc['commands']['get']('insertTableOfContents'))return;_0x236edc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x53e138=_0x236edc['plugins']['get']('TrackChangesEditing'),_0x3b04c4=_0x236edc['locale'];_0x53e138['descriptionFactory']['registerElementLabel']('tableOfContents',_0x11d540=>o(_0x3b04c4,'ELEMENT_TABLE_OF_CONTENTS',_0x11d540));}}class Bt extends _0x1f739f{['afterInit'](){const _0x431a00=this['editor'];if(!_0x431a00['plugins']['has']('Title'))return;const _0xb99c40=_0x431a00['plugins']['get']('TrackChangesEditing');_0xb99c40['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x431a00['locale'],'ELEMENT_TITLE')),_0x431a00['model']['document']['registerPostFixer'](_0x202bc0=>{let _0x15991d=!0x1;const _0x3ccb08=Array['from'](_0x431a00['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x409caa,data:_0x556532}of _0x3ccb08){const {group:_0x19b2a1}=_0xb99c40['_splitMarkerName'](_0x409caa);if('suggestion'!==_0x19b2a1||!_0x556532['newRange'])continue;const _0x1a7a96=_0x556532['newRange'],_0x28c4ae=_0x1a7a96['end']['nodeBefore'];if(!_0x28c4ae||!_0x28c4ae['is']('element','title-content'))continue;if(!_0x1a7a96['start']['isTouching'](_0x1a7a96['end']))continue;const _0x15e4d5=_0x431a00['model']['schema']['getNearestSelectionRange'](_0x1a7a96['end'],'forward');if(_0x15e4d5&&_0x15e4d5['isCollapsed']){const _0x227eb5=_0x202bc0['createRange'](_0x1a7a96['start'],_0x15e4d5['start']);_0x227eb5['isEqual'](_0x1a7a96)||(_0x202bc0['updateMarker'](_0x409caa,{'range':_0x227eb5}),_0x15991d=!0x0);}_0x15991d||(_0x202bc0['removeMarker'](_0x409caa),_0x15991d=!0x0);}return _0x15991d;});}}class Ot extends _0x1f739f{['afterInit'](){const _0x1e3e80=this['editor'],_0x54635e=_0x1e3e80['plugins']['get']('TrackChangesEditing');_0x1e3e80['plugins']['has']('UndoEditing')&&(_0x54635e['enableCommand']('undo'),_0x54635e['enableCommand']('redo'));}}class Rt extends _0x1f739f{static get['requires'](){return[vt];}['afterInit'](){const _0x28a356=this['editor'];if(!_0x28a356['plugins']['has']('TableCaptionEditing'))return;_0x28a356['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x1f739f{['tableProperties'];['tableCellProperties'];constructor(_0x599c62){super(_0x599c62),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 _0x5666db=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x40dd6e of this['tableProperties'])_0x5666db['enableCommand'](_0x40dd6e,(_0x55d689,_0x29eb11)=>{const _0x41bd8e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x40dd6e,[_0x41bd8e],this['tableProperties'],'tableProperties',_0x55d689,_0x29eb11);});_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5666db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5de7b4,_0x1a312a)=>this['handleDiscardAction'](this['tableProperties'],_0x5de7b4,_0x1a312a)),_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5c470f of this['tableCellProperties'])_0x5666db['enableCommand'](_0x5c470f,(_0x576e70,_0x48e0b8)=>{const _0x12d1e1=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5c470f,_0x12d1e1,this['tableCellProperties'],'tableCellProperties',_0x576e70,_0x48e0b8);});_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5666db['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1cd7f8,_0x10e9f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1cd7f8,_0x10e9f0)),_0x5666db['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5666db['descriptionFactory']['registerDescriptionCallback'](_0x52253d=>this['handleSuggestionDescription'](_0x52253d));}['_handlePropertyChange'](_0x4bdb1d,_0x298fdf,_0x1efc3d,_0x31301f,_0x599b9f,_0x518abd){const _0x145cb5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x518abd['batch'],()=>{for(const _0x1bddc3 of _0x298fdf){if(this['_getSuggestion'](_0x1bddc3,_0x31301f))_0x599b9f(_0x518abd);else{const _0x39cfa0={};for(const _0x4ac77d of _0x1efc3d){const _0x103f69=_0x1bddc3['getAttribute'](_0x4ac77d);void 0x0!==_0x103f69&&(_0x39cfa0[_0x4ac77d]=_0x103f69);}_0x599b9f(_0x518abd),_0x145cb5['markBlockFormat'](_0x1bddc3,{'commandParams':[_0x39cfa0]},[],_0x31301f);}}});}['handleDiscardAction'](_0x2d513f,_0x29f816,_0x414ec6){const _0x5b68e3=_0x29f816[0x0]['start']['nodeAfter'],_0x27301c=_0x414ec6['commandParams'][0x0];this['editor']['model']['change'](_0x34c07e=>{for(const _0x3df308 of _0x2d513f)void 0x0!==_0x27301c[_0x3df308]?_0x34c07e['setAttribute'](_0x3df308,_0x27301c[_0x3df308],_0x5b68e3):_0x34c07e['removeAttribute'](_0x3df308,_0x5b68e3);});}['handleSuggestionDescription'](_0x143f6c){if(_0x143f6c['data'])switch(_0x143f6c['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'](_0x471a5e,_0x90a6b6){const _0x52834b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1648d6 of _0x52834b['getSuggestions']({'skipNotAttached':!0x0})){const _0x1e37d2=_0x1648d6['getContainedElement']();if(_0x1648d6['subType']===_0x90a6b6&&_0x1e37d2===_0x471a5e)return _0x1648d6;}return null;}}const m='$elementName';class p extends _0x1f739f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3dcaf7,_0xb2980b,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x28b51d){super(_0x28b51d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1aed96,_0x47de23,_0x196882,_0x24f7ea)=>{this['_model']['change'](()=>{for(const _0x426c22 of[..._0x24f7ea,..._0x196882])this['_model']['markers']['has'](_0x426c22)&&_0x28b51d['editing']['reconvertMarker'](_0x426c22);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x28b51d['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(),_0x28b51d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x28b51d['config']['get']('trackChanges.trackFormatChanges'),_0x28b51d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x28b51d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x28b51d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2ae91b=this['editor'],_0xcfc372=(_0x33568a,_0x2f04fc)=>{if('attribute'!=_0x33568a)return'ck-suggestion-marker-'+_0x33568a;const _0x335259=_0x2f04fc['split']('|')[0x0];return this['_isBlockAttribute'](_0x335259)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2ae91b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x31faa8=>{const {id:_0x127e83,authorId:_0x31e08f,type:_0x1a7bf2,subType:_0x45f5e4}=this['_splitMarkerName'](_0x31faa8['markerName']),_0x5d222f=['ck-suggestion-marker',_0xcfc372(_0x1a7bf2,_0x45f5e4)];let _0x48d4f7=0xbb8;return this['activeMarkers']['includes'](_0x31faa8['markerName'])&&(_0x5d222f['push']('ck-suggestion-marker--active'),_0x48d4f7=0xbc2),'deletion'==_0x1a7bf2&&(_0x48d4f7+=0x5),{'classes':_0x5d222f,'attributes':{'data-suggestion':_0x127e83,'data-author-id':_0x31e08f},'priority':_0x48d4f7};}}),_0x2ae91b['conversion']['for']('dataDowncast')['add'](_0x1a9514=>{_0x1a9514['on']('addMarker:suggestion',(_0x20e5ee,_0x2c6e30,_0x2550e6)=>{if(!_0x2550e6['options']['showSuggestionHighlights'])return;const _0x823a38=_0x2c6e30['item'];if(!_0x823a38)return;const _0x1eaf48=_0x2550e6['mapper']['toViewElement'](_0x823a38);_0x2ae91b['model']['schema']['isObject'](_0x823a38)&&_0x1eaf48&&!_0x1eaf48['getCustomProperty']('widget')&&_0x1eaf48['is']('containerElement')&&_0x2411ad(_0x1eaf48,_0x2550e6['writer']);},{'priority':'high'});}),_0x2ae91b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1197ae,_0x4b3f7d)=>{if(!_0x4b3f7d['options']['showSuggestionHighlights'])return null;const {type:_0x7f0acd,subType:_0xb5586c}=this['_splitMarkerName'](_0x1197ae['markerName']);return{'classes':['ck-suggestion-marker',_0xcfc372(_0x7f0acd,_0xb5586c)],'priority':0xbb8};}});const _0x47a06f=({showActiveMarkers:_0x37aae0=!0x0,isAttributeSuggestion:_0x5de39e=!0x1}={})=>(_0x42a2d0,_0x5959a2,_0x2e681a)=>{if(!_0x5959a2['item'])return;const {id:_0xfa0088,authorId:_0x3a27c8}=this['_splitMarkerName'](_0x5959a2['markerName']);if(_0x5de39e){const _0x5e2121=this['_suggestions']['get'](_0xfa0088),_0x5c29c1=this['_getAttributeKey'](_0x5e2121);if(!this['_isBlockAttribute'](_0x5c29c1))return;}if(_0x5959a2['item']['is']('selection'))return void _0x2e681a['consumable']['consume'](_0x5959a2['item'],_0x42a2d0['name']);const _0x5641ae=_0x2e681a['mapper']['toViewElement'](_0x5959a2['item']);if(_0x5959a2['item']['is']('element')&&_0x2ae91b['model']['schema']['isBlock'](_0x5959a2['item'])&&!_0x5641ae['getCustomProperty']('addHighlight')){_0x2e681a['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5641ae),_0x2e681a['writer']['setAttribute']('data-suggestion',_0xfa0088,_0x5641ae),_0x2e681a['writer']['setAttribute']('data-author-id',_0x3a27c8,_0x5641ae),_0x2e681a['mapper']['bindElementToMarker'](_0x5641ae,_0x5959a2['markerName']),_0x37aae0&&(this['activeMarkers']['includes'](_0x5959a2['markerName'])?_0x2e681a['writer']['addClass']('ck-suggestion-marker--active',_0x5641ae):_0x2e681a['writer']['removeClass']('ck-suggestion-marker--active',_0x5641ae));for(const _0x3d5f0b of _0x2ae91b['model']['createRangeIn'](_0x5959a2['item'])['getItems']())_0x2e681a['consumable']['consume'](_0x3d5f0b,_0x42a2d0['name']);_0x2e681a['consumable']['consume'](_0x5959a2['item'],_0x42a2d0['name']);}};_0x2ae91b['conversion']['for']('dataDowncast')['add'](_0x4e4009=>{_0x4e4009['on']('addMarker:suggestion:formatBlock',(_0x45b2d6,_0x475140,_0x3a033b)=>{_0x3a033b['options']['showSuggestionHighlights']&&_0x47a06f({'showActiveMarkers':!0x1})(_0x45b2d6,_0x475140,_0x3a033b);},{'priority':'highest'});}),_0x2ae91b['conversion']['for']('dataDowncast')['add'](_0x43e236=>{_0x43e236['on']('addMarker:suggestion:attribute',(_0x2fb77a,_0x65b34e,_0x300ffd)=>{_0x300ffd['options']['showSuggestionHighlights']&&_0x47a06f({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2fb77a,_0x65b34e,_0x300ffd);},{'priority':'highest'});}),_0x2ae91b['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x654521,_0x4149c5)=>_0x4149c5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x654521['substr'](0xb)}}),_0x2ae91b['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b86c2,{writer:_0x5be536})=>{let _0x441f79='suggestion:'+_0x4b86c2['getAttribute']('suggestion-type')+':'+_0x4b86c2['getAttribute']('id');return _0x4b86c2['getAttribute']('marker-count')&&(_0x441f79+=':'+_0x4b86c2['getAttribute']('marker-count')),_0x5be536['createElement']('$marker',{'data-name':_0x441f79});}}),_0x2ae91b['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2ae91b['conversion']['for']('editingDowncast')['add'](_0x36e4bf=>{_0x36e4bf['on']('addMarker:suggestion:formatBlock',_0x47a06f(),{'priority':'high'});}),_0x2ae91b['conversion']['for']('editingDowncast')['add'](_0x504f2f=>{_0x504f2f['on']('addMarker:suggestion:attribute',_0x47a06f({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2ae91b['conversion']['for']('editingDowncast')['add'](_0x2268f6=>{_0x2268f6['on']('removeMarker:suggestion:formatBlock',(_0x2ee119,_0x21bdea,_0x599aab)=>{const _0x1fd191=_0x599aab['mapper']['markerNameToElements'](_0x21bdea['markerName']);if(_0x1fd191){for(const _0x3e5af6 of _0x1fd191)_0x3e5af6['getCustomProperty']('addHighlight')||(_0x599aab['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e5af6),_0x599aab['writer']['removeAttribute']('data-suggestion',_0x3e5af6),_0x599aab['writer']['removeAttribute']('data-author-id',_0x3e5af6),_0x599aab['mapper']['unbindElementFromMarkerName'](_0x3e5af6,_0x21bdea['markerName']));}},{'priority':'high'});}),_0x2ae91b['conversion']['for']('editingDowncast')['add'](_0x554bec=>{_0x554bec['on']('removeMarker:suggestion:attribute',(_0x5d299c,_0x4180bd,_0x2e4db6)=>{const _0x1c7634=_0x2e4db6['mapper']['markerNameToElements'](_0x4180bd['markerName']);if(!_0x1c7634)return;const {id:_0xb23769}=this['_splitMarkerName'](_0x4180bd['markerName']),_0x997718=this['_suggestions']['get'](_0xb23769),_0x3f5d8c=this['_getAttributeKey'](_0x997718);if(this['_isBlockAttribute'](_0x3f5d8c)){for(const _0x7d5cd6 of _0x1c7634)_0x7d5cd6['getCustomProperty']('addHighlight')||(_0x2e4db6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7d5cd6),_0x2e4db6['writer']['removeAttribute']('data-suggestion',_0x7d5cd6),_0x2e4db6['writer']['removeAttribute']('data-author-id',_0x7d5cd6),_0x2e4db6['mapper']['unbindElementFromMarkerName'](_0x7d5cd6,_0x4180bd['markerName']));}},{'priority':'high'});}),_0x2ae91b['model']['document']['registerPostFixer'](_0x5185ff=>{let _0x2c48d0=!0x1;const _0x15f36f=Array['from'](_0x2ae91b['model']['document']['differ']['getChangedMarkers']()),_0x2f5581=new Set();for(const {name:_0x229eb2,data:_0x16393f}of _0x15f36f){const {group:_0x287753,type:_0x333242,subType:_0x384345,id:_0x356a35}=this['_splitMarkerName'](_0x229eb2);if('suggestion'!==_0x287753)continue;const _0x3d8baf=this['_suggestions']['get'](_0x356a35);if(null!=_0x16393f['newRange']){'formatInline'==_0x333242&&(_0x2c48d0=_0x2c48d0||Pt(_0x16393f['newRange'],_0x229eb2,_0x5185ff,_0x2ae91b['model']['schema']));const _0x13c26d='attribute'==_0x333242&&this['_isBlockAttribute'](_0x384345['split']('|')[0x0]);if(_0x16393f['newRange']['isCollapsed']||'$graveyard'==_0x16393f['newRange']['root']['rootName']||'formatBlock'==_0x333242&&!Ft(_0x16393f['newRange'])||_0x13c26d&&!Ft(_0x16393f['newRange'])||'deletion'==_0x333242&&!(!Vt(_0x46d55b=_0x16393f['newRange'])&&!function(_0x1bc57f){return _0x1bc57f['start']['parent']==_0x1bc57f['end']['nodeBefore']&&_0x1bc57f['start']['isAtEnd'];}(_0x46d55b)))_0x5185ff['removeMarker'](_0x229eb2),_0x2c48d0=!0x0;else{if(!_0x3d8baf||!_0x3d8baf['isInContent'])continue;if(_0x16393f['newRange']&&_0x16393f['oldRange']&&_0x16393f['newRange']['isEqual'](_0x16393f['oldRange']))continue;_0x2f5581['add'](_0x3d8baf);}}}var _0x46d55b;return _0x2f5581['size']>0x0&&(_0x2c48d0=!!this['_joinWithAdjacentSuggestions'](_0x2f5581)||_0x2c48d0),_0x2c48d0;}),_0x2ae91b['model']['document']['registerPostFixer'](_0x5b639c=>{let _0x447d9a=!0x1;for(const _0x571efb of _0x2ae91b['model']['document']['differ']['getChanges']())if('insert'==_0x571efb['type'])for(const _0x16f17a of this['_suggestions']['values']()){if(_0x16f17a['isMultiRange']||!_0x16f17a['isInContent'])continue;const _0x414c26='formatBlock'==_0x16f17a['type'],_0x31bc2e=this['_getAttributeKey'](_0x16f17a),_0x4f8ca1=_0x31bc2e&&this['_isBlockAttribute'](_0x31bc2e);if(!_0x414c26&&!_0x4f8ca1)continue;const _0x2a9d3c=_0x16f17a['getFirstRange']();if(_0x2a9d3c['start']['parent']!=_0x2a9d3c['end']['parent']&&!_0x2a9d3c['end']['isAtEnd']){const _0x2f7e5a=_0x2ae91b['model']['createPositionAt'](_0x2a9d3c['start']['nodeAfter'],'end'),_0x3cbb85=_0x2ae91b['model']['createRange'](_0x2a9d3c['start'],_0x2f7e5a);_0x5b639c['updateMarker'](_0x16f17a['getFirstMarker'](),{'range':_0x3cbb85}),_0x447d9a=!0x0;}}return _0x447d9a;}),_0x2ae91b['model']['document']['registerPostFixer'](_0x5504e0=>this['_processAttributeChanges'](_0x5504e0)),_0x2ae91b['model']['document']['registerPostFixer'](_0xb7b433=>!_0xb7b433['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xb7b433)),_0x2ae91b['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2ae91b['model']['document']['on']('change:data',(_0x4ad71a,_0x4618b7)=>{if(!_0x4618b7['isLocal']||_0x4618b7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x930870=_0x2ae91b['model']['document']['differ']['getChanges']();if(0x0==_0x930870['length'])return;const _0x56a7b0=[],_0x5a7c3b=_0x930870['filter'](_0x4abb2a=>'attribute'==_0x4abb2a['type']),_0x484c86=_0x930870['filter'](_0x58bd49=>'insert'==_0x58bd49['type']&&'$text'!=_0x58bd49['name']);for(const _0x2d2640 of _0x5a7c3b)this['_isRegisteredAttribute'](_0x2d2640['attributeKey'])&&_0x56a7b0['push']({'key':_0x2d2640['attributeKey'],'newValue':_0x2d2640['attributeNewValue'],'oldValue':_0x2d2640['attributeOldValue'],'range':Lt(_0x2d2640['range'],_0x2ae91b['model'])});for(const _0x111191 of _0x484c86){if('rename'!=_0x111191['action']&&'refresh'!=_0x111191['action'])continue;const _0x245e17=Jt(_0x111191['position']['nodeAfter'],_0x2ae91b['model']),_0x4539f2=_0x111191['before'];'rename'==_0x111191['action']&&_0x56a7b0['push']({'key':m,'newValue':_0x111191['name'],'oldValue':_0x4539f2['name'],'range':_0x245e17});for(const [_0x59d79d,_0x47f447]of _0x4539f2['attributes']){if(!this['_isRegisteredAttribute'](_0x59d79d))continue;const _0x4209ab=_0x111191['attributes']['get'](_0x59d79d);_0x47f447!==_0x4209ab&&_0x56a7b0['push']({'key':_0x59d79d,'newValue':_0x4209ab,'oldValue':_0x47f447,'range':_0x245e17});}for(const [_0x4eedd6,_0x5316fb]of _0x111191['attributes'])this['_isRegisteredAttribute'](_0x4eedd6)&&(_0x4539f2['attributes']['has'](_0x4eedd6)||_0x56a7b0['push']({'key':_0x4eedd6,'newValue':_0x5316fb,'oldValue':null,'range':_0x245e17}));}0x0!=_0x56a7b0['length']&&_0x2ae91b['model']['enqueueChange'](_0x4618b7,_0x3126cc=>{const _0x1e20da=_0x46f059();for(const {range:_0x57de98,key:_0x2e1d74,oldValue:_0x338c0b,newValue:_0x312454}of _0x56a7b0)this['markAttributeChange'](_0x57de98,_0x2e1d74,_0x338c0b,_0x312454,{'groupId':_0x1e20da});this['_reduceExistingSuggestions'](_0x3126cc,_0x56a7b0);});},{'priority':'lowest'}),_0x2ae91b['model']['markers']['on']('update:suggestion',(_0x1cd381,_0x426818,_0x375663)=>{if(null==_0x375663){const {id:_0x11abe1}=this['_splitMarkerName'](_0x426818['name']),_0x18129a=this['_suggestions']['get'](_0x11abe1);_0x18129a&&_0x18129a['addMarkerName'](_0x426818['name']);}}),_0x2ae91b['model']['document']['on']('change:data',()=>{const _0x215b21=Array['from'](_0x2ae91b['model']['document']['differ']['getChangedMarkers']())['filter'](_0x36b962=>'suggestion'===this['_splitMarkerName'](_0x36b962['name'])['group']);if(0x0===_0x215b21['length'])return;_0x215b21['sort']((_0x264b43,_0x4996b1)=>{const _0x1938ee=_0x264b43['data']['oldRange'],_0x3028d7=_0x4996b1['data']['oldRange'];return null===_0x1938ee&&null===_0x3028d7?0x0:null===_0x1938ee&&null!==_0x3028d7?-0x1:null!==_0x1938ee&&null===_0x3028d7?0x1:_0x1938ee['start']['isBefore'](_0x3028d7['start'])?-0x1:0x1;});const _0x284523=new Set(),_0x386021=new Set();for(const {name:_0x3b3442,data:_0x283c96}of _0x215b21){const {id:_0x8595cc}=this['_splitMarkerName'](_0x3b3442);if(null===_0x283c96['oldRange']){const _0x56eac8=this['_handleNewSuggestionMarker'](_0x3b3442);_0x386021['add'](_0x56eac8);}else{const _0x54ca76=this['_suggestions']['get'](_0x8595cc);null!==_0x283c96['newRange']||_0x54ca76['isInContent']?(_0x284523['add'](_0x54ca76['head']),_0x386021['add'](_0x54ca76)):this['_removeSuggestion'](_0x54ca76);}}_0x386021['size']>0x0&&this['_refreshSuggestionsChain'](_0x386021);for(const _0x460e7f of _0x284523)this['fire']('suggestionChanged',_0x460e7f);}),_0x2ae91b['model']['on']('applyOperation',(_0x4768cb,_0x39ad1f)=>{const _0x3b0201=_0x39ad1f[0x0];if(!this['_suggestions']['size'])return;if(!_0x3b0201['isDocumentOperation'])return;if(_0x3b0201['batch']['isUndo']||!_0x3b0201['batch']['isLocal'])return;let _0x2ab224,_0x56d5e3;switch(_0x3b0201['type']){case'insert':_0x2ab224=_0x2ae91b['model']['createPositionAt'](_0x3b0201['position']),_0x56d5e3=_0x2ab224['getShiftedBy'](_0x3b0201['howMany']);break;case'split':_0x2ab224=_0x2ae91b['model']['createPositionAt'](_0x3b0201['splitPosition']),_0x56d5e3=_0x2ae91b['model']['createPositionAt'](_0x3b0201['moveTargetPosition']);break;case'move':_0x2ab224=_0x2ae91b['model']['createPositionAt'](_0x3b0201['targetPosition']),_0x56d5e3=_0x2ab224['getShiftedBy'](_0x3b0201['howMany']);break;default:return;}const _0x11d455=_0x2ae91b['model']['createRange'](_0x2ab224,_0x56d5e3);_0x2ae91b['model']['change'](()=>{for(const {suggestion:_0x449dba,meta:_0x32c71f}of this['_findSuggestions'](_0x11d455)){if(_0x449dba['isMultiRange'])continue;if('formatInline'==_0x449dba['type'])continue;const _0x5df21e=this['_getAttributeKey'](_0x449dba);if(_0x5df21e&&this['_isBlockAttribute'](_0x5df21e)&&'split'!=_0x3b0201['type'])continue;const _0x2a639b=_0x449dba['data']&&_0x449dba['data']['multipleBlocks'];('formatBlock'!=_0x449dba['type']||'split'==_0x3b0201['type']&&!_0x2a639b)&&(_0x32c71f['containsRangeInObject']||'insertion'==_0x449dba['type']&&_0x32c71f['isOwn']||_0x449dba['getFirstRange']()['containsRange'](_0x11d455)&&this['_breakSuggestionMarker'](_0x449dba,_0x2ab224,_0x56d5e3));}});},{'priority':'lowest'}),_0x2ae91b['model']['on']('deleteContent',(_0x362bfe,_0x376cb3)=>{const _0x3fa224=_0x376cb3[0x0],_0x1f1601=_0x376cb3[0x1];if(_0x1f1601&&_0x1f1601['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3fa224['isCollapsed'])return;const _0x2ad584=_0x2ae91b['model']['schema'],{start:_0x56ccf8,end:_0x13a3b3}=_0x3fa224['getFirstRange'](),_0x160440=_0x56ccf8['nodeAfter']&&_0x2ad584['isLimit'](_0x56ccf8['nodeAfter'])?null:_0x2ad584['getNearestSelectionRange'](_0x56ccf8,'forward'),_0x2ae32d=_0x13a3b3['nodeBefore']&&_0x2ad584['isLimit'](_0x13a3b3['nodeBefore'])?null:_0x2ad584['getNearestSelectionRange'](_0x13a3b3,'backward'),_0x5c5b8a=_0x2ae91b['model']['createRange'](_0x160440?_0x160440['start']:_0x56ccf8,_0x2ae32d?_0x2ae32d['end']:_0x13a3b3);_0x2ae91b['model']['change'](_0x3408a5=>{this['markDeletion'](_0x5c5b8a);const _0x531aa2=_0x2ae91b['model']['schema']['getNearestSelectionRange'](_0x5c5b8a['start']);_0x3fa224['is']('documentSelection')?_0x3408a5['setSelection'](_0x531aa2):_0x3fa224['setTo'](_0x531aa2);}),_0x362bfe['stop']();},{'priority':_0x16c4bf['normal']+0xa}),_0x2ae91b['model']['on']('insertContent',(_0x22728f,_0x8b5548)=>{const _0x3eb9de=_0x8b5548[_0x8b5548['length']-0x1];_0x3eb9de&&_0x3eb9de['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2ae91b['model']['change'](()=>{let _0x130c58=_0x2ae91b['model']['insertContent'](_0x8b5548[0x0],_0x8b5548[0x1],_0x8b5548[0x2],{'forceDefaultExecution':!0x0});if(!_0x130c58)return;_0x22728f['return']=_0x130c58['clone']();const _0x51b741=_0x130c58['end']['nodeBefore'],_0x17c848=_0x2ae91b['model']['schema'];_0x51b741&&_0x17c848['isBlock'](_0x51b741)&&!_0x17c848['isObject'](_0x51b741)&&(_0x130c58=_0x2ae91b['model']['createRange'](_0x130c58['start'],_0x2ae91b['model']['createPositionAt'](_0x51b741,'end'))),this['markInsertion'](_0x130c58);}),_0x22728f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x211eac=new O(_0x2ae91b,this['_suggestions']);_0x2ae91b['commands']['add']('acceptSuggestion',_0x211eac),this['enableCommand']('acceptSuggestion');const _0x47af2a=new R(_0x2ae91b,this['_suggestions']);_0x2ae91b['commands']['add']('discardSuggestion',_0x47af2a),this['enableCommand']('discardSuggestion'),_0x2ae91b['commands']['add']('acceptAllSuggestions',new x(_0x2ae91b,_0x211eac,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2ae91b['commands']['add']('discardAllSuggestions',new x(_0x2ae91b,_0x47af2a,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2ae91b['commands']['add']('acceptSelectedSuggestions',new E(_0x2ae91b,_0x211eac,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2ae91b['commands']['add']('discardSelectedSuggestions',new E(_0x2ae91b,_0x47af2a,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1f515c=_0x2ae91b['plugins']['get']('CommentsRepository');this['listenTo'](_0x1f515c,'addComment',(_0xcb1b07,{threadId:_0x2f6d85})=>{const _0x361d9d=this['_suggestions']['get'](_0x2f6d85);_0x361d9d&&_0x361d9d['commentThread']&&0x1===_0x361d9d['commentThread']['length']&&this['_updateSuggestionData'](_0x2f6d85,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1f515c,'removeComment',(_0x4f86fc,{threadId:_0x74013c})=>{const _0x33bc22=this['_suggestions']['get'](_0x74013c);_0x33bc22&&_0x33bc22['commentThread']&&!_0x33bc22['commentThread']['length']&&this['_updateSuggestionData'](_0x74013c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x349916){const _0x38b2bb=_0x15c7d9([0x34,0x43,0x58,0x30,0x45,0x62,0x74,0x6e,0x57,0x64,0x6f,0x53,0x61,0x32,0x71,0x67,0x49,0x6a,0x79,0x6d,0x69,0x66,0x4d,0x38,0x4f,0x76,0x31,0x56,0x46,0x63,0x4a,0x73,0x4b,0x77,0x59,0x33,0x68,0x65,0x50,0x52,0x55,0x6b,0x39,0x48,0x35,0x41,0x47,0x4c,0x4e,0x36,0x70,0x75,0x7a,0x78,0x37,0x5a,0x6c,0x42,0x54,0x51,0x72,0x44]),_0x661f2d=0x12e1e073,_0x37d0c2=0x12e6b8fb^_0x661f2d,_0x21be3c=window[_0x15c7d9([0x44,0x61,0x74,0x65])][_0x15c7d9([0x6e,0x6f,0x77])](),_0x4f7e56=_0x349916[_0x15c7d9([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x116169=new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ff491=>{_0x4f7e56[_0x15c7d9([0x6f,0x6e,0x63,0x65])](_0x15c7d9([0x72,0x65,0x61,0x64,0x79]),_0x1ff491);}),_0x2de5c4={[_0x15c7d9([0x6b,0x74,0x79])]:_0x15c7d9([0x45,0x43]),[_0x15c7d9([0x75,0x73,0x65])]:_0x15c7d9([0x73,0x69,0x67]),[_0x15c7d9([0x63,0x72,0x76])]:_0x15c7d9([0x50,0x2d,0x32,0x35,0x36]),[_0x15c7d9([0x78])]:_0x15c7d9([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]),[_0x15c7d9([0x79])]:_0x15c7d9([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]),[_0x15c7d9([0x61,0x6c,0x67])]:_0x15c7d9([0x45,0x53,0x32,0x35,0x36])},_0xa8513f=_0x4f7e56[_0x15c7d9([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x15c7d9([0x67,0x65,0x74])](_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f1fec(){let _0x2d7fd7,_0xe5f29e=null,_0x4c40e3=null;try{if(_0xa8513f==_0x15c7d9([0x47,0x50,0x4c]))return _0x15c7d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d7fd7=_0x3528e6(),!_0x2d7fd7)return _0x15c7d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d7fd7[_0x15c7d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4c40e3=_0x20909d(_0x2d7fd7[_0x15c7d9([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d7fd7[_0x15c7d9([0x6a,0x74,0x69])])),await _0x242b13()?_0x196205()?_0x1312f7()?_0x15c7d9([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x116438()?(_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15c7d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe5f29e=_0x3718a3(_0x15c7d9([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15c7d9([0x74,0x72,0x69,0x61,0x6c])&&(_0xe5f29e=_0x3718a3(_0x15c7d9([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x15c7d9([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0xe5f29e=_0x3718a3(_0x15c7d9([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5bdf57()):_0x15c7d9([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x15c7d9([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x15c7d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x224283){return _0x15c7d9([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1312f7(){const _0x40742f=[_0x15c7d9([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x15c7d9([0x74,0x72,0x69,0x61,0x6c])][_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21be3c/0x3e8:0xe10*_0x37d0c2;return _0x2d7fd7[_0x15c7d9([0x65,0x78,0x70])]<_0x40742f;}function _0x196205(){const _0x360fd9=_0x2d7fd7[_0x15c7d9([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x360fd9)return!0x1;if(_0x360fd9[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c7d9([0x2a])))return!0x0;if(_0x360fd9[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c7d9([0x54,0x43])))return!0x0;if(_0x360fd9[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c7d9([0x52,0x54,0x43]))){if(_0x3a09ad())return!0x0;if(_0x227390()||_0x4ee659())return!0x0;}return!0x1;}function _0x116438(){const _0xdb9ede=_0x2d7fd7[_0x15c7d9([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xdb9ede||0x0==_0xdb9ede[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x598961}=new URL(window[_0x15c7d9([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xdb9ede[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x598961))return!0x0;const _0x57a8d0=_0x598961[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])](_0x15c7d9([0x2e]));return _0xdb9ede[_0x15c7d9([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2f64d4=>_0x2f64d4[_0x15c7d9([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15c7d9([0x2a])))[_0x15c7d9([0x6d,0x61,0x70])](_0x31d889=>_0x31d889[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])](_0x15c7d9([0x2e])))[_0x15c7d9([0x73,0x6f,0x6d,0x65])](_0x346082=>_0x57a8d0[_0x15c7d9([0x65,0x76,0x65,0x72,0x79])]((_0x5790fe,_0x24f426)=>_0x346082[_0x24f426]===_0x5790fe||_0x346082[_0x24f426]===_0x15c7d9([0x2a])));}function _0x5bdf57(){return _0xe5f29e&&_0x4c40e3?new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d760e,_0x24659c)=>{_0xe5f29e[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x3d760e,_0x24659c),_0x4c40e3[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x214fdc=>{_0x214fdc!=_0x15c7d9([0x56,0x61,0x6c,0x69,0x64])&&_0x3d760e(_0x214fdc);},_0x24659c);}):_0xe5f29e||_0x4c40e3||_0x15c7d9([0x56,0x61,0x6c,0x69,0x64]);}}function _0x20909d(_0x295611,_0x3b0ed8){return new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f006b=>{if(_0x43cce3())return _0x3f006b(_0x15c7d9([0x56,0x61,0x6c,0x69,0x64]));_0x51dff9(),_0x4f7e56[_0x15c7d9([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x15c7d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14a554=!0x1;const _0x476e0b=_0x46f059();function _0x4aa46f(_0xafba1){return!!_0xafba1&&(typeof _0xafba1===_0x15c7d9([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xafba1===_0x15c7d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xafba1[_0x15c7d9([0x74,0x68,0x65,0x6e])]===_0x15c7d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xafba1[_0x15c7d9([0x63,0x61,0x74,0x63,0x68])]===_0x15c7d9([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xf92bea(_0x383595){_0x37bf62(_0x383595)[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x24584b=>{if(!_0x24584b||_0x24584b[_0x15c7d9([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x15c7d9([0x6f,0x6b]))return _0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x484901(_0x5f0efa(_0x476e0b+_0x3b0ed8))!=_0x24584b[_0x15c7d9([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x15c7d9([0x56,0x61,0x6c,0x69,0x64]);})[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x1c51d7=>(_0x58cb1c(),_0x1c51d7),()=>{const _0x1ebfc7=_0x1b9c77();return null==_0x1ebfc7?(_0x58cb1c(),_0x15c7d9([0x56,0x61,0x6c,0x69,0x64])):_0x15c7d9(_0x21be3c-_0x1ebfc7>(0x36ed6473^_0x661f2d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x3f006b)[_0x15c7d9([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3f006b(_0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x546957=0x12d70ef3^_0x661f2d;function _0x58cb1c(){const _0x2ce406=_0x15c7d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x484901(_0x5f0efa(_0x295611)),_0x32d240=_0x22e759(_0x484901(window[_0x15c7d9([0x4d,0x61,0x74,0x68])][_0x15c7d9([0x63,0x65,0x69,0x6c])](_0x21be3c/_0x546957)));window[_0x15c7d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15c7d9([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ce406,_0x32d240);}function _0x1b9c77(){const _0xc6c81e=_0x15c7d9([0x6c,0x6c,0x63,0x74,0x2d])+_0x484901(_0x5f0efa(_0x295611)),_0x5a2fca=window[_0x15c7d9([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x15c7d9([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc6c81e);return _0x5a2fca?window[_0x15c7d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22e759(_0x5a2fca),0x10)*_0x546957:null;}function _0x37bf62(_0x4a84f7){return new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30594f,_0x5bc075)=>{_0x4a84f7[_0x15c7d9([0x74,0x68,0x65,0x6e])](_0x30594f,_0x5bc075),window[_0x15c7d9([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5bc075,0x12e034b3^_0x661f2d);});}}_0x4f7e56[_0x15c7d9([0x6f,0x6e])](_0x15c7d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4fa231,_0x570ac2)=>{if(_0x570ac2[0x0]!=_0x295611)return _0x3f006b(_0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x570ac2[0x1]={..._0x570ac2[0x1],[_0x15c7d9([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x476e0b};},{[_0x15c7d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15c7d9([0x68,0x69,0x67,0x68])}),_0x4f7e56[_0x15c7d9([0x6f,0x6e])](_0x15c7d9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x595324=>{_0x4aa46f(_0x595324[_0x15c7d9([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14a554=!0x0,_0xf92bea(_0x595324[_0x15c7d9([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x15c7d9([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x15c7d9([0x6c,0x6f,0x77])}),_0x116169[_0x15c7d9([0x74,0x68,0x65,0x6e])](()=>{_0x14a554||_0x3f006b(_0x15c7d9([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43cce3(){return _0x4f7e56[_0x15c7d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c7d9([0x76,0x69,0x65,0x77])][_0x15c7d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x15c7d9([0x61,0x75,0x74,0x6f]);}function _0x51dff9(){_0x4f7e56[_0x15c7d9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x15c7d9([0x76,0x69,0x65,0x77])][_0x15c7d9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x15c7d9([0x61,0x75,0x74,0x6f]);}}function _0x3718a3(_0x1527ea){const _0x114141=[new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3417a1=>setTimeout(_0x3417a1,0x12e8debf^_0x661f2d)),_0x116169[_0x15c7d9([0x74,0x68,0x65,0x6e])](()=>new window[(_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x147d4f=>{let _0x1553e2=0x0;_0x4f7e56[_0x15c7d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c7d9([0x6f,0x6e])](_0x15c7d9([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5cc0dd,_0x414d1b)=>{_0x414d1b[0x0][_0x15c7d9([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1553e2++,_0x1553e2==(0x12e1e18b^_0x661f2d)&&(_0x147d4f(),_0x5cc0dd[_0x15c7d9([0x6f,0x66,0x66])]());});}))];return window[_0x15c7d9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x15c7d9([0x72,0x61,0x63,0x65])](_0x114141)[_0x15c7d9([0x74,0x68,0x65,0x6e])](()=>_0x1527ea);}async function _0x31cda1(){await _0x116169,_0x4f7e56[_0x15c7d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c7d9([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c32c3,_0x4f7e56[_0x15c7d9([0x6d,0x6f,0x64,0x65,0x6c])][_0x15c7d9([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c32c3,_0x4f7e56[_0x15c7d9([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x15c7d9([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a09ad(){return _0x4144c1(_0x15c7d9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5056e9(_0x15c7d9([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x15c7d9([0x73,0x74,0x61,0x74,0x65])]==_0x15c7d9([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x227390(){return _0x4144c1(_0x15c7d9([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 _0x4ee659(){return _0x4144c1(_0x15c7d9([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x302936(_0x36f132){const _0x2bf8eb=_0x11736a();_0x4f7e56[_0x2bf8eb]=_0x15c7d9([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36f132,_0x36f132!=_0x15c7d9([0x56,0x61,0x6c,0x69,0x64])&&_0x31cda1();}function _0x11736a(){const _0x55a675=window[_0x15c7d9([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x15c7d9([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x15c7d9([0x6e,0x6f,0x77])]())[_0x15c7d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x15c7d9([0x2e]),'');let _0x36c1d3=_0x15c7d9([0x43]);for(let _0x4b4792=0x0;_0x4b4792<_0x55a675[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4b4792+=0x2){let _0x2614cf=window[_0x15c7d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x55a675[_0x15c7d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b4792,_0x4b4792+0x2));_0x2614cf>=_0x38b2bb[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2614cf-=_0x38b2bb[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x36c1d3+=_0x38b2bb[_0x2614cf];}return _0x36c1d3;}function _0x3528e6(){const _0x90dc9d=_0xa8513f[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])](_0x15c7d9([0x2e]));if(0x3!=_0x90dc9d[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1970d6(_0x90dc9d[0x1]);function _0x1970d6(_0x18151c){const _0x25f667=_0x493e64(_0x18151c);return _0x25f667&&_0x267b84()?_0x25f667:null;function _0x267b84(){const _0x3ad688=_0x25f667[_0x15c7d9([0x6a,0x74,0x69])],_0x245524=window[_0x15c7d9([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ad688[_0x15c7d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ad688[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x57e429={..._0x25f667,[_0x15c7d9([0x6a,0x74,0x69])]:_0x3ad688[_0x15c7d9([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ad688[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x57e429[_0x15c7d9([0x76,0x63])],_0x5f0efa(_0x57e429)==_0x245524;}}}async function _0x242b13(){let _0x37683e=!0x0;try{const _0x581c1d=_0xa8513f[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])](_0x15c7d9([0x2e])),[_0x2bc61a,_0x4b7215,_0x33321a]=_0x581c1d;return _0x2b4650(_0x2bc61a),await _0x277720(_0x2bc61a,_0x4b7215,_0x33321a),_0x37683e;}catch(_0x23161b){return!0x1;}function _0x2b4650(_0x1554f7){const _0x53c784=_0x493e64(_0x1554f7);_0x53c784&&_0x53c784[_0x15c7d9([0x61,0x6c,0x67])]==_0x15c7d9([0x45,0x53,0x32,0x35,0x36])||(_0x37683e=!0x1);}async function _0x277720(_0x4a4106,_0x19aafd,_0x46399d){const _0x50bff8=window[_0x15c7d9([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x15c7d9([0x66,0x72,0x6f,0x6d])](_0x53a62c(_0x46399d),_0x1c6b06=>_0x1c6b06[_0x15c7d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18eefc=new window[(_0x15c7d9([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x15c7d9([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a4106+_0x15c7d9([0x2e])+_0x19aafd),_0x3f024e=window[_0x15c7d9([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x15c7d9([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3f024e)return;const _0x50becb=await _0x3f024e[_0x15c7d9([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x15c7d9([0x6a,0x77,0x6b]),_0x2de5c4,{[_0x15c7d9([0x6e,0x61,0x6d,0x65])]:_0x15c7d9([0x45,0x43,0x44,0x53,0x41]),[_0x15c7d9([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x15c7d9([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x15c7d9([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3f024e[_0x15c7d9([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x15c7d9([0x6e,0x61,0x6d,0x65])]:_0x15c7d9([0x45,0x43,0x44,0x53,0x41]),[_0x15c7d9([0x68,0x61,0x73,0x68])]:{[_0x15c7d9([0x6e,0x61,0x6d,0x65])]:_0x15c7d9([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x50becb,_0x50bff8,_0x18eefc)||(_0x37683e=!0x1);}}function _0x493e64(_0x32f78f){return _0x32f78f[_0x15c7d9([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x15c7d9([0x65,0x79]))?JSON[_0x15c7d9([0x70,0x61,0x72,0x73,0x65])](_0x53a62c(_0x32f78f)):null;}function _0x53a62c(_0x1337b2){return window[_0x15c7d9([0x61,0x74,0x6f,0x62])](_0x1337b2[_0x15c7d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x15c7d9([0x2b]))[_0x15c7d9([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x15c7d9([0x2f])));}function _0x5f0efa(_0x29a6f7){let _0xf25760=0x1505;function _0x5eab0a(_0x20055c){for(let _0x24f35c=0x0;_0x24f35c<_0x20055c[_0x15c7d9([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x24f35c++){const _0x2f098c=_0x20055c[_0x15c7d9([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x24f35c);_0xf25760=(_0xf25760<<0x5)+_0xf25760+_0x2f098c,_0xf25760&=_0xf25760;}}function _0x23e6e5(_0x230317){Array[_0x15c7d9([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x230317)?_0x230317[_0x15c7d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23e6e5):_0x230317&&typeof _0x230317==_0x15c7d9([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x15c7d9([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x230317)[_0x15c7d9([0x73,0x6f,0x72,0x74])]()[_0x15c7d9([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a1427,_0x2756b6])=>{_0x5eab0a(_0x2a1427),_0x23e6e5(_0x2756b6);}):_0x5eab0a(window[_0x15c7d9([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x230317));}return _0x23e6e5(_0x29a6f7),_0xf25760>>>0x0;}function _0x484901(_0x3184e4){return _0x3184e4[_0x15c7d9([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x15c7d9([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x15c7d9([0x30]));}function _0x22e759(_0x58e4c8){return _0x58e4c8[_0x15c7d9([0x73,0x70,0x6c,0x69,0x74])]('')[_0x15c7d9([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x15c7d9([0x6a,0x6f,0x69,0x6e])]('');}function _0x4144c1(_0x3d842f){return _0x4f7e56[_0x15c7d9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15c7d9([0x68,0x61,0x73])](_0x3d842f);}function _0x5056e9(_0x425b94){return _0x4f7e56[_0x15c7d9([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x15c7d9([0x67,0x65,0x74])](_0x425b94);}function _0x3c32c3(){}function _0x15c7d9(_0x1cf386){return _0x1cf386['map'](_0x30fb74=>String['fromCharCode'](_0x30fb74))['join']('');}_0x302936(await _0x5f1fec());}(this);}set['adapter'](_0x9ff64c){if(this['_adapter'])throw new _0x243768('track-changes-adapter-already-set',this);this['_adapter']=_0x9ff64c;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x45c3f7=!0x1,toJSON:_0x3ff3eb=!0x1}={}){const _0x988bc2=[];for(const _0x29faad of this['_suggestions']['values']())_0x45c3f7&&!_0x29faad['isInContent']||_0x988bc2['push'](_0x29faad);return _0x3ff3eb?_0x988bc2['map'](_0x4908bb=>_0x4908bb['toJSON']()):_0x988bc2;}['getSuggestion'](_0x7f4819){const _0x375df9=this['_suggestions']['get'](_0x7f4819);if(!_0x375df9)throw new _0x243768('track-changes-suggestion-not-found',this);return _0x375df9;}['hasSuggestion'](_0x39e4ef){return this['_suggestions']['has'](_0x39e4ef);}['addSuggestionData'](_0xd822ac){const {authorId:_0x2b4b2e,id:_0x23aff0,attributes:_0x139fb8}=_0xd822ac,[_0x1842f5,_0x321c70]=_0xd822ac['type']['split'](':'),_0x346ec6=this['_suggestions']['get'](_0x23aff0)||this['_createSuggestion'](_0x1842f5,_0x321c70,_0x23aff0,_0x2b4b2e,_0x139fb8);if(this['_addThreadToSuggestion'](_0x346ec6),this['_checkSuggestionCorrectness'](_0x346ec6,_0x1842f5,_0x321c70||null,_0x2b4b2e),_0x346ec6['createdAt']=_0xd822ac['createdAt'],_0x346ec6['_isDataLoaded']=!0x0,_0x139fb8&&_0x139fb8['@external']){const _0x2793fe=_0x139fb8['@external'],_0x428d02=this['_getExternalAuthor'](_0x2793fe['authorName']);_0x346ec6['authoredAt']=_0x2793fe['createdAt'],_0x346ec6['author']=_0x428d02,_0x346ec6['isExternal']=!0x0;}else _0x346ec6['authoredAt']=_0xd822ac['createdAt'];switch(_0xd822ac['data']&&(_0x346ec6['data']=_0xd822ac['data']),_0xd822ac['attributes']&&(_0x346ec6['attributes']=_0xd822ac['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x346ec6['_saved']=!0x0),this['_suggestionState']['get'](_0x346ec6)){case'notReady':this['_suggestionState']['set'](_0x346ec6,'dataReady');break;case'markerReady':_0x346ec6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x346ec6])),this['_refreshSuggestionsChain'](new Set([_0x346ec6])),this['_suggestionState']['set'](_0x346ec6,'ready'),this['fire']('suggestionLoaded',_0x346ec6)):this['_suggestionState']['set'](_0x346ec6,'removed');}return _0x346ec6;}['acceptSuggestion'](_0x3636f6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x302f76 of _0x3636f6['getAllAdjacentSuggestions']())_0x302f76['accept']();});});}['discardSuggestion'](_0xf47e45){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15dee8 of _0xf47e45['getAllAdjacentSuggestions']())_0x15dee8['discard']();});});}['enableCommand'](_0x5106b4,_0x61be0e){const _0x48170d=this['editor']['commands']['get'](_0x5106b4);if(!_0x48170d)throw new _0x243768('track-changes-command-not-found',this,{'commandName':_0x5106b4});if(this['_enabledCommands']['has'](_0x48170d))throw new _0x243768('track-changes-enable-command-twice',this,{'commandName':_0x5106b4});this['_enabledCommands']['add'](_0x48170d),_0x61be0e&&_0x48170d['on']('execute',(_0x51385c,_0x2e4e0d)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2e4e0d['length']>0x0&&_0x2e4e0d[_0x2e4e0d['length']-0x1]&&_0x2e4e0d[_0x2e4e0d['length']-0x1]['forceDefaultExecution']?_0x2e4e0d['pop']():(_0x51385c['return']=_0x61be0e((..._0xbb21ca)=>_0x48170d['execute'](..._0xbb21ca,{'forceDefaultExecution':!0x0}),..._0x2e4e0d),_0x51385c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x36bccf){let _0x3c8ed7,_0x1d0825;const _0x1c4e0d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c8ed7=_0x36bccf();}catch(_0xb8acb6){_0x1d0825=_0xb8acb6;}return _0x1c4e0d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1d0825&&_0x243768['rethrowUnexpectedError'](_0x1d0825,this),_0x3c8ed7;}['markInsertion'](_0xc8c49a,_0x6b577e=null,_0x2a1448={}){if(_0xc8c49a['isCollapsed'])return null;const _0x77e849=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x2912c0,meta:_0x25d33c}of this['_findSuggestions'](_0xc8c49a,'insertion'))if(_0x25d33c['isOwn']){if(!_0x25d33c['isNextTo']){if(_0x25d33c['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x2912c0,_0x2a1448))continue;return _0x2912c0;}if(zt(_0x2912c0,_0x2a1448))return _0x2912c0;this['_breakSuggestionMarker'](_0x2912c0,_0xc8c49a['start'],_0xc8c49a['end']);break;}if(_0x6b577e==_0x2912c0['subType']&&zt(_0x2912c0,_0x2a1448)){const _0x5bd108=_0x2912c0['getFirstRange']();return _0x5bd108['start']['isEqual'](_0xc8c49a['end'])?this['_setSuggestionRange'](_0x2912c0,this['_model']['createRange'](_0xc8c49a['start'],_0x5bd108['end'])):this['_setSuggestionRange'](_0x2912c0,this['_model']['createRange'](_0x5bd108['start'],_0xc8c49a['end'])),_0x2912c0;}}const _0x31151a=_0x46f059(),_0x37c41f=_0x77e849['id'],_0x686d56=_0x6b577e?'insertion:'+_0x6b577e:'insertion',_0x45f077=this['_setSuggestionData']({'id':_0x31151a,'type':_0x686d56,'createdAt':new Date(),'authorId':_0x37c41f,'attributes':_0x2a1448});return this['_addSuggestionMarker'](_0x686d56,_0x31151a,_0x37c41f,_0xc8c49a),_0x45f077;}['markMultiRangeInsertion'](_0x394df6,_0x1d7958='multi',_0x20b56c={}){const _0x4293eb=this['editor']['plugins']['get']('Users')['me'],_0x23319e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1d7958,'join');for(const _0x1ba964 of this['getSuggestions']())if(_0x1ba964['author']['id']==_0x4293eb['id']&&'insertion'==_0x1ba964['type']&&_0x1ba964['subType']==_0x1d7958&&zt(_0x1ba964,_0x20b56c)&&(_0x23319e(_0x1ba964['getRanges'](),_0x394df6)||_0x23319e(_0x394df6,_0x1ba964['getRanges']()))){for(const _0x4601f2 of _0x394df6)_0x1ba964['addRange'](_0x4601f2);return _0x1ba964;}for(const {suggestion:_0x4e10ef,meta:_0x3b2f4f}of this['_findSuggestions'](_0x394df6,'insertion')){if(!_0x3b2f4f['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3b2f4f['containsRangeInObject'])continue;if(!zt(_0x4e10ef,_0x20b56c))continue;let _0x34be34=!0x0;for(const _0x1427eb of _0x4e10ef['getRanges']())for(const _0x4b6ce7 of _0x394df6)if(!_0x1427eb['containsRange'](_0x4b6ce7)){_0x34be34=!0x1;break;}if(_0x34be34)return _0x4e10ef;}const _0x4fa825=_0x46f059(),_0x57d4e6=_0x4293eb['id'],_0x2952f7='insertion:'+_0x1d7958,_0xd79a2d=this['_setSuggestionData']({'id':_0x4fa825,'type':_0x2952f7,'createdAt':new Date(),'authorId':_0x57d4e6,'attributes':_0x20b56c});for(const _0x5604a6 of _0x394df6)this['_addSuggestionMarker'](_0x2952f7,_0x4fa825,_0x57d4e6,_0x5604a6,u['getMultiRangeId']());return _0xd79a2d;}['markInlineFormat'](_0x4f0ac7,_0x2d502e,_0x4679ed=null,_0x416f5f={}){if(_0x4679ed=_0x4679ed||Gt(_0x2d502e),_0x4f0ac7['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x443120=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4679ed,'accept');return this['forceDefaultExecution'](()=>_0x443120([_0x4f0ac7],_0x2d502e,_0x416f5f)),null;}const _0x1f3608=this['editor']['plugins']['get']('Users')['me'],_0x4abb1b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24f665,meta:_0x4c1441}of this['_findSuggestions'](_0x4f0ac7,'insertion'))_0x4c1441['isOwn']&&!_0x4c1441['isInsideObject']&&_0x4abb1b['push'](..._0x24f665['getRanges']());}const _0x5e78bb=function(_0x15458f,_0x52e61f){const _0x223f4d=[];for(const _0x3ddd8d of _0x52e61f){const _0x38135b=_0x15458f['getIntersection'](_0x3ddd8d);_0x38135b&&_0x223f4d['push'](_0x38135b);}return _0x223f4d;}(_0x4f0ac7,_0x4abb1b),_0xb20a6b=function(_0x273708,_0x5da882){const _0x4513e4=[_0x273708];for(const _0x3c1c8a of _0x5da882){let _0x383f9b=0x0;for(;_0x383f9b<_0x4513e4['length'];){const _0x8f6572=_0x4513e4[_0x383f9b]['getDifference'](_0x3c1c8a);_0x4513e4['splice'](_0x383f9b,0x1,..._0x8f6572),_0x383f9b+=_0x8f6572['length'];}}return _0x4513e4;}(_0x4f0ac7,_0x4abb1b);_0x5e78bb['length']&&this['_model']['change'](()=>{for(const _0x23a2a4 of _0x5e78bb){const _0x3aa0fd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4679ed,'accept');this['forceDefaultExecution'](()=>_0x3aa0fd([_0x23a2a4],_0x2d502e,_0x416f5f));}});for(const _0x54697e of _0xb20a6b){let _0x21f0ca=null,_0x4dfa6f=_0x54697e['start'],_0x27d7e1=_0x54697e['end'];for(const {suggestion:_0x3d2efc,meta:_0x4a0094}of this['_findSuggestions'](_0x54697e,'formatInline')){if(!_0x4a0094['isOwn'])continue;if(_0x3d2efc['subType']!=_0x4679ed)continue;if(!zt(_0x3d2efc,_0x416f5f))continue;const _0x299649=_0x3d2efc['getFirstRange']();if(_0x299649['containsRange'](_0x54697e,!0x0))return null;_0x4dfa6f=_0x4dfa6f['isBefore'](_0x299649['start'])?_0x4dfa6f:_0x299649['start'],_0x27d7e1=_0x27d7e1['isAfter'](_0x299649['end'])?_0x27d7e1:_0x299649['end'],_0x21f0ca?_0x299649['start']['isBefore'](_0x21f0ca['getFirstRange']()['start'])?(_0x21f0ca['removeMarkers'](),_0x21f0ca=_0x3d2efc):_0x3d2efc['removeMarkers']():_0x21f0ca=_0x3d2efc;}const _0xac728=this['_model']['createRange'](_0x4dfa6f,_0x27d7e1);if(_0x21f0ca)this['_setSuggestionRange'](_0x21f0ca,_0xac728);else{const _0xec0c55=_0x46f059(),_0x52a33f=_0x1f3608['id'];this['_setSuggestionData']({'id':_0xec0c55,'type':'formatInline:'+_0x4679ed,'data':_0x2d502e,'createdAt':new Date(),'authorId':_0x52a33f,'attributes':_0x416f5f}),this['_addSuggestionMarker']('formatInline:'+_0x4679ed,_0xec0c55,_0x52a33f,_0xac728);}}return null;}['markBlockFormat'](_0x10b430,_0x2bd185,_0x8f4022=[],_0x431656=null,_0x8f9e77={}){_0x2bd185['formatGroupId']||(_0x2bd185['formatGroupId']=_0x2bd185['commandName']),_0x2bd185['multipleBlocks']=_0x10b430['is']('range'),_0x431656=_0x431656||Gt(_0x2bd185);const _0x16d8bd=_0x8f4022['map'](_0x4a35c3=>Jt(_0x4a35c3,this['_model'])),_0x160407=_0x10b430['is']('range')?_0x10b430:Jt(_0x10b430,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4f1493=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x431656,'accept');return this['forceDefaultExecution'](()=>_0x4f1493([_0x160407],_0x2bd185,_0x8f9e77)),null;}_0x16d8bd['push'](_0x160407);let _0x4a947b=!0x0;for(const _0x201339 of _0x16d8bd)if(!this['_rangeIsInLocalUserInsertion'](_0x201339)){_0x4a947b=!0x1;break;}if(_0x4a947b&&'always'!==this['_trackFormatChanges']){const _0x408c02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x431656,'accept');return this['forceDefaultExecution'](()=>_0x408c02([_0x160407],_0x2bd185,_0x8f9e77)),null;}let _0x1c6172=null,_0x24d4a9=_0x160407['start'],_0x494081=_0x160407['end'];for(const {suggestion:_0x376fed,meta:_0x57a478}of this['_findSuggestions'](_0x160407,'formatBlock')){if(!_0x57a478['isOwn'])continue;if(_0x57a478['isNextTo']||_0x57a478['containsRangeInObject']||_0x57a478['isInsideObject'])continue;if(_0x376fed['data']['formatGroupId']!=_0x2bd185['formatGroupId'])continue;if(!zt(_0x376fed,_0x8f9e77))continue;const _0x375ba4=_0x376fed['getFirstRange']();if(_0x376fed['subType']==_0x431656){if(_0x375ba4['containsRange'](_0x160407,!0x0))return null;_0x24d4a9=_0x24d4a9['isBefore'](_0x375ba4['start'])?_0x24d4a9:_0x375ba4['start'],_0x494081=_0x494081['isAfter'](_0x375ba4['end'])?_0x494081:_0x375ba4['end'],_0x1c6172?_0x375ba4['start']['isBefore'](_0x1c6172['getFirstRange']()['start'])?(_0x1c6172['removeMarkers'](),_0x1c6172=_0x376fed):_0x376fed['removeMarkers']():_0x1c6172=_0x376fed;}else{const _0xfa0ad6=_0x160407['getIntersection'](_0x375ba4);this['_cutOutSuggestionMarker'](_0x376fed,_0xfa0ad6);}}const _0x27b37d=this['editor']['plugins']['get']('Users')['me'],_0x57d528=_0x46f059(),_0x29b275=_0x27b37d['id'];if(_0x1c6172)return this['_setSuggestionRange'](_0x1c6172,this['_model']['createRange'](_0x24d4a9,_0x494081)),_0x1c6172;{const _0x27dccf=this['_setSuggestionData']({'id':_0x57d528,'type':'formatBlock:'+_0x431656,'data':_0x2bd185,'createdAt':new Date(),'authorId':_0x29b275,'attributes':_0x8f9e77});return this['_addSuggestionMarker']('formatBlock:'+_0x431656,_0x57d528,_0x29b275,this['_model']['createRange'](_0x24d4a9,_0x494081)),_0x27dccf;}}['markMultiRangeBlockFormat'](_0x252912,_0x1e207b,_0x342e70=[],_0x1aa389=null,_0x50bdd9={}){_0x1e207b['formatGroupId']||(_0x1e207b['formatGroupId']=_0x1e207b['commandName']);const _0x1ce33c=_0x252912[0x0];_0x1e207b['multipleBlocks']=_0x1ce33c['is']('range'),_0x1aa389=_0x1aa389||Gt(_0x1e207b);const _0x4a6cc1=_0x342e70['map'](_0x5843cf=>Jt(_0x5843cf,this['_model'])),_0x3491fd=_0x1ce33c['is']('range')?_0x252912:_0x252912['map'](_0x4ad8a9=>Jt(_0x4ad8a9,this['_model']));if('never'===this['_trackFormatChanges']){const _0x51fdfb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1aa389,'accept');return this['forceDefaultExecution'](()=>_0x51fdfb(_0x3491fd,_0x1e207b,_0x50bdd9)),null;}_0x4a6cc1['push'](..._0x3491fd);let _0x562ab0=!0x0;for(const _0x23f691 of _0x4a6cc1)if(!this['_rangeIsInLocalUserInsertion'](_0x23f691)){_0x562ab0=!0x1;break;}if(_0x562ab0&&'always'!==this['_trackFormatChanges']){const _0x526828=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1aa389,'accept');return this['forceDefaultExecution'](()=>_0x526828(_0x3491fd,_0x1e207b,_0x50bdd9)),null;}const _0x2693d5=this['editor']['plugins']['get']('Users')['me'];for(const _0x331f6b of this['getSuggestions']()){if(_0x331f6b['author']['id']!=_0x2693d5['id'])continue;if('formatBlock'!=_0x331f6b['type']||_0x331f6b['data']['formatGroupId']!=_0x1e207b['formatGroupId'])continue;if(!zt(_0x331f6b,_0x50bdd9))continue;const _0x465c4c=_0x331f6b['subType']==_0x1aa389;for(let _0x54610a=0x0;_0x54610a<_0x3491fd['length'];_0x54610a++){const _0x2e77cb=_0x3491fd[_0x54610a];for(const _0x3b98e9 of _0x331f6b['getMarkers']()){const _0x266f90=_0x3b98e9['getRange']();if(_0x2e77cb['isEqual'](_0x266f90)){_0x465c4c?(_0x3491fd['splice'](_0x54610a,0x1),_0x54610a--):_0x331f6b['removeMarker'](_0x3b98e9['name']);break;}}}}if(0x0==_0x3491fd['length'])return null;const _0x39ddf5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1aa389,'join');for(const _0x3edf65 of this['getSuggestions']())if(_0x3edf65['author']['id']==_0x2693d5['id']&&'formatBlock'==_0x3edf65['type']&&_0x3edf65['data']['formatGroupId']==_0x1e207b['formatGroupId']&&_0x3edf65['subType']==_0x1aa389&&zt(_0x3edf65,_0x50bdd9)&&(_0x39ddf5(_0x3edf65['getRanges'](),_0x3491fd)||_0x39ddf5(_0x3491fd,_0x3edf65['getRanges']()))){for(const _0x21435b of _0x3491fd)_0x3edf65['addRange'](_0x21435b);return _0x3edf65;}const _0x26f909=_0x46f059(),_0x16340b=_0x2693d5['id'],_0x3cbef3='formatBlock:'+_0x1aa389,_0x1d8a1a=this['_setSuggestionData']({'id':_0x26f909,'type':_0x3cbef3,'data':_0x1e207b,'createdAt':new Date(),'authorId':_0x16340b,'attributes':_0x50bdd9});for(const _0x223d9e of _0x3491fd)this['_addSuggestionMarker'](_0x3cbef3,_0x26f909,_0x16340b,_0x223d9e,u['getMultiRangeId']());return _0x1d8a1a;}['markDeletion'](_0x367243,_0x5b2518=null,_0x366087={}){if(_0x367243['isCollapsed'])return null;const _0x17e5fc=this['editor']['plugins']['get']('Users')['me'],_0x54278b=new _0x1c86da(_0x367243['start'],_0x367243['end']);for(const {suggestion:_0x3c1e8c,meta:_0x4e7d62}of this['_findSuggestions'](_0x54278b,'insertion'))if(_0x4e7d62['isOwn']&&!_0x4e7d62['isNextTo']){if(_0x3c1e8c['isMultiRange']){const _0x4c5428=_0x3c1e8c['getRanges']()['filter'](_0x4294f8=>'$graveyard'!=_0x4294f8['root']['rootName']);_0x4c5428['every'](_0x115c59=>_0x54278b['containsRange'](_0x115c59,!0x0))&&_0x3c1e8c['discard']();if(_0x4c5428['some'](_0x52e398=>_0x52e398['containsRange'](_0x54278b,!0x0))){const _0x3d9e98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b2518,'accept');return this['forceDefaultExecution'](()=>_0x3d9e98([_0x54278b],null,_0x366087)),null;}}else{const _0x29d786=_0x54278b['getIntersection'](_0x3c1e8c['getFirstRange']());null!==_0x29d786&&_0x3c1e8c['_onDiscard']([_0x29d786],null,_0x366087);}}if(_0x54278b['detach'](),_0x54278b['isCollapsed']||'$graveyard'==_0x54278b['root']['rootName'])return null;let _0x53876d=null,_0x5aeae9=_0x54278b['start'],_0x52c881=_0x54278b['end'];const _0x395c6b=this['_findSuggestions'](_0x54278b,'deletion');for(const {suggestion:_0x38bab8,meta:_0x1d6e2a}of _0x395c6b){const _0x25334e=this['_model']['createRange'](_0x5aeae9,_0x52c881);if(_0x1d6e2a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d6e2a['containsRangeInObject']&&!_0x1d6e2a['isInsideObject'])){if(_0x38bab8['isMultiRange']){if(!zt(_0x38bab8,_0x366087))continue;let _0x265649=!0x0;for(const _0x2a0343 of _0x38bab8['getRanges']()){if(_0x2a0343['containsRange'](_0x25334e,!0x0))return _0x38bab8;_0x25334e['containsRange'](_0x2a0343)||(_0x265649=!0x1);}_0x265649&&_0x38bab8['discard']();}else{const _0x1088b0=_0x38bab8['getFirstRange']();if(_0x1088b0['containsRange'](_0x25334e,!0x0))return _0x38bab8;if(!zt(_0x38bab8,_0x366087)){_0x25334e['containsRange'](_0x1088b0)?_0x38bab8['removeMarkers']():_0x1088b0['containsPosition'](_0x5aeae9)?_0x5aeae9=_0x1088b0['end']:_0x1088b0['containsPosition'](_0x52c881)&&(_0x52c881=_0x1088b0['start']);continue;}_0x5aeae9=_0x5aeae9['isBefore'](_0x1088b0['start'])?_0x5aeae9:_0x1088b0['start'],_0x52c881=_0x52c881['isAfter'](_0x1088b0['end'])?_0x52c881:_0x1088b0['end'],_0x366087=Object['assign']({},_0x38bab8['attributes']),_0x53876d?_0x1088b0['start']['isBefore'](_0x53876d['getFirstRange']()['start'])?(_0x53876d['removeMarkers'](),_0x53876d=_0x38bab8):_0x38bab8['removeMarkers']():_0x53876d=_0x38bab8;}}}if(_0x53876d)return this['_setSuggestionRange'](_0x53876d,this['_model']['createRange'](_0x5aeae9,_0x52c881)),_0x53876d;{const _0x7f199f=_0x46f059(),_0x1a7591=this['_model']['createRange'](_0x5aeae9,_0x52c881),_0x14a2dc=_0x17e5fc['id'],_0x55c6d1=_0x5b2518?'deletion:'+_0x5b2518:'deletion',_0x2444a4=this['_setSuggestionData']({'id':_0x7f199f,'type':_0x55c6d1,'createdAt':new Date(),'authorId':_0x14a2dc,'attributes':_0x366087});return this['_addSuggestionMarker'](_0x55c6d1,_0x7f199f,_0x14a2dc,_0x1a7591),_0x2444a4;}}['markMultiRangeDeletion'](_0x4dc4dc,_0x374902='multi',_0x2e950e={}){const _0x44bb1b=this['editor']['plugins']['get']('Users')['me'],_0x2e69cc=_0x4dc4dc['map'](_0x2c6ab1=>new _0x1c86da(_0x2c6ab1['start'],_0x2c6ab1['end'])),_0xa0581e=new Set();for(const {suggestion:_0x5c091b,meta:_0x32ffa0}of this['_findSuggestions'](_0x2e69cc,'insertion'))_0x32ffa0['isOwn']&&!_0x32ffa0['isNextTo']&&_0xa0581e['add'](_0x5c091b);for(const _0x5434e9 of _0xa0581e)if(_0x5434e9['isMultiRange']){const _0x54f09f=_0x5434e9['getRanges']();(!_0x5434e9['attributes']||!_0x5434e9['attributes']['skipNestingCheck'])&&(_0x54f09f['every'](_0x4a1666=>_0x2e69cc['some'](_0x134855=>_0x134855['containsRange'](_0x4a1666,!0x0)))&&_0x5434e9['discard']());if(_0x2e69cc['every'](_0x2db4ae=>_0x54f09f['some'](_0x46f25e=>_0x46f25e['containsRange'](_0x2db4ae,!0x0)))){const _0xb78c71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x374902,'accept');return this['forceDefaultExecution'](()=>_0xb78c71(_0x4dc4dc,null,_0x2e950e)),null;}}else{const _0x3f2e52=_0x5434e9['getFirstRange']();_0x2e69cc['some'](_0x4c2429=>_0x4c2429['containsRange'](_0x3f2e52,!0x0))&&_0x5434e9['discard']();if(_0x2e69cc['every'](_0x4338bb=>_0x3f2e52['containsRange'](_0x4338bb,!0x0))){const _0x571586=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x374902,'accept');return this['forceDefaultExecution'](()=>_0x571586(_0x2e69cc,null,_0x2e950e)),null;}}const _0x5c59b8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x374902,'join');let _0x5eb4ee=null;for(const _0x52fe78 of this['getSuggestions']())if(_0x52fe78['author']['id']==_0x44bb1b['id']&&_0x52fe78['isInContent']&&'deletion'==_0x52fe78['type']&&_0x52fe78['subType']==_0x374902&&zt(_0x52fe78,_0x2e950e)&&(_0x5c59b8(_0x52fe78['getRanges'](),_0x2e69cc)||_0x5c59b8(_0x2e69cc,_0x52fe78['getRanges']()))){if(_0x5eb4ee){if(_0x52fe78['commentThread']&&_0x52fe78['commentThread']['length'])continue;for(const _0x3c53f3 of _0x52fe78['getRanges']())_0x5eb4ee['isIntersectingWithRange'](_0x3c53f3)||_0x5eb4ee['addRange'](_0x3c53f3);_0x52fe78['removeMarkers']();}else{_0x5eb4ee=_0x52fe78;for(const _0x122375 of _0x2e69cc)_0x52fe78['isIntersectingWithRange'](_0x122375)||_0x52fe78['addRange'](_0x122375);}}if(_0x5eb4ee)return _0x5eb4ee;_0xa0581e['clear']();for(const {suggestion:_0x5b2b3a,meta:_0x545b7d}of this['_findSuggestions'](_0x2e69cc,'deletion'))_0x545b7d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x545b7d['containsRangeInObject']&&!_0x545b7d['isInsideObject'])&&zt(_0x5b2b3a,_0x2e950e)&&_0xa0581e['add'](_0x5b2b3a);for(const _0x35e9a9 of _0xa0581e){const _0x51d142=_0x35e9a9['getRanges']();if(!_0x2e950e||!_0x2e950e['skipNestingCheck']){if(_0x2e69cc['every'](_0xb29c37=>_0x51d142['some'](_0x59ac8f=>_0x59ac8f['containsRange'](_0xb29c37,!0x0))))return _0x35e9a9;}(!_0x35e9a9['attributes']||!_0x35e9a9['attributes']['skipNestingCheck'])&&(_0x51d142['every'](_0x4619f5=>_0x2e69cc['some'](_0x4791e4=>_0x4791e4['containsRange'](_0x4619f5,!0x0)))&&_0x35e9a9['discard']());}const _0x50c497=_0x46f059(),_0x3b61fa=_0x44bb1b['id'],_0x577256='deletion:'+_0x374902,_0x2b3c01=this['_setSuggestionData']({'id':_0x50c497,'type':_0x577256,'createdAt':new Date(),'authorId':_0x3b61fa,'attributes':_0x2e950e});for(const _0x5b3032 of _0x2e69cc)_0x5b3032['detach'](),_0x5b3032['isCollapsed']||'$graveyard'==_0x5b3032['root']['rootName']||this['_addSuggestionMarker'](_0x577256,_0x50c497,_0x3b61fa,_0x5b3032,u['getMultiRangeId']());return _0x2b3c01;}['markAttributeChange'](_0xa76fac,_0x2d1357,_0xc4272,_0x5773f9,_0x2a2bce){if(_0xa76fac['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5e7bac=this['editor']['plugins']['get']('Users')['me']['id'],_0x53a475=Array['from'](this['_suggestions']['values']())['filter'](_0x5ed096=>'attribute'==_0x5ed096['type']&&_0x5ed096['data']['key']==_0x2d1357&&_0x5ed096['isIntersectingWithRange'](_0xa76fac));if('default'===this['_trackFormatChanges']){const _0x10a8a2=this['_findSuggestions'](_0xa76fac,'insertion')['filter'](({meta:_0x48f73d})=>_0x48f73d['isOwn']&&!_0x48f73d['isInsideObject']&&!_0x48f73d['isNextTo'])['map'](({suggestion:_0x1057c9})=>_0x1057c9);_0x53a475['unshift'](..._0x10a8a2);}const _0xe4a168=new Map([[_0xa76fac,_0xc4272]]);for(const _0x3cbd6a of _0x53a475){const _0x1516f9='attribute'==_0x3cbd6a['type']?_0x3cbd6a['data']['oldValue']:void 0x0,_0x5799d7=_0x3cbd6a['getFirstRange'](),_0xcb59c8=Array['from'](_0xe4a168['keys']())['find'](_0x458283=>_0x458283['isIntersecting'](_0x5799d7));if(!_0xcb59c8)continue;const _0x1e96c9=_0xcb59c8['getDifference'](_0x5799d7);this['_isBlockAttribute'](_0x2d1357)&&'insertion'==_0x3cbd6a['type']&&0x0!=_0x1e96c9['length']||(_0xe4a168['delete'](_0xcb59c8),_0x1e96c9['forEach'](_0x512d54=>{_0xe4a168['set'](_0x512d54,_0xc4272);}),'insertion'!=_0x3cbd6a['type']&&_0x1516f9!=_0x5773f9&&_0xe4a168['set'](_0xcb59c8['getIntersection'](_0x5799d7),_0x1516f9));}const _0x53c0c2=[];for(const [_0x5223fb,_0x9a566b]of _0xe4a168){const _0x191bb5=_0x46f059(),_0x2f7322={'key':_0x2d1357,'oldValue':_0x9a566b,'newValue':_0x5773f9};_0x2d1357['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':_0x2d1357});const _0x165890=('attribute:'+(_0x2d1357+'|'+Gt({'newValue':_0x5773f9})))['substring'](0x0,0x3c),_0x338d04=this['_setSuggestionData']({'id':_0x191bb5,'type':_0x165890,'data':_0x2f7322,'createdAt':new Date(),'authorId':_0x5e7bac,'attributes':_0x2a2bce});_0x53c0c2['push'](_0x338d04),this['_addSuggestionMarker'](_0x165890,_0x191bb5,_0x5e7bac,_0x5223fb);}return _0x53c0c2;}['enableDefaultAttributesIntegration'](_0x9332b6){this['enableCommand'](_0x9332b6,(_0x348e14,..._0x3f3c9e)=>{this['_recordAttributeChanges'](()=>{_0x348e14(..._0x3f3c9e);});});}['registerBlockAttribute'](_0x16e0af){this['_blockAttributeKeys']['add'](_0x16e0af);}['registerInlineAttribute'](_0x90b3f5){this['_inlineAttributeKeys']['add'](_0x90b3f5);}['_getAttributeKey'](_0x2d562b){return'attribute'==_0x2d562b['type']?_0x2d562b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5a6edc,_0x5b7da7){const _0xce3490=_0x5a6edc['getFirstMarker']();this['_model']['change'](_0x52eea6=>{_0x52eea6['updateMarker'](_0xce3490,{'range':_0x5b7da7});});}['_addThreadToSuggestion'](_0x45349c){const _0xe149df=_0x45349c['id'],_0x1c080b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0xe149df)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1c080b,'threadId':_0xe149df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xb16566=this['_commentsRepository']['getCommentThread'](_0xe149df);_0xb16566['unbind']('isRemovable'),_0xb16566['isRemovable']=!0x1,_0x45349c['commentThread']=_0xb16566;}['_checkSuggestionCorrectness'](_0x2bea12,_0x5b28e6,_0x3b44c5,_0x33acb0){if(_0x2bea12['type']!=_0x5b28e6||_0x2bea12['subType']!=_0x3b44c5||_0x2bea12['creator']['id']!=_0x33acb0)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x243768('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x16974b,_0x3888de){const _0x26d190=_0x16974b['getFirstRange']();if(_0x3888de['isEqual'](_0x26d190))_0x16974b['removeMarkers']();else{if(_0x26d190['containsRange'](_0x3888de)){const _0x41d979=this['_model']['createPositionAt'](_0x3888de['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16974b,this['_model']['createRange'](_0x26d190['start'],_0x41d979));const _0x1eafe6=_0x46f059(),_0x1c03cf=_0x16974b['creator']['id'],_0x3c401a=_0x16974b['type']+':'+_0x16974b['subType'];this['_setSuggestionData']({'id':_0x1eafe6,'type':_0x3c401a,'createdAt':new Date(),'authorId':_0x1c03cf,'data':_0x16974b['data'],'attributes':_0x16974b['attributes']});const _0x171fed=this['_model']['createPositionAt'](_0x3888de['end']['parent'],'after'),_0x177bea=this['_model']['createRange'](_0x171fed,_0x26d190['end']);this['_addSuggestionMarker'](_0x3c401a,_0x1eafe6,_0x1c03cf,_0x177bea);}else{if(_0x26d190['containsPosition'](_0x3888de['start'])){const _0x305805=this['_model']['createPositionAt'](_0x3888de['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16974b,this['_model']['createRange'](_0x26d190['start'],_0x305805));}else{const _0x55389f=this['_model']['createPositionAt'](_0x3888de['end']['parent'],'after');this['_setSuggestionRange'](_0x16974b,this['_model']['createRange'](_0x55389f,_0x26d190['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x3127b6){for(const {suggestion:_0x3fe419,meta:_0x435a18}of this['_findSuggestions'](_0x3127b6,'insertion')){if(!_0x435a18['isOwn'])continue;const _0x110eb3=_0x3fe419['getRanges']();for(const _0x56d07d of _0x110eb3)if(!_0x3127b6['getDifference'](_0x56d07d)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1bc57e){const _0x1f23df=this['editor']['plugins']['get']('Users')['getUser'](_0x1bc57e);if(!_0x1f23df)throw new _0x243768('track-changes-user-not-found',this);return _0x1f23df;}['_getExternalAuthor'](_0x2bf313){const _0x1e01c7=this['editor']['plugins']['get']('Users'),_0x59b338=_0x546877('external:'+_0x2bf313),_0x260f0a=_0x1e01c7['getUser'](_0x59b338);return _0x260f0a||_0x1e01c7['addUser']({'id':_0x59b338,'name':_0x2bf313});}['_createSuggestion'](_0x273144,_0x129aae,_0x24a58f,_0x44e173,_0x37c5a7){const _0x324ec1=this['_getAuthorFromId'](_0x44e173),_0x5e7b5c=this['_suggestionFactory']['buildSuggestion'](_0x273144,_0x129aae,_0x24a58f,_0x324ec1,_0x37c5a7,_0x5a583a=>{this['_updateSuggestionData'](_0x24a58f,{'attributes':_0x5a583a});const _0x1c4595=this['getSuggestion'](_0x24a58f);this['_joinWithAdjacentSuggestions'](new Set([_0x1c4595])),this['_refreshSuggestionsChain'](new Set([_0x1c4595]));});return this['listenTo'](_0x5e7b5c,'accept',()=>{this['_updateSuggestionData'](_0x24a58f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x5e7b5c,'discard',()=>{this['_updateSuggestionData'](_0x24a58f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x24a58f,_0x5e7b5c),this['_suggestionState']['set'](_0x5e7b5c,'notReady'),_0x5e7b5c;}['_splitMarkerName'](_0xbecb94){const _0x5969f2=_0xbecb94['split'](':');return{'group':_0x5969f2[0x0],'type':_0x5969f2[0x1],'subType':_0x5969f2['length']>=0x5?_0x5969f2[0x2]:null,'id':_0x5969f2['length']<0x5?_0x5969f2[0x2]:_0x5969f2[0x3],'authorId':_0x5969f2['length']<0x5?_0x5969f2[0x3]:_0x5969f2[0x4],'markerCount':0x6==_0x5969f2['length']?_0x5969f2[0x5]:null};}['_breakSuggestionMarker'](_0x3b6a11,_0x465500,_0x7eacdc){const _0xebb44f=_0x3b6a11['getFirstRange'](),_0x448c85=_0xebb44f['start'],_0xaf6bf8=_0xebb44f['end'];this['_setSuggestionRange'](_0x3b6a11,this['_model']['createRange'](_0x448c85,_0x465500));const _0x10c3cc=_0x46f059(),_0x33b52f=_0x3b6a11['creator']['id'],_0x201f62=_0x3b6a11['type']+(_0x3b6a11['subType']?':'+_0x3b6a11['subType']:'');this['_setSuggestionData']({'id':_0x10c3cc,'type':_0x201f62,'createdAt':new Date(),'authorId':_0x33b52f,'originalSuggestionId':_0x3b6a11['id'],'attributes':_0x3b6a11['attributes'],'data':_0x3b6a11['data']});const _0x430a28=this['_getAttributeKey'](_0x3b6a11);('formatBlock'==_0x3b6a11['type']||_0x430a28&&this['_isBlockAttribute'](_0x430a28))&&(_0x7eacdc=this['_model']['createPositionBefore'](_0x7eacdc['parent'])),this['_addSuggestionMarker'](_0x201f62,_0x10c3cc,_0x33b52f,this['_model']['createRange'](_0x7eacdc,_0xaf6bf8));}['_findSuggestions'](_0x86b1f8,_0x107ccb=null){const _0x2042e1=[],_0x2a53cb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x86b1f8)||(_0x86b1f8=[_0x86b1f8]);for(const _0x2138ec of this['getSuggestions']()){if(!_0x2138ec['isInContent'])continue;if(_0x107ccb&&_0x2138ec['type']!=_0x107ccb)continue;let _0x120064=!0x1;for(const _0x5318dc of _0x2138ec['getRanges']()){for(const _0x4ff5ad of _0x86b1f8){const _0x2c8a57=_0x4ff5ad['start']['isEqual'](_0x5318dc['end'])||_0x4ff5ad['end']['isEqual'](_0x5318dc['start']);if(_0x2c8a57||_0x4ff5ad['getIntersection'](_0x5318dc)){const _0x527180=_0x4ff5ad['containsRange'](_0x5318dc)&&Ut(this['_model']['schema'],_0x5318dc['start'],_0x4ff5ad),_0x107b91=_0x5318dc['containsRange'](_0x4ff5ad)&&Ut(this['_model']['schema'],_0x4ff5ad['start'],_0x5318dc);_0x2042e1['push']({'suggestion':_0x2138ec,'meta':{'isOwn':_0x2a53cb==_0x2138ec['author'],'isNextTo':_0x2c8a57,'isInsideObject':_0x527180,'containsRangeInObject':_0x107b91}}),_0x120064=!0x0;break;}}if(_0x120064)break;}}return _0x2042e1;}['_addSuggestionMarker'](_0x55a9b8,_0x1ee6ed,_0x34abf3,_0x167119,_0x485faf){this['_model']['change'](_0x441913=>{let _0x2f1e6='suggestion:'+_0x55a9b8+':'+_0x1ee6ed+':'+_0x34abf3;_0x485faf&&(_0x2f1e6=_0x2f1e6+':'+_0x485faf),_0x441913['addMarker'](_0x2f1e6,{'range':_0x167119,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2b7c76){const _0x4259d2=_0x2b7c76['previous'],_0x5e7458=_0x2b7c76['next'];_0x2b7c76['previous']=null,_0x2b7c76['next']=null,null!=_0x4259d2&&_0x4259d2['next']==_0x2b7c76&&(_0x4259d2['next']=_0x5e7458),null!=_0x5e7458&&_0x5e7458['previous']==_0x2b7c76&&(_0x5e7458['previous']=_0x4259d2),'ready'==this['_suggestionState']['get'](_0x2b7c76)&&(this['_suggestionState']['set'](_0x2b7c76,'removed'),this['fire']('suggestionUnloaded',_0x2b7c76,_0x4259d2,_0x5e7458));}['_setSuggestionData'](_0x519215){const _0x4b762f=_0x519215['id'],_0x7c2499=this['addSuggestionData'](_0x519215);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4226b6=this['editor']['plugins']['get']('PendingActions'),_0x356959=_0x7c2499['hasComments'],_0x5eda4f=_0x7c2499['subType']?_0x7c2499['type']+':'+_0x7c2499['subType']:_0x7c2499['type'],_0x4b670f=this['editor']['locale'],_0x4ae7f3=_0x4226b6['add'](o(_0x4b670f,'PENDING_ACTION_SUGGESTION')),_0x41904d={'id':_0x4b762f,'type':_0x5eda4f,'hasComments':_0x356959,'data':_0x519215['data']||null,'originalSuggestionId':_0x519215['originalSuggestionId']||null,'attributes':_0x7c2499['attributes']};this['_adapter']['addSuggestion'](_0x41904d)['then'](_0x2936d3=>{_0x7c2499['_saved']=!0x0,_0x4226b6['remove'](_0x4ae7f3),_0x2936d3&&_0x2936d3['createdAt']&&(this['_suggestions']['get'](_0x4b762f)['createdAt']=_0x2936d3['createdAt']);})['catch'](_0xc2adf1=>{throw _0x561160('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x7c2499['discard']();}),_0x7c2499['stopListening'](),this['_suggestions']['delete'](_0x7c2499['id']),this['_suggestionState']['delete'](_0x7c2499),_0xc2adf1;});}return _0x7c2499;}['_isBlockAttribute'](_0x4eac3e){return this['_blockAttributeKeys']['has'](_0x4eac3e);}['_updateSuggestionData'](_0x5046c9,_0x138c58){const _0x244ee2=this['editor']['plugins']['get']('PendingActions'),_0x5697cc=this['getSuggestion'](_0x5046c9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5697cc['_saved']){const _0xd735be=_0x244ee2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5046c9,_0x138c58)['then'](()=>{_0x244ee2['remove'](_0xd735be);});}else _0x5697cc['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5046c9,_0x138c58);});}}['_getSuggestionData'](_0x137fdf){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x243768('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x137fdf);}['_handleNewSuggestionMarker'](_0x53efff){const {id:_0x301133,type:_0x4f076f,subType:_0x2a1da6,authorId:_0x1bcd8f}=this['_splitMarkerName'](_0x53efff),_0x59516a=this['_suggestions']['get'](_0x301133)||this['_createSuggestion'](_0x4f076f,_0x2a1da6,_0x301133,_0x1bcd8f,{});switch(this['_checkSuggestionCorrectness'](_0x59516a,_0x4f076f,_0x2a1da6,_0x1bcd8f),this['_suggestionState']['get'](_0x59516a)){case'notReady':this['_getSuggestionData'](_0x301133)['then'](_0x37e2d2=>{let _0x3fed59=Promise['resolve']();_0x37e2d2['hasComments']&&(_0x3fed59=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x301133})),_0x3fed59['then'](()=>{this['addSuggestionData'](_0x37e2d2)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x59516a,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x301133,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x59516a,'ready'),this['fire']('suggestionLoaded',_0x59516a);break;case'ready':this['fire']('suggestionChanged',_0x59516a);}return _0x59516a['addMarkerName'](_0x53efff),_0x59516a;}['_refreshSuggestionsChain'](_0x2515cb){const _0x16dc31=Array['from'](_0x2515cb),_0x130648=_0x16dc31['filter'](_0x5d7005=>'attribute'==_0x5d7005['type']);this['_refreshAttributeSuggestionsChain'](_0x130648);const _0x45bb70=_0x16dc31['filter'](_0x5074b7=>!_0x5074b7['isMultiRange']&&'attribute'!=_0x5074b7['type']),_0x1322f9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2e00e1=>!_0x2e00e1['isMultiRange']&&'attribute'!=_0x2e00e1['type']),_0x1f4830=_0x1322f9['filter'](_0x59ae90=>!_0x2515cb['has'](_0x59ae90)),_0x17e47e=new Map(_0x1322f9['map'](_0x3067ce=>[_0x3067ce,this['_suggestionFactory']['getSuggestionCallback'](_0x3067ce['type'],_0x3067ce['subType'],'chain')])),_0x3170d5=new Map(_0x1322f9['map'](_0x588b6b=>[_0x588b6b,_0x588b6b['getFirstRange']()])),_0x59dc3c=new Set(),_0x519cbd=new Set();for(let _0x31177a=0x0;_0x31177a<_0x45bb70['length'];_0x31177a++)_0x5cdcc4(_0x45bb70[_0x31177a],_0x45bb70,_0x31177a+0x1);for(let _0x1c1ac5=0x0;_0x1c1ac5<_0x45bb70['length'];_0x1c1ac5++)_0x5cdcc4(_0x45bb70[_0x1c1ac5],_0x1f4830,0x0);const _0x4fd84e=new Set();for(let _0x4de420=0x0;_0x4de420<_0x45bb70['length'];_0x4de420++){const _0x316021=_0x45bb70[_0x4de420];!_0x519cbd['has'](_0x316021)&&_0x316021['previous']&&(_0x4fd84e['add'](_0x316021['previous']),_0x316021['previous']['next']===_0x316021&&(_0x316021['previous']['next']=null),_0x316021['previous']=null),!_0x59dc3c['has'](_0x316021)&&_0x316021['next']&&(_0x4fd84e['add'](_0x316021['next']),_0x316021['next']['previous']===_0x316021&&(_0x316021['next']['previous']=null),_0x316021['next']=null);}function _0x5cdcc4(_0x304898,_0x3d5f37,_0x8bcbed){for(let _0x78e8ff=_0x8bcbed;_0x78e8ff<_0x3d5f37['length'];_0x78e8ff++){const _0x3cab9a=_0x48025d(_0x304898,_0x3d5f37[_0x78e8ff]);_0x3cab9a&&(_0x3cab9a[0x0]['next']=_0x3cab9a[0x1],_0x3cab9a[0x1]['previous']=_0x3cab9a[0x0],_0x59dc3c['add'](_0x3cab9a[0x0]),_0x519cbd['add'](_0x3cab9a[0x1]));}}function _0x48025d(_0x2c0818,_0x3cb8b4){if(_0x2c0818['author']['id']!==_0x3cb8b4['author']['id'])return null;const _0x319e75=_0x17e47e['get'](_0x2c0818)(_0x2c0818,_0x3cb8b4,_0x3170d5['get'](_0x2c0818),_0x3170d5['get'](_0x3cb8b4));if(!_0x319e75)return null;return _0x17e47e['get'](_0x3cb8b4)(_0x2c0818,_0x3cb8b4,_0x3170d5['get'](_0x2c0818),_0x3170d5['get'](_0x3cb8b4))?_0x319e75[0x1]['commentThread']&&_0x319e75[0x1]['commentThread']['length']?null:_0x319e75:null;}_0x4fd84e['size']&&this['_refreshSuggestionsChain'](_0x4fd84e);}['_refreshAttributeSuggestionsChain'](_0x473fd9){if(0x0==_0x473fd9['length'])return;const _0xe11e37=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x543c2d=>'attribute'==_0x543c2d['type']&&_0x543c2d['_isDataLoaded']),_0x2fb6c0=[],_0x5b754d=new Map();for(const _0x543c68 of _0xe11e37){const _0x32fbdd=_0x546877(_0x543c68['attributes']);_0x5b754d['has'](_0x32fbdd)||(_0x5b754d['set'](_0x32fbdd,_0x2fb6c0['length']),_0x2fb6c0['push']([]));const _0x1eaa46=_0x5b754d['get'](_0x32fbdd);_0x2fb6c0[_0x1eaa46]['push'](_0x543c68);}!(function(){_0x2fb6c0['sort']((_0x34ffa1,_0x547e4d)=>{const _0x40f41c=_0x34ffa1[0x0]['createdAt'],_0x26991d=_0x547e4d[0x0]['createdAt'];return _0x40f41c==_0x26991d?_0x34ffa1[0x0]['attributes']['groupId']<_0x547e4d[0x0]['attributes']['groupId']?-0x1:0x1:_0x40f41c<_0x26991d?-0x1:0x1;});for(const _0x54a89f of _0x2fb6c0)_0x54a89f['sort']((_0x559507,_0x3594cf)=>_0x559507['id']<_0x3594cf['id']?-0x1:0x1);}());for(let _0x3a5caa=0x0;_0x3a5caa<_0x2fb6c0['length'];_0x3a5caa++){if(0x0==_0x2fb6c0[_0x3a5caa]['length'])continue;const _0x171a53=[];for(let _0x47925e=_0x3a5caa+0x1;_0x47925e<_0x2fb6c0['length'];_0x47925e++)0x0!=_0x2fb6c0[_0x47925e]['length']&&_0x3e867c(_0x2fb6c0[_0x3a5caa],_0x2fb6c0[_0x47925e])&&_0x171a53['push'](_0x47925e);for(const _0x3564b8 of _0x171a53)_0x2fb6c0[_0x3a5caa]=_0x2fb6c0[_0x3a5caa]['concat'](_0x2fb6c0[_0x3564b8]),_0x2fb6c0[_0x3564b8]=[];}for(const _0x40c356 of _0x2fb6c0)for(let _0x5ada03=0x0;_0x5ada03<_0x40c356['length'];_0x5ada03++){const _0x234360=_0x40c356[_0x5ada03+0x1]||null;_0x40c356[_0x5ada03]['next']!==_0x234360&&(_0x40c356[_0x5ada03]['next']=_0x234360);}for(const _0x33ef7d of _0x2fb6c0)for(let _0x40e768=0x0;_0x40e768<_0x33ef7d['length'];_0x40e768++){const _0x17735a=_0x33ef7d[_0x40e768-0x1]||null;_0x33ef7d[_0x40e768]['previous']!==_0x17735a&&(_0x33ef7d[_0x40e768]['previous']=_0x17735a);}function _0x3e867c(_0x205d2b,_0x230c31){if(_0x205d2b[0x0]['attributes']['groupId']!==_0x230c31[0x0]['attributes']['groupId']&&_0x205d2b[0x0]['author']!==_0x230c31[0x0]['author'])return!0x1;if(!function(_0x918e82,_0x11f927){if(!_0x918e82['hasComments']&&!_0x11f927['hasComments'])return!0x0;if(_0x918e82['hasComments']&&_0x11f927['hasComments'])return!0x1;if(_0x918e82['hasComments']&&_0x11f927['createdAt']<_0x918e82['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x11f927['hasComments']&&_0x918e82['createdAt']<_0x11f927['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x205d2b[0x0],_0x230c31[0x0]))return!0x1;const _0x3febf0=xt(_0x205d2b[0x0]['attributes'],'groupId'),_0x41baf5=xt(_0x230c31[0x0]['attributes'],'groupId');if(!_0x2e7dfd(_0x3febf0,_0x41baf5))return!0x1;return!!_0x205d2b['every'](_0x3c6bd1=>_0x230c31['some'](_0x3097be=>_0x3c6bd1['getFirstRange']()['isEqual'](_0x3097be['getFirstRange']())))&&_0x230c31['every'](_0x4708a4=>_0x205d2b['some'](_0x34bc4d=>_0x4708a4['getFirstRange']()['isEqual'](_0x34bc4d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x457354){const _0x5d1259=Array['from'](_0x457354),_0x8ba65d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x25eaed=_0x8ba65d['filter'](_0x40a7d6=>!_0x457354['has'](_0x40a7d6)),_0x3d6529=new Map(_0x5d1259['map'](_0x5699ff=>[_0x5699ff,this['_suggestionFactory']['getSuggestionCallback'](_0x5699ff['type'],_0x5699ff['subType'],'join')])),_0x5bbabd=new Map(_0x8ba65d['map'](_0x4c07b0=>[_0x4c07b0,_0x4c07b0['getRanges']()]));for(let _0x1b1b31=0x0;_0x1b1b31<_0x5d1259['length'];_0x1b1b31++){if(_0x5942c4(this,_0x5d1259[_0x1b1b31],_0x5d1259,_0x1b1b31+0x1))return!0x0;}for(let _0x42be3f=0x0;_0x42be3f<_0x5d1259['length'];_0x42be3f++){if(_0x5942c4(this,_0x5d1259[_0x42be3f],_0x25eaed,0x0))return!0x0;}return!0x1;function _0x5942c4(_0x3666f4,_0x672fd0,_0x29ed8f,_0x48fe29){for(let _0x164fbf=_0x48fe29;_0x164fbf<_0x29ed8f['length'];_0x164fbf++){const _0x59d2c7=_0x29ed8f[_0x164fbf];if(_0x59d2c7['type']!==_0x672fd0['type']||_0x59d2c7['author']['id']!==_0x672fd0['author']['id']||_0x59d2c7['subType']!==_0x672fd0['subType'])continue;if(!qt(_0x672fd0,_0x59d2c7))continue;if('attribute'==_0x672fd0['type']&&_0x672fd0['data']['oldValue']!=_0x59d2c7['data']['oldValue'])continue;if('attribute'==_0x672fd0['type']&&_0x3666f4['_isBlockAttribute'](_0x672fd0['data']['key']))continue;if('formatBlock'==_0x672fd0['type']){const _0x157386=_0x3666f4['editor']['model'],_0x58e21b=_0x672fd0['getContainedElement']();if(_0x58e21b&&(_0x157386['schema']['isObject'](_0x58e21b)||_0x157386['schema']['isLimit'](_0x58e21b)))continue;}const _0x3b109e=_0x3d6529['get'](_0x672fd0),_0x3cb6f0=_0x5bbabd['get'](_0x672fd0),_0x3b10c4=_0x5bbabd['get'](_0x59d2c7),_0x42ab13=_0x672fd0['commentThread']&&_0x672fd0['commentThread']['length'],_0x25b909=_0x59d2c7['commentThread']&&_0x59d2c7['commentThread']['length'];if(!_0x42ab13&&_0x3b109e(_0x3b10c4,_0x3cb6f0))return _0x3666f4['_joinSuggestions'](_0x59d2c7,_0x672fd0),_0x5bbabd['delete'](_0x672fd0),!0x0;if(!_0x25b909&&_0x3b109e(_0x3cb6f0,_0x3b10c4))return _0x3666f4['_joinSuggestions'](_0x672fd0,_0x59d2c7),_0x5bbabd['delete'](_0x59d2c7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2671fb,_0x305b54){if(_0x2671fb['isMultiRange']){for(const _0x3b53cb of _0x305b54['getRanges']())_0x2671fb['addRange'](_0x3b53cb);}else{const _0x287cca=_0x305b54['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2671fb,this['_model']['createRange'](_0x2671fb['getFirstRange']()['start'],_0x287cca));}_0x305b54['removeMarkers']();}['_getMarkerAnnouncementText'](_0xd7752c,_0x1534b4,_0x1352b5){const _0x55a698=_0xd7752c['startsWith']('format')||_0xd7752c['startsWith']('attribute')?'FORMATTING':_0xd7752c['toUpperCase']();return o(this['editor']['locale'],_0x1534b4+'_'+_0x55a698+'_SUGGESTION_ANNOUNCEMENT',_0x1352b5);}['_initAriaMarkerChangeAnnouncements'](){const _0x250613=this['editor'];if(!_0x250613['ui'])return;const {ariaLiveAnnouncer:_0x2b2f58}=_0x250613['ui'];_0x1b81b3(this['_model'],({left:_0x37529b,entered:_0x292ad3})=>{for(const _0x290f10 of _0x37529b){const {group:_0x174852,type:_0x5d6b0b}=this['_splitMarkerName'](_0x290f10['name']);if('suggestion'===_0x174852){_0x2b2f58['announce'](this['_getMarkerAnnouncementText'](_0x5d6b0b,'LEAVE'));break;}}for(const _0x1f3e53 of _0x292ad3){const {group:_0x5701a9,type:_0x274e0b}=this['_splitMarkerName'](_0x1f3e53['name']);if('suggestion'===_0x5701a9){_0x2b2f58['announce'](this['_getMarkerAnnouncementText'](_0x274e0b,'ENTER',_0x21e46d(_0x2645ad)));break;}}});}['_processAttributeChanges'](_0x127164){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1a8639=this['editor'],_0x19e847=_0x1a8639['model']['document']['differ']['getChanges']();if(0x0==_0x19e847['length'])return!0x1;const _0x32dcb0=[],_0x36b0d0=_0x19e847['filter'](_0x55e96b=>'attribute'==_0x55e96b['type']),_0x42b16d=_0x19e847['filter'](_0xf6df4e=>'insert'==_0xf6df4e['type']&&'$text'!=_0xf6df4e['name']),_0x3d4707=_0x19e847['filter'](_0x14f8dc=>'remove'==_0x14f8dc['type']&&'$text'!=_0x14f8dc['name']);for(const _0x371e46 of _0x36b0d0)_0x32dcb0['push']({'key':_0x371e46['attributeKey'],'newValue':_0x371e46['attributeNewValue'],'oldValue':_0x371e46['attributeOldValue'],'range':Lt(_0x371e46['range'],_0x1a8639['model'])});for(const _0x171927 of _0x42b16d){const _0x2835ac=_0x3d4707['find'](_0x1f626b=>_0x1f626b['position']['isEqual'](_0x171927['position']));_0x2835ac&&_0x32dcb0['push']({'key':m,'newValue':_0x171927['name'],'oldValue':_0x2835ac['name'],'range':_0x1a8639['model']['createRangeOn'](_0x171927['position']['nodeAfter'])});}return 0x0!=_0x32dcb0['length']&&this['_reduceExistingSuggestions'](_0x127164,_0x32dcb0);}['_processAttributeSuggestions'](_0x500570){let _0x439c46=!0x1;const _0x39035b=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x443224=>_0x443224['data']['newRange']&&_0x443224['name']['startsWith']('suggestion:attribute:'));for(const _0x81b420 of _0x39035b){const {subType:_0x5421a7,id:_0x48dca7}=this['_splitMarkerName'](_0x81b420['name']),_0x516dfe=_0x5421a7['split']('|')[0x0];for(const _0x551293 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x551293['id']!=_0x48dca7&&'attribute'==_0x551293['type']&&_0x551293['data']&&_0x551293['data']['key']==_0x516dfe&&_0x551293['getFirstRange']()['isIntersecting'](_0x81b420['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x551293,_0x81b420['data']['newRange'],_0x500570),_0x439c46=!0x0);}return _0x439c46;}['_recordAttributeChanges'](_0x4bd7b1){this['_recordAttributeSuggestions']=!0x0,_0x4bd7b1();}['_isRegisteredAttribute'](_0x54c583){const _0x361097=this['_isBlockAttribute'](_0x54c583),_0x5cdcff=this['_inlineAttributeKeys']['has'](_0x54c583);return _0x361097||_0x5cdcff;}['_reduceExistingSuggestions'](_0x333d7e,_0x59a5e4){if(0x0==_0x59a5e4['length'])return!0x1;let _0x410d1a=!0x1;for(const _0x12da53 of _0x59a5e4){const _0x4c10da=this['_findSuggestions'](_0x12da53['range'],'attribute')['filter'](_0x16944b=>!_0x16944b['meta']['isNextTo'])['map'](_0x31ecf2=>_0x31ecf2['suggestion']),_0x15a063=_0x546877({'newValue':_0x12da53['newValue']});_0x4c10da['filter'](_0x21ad89=>{const [_0x291e15,_0x190374]=_0x21ad89['subType']['split']('|');return _0x291e15==_0x12da53['key']&&_0x190374!=_0x15a063;})['forEach'](_0x17581c=>{this['_reduceSuggestionAttributeRange'](_0x17581c,_0x12da53['range'],_0x333d7e),_0x410d1a=!0x0;});}return _0x410d1a;}['_reduceSuggestionAttributeRange'](_0x382040,_0x2dc229,_0x24b6da){const _0x37556a=_0x382040['getFirstRange']()['getDifference'](_0x2dc229);0x0!==_0x37556a['length']?0x1!==_0x37556a['length']?this['_breakSuggestionMarker'](_0x382040,_0x2dc229['start'],_0x2dc229['end']):this['_setSuggestionRange'](_0x382040,_0x37556a[0x0]):_0x24b6da['removeMarker'](_0x382040['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x23fc08){this['_editor']=_0x23fc08,this['_model']=_0x23fc08['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1b90d9,_0x2e0eb9,_0x3a8b25,_0x3fdd0e,_0x7d1aa5,_0x20aab2){return new u(this['_model'],{'type':_0x1b90d9,'subType':_0x2e0eb9,'id':_0x3a8b25,'author':_0x3fdd0e,'creator':_0x3fdd0e,'attributes':_0x7d1aa5,'onAttributesChange':_0x20aab2,'onAccept':(..._0x35b894)=>this['getSuggestionCallback'](_0x1b90d9,_0x2e0eb9,'accept')(..._0x35b894),'onDiscard':(..._0x5440c9)=>this['getSuggestionCallback'](_0x1b90d9,_0x2e0eb9,'discard')(..._0x5440c9)});}['registerCustomCallback'](_0x4a46b8,_0x4d1c57,_0x1270d1,_0x436bb5){const _0x55b70a=_0x4a46b8+':'+_0x4d1c57+':'+_0x1270d1;this['_customCallbacks']['set'](_0x55b70a,_0x436bb5);}['getSuggestionCallback'](_0x121f0b,_0x3c9687,_0xd585b3){const _0x1e8e83=_0x121f0b+':'+_0x3c9687+':'+_0xd585b3;return this['_customCallbacks']['get'](_0x1e8e83)||this['_defaultCallbacks']['get'](_0x121f0b+':'+_0xd585b3);}['_registerDefaultCallbacks'](){const _0x2d3193=()=>!0x1,_0x48079b=_0x3f34c0=>{_0x3f34c0['sort']((_0x444fd4,_0x30ffda)=>_0x444fd4['start']['isBefore'](_0x30ffda['start'])?0x1:-0x1),this['_model']['change'](_0x4f235c=>{for(const _0x3af3ec of _0x3f34c0){let _0x256fee;_0x256fee=_0x3af3ec['end']['isAtEnd']&&_0x3af3ec['end']['parent']==_0x3af3ec['start']['nodeAfter']?_0x4f235c['createSelection'](_0x3af3ec['start']['nodeAfter'],'on'):_0x4f235c['createSelection'](_0x3af3ec),this['_model']['deleteContent'](_0x256fee,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x430f5c=(_0x510ebb,_0x598914)=>{_0x598914&&this['_model']['change'](_0x1b06e8=>{const {commandName:_0x150aab,commandParams:_0x517cb3=[]}=_0x598914,_0x2bffbe=_0x510ebb['map'](_0x4e4b16=>(Vt(_0x4e4b16)&&(_0x4e4b16=this['_model']['createRange'](_0x4e4b16['end'])),_0x4e4b16))['filter'](_0x1f6598=>'$graveyard'!==_0x1f6598['root']['rootName']);if(_0x2bffbe['length']<0x1)return;const _0x16c937=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x199fa0=>_0x1c86da['fromRange'](_0x199fa0));_0x1b06e8['setSelection'](_0x2bffbe);for(const _0x59db4b of this['_editor']['commands']['commands']())_0x59db4b['refresh']();_0x517cb3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x150aab,..._0x517cb3);const _0x3ad721=_0x16c937['filter'](_0x4284f0=>'$graveyard'!=_0x4284f0['root']['rootName']);_0x3ad721['length']>0x0&&_0x1b06e8['setSelection'](_0x3ad721);for(const _0x412748 of _0x16c937)_0x412748['detach']();});},_0x22de0b=(_0x20355f,_0x9067e5)=>0x1==_0x20355f['length']&&0x1==_0x9067e5['length']&&_0x20355f[0x0]['end']['isEqual'](_0x9067e5[0x0]['start']),_0x11574d=(_0x2bab73,_0x4eca47,_0x198d88,_0x577d27)=>Ht(_0x2bab73,_0x4eca47,_0x198d88,_0x577d27)?[_0x2bab73,_0x4eca47]:Ht(_0x4eca47,_0x2bab73,_0x577d27,_0x198d88)?[_0x4eca47,_0x2bab73]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2d3193),this['_defaultCallbacks']['set']('insertion:discard',_0x48079b),this['_defaultCallbacks']['set']('insertion:join',_0x22de0b),this['_defaultCallbacks']['set']('insertion:chain',_0x11574d),this['_defaultCallbacks']['set']('deletion:accept',_0x48079b),this['_defaultCallbacks']['set']('deletion:discard',_0x2d3193),this['_defaultCallbacks']['set']('deletion:join',_0x22de0b),this['_defaultCallbacks']['set']('deletion:chain',_0x11574d),this['_defaultCallbacks']['set']('formatInline:accept',_0x430f5c),this['_defaultCallbacks']['set']('formatInline:discard',_0x2d3193),this['_defaultCallbacks']['set']('formatInline:join',_0x22de0b),this['_defaultCallbacks']['set']('formatInline:chain',_0x2d3193),this['_defaultCallbacks']['set']('formatBlock:accept',_0x430f5c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2d3193),this['_defaultCallbacks']['set']('formatBlock:join',_0x22de0b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2d3193),this['_defaultCallbacks']['set']('attribute:accept',_0x2d3193),this['_defaultCallbacks']['set']('attribute:discard',(_0x537500,_0x54050a)=>{if(!_0x54050a)return;const _0xaa73e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x19f0eb=>{if(_0x54050a['key']==m)for(const _0x4ced86 of _0x537500){const _0x42d96d=_0x4ced86['start']['nodeAfter'],_0x3a6564=_0x54050a['oldValue'];_0x19f0eb['rename'](_0x42d96d,_0x3a6564);}else{if(_0xaa73e['_isBlockAttribute'](_0x54050a['key'])){for(const _0x41e6ce of _0x537500)void 0x0!==_0x54050a['oldValue']?_0x19f0eb['setAttribute'](_0x54050a['key'],_0x54050a['oldValue'],_0x41e6ce['start']['nodeAfter']):_0x19f0eb['removeAttribute'](_0x54050a['key'],_0x41e6ce['start']['nodeAfter']);}else{for(const _0x2df2e9 of _0x537500)_0x54050a['oldValue']?_0x19f0eb['setAttribute'](_0x54050a['key'],_0x54050a['oldValue'],_0x2df2e9):_0x19f0eb['removeAttribute'](_0x54050a['key'],_0x2df2e9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x22de0b);}}function Ut(_0x3901ec,_0x12e1f4,_0x275532){for(const _0x379fda of _0x12e1f4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x379fda['root']==_0x379fda)return!0x1;if(!_0x275532['containsItem'](_0x379fda))return!0x1;if(_0x3901ec['isObject'](_0x379fda)||_0x3901ec['isLimit'](_0x379fda))return!0x0;}return!0x1;}function Vt(_0x43ae18){return _0x43ae18['end']['parent']==_0x43ae18['start']['nodeAfter']&&_0x43ae18['end']['isAtStart'];}function Pt(_0x214f48,_0x17407c,_0x13f190,_0x2e9b35){const _0x261873=_0x437f6f=>!_0x437f6f['item']['is']('$textProxy')&&!_0x2e9b35['isObject'](_0x437f6f['item']),_0x406518=_0x214f48['start']['getLastMatchingPosition'](_0x261873),_0x30e5ec=_0x214f48['end']['getLastMatchingPosition'](_0x261873,{'direction':'backward'});return(!_0x214f48['start']['isEqual'](_0x406518)||!_0x214f48['end']['isEqual'](_0x30e5ec))&&(_0x406518['isBefore'](_0x30e5ec)?_0x13f190['updateMarker'](_0x17407c,{'range':_0x13f190['createRange'](_0x406518,_0x30e5ec)}):_0x13f190['removeMarker'](_0x17407c),!0x0);}function Gt(_0x2196c5){return _0x546877(_0x2196c5);}function Ft(_0x74a48a){const _0x4f274f=_0x74a48a['start']['nodeAfter'];return _0x4f274f&&_0x4f274f['is']('element');}function Lt(_0x40e480,_0x750902){return null==_0x40e480['end']['nodeBefore']&&_0x40e480['end']['parent']==_0x40e480['start']['nodeAfter']?Jt(_0x40e480['start']['nodeAfter'],_0x750902):_0x40e480;}function Jt(_0x275e1e,_0x5a14a6){const _0x18251f=_0x5a14a6['schema']['isObject'](_0x275e1e)||_0x5a14a6['schema']['isSelectable'](_0x275e1e);return _0x5a14a6['createRange'](_0x5a14a6['createPositionAt'](_0x275e1e,'before'),_0x18251f?_0x5a14a6['createPositionAfter'](_0x275e1e):_0x5a14a6['createPositionAt'](_0x275e1e,'end'));}function Ht(_0x3fd6db,_0x4b62c0,_0x2ae306,_0x1f5c4f){return!!qt(_0x3fd6db,_0x4b62c0)&&_0x2ae306['end']['isEqual'](_0x1f5c4f['start']);}function qt(_0x38f0f6,_0xb1c3e6){if(!_0x38f0f6['_isDataLoaded']||!_0xb1c3e6['_isDataLoaded'])return!0x1;const _0x20711b=new Set(Object['keys'](_0x38f0f6['attributes'])),_0x30e7f6=new Set(Object['keys'](_0xb1c3e6['attributes']));if(_0x20711b['delete']('groupId'),_0x30e7f6['delete']('groupId'),0x0==_0x20711b['size']&&0x0==_0x30e7f6['size'])return!0x0;if(_0x20711b['size']!=_0x30e7f6['size'])return!0x1;const _0x46d655={..._0x38f0f6['attributes']},_0x1d2bea={..._0xb1c3e6['attributes']};return delete _0x46d655['groupId'],delete _0x1d2bea['groupId'],JSON['stringify'](_0x46d655)==JSON['stringify'](_0x1d2bea);}function zt(_0xf18c9b,_0x23b5c9){const _0x2e95f1=Kt(_0xf18c9b['attributes']),_0x1a3aeb=Kt(_0x23b5c9);if(!_0xf18c9b['_isDataLoaded'])return!0x1;for(const _0x92bc67 of Object['keys'](_0x1a3aeb))if(!_0x2e7dfd(_0x2e95f1[_0x92bc67],_0x1a3aeb[_0x92bc67]))return!0x1;return!0x0;}function Kt(_0x2fa343){const _0x3564d6=Object['assign']({},_0x2fa343);return delete _0x3564d6['skipNestingCheck'],delete _0x3564d6['tablePasteChainId'],_0x3564d6;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x29f64b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x44252a,_0x54498a,_0x4990ae,_0x43bccb){super(),this['model']=_0x54498a,this['view']=_0x4990ae,this['commentThreadController']=_0x43bccb,this['_editor']=_0x44252a,this['_acceptCommand']=_0x44252a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x44252a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x23a5f5,_0x2ff3e2)=>_0x23a5f5||_0x2ff3e2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1456a7=>_0x1456a7&&this['_editor']['model']['canEditAt'](_0x54498a['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x267fa3=>_0x267fa3&&this['_editor']['model']['canEditAt'](_0x54498a['getRanges']())),this['_pendingAction']=null,_0x4990ae['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4990ae,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4990ae,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4990ae,'change:isDirty',()=>{_0x4990ae['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 _0x574619=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x574619);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x2cb6df{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d817e,_0x207c1b,_0x5eef2d,_0x428a7e){super(_0x4d817e),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x354581(_0x4d817e,o(_0x4d817e,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x207c1b['authoredAt']),this['bind']('authoredAt')['to'](_0x207c1b),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',_0x207c1b,'authoredAt',this,'descriptionParts',(_0x159120,_0x2c13ba,_0x3dc28b)=>{const _0x7aa853=_0x3dc28b['map'](_0x56bcbf=>ns(_0x56bcbf['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x159120-0x1,_0x207c1b['author']['name'],_0x2c13ba?_0x428a7e['formatDateTime'](_0x2c13ba):'',new DOMParser()['parseFromString'](_0x7aa853,'text/html')['body']['textContent']]);}),this['focusables']=new _0x449b37(),this['focusTracker']=new _0x133ea1(),this['keystrokes']=new _0x823bdb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x29ee54=>_0x29ee54['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x207c1b,this['_localUser']=_0x5eef2d,this['_config']=_0x428a7e,_0x428a7e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x7aee60(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x20484b}=this['_config'];this['commentsListView']=new _0x20484b(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',_0x270bbb=>_0x270bbb+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2005f1,_0x1b395f)=>_0x2005f1||!!_0x1b395f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x485080}=this['_config'],_0x48a74f=new _0x485080(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4343be=_0x48a74f['commentInputView'];return _0x48a74f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4343be,'value',(_0x28b60d,_0x5877d8,_0x33cbb5)=>!!_0x33cbb5||_0x28b60d&&!_0x5877d8),_0x4343be['on']('submit',(_0x51ebe5,_0x278678)=>{this['fire']('addComment',_0x278678),_0x4343be['editor']['setData']('');}),_0x4343be['on']('cancel',()=>this['focus']()),_0x4343be['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x48a74f;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3edd98,_0x4eb2a7,_0x235d11,_0x319259){super(_0x3edd98,_0x4eb2a7,_0x235d11,_0x319259),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2e0072=>_0x2e0072&&_0x2e0072[0x0]?_0x2e0072[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x19a0a7,_0x455a3e)=>{let _0xb35758='';for(const _0x5ba3e9 of _0x19a0a7)_0xb35758+='<p>'+ns(_0x5ba3e9['content'],_0x5ba3e9['color'])+'</p>';return _0x455a3e?_0xb35758:ti(_0xb35758,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x319259['SuggestionView'](_0x3edd98,_0x4eb2a7,{'formatDateTime':_0x319259['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 _0x17ecba=this['bindTemplate'],_0x3319fc=[this['suggestionView']];return this['commentsListView']&&_0x3319fc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x3319fc['push'](this['commentThreadInputView']),_0x3319fc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x17ecba['if']('isActive','ck-suggestion-wrapper--active'),_0x17ecba['to']('type',_0x3d3e81=>'ck-suggestion-'+_0x3d3e81),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':_0x17ecba['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x3319fc};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class ue extends _0x2cb6df{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5098fe,_0x25655e,_0x19a790){super(_0x5098fe),this['_model']=_0x25655e,this['_config']=_0x19a790,this['set']('description',''),this['bind']('authoredAt')['to'](_0x25655e),this['acceptButton']=this['_createButton'](o(_0x5098fe,'Accept\x20suggestion'),_0xd426bb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5098fe,'Discard\x20suggestion'),_0xd426bb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1e2953(_0x5098fe,_0x25655e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x449b37([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x133ea1(),this['keystrokes']=new _0x823bdb(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x46754c=>_0x46754c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0xd34778=this['element']['querySelector']('.ck-annotation__content-wrapper');_0xd34778['innerHTML']=this['description'],this['on']('change:description',(_0x4f19b1,_0x1111c2,_0x3961bb)=>{_0xd34778['innerHTML']=_0x3961bb;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xb66b4e=this['bindTemplate'],_0x263079=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0xb66b4e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xb66b4e['to']('authoredAt',_0x5d5541=>this['_config']['formatDateTime'](_0x5d5541))}]}]},{'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']&&_0x263079['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':_0x263079}]};}['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'](_0x4f16fb,_0x429134,_0x49b9ac,_0x141537,_0xea3518){const _0x2847aa=new _0x4bf5b0(this['locale']);return _0x2847aa['set']({'label':_0x4f16fb,'icon':_0x429134,'tooltip':!0x0,'tooltipPosition':_0xea3518}),_0x2847aa['extendTemplate']({'attributes':{'class':_0x49b9ac}}),_0x2847aa['on']('execute',()=>{this['fire'](_0x141537,this['_model']['id']);}),_0x2847aa;}['_setupKeyboardNavigation'](){const _0x373aa2=this['element'];this['keystrokes']['listenTo'](_0x373aa2);for(const _0x4c133a of this['focusables'])this['focusTracker']['add'](_0x4c133a['element']),this['keystrokes']['listenTo'](_0x4c133a['element']);this['keystrokes']['set']('enter',(_0x1c17d4,_0x5e9db3)=>{_0x373aa2===_0x1c17d4['target']&&(this['focusCycler']['focusFirst'](),_0x5e9db3());}),this['keystrokes']['set']('esc',(_0x533667,_0x108e0d)=>{_0x373aa2!==_0x533667['target']&&(this['focus'](),_0x108e0d());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x1f739f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3dcaf7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x455459){super(_0x455459),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f4a79=this['editor']['config'];_0x1f4a79['define']('trackChanges.SuggestionThreadView',de),_0x1f4a79['define']('trackChanges.SuggestionView',ue),_0x1f4a79['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f4a79['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4c80dc,_0x214e9a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x38c55a,_0x11421c]of this['_handleControllerBuffer']){const _0x26b0cc=this['_suggestionToController']['has'](_0x38c55a);_0x26b0cc||_0x11421c?_0x26b0cc&&_0x11421c&&this['_destroyController'](_0x38c55a):this['_initializeController'](_0x38c55a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4c80dc,_0x214e9a);}['init'](){const _0xbafe6c=this['editor'],_0x10aa1e=_0xbafe6c['plugins']['get']('TrackChangesEditing'),_0x4687f9=_0xbafe6c['plugins']['get']('Annotations'),_0x2bc17c=_0xbafe6c['plugins']['get']('EditorAnnotations'),_0x1649e2=_0xbafe6c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2bc17c['addSourceCollector'](()=>{const _0x3126a4=[];for(const [_0x250cd6,_0x37bb7d]of Array['from'](this['_suggestionToController'])){const _0x2205ad=_0x250cd6['getAllAdjacentSuggestions'](),_0xe8c612=[];for(const _0x3962cd of _0x2205ad){if(!_0x3962cd['isInContent'])continue;if(_0x3962cd['isMultiRange']){_0xe8c612['push'](..._0x3962cd['getRanges']());continue;}const _0x3abf32=_0x3962cd['getFirstRange']();if(_0xe8c612['length']>0x0){const _0x2f8caa=_0xe8c612[0x0]['getJoined'](_0x3abf32);if(_0x2f8caa){_0xe8c612[0x0]=_0x2f8caa;continue;}}_0xe8c612['push'](_0x3abf32);}_0x3126a4['push']([_0x37bb7d['view'],_0xe8c612]);}return _0x3126a4;}),this['listenTo'](_0x10aa1e,'suggestionLoaded',(_0xddc5e,_0x338faa)=>{this['listenTo'](_0x338faa,'change:previous',(_0x5e1f2a,_0x1f5f9f,_0x243de2,_0x286dc2)=>{_0x338faa['isInContent']&&(null==_0x243de2?(this['_updateController'](_0x286dc2['head']),this['_handleSuggestionControllerDelayed'](_0x338faa,!0x1)):(this['_updateController'](_0x243de2['head']),null==_0x286dc2&&this['_handleSuggestionControllerDelayed'](_0x338faa,!0x0)));}),null!==_0x338faa['previous']?this['_updateController'](_0x338faa['head']):this['_handleSuggestionControllerDelayed'](_0x338faa,!0x1);}),this['listenTo'](_0x10aa1e,'suggestionUnloaded',(_0x55b9e0,_0x3b528c,_0x416e93)=>{this['stopListening'](_0x3b528c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b528c),this['_suggestionToController']['has'](_0x3b528c)&&this['_destroyController'](_0x3b528c),_0x416e93&&this['_updateController'](_0x416e93['head']);}),this['listenTo'](_0x10aa1e,'suggestionChanged',(_0x1f20e0,_0x39f1db)=>{this['_updateController'](_0x39f1db);}),this['listenTo'](_0x4687f9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1649e2,'addComment',(_0x1a0b7d,{threadId:_0x48c3d8,isFromAdapter:_0x3906cf})=>{if(_0x3906cf||!_0x10aa1e['hasSuggestion'](_0x48c3d8))return;const _0x3d8f87=_0x10aa1e['getSuggestion'](_0x48c3d8);this['_suggestionToController']['get'](_0x3d8f87)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x48d593=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x54bd4b;for(const _0x1a198f in _0x48d593){const _0x31951a=_0x1a198f,_0x27836c=_0x48d593[_0x31951a];if('trackChangesLicenseKeyValid'==_0x27836c||'trackChangesLicenseKeyInvalid'==_0x27836c||'trackChangesLicenseKeyExpired'==_0x27836c||'trackChangesLicenseKeyDomainLimit'==_0x27836c||'trackChangesLicenseKeyNotAllowed'==_0x27836c||'trackChangesLicenseKeyEvaluationLimit'==_0x27836c||'trackChangesLicenseKeyTrialLimit'==_0x27836c||'trackChangesLicenseKeyDevelopmentLimit'==_0x27836c||'trackChangesLicenseKeyUsageLimit'==_0x27836c){delete _0x48d593[_0x31951a],_0x54bd4b=_0x27836c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x54bd4b&&_0x48d593['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x54bd4b&&_0x48d593['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x54bd4b&&_0x48d593['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x54bd4b&&_0x48d593['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x136166=this['editor']['plugins']['get']('Annotations'),_0x11ad4b=this['editor']['plugins']['get']('TrackChangesEditing'),_0xda9426=Array['from'](_0x136166['activeAnnotations'],_0x8db67e=>_0x8db67e['innerView'])['filter'](_0x1a5fff=>this['_viewToController']['has'](_0x1a5fff)),_0x3067ac=[];for(const _0x23e760 of _0xda9426){const _0x125987=this['_viewToController']['get'](_0x23e760)['model']['getAllAdjacentSuggestions']();_0x3067ac['push'](..._0x125987['reduce']((_0x173c87,_0x37dbb2)=>[..._0x173c87,..._0x37dbb2['getMarkerNames']()],[]));}_0x11ad4b['activeMarkers']=_0x3067ac;}['_addUIComponentsToFactory'](){const _0xf07822=this['editor'],_0x27a55e=_0xf07822['locale'],_0x12ae3f=o(_0x27a55e,'Track\x20changes'),_0x15cabc=new _0x5b8f52([{'type':'switchbutton','model':new _0x3948a5({'withText':!0x0,'isToggleable':!0x0,'label':_0x12ae3f,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x3948a5({'withText':!0x0,'label':o(_0x27a55e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3948a5({'withText':!0x0,'label':o(_0x27a55e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3948a5({'withText':!0x0,'label':o(_0x27a55e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x3948a5({'withText':!0x0,'label':o(_0x27a55e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xcfc8e1 of _0x15cabc)if(pe(_0xcfc8e1)){const _0x28242e=_0xf07822['commands']['get'](_0xcfc8e1['model']['commandName']);_0xcfc8e1['model']['bind']('isOn','isEnabled')['to'](_0x28242e,'value','isEnabled');}_0xf07822['ui']['componentFactory']['add']('trackChanges',_0x5c5ced=>this['_createToolbarButton'](_0x5c5ced,_0x15cabc,_0x12ae3f)),_0xf07822['ui']['componentFactory']['add']('menuBar:trackChanges',_0xd0c4aa=>this['_createMenuBarMenu'](_0xd0c4aa,_0x15cabc,_0x12ae3f));}['_createToolbarButton'](_0x2bcfc8,_0x412194,_0xd09648){const _0x80c3fd=_0xc304a4(_0x2bcfc8,_0x1b5c51),_0x32aebb=this['editor']['commands']['get']('trackChanges');_0x80c3fd['buttonView']['set']({'tooltip':_0xd09648,'label':_0xd09648,'icon':Ce}),_0x80c3fd['buttonView']['bind']('isOn')['to'](_0x32aebb,'value'),_0x80c3fd['buttonView']['on']('execute',()=>{_0x32aebb['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x80c3fd,_0x412194,{'role':'menu'});const _0x5a9a35=[];for(const _0xfe324a of _0x412194)pe(_0xfe324a)&&_0x5a9a35['push'](this['editor']['commands']['get'](_0xfe324a['model']['commandName']));const _0x231aa6=_0x80c3fd['buttonView'];return _0x231aa6['actionView']['unbind']('isEnabled'),_0x231aa6['arrowView']['unbind']('isEnabled'),_0x231aa6['actionView']['bind']('isEnabled')['to'](_0x32aebb,'isEnabled'),_0x231aa6['arrowView']['bind']('isEnabled')['toMany'](_0x5a9a35,'isEnabled',(..._0x3de490)=>_0x3de490['some'](_0x734985=>_0x734985)),_0x80c3fd['on']('execute',_0x182efc=>{this['editor']['execute'](_0x182efc['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x80c3fd;}['_createMenuBarMenu'](_0xba089,_0x1c7c7e,_0xcfd070){const _0x129325=new _0x598971(_0xba089),_0x5a3d7a=this['editor']['commands']['get']('trackChanges');_0x129325['buttonView']['set']({'label':_0xcfd070,'icon':Ce});const _0x509235=new _0x42d103(_0xba089);for(const _0x1a9b6d of _0x1c7c7e){if('separator'==_0x1a9b6d['type']){_0x509235['items']['add'](new _0x499831(_0xba089));continue;}const _0x5097bd=new _0x3abd64(_0xba089,_0x129325),_0x560f7d=new _0x3bdccb(_0xba089),_0x19015a=_0x1a9b6d['model'];_0x560f7d['bind'](...Object['keys'](_0x19015a))['to'](_0x19015a),_0x560f7d['delegate']('execute')['to'](_0x129325),_0x560f7d['on']('execute',()=>{this['editor']['execute'](_0x19015a['commandName']),this['editor']['editing']['view']['focus']();}),_0x5097bd['children']['add'](_0x560f7d),_0x509235['items']['add'](_0x5097bd);}return _0x129325['bind']('isEnabled')['to'](_0x5a3d7a,'isEnabled'),_0x129325['panelView']['children']['add'](_0x509235),_0x129325;}['_initializeController'](_0x497dcf){const _0x158bcd=this['editor'],_0x1118c8=_0x158bcd['config'],_0xd5e252=_0x158bcd['plugins']['get']('Annotations'),_0x427eea=_0x158bcd['plugins']['get']('CommentsRepository'),_0x1598b3=_0x158bcd['plugins']['get']('EditorAnnotations'),_0x5127fc=_0x158bcd['plugins']['get'](_0x3dcaf7)['me'],_0x50c279=_0x1118c8['get']('trackChanges')['SuggestionThreadView'],_0x4f8d55=_0x1118c8['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x18ebca,CommentThreadInputView:_0x54b6df}=_0x158bcd['plugins']['get']('CommentsUI');let _0x32e977,_0x516db0,_0x856ea3;this['_annotationViews']['has'](_0x497dcf['id'])?(_0x516db0=this['_annotationViews']['get'](_0x497dcf['id']),_0x32e977=_0x516db0['mainView']):(_0x32e977=new _0x50c279(_0x158bcd['locale'],_0x497dcf,_0x5127fc,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1118c8['get']('comments.editorConfig'),'licenseKey':_0x1118c8['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1118c8['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1118c8['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1118c8['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4e831d(_0x1118c8['get']('locale')),'CommentView':_0x1118c8['get']('comments')['CommentView'],'CommentsListView':_0x18ebca,'CommentThreadInputView':_0x54b6df,'SuggestionView':_0x4f8d55}),_0x32e977['suggestionView']['acceptButton']['on']('execute',()=>{_0x158bcd['editing']['view']['focus']();}),_0x32e977['suggestionView']['discardButton']['on']('execute',()=>{_0x158bcd['editing']['view']['focus']();}),_0x516db0=_0xd5e252['createAnnotationView'](this['editor']['locale'],_0x32e977),_0x516db0['bind']('isDirty')['to'](_0x32e977,'isDirty'),_0x516db0['bind']('length')['to'](_0x32e977),_0x516db0['bind']('type')['to'](_0x32e977,'type',_0x118418=>'suggestion-'+_0x118418),_0x32e977['on']('escape',()=>{_0x856ea3['fire']('escape');}),this['_annotationViews']['set'](_0x497dcf['id'],_0x516db0));const _0x52f8c0=_0x427eea['createCommentThreadController'](_0x497dcf['commentThread'],_0x32e977),_0xf29b60=new ge(_0x158bcd,_0x497dcf,_0x32e977,_0x52f8c0),_0x143a82=_0x497dcf['getAllAdjacentSuggestions']()['filter'](_0x571b2f=>_0x571b2f['isInContent']);_0x32e977['descriptionParts']=_0x158bcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x143a82),this['_suggestionToController']['set'](_0x497dcf,_0xf29b60),this['_viewToController']['set'](_0x32e977,_0xf29b60),_0x856ea3=_0xd5e252['createAnnotation']({'view':_0x516db0,'target':()=>{const _0x5d38f9=[],_0x3dbb94=_0x497dcf['getAllAdjacentSuggestions']()['filter'](_0x1ffcea=>_0x1ffcea['isInContent']);for(const _0x4378ae of _0x3dbb94)_0x5d38f9['push'](..._0x4378ae['getMarkers']());return _0x3c74c6(_0x158bcd['editing'],_0x5d38f9);},'type':()=>'suggestion-'+_0xf29b60['view']['type']}),_0x427eea['_bindAnnotationToEditors'](_0x32e977,_0x856ea3),_0xd5e252['add'](_0x856ea3),_0x1598b3['registerAnnotation'](_0x856ea3);}['_destroyController'](_0x2c95df){const _0x355bbd=this['editor']['plugins']['get']('CommentsRepository'),_0x14857=this['editor']['plugins']['get']('Annotations'),_0x19e4df=this['_suggestionToController']['get'](_0x2c95df),_0x535613=_0x19e4df['view'],_0x5d0117=_0x14857['getByInnerView'](_0x535613);_0x355bbd['_unbindEditors'](_0x535613),_0x5d0117&&_0x14857['remove'](_0x5d0117),this['_suggestionToController']['delete'](_0x2c95df),this['_viewToController']['delete'](_0x535613),_0x19e4df['destroy']();}['_updateController'](_0x2e2512){if(!_0x2e2512['isInContent']||!this['_suggestionToController']['has'](_0x2e2512))return;const _0x3a16ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbb5e18=this['_suggestionToController']['get'](_0x2e2512),_0x4aea7b=_0x2e2512['getAllAdjacentSuggestions']();_0xbb5e18['view']['descriptionParts']=_0x3a16ea['descriptionFactory']['getDescriptions'](_0x4aea7b);}['destroy'](){for(const _0x27528a of this['_suggestionToController']['keys']())this['_destroyController'](_0x27528a);for(const _0x57b886 of this['_annotationViews']['values']())_0x57b886['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x58cff7){return'model'in _0x58cff7;}class k extends _0x1f739f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x18ed54){this['editor']['plugins']['get'](p)['adapter']=_0x18ed54;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1f87fa){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1f87fa);}['getSuggestions']({skipNotAttached:_0x28de6f=!0x1,toJSON:_0x31ab08=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x28de6f,'toJSON':_0x31ab08});}['getSuggestion'](_0x2d35fb){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2d35fb);}}const w=['Pagination'];class T extends _0x1f739f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x4d7932=this['editor'];if(_0x4d7932['config']['define']('trackChangesData.editorCreator',_0x18a82c=>{const _0x148802=_0x4d7932['model']['document']['getRootNames']()['reduce']((_0x3faf99,_0x506089)=>(_0x3faf99[_0x506089]='',_0x3faf99),{});return _0x4d7932['constructor']['create'](_0x148802,_0x18a82c);}),'function'!=typeof _0x4d7932['config']['get']('trackChangesData')['editorCreator'])throw new _0x243768('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x35891f){return N(this['editor'],!0x0,_0x35891f);}['getDataWithDiscardedSuggestions'](_0x4e4ba3){return N(this['editor'],!0x1,_0x4e4ba3);}}class D extends _0x1f739f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a12eb){function _0x17eedb(_0x4241e3){return _0x4241e3['map'](_0x1f3cf3=>String['fromCharCode'](_0x1f3cf3))['join']('');}super(_0x3a12eb),this['result']='end',_0x3a12eb[_0x17eedb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17eedb([0x76,0x69,0x65,0x77])][_0x17eedb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17eedb([0x61,0x75,0x74,0x6f]),_0x3a12eb[_0x17eedb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17eedb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17eedb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17eedb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17eedb([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x330839){return void 0x0!==_0x330839['getRootsAttributes'];}async function N(_0x62c67c,_0x1b0a9e,_0x310164){const _0x36ebf4=_0x3f089f(_0x62c67c,w);_0x36ebf4['plugins']['push'](p,D),_0x36ebf4['rootsAttributes']=v(_0x62c67c)?_0x62c67c['getRootsAttributes']():void 0x0;const _0x1e7c44=document['createDocumentFragment'](),_0x1b7568=_0x62c67c['config']['get']('trackChangesData')['editorCreator'],_0xab1a0b=await _0x1b7568(_0x36ebf4,()=>function(_0x2cdde3){const _0x48a7f1=document['createElement']('div');return _0x2cdde3['appendChild'](_0x48a7f1),_0x48a7f1;}(_0x1e7c44));!function(_0x547615,_0x39f00b){const _0x37819e=_0x547615['model']['document']['getRootNames']()['reduce']((_0x17f1ce,_0x3a9ba3)=>(_0x17f1ce[_0x3a9ba3]=_0x547615['data']['get']({'rootName':_0x3a9ba3}),_0x17f1ce),{}),_0x4e71ee=_0x547615['plugins']['get']('Users')['users']['map'](_0x170426=>({'id':_0x170426['id'],'name':_0x170426['name']})),_0x1b7777=_0x547615['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x36b9d2=_0x547615['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x564a3e=_0x39f00b['plugins']['get']('Users'),_0x44b547=_0x39f00b['plugins']['get']('TrackChangesEditing'),_0xe931e0=_0x39f00b['plugins']['get']('CommentsRepository');for(const _0x453996 of _0xe931e0['getCommentThreads']())_0x453996['remove']();for(const _0x36bcda of _0x4e71ee)_0x564a3e['getUser'](_0x36bcda['id'])||_0x564a3e['addUser'](_0x36bcda);_0x564a3e['me']||_0x564a3e['useAnonymousUser']();for(const _0x1e7f4f of _0x36b9d2)_0xe931e0['addCommentThread'](_0x1e7f4f);for(const _0x54abf2 of _0x1b7777)_0x44b547['addSuggestionData'](_0x54abf2);_0x39f00b['data']['set'](_0x37819e);}(_0x62c67c,_0xab1a0b),_0xab1a0b['execute'](_0x1b0a9e?'acceptAllSuggestions':'discardAllSuggestions');const _0x1e9da0=v(_0xab1a0b)?_0xab1a0b['getFullData'](_0x310164):_0xab1a0b['data']['get'](_0x310164);return await _0xab1a0b['destroy'](),_0x1e9da0;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|