@ckeditor/ckeditor5-track-changes 45.2.0-alpha.2 → 45.2.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +27 -27
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x824c0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xffaee7,_0x204c2d){super(),this['id']=_0x204c2d['id'],this['type']=_0x204c2d['type'],this['subType']=_0x204c2d['subType']||null,this['author']=_0x204c2d['author'],this['creator']=_0x204c2d['creator']||_0x204c2d['author'],this['isExternal']=Boolean(_0x204c2d['attributes']&&_0x204c2d['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x204c2d['originalSuggestionId']||null,this['_model']=_0xffaee7,this['_onAccept']=_0x204c2d['onAccept'],this['_onDiscard']=_0x204c2d['onDiscard'],this['_onAttributesChange']=_0x204c2d['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x204c2d['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 _0x292483=this;for(;_0x292483['previous'];)_0x292483=_0x292483['previous'];return _0x292483;}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'](_0x255133){this['_markerNames']['add'](_0x255133);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x54bcd7=>this['_model']['markers']['get'](_0x54bcd7))['filter'](_0x4e33e4=>_0x4e33e4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xf97704=>{for(const _0x30dc50 of this['getMarkers']())_0xf97704['removeMarker'](_0x30dc50);}),this['_markerNames']['clear']();}['removeMarker'](_0x1ae000){this['_model']['change'](_0x37469f=>{_0x37469f['removeMarker'](_0x1ae000);}),this['_markerNames']['delete'](_0x1ae000);}['addRange'](_0x117cab){const _0x4ae57d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4ae57d),this['_model']['change'](_0x21510f=>{_0x21510f['addMarker'](_0x4ae57d,{'range':_0x117cab,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x209ab4){for(const _0x590f62 of this['getRanges']())if(_0x590f62['isIntersecting'](_0x209ab4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x464980=>_0x464980['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3f496e,_0x2b5594)=>[..._0x3f496e,..._0x2b5594['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x28e8cf=this['getRanges']();if(0x1!=_0x28e8cf['length'])return null;const _0x2da122=_0x28e8cf[0x0],_0x20f6a8=_0x2da122['start']['nodeAfter'],_0x3a0203=_0x2da122['end']['nodeBefore'];return _0x20f6a8 instanceof _0x32bb8c?_0x20f6a8!=_0x3a0203?null:_0x20f6a8: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 _0x3a7926=[];let _0x4ee5c9=this['head'];for(;_0x4ee5c9;)_0x3a7926['push'](_0x4ee5c9),_0x4ee5c9=_0x4ee5c9['next'];return _0x3a7926;}['setAttribute'](_0x1e11e5,_0x14d0e4){const _0x1f4e6d=_0x1777b1(this['attributes']);_0xbd147e(_0x1f4e6d,_0x1e11e5,_0x14d0e4),_0x5c3aba(_0x1f4e6d,this['attributes'])||(this['attributes']=_0x1f4e6d,this['_onAttributesChange'](_0x1f4e6d));}['removeAttribute'](_0x1e51f5){const _0x574afb=_0x1777b1(this['attributes']);_0x30d09d(_0x574afb,_0x1e51f5),_0x5c3aba(_0x574afb,this['attributes'])||(this['attributes']=_0x574afb,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 _0x5011f0()['substr'](0x1,0x5);}}function c(_0x37a2da,_0x4d6fa2,_0x1e50ca){const _0x25ca2d=_0x37a2da['t'],t=_0x37a2da['t'];switch(_0x4d6fa2){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1e50ca);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1e50ca);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1e50ca);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1e50ca);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1e50ca);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',_0x1e50ca);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1e50ca);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1e50ca);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1e50ca);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1e50ca);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1e50ca);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1e50ca);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1e50ca);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1e50ca);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1e50ca);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1e50ca);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1e50ca);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1e50ca);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1e50ca);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1e50ca);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1e50ca);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1e50ca);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1e50ca);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1e50ca);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1e50ca);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1e50ca);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1e50ca);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1e50ca);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1e50ca);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1e50ca);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1e50ca);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1e50ca);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1e50ca);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1e50ca);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'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1e50ca);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1e50ca);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'},_0x1e50ca);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1e50ca);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 _0x25ca2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1e50ca);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x25ca2d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1e50ca);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1e50ca);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'},_0x1e50ca);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'},_0x1e50ca);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'},_0x1e50ca);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4d6fa2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4a11cb,_0x140411){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4a11cb,this['_locale']=_0x140411;}['getDescriptions'](_0x125a09){const _0xc7f9a7=[],_0xf13075=new Set(),_0x3a6df9=new Set();for(let _0xc8d5df=0x0;_0xc8d5df<_0x125a09['length'];_0xc8d5df++){const _0xd6867=_0x125a09[_0xc8d5df];if(!_0xd6867['isInContent'])continue;const _0x3d0e96=this['_handleCustomCallbackDescription'](_0xd6867);if(_0x3d0e96){if(null!=_0xd6867['subType']){if(_0xf13075['has'](_0xd6867['subType']))continue;_0xf13075['add'](_0xd6867['subType']);}_0xc7f9a7['push'](_0x3d0e96);}else{if('attribute'!=_0xd6867['type'])'insertion'!=_0xd6867['type']&&'deletion'!=_0xd6867['type']||this['_handleInsertRemoveSuggestionDescription'](_0xc7f9a7,_0xd6867,_0x125a09[_0xc8d5df+0x1]);else{const _0x320e04=_0xd6867['data']['key'];if(_0x3a6df9['has'](_0x320e04))continue;_0x3a6df9['add'](_0xd6867['data']['key']),_0x320e04==u?this['_handleRenameSuggestionDescription'](_0xc7f9a7,_0xd6867):this['_handleAttributeSuggestionDescription'](_0xc7f9a7,_0xd6867);}}}return this['_resolveDescriptionItems'](_0xc7f9a7);}['registerDescriptionCallback'](_0x2aedf7){this['_customCallbacks']['push'](_0x2aedf7);}['registerElementLabel'](_0x3db2ba,_0x489a92,_0x3d304e=_0xc3ad2a['normal']){'function'==typeof _0x3db2ba?_0x37821f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3db2ba,'label':_0x489a92,'priority':_0x3d304e}):this['_itemLabels']['set'](_0x3db2ba,_0x489a92);}['registerAttributeLabel'](_0x1c007a,_0xd0c9f9){this['_attributeLabels']['set'](_0x1c007a,_0xd0c9f9);}['getItemLabel'](_0x43eceb,_0x5c8d1f=0x1){let _0x2ccafa;for(const _0x37cfa0 of this['_itemLabelsCallbacks'])if(_0x37cfa0['matchingCallback'](_0x43eceb)){_0x2ccafa=_0x37cfa0['label'];break;}return _0x2ccafa||(_0x2ccafa=this['_itemLabels']['get'](_0x43eceb['name'])),_0x2ccafa?_0x2ccafa(_0x5c8d1f):0x1!==_0x5c8d1f?_0x5c8d1f+'\x20'+_0x43eceb['name']+'s':''+_0x43eceb['name'];}['_addDescriptionItems'](_0x4f58d6,_0x2c06b8){const _0x204545=_0x2c06b8['getFirstRange']()['getWalker'](),_0x44e388='insertion'==_0x2c06b8['type']?'add':'remove';for(const _0x1cc94d of _0x204545){const _0x2e3cf7=_0x1cc94d['item'],_0x4867a6=_0x4f58d6[_0x4f58d6['length']-0x1];if(_0x2e3cf7['is']('$textProxy'))_0x4867a6&&_0x4867a6['type']['indexOf']('Container')>-0x1&&_0x4f58d6['pop'](),_0x4867a6&&'text'==_0x4867a6['type']?_0x4867a6[_0x44e388]+=_0x2e3cf7['data']:_0x4f58d6['push']({'type':'text','add':'add'==_0x44e388?_0x2e3cf7['data']:'','remove':'remove'==_0x44e388?_0x2e3cf7['data']:''});else{if(this['_schema']['isObject'](_0x2e3cf7)){const _0x5ed49c=_0x2e3cf7;if(_0x4867a6&&_0x4867a6['type']['indexOf']('Container')>-0x1&&_0x4f58d6['pop'](),'elementEnd'==_0x1cc94d['type'])continue;_0x4867a6&&_0x4867a6['type']==_0x44e388+'Object'&&_0x4867a6['element']['name']==_0x5ed49c['name']?_0x4867a6['quantity']++:_0x4f58d6['push']({'type':_0x44e388+'Object','element':_0x5ed49c,'quantity':0x1}),_0x204545['skip'](_0x28ae57=>!('elementEnd'==_0x28ae57['type']&&_0x28ae57['item']==_0x2e3cf7));}else{if(this['_schema']['checkChild'](_0x2e3cf7,'$text')||_0x2e3cf7['is']('element','softBreak')){const _0x4cd523=_0x2e3cf7;if('add'==_0x44e388&&'elementStart'==_0x1cc94d['type']||'remove'==_0x44e388&&'elementEnd'==_0x1cc94d['type'])continue;if(_0x4867a6&&-0x1==_0x4867a6['type']['indexOf']('Container')){'text'==_0x4867a6['type']&&(_0x4867a6[_0x44e388]+='\x0a');continue;}let _0x5d59c7;if(_0x5d59c7='add'==_0x44e388?_0x4cd523['nextSibling']&&!this['_schema']['isObject'](_0x4cd523['nextSibling'])?_0x4cd523['nextSibling']:null:_0x4cd523['previousSibling']&&!this['_schema']['isObject'](_0x4cd523['previousSibling'])?_0x4cd523['previousSibling']:null,_0x4cd523['isEmpty']||_0x5d59c7&&_0x5d59c7['isEmpty']){const _0x288870=_0x5d59c7&&_0x5d59c7['isEmpty']?_0x5d59c7:_0x4cd523;_0x4867a6&&_0x4867a6['type']==_0x44e388+'EmptyContainer'&&_0x4867a6['element']['name']==_0x288870['name']?_0x4867a6['quantity']++:_0x4f58d6['push']({'type':_0x44e388+'EmptyContainer','element':_0x288870,'quantity':0x1});}else _0x4f58d6['push']({'type':_0x44e388+'Container','element':_0x4cd523});}}}}}['_resolveDescriptionItems'](_0xbacc58){const _0x56162f=this['_locale'],_0x506b01=[],_0x1b4d86=[],_0x3712ae=[];for(const _0x17fe9a of _0xbacc58)switch(_0x17fe9a['type']){case'text':if(_0x17fe9a['add']=_0x17fe9a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x17fe9a['remove']=_0x17fe9a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x17fe9a['add']&&''!=_0x17fe9a['remove']){_0x506b01['push']({'type':'replace','content':c(_0x56162f,'REPLACE_TEXT',['\x22'+_0x17fe9a['remove']+'\x22','\x22'+_0x17fe9a['add']+'\x22'])});continue;}if(null!=_0x17fe9a['add']['match'](/^ +$/)){_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Insert:*\x20%0',c(_0x56162f,'ELEMENT_SPACE',_0x17fe9a['add']['length']))});continue;}if(null!=_0x17fe9a['remove']['match'](/^ +$/)){_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Remove:*\x20%0',c(_0x56162f,'ELEMENT_SPACE',_0x17fe9a['remove']['length']))});continue;}if(''!=_0x17fe9a['add']){_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Insert:*\x20%0','\x22'+_0x17fe9a['add']+'\x22')});continue;}_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Remove:*\x20%0','\x22'+_0x17fe9a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Insert:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Remove:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'addContainer':_0x506b01['push']({'type':'insertion','content':c(_0x56162f,'*Split:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'removeContainer':_0x506b01['push']({'type':'deletion','content':c(_0x56162f,'*Merge:*\x20%0',this['getItemLabel'](_0x17fe9a['element'],_0x17fe9a['quantity']))});continue;case'addFormat':_0x1b4d86['push'](_0x17fe9a['key']);continue;case'removeFormat':_0x3712ae['push'](_0x17fe9a['key']);continue;default:_0x506b01['push'](_0x17fe9a);}if(_0x1b4d86['length']){const _0x5615f0=_0x1b4d86['map'](_0x4042c8=>this['_attributeLabels']['has'](_0x4042c8)?this['_attributeLabels']['get'](_0x4042c8):_0x4042c8)['join'](',\x20');_0x506b01['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x5615f0)});}if(_0x3712ae['length']){const _0x2ef017=_0x3712ae['map'](_0x1e89a7=>this['_attributeLabels']['has'](_0x1e89a7)?this['_attributeLabels']['get'](_0x1e89a7):_0x1e89a7)['join'](',\x20');_0x506b01['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2ef017)});}return _0x506b01;}['_handleCustomCallbackDescription'](_0x57580d){for(const _0x406339 of this['_customCallbacks']){const _0x49c87d=_0x406339(_0x57580d);if(_0x49c87d&&'type'in _0x49c87d)return _0x49c87d;}}['_handleAttributeSuggestionDescription'](_0x1b4383,_0x4fb4b3){const _0x22af0a=_0x4fb4b3['data'],_0x35d979=void 0x0===_0x22af0a['newValue']?'removeFormat':'addFormat';_0x1b4383['push']({'type':_0x35d979,'key':_0x22af0a['key']});}['_handleRenameSuggestionDescription'](_0x50d2c2,_0x405def){_0x50d2c2['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x405def['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51f568,_0x1855b5,_0x32f8ee){if(this['_addDescriptionItems'](_0x51f568,_0x1855b5),_0x32f8ee&&_0x32f8ee['getFirstRange']()&&!_0x1855b5['getFirstRange']()['end']['isEqual'](_0x32f8ee['getFirstRange']()['start'])){const _0x1d092e=_0x51f568[_0x51f568['length']-0x1],_0x76e954='insertion'==_0x1855b5['type']?'add':'remove';_0x1d092e&&'text'==_0x1d092e['type']&&(_0x1d092e[_0x76e954]+='\x0a');}}}class U extends _0x59f721{['afterInit'](){const _0x3c2b6e=this['editor'],_0x3c67ea=_0x3c2b6e['plugins']['get']('TrackChangesEditing');_0x3c2b6e['commands']['get']('showAIAssistant')&&_0x3c67ea['enableCommand']('showAIAssistant');}}class V extends _0x59f721{['afterInit'](){const _0x5e843a=this['editor'],_0x5391b8=_0x5e843a['locale'];if(!_0x5e843a['plugins']['has']('AlignmentEditing'))return;const _0x316c38=_0x5e843a['plugins']['get']('TrackChangesEditing');_0x316c38['enableDefaultAttributesIntegration']('alignment'),_0x316c38['registerBlockAttribute']('alignment'),_0x316c38['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5391b8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50ca1b=this['editor'],_0x1a2b22=_0x50ca1b['locale'];_0x50ca1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x290d5e=>{if('formatBlock'!=_0x290d5e['type'])return;const {data:_0x2ed997}=_0x290d5e;if(_0x2ed997&&'alignment'==_0x2ed997['commandName']){const _0x7497f1=_0x2ed997['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x1a2b22,'*Format:*\x20%0',function(_0x9ba5a2){switch(_0x9ba5a2){case'left':return c(_0x1a2b22,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x1a2b22,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x1a2b22,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x1a2b22,'FORMAT_JUSTIFY_TEXT');}}(_0x7497f1))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x59f721{['afterInit'](){const _0x528bd7=this['editor'],_0x53d533=_0x528bd7['plugins']['get']('TrackChangesEditing'),_0x57244c=_0x528bd7['locale'];for(const _0x3c7cd4 of Zt){if(!_0x528bd7['plugins']['has'](_0x3c7cd4))continue;const _0x5990d4=_0x3c7cd4['slice'](0x0,-0x7)['toLowerCase'](),_0x19ec0e='FORMAT_'+_0x5990d4['toUpperCase']();_0x53d533['enableDefaultAttributesIntegration'](_0x5990d4),_0x53d533['registerInlineAttribute'](_0x5990d4),_0x53d533['descriptionFactory']['registerAttributeLabel'](_0x5990d4,c(_0x57244c,_0x19ec0e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d543c=this['editor'],_0x52cdfe=_0x2d543c['locale'],_0x2e702e=_0x2d543c['plugins']['get']('TrackChangesEditing');function _0x47c730(_0x2fc020,_0x3c76eb){_0x2e702e['descriptionFactory']['registerDescriptionCallback'](_0x265c8b=>{if('formatInline'!=_0x265c8b['type'])return;const {data:_0x398fd7}=_0x265c8b;return _0x398fd7&&_0x398fd7['commandName']===_0x2fc020?_0x398fd7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x52cdfe,'*Format:*\x20%0',_0x3c76eb)}:{'type':'format','content':c(_0x52cdfe,'*Remove\x20format:*\x20%0',_0x3c76eb)}:void 0x0;});}_0x47c730('bold',c(_0x52cdfe,'FORMAT_BOLD')),_0x47c730('italic',c(_0x52cdfe,'FORMAT_ITALIC')),_0x47c730('underline',c(_0x52cdfe,'FORMAT_UNDERLINE')),_0x47c730('code',c(_0x52cdfe,'FORMAT_CODE')),_0x47c730('strikethrough',c(_0x52cdfe,'FORMAT_STRIKETHROUGH')),_0x47c730('subscript',c(_0x52cdfe,'FORMAT_SUBSCRIPT')),_0x47c730('superscript',c(_0x52cdfe,'FORMAT_SUPERSCRIPT'));}}class G extends _0x59f721{['afterInit'](){const _0x1ecb3c=this['editor'],_0x23f960=_0x1ecb3c['locale'];if(!_0x1ecb3c['plugins']['has']('BlockQuoteEditing'))return;const _0x259b2b=_0x1ecb3c['plugins']['get']('TrackChangesEditing'),_0x1cc431=this['editor']['commands']['get']('blockQuote');_0x259b2b['enableCommand']('blockQuote',(_0x52e19f,_0x414b2e={})=>{const _0x366623=this['editor']['model']['document']['selection'],_0x37eac9=_0x414b2e&&void 0x0!==_0x414b2e['forceValue']?_0x414b2e['forceValue']:!_0x1cc431['value'];let _0x2ec975=[];if(_0x37eac9){const _0x4e7c7b=Array['from'](_0x366623['getSelectedBlocks']())['filter'](_0x3e9367=>oo(_0x3e9367)||function(_0x41bc7e,_0x357001){const _0x531afd=_0x357001['checkChild'](_0x41bc7e['parent'],'blockQuote'),_0x561d4f=_0x357001['checkChild'](['$root','blockQuote'],_0x41bc7e);return _0x531afd&&_0x561d4f;}(_0x3e9367,this['editor']['model']['schema']));_0x2ec975=to(_0x4e7c7b,_0x1ecb3c['model']);}else{const _0x238592=Array['from'](_0x366623['getSelectedBlocks']())['filter'](_0x34a6f2=>oo(_0x34a6f2));_0x2ec975=to(_0x238592,_0x1ecb3c['model']);}_0x1ecb3c['model']['change'](()=>{for(const _0x3e318d of _0x2ec975)_0x259b2b['markBlockFormat'](_0x3e318d,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x37eac9}]});});}),_0x259b2b['descriptionFactory']['registerDescriptionCallback'](_0x4c69cc=>{const {data:_0x165925}=_0x4c69cc;if(_0x165925&&'blockQuote'==_0x165925['commandName']){const _0x5bed3d=c(_0x23f960,'ELEMENT_BLOCK_QUOTE');return _0x165925['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x23f960,'*Set\x20format:*\x20%0',_0x5bed3d)}:{'type':'format','content':c(_0x23f960,'*Remove\x20format:*\x20%0',_0x5bed3d)};}});}}function oo(_0x3ad5c1){return'blockQuote'==_0x3ad5c1['parent']['name'];}class L extends _0x59f721{['afterInit'](){const _0x4eb03b=this['editor'],_0x182ec2=_0x4eb03b['locale'],_0x4ca945=_0x4eb03b['plugins']['get']('TrackChangesEditing');_0x4eb03b['plugins']['has']('BookmarkEditing')&&(_0x4ca945['enableCommand']('insertBookmark'),_0x4ca945['enableDefaultAttributesIntegration']('updateBookmark'),_0x4ca945['registerBlockAttribute']('bookmarkId'),_0x4ca945['descriptionFactory']['registerDescriptionCallback'](_0xb6d01e=>{if('insertion'!=_0xb6d01e['type']&&'deletion'!=_0xb6d01e['type']&&'attribute'!=_0xb6d01e['type'])return;const _0x480923=_0xb6d01e['getContainedElement']();if(null==_0x480923)return;if(!_0x480923['is']('element','bookmark'))return;const _0x4f0ce3=_0x480923['getAttribute']('bookmarkId');if('insertion'==_0xb6d01e['type'])return{'type':'insertion','content':c(_0x182ec2,'*Insert:*\x20%0','\x22'+_0x4f0ce3+'\x22\x20'+c(_0x182ec2,'ELEMENT_BOOKMARK'))};if('deletion'==_0xb6d01e['type'])return{'type':'deletion','content':c(_0x182ec2,'*Remove:*\x20%0','\x22'+_0x4f0ce3+'\x22\x20'+c(_0x182ec2,'ELEMENT_BOOKMARK'))};const {data:_0xca2f6b}=_0xb6d01e;if(!_0xca2f6b||'bookmarkId'!=_0xca2f6b['key'])return;return{'type':'format','content':c(_0x182ec2,'*Set\x20bookmark:*\x20%0','\x22'+_0xca2f6b['newValue']+'\x22')};}));}}class J extends _0x59f721{['afterInit'](){const _0x19604e=this['editor'];_0x19604e['plugins']['has']('CaseChange')&&(_0x19604e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x19604e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x19604e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x59f721{['afterInit'](){const _0x135745=this['editor'];_0x135745['commands']['get']('ckbox')&&_0x135745['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x59f721{['afterInit'](){const _0x38d346=this['editor'];if(!_0x38d346['plugins']['has']('CodeBlock'))return;const _0x568624=_0x38d346['plugins']['get']('TrackChangesEditing'),_0x417f8d=_0x38d346['locale'],_0x48cbe3=_0x38d346['config']['get']('codeBlock')['languages'],_0x1ec803=_0x38d346['commands']['get']('codeBlock');_0x568624['enableCommand']('indentCodeBlock'),_0x568624['enableCommand']('outdentCodeBlock'),_0x568624['enableCommand']('codeBlock',(_0x3f3a13,_0x2ff9c9={})=>{const _0x2a3943=_0x38d346['model'],_0x2bf8fe=_0x38d346['model']['document']['selection'],_0x32d67e=_0x2ff9c9&&void 0x0!==_0x2ff9c9['forceValue']?_0x2ff9c9['forceValue']:!_0x1ec803['value'];let _0xe6e76e;_0x2ff9c9['language']||(_0x2ff9c9['language']=_0x48cbe3[0x0]['language']),_0xe6e76e=_0x32d67e?Array['from'](_0x2bf8fe['getSelectedBlocks']())['filter'](_0x3c90d7=>eo(_0x3c90d7)||function(_0x22f758,_0x4e7869){if(_0x22f758['is']('rootElement')||_0x4e7869['isLimit'](_0x22f758))return!0x1;return _0x4e7869['checkChild'](_0x22f758['parent'],'codeBlock');}(_0x3c90d7,_0x2a3943['schema'])):Array['from'](_0x2bf8fe['getSelectedBlocks']())['filter'](_0x187c51=>eo(_0x187c51));const _0x1f80b7=to(_0xe6e76e,_0x2a3943);_0x2a3943['change'](()=>{for(const _0x3c3252 of _0x1f80b7)_0x568624['markBlockFormat'](_0x3c3252,{'commandName':'codeBlock','commandParams':[{..._0x2ff9c9,'forceValue':_0x32d67e}],'formatGroupId':'blockName'});});}),(_0x568624['descriptionFactory']['registerElementLabel']('codeBlock',_0x1355af=>c(_0x417f8d,'ELEMENT_CODE_BLOCK',_0x1355af)),_0x568624['descriptionFactory']['registerDescriptionCallback'](_0x2839fa=>{if('formatBlock'!=_0x2839fa['type'])return;const _0x186492=_0x417f8d['t'],{data:_0x33d480}=_0x2839fa;if(!_0x33d480||'codeBlock'!=_0x33d480['commandName'])return;const _0xccfb7c=_0x33d480['commandParams'][0x0]['language'],_0x562cdc=_0x186492(_0x48cbe3['find'](_0x44f8eb=>_0x44f8eb['language']===_0xccfb7c)['label'])['toLowerCase']();return _0x33d480['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x417f8d,'*Set\x20format:*\x20%0',c(_0x417f8d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x562cdc+')')}:{'type':'format','content':c(_0x417f8d,'*Remove\x20format:*\x20%0',c(_0x417f8d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xbb958c){return'codeBlock'==_0xbb958c['name'];}class q extends _0x59f721{['afterInit'](){const _0x51268f=this['editor'];if(!_0x51268f['plugins']['has']('CommentsEditing'))return;_0x51268f['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4352f4,_0x1871f9,_0x312a24){const _0x1bc901=[];for(const _0x55ab4f of _0x1871f9['getItems']())_0x55ab4f['hasAttribute'](_0x4352f4)&&_0x1bc901['push'](_0x312a24['createRangeOn'](_0x55ab4f));return _0x1bc901;}function Fe(_0xf925e,_0x5d6534,{showActiveMarker:_0xffd2c0=!0x0}={}){const _0x5c6ad0=_0xf925e['plugins']['get']('TrackChangesEditing');return(_0x3a8d73,_0x18647a,_0x4dbcad)=>{if(!_0x4dbcad['consumable']['test'](_0x18647a['markerRange'],_0x3a8d73['name']))return;const _0x4ea822=_0x18647a['markerRange']['getWalker'](),_0x44acf2=_0x18647a['markerRange']['start'],_0x48b9e8=_0xf925e['model']['schema'];let _0x3cca2d=null,_0x20f2c2=null,_0x393bd2=!0x1,_0x59a13e=!0x1;for(const _0x2e2d60 of _0x4ea822){const _0x550101=_0x2e2d60['item'];_0x393bd2=_0x393bd2||_0x48b9e8['isContent'](_0x550101);const _0x342238=_0x4dbcad['mapper']['toViewElement'](_0x550101);if(_0x342238&&_0x342238['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e2d60['type']&&(_0x48b9e8['isBlock'](_0x550101)&&!_0x48b9e8['isLimit'](_0x550101)&&(_0x550101['nextSibling']||_0x44acf2['isAtEnd']?_0x3cca2d&&_0x3cca2d['parent']==_0x550101||(_0x3cca2d=_0x550101,_0x218cd9(_0x2e2d60['previousPosition']),_0x59a13e=!0x0):_0x20f2c2=_0x20f2c2||_0x2e2d60['previousPosition']));}function _0x218cd9(_0x1b79a6){const {id:_0x495101,authorId:_0x5521db}=_0x5c6ad0['_splitMarkerName'](_0x18647a['markerName']),_0x1e944c=_0x4dbcad['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5d6534,'data-suggestion':_0x495101,'data-author-id':_0x5521db}),_0x345035=_0x4dbcad['mapper']['toViewPosition'](_0x1b79a6);_0xffd2c0&&_0x5c6ad0['activeMarkers']['includes'](_0x18647a['markerName'])&&_0x4dbcad['writer']['addClass']('ck-suggestion-marker--active',_0x1e944c),_0x4dbcad['writer']['insert'](_0x345035,_0x1e944c),_0x4dbcad['mapper']['bindElementToMarker'](_0x1e944c,_0x18647a['markerName']);}_0x393bd2||_0x59a13e||!_0x20f2c2||_0x218cd9(_0x20f2c2);};}class z extends _0x59f721{static get['requires'](){return[_0x23c0b1];}['init'](){const _0x307619=this['editor'],_0x26773e=_0x307619['plugins']['get']('TrackChangesEditing');_0x26773e['enableCommand']('delete');const _0x3c72b6=_0x307619['commands']['get']('deleteForward');_0x26773e['enableCommand']('deleteForward',(_0x49ccdf,_0x594aef={})=>{const _0x2594ee=_0x307619['model']['createSelection'](_0x307619['model']['document']['selection']);_0x2594ee['isCollapsed']&&_0x307619['model']['modifySelection'](_0x2594ee,{'direction':'forward','unit':_0x594aef['unit']});const _0x351a62=_0x2594ee['getFirstRange'](),_0xbc07a5=_0x39b5cf['fromRange'](_0x351a62);let _0x5907d4;_0x49ccdf(_0x594aef),_0x5907d4='$graveyard'==_0xbc07a5['root']['rootName']?_0x307619['model']['createRange'](_0x351a62['start']):_0x307619['model']['createRange'](_0xbc07a5['start'],_0xbc07a5['end']),_0xbc07a5['detach'](),_0x307619['model']['enqueueChange'](_0x3c72b6['buffer']['batch'],_0x3fced1=>{_0x3c72b6['buffer']['lock'](),_0x3fced1['setSelection'](_0x3fced1['createRange'](_0x5907d4['end'])),_0x3c72b6['buffer']['unlock']();});}),_0x307619['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x307619,'merge'),{'priority':'high'}),_0x307619['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x23bac0,_0x20e320,_0x50e89b)=>{_0x50e89b['options']['showSuggestionHighlights']&&Fe(_0x307619,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x23bac0,_0x20e320,_0x50e89b);},{'priority':'high'}),_0x307619['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xba23e9,_0x44dbe7,_0x2fd2f7)=>{const _0x503e7a=_0x2fd2f7['mapper']['markerNameToElements'](_0x44dbe7['markerName']);if(_0x503e7a){for(const _0x2ab185 of _0x503e7a)_0x2ab185['is']('uiElement')&&(_0x2fd2f7['mapper']['unbindElementFromMarkerName'](_0x2ab185,_0x44dbe7['markerName']),_0x2fd2f7['writer']['remove'](_0x2ab185));}},{'priority':'high'});}}class W extends _0x59f721{['afterInit'](){const _0x45a0b1=this['editor'];if(!_0x45a0b1['plugins']['has']('ListEditing'))return;const _0x407fa1=_0x45a0b1['locale'],_0x3132ad=_0x45a0b1['plugins']['get']('TrackChangesEditing'),_0x1e0cf8=_0x45a0b1['plugins']['has']('TodoListEditing'),_0x34032c=!!_0x45a0b1['config']['get']('list.multiBlock');function _0x390975(_0x3e13f7){return{'type':'format','content':''+c(_0x407fa1,'*Set\x20format:*\x20%0',_0x3e13f7)};}function _0x801a15(_0x3bf756){return{'type':'format','content':''+c(_0x407fa1,'*Remove\x20format:*\x20%0',_0x3bf756)};}_0x3132ad['enableDefaultAttributesIntegration']('numberedList'),_0x3132ad['enableDefaultAttributesIntegration']('bulletedList'),_0x3132ad['enableDefaultAttributesIntegration']('customNumberedList'),_0x3132ad['enableDefaultAttributesIntegration']('customBulletedList'),_0x3132ad['enableDefaultAttributesIntegration']('indentList'),_0x3132ad['enableDefaultAttributesIntegration']('outdentList'),_0x3132ad['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3132ad['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3132ad['registerBlockAttribute']('listItemId'),_0x3132ad['registerBlockAttribute']('listType'),_0x3132ad['registerBlockAttribute']('listIndent'),_0x34032c&&(_0x3132ad['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3132ad['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1e0cf8&&(_0x3132ad['enableDefaultAttributesIntegration']('todoList'),_0x3132ad['enableDefaultAttributesIntegration']('checkTodoList'),_0x3132ad['registerBlockAttribute']('todoListChecked'),_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x165e8b=>{const {data:_0x45d0a8}=_0x165e8b;if(_0x45d0a8&&'todoListChecked'==_0x45d0a8['key'])return{'type':'format','content':_0x45d0a8['newValue']?c(_0x407fa1,'*Check\x20item*'):c(_0x407fa1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x19891e=>{if(_0x19891e['batch']['isUndo'])return!0x1;let _0x1edb6d=!0x1;const _0x56dc72=_0x3132ad['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x353c48=>'todoListChecked'===_0x3132ad['_getAttributeKey'](_0x353c48));for(const _0x425e55 of _0x56dc72){'todo'!=_0x425e55['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3132ad['_findSuggestions'](_0x425e55['getFirstRange'](),'attribute')['find'](_0x291135=>'listType'===_0x3132ad['_getAttributeKey'](_0x291135['suggestion']))||(_0x19891e['removeMarker'](_0x425e55['getFirstMarker']()),_0x1edb6d=!0x0));}return _0x1edb6d;})),_0x3132ad['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x407fa1,'FORMAT_INDENT'));const _0x4c3e5f={'type':'format','content':''};_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x2843df=>{const {data:_0x2427dc}=_0x2843df;if(!_0x2427dc||'listType'!=_0x2427dc['key'])return;let _0x21754b=_0x2843df['head'];for(;_0x21754b;){if(_0x21754b['data']&&(('listStyle'==_0x21754b['data']['key']||'listMarkerStyle'==_0x21754b['data']['key'])&&(_0x21754b['data']['newValue']&&'default'!=_0x21754b['data']['newValue']||'default'!=_0x21754b['data']['oldValue']&&!_0x2427dc['newValue'])||!_0x34032c&&_0x21754b['data']['key']==u))return _0x4c3e5f;_0x21754b=_0x21754b['next'];}if(null==_0x2427dc['newValue'])switch(_0x2427dc['oldValue']){case'bulleted':return _0x801a15(c(_0x407fa1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x801a15(c(_0x407fa1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x801a15(c(_0x407fa1,'ELEMENT_TODO_LIST'));}switch(_0x2427dc['newValue']){case'bulleted':return _0x390975(c(_0x407fa1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x390975(c(_0x407fa1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x390975(c(_0x407fa1,'ELEMENT_TODO_LIST'));}}),_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x35da46=>{const {data:_0x1205b1}=_0x35da46;if(_0x1205b1&&'listIndent'==_0x1205b1['key'])return null==_0x1205b1['newValue']||null==_0x1205b1['oldValue']&&0x0==_0x1205b1['newValue']?_0x4c3e5f:void 0x0;}),_0x3132ad['descriptionFactory']['registerDescriptionCallback'](_0x2123e2=>{if('attribute'!=_0x2123e2['type'])return;const {data:_0x219e4c}=_0x2123e2;if(!_0x219e4c||'listItemId'!=_0x219e4c['key'])return;const _0x49ff2a=Te(_0x2123e2);return'newValue'==_0x49ff2a?{'type':'format','content':c(_0x407fa1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x49ff2a?{'type':'format','content':c(_0x407fa1,'*Split:*\x20list\x20item')}:_0x4c3e5f;}),_0x45a0b1['model']['document']['registerPostFixer'](_0x4d5b5f=>this['listItemIdFixer'](_0x4d5b5f)),_0x45a0b1['model']['document']['registerPostFixer'](_0x37e48d=>this['noTrackChangesFixer'](_0x37e48d)),_0x45a0b1['model']['document']['on']('change:data',(_0x424123,_0x135e29)=>{if(_0x135e29['isUndo']||!_0x135e29['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xf65404){if(_0xf65404['batch']['isUndo']||!_0xf65404['batch']['isLocal'])return!0x1;let _0x55f007=!0x1;const _0x310c23=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x233ee7=>_0x233ee7['data']&&'listItemId'==_0x233ee7['data']['key'])['filter'](_0x4a4a72=>_0x4a4a72['data']['newValue']&&_0x4a4a72['data']['oldValue']);for(const _0x692eeb of _0x310c23)Te(_0x692eeb)||(_0xf65404['removeMarker'](_0x692eeb['getFirstMarker']()),_0x55f007=!0x0);return _0x55f007;}['noTrackChangesFixer'](_0x28e4cf){if(_0x28e4cf['batch']['isUndo']||!_0x28e4cf['batch']['isLocal'])return!0x1;const _0x232c51=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x232c51['trackChangesCommand']['value'])return!0x1;let _0x5c4768=!0x1;const _0x138130=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x50f7f6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x197a6c=>'attribute'==_0x197a6c['type'])['filter'](_0x2a88a7=>_0x138130['includes'](_0x2a88a7['attributeKey']));if(0x0==_0x50f7f6['length'])return _0x5c4768;for(const _0x4a53dd of _0x50f7f6){const _0x3a49b0=_0x232c51['_findSuggestions'](_0x4a53dd['range'],'attribute')['filter'](_0x31df32=>!_0x31df32['meta']['isNextTo'])['map'](_0x56b079=>_0x56b079['suggestion'])['filter'](_0x3aef14=>{const _0x1c8761=_0x232c51['_getAttributeKey'](_0x3aef14);return _0x138130['includes'](_0x1c8761);});if(_0x3a49b0['length']){for(const _0x4b2038 of _0x3a49b0)_0x28e4cf['removeMarker'](_0x4b2038['getFirstMarker']());_0x5c4768=!0x0;}}return _0x5c4768;}['assureChains'](){const _0xcf3465=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30dca5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2c0ace;const _0x38bfed=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x59d069=>{if(_0x59d069['data']['oldRange']||!_0x59d069['data']['newRange'])return null;if(!_0x59d069['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x36fb8f}=_0xcf3465['_splitMarkerName'](_0x59d069['name']);if(!_0xcf3465['hasSuggestion'](_0x36fb8f))return null;const _0x507f4e=_0xcf3465['getSuggestion'](_0x36fb8f);return _0x30dca5['includes'](_0x507f4e['data']['key']);})['map'](_0xd4c9fb=>{const {id:_0xc6dedc}=_0xcf3465['_splitMarkerName'](_0xd4c9fb['name']),_0x3ab8dd=_0xcf3465['getSuggestion'](_0xc6dedc);return _0x2c0ace=_0x3ab8dd['attributes']['groupId'],_0x3ab8dd['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x38bfed['size'])return;const _0x47b4a0=_0xcf3465['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x33136f=>'attribute'==_0x33136f['type']&&_0x33136f['data']&&_0x30dca5['includes'](_0x33136f['data']['key'])&&_0x33136f['attributes']['groupId']!=_0x2c0ace)['map'](_0x7d6338=>({'listItem':_0x7d6338['getFirstRange']()['start']['nodeAfter'],'groupId':_0x7d6338['attributes']['groupId']})),_0x38579c=new Set();for(const {groupId:_0x504ab2,listItem:_0x4ba9f3}of _0x47b4a0)_0x38bfed['has'](_0x4ba9f3)&&_0x38579c['add'](_0x504ab2);for(const _0xefbd8e of _0xcf3465['getSuggestions']())_0x38579c['has'](_0xefbd8e['attributes']['groupId'])&&_0xefbd8e['setAttribute']('groupId',_0x2c0ace);}['_supportLegacySuggestions'](){const _0x338005=this['editor'],_0x3057fd=_0x338005['locale'],_0x54cebb=_0x338005['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x54cebb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x6434dc,_0x28e2e3){const _0x30e3d0=[];for(let _0x577344 of _0x6434dc)_0x577344['start']['nodeAfter']===_0x577344['end']['parent']&&(_0x577344=_0x338005['model']['createRange'](_0x338005['model']['createPositionAt'](_0x577344['start']['nodeAfter'],0x0))),_0x30e3d0['push'](_0x577344);_0x338005['model']['change'](_0x5a7c9f=>{const _0x4073cf=_0x338005['model']['document']['selection'],_0x370211=Array['from'](_0x4073cf['getRanges']())['map'](_0x153121=>_0x39b5cf['fromRange'](_0x153121));_0x5a7c9f['setSelection'](_0x30e3d0),_0x338005['commands']['get'](_0x28e2e3['commandName'])['refresh'](),_0x28e2e3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x338005['execute'](_0x28e2e3['commandName'],..._0x28e2e3['commandParams']),_0x5a7c9f['setSelection'](_0x370211);for(const _0x5c48cc of _0x370211)_0x5c48cc['detach']();});}),_0x54cebb['descriptionFactory']['registerElementLabel'](function(_0x3593a7){const _0x351d13=!_0x338005['model']['schema']['isObject'](_0x3593a7),_0x3fb9a1=_0x3593a7['previousSibling'],_0x503038=_0x3593a7['nextSibling'],_0x5f2e16=_0x3593a7['getAttribute']('listItemId'),_0x52bcc0=!_0x3fb9a1||_0x3fb9a1['getAttribute']('listItemId')!==_0x5f2e16,_0x16268f=!_0x503038||_0x503038['getAttribute']('listItemId')!==_0x5f2e16;return _0x351d13&&Boolean(_0x5f2e16)&&_0x52bcc0&&_0x16268f;},_0x5cf4bf=>c(_0x3057fd,'ELEMENT_LIST_ITEM',_0x5cf4bf));}['_registerLegacyDescription'](){const _0x26654e=this['editor'],_0x13a465=_0x26654e['locale'];function _0x18548e(_0x4187ac){const _0x2b0e74=_0x26654e['commands']['get']('bulletedList')['value'],_0x5a61f1=_0x26654e['commands']['get']('numberedList')['value'];return'numberedList'===_0x4187ac?_0x2b0e74:_0x5a61f1;}_0x26654e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x45adb6){if('formatBlock'!=_0x45adb6['type'])return;const {data:_0x38f681}=_0x45adb6;if(!_0x38f681)return;let _0x1d3df0,_0x1f3e7a,_0x5cf268,_0x4355ea;switch(_0x38f681['commandName']){case'bulletedList':_0x5cf268=_0x38f681['commandParams'][0x0]['forceValue'],_0x4355ea=_0x18548e(_0x38f681['commandName']),_0x1d3df0=_0x5cf268?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4355ea&&_0x26654e['config']['get']('list.multiBlock')||(_0x1d3df0='*Change\x20to:*\x20%0'),_0x1f3e7a={'type':'format','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5cf268=_0x38f681['commandParams'][0x0]['forceValue'],_0x4355ea=_0x18548e(_0x38f681['commandName']),_0x1d3df0=_0x5cf268?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4355ea&&_0x26654e['config']['get']('list.multiBlock')||(_0x1d3df0='*Change\x20to:*\x20%0'),_0x1f3e7a={'type':'format','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1d3df0='*Indent:*\x20%0',_0x1f3e7a={'type':'format','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1d3df0=function(_0x4b62c8){const _0x2aa491=_0x4b62c8['getFirstRange']();let _0xf895ab=_0x2aa491['start']['nodeAfter'];for(;_0xf895ab&&_0x2aa491['containsItem'](_0xf895ab);){if(_0xf895ab['getAttribute']('listIndent')>0x0)return!0x1;_0xf895ab=_0xf895ab['nextSibling'];}return!0x0;}(_0x45adb6)?c(_0x13a465,'*Format:*\x20remove\x20from\x20%0',c(_0x13a465,function(_0x5138c5){return'ELEMENT_'+_0x5138c5['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x45adb6))):c(_0x13a465,'*Outdent:*\x20%0',c(_0x13a465,'ELEMENT_LIST_ITEM')),_0x1f3e7a={'type':'format','content':_0x1d3df0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x38f681['multipleBlocks']&&(_0x1d3df0='*Merge:*\x20%0',_0x1f3e7a={'type':'deletion','content':c(_0x13a465,_0x1d3df0,c(_0x13a465,'ELEMENT_LIST_ITEM'))});}return _0x1f3e7a;});}}function Te(_0x3861d9){let _0xc76f78=_0x3861d9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xc76f78;){const _0x5a6755=_0xc76f78['getAttribute']('listItemId');if(!_0x5a6755)return!0x1;if(_0x5a6755==_0x3861d9['data']['newValue'])return'newValue';if(_0x5a6755==_0x3861d9['data']['oldValue'])return'oldValue';_0xc76f78=_0xc76f78['previousSibling'];}return!0x1;}class Se extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x28ac9f=this['editor']['config']['get']('list.properties'),_0x4fed93=this['editor']['plugins']['get']('TrackChangesEditing');_0x28ac9f['styles']&&(_0x4fed93['enableDefaultAttributesIntegration']('listStyle'),_0x4fed93['registerBlockAttribute']('listStyle')),_0x28ac9f['reversed']&&(_0x4fed93['enableDefaultAttributesIntegration']('listReversed'),_0x4fed93['registerBlockAttribute']('listReversed')),_0x28ac9f['startIndex']&&(_0x4fed93['enableDefaultAttributesIntegration']('listStart'),_0x4fed93['registerBlockAttribute']('listStart'));const _0x5ba36a={'type':'format','content':''};_0x4fed93['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3e4a8b=this['editor']['locale'];_0x4fed93['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3e4a8b,'FORMAT_LIST_REVERSED')),_0x4fed93['descriptionFactory']['registerDescriptionCallback'](_0x452388=>{const {data:_0x286b4f}=_0x452388;if(_0x286b4f&&'listReversed'==_0x286b4f['key'])return null==_0x286b4f['newValue']||0x0==_0x286b4f['newValue']&&null==_0x286b4f['oldValue']?_0x5ba36a:void 0x0;}),_0x4fed93['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3e4a8b,'FORMAT_LIST_START')),_0x4fed93['descriptionFactory']['registerDescriptionCallback'](_0x4b885e=>{const {data:_0x93867a}=_0x4b885e;if(_0x93867a&&'listStart'==_0x93867a['key'])return null==_0x93867a['newValue']||0x1==_0x93867a['newValue']&&null==_0x93867a['oldValue']?_0x5ba36a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1fe5c7=>{if(_0x1fe5c7['batch']['isUndo'])return!0x1;let _0x537a9e=!0x1;const _0x523ef7=_0x4fed93['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a7a3e=>{const _0x399dc7=_0x4fed93['_getAttributeKey'](_0x5a7a3e);return'listStart'==_0x399dc7||'listReversed'==_0x399dc7;});for(const _0x301824 of _0x523ef7){const _0x646516=_0x301824['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x646516||'customNumbered'==_0x646516)continue;_0x4fed93['_findSuggestions'](_0x301824['getFirstRange'](),'attribute')['find'](_0x275b54=>'listType'==_0x4fed93['_getAttributeKey'](_0x275b54['suggestion']))||(_0x1fe5c7['removeMarker'](_0x301824['getFirstMarker']()),_0x537a9e=!0x0);}return _0x537a9e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2b89a3){const _0x20ebe2=this['editor']['locale'],{data:_0xf31363}=_0x2b89a3,_0x225730={'type':'format','content':''};if(!_0xf31363||'listStyle'!=_0xf31363['key'])return;if(!_0xf31363['oldValue'])return'default'==_0xf31363['newValue']?_0x225730:{'type':'format','content':''+c(_0x20ebe2,'*Set\x20format:*\x20%0',c(_0x20ebe2,this['_getTranslationKeyForListStyle'](_0xf31363['newValue'])))};if(!_0xf31363['newValue']){if('default'==_0xf31363['oldValue'])return _0x225730;let _0x1127eb=_0x2b89a3['head'];for(;_0x1127eb;){if(_0x1127eb['data']&&'listType'==_0x1127eb['data']['key']&&_0x1127eb['data']['newValue'])return _0x225730;_0x1127eb=_0x1127eb['next'];}return{'type':'format','content':''+c(_0x20ebe2,'*Remove\x20format:*\x20%0',c(_0x20ebe2,this['_getTranslationKeyForListStyle'](_0xf31363['oldValue'])))};}if('default'!=_0xf31363['newValue'])return{'type':'format','content':''+c(_0x20ebe2,'*Set\x20format:*\x20%0',c(_0x20ebe2,this['_getTranslationKeyForListStyle'](_0xf31363['newValue'])))};let _0x7f0ed5=_0x2b89a3['head'];for(;_0x7f0ed5;){if(_0x7f0ed5['data']&&'listType'==_0x7f0ed5['data']['key']&&_0x7f0ed5['data']['newValue']&&_0x7f0ed5['data']['oldValue'])return _0x225730;_0x7f0ed5=_0x7f0ed5['next'];}return{'type':'format','content':c(_0x20ebe2,'*Set\x20format:*\x20%0',c(_0x20ebe2,'ELEMENT_'+_0x2b89a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1c90bd=this['editor'],_0x6a14ca=_0x1c90bd['locale'];_0x1c90bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ddf91=>{if('formatBlock'!=_0x2ddf91['type'])return;const {data:_0x332285}=_0x2ddf91;if(!_0x332285)return;let _0x3cd01a,_0x49c733;switch(_0x332285['commandName']){case'listStyle':_0x3cd01a='*Change\x20to:*\x20%0',_0x49c733={'type':'format','content':c(_0x6a14ca,_0x3cd01a,c(_0x6a14ca,this['_getTranslationKeyForListStyle'](_0x332285['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3cd01a=_0x332285['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x49c733={'type':'format','content':c(_0x6a14ca,_0x3cd01a)};break;case'listStart':_0x3cd01a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x49c733={'type':'format','content':c(_0x6a14ca,_0x3cd01a,_0x332285['commandParams'][0x0]['startIndex'])};}return _0x49c733;});}['_getTranslationKeyForListStyle'](_0x454207){return'ELEMENT_'+function(_0x4452f8){if(_e['includes'](_0x4452f8))return'bulleted';if(Re['includes'](_0x4452f8))return'numbered';return null;}(_0x454207)['toUpperCase']()+'_LIST_'+_0x454207['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x59f721{['afterInit'](){const _0x235deb=this['editor'];_0x235deb['commands']['get']('emoji')&&_0x235deb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x59f721{static get['requires'](){return[_0x783952];}['init'](){const _0x2bc699=this['editor'],_0x31dcb3=_0x2bc699['plugins']['get']('TrackChangesEditing'),_0x327031=_0x2bc699['commands']['get']('enter');_0x31dcb3['enableCommand']('enter',()=>{_0x2bc699['model']['change'](_0x415fbb=>{const _0x114b13=_0x2bc699['model']['document']['selection'],_0x3fe916=_0x114b13['getFirstPosition'](),_0xb066e3=_0x39b5cf['fromRange'](_0x114b13['getFirstRange']());if(_0x327031['enterBlock'](_0x415fbb)){const _0x4dc52a=_0x2bc699['model']['createPositionAt'](_0x3fe916['parent']['nextSibling'],0x0),_0xf088b7=_0x415fbb['createRange'](_0x3fe916,_0x4dc52a);_0x31dcb3['markInsertion'](_0xf088b7);}else _0x415fbb['setSelection'](_0x415fbb['createRange'](_0xb066e3['end']));_0xb066e3['detach'](),_0x327031['fire']('afterExecute',{'writer':_0x415fbb});});}),_0x2bc699['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x2bc699,'split'),{'priority':'high'}),_0x2bc699['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3497e1,_0x17bc6a,_0x27dd13)=>{const _0x5218a0=_0x27dd13['mapper']['markerNameToElements'](_0x17bc6a['markerName']);if(_0x5218a0){for(const _0x202bc7 of _0x5218a0)_0x202bc7['hasClass']('ck-suggestion-marker-split')&&(_0x27dd13['mapper']['unbindElementFromMarkerName'](_0x202bc7,_0x17bc6a['markerName']),_0x27dd13['writer']['remove'](_0x202bc7));}},{'priority':'high'}),_0x2bc699['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5d2ab0,_0x7667d,_0x4fc4c9)=>{_0x4fc4c9['options']['showSuggestionHighlights']&&Fe(_0x2bc699,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5d2ab0,_0x7667d,_0x4fc4c9);},{'priority':'high'});}}class Z extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5713f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5713f8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5713f8['enableCommand']('findNext'),_0x5713f8['enableCommand']('findPrevious'),_0x5713f8['enableCommand']('replace'),_0x5713f8['enableCommand']('replaceAll');}['handleFindCommand'](_0x15b8f5,_0x1b4946,_0x4a9cc8={}){const _0x514476=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x15b8f5(_0x185fca=>{let _0x19dddb=('string'==typeof _0x1b4946?_0x514476['findByTextCallback'](_0x1b4946,_0x4a9cc8):_0x1b4946)(_0x185fca);Array['isArray'](_0x19dddb)&&(_0x19dddb={'results':_0x19dddb,'searchText':'string'==typeof _0x1b4946?_0x1b4946:''});const _0x5ac055=_0x19dddb['results']['filter'](_0x5164b0=>!0x1===this['_isInDeletionRange'](_0x5164b0,_0x185fca['item']));return{..._0x19dddb,'results':_0x5ac055};},_0x4a9cc8);}['_isInDeletionRange'](_0x90091b,_0x1708dc){const _0x5de0c7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1708dc,_0x90091b['start']),this['editor']['model']['createPositionAt'](_0x1708dc,_0x90091b['end']));for(const _0x3144ae of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5de0c7['getIntersection'](_0x3144ae['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x59f721{['afterInit'](){const _0x10f445=this['editor']['locale'],_0x5eb8c7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x55ea37,commandName:_0x50038f}of ro)this['editor']['plugins']['has'](_0x55ea37)&&(_0x5eb8c7['enableDefaultAttributesIntegration'](_0x50038f),_0x5eb8c7['registerInlineAttribute'](_0x50038f));_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x10f445,'FORMAT_FONT_SIZE')),_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x10f445,'FORMAT_FONT_FAMILY')),_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x10f445,'FORMAT_FONT_COLOR')),_0x5eb8c7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x10f445,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36dacf=this['editor'],_0x2771bf=_0x36dacf['locale'];_0x36dacf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf595d=>{const _0xf086a6=_0x2771bf['t'];if('formatInline'!=_0xf595d['type'])return;const {data:_0x3fa51c}=_0xf595d;if(null!=_0x3fa51c){if('fontSize'==_0x3fa51c['commandName']){const _0x13df48=_0x3fa51c['commandParams'][0x0]['value'];if(_0x13df48){const _0x4db9a9=_0xf086a6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x56c2ec=>_0x56c2ec['model']==_0x13df48)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20size:*\x20%0',_0x4db9a9)};}return{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3fa51c['commandName']){const _0x3b2347=_0x3fa51c['commandParams'][0x0]['value'];return _0x3b2347?{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20family:*\x20%0',_0x3b2347)}:{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3fa51c['commandName']){const _0x701419=_0x3fa51c['commandParams'][0x0]['value'];if(_0x701419){const _0x502c6b=_0x1a330b(this['editor']['config']['get']('fontColor.colors'))['find'](_0x120477=>_0x120477['model']==_0x701419);let _0x7e52f5=_0x701419,_0x2d3248='';return _0x502c6b&&(_0x7e52f5=_0x502c6b['label'],_0x2d3248=_0xf086a6(_0x7e52f5)['toLowerCase']()),{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20color:*\x20%0',_0x2d3248)['trim'](),'color':{'value':_0x701419,'title':_0x2d3248||_0x7e52f5}};}return{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3fa51c['commandName']){const _0x4499fb=_0x3fa51c['commandParams'][0x0]['value'];if(_0x4499fb){const _0x97e74a=_0x1a330b(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2ba501=>_0x2ba501['model']==_0x4499fb);let _0x4a0883=_0x4499fb,_0x3a840b='';return _0x97e74a&&(_0x4a0883=_0x97e74a['label'],_0x3a840b=_0xf086a6(_0x4a0883)['toLowerCase']()),{'type':'format','content':c(_0x2771bf,'*Set\x20font\x20background\x20color:*\x20%0',_0x3a840b)['trim'](),'color':{'value':_0x4499fb,'title':_0x3a840b||_0x4a0883}};}return{'type':'format','content':c(_0x2771bf,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x59f721{['afterInit'](){const _0x30677c=this['editor'],_0xd13b7f=_0x30677c['plugins']['get']('TrackChangesEditing'),_0x34c7ae=_0x30677c['commands']['get']('copyFormat'),_0xf7eb51=_0x30677c['commands']['get']('pasteFormat');_0x34c7ae&&_0xf7eb51&&(_0xd13b7f['enableDefaultAttributesIntegration']('pasteFormat'),_0xd13b7f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x22ff08=this['editor'],_0x33af43=_0x22ff08['locale'];_0x22ff08['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d8260=>{if('formatBlock'!=_0x1d8260['type']&&'formatInline'!=_0x1d8260['type'])return;const {data:_0x58be79}=_0x1d8260;if(_0x58be79&&'pasteFormat'===_0x58be79['commandName']){const _0x58abe7=[],_0x6418b4=_0x58be79['commandParams'][0x0];for(const [_0x178086,_0x4ec784]of Object['entries'](_0x6418b4))_0x58abe7['push'](so(_0x22ff08,_0x178086,_0x4ec784));return _0x58abe7['length']?{'type':'format','content':c(_0x33af43,'*Set\x20format\x20to:*\x20%0',_0x58abe7['join'](',\x20'))}:{'type':'format','content':c(_0x33af43,'*Remove\x20all\x20formatting*')};}});}}function so(_0x139675,_0xb132a6,_0x2bdfdd){const _0x580a71=_0x139675['locale']['t'],_0x3e194c=_0xb132a6['split'](/(?=[A-Z])/)['join']('\x20'),_0x1ea0c4=_0x580a71(_0x3e194c['charAt'](0x0)['toUpperCase']()+_0x3e194c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2bdfdd)return _0x1ea0c4;if('fontColor'===_0xb132a6||'fontBackgroundColor'===_0xb132a6){const _0x202f59=_0x1a330b(_0x139675['config']['get']('fontColor.colors'))['find'](_0x478c0c=>_0x478c0c['model']==_0x2bdfdd);return _0x1ea0c4+'\x20('+(_0x202f59?_0x580a71(_0x202f59['label'])['toLowerCase']():_0x2bdfdd)+')';}if('fontSize'===_0xb132a6&&isNaN(parseFloat(_0x2bdfdd))){const _0x38cd73=_0x139675['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x139675['config']['get']('fontSize.options'))['find'](_0x5f4b84=>_0x5f4b84['model']==_0x2bdfdd);return _0x1ea0c4+'\x20('+(_0x38cd73?_0x580a71(_0x38cd73['title'])['toLowerCase']():_0x2bdfdd)+')';}return _0x1ea0c4+'\x20('+_0x2bdfdd+')';}class et extends _0x59f721{['_headingOptions'];['afterInit'](){const _0x2677e2=this['editor'];if(!_0x2677e2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x2677e2['config']['get']('heading.options');const _0x4f5878=_0x2677e2['locale'],_0x354f85=_0x2677e2['plugins']['get']('TrackChangesEditing');_0x354f85['enableDefaultAttributesIntegration']('heading');for(const _0x35ba4b of this['_headingOptions'])'paragraph'!=_0x35ba4b['model']&&_0x354f85['descriptionFactory']['registerElementLabel'](_0x35ba4b['model'],_0x27a012=>{const _0x28adc5=this['_getHeadingLevel'](_0x35ba4b['model']);return null!==_0x28adc5?_0x23ec40(_0x27a012,_0x28adc5):_0x2fec83(_0x27a012,_0x35ba4b['title']);});function _0x23ec40(_0x514a8a,_0xb03c79){return c(_0x4f5878,'ELEMENT_HEADING',[_0x514a8a,_0xb03c79]);}function _0x2fec83(_0x24eb0b,_0x5c5ef2){return c(_0x4f5878,'ELEMENT_HEADING_CUSTOM',[_0x24eb0b,_0x5c5ef2]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532b92=this['editor'],_0x23b06a=_0x532b92['locale'];function _0x230a8e(_0x4772da,_0xcfb687){return c(_0x23b06a,'ELEMENT_HEADING_CUSTOM',[_0x4772da,_0xcfb687]);}_0x532b92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4f42ac=>{if('formatBlock'!=_0x4f42ac['type'])return;const {data:_0x265354}=_0x4f42ac;if(_0x265354&&'heading'==_0x265354['commandName']){const _0xcaf1ec=_0x265354['commandParams'][0x0]['value'],_0x398e57=this['_getHeadingLevel'](_0xcaf1ec);if(null!==_0x398e57)return{'type':'format','content':c(_0x23b06a,'*Change\x20to:*\x20%0',(_0x1b2cd9=0x1,_0x5c20f5=_0x398e57,c(_0x23b06a,'ELEMENT_HEADING',[_0x1b2cd9,_0x5c20f5])))};const _0x33be83=this['_headingOptions']['find'](_0x1cb0d4=>_0x1cb0d4['model']===_0xcaf1ec)['title'];return{'type':'format','content':c(_0x23b06a,'*Change\x20to:*\x20%0',_0x230a8e(0x1,_0x33be83))};}var _0x1b2cd9,_0x5c20f5;});}['_getHeadingLevel'](_0x164605){const _0x218fba=_0x164605['match'](/^heading(\d+)/);if(_0x218fba)return _0x218fba[0x1];const _0x281c97=this['_headingOptions']?.['find'](_0x14abca=>_0x14abca['model']==_0x164605);if(_0x281c97&&_0x281c97['view']){const _0x1f5320=_0x281c97['view'],_0x3354e4=(_0x1f5320['name']??_0x1f5320)['match'](/^h(\d+)/);if(_0x3354e4)return _0x3354e4[0x1];}return null;}}class nt extends _0x59f721{['afterInit'](){const _0x3ee703=this['editor'];if(!_0x3ee703['plugins']['has']('HighlightEditing'))return;const _0x54f928=_0x3ee703['plugins']['get']('TrackChangesEditing'),_0x11ffb4=_0x3ee703['locale'];_0x54f928['enableDefaultAttributesIntegration']('highlight'),_0x54f928['registerInlineAttribute']('highlight'),_0x54f928['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x11ffb4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x256516=this['editor'],_0x35a23b=_0x256516['locale'];_0x256516['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ede8f=>{if('formatInline'!=_0x4ede8f['type'])return;const {data:_0x516b01}=_0x4ede8f;if(_0x516b01&&'highlight'==_0x516b01['commandName']){const _0x56036a=_0x35a23b['t'],_0x3a3307=_0x516b01['commandParams'][0x0]['value'];if(_0x3a3307){const _0x189ee1=_0x256516['config']['get']('highlight.options')['find'](_0x30ae21=>_0x30ae21['model']==_0x3a3307),_0x1c811f=_0x56036a(_0x189ee1['title'])['toLowerCase']();return{'type':'format','content':c(_0x35a23b,'*Set\x20highlight:*\x20%0',_0x1c811f),'color':{'value':_0x189ee1['color'],'title':_0x189ee1['title']}};}return{'type':'format','content':c(_0x35a23b,'*Remove\x20highlight*',c(_0x35a23b,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x59f721{['afterInit'](){const _0x135ee7=this['editor'];if(!_0x135ee7['plugins']['has']('HorizontalLineEditing'))return;_0x135ee7['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x42aaeb=_0x135ee7['plugins']['get']('TrackChangesEditing'),_0x368bc6=_0x135ee7['locale'];_0x42aaeb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x52f971=>c(_0x368bc6,'ELEMENT_HORIZONTAL_LINE',_0x52f971)),_0x135ee7['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2a4c61,{writer:_0x42e0b3,options:_0x267799})=>{if(!_0x267799['showSuggestionHighlights'])return null;const _0x5409f8=_0x42e0b3['createContainerElement']('div'),_0x4b3ba1=_0x42e0b3['createEmptyElement']('hr');return _0x42e0b3['addClass']('ck-horizontal-line',_0x5409f8),_0x42e0b3['insert'](_0x42e0b3['createPositionAt'](_0x5409f8,0x0),_0x4b3ba1),_0x5409f8;},'converterPriority':'high'});}}class ot extends _0x59f721{['afterInit'](){const _0x4f9c64=this['editor'];if(!_0x4f9c64['plugins']['has']('HtmlEmbed'))return;const _0x4e90f3=_0x4f9c64['plugins']['get']('TrackChangesEditing'),_0xb06dc8=_0x4f9c64['locale'];_0x4e90f3['descriptionFactory']['registerElementLabel']('rawHtml',_0x582433=>c(_0xb06dc8,'ELEMENT_HTML_EMBED',_0x582433)),_0x4e90f3['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4e90f3['registerBlockAttribute']('value'),_0x4e90f3['descriptionFactory']['registerDescriptionCallback'](_0x25d988=>{if('attribute'!=_0x25d988['type'])return;const {data:_0x5f1f46}=_0x25d988;if(_0x5f1f46&&'value'==_0x5f1f46['key']&&_0x25d988['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5f2863=c(_0xb06dc8,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0xb06dc8,'*Change\x20%0\x20content*',_0x5f2863)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a4b93=this['editor'],_0x39e3ca=_0x4a4b93['locale'];_0x4a4b93['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1363=>{if('formatBlock'!=_0x4a1363['type'])return;const {data:_0x502eb4}=_0x4a1363;if(_0x502eb4&&'htmlEmbed'==_0x502eb4['commandName']){const _0xe9efaf=c(_0x39e3ca,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x39e3ca,'*Change\x20%0\x20content*',_0xe9efaf)};}});}}class rt extends _0x59f721{['afterInit'](){const _0x4210ab=this['editor'];if(!_0x4210ab['plugins']['has']('ImageEditing'))return;const _0x467b61=_0x4210ab['plugins']['get']('TrackChangesEditing'),_0x3e7812=_0x4210ab['plugins']['get']('ImageUtils'),_0x4c0c9a=_0x4210ab['locale'];_0x467b61['enableCommand']('insertImage'),_0x467b61['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a5758=>c(_0x4c0c9a,'ELEMENT_IMAGE',_0x4a5758)),_0x467b61['descriptionFactory']['registerElementLabel']('imageInline',_0x5af181=>c(_0x4c0c9a,'ELEMENT_INLINE_IMAGE',_0x5af181)),_0x467b61['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x4c0c9a,'ELEMENT_CAPTION')),_0x4210ab['plugins']['has']('ImageUploadEditing')&&_0x467b61['enableCommand']('uploadImage'),_0x4210ab['plugins']['has']('ImageBlockEditing')&&_0x4210ab['plugins']['has']('ImageInlineEditing')&&(_0x467b61['enableCommand']('imageTypeInline',(_0x34a5a8,_0x236cf7)=>{const _0x332817=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']);_0x4210ab['model']['change'](()=>{_0x467b61['markBlockFormat'](_0x332817,{'commandName':'imageTypeInline','commandParams':[_0x236cf7]},[],'convertBlockImageToInline');});}),_0x467b61['enableCommand']('imageTypeBlock',(_0x3b9b95,_0x3675ce)=>{_0x4210ab['model']['change'](_0x4ab643=>{let _0x3d63e5=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x4c05aa=_0x4ab643['createRangeOn'](_0x3d63e5);const _0x304f10=_0x3416fa['fromPosition'](_0x4c05aa['start'],'toPrevious'),_0x43bcba=_0x3416fa['fromPosition'](_0x4c05aa['end'],'toNext');_0x467b61['forceDefaultExecution'](()=>_0x3b9b95(_0x3675ce)),_0x3d63e5=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x4c05aa=_0x4ab643['createRangeOn'](_0x3d63e5);const _0x14f405=_0x4ab643['createRange'](_0x304f10,_0x43bcba);_0x304f10['detach'](),_0x43bcba['detach'](),_0x467b61['markBlockFormat'](_0x3d63e5,{'commandName':'imageTypeInline','commandParams':[_0x3675ce]},[],'convertInlineImageToBlock'),_0x14f405['start']['isBefore'](_0x4c05aa['start'])&&_0x467b61['markInsertion'](_0x4ab643['createRange'](_0x14f405['start'],_0x4c05aa['start']),'convertInlineImageToBlock'),_0x4c05aa['end']['isBefore'](_0x14f405['end'])&&_0x467b61['markInsertion'](_0x4ab643['createRange'](_0x4c05aa['end'],_0x14f405['end']),'convertInlineImageToBlock');});}),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x467b61['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x398b14])=>{const _0x59a086=_0x467b61['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4f442e=_0x398b14['start'],_0x33f314=_0x398b14['end'];const _0x56a6ec=_0x4210ab['model']['schema']['getNearestSelectionRange'](_0x4f442e,'backward'),_0x45492f=_0x4210ab['model']['schema']['getNearestSelectionRange'](_0x33f314,'forward');_0x56a6ec['isCollapsed']&&(_0x4f442e=_0x56a6ec['start']),_0x45492f['isCollapsed']&&(_0x33f314=_0x45492f['end']),_0x59a086([_0x4210ab['model']['createRange'](_0x4f442e,_0x33f314)]);}),_0x467b61['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1242ea),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1242ea)),_0x4210ab['plugins']['has']('ImageCaptionEditing')&&(_0x467b61['enableCommand']('toggleImageCaption',(_0x489dab,_0x3ef6a8)=>{const _0x1c3212=_0x4210ab['plugins']['get']('ImageCaptionUtils');let _0x165381=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x220a76=_0x1c3212['getCaptionFromImageModelElement'](_0x165381);_0x4210ab['model']['change'](()=>{if(_0x220a76)return void _0x467b61['markDeletion'](_0x4210ab['model']['createRangeOn'](_0x220a76));const _0x3302cd=_0x3e7812['isBlockImage'](_0x165381);_0x489dab(_0x3ef6a8),_0x165381=_0x3e7812['getClosestSelectedImageElement'](_0x4210ab['model']['document']['selection']),_0x220a76=_0x1c3212['getCaptionFromImageModelElement'](_0x165381),_0x467b61['markInsertion'](_0x4210ab['model']['createRangeOn'](_0x220a76),_0x3302cd?null:'imageCaption');});}),_0x467b61['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1242ea));const _0x2575f6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2ce5b4(_0x4204f1,_0x1b7a61){const _0x20de69=_0x2575f6['findIndex'](({type:_0x1434b6,subType:_0x320f5a})=>_0x4204f1['type']==_0x1434b6&&_0x4204f1['subType']==_0x320f5a),_0x25427b=_0x2575f6['findIndex'](({type:_0xb60c03,subType:_0x424d03})=>_0x1b7a61['type']==_0xb60c03&&_0x1b7a61['subType']==_0x424d03);if(_0x20de69<0x0||_0x25427b<0x0)return!0x1;const _0x56157e=_0x4204f1['getFirstRange'](),_0xccf375=_0x1b7a61['getFirstRange']();if((0x0==_0x20de69||0x1==_0x20de69)&&0x2==_0x25427b&&_0x56157e['isIntersecting'](_0xccf375))return!0x0;if(0x2==_0x20de69&&0x3==_0x25427b){const _0x215aa6=_0x467b61['_findSuggestions'](_0x56157e,'insertion')['filter'](({suggestion:_0x20715f,meta:_0x5c8d0b})=>_0x5c8d0b['isOwn']&&'convertInlineImageToBlock'==_0x20715f['subType']);if(_0x215aa6['length']>0x1&&_0xccf375['end']['isEqual'](_0x56157e['start']))return!0x0;if(0x1==_0x215aa6['length']&&(_0x56157e['start']['isEqual'](_0xccf375['end'])||_0x56157e['end']['isEqual'](_0xccf375['start'])))return!0x0;}if(0x3==_0x20de69&&0x3==_0x25427b&&_0x56157e['start']['isBefore'](_0xccf375['start'])){const _0x5949b0=_0x56157e['end']['nodeAfter'],_0x395923=_0xccf375['start']['nodeBefore'];return _0x3e7812['isBlockImage'](_0x5949b0)&&_0x5949b0===_0x395923;}return!0x1;}function _0x1242ea(_0x11fdd8,_0x3cdf9c){return _0x2ce5b4(_0x11fdd8,_0x3cdf9c)?[_0x11fdd8,_0x3cdf9c]:_0x2ce5b4(_0x3cdf9c,_0x11fdd8)?[_0x3cdf9c,_0x11fdd8]:null;}_0x4210ab['plugins']['has']('ImageResize')&&(_0x467b61['enableDefaultAttributesIntegration']('resizeImage'),_0x467b61['registerBlockAttribute']('resizedWidth'),_0x467b61['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x4c0c9a,'FORMAT_IMAGE_SIZE'))),_0x4210ab['plugins']['has']('ImageTextAlternativeEditing')&&(_0x467b61['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x467b61['registerBlockAttribute']('alt')),_0x4210ab['plugins']['has']('PictureEditing')&&(_0x467b61['registerBlockAttribute']('sources'),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x143b7d=>{if('attribute'!=_0x143b7d['type'])return;const {data:_0x17eb80}=_0x143b7d;return _0x17eb80&&'sources'==_0x17eb80['key']?{'type':'format','content':''}:void 0x0;})),_0x4210ab['plugins']['has']('ImageSizeAttributes')&&(_0x467b61['registerBlockAttribute']('width'),_0x467b61['registerBlockAttribute']('height'),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x5b15e7=>{if('attribute'!=_0x5b15e7['type'])return;const {data:_0x5a11dd}=_0x5b15e7;return!_0x5a11dd||'width'!=_0x5a11dd['key']&&'height'!=_0x5a11dd['key']?void 0x0:{'type':'format','content':''};})),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0xeb2c45=>{if(!!_0x2575f6['find'](({type:_0x41bb43,subType:_0x224c94})=>_0xeb2c45['type']==_0x41bb43&&_0xeb2c45['subType']==_0x224c94))return _0xeb2c45['previous']?{}:void 0x0;}),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x31781f=>{if('insertion'==_0x31781f['type']||'deletion'==_0x31781f['type']){const _0x1f399d=_0x31781f['getContainedElement']();if(_0x1f399d&&_0x1f399d['is']('element','caption'))return{'type':'insertion'==_0x31781f['type']?'addObject':'removeObject','element':_0x1f399d,'quantity':0x1};}}),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0x1a0210=>'formatBlock'==_0x1a0210['type']&&'convertInlineImageToBlock'==_0x1a0210['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1a0210['type']&&'convertBlockImageToInline'==_0x1a0210['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x467b61['descriptionFactory']['registerDescriptionCallback'](_0xf3a98f=>{if('attribute'!=_0xf3a98f['type'])return;const {data:_0x224cc1}=_0xf3a98f;if(!_0x224cc1||'alt'!=_0x224cc1['key'])return;const _0x125aa9=_0x224cc1['newValue'];return _0x125aa9?{'type':'format','content':c(_0x4c0c9a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x125aa9+'\x22')}:{'type':'format','content':c(_0x4c0c9a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x84bb43=this['editor'],_0x23752a=_0x84bb43['locale'];_0x84bb43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x268f52=>{if('formatBlock'!=_0x268f52['type']&&'formatInline'!=_0x268f52['type'])return;const {data:_0x47adfc}=_0x268f52;if(_0x47adfc){if('imageTextAlternative'==_0x47adfc['commandName']){const _0x534f0e=_0x47adfc['commandParams'][0x0]['newValue'];return _0x534f0e?{'type':'format','content':c(_0x23752a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x534f0e+'\x22')}:{'type':'format','content':c(_0x23752a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x47adfc['commandName']){const _0x343714=_0x47adfc['commandParams'][0x0]['width'];return _0x343714?{'type':'format','content':c(_0x23752a,'*Set\x20image\x20width:*\x20%0',_0x343714)}:{'type':'format','content':c(_0x23752a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2ecbbb=this['editor']['locale'],_0x3b8a46=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b8a46['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3b8a46['registerBlockAttribute']('src'),_0x3b8a46['descriptionFactory']['registerDescriptionCallback'](_0x158af8=>{if('attribute'!=_0x158af8['type'])return;const {data:_0x326942}=_0x158af8;return _0x326942&&'src'==_0x326942['key']?_0x326942['newValue']&&_0x326942['oldValue']?{'type':'format','content':c(_0x2ecbbb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45092d=this['editor']['plugins']['get']('TrackChangesEditing');_0x45092d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x45092d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45092d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x45092d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11f463=this['editor'],_0x3d307f=_0x11f463['locale'];_0x11f463['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11c4b4=>{if('formatBlock'!=_0x11c4b4['type']&&'formatInline'!=_0x11c4b4['type'])return;const {data:_0x141e1a}=_0x11c4b4;if(!_0x141e1a||'replaceImageSource'!=_0x141e1a['commandName'])return;return{'type':'format','content':c(_0x3d307f,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x59f721{['afterInit'](){const _0x4f76c7=this['editor'];if(!_0x4f76c7['plugins']['has']('ImageStyleEditing'))return;const _0x47548e=_0x4f76c7['plugins']['get']('TrackChangesEditing'),_0xaef9f9=_0x4f76c7['plugins']['get']('ImageUtils'),_0x25ba81={};_0x47548e['enableCommand']('imageStyle',(_0xe28a69,_0x3ce0c3)=>{const _0x514d36=_0x4f76c7['plugins']['get']('Users')['me'],_0x4b4c98=_0x4f76c7['commands']['get']('imageStyle');let _0x67051c=_0xaef9f9['getClosestSelectedImageElement'](_0x4f76c7['model']['document']['selection']),_0x34a67f=_0x4f76c7['model']['createRangeOn'](_0x67051c),_0x2e53d0=_0x4b4c98['value'];if(_0x2e53d0==_0x3ce0c3['value'])return;const _0xebf9d6={'commandName':'imageStyle','commandParams':[_0x3ce0c3],'formatGroupId':_0x5011f0()};_0x4f76c7['model']['change'](()=>{if(_0x47548e['getSuggestions']()['filter'](_0x4355f1=>_0x4355f1['isInContent']&&_0x514d36==_0x4355f1['author']&&('formatBlock'==_0x4355f1['type']||'formatInline'==_0x4355f1['type'])&&('imageStylePreApply'==_0x4355f1['subType']||'imageStylePostApply'==_0x4355f1['subType'])&&_0x4355f1['getFirstRange']()['isEqual'](_0x34a67f))['forEach'](_0xd73249=>_0x47548e['discardSuggestion'](_0xd73249['head'])),_0x67051c=_0xaef9f9['getClosestSelectedImageElement'](_0x4f76c7['model']['document']['selection']),_0x34a67f=_0x4f76c7['model']['createRangeOn'](_0x67051c),_0x4b4c98['refresh'](),_0x4f76c7['commands']['get']('imageTypeInline')['refresh'](),_0x4f76c7['commands']['get']('imageTypeBlock')['refresh'](),_0x2e53d0=_0x4b4c98['value'],_0x2e53d0!=_0x3ce0c3['value'])return _0xaef9f9['isInlineImage'](_0x67051c)&&_0x4b4c98['shouldConvertImageType'](_0x3ce0c3['value'],_0x67051c)?(_0xe28a69({..._0x3ce0c3,'setImageSizes':!0x1}),_0x67051c=_0xaef9f9['getClosestSelectedImageElement'](_0x4f76c7['model']['document']['selection']),void _0x47548e['markBlockFormat'](_0x67051c,{..._0xebf9d6,'commandReversedParams':[{'value':_0x2e53d0||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xaef9f9['isBlockImage'](_0x67051c)?_0x47548e['markBlockFormat'](_0x67051c,_0xebf9d6,[],'imageStylePostApply'):_0x47548e['markInlineFormat'](_0x34a67f,_0xebf9d6,'imageStylePostApply'));});});for(const _0x1809e2 of _0x4f76c7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x25ba81[_0x1809e2['name']]=_0x1809e2['title']['toLowerCase']();_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x379d5d])=>{_0xaef9f9['setImageNaturalSizeAttributes'](_0x379d5d['getContainedElement']());}),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x299fc0,_0x1a232e)=>{_0x47548e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x299fc0,{'commandName':_0x1a232e['commandName'],'commandParams':_0x1a232e['commandReversedParams']});}),_0x47548e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x5eb5b7,_0x465629){if(_0x21ca18(_0x5eb5b7,_0x465629))return[_0x5eb5b7,_0x465629];if(_0x21ca18(_0x465629,_0x5eb5b7))return[_0x465629,_0x5eb5b7];return null;});const _0x1d1214=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x21ca18(_0x2920cb,_0x46e449){const _0x394c9b=_0x1d1214['findIndex'](({type:_0x34be28,subType:_0x476d8a})=>_0x2920cb['type']==_0x34be28&&_0x2920cb['subType']==_0x476d8a),_0x5f2de4=_0x1d1214['findIndex'](({type:_0xa6d338,subType:_0x4e696e})=>_0x46e449['type']==_0xa6d338&&_0x46e449['subType']==_0x4e696e);if(_0x394c9b<0x0||_0x5f2de4<0x0)return!0x1;const _0x1990d7=_0x2920cb['getFirstRange'](),_0x5c4a10=_0x46e449['getFirstRange']();if((0x0==_0x394c9b||0x1==_0x394c9b)&&0x2==_0x5f2de4&&_0x1990d7['isIntersecting'](_0x5c4a10))return!0x0;if(0x2==_0x394c9b&&0x3==_0x5f2de4){const _0x43900c=_0x47548e['_findSuggestions'](_0x1990d7,'insertion')['filter'](({suggestion:_0x22f400,meta:_0x227529})=>_0x227529['isOwn']&&'convertInlineImageToBlock'==_0x22f400['subType']);if(_0x43900c['length']>0x1&&_0x5c4a10['end']['isEqual'](_0x1990d7['start']))return!0x0;if(0x1==_0x43900c['length']&&(_0x1990d7['start']['isEqual'](_0x5c4a10['end'])||_0x1990d7['end']['isEqual'](_0x5c4a10['start'])))return!0x0;}if(0x3==_0x394c9b&&0x3==_0x5f2de4&&_0x1990d7['start']['isBefore'](_0x5c4a10['start'])){const _0x2a7bdb=_0x1990d7['end']['nodeAfter'],_0x4d13e1=_0x5c4a10['start']['nodeBefore'];return _0xaef9f9['isBlockImage'](_0x2a7bdb)&&_0x2a7bdb===_0x4d13e1;}return!0x1;}_0x4f76c7['model']['document']['registerPostFixer'](()=>{let _0xdf876d=!0x1;const _0x80f372=Array['from'](_0x4f76c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9c4fae,data:_0x114343}of _0x80f372){const {group:_0x304a1c,type:_0x3a1647,subType:_0x5618fa,id:_0x2911c7}=_0x47548e['_splitMarkerName'](_0x9c4fae);if('suggestion'==_0x304a1c&&_0x47548e['hasSuggestion'](_0x2911c7)){if('formatBlock'==_0x3a1647&&('imageStylePreApply'==_0x5618fa||'imageStylePostApply'==_0x5618fa)){const _0x4a770a=_0x47548e['getSuggestion'](_0x2911c7);if(_0x114343['newRange']){const _0x1df200=_0x4a770a['getFirstRange']()['getContainedElement']();if(_0xaef9f9['isBlockImage'](_0x1df200))continue;_0x47548e['discardSuggestion'](_0x4a770a),_0xdf876d=!0x0;}}if('insertion'==_0x3a1647&&'imageCaption'==_0x5618fa&&!_0x114343['newRange']){const _0x47abbf=_0x47548e['getSuggestion'](_0x2911c7);_0x47abbf['next']&&_0x47abbf['next']['isInContent']&&(_0x47548e['discardSuggestion'](_0x47abbf['next']),_0xdf876d=!0x0);}}}return _0xdf876d;}),this['_registerLegacyDescription'](_0x25ba81);}['_registerLegacyDescription'](_0x4c109b){const _0x507273=this['editor'],_0xaae8e7=_0x507273['locale'];_0x507273['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8394ad=>{if('formatBlock'!=_0x8394ad['type']&&'formatInline'!=_0x8394ad['type'])return;const {data:_0x10c107}=_0x8394ad;if(!_0x10c107||'imageStyle'!=_0x10c107['commandName'])return;const _0x3e1fbc=_0x10c107['commandParams'][0x0]['value'];return _0x18d7eb('side'===_0x3e1fbc?c(_0xaae8e7,'FORMAT_SIDE_IMAGE'):_0x4c109b[_0x3e1fbc]||_0x3e1fbc);function _0x18d7eb(_0x456065){return{'type':'format','content':c(_0xaae8e7,'*Format:*\x20%0',_0x456065)};}});}}class ut extends _0x59f721{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2f72a5){super(_0x2f72a5),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x92ff99=this['editor'],_0x124246=_0x92ff99['commands']['get']('importWord'),_0xfa35f3=_0x92ff99['commands']['get']('trackChanges');_0x124246&&(_0x124246['on']('execute',(_0x536213,[,_0x521979])=>{this['_trackChangesValueDuringImport']=_0xfa35f3['value'],_0x521979['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x124246,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x124246,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xfa35f3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x92ff99['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x44f12c,_0x35e4fc){const {suggestions:_0x1651a6}=_0x35e4fc,_0x28ddce=this['editor']['commands']['get']('trackChanges'),_0x108ddf=_0x28ddce['value'];this['_trackChangesValueDuringImport']!==_0x108ddf&&(_0x28ddce['execute'](),this['_trackChangesExecuted']=!0x0),_0x1651a6&&_0x1651a6['forEach'](({id:_0x582479,type:_0x4d503,author:_0x37749a,created_at:_0xa291e5})=>{const _0x4acfc4={'id':_0x582479,'type':_0x4d503,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x37749a,'createdAt':_0xa291e5?new Date(_0xa291e5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4acfc4);});}}class ft extends _0x59f721{['afterInit'](){const _0x5edc55=this['editor'],_0x5a033a=_0x5edc55['plugins']['get']('TrackChangesEditing');if(_0x5edc55['plugins']['has']('IndentEditing')&&(_0x5a033a['enableCommand']('indent'),_0x5a033a['enableCommand']('outdent')),_0x5edc55['plugins']['has']('IndentBlock')){for(const _0x2cd5c7 of['indentBlock','outdentBlock'])_0x5a033a['enableDefaultAttributesIntegration'](_0x2cd5c7);}const _0x1a5283=_0x5edc55['locale'];_0x5a033a['registerBlockAttribute']('blockIndent'),_0x5a033a['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x1a5283,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x236c0c=this['editor'],_0x349eac=_0x236c0c['locale'],_0x1d2dbe=_0x236c0c['plugins']['get']('TrackChangesEditing');_0x1d2dbe['descriptionFactory']['registerDescriptionCallback'](_0xe2bb76=>{if('formatBlock'!=_0xe2bb76['type'])return;const {data:_0x164d29}=_0xe2bb76;if(!_0x164d29)return;if('indentBlock'!=_0x164d29['commandName']&&'outdentBlock'!=_0x164d29['commandName'])return;const _0x4d7ede=_0xe2bb76['getItems']()[0x0],_0x1337cb=_0x1d2dbe['descriptionFactory']['getItemLabel'](_0x4d7ede);return'indentBlock'==_0x164d29['commandName']?{'type':'format','content':c(_0x349eac,'*Indent:*\x20%0',_0x1337cb)}:'outdentBlock'==_0x164d29['commandName']?{'type':'format','content':c(_0x349eac,'*Outdent:*\x20%0',_0x1337cb)}:void 0x0;});}}class ht extends _0x59f721{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x59f721{['afterInit'](){const _0x39b07e=this['editor'];if(!_0x39b07e['plugins']['has']('LinkEditing'))return;const _0x30bdc0=_0x39b07e['plugins']['get']('TrackChangesEditing'),_0x5c2d35=_0x39b07e['commands']['get']('link');_0x30bdc0['enableDefaultAttributesIntegration']('link'),_0x30bdc0['enableDefaultAttributesIntegration']('unlink'),_0x30bdc0['registerInlineAttribute']('linkHref');for(const _0x1bfec9 of _0x5c2d35['manualDecorators'])_0x30bdc0['registerInlineAttribute'](_0x1bfec9['id']),_0x30bdc0['descriptionFactory']['registerAttributeLabel'](_0x1bfec9['id'],'link\x20('+_0x1bfec9['label']['toLowerCase']()+')');_0x30bdc0['descriptionFactory']['registerDescriptionCallback'](_0x33b132=>{if('attribute'!=_0x33b132['type'])return;const {data:_0x4a9ee8}=_0x33b132;if(!_0x4a9ee8||'linkHref'!=_0x4a9ee8['key'])return;const _0x2396d2=_0x4a9ee8['newValue'],_0x293d6b=_0x39b07e['locale'];return{'type':'format','content':null==_0x2396d2?c(_0x293d6b,'*Remove\x20link*'):c(_0x293d6b,'*Set\x20link:*\x20%0','\x22'+_0x2396d2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58ca6f=this['editor'],_0x326e9c=_0x58ca6f['locale'];_0x58ca6f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cfe24=>{if('formatInline'!=_0x3cfe24['type'])return;const {data:_0x169714}=_0x3cfe24;if(_0x169714){if('link'==_0x169714['commandName']){const _0x2da57a=_0x169714['commandParams'][0x0];return{'type':'format','content':c(_0x326e9c,'*Set\x20link:*\x20%0','\x22'+_0x2da57a+'\x22')};}return'unlink'==_0x169714['commandName']?{'type':'format','content':c(_0x326e9c,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x59f721{['afterInit'](){const _0x5645b3=this['editor'],_0x4243e9=_0x5645b3['locale'];if(!_0x5645b3['plugins']['has']('LegacyListEditing'))return;const _0x40e9fc=_0x5645b3['plugins']['get']('TrackChangesEditing'),_0x56d1ae=_0x5645b3['plugins']['has']('LegacyTodoListEditing');function _0x56bee4(_0x23e2aa){return()=>{const _0x244119=_0x5645b3['model']['document']['selection'],_0x74760f=_0x5645b3['commands']['get'](_0x23e2aa);if(_0x74760f['value'])return void _0x5645b3['execute']('paragraph',{});const _0x3e82a5=_0x23e2aa['slice'](0x0,-0x4),_0x7374fc=function(_0x35cf24,_0x5aa7e4,_0x2898f1){let _0x1f93a1=Array['from'](_0x35cf24)['filter'](_0x5a310d=>function(_0x44a3a6,_0x1f9a4a){return _0x1f9a4a['checkChild'](_0x44a3a6['parent'],'listItem')&&!_0x1f9a4a['isObject'](_0x44a3a6);}(_0x5a310d,_0x2898f1));_0x1f93a1=_0x1f93a1['filter'](_0xe31921=>!_0xe31921['is']('element','listItem')||_0xe31921['getAttribute']('listType')!=_0x5aa7e4);const _0x40d303=new Set();for(const _0x5613c2 of _0x1f93a1)_0x5613c2['is']('element','listItem')?_0x40d303['add'](Le(_0x5613c2)):_0x40d303['add'](_0x5613c2);return Array['from'](_0x40d303);}(_0x244119['getSelectedBlocks'](),_0x3e82a5,_0x5645b3['model']['schema']);_0x5645b3['model']['change'](()=>{for(const _0xc456f4 of _0x7374fc)_0x40e9fc['markBlockFormat'](_0xc456f4,{'commandName':_0x23e2aa,'commandParams':[{'forceValue':!_0x74760f['value']}],'formatGroupId':'blockName'},Ee(_0xc456f4));});};}function _0x1d6450(_0x19260b){return()=>{const _0x5a47fc=function(_0x27e70c){let _0x3c444b=Array['from'](_0x27e70c);const _0xc07dbe=_0x3c444b['findIndex'](_0xc4ab7d=>'listItem'!=_0xc4ab7d['name']);return _0xc07dbe>-0x1&&(_0x3c444b=_0x3c444b['slice'](0x0,_0xc07dbe)),_0x3c444b;}(_0x5645b3['model']['document']['selection']['getSelectedBlocks']()),_0x40999a=_0x5645b3['model']['createRange'](_0x5645b3['model']['createPositionAt'](_0x5a47fc[0x0],'before'),_0x5645b3['model']['createPositionAt'](_0x5a47fc[_0x5a47fc['length']-0x1],'end'));_0x5645b3['model']['change'](()=>{_0x40e9fc['markBlockFormat'](_0x40999a,{'commandName':_0x19260b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5eb497){const _0x48c8e5=new Set();for(const _0x43a0e3 of _0x5eb497){let _0x3abac6=_0x43a0e3['nextSibling'];for(;_0x3abac6&&_0x3abac6['getAttribute']('listIndent')>_0x43a0e3['getAttribute']('listIndent');)_0x48c8e5['add'](_0x3abac6),_0x3abac6=_0x3abac6['nextSibling'];}return Array['from'](_0x48c8e5);}(_0x5a47fc));});};}_0x40e9fc['enableCommand']('numberedList',_0x56bee4('numberedList')),_0x40e9fc['enableCommand']('bulletedList',_0x56bee4('bulletedList')),_0x56d1ae&&_0x40e9fc['enableCommand']('todoList',_0x56bee4('todoList')),_0x40e9fc['enableCommand']('indentList',_0x1d6450('indentList')),_0x40e9fc['enableCommand']('outdentList',_0x1d6450('outdentList')),_0x56d1ae&&_0x40e9fc['enableCommand']('checkTodoList',()=>{const _0x1a2d9e=_0x5645b3['commands']['get']('checkTodoList'),_0x4edd66=Array['from'](_0x1a2d9e['_selectedElements']);_0x4edd66['filter'](_0x3f01bb=>_0x3f01bb['getAttribute']('todoListChecked')!=_0x1a2d9e['value']),_0x5645b3['model']['change'](()=>{for(const _0x1eeef1 of _0x4edd66)_0x40e9fc['markBlockFormat'](_0x1eeef1,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1a2d9e['value']}]});});}),_0x40e9fc['descriptionFactory']['registerElementLabel']('listItem',_0x55735f=>c(_0x4243e9,'ELEMENT_LIST_ITEM',_0x55735f)),_0x40e9fc['descriptionFactory']['registerDescriptionCallback'](_0x3d3bd6=>{if('formatBlock'!=_0x3d3bd6['type']&&'formatInline'!=_0x3d3bd6['type'])return;const {data:_0x1763cd}=_0x3d3bd6;if(_0x1763cd){if('numberedList'==_0x1763cd['commandName']||'bulletedList'==_0x1763cd['commandName']||'todoList'==_0x1763cd['commandName'])switch(_0x1763cd['commandName']['replace']('List','')){case'bulleted':return _0x2b8af6(c(_0x4243e9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b8af6(c(_0x4243e9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b8af6(c(_0x4243e9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1763cd['commandName'])return{'type':'format','content':c(_0x4243e9,'*Indent:*\x20%0',c(_0x4243e9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1763cd['commandName'])return{'type':'format','content':c(_0x4243e9,'*Outdent:*\x20%0',c(_0x4243e9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1763cd['commandName'])return _0x1763cd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4243e9,'*Check\x20item*')}:{'type':'format','content':c(_0x4243e9,'*Uncheck\x20item*')};}function _0x2b8af6(_0x5658aa){return{'type':'format','content':c(_0x4243e9,'*Change\x20to:*\x20%0',_0x5658aa)};}});}}function Le(_0x1ff551){const _0x321be4=_0x1ff551['getAttribute']('listIndent');if(0x0==_0x321be4)return _0x1ff551;let _0x412986=_0x1ff551;for(;_0x1ff551['previousSibling']&&_0x1ff551['previousSibling']['is']('element','listItem');){const _0x51be6f=_0x1ff551['previousSibling']['getAttribute']('listIndent');if(_0x51be6f==_0x321be4)_0x412986=_0x1ff551['previousSibling'];else{if(_0x51be6f<_0x321be4)break;}_0x1ff551=_0x1ff551['previousSibling'];}return _0x412986;}function Ee(_0x3a3a78){const _0x315e00=[];if(_0x3a3a78['is']('element','listItem')&&_0x3a3a78['getAttribute']('listIndent')>0x0){let _0x16b2e9=_0x3a3a78['nextSibling'];for(;_0x16b2e9&&'listItem'==_0x16b2e9['name']&&_0x16b2e9['getAttribute']('listIndent')==_0x3a3a78['getAttribute']('listIndent');)_0x315e00['push'](_0x16b2e9),_0x16b2e9=_0x16b2e9['nextSibling'];}return _0x315e00;}class Q extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x49c3ac=this['editor']['config']['get']('list.properties'),_0x3e7ed5=this['editor']['plugins']['get']('TrackChangesEditing');_0x49c3ac['styles']&&_0x3e7ed5['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x49c3ac['reversed']&&_0x3e7ed5['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x49c3ac['startIndex']&&_0x3e7ed5['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3e7ed5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2303e5,_0x45cc0b={}){const _0x3beab8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d0d0c=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3beab8['markMultiRangeBlockFormat'](_0x4d0d0c,{'commandName':'listStyle','commandParams':[{'type':_0x45cc0b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x261be8,_0x5bc636={}){const _0x2d2ec0=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbc3133=this['_getSuggestionBlocks'](_0x197d85=>_0x197d85['is']('element','listItem')&&'numbered'===_0x197d85['getAttribute']('listType'));if(_0xbc3133['length']<0x1)return;const _0x517624=_0xbc3133['map'](_0x1a0023=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1a0023,'before'),this['editor']['model']['createPositionAt'](_0x1a0023,0x0)));this['editor']['model']['change'](()=>{_0x2d2ec0['markMultiRangeBlockFormat'](_0x517624,{'commandName':'listReversed','commandParams':[{'reversed':_0x5bc636['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2e56a7,_0x458309={}){const _0x41de99=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbc556a=this['_getSuggestionBlocks'](_0x301789=>_0x301789['is']('element','listItem')&&'numbered'===_0x301789['getAttribute']('listType'));if(_0xbc556a['length']<0x1)return;const _0xa40792=_0xbc556a['map'](_0x46bd03=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x46bd03,'before'),this['editor']['model']['createPositionAt'](_0x46bd03,0x0)));this['editor']['model']['change'](()=>{_0x41de99['markMultiRangeBlockFormat'](_0xa40792,{'commandName':'listStart','commandParams':[{'startIndex':_0x458309['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5554db){if('formatBlock'!=_0x5554db['type']&&'formatInline'!=_0x5554db['type'])return;const _0x18675d=this['editor']['locale'],{data:_0x52c432}=_0x5554db;if(!_0x52c432)return;let _0x519975,_0x495e93;switch(_0x52c432['commandName']){case'listStyle':_0x519975='*Change\x20to:*\x20%0',_0x495e93={'type':'format','content':c(_0x18675d,_0x519975,c(_0x18675d,this['_getTranslationKeyForListStyle'](_0x52c432['commandParams'][0x0]['type'])))};break;case'listReversed':_0x519975=_0x52c432['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x495e93={'type':'format','content':c(_0x18675d,_0x519975)};break;case'listStart':_0x519975='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x495e93={'type':'format','content':c(_0x18675d,_0x519975,_0x52c432['commandParams'][0x0]['startIndex'])};}return _0x495e93;}['_getSuggestionBlocksForListStyle'](){const _0x20ed6b=this['editor']['plugins']['get']('LegacyListUtils');let _0x44e1be=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x44e1be[0x0]?.['is']('element','listItem')&&_0x44e1be['unshift'](..._0x20ed6b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x44e1be[_0x44e1be['length']-0x1]?.['is']('element','listItem')&&_0x44e1be['push'](..._0x20ed6b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x44e1be=[...new Set(_0x44e1be)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x44e1be=_0x44e1be['filter'](_0x37d398=>_0x37d398['is']('element','listItem'))),_0x44e1be;}['_getSuggestionBlocks'](_0x183eb9){const _0x5b818a=this['editor']['plugins']['get']('LegacyListUtils');let _0x56721e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x183eb9)['map'](_0x51086d=>{const _0x39d0fa=this['editor']['model']['createPositionAt'](_0x51086d,0x0);return[..._0x5b818a['getSiblingNodes'](_0x39d0fa,'backward'),..._0x5b818a['getSiblingNodes'](_0x39d0fa,'forward')];})['flat']();return _0x56721e=[...new Set(_0x56721e)],_0x56721e;}['_getTranslationKeyForListStyle'](_0x54a27a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x54a27a)||'default')['toUpperCase']()+'_LIST_'+_0x54a27a['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x59f721{['afterInit'](){const _0x49f12e=this['editor'];if(!_0x49f12e['plugins']['has']('MediaEmbedEditing'))return;const _0x11f323=_0x49f12e['plugins']['get']('TrackChangesEditing'),_0x1311c8=_0x49f12e['locale'];_0x11f323['enableCommand']('mediaEmbed'),_0x11f323['descriptionFactory']['registerElementLabel']('media',_0x3db232=>c(_0x1311c8,'ELEMENT_MEDIA',_0x3db232)),_0x49f12e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x179850,{writer:_0x230719,options:_0x17aa7b})=>{if(_0x17aa7b['showSuggestionHighlights'])return _0x230719['createEmptyElement']('div');},'converterPriority':'high'}),_0x49f12e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x53408b,_0x1f502f,_0xdca0b0)=>{_0xdca0b0['options']['showSuggestionHighlights']&&_0x53408b['stop']();},{'priority':'high'});}}class pt extends _0x59f721{['afterInit'](){const _0x3a79fd=this['editor'];_0x3a79fd['plugins']['has']('MentionEditing')&&_0x3a79fd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x59f721{['afterInit'](){const _0x3435c0=this['editor'];if(!_0x3435c0['plugins']['has']('MergeFieldsEditing'))return;const _0x187353=_0x3435c0['plugins']['get']('TrackChangesEditing'),_0x22229d=_0x3435c0['locale'];_0x187353['enableCommand']('insertMergeField'),_0x187353['enableCommand']('insertMergeFieldBlock'),_0x187353['enableCommand']('insertMergeFieldImage'),_0x187353['descriptionFactory']['registerElementLabel']('mergeField',_0x1636d8=>c(_0x22229d,'ELEMENT_MERGE_FIELD',_0x1636d8)),_0x187353['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4126b1=>c(_0x22229d,'ELEMENT_MERGE_FIELD',_0x4126b1)),_0x187353['descriptionFactory']['registerDescriptionCallback'](_0x4c8617=>{if('insertion'!=_0x4c8617['type']&&'deletion'!=_0x4c8617['type'])return;const _0x13f2c5=_0x4c8617['getContainedElement']();if(null==_0x13f2c5)return;const _0x186050=_0x3435c0['plugins']['get']('MergeFieldsEditing');let _0x404ad5;switch(_0x186050['getMergeFieldType'](_0x13f2c5)){case null:return;case'image':{const _0xad3dad=_0x186050['unwrapAffixes'](_0x13f2c5['getAttribute']('src'));_0x404ad5=_0x186050['getLabel'](_0xad3dad)||_0xad3dad;break;}default:{const _0x41d87c=_0x13f2c5['getAttribute']('id');_0x404ad5=_0x186050['getLabel'](_0x41d87c)||_0x41d87c;break;}}return'insertion'==_0x4c8617['type']?{'type':'insertion','content':c(_0x22229d,'*Insert:*\x20%0','\x22'+_0x404ad5+'\x22\x20'+c(_0x22229d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x22229d,'*Remove:*\x20%0','\x22'+_0x404ad5+'\x22\x20'+c(_0x22229d,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x59f721{['afterInit'](){const _0x4d23f8=this['editor'],_0x57a35a=_0x4d23f8['plugins']['get']('TrackChangesEditing');_0x4d23f8['plugins']['has']('MultiLevelList')&&(_0x57a35a['enableDefaultAttributesIntegration']('multiLevelList'),_0x57a35a['registerBlockAttribute']('listMarkerStyle'),_0x57a35a['descriptionFactory']['registerDescriptionCallback'](_0x286034=>this['handleDescriptions'](_0x286034)));}['handleDescriptions'](_0x32e308){const _0x1fcd16=this['editor']['locale'],{data:_0x2ce82b}=_0x32e308,_0xe1ad0a={'type':'format','content':''};if(_0x2ce82b&&'listMarkerStyle'==_0x2ce82b['key']){if(!_0x2ce82b['oldValue'])return{'type':'format','content':c(_0x1fcd16,'*Set\x20format:*\x20%0',c(_0x1fcd16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ce82b['newValue']+')'};if(!_0x2ce82b['newValue']){let _0x2e58f7=_0x32e308['head'];for(;_0x2e58f7;){if(_0x2e58f7['data']&&'listType'==_0x2e58f7['data']['key']&&_0x2e58f7['data']['newValue'])return _0xe1ad0a;_0x2e58f7=_0x2e58f7['next'];}return{'type':'format','content':c(_0x1fcd16,'*Remove\x20format:*\x20%0',c(_0x1fcd16,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2ce82b['oldValue']+')'};}}}}class bt extends _0x59f721{['afterInit'](){const _0x3c9ca1=this['editor'];if(!_0x3c9ca1['plugins']['has']('PageBreakEditing'))return;_0x3c9ca1['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5c7e47=_0x3c9ca1['plugins']['get']('TrackChangesEditing'),_0x3c7624=_0x3c9ca1['locale'];_0x5c7e47['descriptionFactory']['registerElementLabel']('pageBreak',_0x4b4754=>c(_0x3c7624,'ELEMENT_PAGE_BREAK',_0x4b4754));}}class yt extends _0x59f721{['afterInit'](){const _0x220c0b=this['editor'];if(!_0x220c0b['plugins']['has']('Paragraph'))return;const _0xb40ab7=_0x220c0b['locale'],_0x1fc186=_0x220c0b['plugins']['get']('TrackChangesEditing');_0x1fc186['descriptionFactory']['registerElementLabel']('paragraph',_0x58c9d3=>c(_0xb40ab7,'ELEMENT_PARAGRAPH',_0x58c9d3)),_0x1fc186['enableDefaultAttributesIntegration']('paragraph'),_0x1fc186['enableCommand']('insertParagraph'),_0x220c0b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x220c0b),{'priority':'highest'}),_0x220c0b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5cbdf2,_0x3f3e8a,_0x145ab5)=>{_0x145ab5['options']['showSuggestionHighlights']&&nr(_0x220c0b,{'showActiveMarker':!0x1})(_0x5cbdf2,_0x3f3e8a,_0x145ab5);},{'priority':'highest'});const _0x504c68=_0x1fc186['descriptionFactory'];_0x504c68['registerDescriptionCallback'](_0x9512ba=>{if('insertion'!==_0x9512ba['type'])return;const {start:_0x184998,end:_0x491e3}=_0x9512ba['getFirstRange']();if(!_0x184998['isTouching'](_0x491e3)||!_0x184998['nodeAfter'])return;const _0x159a31=_0x220c0b['model']['schema'],_0x3aabbd=_0x184998['nodeAfter'];return _0x159a31['isBlock'](_0x3aabbd)&&!_0x159a31['isLimit'](_0x3aabbd)&&_0x159a31['checkChild'](_0x3aabbd,'$text')?{'type':'insertion','content':c(_0xb40ab7,'*Insert:*\x20%0',_0x504c68['getItemLabel'](_0x3aabbd,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3df735=this['editor'],_0x56de9d=_0x3df735['locale'];_0x3df735['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dbc2c=>{if('formatBlock'!=_0x3dbc2c['type'])return;const {data:_0x3f7e14}=_0x3dbc2c;return _0x3f7e14&&'paragraph'==_0x3f7e14['commandName']?{'type':'format','content':c(_0x56de9d,'*Change\x20to:*\x20%0',c(_0x56de9d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3f6fb7,{showActiveMarker:_0xbbde8d=!0x0}={}){return(_0xcf9971,_0x406372,_0x217fae)=>{const _0x1af346=_0x3f6fb7['plugins']['get']('TrackChangesEditing'),_0x20ade3=_0x406372['markerRange']['start'],_0x5f735e=_0x406372['markerRange']['end'],_0x367ea6=_0x3f6fb7['model']['schema'];if(!_0x20ade3['isTouching'](_0x5f735e)||!_0x20ade3['nodeAfter'])return;const _0xbd1ee1=_0x20ade3['nodeAfter'];if(_0x367ea6['isBlock'](_0xbd1ee1)&&!_0x367ea6['isLimit'](_0xbd1ee1)&&_0x367ea6['checkChild'](_0xbd1ee1,'$text')){if(!_0x217fae['consumable']['consume'](_0x406372['markerRange'],_0xcf9971['name']))return;const {id:_0x50a1d6,authorId:_0x189a8f}=_0x1af346['_splitMarkerName'](_0x406372['markerName']),_0x335cdf=_0x217fae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x50a1d6,'data-author-id':_0x189a8f}),_0x40286f=_0x217fae['mapper']['toViewPosition'](_0x5f735e);_0xbbde8d&&_0x1af346['activeMarkers']['includes'](_0x406372['markerName'])&&_0x217fae['writer']['addClass']('ck-suggestion-marker--active',_0x335cdf),_0x217fae['writer']['insert'](_0x40286f,_0x335cdf),_0x217fae['mapper']['bindElementToMarker'](_0x335cdf,_0x406372['markerName']);}};}class St extends _0x59f721{['afterInit'](){const _0x50cbc9=this['editor'];_0x50cbc9['commands']['get']('replaceSource')&&_0x50cbc9['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x59f721{['afterInit'](){const _0x30113d=this['editor'];if(!_0x30113d['plugins']['has']('RemoveFormatEditing'))return;_0x30113d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32f33c=this['editor'];_0x32f33c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2346f1=>{if('formatBlock'!=_0x2346f1['type']&&'formatInline'!=_0x2346f1['type'])return;const {data:_0x571266}=_0x2346f1;return _0x571266&&'removeFormat'==_0x571266['commandName']?{'type':'format','content':c(_0x32f33c['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x59f721{['afterInit'](){const _0x15b9d3=this['editor'];if(!_0x15b9d3['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x46edba=_0x15b9d3['plugins']['get']('TrackChangesEditing');_0x46edba['enableCommand']('goToPreviousRestrictedEditingException'),_0x46edba['enableCommand']('goToNextRestrictedEditingException');const _0x5d0ad1=_0x15b9d3['plugins']['get']('RestrictedEditingModeEditing');_0x5d0ad1['enableCommand']('trackChanges'),_0x5d0ad1['enableCommand']('acceptSuggestion'),_0x5d0ad1['enableCommand']('discardSuggestion'),_0x5d0ad1['enableCommand']('acceptAllSuggestions'),_0x5d0ad1['enableCommand']('discardAllSuggestions'),_0x5d0ad1['enableCommand']('acceptSelectedSuggestions'),_0x5d0ad1['enableCommand']('discardSelectedSuggestions');}}class At extends _0x59f721{['afterInit'](){const _0x6c0897=this['editor'];if(!_0x6c0897['plugins']['has']('ShiftEnter'))return;const _0x363d8d=_0x6c0897['plugins']['get']('TrackChangesEditing');_0x363d8d['enableCommand']('shiftEnter'),_0x6c0897['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x6c0897),{'priority':'high'}),_0x6c0897['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x6c0897),{'priority':'high'}),_0x6c0897['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x25a99e,_0x458543,_0x583ac4)=>{_0x583ac4['options']['showSuggestionHighlights']&&je(_0x6c0897,{'showActiveMarker':!0x1})(_0x25a99e,_0x458543,_0x583ac4);}),_0x363d8d['descriptionFactory']['registerElementLabel']('softBreak',_0x2dd0ab=>c(_0x6c0897['locale'],'ELEMENT_LINE_BREAK',_0x2dd0ab));}}function je(_0x3d079c,{showActiveMarker:_0x3c268e=!0x0}={}){return(_0x250f67,_0x59b339,_0x544d6f)=>{const _0x2318e5=_0x3d079c['plugins']['get']('TrackChangesEditing');if(!_0x544d6f['consumable']['test'](_0x59b339['markerRange'],_0x250f67['name']))return;const _0x505408=_0x3d079c['model'];for(const _0xbe7614 of _0x59b339['markerRange']['getItems']()){if(!_0xbe7614['is']('element','softBreak'))continue;const _0x6c5e1b='deletion'==_0x59b339['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1c466a,authorId:_0x516984}=_0x2318e5['_splitMarkerName'](_0x59b339['markerName']),_0x5879a0=_0x544d6f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6c5e1b,'data-suggestion':_0x1c466a,'data-author-id':_0x516984}),_0x1693dd=_0x544d6f['mapper']['toViewPosition'](_0x505408['createPositionBefore'](_0xbe7614));_0x3c268e&&_0x2318e5['activeMarkers']['includes'](_0x59b339['markerName'])&&_0x544d6f['writer']['addClass']('ck-suggestion-marker--active',_0x5879a0),_0x544d6f['writer']['insert'](_0x1693dd,_0x5879a0),_0x544d6f['mapper']['bindElementToMarker'](_0x5879a0,_0x59b339['markerName']);}};}class _t extends _0x59f721{['afterInit'](){const _0x4c83d9=this['editor'],_0x28c261=_0x4c83d9['model'],_0x3fd35d=_0x4c83d9['locale'];if(!_0x4c83d9['plugins']['has']('StandardEditingModeEditing'))return;const _0x43fc54=_0x4c83d9['plugins']['get']('TrackChangesEditing'),_0x4cfb61='restrictedEditingException',_0x309cfd=_0x4c83d9['commands']['get'](_0x4cfb61);_0x43fc54['enableCommand'](_0x4cfb61,(_0xb2df61,_0x5e3beb={})=>{const _0x2d44f5=_0x28c261['document']['selection'];if(_0x2d44f5['isCollapsed'])return void _0xb2df61(_0x5e3beb);const _0xf3bc1e=void 0x0!==_0x5e3beb['forceValue']?_0x5e3beb['forceValue']:!_0x309cfd['value'];_0x28c261['change'](()=>{const _0x30a679=Array['from'](_0x2d44f5['getRanges']());for(const _0x47fcf9 of _0x30a679){const _0x555135=_0xf3bc1e?[_0x47fcf9]:io(_0x4cfb61,_0x47fcf9,_0x28c261);for(const _0x50029e of _0x555135)_0x43fc54['markInlineFormat'](_0x50029e,{'commandName':_0x4cfb61,'commandParams':[{'forceValue':_0xf3bc1e}]});}});}),_0x43fc54['descriptionFactory']['registerDescriptionCallback'](_0x32e131=>{if('formatBlock'!=_0x32e131['type']&&'formatInline'!=_0x32e131['type'])return;const {data:_0x5f126d}=_0x32e131;return _0x5f126d&&_0x5f126d['commandName']==_0x4cfb61?_0x5f126d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3fd35d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x3fd35d,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x59f721{['afterInit'](){const _0x392ffe=this['editor'];if(!_0x392ffe['plugins']['has']('Style')||!_0x392ffe['plugins']['has']('DataSchema'))return;const _0x4a077d=_0x392ffe['plugins']['get']('TrackChangesEditing'),_0x51edbc=_0x392ffe['locale'],_0x53d502=_0x392ffe['config']['get']('style')||{},_0x56a37c=_0x392ffe['plugins']['get']('GeneralHtmlSupport'),_0x2b3c0d=_0x392ffe['plugins']['get']('StyleUtils')['normalizeConfig'](_0x392ffe['plugins']['get']('DataSchema'),_0x53d502['definitions']);_0x4a077d['enableDefaultAttributesIntegration']('style');const _0x13d152=new Set();for(const _0x5bd0be of _0x2b3c0d['block']){const _0x4db2b8=_0x56a37c['getGhsAttributeNameForElement'](_0x5bd0be['element']);_0x13d152['add'](_0x4db2b8);}const _0x422322=new Set();for(const _0x149c1f of _0x2b3c0d['inline']){const _0x25f0f8=_0x56a37c['getGhsAttributeNameForElement'](_0x149c1f['element']);_0x422322['add'](_0x25f0f8);for(const _0x3f2a2a of _0x149c1f['ghsAttributes'])_0x422322['add'](_0x3f2a2a);}for(const _0x4baea1 of _0x13d152)_0x4a077d['registerBlockAttribute'](_0x4baea1),_0x4a077d['descriptionFactory']['registerAttributeLabel'](_0x4baea1,c(_0x51edbc,'FORMAT_STYLE'));for(const _0x1399a2 of _0x422322)_0x4a077d['registerInlineAttribute'](_0x1399a2),_0x4a077d['descriptionFactory']['registerAttributeLabel'](_0x1399a2,c(_0x51edbc,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x407a43=this['editor'],_0x269f6e=_0x407a43['locale'];_0x407a43['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34e07d=>{if('formatBlock'!=_0x34e07d['type']&&'formatInline'!=_0x34e07d['type'])return;const {data:_0x56ba18}=_0x34e07d;return _0x56ba18&&'style'===_0x56ba18['commandName']?_0x56ba18['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x269f6e,'*Set\x20format:*\x20%0',_0x56ba18['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x269f6e,'*Remove\x20format:*\x20%0',_0x56ba18['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x59f721{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49be04){super(_0x49be04),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x495c01=this['editor'],_0x3893a4=_0x495c01['model']['document']['selection'];if(!_0x495c01['plugins']['has']('TableEditing'))return;const _0x2ed21f=_0x495c01['locale'],_0x7771aa=_0x495c01['plugins']['get']('TrackChangesEditing'),_0x3d6686=_0x495c01['plugins']['get']('TableUtils');_0x7771aa['descriptionFactory']['registerElementLabel']('table',_0x5493c1=>c(_0x2ed21f,'ELEMENT_TABLE',_0x5493c1)),this['_setupColumnsRowsFixing'](),_0x7771aa['enableCommand']('insertTable'),_0x7771aa['enableCommand']('selectTableRow'),_0x7771aa['enableCommand']('selectTableColumn');for(const _0x403c31 of['insertTableRowAbove','insertTableRowBelow']){const _0x46e24c=_0x495c01['commands']['get'](_0x403c31);_0x7771aa['enableCommand'](_0x403c31,_0x408f72=>{_0x495c01['model']['change'](_0x3ab475=>{_0x408f72();const _0x4f3f11='above'===_0x46e24c['order'],_0x5a5fc7=_0x3d6686['getSelectionAffectedTableCells'](_0x3893a4),_0x1afe3c=_0x3d6686['getRowIndexes'](_0x5a5fc7),_0x5d642d=_0x4f3f11?_0x1afe3c['first']-0x1:_0x1afe3c['last']+0x1,_0x37ee4e=_0x5a5fc7[0x0]['findAncestor']('table'),_0x47eb8f=_0x3d6686['createTableWalker'](_0x37ee4e,{'startRow':_0x5d642d,'endRow':_0x5d642d}),_0x1caf0f=Array['from'](_0x47eb8f)['map'](_0x36dd45=>_0x3ab475['createRangeOn'](_0x36dd45['cell']));_0x7771aa['markMultiRangeInsertion'](_0x1caf0f,'tableRow');});});}for(const _0x579fca of['insertTableColumnLeft','insertTableColumnRight']){const _0x380e22=_0x495c01['commands']['get'](_0x579fca);_0x7771aa['enableCommand'](_0x579fca,_0x48bfa7=>{_0x495c01['model']['change'](_0x9e4ea7=>{_0x48bfa7();const _0x2cff5a='left'===_0x380e22['order'],_0xd50c53=_0x3d6686['getSelectionAffectedTableCells'](_0x3893a4),_0x52344e=_0x3d6686['getColumnIndexes'](_0xd50c53),_0x44184b=_0x2cff5a?_0x52344e['first']-0x1:_0x52344e['last']+0x1,_0x4e6d96=_0xd50c53[0x0]['findAncestor']('table'),_0xce3e8f=_0x3d6686['createTableWalker'](_0x4e6d96,{'startRow':0x0,'column':_0x44184b,'includeAllSlots':!0x1}),_0x41efc7=Array['from'](_0xce3e8f)['map'](_0x235d19=>_0x9e4ea7['createRangeOn'](_0x235d19['cell']));_0x7771aa['markMultiRangeInsertion'](_0x41efc7,'tableColumn');});});}for(const _0x36ebf5 of['removeTableRow','removeTableColumn']){const _0xc3cda=_0x36ebf5['substr'](0xb),_0x3b1503=_0xc3cda['toLowerCase'](),_0x4b2046=_0x3b1503['substr'](0x0,0x3)+'span',_0x18650b='table'+_0xc3cda,_0x3c773f='min'+_0xc3cda,_0x97fec9='max'+_0xc3cda;_0x7771aa['enableCommand'](_0x36ebf5,()=>{_0x495c01['model']['change'](_0x162c87=>{const _0x2faaf8=_0x3d6686['getSelectionAffectedTableCells'](_0x3893a4),_0x282847=_0x2faaf8[0x0]['findAncestor']('table');let _0x5d8a71;if('removeTableRow'==_0x36ebf5){const _0xb538ff=_0x3d6686['getRowIndexes'](_0x2faaf8);_0x5d8a71={'startRow':_0xb538ff['first'],'endRow':_0xb538ff['last'],'includeAllSlots':!0x0};}else{const _0xdbe85d=_0x3d6686['getColumnIndexes'](_0x2faaf8);_0x5d8a71={'startColumn':_0xdbe85d['first'],'endColumn':_0xdbe85d['last'],'includeAllSlots':!0x0};}const _0x5549e5=_0x3d6686['createTableWalker'](_0x282847,_0x5d8a71),_0x5e5a22=Array['from'](_0x5549e5)['map'](({cell:_0x5bbe16})=>_0x5bbe16),_0x2d5ad9=xe(_0x5e5a22['filter'](_0x498dee=>_0x498dee['hasAttribute'](_0x4b2046))),_0x4df969=xe(_0x5e5a22['filter'](_0x2631cd=>!_0x2631cd['hasAttribute'](_0x4b2046)))['map'](_0x1e5256=>_0x162c87['createRangeOn'](_0x1e5256)),_0x33e6fc=_0x7771aa['markMultiRangeDeletion'](_0x4df969,_0x18650b);if(_0x33e6fc&&('tableRow'==_0x33e6fc['subType']||'tableColumn'==_0x33e6fc['subType'])){const _0x463343=this['_getSuggestionCoords'](_0x33e6fc);for(const _0x2d5229 of _0x2d5ad9){const _0x26db9d=_0x162c87['createRangeOn'](_0x2d5229),_0x39705b=_0x3d6686['getCellLocation'](_0x2d5229),_0x303c92=_0x2d5229['getAttribute'](_0x4b2046)-0x1,_0x5de73b=_0x463343[_0x3c773f],_0x35fdaa=_0x463343[_0x97fec9];_0x5de73b<=_0x39705b[_0x3b1503]&&_0x39705b[_0x3b1503]+_0x303c92<=_0x35fdaa&&_0x33e6fc['addRange'](_0x26db9d);}}});});}function _0x51aa04(_0x3473bc){const _0x2e1c8e=Array['from'](_0x3893a4['getRanges']())['map'](_0x332e3d=>_0x39b5cf['fromRange'](_0x332e3d));_0x495c01['model']['change'](_0x2cb776=>{const _0x2713b0=_0x2cb776['batch'];_0x3473bc=_0x3473bc['filter'](_0x3fec1f=>'$graveyard'!=_0x3fec1f['root']['rootName']),_0x2cb776['setSelection'](_0x3473bc),_0x495c01['commands']['get']('removeTableRow')['refresh'](),_0x495c01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x495c01['model']['enqueueChange'](()=>{_0x495c01['model']['enqueueChange'](_0x2713b0,_0x5b05fa=>{const _0x1ba278=_0x2e1c8e['filter'](_0x59dd60=>'$graveyard'!=_0x59dd60['root']['rootName']);_0x1ba278['length']>0x0&&_0x5b05fa['setSelection'](_0x1ba278);for(const _0x3991b5 of _0x2e1c8e)_0x3991b5['detach']();});});});}function _0xb9a3e(_0x4db4d9){_0x495c01['model']['change'](_0x10da44=>{const _0x278710=Array['from'](_0x3893a4['getRanges']())['map'](_0x48ad66=>_0x39b5cf['fromRange'](_0x48ad66)),_0x2ea2d9=[];for(const _0x41e5db of _0x4db4d9)for(const _0x550473 of _0x41e5db['getItems']({'shallow':!0x0}))_0x2ea2d9['push'](_0x550473);for(const _0x5bffe7 of _0x2ea2d9)'$graveyard'!=_0x5bffe7['root']['rootName']&&(_0x10da44['setSelection'](_0x10da44['createPositionAt'](_0x5bffe7,0x0)),_0x495c01['commands']['get']('removeTableColumn')['refresh'](),_0x495c01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x392f0b=_0x278710['filter'](_0x15c273=>'$graveyard'!=_0x15c273['root']['rootName']);_0x392f0b['length']>0x0&&_0x10da44['setSelection'](_0x392f0b);for(const _0x52d995 of _0x278710)_0x52d995['detach']();});}function _0x518bf4(_0xfb5303,_0x509324){return _0x509324['every'](_0xb9e36a=>_0xfb5303['some'](_0x43abfb=>_0x43abfb['end']['isEqual'](_0xb9e36a['start'])||_0xb9e36a['end']['isEqual'](_0x43abfb['start'])));}function _0xf27f85(_0x263b02,_0xb53ecc){return!_0x263b02['some'](_0x992fe9=>_0xb53ecc['some'](_0x368c5a=>_0x992fe9['isIntersecting'](_0x368c5a)))&&_0x263b02['some'](_0x16951d=>_0xb53ecc['some'](_0x45697f=>_0x16951d['end']['isTouching'](_0x45697f['start'])));}_0x495c01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x12e07f,_0x44695e,_0xd74c95)=>{if(!_0xd74c95['options']['showSuggestionHighlights'])return;const _0x2ac07f=_0x44695e['item'];if(!_0x2ac07f||!_0x2ac07f['is']('element','tableCell'))return;const _0x4ded46=_0xd74c95['mapper']['toViewElement'](_0x2ac07f);if(_0x4ded46){const {id:_0x28217d,authorId:_0x790bc6}=_0x7771aa['_splitMarkerName'](_0x44695e['markerName']);_0x49fc28(_0x4ded46,_0xd74c95['writer'],(_0x44ad8c,_0x19d350,_0x59e3a5)=>{_0x59e3a5['addClass'](_0x43f047(_0x19d350['classes']),_0x44ad8c),_0x59e3a5['setAttribute']('data-suggestion-id',_0x28217d,_0x44ad8c),_0x59e3a5['setAttribute']('data-author-id',_0x790bc6,_0x44ad8c);},(_0xaff22b,_0x2a44f2,_0x5b22e3)=>{_0x5b22e3['removeClass'](_0x43f047(_0x2a44f2['classes']),_0xaff22b),_0x5b22e3['removeAttribute']('data-suggestion-id',_0xaff22b),_0x5b22e3['removeAttribute']('data-author-id',_0xaff22b);});}},{'priority':'highest'}),_0x7771aa['descriptionFactory']['registerDescriptionCallback'](_0x3a6a1b=>{if('insertion'!=_0x3a6a1b['type']&&'deletion'!=_0x3a6a1b['type'])return;const _0x5d0f94=_0x3a6a1b['getContainedElement']();if(null!=_0x5d0f94&&_0x5d0f94['is']('element','table')){if('insertion'==_0x3a6a1b['type']){const _0x8be1c7=_0x3a6a1b['getItems']()['filter'](_0x117835=>_0x117835['is']('$textProxy'))['map'](_0x37af7e=>_0x37af7e['data']);if(_0x8be1c7['length'])return{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x8be1c7['join']('\x20')+'\x22'))};}if('deletion'==_0x3a6a1b['type']){const _0x4ef87a=_0x3a6a1b['getItems']()['filter'](_0x53607d=>_0x53607d['is']('$textProxy'))['map'](_0x114e8b=>_0x114e8b['data']);if(_0x4ef87a['length'])return{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ef87a['join']('\x20')+'\x22'))};}}}),_0x7771aa['descriptionFactory']['registerDescriptionCallback'](_0x1f7c47=>{if('tableRow'==_0x1f7c47['subType']){const _0x32a016=_0x1f7c47['getItems']()['filter'](_0x6e0781=>_0x6e0781['is']('$textProxy'))['map'](_0x1c4658=>_0x1c4658['data']),_0x259151=this['_getSuggestionCoords'](_0x1f7c47),_0x4cc8ae=_0x259151['maxRow']-_0x259151['minRow']+0x1;if('insertion'==_0x1f7c47['type'])return _0x32a016['length']?{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cc8ae,'\x22'+_0x32a016['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW',_0x4cc8ae))};if('deletion'==_0x1f7c47['type'])return _0x32a016['length']?{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4cc8ae,'\x22'+_0x32a016['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_ROW',_0x4cc8ae))};}if('tableColumn'==_0x1f7c47['subType']){const _0x52b96a=_0x1f7c47['getItems']()['filter'](_0x37320=>_0x37320['is']('$textProxy'))['map'](_0x40aa5e=>_0x40aa5e['data']),_0x4e76dd=this['_getSuggestionCoords'](_0x1f7c47),_0x4a6a8a=_0x4e76dd['maxColumn']-_0x4e76dd['minColumn']+0x1;if('insertion'==_0x1f7c47['type'])return _0x52b96a['length']?{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6a8a,'\x22'+_0x52b96a['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x2ed21f,'*Insert:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN',_0x4a6a8a))};if('deletion'==_0x1f7c47['type'])return _0x52b96a['length']?{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4a6a8a,'\x22'+_0x52b96a['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x2ed21f,'*Remove:*\x20%0',c(_0x2ed21f,'ELEMENT_TABLE_COLUMN',_0x4a6a8a))};}}),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x51aa04),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x51aa04),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xb9a3e),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xb9a3e),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x518bf4),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x518bf4),_0x7771aa['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xf27f85),_0x7771aa['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xf27f85);}['_acceptFormatSuggestionCallbackFactory'](){const _0x208e3c=this['editor'],_0x459a33=_0x208e3c['model']['document']['selection'];return(_0x35f374,_0x591ec8)=>{_0x208e3c['model']['change'](_0x1874d2=>{const {commandName:_0x4bfeb1,commandParams:_0x5efa07}=_0x591ec8;let _0x1820a8=_0x35f374[0x0]['end']['nodeBefore'];_0x5efa07&&_0x5efa07[0x0]&&!0x1===_0x5efa07[0x0]['forceValue']&&(_0x1820a8=_0x35f374[0x0]['start']['nodeAfter']);const _0x9f2a98=_0x1874d2['createRangeIn'](_0x1820a8);if('$graveyard'==_0x9f2a98['root']['rootName'])return;const _0x5a244e=Array['from'](_0x459a33['getRanges']())['map'](_0x5ca617=>_0x39b5cf['fromRange'](_0x5ca617));_0x1874d2['setSelection'](_0x9f2a98),_0x208e3c['commands']['get'](_0x4bfeb1)['refresh'](),_0x5efa07['push']({'forceDefaultExecution':!0x0}),_0x208e3c['execute'](_0x4bfeb1,..._0x5efa07);const _0xf4a9c7=_0x5a244e['filter'](_0x2ac908=>'$graveyard'!=_0x2ac908['root']['rootName']);_0xf4a9c7['length']>0x0&&_0x1874d2['setSelection'](_0xf4a9c7);for(const _0x49a62a of _0x5a244e)_0x49a62a['detach']();});};}['_getCoordsForCells'](_0x2ad6e8){const _0x4e35dc=this['editor']['plugins']['get']('TableUtils');let _0x4e1da3=Number['MAX_SAFE_INTEGER'],_0x4d70eb=Number['MIN_SAFE_INTEGER'],_0x3b7407=Number['MAX_SAFE_INTEGER'],_0xd1aa7d=Number['MIN_SAFE_INTEGER'];for(const _0xac0f90 of _0x2ad6e8){if('$graveyard'==_0xac0f90['root']['rootName'])continue;const {row:_0x3c7c86,column:_0x2e0726}=_0x4e35dc['getCellLocation'](_0xac0f90),_0x5607cf=_0xac0f90['hasAttribute']('rowspan')?_0xac0f90['getAttribute']('rowspan')-0x1:0x0,_0x1a1566=_0xac0f90['hasAttribute']('colspan')?_0xac0f90['getAttribute']('colspan')-0x1:0x0;_0x4e1da3=_0x3c7c86<_0x4e1da3?_0x3c7c86:_0x4e1da3,_0x4d70eb=_0x3c7c86+_0x5607cf>_0x4d70eb?_0x3c7c86+_0x5607cf:_0x4d70eb,_0x3b7407=_0x2e0726<_0x3b7407?_0x2e0726:_0x3b7407,_0xd1aa7d=_0x2e0726+_0x1a1566>_0xd1aa7d?_0x2e0726+_0x1a1566:_0xd1aa7d;}return{'minRow':_0x4e1da3,'maxRow':_0x4d70eb,'minColumn':_0x3b7407,'maxColumn':_0xd1aa7d};}['_setupColumnsRowsFixing'](){const _0x595f3c=this['editor'],_0x2d4fa5=_0x595f3c['plugins']['get']('TrackChangesEditing'),_0x15982c=_0x595f3c['plugins']['get']('TableUtils');_0x595f3c['model']['document']['on']('change:data',()=>{const _0x4b23cb=Array['from'](_0x595f3c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x54c688,data:_0x5ee45a}of _0x4b23cb){const {group:_0x2083ee,id:_0x3afe87,subType:_0x2aafae}=_0x2d4fa5['_splitMarkerName'](_0x54c688);if('suggestion'!=_0x2083ee)continue;if(null!=_0x5ee45a['oldRange'])continue;const _0x3c18de=_0x2d4fa5['getSuggestion'](_0x3afe87);this['_tablePostFixingSubtypes']['includes'](_0x2aafae)&&this['_tableSuggestions']['add'](_0x3c18de);}},{'priority':'low'});const _0x9d19ea=(_0x8ebc35,_0x569061)=>{let _0xa811c1=!0x1;const _0x2d1f93=_0x569061['createRangeOn'](_0x8ebc35),_0xaa27=_0x8ebc35['findAncestor']('table'),_0x487f0=_0x15982c['getCellLocation'](_0x8ebc35);for(const _0x584e19 of this['_tableSuggestions']){const _0x23b016=_0x584e19['subType'],_0xcdcaff=_0x23b016['startsWith']('tablePaste'),_0x59028d=_0x23b016['substr'](_0xcdcaff?0xa:0x5),_0x4c716f=_0x59028d['toLowerCase'](),_0x45297a=_0x4c716f['substr'](0x0,0x3)+'span',_0x2e7548='min'+_0x59028d,_0x58c8fe='max'+_0x59028d;if(!_0x584e19['isInContent'])continue;if(_0xaa27!=_0x584e19['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x584e19['isIntersectingWithRange'](_0x2d1f93))continue;const _0x4d9727=_0x8ebc35['hasAttribute'](_0x45297a)?_0x8ebc35['getAttribute'](_0x45297a)-0x1:0x0,_0x4c8fa0=this['_getSuggestionCoords'](_0x584e19),_0x4ba28a=_0x4c8fa0[_0x2e7548],_0x39a28d=_0x4c8fa0[_0x58c8fe];_0x4ba28a<=_0x487f0[_0x4c716f]&&_0x487f0[_0x4c716f]+_0x4d9727<=_0x39a28d&&(_0x584e19['addRange'](_0x2d1f93),_0xa811c1=!0x0);}return _0xa811c1;};_0x595f3c['model']['document']['registerPostFixer'](_0x13bd05=>{let _0x51d7fa=!0x1;for(const _0x304bd5 of _0x595f3c['model']['document']['differ']['getChanges']())if('insert'==_0x304bd5['type']){if('tableRow'==_0x304bd5['name']){for(const _0x50439e of _0x304bd5['position']['nodeAfter']['getChildren']())_0x51d7fa=_0x51d7fa||_0x9d19ea(_0x50439e,_0x13bd05);}else'tableCell'==_0x304bd5['name']&&(_0x51d7fa=_0x51d7fa||_0x9d19ea(_0x304bd5['position']['nodeAfter'],_0x13bd05));}return _0x51d7fa;});}['_getSuggestionCoords'](_0x8e0f93){return this['_getCoordsForCells'](_0x8e0f93['getRanges']()['map'](_0x4487cf=>_0x4487cf['start']['nodeAfter']));}}function xe(_0x3610d4){return Array['from'](new Set(_0x3610d4)['values']());}class Nt extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x43bf02=this['editor'],_0x19af18=_0x43bf02['model']['document']['selection'],_0x5bcec1=_0x43bf02['locale'];if(!_0x43bf02['plugins']['has']('TableEditing'))return;const _0x5c8374=_0x43bf02['plugins']['get']('TrackChangesEditing'),_0x1a7caf=_0x43bf02['plugins']['get']('TableUtils'),_0x45fe72=_0x43bf02['plugins']['get'](Ct);_0x45fe72['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5c8374['enableCommand']('mergeTableCells',()=>{const _0x39abea=_0x1a7caf['getSelectionAffectedTableCells'](_0x43bf02['model']['document']['selection']);_0x43bf02['model']['change'](()=>{_0x5c8374['markMultiRangeBlockFormat'](_0x39abea,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x43bf02['commands']['get']('mergeTableCells')['on']('execute',(_0x39a24e,_0x3a90cb)=>{_0x43bf02['commands']['get']('trackChanges')['value']&&(_0x3a90cb['length']>0x0&&_0x3a90cb[_0x3a90cb['length']-0x1]&&_0x3a90cb[_0x3a90cb['length']-0x1]['forceDefaultExecution']||_0x5c8374['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x39a24e['stop']());},{'priority':'highest'});for(const _0x16ef78 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x274d11=_0x43bf02['commands']['get'](_0x16ef78);_0x5c8374['enableCommand'](_0x16ef78,()=>{const _0x4d54ac=_0x43bf02['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x767929=>_0x767929['is']('element','tableCell')),_0x9a6c29=_0x274d11['value'];_0x43bf02['model']['change'](()=>{_0x5c8374['markMultiRangeBlockFormat']([_0x4d54ac,_0x9a6c29],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x193507 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4c3388=_0x43bf02['commands']['get'](_0x193507);_0x5c8374['enableCommand'](_0x193507,()=>{const _0x47bd2c=_0x1a7caf['getSelectionAffectedTableCells'](_0x43bf02['model']['document']['selection'])[0x0],_0x11ac47=_0x47bd2c['findAncestor']('table'),{column:_0x341e9a,row:_0x36eebc}=_0x1a7caf['getCellLocation'](_0x47bd2c);let _0x26e0d9=[];if('horizontally'==_0x4c3388['direction']){const _0x38de85=_0x1a7caf['createTableWalker'](_0x11ac47,{'startRow':_0x36eebc,'endRow':_0x36eebc,'includeAllSlots':!0x0});_0x26e0d9=Array['from'](_0x38de85)['map'](_0x262ad1=>_0x262ad1['cell']);}else{const _0x1b0980=_0x1a7caf['createTableWalker'](_0x11ac47,{'column':_0x341e9a,'includeAllSlots':!0x0});_0x26e0d9=Array['from'](_0x1b0980)['map'](_0x266fbb=>_0x266fbb['cell']);}_0x43bf02['model']['change'](_0x2922fb=>{_0x5c8374['markBlockFormat'](_0x2922fb['createRangeOn'](_0x47bd2c),{'commandName':_0x193507,'commandParams':[]},_0x26e0d9,_0x193507);});});}_0x5c8374['descriptionFactory']['registerDescriptionCallback'](_0x3db5bf=>{if('formatBlock'!=_0x3db5bf['type']&&'formatInline'!=_0x3db5bf['type'])return;const {data:_0x162c77}=_0x3db5bf;return _0x162c77&&'mergeTableCells'==_0x162c77['commandName']?{'type':'format','content':c(_0x5bcec1,'*Merge\x20cells*')}:void 0x0;}),_0x5c8374['descriptionFactory']['registerDescriptionCallback'](_0x50ab24=>{if('formatBlock'!=_0x50ab24['type']&&'formatInline'!=_0x50ab24['type'])return;const {data:_0x14f4d7}=_0x50ab24;return _0x14f4d7?'splitTableCellVertically'==_0x14f4d7['commandName']?{'type':'format','content':c(_0x5bcec1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x14f4d7['commandName']?{'type':'format','content':c(_0x5bcec1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x43059d=_0x45fe72['_acceptFormatSuggestionCallbackFactory']();for(const _0x5dbbc7 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5c8374['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dbbc7,'accept',_0x43059d);for(const _0x2fd387 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5c8374['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2fd387,'accept',_0x43059d);_0x5c8374['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x452b8d=>{_0x43bf02['model']['change'](_0x304baa=>{const _0x2c7c11=Array['from'](_0x19af18['getRanges']())['map'](_0x9c9fe9=>_0x39b5cf['fromRange'](_0x9c9fe9));_0x304baa['setSelection'](_0x452b8d),_0x43bf02['commands']['get']('mergeTableCells')['refresh'](),_0x43bf02['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b54c3=_0x2c7c11['filter'](_0x304694=>'$graveyard'!=_0x304694['root']['rootName']);_0x1b54c3['length']>0x0&&_0x304baa['setSelection'](_0x1b54c3);for(const _0x23fe72 of _0x2c7c11)_0x23fe72['detach']();});});for(const _0x53c910 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xff6964=_0x43bf02['commands']['get'](_0x53c910);_0xff6964['on']('set:isEnabled',(_0x3216b5,_0x283153,_0x2eca40)=>{if(_0x2eca40){const _0x1ab712=_0x43bf02['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc13593=>_0xc13593['is']('element','tableCell'));this['_areMergableCells'](_0xff6964['value'],_0x1ab712)||(_0x3216b5['return']=!0x1,_0x3216b5['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3cb8fd=this['editor']['commands']['get']('mergeTableCells'),_0x53981f=this['editor']['plugins']['get']('TableUtils');if(!_0x3cb8fd['isEnabled'])return!0x1;const _0x530d5d=_0x53981f['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x280c08 of _0x530d5d)for(const _0x1b41d7 of _0x530d5d)if(_0x280c08!=_0x1b41d7&&!this['_areMergableCells'](_0x280c08,_0x1b41d7))return!0x1;return!0x0;}['_areMergableCells'](_0x1904ff,_0xc8a84d){const _0x398bed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255e0a=this['editor']['model']['createRangeOn'](_0x1904ff),_0x899cca=this['editor']['model']['createRangeOn'](_0xc8a84d),_0x1ee67f=new Set(),_0x12eb65=new Set();for(const _0x485f29 of _0x398bed['getSuggestions']())if(('insertion'==_0x485f29['type']||'deletion'==_0x485f29['type']||'mergeTableCells'==_0x485f29['subType'])&&_0x485f29['isInContent']){for(const _0x3f9d6a of _0x485f29['getRanges']())_0x3f9d6a['containsRange'](_0x255e0a,!0x0)&&_0x1ee67f['add'](_0x485f29['type']+':'+_0x485f29['author']['id']),_0x3f9d6a['containsRange'](_0x899cca,!0x0)&&_0x12eb65['add'](_0x485f29['type']+':'+_0x485f29['author']['id']);}if(_0x1ee67f['size']!=_0x12eb65['size'])return!0x1;for(const _0x5141c1 of _0x1ee67f)if(!_0x12eb65['has'](_0x5141c1))return!0x1;return!0x0;}}class Dt extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x303059=this['editor'];if(!_0x303059['plugins']['has']('TableEditing'))return;const _0x44e564=_0x303059['locale'],_0x739425=_0x303059['plugins']['get']('TrackChangesEditing');_0x739425['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x739425['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x739425['registerBlockAttribute']('headingRows'),_0x739425['registerBlockAttribute']('headingColumns'),_0x739425['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x44e564,'FORMAT_HEADER_ROW')),_0x739425['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x44e564,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9c5901=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2fe67b=this['editor']['plugins']['get']('TableUtils'),_0x4d91ce=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x42c620({showActiveMarker:_0xd505f=!0x0,setDataAttribute:_0x2ccbc3=!0x0}={}){return(_0x10220f,_0x92c5f,_0x461595)=>{const {type:_0x283c70,id:_0x1f18fa}=_0x9c5901['_splitMarkerName'](_0x92c5f['markerName']),_0x145a3b=_0x9c5901['getSuggestion'](_0x1f18fa),_0x4d07b3=_0x145a3b['data'];if('formatBlock'!=_0x145a3b['type']||!_0x4d07b3||'setTableColumnHeader'!=_0x4d07b3['commandName'])return;if(_0x92c5f['item'])return void _0x10220f['stop']();if(!_0x461595['consumable']['consume'](_0x92c5f['markerRange'],_0x10220f['name']))return;const _0x3dcb7f=_0x92c5f['markerRange']['start']['nodeAfter'],_0x5e075f=_0x92c5f['markerRange']['end']['nodeBefore'],_0x4b1721=_0x3dcb7f['parent']['parent'],{column:_0x27f48f}=_0x2fe67b['getCellLocation'](_0x3dcb7f),{column:_0x2a1d22}=_0x2fe67b['getCellLocation'](_0x5e075f);for(let _0x230a29=_0x27f48f;_0x230a29<=_0x2a1d22;_0x230a29++){const _0x34ea31=_0x2fe67b['createTableWalker'](_0x4b1721,{'column':_0x230a29,'includeAllSlots':!0x1});for(const _0x378f51 of _0x34ea31){const _0x2952a6=_0x378f51['cell'],_0x45910a=_0x461595['mapper']['toViewElement'](_0x2952a6);_0x461595['writer']['addClass']('ck-suggestion-marker-'+_0x283c70,_0x45910a),_0x2ccbc3&&_0x461595['writer']['setAttribute']('data-suggestion',_0x1f18fa,_0x45910a),_0x461595['mapper']['bindElementToMarker'](_0x45910a,_0x92c5f['markerName']),_0xd505f&&(_0x9c5901['activeMarkers']['includes'](_0x92c5f['markerName'])?_0x461595['writer']['addClass']('ck-suggestion-marker--active',_0x45910a):_0x461595['writer']['removeClass']('ck-suggestion-marker--active',_0x45910a));}}};}_0x9c5901['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4d91ce),_0x9c5901['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4d91ce),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x42c620(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xae49f4,_0x34bf7c,_0x16063c)=>{_0x16063c['options']['showSuggestionHighlights']&&_0x42c620({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xae49f4,_0x34bf7c,_0x16063c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x10a0de,_0x543fe6,_0x28a91c)=>{const {type:_0x1fc6dd,id:_0x2dad6f}=_0x9c5901['_splitMarkerName'](_0x543fe6['markerName']),_0x18d47e=_0x9c5901['getSuggestion'](_0x2dad6f),_0x8e6336=_0x18d47e['data'];if('formatBlock'!=_0x18d47e['type']||!_0x8e6336||'setTableColumnHeader'!=_0x8e6336['commandName'])return;const _0x647051=_0x28a91c['mapper']['markerNameToElements'](_0x543fe6['markerName']);if(_0x647051){for(const _0x568247 of _0x647051)_0x28a91c['writer']['removeClass']('ck-suggestion-marker-'+_0x1fc6dd,_0x568247),_0x28a91c['writer']['removeClass']('ck-suggestion-marker--active',_0x568247),_0x28a91c['writer']['removeAttribute']('data-suggestion',_0x568247),_0x28a91c['mapper']['unbindElementFromMarkerName'](_0x568247,_0x543fe6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x437e77=this['editor'],_0x568c05=_0x437e77['locale'];function _0x1a7abe(_0x2775ff){return{'type':'format','content':c(_0x568c05,'*Format:*\x20%0',_0x2775ff)};}_0x437e77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x587066=>{if('formatBlock'!=_0x587066['type'])return;const {data:_0x1d6bf6}=_0x587066;if(_0x1d6bf6){if('setTableRowHeader'==_0x1d6bf6['commandName']){const _0x38aa22=_0x1d6bf6['commandParams'][0x0]['forceValue'];return _0x1a7abe(c(_0x568c05,_0x38aa22?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1d6bf6['commandName']){const _0x1a7acb=_0x1d6bf6['commandParams'][0x0]['forceValue'];return _0x1a7abe(c(_0x568c05,_0x1a7acb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x59f721{['afterInit'](){const _0xd31ec0=this['editor'],_0x5c7b1d=_0xd31ec0['locale'],_0x57d786=_0xd31ec0['plugins']['get']('TrackChangesEditing');function _0x2ef867(_0x1bb5e9){return{'type':'format','content':''+c(_0x5c7b1d,'*Set\x20table\x20type:*\x20%0',_0x1bb5e9)};}_0xd31ec0['plugins']['has']('TableLayout')&&(_0x57d786['enableCommand']('insertTableLayout'),_0x57d786['enableDefaultAttributesIntegration']('tableType'),_0x57d786['registerBlockAttribute']('tableType'),_0x57d786['descriptionFactory']['registerElementLabel'](_0xc6b783=>_0xc6b783['is']('element','table')&&'layout'===_0xc6b783['getAttribute']('tableType'),_0x347ff0=>c(_0x5c7b1d,'ELEMENT_LAYOUT_TABLE',_0x347ff0)),_0x57d786['descriptionFactory']['registerDescriptionCallback'](_0x162f7b=>{const {data:_0x5753e0}=_0x162f7b;if(_0x5753e0&&'tableType'==_0x5753e0['key'])switch(_0x5753e0['newValue']){case'layout':return _0x2ef867(c(_0x5c7b1d,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x2ef867(c(_0x5c7b1d,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x2fcd86=>[_0x2fcd86,null]));class $t extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x178f3f=this['editor'];if(!_0x178f3f['plugins']['has']('TableClipboard'))return;const _0x4868af=_0x178f3f['plugins']['get']('TrackChangesEditing'),_0x477dfb=_0x178f3f['plugins']['get']('TableUtils'),_0x18b08a=_0x178f3f['plugins']['get'](Ct),_0x3a79b3=_0x178f3f['plugins']['get']('TableClipboard'),_0x2a702e=_0x178f3f['plugins']['get']('TableSelection'),_0x99e24=_0x178f3f['plugins']['get'](_0x3de457);_0x18b08a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x178f3f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x178f3f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a6898=null,_0x376159=!0x1;_0x99e24['on']('contentInsertion',(_0x3043aa,_0x4fe06a)=>{_0x376159='paste'===_0x4fe06a['method'];}),_0x178f3f['model']['on']('insertContent',(_0x14c33a,_0x18b3c8)=>{if(!_0x376159&&null===_0x2a702e['getSelectedTableCells']())return;const [_0x32d93f,_0x1b048b]=_0x18b3c8,_0x1d8641=_0x18b3c8[_0x18b3c8['length']-0x1];_0x1d8641&&_0x1d8641['forceDefaultExecution']||_0x4868af['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4a164b,_0x54a320,_0x58bc56,_0x39da26,_0x2ac08f){if(_0x54a320&&!_0x54a320['is']('documentSelection'))return!0x1;const _0x3d29ec=_0x2ac08f['getTableIfOnlyTableInContent'](_0x4a164b,_0x58bc56);if(!_0x3d29ec||!He(_0x3d29ec,void 0x0,_0x39da26))return!0x1;const _0x3a5530=_0x39da26['getSelectionAffectedTableCells'](_0x58bc56['document']['selection']);if(!_0x3a5530['length'])return!0x1;const _0x4217c8=_0x3a5530[0x0]['findAncestor']('table'),_0x1d89b8=_0x39da26['getRowIndexes'](_0x3a5530),_0x207e3c=_0x39da26['getColumnIndexes'](_0x3a5530),_0x5ba761={'startRow':_0x1d89b8['first'],'endRow':_0x1d89b8['last'],'startColumn':_0x207e3c['first'],'endColumn':_0x207e3c['last']};return 0x1==_0x3a5530['length']&&(_0x5ba761['endRow']+=_0x39da26['getRows'](_0x3d29ec)-0x1,_0x5ba761['endColumn']+=_0x39da26['getColumns'](_0x3d29ec)-0x1),He(_0x4217c8,_0x5ba761,_0x39da26);}(_0x32d93f,_0x1b048b,_0x178f3f['model'],_0x477dfb,_0x3a79b3)&&(_0x14c33a['stop'](),_0x3a6898={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x178f3f['model']['change'](()=>{_0x178f3f['model']['insertContent'](_0x18b3c8[0x0],_0x18b3c8[0x1],_0x18b3c8[0x2],{'forceDefaultExecution':!0x0});const _0x508ecf=_0x5011f0(),{rowInsertionRanges:_0x18026a,columnInsertionRanges:_0x1d4125,insertionRanges:_0x3883e2,deletionRanges:_0x34368b,cells:_0x5d09c9}=_0x3a6898;_0x18026a['length']&&_0x4868af['markMultiRangeInsertion'](_0x18026a,'tablePasteRow',{'tablePasteChainId':_0x508ecf}),_0x1d4125['length']&&_0x4868af['markMultiRangeInsertion'](_0x1d4125,'tablePasteColumn',{'tablePasteChainId':_0x508ecf}),_0x3883e2['length']&&(_0x4868af['markMultiRangeInsertion'](_0x3883e2,'tablePaste',{'tablePasteChainId':_0x508ecf,'skipNestingCheck':!0x0}),_0x3883e2['forEach'](_0x241379=>_0x241379['detach']?.())),_0x34368b['length']&&(_0x4868af['markMultiRangeDeletion'](_0x34368b,'tablePaste',{'tablePasteChainId':_0x508ecf,'skipNestingCheck':!0x0}),_0x34368b['forEach'](_0x1d80ab=>_0x1d80ab['detach']?.()));const _0x196692=_0x4868af['markMultiRangeBlockFormat'](_0x5d09c9['map'](({element:_0x1bf912})=>_0x1bf912),{'formatGroupId':_0x5011f0()},[],'tablePasteCell',{'tablePasteChainId':_0x508ecf});if(_0x196692){const _0x201b5d=_0x196692['getMarkers'](),_0x11e010=[];for(const {element:_0x211055,attributes:_0x5b1195}of _0x5d09c9){if(!_0x5b1195)continue;const _0x591e37=_0x178f3f['model']['createRangeOn'](_0x211055),_0x12504f=_0x201b5d['find'](_0x2ac909=>_0x2ac909['getRange']()['isEqual'](_0x591e37));_0x12504f&&_0x11e010['push']([_0x12504f['name'],_0x5b1195]);}_0x11e010['length']&&_0x196692['setAttribute']('markerAttributes',Object['fromEntries'](_0x11e010));}_0x3a6898=null;}));},{'priority':_0xc3ad2a['high']+0xa}),_0x99e24['on']('contentInsertion',()=>{_0x376159=!0x1;},{'priority':'lowest'}),_0x178f3f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x566606,_0x59fe05)=>{const [_0x594190,_0x52544c,,_0x51502a]=_0x59fe05;if(!_0x3a6898)return;_0x566606['stop']();const _0x4dfbdc=_0x594190['cell'],_0x3dd217=_0x52544c,_0x2583c6=De(_0x4dfbdc),_0x473270=De(_0x3dd217);_0x566606['return']=_0x4dfbdc;let _0xfdd777=null,_0x23194f=null;if(_0x473270||_0x2583c6){if(_0x2583c6&&!_0x473270){_0x51502a['remove'](_0x4dfbdc['getChild'](0x0));for(const _0x226254 of Array['from'](_0x3dd217['getChildren']()))_0x51502a['insert'](_0x226254,_0x4dfbdc,'end');const _0xc284a=_0x3a6898['rowInsertionIndexes']['includes'](_0x594190['row']),_0x31d16d=_0x3a6898['columnInsertionIndexes']['includes'](_0x594190['column']);_0xc284a||_0x31d16d||(_0xfdd777=_0x39b5cf['fromRange'](_0x51502a['createRangeIn'](_0x4dfbdc)));}else _0x473270&&!_0x2583c6&&(_0x23194f=_0x51502a['createRangeIn'](_0x4dfbdc));}else{const _0x5e0475=_0x51502a['createElement']('tableCellSuggestion'),_0xf86ac9=_0x51502a['createElement']('tableCellSuggestion');_0x51502a['wrap'](_0x51502a['createRangeIn'](_0x4dfbdc),_0xf86ac9),_0x51502a['insert'](_0x5e0475,_0x4dfbdc,0x0);for(const _0x5df6ad of Array['from'](_0x3dd217['getChildren']()))_0x51502a['insert'](_0x5df6ad,_0x5e0475,'end');_0xfdd777=_0x39b5cf['fromRange'](_0x51502a['createRangeOn'](_0x5e0475)),_0x23194f=_0x39b5cf['fromRange'](_0x51502a['createRangeOn'](_0xf86ac9));}const _0x1a9a12=Array['from'](_0x3dd217['getAttributes']())['filter'](([_0x8d57db])=>Oe['includes'](_0x8d57db));_0x3a6898['cells']['push']({'element':_0x4dfbdc,'attributes':_0x1a9a12['length']?Object['fromEntries'](_0x1a9a12):null}),_0xfdd777&&_0x3a6898['insertionRanges']['push'](_0xfdd777),_0x23194f&&_0x3a6898['deletionRanges']['push'](_0x23194f);},{'priority':'high'}),_0x477dfb['on']('insertColumns',(_0x4524b0,_0x287bc6)=>{const [_0x2fa10b,_0x532d7d={}]=_0x287bc6;if(!_0x3a6898)return;const _0x4b2ba1=_0x532d7d['at']||0x0,_0x374026=_0x532d7d['columns']||0x1;_0x3a6898['columnInsertionIndexes']=new Array(_0x374026)['fill'](_0x4b2ba1)['map']((_0x3583b0,_0x37ca6b)=>_0x3583b0+_0x37ca6b);for(const {cell:_0x46e359}of _0x477dfb['createTableWalker'](_0x2fa10b,{'startColumn':_0x4b2ba1,'endColumn':_0x4b2ba1+_0x374026-0x1}))_0x3a6898['columnInsertionRanges']['push'](_0x178f3f['model']['createRangeOn'](_0x46e359));},{'priority':'low'}),_0x477dfb['on']('insertRows',(_0x1d0392,_0x180a09)=>{const [_0x4c274f,_0x377db4={}]=_0x180a09;if(!_0x3a6898)return;const _0x49d8cf=_0x377db4['at']||0x0,_0x2ed148=_0x377db4['rows']||0x1;_0x3a6898['rowInsertionIndexes']=new Array(_0x2ed148)['fill'](_0x49d8cf)['map']((_0x3392f2,_0x55b2f1)=>_0x3392f2+_0x55b2f1);for(const {cell:_0x2f4e61}of _0x477dfb['createTableWalker'](_0x4c274f,{'startRow':_0x49d8cf,'endRow':_0x49d8cf+_0x2ed148-0x1}))_0x3a6898['rowInsertionRanges']['push'](_0x178f3f['model']['createRangeOn'](_0x2f4e61));},{'priority':'low'}),_0x4868af['descriptionFactory']['registerDescriptionCallback'](_0xd2b10e=>{if(_0xd2b10e['subType']&&_0xd2b10e['subType']['startsWith']('tablePaste'))return _0xd2b10e['previous']?{}:{'type':'insertion','content':c(_0x178f3f['locale'],'*Replace\x20table\x20cells*')};});const _0x55d2b0=()=>!0x1;for(const _0x244971 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4868af['_suggestionFactory']['registerCustomCallback']('insertion',_0x244971,'join',_0x55d2b0),_0x4868af['_suggestionFactory']['registerCustomCallback']('deletion',_0x244971,'join',_0x55d2b0),_0x4868af['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x244971,'join',_0x55d2b0);_0x4868af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x55d2b0),_0x4868af['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x23d92a,_0x50fa93,_0x346c8d)=>{const _0x8332d4=_0x23d92a['map'](_0x4d15bc=>_0x4d15bc['getContainedElement']())['filter'](_0x99c93f=>_0x99c93f),_0xf50106=new Map(_0x8332d4['map'](_0x52b080=>[_0x52b080,null]));if(_0x3a6898){for(const {element:_0x1553dd,attributes:_0x11f359}of _0x3a6898['cells'])_0x11f359&&_0xf50106['set'](_0x1553dd,_0x11f359);}else{if(_0x346c8d&&_0x346c8d['markerAttributes'])for(const [_0x3dc600,_0x469cca]of Object['entries'](_0x346c8d['markerAttributes'])){const _0x427944=_0x178f3f['model']['markers']['get'](_0x3dc600),_0x155221=_0x427944?_0x427944['getRange']()['getContainedElement']():null;_0x155221&&_0xf50106['set'](_0x155221,_0x469cca);}}_0x178f3f['model']['change'](_0x3f0f4b=>{for(const [_0x10afd0,_0x340ea4]of _0xf50106)_0x3f0f4b['setAttributes']({...Ue,..._0x340ea4},_0x10afd0);});});const _0x3feb7c=(_0x4e715f,_0x5b30fa)=>{_0x4868af['_suggestionFactory']['registerCustomCallback'](_0x4e715f,'tablePaste',_0x5b30fa,(_0x3f6a33,_0x2b712e,_0x2c39db)=>{_0x178f3f['model']['change'](_0x3430af=>{const _0x2f9527=[];for(const _0x517fbb of _0x3f6a33){const _0x4ff912=_0x517fbb['start']['nodeAfter'];_0x4ff912['is']('element','tableCellSuggestion')&&_0x2f9527['push'](_0x4ff912);}_0x4868af['_suggestionFactory']['getSuggestionCallback'](_0x4e715f,null,_0x5b30fa)(_0x3f6a33,_0x2b712e,_0x2c39db);for(const _0x27cc36 of _0x2f9527)'$graveyard'!=_0x27cc36['root']['rootName']&&_0x3430af['unwrap'](_0x27cc36);});});};_0x3feb7c('insertion','accept'),_0x3feb7c('insertion','discard'),_0x3feb7c('deletion','accept'),_0x3feb7c('deletion','discard'),_0x4868af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4d4270=>{const _0x5f270b=_0x4d4270['map'](_0x38aeb7=>_0x38aeb7['getContainedElement']()),_0x5b5ac8=_0x5f270b[0x0]['findAncestor']('table'),{minRow:_0x5cb0d0,maxRow:_0x2332b1}=_0x18b08a['_getCoordsForCells'](_0x5f270b);_0x477dfb['removeRows'](_0x5b5ac8,{'at':_0x5cb0d0,'rows':_0x2332b1-_0x5cb0d0+0x1});}),_0x4868af['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x372cc0=>{const _0x319506=_0x372cc0['map'](_0x15cff8=>_0x15cff8['getContainedElement']()),_0x5120d2=_0x319506[0x0]['findAncestor']('table'),{minColumn:_0xcd179,maxColumn:_0x1c2603}=_0x18b08a['_getCoordsForCells'](_0x319506);_0x477dfb['removeColumns'](_0x5120d2,{'at':_0xcd179,'columns':_0x1c2603-_0xcd179+0x1});});const _0x964f19=(_0x70664d,_0x1a5a20)=>{if(!_0x1a5a20['subType']||!_0x1a5a20['subType']['startsWith']('tablePaste'))return;const _0x1c25df=_0x1a5a20['attributes']['tablePasteChainId'],_0x3eb782=_0x4868af['getSuggestions']()['filter'](_0xf93f58=>_0xf93f58['isInContent']&&_0xf93f58['attributes']&&_0xf93f58['attributes']['tablePasteChainId']==_0x1c25df);_0x3eb782['length']&&_0x1a5a20['getAllAdjacentSuggestions']()['length']!=_0x3eb782['length']&&_0x3eb782['reduce']((_0x30945a,_0x2e46a6)=>(_0x30945a['next']=_0x2e46a6,_0x2e46a6['previous']=_0x30945a,_0x2e46a6));};function _0x5e7f89(_0x1f4e9d,_0x41bc16=!0x0){const {id:_0x29c1ae,authorId:_0x3a1b69}=_0x4868af['_splitMarkerName'](_0x1f4e9d['markerName']),_0x56501f=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xa70d42=_0x4868af['activeMarkers']['includes'](_0x1f4e9d['markerName']);return _0xa70d42&&_0x56501f['push']('ck-suggestion-marker--active'),{'classes':_0x56501f,'attributes':{'data-suggestion':_0x29c1ae,'data-author-id':_0x3a1b69},'priority':_0xa70d42&&_0x41bc16?0xbc2:0xbb8};}_0x4868af['on']('suggestionLoaded',_0x964f19,{'priority':'high'}),_0x4868af['on']('suggestionUnloaded',_0x964f19,{'priority':'high'}),_0x178f3f['model']['document']['registerPostFixer'](()=>{let _0x439a6f=!0x1;const _0x4815c0=Array['from'](_0x178f3f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c4b24,data:_0x4f1c41}of _0x4815c0){const {group:_0x396812,type:_0x5a3fec,id:_0x2625a0}=_0x4868af['_splitMarkerName'](_0x5c4b24);if('suggestion'!=_0x396812||'deletion'!=_0x5a3fec||_0x4f1c41['oldRange'])continue;if(!_0x4868af['hasSuggestion'](_0x2625a0))continue;const _0x3270df=_0x4868af['getSuggestion'](_0x2625a0)['getRanges'](),_0x3c8941=_0x178f3f['plugins']['get']('Users')['me'];for(const _0x9f657b of _0x4868af['getSuggestions']()){if(!_0x9f657b['isInContent']||_0x9f657b['author']!=_0x3c8941)continue;if('formatBlock'!=_0x9f657b['type']||'tablePasteCell'!=_0x9f657b['subType'])continue;if(_0x9f657b['getRanges']()['every'](_0x255467=>_0x3270df['some'](_0xde89cb=>_0xde89cb['containsRange'](_0x255467,!0x0)))){for(const _0x2125b0 of _0x9f657b['getAllAdjacentSuggestions']())_0x2125b0['isInContent']&&(_0x2125b0['discard'](),_0x439a6f=!0x0);}}}return _0x439a6f;}),_0x178f3f['model']['document']['registerPostFixer'](_0x5f1480=>{const _0x40a6de=_0x178f3f['commands']['get']('redo');if(!_0x40a6de||!_0x40a6de['_createdBatches']['has'](_0x5f1480['batch']))return!0x1;let _0x4b16ea=!0x1;const _0x5dfcd8=_0x178f3f['plugins']['get']('Users')['me'],_0x2e9814=_0x178f3f['model']['document']['differ']['getChanges'](),_0x319c3a=Array['from'](_0x178f3f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x55c2a8,data:_0x24e51e})=>{const {group:_0x1ebdd1,subType:_0x343344,authorId:_0x3a7dd2}=_0x4868af['_splitMarkerName'](_0x55c2a8);return'suggestion'==_0x1ebdd1&&'tablePaste'==_0x343344&&_0x3a7dd2==_0x5dfcd8['id']&&!_0x24e51e['oldRange'];});for(const _0x12126c of _0x2e9814){if('insert'!=_0x12126c['type']||'tableCellSuggestion'!=_0x12126c['name']||0x1!=_0x12126c['length'])continue;const _0x521e43=_0x5f1480['createRange'](_0x12126c['position'],_0x12126c['position']['getShiftedBy'](0x1));if(!_0x319c3a['find'](({data:_0x475948})=>_0x475948['newRange']['isEqual'](_0x521e43))){for(const {name:_0x229064,data:_0x372602}of _0x319c3a)if(_0x521e43['containsRange'](_0x372602['newRange'])){_0x5f1480['updateMarker'](_0x229064,{'range':_0x521e43}),_0x4b16ea=!0x0;break;}}}return _0x4b16ea;}),_0x178f3f['model']['document']['registerPostFixer'](_0x2d9e5b=>{let _0x4ceab0=!0x1;const _0x30c762=_0x178f3f['plugins']['get']('Users')['me'],_0x5d7e84=_0x4868af['getSuggestions']()['filter'](_0x116a2e=>_0x116a2e['isInContent']&&_0x116a2e['author']==_0x30c762),_0x59bdbb=new Set(),_0xb3ca8f=new Set();for(const _0x43a0dd of _0x5d7e84)if('tablePaste'==_0x43a0dd['subType'])for(const _0x2389d7 of _0x43a0dd['getMarkers']()){const _0x4cc6e3=_0x2389d7['getRange']()['getContainedElement']();if(_0x4cc6e3){if(_0x4cc6e3['is']('element','tableCellSuggestion')&&De(_0x4cc6e3)){_0x43a0dd['removeMarker'](_0x2389d7['name']),_0x59bdbb['add'](_0x4cc6e3),_0x4ceab0=!0x0;const _0x7ce39d=_0x4cc6e3['nextSibling'],_0x2c330c=_0x4cc6e3['previousSibling'],_0xbe2be4=_0x7ce39d&&_0x7ce39d['is']('element','tableCellSuggestion'),_0x23fc43=_0x2c330c&&_0x2c330c['is']('element','tableCellSuggestion');_0xbe2be4&&!_0x59bdbb['has'](_0x7ce39d)&&_0xb3ca8f['add'](_0x7ce39d),_0x23fc43&&!_0x59bdbb['has'](_0x2c330c)&&_0xb3ca8f['add'](_0x2c330c);}else _0x4cc6e3['is']('element','paragraph')&&_0x4cc6e3['isEmpty']&&(_0x43a0dd['removeMarker'](_0x2389d7['name']),_0x4ceab0=!0x0);}}else{if('tablePasteCell'==_0x43a0dd['subType']){if(!_0x43a0dd['attributes']||!_0x43a0dd['attributes']['tablePasteChainId'])continue;const _0x525672=_0x43a0dd['attributes']['markerAttributes'];if(_0x525672&&Object['keys'](_0x525672)['length'])continue;const _0xcba77f=_0x43a0dd['attributes']['tablePasteChainId'];let _0x3b81ff=!0x0,_0x5e8442=!0x0;for(const _0x3e6539 of _0x5d7e84)if(_0x3e6539['subType']&&_0x3e6539['subType']['startsWith']('tablePaste')){if(!_0x3e6539['attributes']['tablePasteChainId']){_0x5e8442=!0x1;break;}if(_0x3e6539['id']!=_0x43a0dd['id']&&_0x3e6539['attributes']['tablePasteChainId']==_0xcba77f){_0x3b81ff=!0x1;break;}}_0x5e8442&&_0x3b81ff&&(_0x43a0dd['removeMarkers'](),_0x4ceab0=!0x0);}}for(const _0x566ba0 of _0x59bdbb)_0x2d9e5b['remove'](_0x566ba0);for(const _0x39843a of _0xb3ca8f)_0x2d9e5b['unwrap'](_0x39843a);return _0x4ceab0;}),_0x178f3f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x46b4f9=>_0x5e7f89(_0x46b4f9),'converterPriority':'high'}),_0x178f3f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x57b85d,_0x5b791d)=>_0x5b791d['options']['showSuggestionHighlights']?_0x5e7f89(_0x57b85d,!0x1):null,'converterPriority':'high'});const _0x25a26a=_0x178f3f['editing']['view'];this['listenTo'](_0x25a26a['document'],'clipboardOutput',(_0x395e7b,_0x2cce4d)=>{const _0x5727f2=[];for(const _0xa4057a of _0x25a26a['createRangeIn'](_0x2cce4d['content'])['getItems']())_0xa4057a['is']('element','suggestion-td')&&_0x5727f2['push'](_0xa4057a);_0x25a26a['change'](_0x1d52d4=>{for(const _0x14805d of _0x5727f2)_0x1d52d4['move'](_0x1d52d4['createRangeIn'](_0x14805d),_0x1d52d4['createPositionBefore'](_0x14805d)),_0x1d52d4['remove'](_0x14805d);});});}}function De(_0x59fe12){if(_0x59fe12['isEmpty'])return!0x0;const _0x1d8956=_0x59fe12['getChild'](0x0);return _0x1d8956['is']('element','paragraph')&&_0x1d8956['isEmpty'];}function He(_0x8a288,_0x36abaf={},_0x40c4e5){for(const {isAnchor:_0x3d8764,cellHeight:_0x3f323f,cellWidth:_0x3d6de4}of _0x40c4e5['createTableWalker'](_0x8a288,{'includeAllSlots':!0x0,..._0x36abaf}))if(!_0x3d8764||0x1!=_0x3f323f||0x1!=_0x3d6de4)return!0x1;return!0x0;}class Bt extends _0x59f721{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x58b634=this['editor']['plugins']['get']('TrackChangesEditing');_0x58b634['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x58b634['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x58b634['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x58b634['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x58b634['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x58b634['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x18b6f3,_0x3d741b){const _0x29ef61=this['editor']['plugins']['get']('TrackChangesEditing'),_0x488bc8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x29394d=_0x3d741b['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4cd98e=_0x488bc8['getColumnGroupElement'](_0x29394d);let _0x5da0a5=_0x4cd98e?_0x488bc8['getTableColumnsWidths'](_0x4cd98e):null,_0x95f2ca=_0x29394d['getAttribute']('tableWidth')||null;const _0x10fc06=_0x3d741b['tableWidth']||_0x95f2ca,_0xf7c488=_0x3d741b['columnWidths']||_0x5da0a5,_0x19b340=this['editor']['plugins']['get']('Users')['me'];for(const _0x574bba of _0x29ef61['getSuggestions']()){const _0x17437f=_0x574bba['getContainedElement']();if('resizeTable'===_0x574bba['subType']&&_0x17437f===_0x29394d){_0x574bba['author']!==_0x19b340&&_0x574bba['discard']();const _0x5db760=_0x574bba['data']['commandParams'];_0x95f2ca=_0x5db760[0x0]['tableWidth'],_0x5da0a5=_0x5db760[0x0]['columnWidths'];break;}}_0x18b6f3({'table':_0x29394d,'tableWidth':_0x10fc06,'columnWidths':_0xf7c488}),_0x29ef61['markBlockFormat'](_0x29394d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x95f2ca,'columnWidths':_0x5da0a5}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x159a29){if('formatBlock'!=_0x159a29['type']&&'formatInline'!=_0x159a29['type'])return;const {data:_0x3be470}=_0x159a29;if(_0x3be470&&'resizeTable'===_0x3be470['formatGroupId']){const _0x3a1ad8='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3a1ad8)};}}}class xt extends _0x59f721{['afterInit'](){const _0x253993=this['editor'];_0x253993['plugins']['has']('Template')&&_0x253993['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x59f721{['afterInit'](){const _0x3ff5df=this['editor'];if(!_0x3ff5df['commands']['get']('insertTableOfContents'))return;_0x3ff5df['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28c651=_0x3ff5df['plugins']['get']('TrackChangesEditing'),_0x3e1fdb=_0x3ff5df['locale'];_0x28c651['descriptionFactory']['registerElementLabel']('tableOfContents',_0x72bbf5=>c(_0x3e1fdb,'ELEMENT_TABLE_OF_CONTENTS',_0x72bbf5));}}class Rt extends _0x59f721{['afterInit'](){const _0x16c291=this['editor'];if(!_0x16c291['plugins']['has']('Title'))return;const _0x335b36=_0x16c291['plugins']['get']('TrackChangesEditing');_0x335b36['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x16c291['locale'],'ELEMENT_TITLE')),_0x16c291['model']['document']['registerPostFixer'](_0x355181=>{let _0x3624bf=!0x1;const _0x20cf22=Array['from'](_0x16c291['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x39a0e8,data:_0x2beac1}of _0x20cf22){const {group:_0x515dda}=_0x335b36['_splitMarkerName'](_0x39a0e8);if('suggestion'!==_0x515dda||!_0x2beac1['newRange'])continue;const _0x26fff9=_0x2beac1['newRange'],_0x7e2097=_0x26fff9['end']['nodeBefore'];if(!_0x7e2097||!_0x7e2097['is']('element','title-content'))continue;if(!_0x26fff9['start']['isTouching'](_0x26fff9['end']))continue;const _0x58464f=_0x16c291['model']['schema']['getNearestSelectionRange'](_0x26fff9['end'],'forward');if(_0x58464f&&_0x58464f['isCollapsed']){const _0x159337=_0x355181['createRange'](_0x26fff9['start'],_0x58464f['start']);_0x159337['isEqual'](_0x26fff9)||(_0x355181['updateMarker'](_0x39a0e8,{'range':_0x159337}),_0x3624bf=!0x0);}_0x3624bf||(_0x355181['removeMarker'](_0x39a0e8),_0x3624bf=!0x0);}return _0x3624bf;});}}class Tt extends _0x59f721{['afterInit'](){const _0x28602b=this['editor'],_0x226ed9=_0x28602b['plugins']['get']('TrackChangesEditing');_0x28602b['plugins']['has']('Uploadcare')&&(_0x226ed9['enableCommand']('uploadcare'),_0x28602b['plugins']['has']('UploadcareImageEdit')&&(_0x226ed9['enableCommand']('uploadcareImageEdit'),_0x226ed9['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x226ed9['registerBlockAttribute']('uploadcareImageId'),_0x226ed9['descriptionFactory']['registerDescriptionCallback'](_0x2dd645=>{if('attribute'!=_0x2dd645['type'])return;const {data:_0x48981d}=_0x2dd645;return _0x48981d&&'uploadcareImageId'==_0x48981d['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x59f721{['afterInit'](){const _0x171f3b=this['editor'],_0x446cff=_0x171f3b['plugins']['get']('TrackChangesEditing');_0x171f3b['plugins']['has']('UndoEditing')&&(_0x446cff['enableCommand']('undo'),_0x446cff['enableCommand']('redo'));}}class Ut extends _0x59f721{static get['requires'](){return[Ct];}['afterInit'](){const _0x2a9b23=this['editor'];if(!_0x2a9b23['plugins']['has']('TableCaptionEditing'))return;_0x2a9b23['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x59f721{['tableProperties'];['tableCellProperties'];constructor(_0x37cad9){super(_0x37cad9),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 _0x405237=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6f2c12 of this['tableProperties'])_0x405237['enableCommand'](_0x6f2c12,(_0x1784f6,_0x3ba4af)=>{const _0x167e0d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6f2c12,[_0x167e0d],this['tableProperties'],'tableProperties',_0x1784f6,_0x3ba4af);});_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x405237['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3db157,_0x238fa2)=>this['handleDiscardAction'](this['tableProperties'],_0x3db157,_0x238fa2)),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x34a42a of this['tableCellProperties'])_0x405237['enableCommand'](_0x34a42a,(_0x5bdc35,_0x505718)=>{const _0x3cbd48=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x34a42a,_0x3cbd48,this['tableCellProperties'],'tableCellProperties',_0x5bdc35,_0x505718);});_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x405237['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2cdcec,_0xec5a2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2cdcec,_0xec5a2)),_0x405237['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x405237['descriptionFactory']['registerDescriptionCallback'](_0x5f3c6d=>this['handleSuggestionDescription'](_0x5f3c6d));}['_handlePropertyChange'](_0xccb3ec,_0xf493d4,_0x140623,_0x1f5f42,_0x407557,_0x5b7fbe){const _0x3d749a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b7fbe['batch'],()=>{for(const _0x5d662c of _0xf493d4){if(this['_getSuggestion'](_0x5d662c,_0x1f5f42))_0x407557(_0x5b7fbe);else{const _0x4603c3={};for(const _0x489f28 of _0x140623){const _0x3432fa=_0x5d662c['getAttribute'](_0x489f28);void 0x0!==_0x3432fa&&(_0x4603c3[_0x489f28]=_0x3432fa);}_0x407557(_0x5b7fbe),_0x3d749a['markBlockFormat'](_0x5d662c,{'commandParams':[_0x4603c3]},[],_0x1f5f42);}}});}['handleDiscardAction'](_0x1b0598,_0xc7e27b,_0x419a1e){const _0x3974d5=_0xc7e27b[0x0]['start']['nodeAfter'],_0x36f5b9=_0x419a1e['commandParams'][0x0];this['editor']['model']['change'](_0x31749a=>{for(const _0x513bd3 of _0x1b0598)void 0x0!==_0x36f5b9[_0x513bd3]?_0x31749a['setAttribute'](_0x513bd3,_0x36f5b9[_0x513bd3],_0x3974d5):_0x31749a['removeAttribute'](_0x513bd3,_0x3974d5);});}['handleSuggestionDescription'](_0x130494){if(_0x130494['data'])switch(_0x130494['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x474cea,_0x199046){const _0x27ef16=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x478202 of _0x27ef16['getSuggestions']({'skipNotAttached':!0x0})){const _0xe9fb0c=_0x478202['getContainedElement']();if(_0x478202['subType']===_0x199046&&_0xe9fb0c===_0x474cea)return _0x478202;}return null;}}const u='$elementName';class p extends _0x59f721{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x182af8,_0x3bd73a,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5b576f){super(_0x5b576f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x252d14,_0x586ac9,_0x2bcefb,_0x34c3e8)=>{this['_model']['change'](()=>{for(const _0x1408cb of[..._0x34c3e8,..._0x2bcefb])this['_model']['markers']['has'](_0x1408cb)&&_0x5b576f['editing']['reconvertMarker'](_0x1408cb);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5b576f['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x5b576f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5b576f['config']['get']('trackChanges.trackFormatChanges'),_0x5b576f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5b576f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5b576f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f8ca4=this['editor'],_0x123358=(_0x248417,_0x37f260)=>{if('attribute'!=_0x248417)return'ck-suggestion-marker-'+_0x248417;const _0x2f6f3e=_0x37f260['split']('|')[0x0];return this['_isBlockAttribute'](_0x2f6f3e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f8ca4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x251e95=>{const {id:_0x55c9af,authorId:_0x393459,type:_0x1cca1e,subType:_0x4ae0cc}=this['_splitMarkerName'](_0x251e95['markerName']),_0x44d201=['ck-suggestion-marker',_0x123358(_0x1cca1e,_0x4ae0cc)];let _0x53e251=0xbb8;return this['activeMarkers']['includes'](_0x251e95['markerName'])&&(_0x44d201['push']('ck-suggestion-marker--active'),_0x53e251=0xbc2),'deletion'==_0x1cca1e&&(_0x53e251+=0x5),{'classes':_0x44d201,'attributes':{'data-suggestion':_0x55c9af,'data-author-id':_0x393459},'priority':_0x53e251};}}),_0x1f8ca4['conversion']['for']('dataDowncast')['add'](_0x54b8b9=>{_0x54b8b9['on']('addMarker:suggestion',(_0x4f311c,_0x48f7fe,_0x18973c)=>{if(!_0x18973c['options']['showSuggestionHighlights'])return;const _0x4a5ff7=_0x48f7fe['item'];if(!_0x4a5ff7)return;const _0xa4236=_0x18973c['mapper']['toViewElement'](_0x4a5ff7);_0x1f8ca4['model']['schema']['isObject'](_0x4a5ff7)&&_0xa4236&&!_0xa4236['getCustomProperty']('widget')&&_0xa4236['is']('containerElement')&&_0x22735a(_0xa4236,_0x18973c['writer']);},{'priority':'high'});}),_0x1f8ca4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x89c745,_0x2e1619)=>{if(!_0x2e1619['options']['showSuggestionHighlights'])return null;const {id:_0x224d50,authorId:_0x154a52,type:_0x21575a,subType:_0x1cbba9}=this['_splitMarkerName'](_0x89c745['markerName']);return{'classes':['ck-suggestion-marker',_0x123358(_0x21575a,_0x1cbba9)],'priority':0xbb8,'attributes':{'data-suggestion':_0x224d50,'data-author-id':_0x154a52}};}});const _0x31e8de=({showActiveMarkers:_0x20cb1c=!0x0,isAttributeSuggestion:_0x13c7ef=!0x1}={})=>(_0x4760f0,_0x32b2b0,_0xb7a2ab)=>{if(!_0x32b2b0['item'])return;const {id:_0x2fe371,authorId:_0x40d17e}=this['_splitMarkerName'](_0x32b2b0['markerName']);if(_0x13c7ef){const _0x4df824=this['_suggestions']['get'](_0x2fe371),_0x3d7ede=this['_getAttributeKey'](_0x4df824);if(!this['_isBlockAttribute'](_0x3d7ede))return;}if(_0x32b2b0['item']['is']('selection'))return void _0xb7a2ab['consumable']['consume'](_0x32b2b0['item'],_0x4760f0['name']);const _0x231678=_0xb7a2ab['mapper']['toViewElement'](_0x32b2b0['item']);if(_0x32b2b0['item']['is']('element')&&_0x1f8ca4['model']['schema']['isBlock'](_0x32b2b0['item'])&&!_0x231678['getCustomProperty']('addHighlight')){_0xb7a2ab['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x231678),_0xb7a2ab['writer']['setAttribute']('data-suggestion',_0x2fe371,_0x231678),_0xb7a2ab['writer']['setAttribute']('data-author-id',_0x40d17e,_0x231678),_0xb7a2ab['mapper']['bindElementToMarker'](_0x231678,_0x32b2b0['markerName']),_0x20cb1c&&(this['activeMarkers']['includes'](_0x32b2b0['markerName'])?_0xb7a2ab['writer']['addClass']('ck-suggestion-marker--active',_0x231678):_0xb7a2ab['writer']['removeClass']('ck-suggestion-marker--active',_0x231678));for(const _0x58de2c of _0x1f8ca4['model']['createRangeIn'](_0x32b2b0['item'])['getItems']())_0xb7a2ab['consumable']['consume'](_0x58de2c,_0x4760f0['name']);_0xb7a2ab['consumable']['consume'](_0x32b2b0['item'],_0x4760f0['name']);}};_0x1f8ca4['conversion']['for']('dataDowncast')['add'](_0x20952d=>{_0x20952d['on']('addMarker:suggestion:formatBlock',(_0x549f48,_0x11906c,_0x151124)=>{_0x151124['options']['showSuggestionHighlights']&&_0x31e8de({'showActiveMarkers':!0x1})(_0x549f48,_0x11906c,_0x151124);},{'priority':'highest'});}),_0x1f8ca4['conversion']['for']('dataDowncast')['add'](_0x5169a5=>{_0x5169a5['on']('addMarker:suggestion:attribute',(_0x6eef22,_0x5d802c,_0x19ffc4)=>{_0x19ffc4['options']['showSuggestionHighlights']&&_0x31e8de({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x6eef22,_0x5d802c,_0x19ffc4);},{'priority':'highest'});}),_0x1f8ca4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x365e20,_0x403eff)=>{if(_0x403eff['options']['showSuggestionHighlights']){const {id:_0xa648e5,authorId:_0x5d80f3}=this['_splitMarkerName'](_0x365e20);return _0x365e20['includes'](':split')||_0x365e20['includes'](':merge')?{'group':'suggestion','name':_0x365e20['substr'](0xb),'attributes':{'data-suggestion':_0xa648e5,'data-author-id':_0x5d80f3}}:null;}return{'group':'suggestion','name':_0x365e20['substr'](0xb)};}}),_0x1f8ca4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4b0efd,{writer:_0x4bb0f2})=>{let _0x5e287e='suggestion:'+_0x4b0efd['getAttribute']('suggestion-type')+':'+_0x4b0efd['getAttribute']('id');return _0x4b0efd['getAttribute']('marker-count')&&(_0x5e287e+=':'+_0x4b0efd['getAttribute']('marker-count')),_0x4bb0f2['createElement']('$marker',{'data-name':_0x5e287e});}}),_0x1f8ca4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x33b77f=>{_0x33b77f['on']('addMarker:suggestion:formatBlock',_0x31e8de(),{'priority':'high'});}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x24897d=>{_0x24897d['on']('addMarker:suggestion:attribute',_0x31e8de({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x338ae9=>{_0x338ae9['on']('removeMarker:suggestion:formatBlock',(_0x297d02,_0x31fbfb,_0x499d61)=>{const _0xb6ab88=_0x499d61['mapper']['markerNameToElements'](_0x31fbfb['markerName']);if(_0xb6ab88){for(const _0x7192c of _0xb6ab88)_0x7192c['getCustomProperty']('addHighlight')||(_0x499d61['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x7192c),_0x499d61['writer']['removeAttribute']('data-suggestion',_0x7192c),_0x499d61['writer']['removeAttribute']('data-author-id',_0x7192c),_0x499d61['mapper']['unbindElementFromMarkerName'](_0x7192c,_0x31fbfb['markerName']));}},{'priority':'high'});}),_0x1f8ca4['conversion']['for']('editingDowncast')['add'](_0x3ecd9e=>{_0x3ecd9e['on']('removeMarker:suggestion:attribute',(_0xee2861,_0xf20724,_0xa92a33)=>{const _0x2a30ad=_0xa92a33['mapper']['markerNameToElements'](_0xf20724['markerName']);if(!_0x2a30ad)return;const {id:_0x38ac21}=this['_splitMarkerName'](_0xf20724['markerName']),_0x571d24=this['_suggestions']['get'](_0x38ac21),_0x251700=this['_getAttributeKey'](_0x571d24);if(this['_isBlockAttribute'](_0x251700)){for(const _0x2f8b2e of _0x2a30ad)_0x2f8b2e['getCustomProperty']('addHighlight')||(_0xa92a33['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2f8b2e),_0xa92a33['writer']['removeAttribute']('data-suggestion',_0x2f8b2e),_0xa92a33['writer']['removeAttribute']('data-author-id',_0x2f8b2e),_0xa92a33['mapper']['unbindElementFromMarkerName'](_0x2f8b2e,_0xf20724['markerName']));}},{'priority':'high'});}),_0x1f8ca4['model']['document']['registerPostFixer'](_0x3de0eb=>{let _0x46f1b2=!0x1;const _0x463e34=Array['from'](_0x1f8ca4['model']['document']['differ']['getChangedMarkers']()),_0x429c1e=new Set();for(const {name:_0x12fa3a,data:_0x1dd82f}of _0x463e34){const {group:_0xfd970f,type:_0x5ebf48,subType:_0x52ebef,id:_0x9552da}=this['_splitMarkerName'](_0x12fa3a);if('suggestion'!==_0xfd970f)continue;const _0x1e8440=this['_suggestions']['get'](_0x9552da);if(null!=_0x1dd82f['newRange']){'formatInline'==_0x5ebf48&&(_0x46f1b2=_0x46f1b2||Jt(_0x1dd82f['newRange'],_0x12fa3a,_0x3de0eb,_0x1f8ca4['model']['schema']));const _0x3a857d='attribute'==_0x5ebf48&&this['_isBlockAttribute'](_0x52ebef['split']('|')[0x0]);if(_0x1dd82f['newRange']['isCollapsed']||'$graveyard'==_0x1dd82f['newRange']['root']['rootName']||'formatBlock'==_0x5ebf48&&!Ht(_0x1dd82f['newRange'])||_0x3a857d&&!Ht(_0x1dd82f['newRange'])||'deletion'==_0x5ebf48&&!(!Lt(_0x34ef54=_0x1dd82f['newRange'])&&!function(_0x31ad71){return _0x31ad71['start']['parent']==_0x31ad71['end']['nodeBefore']&&_0x31ad71['start']['isAtEnd'];}(_0x34ef54)))_0x3de0eb['removeMarker'](_0x12fa3a),_0x46f1b2=!0x0;else{if(!_0x1e8440||!_0x1e8440['isInContent'])continue;if(_0x1dd82f['newRange']&&_0x1dd82f['oldRange']&&_0x1dd82f['newRange']['isEqual'](_0x1dd82f['oldRange']))continue;_0x429c1e['add'](_0x1e8440);}}}var _0x34ef54;return _0x429c1e['size']>0x0&&(_0x46f1b2=!!this['_joinWithAdjacentSuggestions'](_0x429c1e)||_0x46f1b2),_0x46f1b2;}),_0x1f8ca4['model']['document']['registerPostFixer'](_0xa0f901=>{let _0x58b436=!0x1;for(const _0x1b6dfd of _0x1f8ca4['model']['document']['differ']['getChanges']())if('insert'==_0x1b6dfd['type'])for(const _0x5c020d of this['_suggestions']['values']()){if(_0x5c020d['isMultiRange']||!_0x5c020d['isInContent'])continue;const _0x18ea6a='formatBlock'==_0x5c020d['type'],_0x31686b=this['_getAttributeKey'](_0x5c020d),_0xc79426=_0x31686b&&this['_isBlockAttribute'](_0x31686b);if(!_0x18ea6a&&!_0xc79426)continue;const _0xdf5cbc=_0x5c020d['getFirstRange']();if(_0xdf5cbc['start']['parent']!=_0xdf5cbc['end']['parent']&&!_0xdf5cbc['end']['isAtEnd']){const _0x135719=_0x1f8ca4['model']['createPositionAt'](_0xdf5cbc['start']['nodeAfter'],'end'),_0x4de165=_0x1f8ca4['model']['createRange'](_0xdf5cbc['start'],_0x135719);_0xa0f901['updateMarker'](_0x5c020d['getFirstMarker'](),{'range':_0x4de165}),_0x58b436=!0x0;}}return _0x58b436;}),_0x1f8ca4['model']['document']['registerPostFixer'](_0x48f2c0=>this['_processAttributeChanges'](_0x48f2c0)),_0x1f8ca4['model']['document']['registerPostFixer'](_0x57f741=>!_0x57f741['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x57f741)),_0x1f8ca4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f8ca4['model']['document']['on']('change:data',(_0x50905c,_0x1f1ec6)=>{if(!_0x1f1ec6['isLocal']||_0x1f1ec6['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x384373=_0x1f8ca4['model']['document']['differ']['getChanges']();if(0x0==_0x384373['length'])return;const _0x152d69=[],_0x45d87d=_0x384373['filter'](_0x35218f=>'attribute'==_0x35218f['type']),_0x2f9624=_0x384373['filter'](_0x142f72=>'insert'==_0x142f72['type']&&'$text'!=_0x142f72['name']);for(const _0x5e5a06 of _0x45d87d)this['_isRegisteredAttribute'](_0x5e5a06['attributeKey'])&&_0x152d69['push']({'key':_0x5e5a06['attributeKey'],'newValue':_0x5e5a06['attributeNewValue'],'oldValue':_0x5e5a06['attributeOldValue'],'range':qt(_0x5e5a06['range'],_0x1f8ca4['model'])});for(const _0x195261 of _0x2f9624){if('rename'!=_0x195261['action']&&'refresh'!=_0x195261['action'])continue;const _0x587451=zt(_0x195261['position']['nodeAfter'],_0x1f8ca4['model']),_0x12ec6a=_0x195261['before'];'rename'==_0x195261['action']&&_0x152d69['push']({'key':u,'newValue':_0x195261['name'],'oldValue':_0x12ec6a['name'],'range':_0x587451});for(const [_0x2a70ce,_0x32a652]of _0x12ec6a['attributes']){if(!this['_isRegisteredAttribute'](_0x2a70ce))continue;const _0x3ffb56=_0x195261['attributes']['get'](_0x2a70ce);_0x32a652!==_0x3ffb56&&_0x152d69['push']({'key':_0x2a70ce,'newValue':_0x3ffb56,'oldValue':_0x32a652,'range':_0x587451});}for(const [_0x7b2f9b,_0x5f56f7]of _0x195261['attributes'])this['_isRegisteredAttribute'](_0x7b2f9b)&&(_0x12ec6a['attributes']['has'](_0x7b2f9b)||_0x152d69['push']({'key':_0x7b2f9b,'newValue':_0x5f56f7,'oldValue':null,'range':_0x587451}));}0x0!=_0x152d69['length']&&_0x1f8ca4['model']['enqueueChange'](_0x1f1ec6,_0x3baae8=>{const _0x7eee9d=_0x5011f0();for(const {range:_0x280a56,key:_0x3dd14f,oldValue:_0x526ee3,newValue:_0x3bd82e}of _0x152d69)this['markAttributeChange'](_0x280a56,_0x3dd14f,_0x526ee3,_0x3bd82e,{'groupId':_0x7eee9d});this['_reduceExistingSuggestions'](_0x3baae8,_0x152d69);});},{'priority':'lowest'}),_0x1f8ca4['model']['markers']['on']('update:suggestion',(_0x5be88a,_0x45c887,_0x27d2d6)=>{if(null==_0x27d2d6){const {id:_0x3fdf38}=this['_splitMarkerName'](_0x45c887['name']),_0x15fed1=this['_suggestions']['get'](_0x3fdf38);_0x15fed1&&_0x15fed1['addMarkerName'](_0x45c887['name']);}}),_0x1f8ca4['model']['document']['on']('change:data',()=>{const _0x447dd9=Array['from'](_0x1f8ca4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x38b487=>'suggestion'===this['_splitMarkerName'](_0x38b487['name'])['group']);if(0x0===_0x447dd9['length'])return;_0x447dd9['sort']((_0x2c9860,_0x1197ff)=>{const _0x2d1e10=_0x2c9860['data']['oldRange'],_0xa5169c=_0x1197ff['data']['oldRange'];return null===_0x2d1e10&&null===_0xa5169c?0x0:null===_0x2d1e10&&null!==_0xa5169c?-0x1:null!==_0x2d1e10&&null===_0xa5169c?0x1:_0x2d1e10['start']['isBefore'](_0xa5169c['start'])?-0x1:0x1;});const _0x55ccd3=new Set(),_0x306c4d=new Set();for(const {name:_0x2c4fda,data:_0x4c54a4}of _0x447dd9){const {id:_0x1b3d74}=this['_splitMarkerName'](_0x2c4fda);if(null===_0x4c54a4['oldRange']){const _0x10b65e=this['_handleNewSuggestionMarker'](_0x2c4fda);_0x306c4d['add'](_0x10b65e);}else{const _0x527f79=this['_suggestions']['get'](_0x1b3d74);null!==_0x4c54a4['newRange']||_0x527f79['isInContent']?(_0x55ccd3['add'](_0x527f79['head']),_0x306c4d['add'](_0x527f79)):this['_removeSuggestion'](_0x527f79);}}_0x306c4d['size']>0x0&&this['_refreshSuggestionsChain'](_0x306c4d);for(const _0x14969d of _0x55ccd3)this['fire']('suggestionChanged',_0x14969d);}),_0x1f8ca4['model']['on']('applyOperation',(_0x430a04,_0x3292f4)=>{const _0x107f0e=_0x3292f4[0x0];if(!this['_suggestions']['size'])return;if(!_0x107f0e['isDocumentOperation'])return;if(_0x107f0e['batch']['isUndo']||!_0x107f0e['batch']['isLocal'])return;let _0x4afa99,_0x3008d5;switch(_0x107f0e['type']){case'insert':_0x4afa99=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['position']),_0x3008d5=_0x4afa99['getShiftedBy'](_0x107f0e['howMany']);break;case'split':_0x4afa99=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['splitPosition']),_0x3008d5=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['moveTargetPosition']);break;case'move':_0x4afa99=_0x1f8ca4['model']['createPositionAt'](_0x107f0e['targetPosition']),_0x3008d5=_0x4afa99['getShiftedBy'](_0x107f0e['howMany']);break;default:return;}const _0x2659f1=_0x1f8ca4['model']['createRange'](_0x4afa99,_0x3008d5);_0x1f8ca4['model']['change'](()=>{for(const {suggestion:_0x4ffe4e,meta:_0x24d0fe}of this['_findSuggestions'](_0x2659f1)){if(_0x4ffe4e['isMultiRange'])continue;if('formatInline'==_0x4ffe4e['type'])continue;const _0x21d6a0=this['_getAttributeKey'](_0x4ffe4e);if(_0x21d6a0&&this['_isBlockAttribute'](_0x21d6a0)&&'split'!=_0x107f0e['type'])continue;const _0x53e663=_0x4ffe4e['data']&&_0x4ffe4e['data']['multipleBlocks'];('formatBlock'!=_0x4ffe4e['type']||'split'==_0x107f0e['type']&&!_0x53e663)&&(_0x24d0fe['containsRangeInObject']||'insertion'==_0x4ffe4e['type']&&_0x24d0fe['isOwn']||_0x4ffe4e['getFirstRange']()['containsRange'](_0x2659f1)&&this['_breakSuggestionMarker'](_0x4ffe4e,_0x4afa99,_0x3008d5));}});},{'priority':'lowest'}),_0x1f8ca4['model']['on']('deleteContent',(_0xcd2a40,_0x54f42c)=>{const _0x2a40f2=_0x54f42c[0x0],_0x835aa0=_0x54f42c[0x1];if(_0x835aa0&&_0x835aa0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2a40f2['isCollapsed'])return;const _0x412d4d=_0x1f8ca4['model']['schema'],{start:_0xd8e56d,end:_0x54932a}=_0x2a40f2['getFirstRange'](),_0x4fdefb=_0xd8e56d['nodeAfter']&&_0x412d4d['isLimit'](_0xd8e56d['nodeAfter'])?null:_0x412d4d['getNearestSelectionRange'](_0xd8e56d,'forward'),_0x3d3c76=_0x54932a['nodeBefore']&&_0x412d4d['isLimit'](_0x54932a['nodeBefore'])?null:_0x412d4d['getNearestSelectionRange'](_0x54932a,'backward'),_0x10cb7b=_0x1f8ca4['model']['createRange'](_0x4fdefb?_0x4fdefb['start']:_0xd8e56d,_0x3d3c76?_0x3d3c76['end']:_0x54932a);_0x1f8ca4['model']['change'](_0x4a37a1=>{this['markDeletion'](_0x10cb7b);const _0x422f32=_0x1f8ca4['model']['schema']['getNearestSelectionRange'](_0x10cb7b['start']);_0x2a40f2['is']('documentSelection')?_0x4a37a1['setSelection'](_0x422f32):_0x2a40f2['setTo'](_0x422f32);}),_0xcd2a40['stop']();},{'priority':_0xc3ad2a['normal']+0xa}),_0x1f8ca4['model']['on']('insertContent',(_0x59fc53,_0x470327)=>{const _0x132e96=_0x470327[_0x470327['length']-0x1];_0x132e96&&_0x132e96['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f8ca4['model']['change'](()=>{let _0x413c4b=_0x1f8ca4['model']['insertContent'](_0x470327[0x0],_0x470327[0x1],_0x470327[0x2],{'forceDefaultExecution':!0x0});if(!_0x413c4b)return;_0x59fc53['return']=_0x413c4b['clone']();const _0xcc9a5d=_0x413c4b['end']['nodeBefore'],_0x5b63ae=_0x1f8ca4['model']['schema'];_0xcc9a5d&&_0x5b63ae['isBlock'](_0xcc9a5d)&&!_0x5b63ae['isObject'](_0xcc9a5d)&&(_0x413c4b=_0x1f8ca4['model']['createRange'](_0x413c4b['start'],_0x1f8ca4['model']['createPositionAt'](_0xcc9a5d,'end'))),this['markInsertion'](_0x413c4b);}),_0x59fc53['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3874df=new x(_0x1f8ca4,this['_suggestions']);_0x1f8ca4['commands']['add']('acceptSuggestion',_0x3874df),this['enableCommand']('acceptSuggestion');const _0x3f63a9=new O(_0x1f8ca4,this['_suggestions']);_0x1f8ca4['commands']['add']('discardSuggestion',_0x3f63a9),this['enableCommand']('discardSuggestion'),_0x1f8ca4['commands']['add']('acceptAllSuggestions',new R(_0x1f8ca4,_0x3874df,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f8ca4['commands']['add']('discardAllSuggestions',new R(_0x1f8ca4,_0x3f63a9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f8ca4['commands']['add']('acceptSelectedSuggestions',new E(_0x1f8ca4,_0x3874df,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f8ca4['commands']['add']('discardSelectedSuggestions',new E(_0x1f8ca4,_0x3f63a9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x8dfbe2=_0x1f8ca4['plugins']['get']('CommentsRepository');this['listenTo'](_0x8dfbe2,'addComment',(_0x517f8a,{threadId:_0x3152ed})=>{const _0x5a0499=this['_suggestions']['get'](_0x3152ed);_0x5a0499&&_0x5a0499['commentThread']&&0x1===_0x5a0499['commentThread']['length']&&this['_updateSuggestionData'](_0x3152ed,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x8dfbe2,'removeComment',(_0x31e69e,{threadId:_0x3c11ed})=>{const _0x3c7e55=this['_suggestions']['get'](_0x3c11ed);_0x3c7e55&&_0x3c7e55['commentThread']&&!_0x3c7e55['commentThread']['length']&&this['_updateSuggestionData'](_0x3c11ed,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1e7a3b){const _0x30e9f1=_0x58b508([0x4d,0x38,0x79,0x42,0x34,0x74,0x41,0x35,0x33,0x71,0x69,0x57,0x37,0x52,0x32,0x53,0x65,0x54,0x49,0x70,0x73,0x63,0x67,0x4b,0x77,0x75,0x4e,0x43,0x72,0x36,0x31,0x62,0x4c,0x6e,0x6a,0x64,0x30,0x50,0x5a,0x78,0x55,0x44,0x46,0x56,0x68,0x6b,0x51,0x47,0x6c,0x58,0x45,0x59,0x61,0x48,0x39,0x66,0x76,0x6d,0x4a,0x6f,0x7a,0x4f]),_0x54cd7f=0x1840e652,_0x5a416f=0x18478f02^_0x54cd7f,_0x38f162=window[_0x58b508([0x44,0x61,0x74,0x65])][_0x58b508([0x6e,0x6f,0x77])](),_0x582a60=_0x1e7a3b[_0x58b508([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xcb6ad6=new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5467d9=>{_0x582a60[_0x58b508([0x6f,0x6e,0x63,0x65])](_0x58b508([0x72,0x65,0x61,0x64,0x79]),_0x5467d9);}),_0x427a30={[_0x58b508([0x6b,0x74,0x79])]:_0x58b508([0x45,0x43]),[_0x58b508([0x75,0x73,0x65])]:_0x58b508([0x73,0x69,0x67]),[_0x58b508([0x63,0x72,0x76])]:_0x58b508([0x50,0x2d,0x32,0x35,0x36]),[_0x58b508([0x78])]:_0x58b508([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]),[_0x58b508([0x79])]:_0x58b508([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]),[_0x58b508([0x61,0x6c,0x67])]:_0x58b508([0x45,0x53,0x32,0x35,0x36])},_0x5c9aef=_0x582a60[_0x58b508([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x58b508([0x67,0x65,0x74])](_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x35f583(){let _0xe5b84b,_0x153cab=null,_0x5a1db1=null;try{if(_0x5c9aef==_0x58b508([0x47,0x50,0x4c]))return _0x58b508([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xe5b84b=_0x4f38df(),!_0xe5b84b)return _0x58b508([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xe5b84b[_0x58b508([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a1db1=_0x481929(_0xe5b84b[_0x58b508([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xe5b84b[_0x58b508([0x6a,0x74,0x69])])),await _0x1e39dd()?_0x8718bb()?_0x5961e1()?_0x58b508([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20b95a()?(_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58b508([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x153cab=_0x32ceee(_0x58b508([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x58b508([0x74,0x72,0x69,0x61,0x6c])&&(_0x153cab=_0x32ceee(_0x58b508([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4cdbc5()):_0x58b508([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x58b508([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x58b508([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x58b508([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5961e1(){const _0x418151=[_0x58b508([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x58b508([0x74,0x72,0x69,0x61,0x6c])][_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38f162/0x3e8:0xe10*_0x5a416f;return _0xe5b84b[_0x58b508([0x65,0x78,0x70])]<_0x418151;}function _0x8718bb(){const _0x53b3dc=_0xe5b84b[_0x58b508([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x53b3dc)return!0x1;if(_0x53b3dc[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x2a])))return!0x0;if(_0x53b3dc[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x54,0x43])))return!0x0;if(_0x53b3dc[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x52,0x54,0x43]))){if(_0x2f3f08())return!0x0;if(_0x59da3f()||_0x5547e1())return!0x0;}return!0x1;}function _0x20b95a(){const _0x23b4ab=_0xe5b84b[_0x58b508([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23b4ab||0x0==_0x23b4ab[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x57cd1a}=new URL(window[_0x58b508([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23b4ab[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x57cd1a))return!0x0;const _0x4d2672=_0x57cd1a[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e]));return _0x23b4ab[_0x58b508([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x182ec9=>_0x182ec9[_0x58b508([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58b508([0x2a])))[_0x58b508([0x6d,0x61,0x70])](_0x2a95dd=>_0x2a95dd[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e])))[_0x58b508([0x73,0x6f,0x6d,0x65])](_0x29d330=>_0x4d2672[_0x58b508([0x65,0x76,0x65,0x72,0x79])]((_0x3aa8ce,_0x361140)=>_0x29d330[_0x361140]===_0x3aa8ce||_0x29d330[_0x361140]===_0x58b508([0x2a])));}function _0x4cdbc5(){return _0x153cab&&_0x5a1db1?new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x253e10,_0x56109c)=>{_0x153cab[_0x58b508([0x74,0x68,0x65,0x6e])](_0x253e10,_0x56109c),_0x5a1db1[_0x58b508([0x74,0x68,0x65,0x6e])](_0x284d89=>{_0x284d89!=_0x58b508([0x56,0x61,0x6c,0x69,0x64])&&_0x253e10(_0x284d89);},_0x56109c);}):_0x153cab||_0x5a1db1||_0x58b508([0x56,0x61,0x6c,0x69,0x64]);}}function _0x481929(_0x225ffe,_0x3403d1){return new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa26281=>{if(_0x55dd9d())return _0xa26281(_0x58b508([0x56,0x61,0x6c,0x69,0x64]));_0x2374b2(),_0x582a60[_0x58b508([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x58b508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xa61695=!0x1;const _0x5eab98=_0x5011f0();function _0x3583ac(_0x474132){return!!_0x474132&&(typeof _0x474132===_0x58b508([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x474132===_0x58b508([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x474132[_0x58b508([0x74,0x68,0x65,0x6e])]===_0x58b508([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x474132[_0x58b508([0x63,0x61,0x74,0x63,0x68])]===_0x58b508([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1d0d0c(_0x49fc23){_0x3b9102(_0x49fc23)[_0x58b508([0x74,0x68,0x65,0x6e])](_0x3b9838=>{if(!_0x3b9838||_0x3b9838[_0x58b508([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x58b508([0x6f,0x6b]))return _0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x19e0a5(_0x1ac65a(_0x5eab98+_0x3403d1))!=_0x3b9838[_0x58b508([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x58b508([0x56,0x61,0x6c,0x69,0x64]);})[_0x58b508([0x74,0x68,0x65,0x6e])](_0x51a329=>(_0x1516fa(),_0x51a329),()=>{const _0x47cc70=_0x553140();return null==_0x47cc70?(_0x1516fa(),_0x58b508([0x56,0x61,0x6c,0x69,0x64])):_0x58b508(_0x38f162-_0x47cc70>(0x3c4c6252^_0x54cd7f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x58b508([0x74,0x68,0x65,0x6e])](_0xa26281)[_0x58b508([0x63,0x61,0x74,0x63,0x68])](()=>{_0xa26281(_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24231c=0x187608d2^_0x54cd7f;function _0x1516fa(){const _0x4a8046=_0x58b508([0x6c,0x6c,0x63,0x74,0x2d])+_0x19e0a5(_0x1ac65a(_0x225ffe)),_0x464f67=_0x2cc887(_0x19e0a5(window[_0x58b508([0x4d,0x61,0x74,0x68])][_0x58b508([0x63,0x65,0x69,0x6c])](_0x38f162/_0x24231c)));window[_0x58b508([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58b508([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a8046,_0x464f67);}function _0x553140(){const _0x167a9d=_0x58b508([0x6c,0x6c,0x63,0x74,0x2d])+_0x19e0a5(_0x1ac65a(_0x225ffe)),_0x1bc950=window[_0x58b508([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x58b508([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x167a9d);return _0x1bc950?window[_0x58b508([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cc887(_0x1bc950),0x10)*_0x24231c:null;}function _0x3b9102(_0x3b8da4){return new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x574195,_0x17b5cd)=>{_0x3b8da4[_0x58b508([0x74,0x68,0x65,0x6e])](_0x574195,_0x17b5cd),window[_0x58b508([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17b5cd,0x18413292^_0x54cd7f);});}}_0x582a60[_0x58b508([0x6f,0x6e])](_0x58b508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x522e6a,_0x3678fa)=>{if(_0x3678fa[0x0]!=_0x225ffe)return _0xa26281(_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3678fa[0x1]={..._0x3678fa[0x1],[_0x58b508([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5eab98};},{[_0x58b508([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58b508([0x68,0x69,0x67,0x68])}),_0x582a60[_0x58b508([0x6f,0x6e])](_0x58b508([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1723ed=>{_0x3583ac(_0x1723ed[_0x58b508([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xa61695=!0x0,_0x1d0d0c(_0x1723ed[_0x58b508([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x58b508([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x58b508([0x6c,0x6f,0x77])}),_0xcb6ad6[_0x58b508([0x74,0x68,0x65,0x6e])](()=>{_0xa61695||_0xa26281(_0x58b508([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55dd9d(){return _0x582a60[_0x58b508([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58b508([0x76,0x69,0x65,0x77])][_0x58b508([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x58b508([0x61,0x75,0x74,0x6f]);}function _0x2374b2(){_0x582a60[_0x58b508([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58b508([0x76,0x69,0x65,0x77])][_0x58b508([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58b508([0x61,0x75,0x74,0x6f]);}}function _0x32ceee(_0x1b11c0){const _0x5f7e94=[new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x499b63=>setTimeout(_0x499b63,0x1849d89e^_0x54cd7f)),_0xcb6ad6[_0x58b508([0x74,0x68,0x65,0x6e])](()=>new window[(_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29d67d=>{let _0x94a65d=0x0;_0x582a60[_0x58b508([0x6d,0x6f,0x64,0x65,0x6c])][_0x58b508([0x6f,0x6e])](_0x58b508([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x80294a,_0x2666d3)=>{_0x2666d3[0x0][_0x58b508([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x94a65d++,_0x94a65d==(0x1840e7aa^_0x54cd7f)&&(_0x29d67d(),_0x80294a[_0x58b508([0x6f,0x66,0x66])]());});}))];return window[_0x58b508([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58b508([0x72,0x61,0x63,0x65])](_0x5f7e94)[_0x58b508([0x74,0x68,0x65,0x6e])](()=>_0x1b11c0);}async function _0x2cfc51(){await _0xcb6ad6,_0x582a60[_0x58b508([0x6d,0x6f,0x64,0x65,0x6c])][_0x58b508([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x534667,_0x582a60[_0x58b508([0x6d,0x6f,0x64,0x65,0x6c])][_0x58b508([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x534667,_0x582a60[_0x58b508([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x58b508([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f3f08(){return _0x52955e(_0x58b508([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x17da55(_0x58b508([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x58b508([0x73,0x74,0x61,0x74,0x65])]==_0x58b508([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x59da3f(){return _0x52955e(_0x58b508([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 _0x5547e1(){return _0x52955e(_0x58b508([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x207a3b(_0x30e251){const _0x41723a=_0x42e282();_0x582a60[_0x41723a]=_0x58b508([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x30e251,_0x30e251!=_0x58b508([0x56,0x61,0x6c,0x69,0x64])&&_0x2cfc51();}function _0x42e282(){const _0x25eabd=window[_0x58b508([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x58b508([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x58b508([0x6e,0x6f,0x77])]())[_0x58b508([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x58b508([0x2e]),'');let _0x261265=_0x58b508([0x4d]);for(let _0x208772=0x0;_0x208772<_0x25eabd[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x208772+=0x2){let _0x733532=window[_0x58b508([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x25eabd[_0x58b508([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x208772,_0x208772+0x2));_0x733532>=_0x30e9f1[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x733532-=_0x30e9f1[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x261265+=_0x30e9f1[_0x733532];}return _0x261265;}function _0x4f38df(){const _0x2a5f2e=_0x5c9aef[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e]));if(0x3!=_0x2a5f2e[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x53256a(_0x2a5f2e[0x1]);function _0x53256a(_0x385e83){const _0x1465dc=_0x27fb6f(_0x385e83);return _0x1465dc&&_0x24fb40()?_0x1465dc:null;function _0x24fb40(){const _0x838bfa=_0x1465dc[_0x58b508([0x6a,0x74,0x69])],_0x4ef120=window[_0x58b508([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x838bfa[_0x58b508([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x838bfa[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x185c15={..._0x1465dc,[_0x58b508([0x6a,0x74,0x69])]:_0x838bfa[_0x58b508([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x838bfa[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x185c15[_0x58b508([0x76,0x63])],_0x1ac65a(_0x185c15)==_0x4ef120;}}}async function _0x1e39dd(){let _0xbe5338=!0x0;try{const _0x51158e=_0x5c9aef[_0x58b508([0x73,0x70,0x6c,0x69,0x74])](_0x58b508([0x2e])),[_0x37ca2a,_0x43010b,_0x3e26c6]=_0x51158e;return _0x47f73f(_0x37ca2a),await _0x46af90(_0x37ca2a,_0x43010b,_0x3e26c6),_0xbe5338;}catch{return!0x1;}function _0x47f73f(_0x167108){const _0x234457=_0x27fb6f(_0x167108);_0x234457&&_0x234457[_0x58b508([0x61,0x6c,0x67])]==_0x58b508([0x45,0x53,0x32,0x35,0x36])||(_0xbe5338=!0x1);}async function _0x46af90(_0x4657d6,_0x188fd7,_0x545d4c){const _0x56162a=window[_0x58b508([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x58b508([0x66,0x72,0x6f,0x6d])](_0x48d247(_0x545d4c),_0x405a2b=>_0x405a2b[_0x58b508([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x105ee2=new window[(_0x58b508([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x58b508([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4657d6+_0x58b508([0x2e])+_0x188fd7),_0x2e4bb1=window[_0x58b508([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x58b508([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2e4bb1)return;const _0x1d9c7f=await _0x2e4bb1[_0x58b508([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x58b508([0x6a,0x77,0x6b]),_0x427a30,{[_0x58b508([0x6e,0x61,0x6d,0x65])]:_0x58b508([0x45,0x43,0x44,0x53,0x41]),[_0x58b508([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x58b508([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x58b508([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2e4bb1[_0x58b508([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x58b508([0x6e,0x61,0x6d,0x65])]:_0x58b508([0x45,0x43,0x44,0x53,0x41]),[_0x58b508([0x68,0x61,0x73,0x68])]:{[_0x58b508([0x6e,0x61,0x6d,0x65])]:_0x58b508([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d9c7f,_0x56162a,_0x105ee2)||(_0xbe5338=!0x1);}}function _0x27fb6f(_0x15e783){return _0x15e783[_0x58b508([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x58b508([0x65,0x79]))?JSON[_0x58b508([0x70,0x61,0x72,0x73,0x65])](_0x48d247(_0x15e783)):null;}function _0x48d247(_0x54c032){return window[_0x58b508([0x61,0x74,0x6f,0x62])](_0x54c032[_0x58b508([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x58b508([0x2b]))[_0x58b508([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x58b508([0x2f])));}function _0x1ac65a(_0x49d986){let _0x4b9503=0x1505;function _0x4bd63d(_0x57af11){for(let _0x50240a=0x0;_0x50240a<_0x57af11[_0x58b508([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x50240a++){const _0x430ef0=_0x57af11[_0x58b508([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x50240a);_0x4b9503=(_0x4b9503<<0x5)+_0x4b9503+_0x430ef0,_0x4b9503&=_0x4b9503;}}function _0x502918(_0x109d51){Array[_0x58b508([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x109d51)?_0x109d51[_0x58b508([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x502918):_0x109d51&&typeof _0x109d51==_0x58b508([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x58b508([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x109d51)[_0x58b508([0x73,0x6f,0x72,0x74])]()[_0x58b508([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16f122,_0x70c158])=>{_0x4bd63d(_0x16f122),_0x502918(_0x70c158);}):_0x4bd63d(window[_0x58b508([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x109d51));}return _0x502918(_0x49d986),_0x4b9503>>>0x0;}function _0x19e0a5(_0x4b04de){return _0x4b04de[_0x58b508([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x58b508([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x58b508([0x30]));}function _0x2cc887(_0x4ae5fa){return _0x4ae5fa[_0x58b508([0x73,0x70,0x6c,0x69,0x74])]('')[_0x58b508([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x58b508([0x6a,0x6f,0x69,0x6e])]('');}function _0x52955e(_0x44e624){return _0x582a60[_0x58b508([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58b508([0x68,0x61,0x73])](_0x44e624);}function _0x17da55(_0x175033){return _0x582a60[_0x58b508([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x58b508([0x67,0x65,0x74])](_0x175033);}function _0x534667(){}function _0x58b508(_0x569c2e){return _0x569c2e['map'](_0x2afc6f=>String['fromCharCode'](_0x2afc6f))['join']('');}_0x207a3b(await _0x35f583());}(this);}set['adapter'](_0x2b7aed){if(this['_adapter'])throw new _0x280f1c('track-changes-adapter-already-set',this);this['_adapter']=_0x2b7aed;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x2ad23b=!0x1,toJSON:_0x33f6e5=!0x1}={}){const _0x32e51b=[];for(const _0x37cbf7 of this['_suggestions']['values']())_0x2ad23b&&!_0x37cbf7['isInContent']||_0x32e51b['push'](_0x37cbf7);return _0x33f6e5?_0x32e51b['map'](_0x4919b6=>_0x4919b6['toJSON']()):_0x32e51b;}['getSuggestion'](_0x4c1d11){const _0x4280e3=this['_suggestions']['get'](_0x4c1d11);if(!_0x4280e3)throw new _0x280f1c('track-changes-suggestion-not-found',this);return _0x4280e3;}['hasSuggestion'](_0x28caf0){return this['_suggestions']['has'](_0x28caf0);}['addSuggestionData'](_0x4c9275){const {authorId:_0x545abc,id:_0x37e56f,originalSuggestionId:_0x442c5e,attributes:_0x4a7879}=_0x4c9275,[_0x382f33,_0x3fb68d]=_0x4c9275['type']['split'](':'),_0x4992d4=this['_suggestions']['get'](_0x37e56f)||this['_createSuggestion'](_0x382f33,_0x3fb68d,_0x37e56f,_0x545abc,_0x4a7879,_0x442c5e);if(this['_addThreadToSuggestion'](_0x4992d4),this['_checkSuggestionCorrectness'](_0x4992d4,_0x382f33,_0x3fb68d||null,_0x545abc),_0x4992d4['createdAt']=_0x4c9275['createdAt'],_0x4992d4['_isDataLoaded']=!0x0,_0x4a7879&&_0x4a7879['@external']){const _0x1538ed=_0x4a7879['@external'],_0x2c8edd=this['_getExternalAuthor'](_0x1538ed['authorName']);_0x4992d4['authoredAt']=_0x1538ed['createdAt'],_0x4992d4['author']=_0x2c8edd,_0x4992d4['isExternal']=!0x0;}else _0x4992d4['authoredAt']=_0x4c9275['createdAt'];switch(_0x4c9275['data']&&(_0x4992d4['data']=_0x4c9275['data']),_0x4c9275['attributes']&&(_0x4992d4['attributes']=_0x4c9275['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4992d4['_saved']=!0x0),this['_suggestionState']['get'](_0x4992d4)){case'notReady':this['_suggestionState']['set'](_0x4992d4,'dataReady');break;case'markerReady':_0x4992d4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4992d4])),this['_refreshSuggestionsChain'](new Set([_0x4992d4])),this['_suggestionState']['set'](_0x4992d4,'ready'),this['fire']('suggestionLoaded',_0x4992d4)):this['_suggestionState']['set'](_0x4992d4,'removed');}return _0x4992d4;}['acceptSuggestion'](_0x367b43){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2733d3 of _0x367b43['getAllAdjacentSuggestions']())_0x2733d3['accept']();});});}['discardSuggestion'](_0x312515){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2cbf94 of _0x312515['getAllAdjacentSuggestions']())_0x2cbf94['discard']();});});}['enableCommand'](_0x846e44,_0x2c23f9){const _0x284336=this['editor']['commands']['get'](_0x846e44);if(!_0x284336)throw new _0x280f1c('track-changes-command-not-found',this,{'commandName':_0x846e44});if(this['_enabledCommands']['has'](_0x284336))throw new _0x280f1c('track-changes-enable-command-twice',this,{'commandName':_0x846e44});this['_enabledCommands']['add'](_0x284336),_0x2c23f9&&_0x284336['on']('execute',(_0x11ccde,_0xc3c0e0)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xc3c0e0['length']>0x0&&_0xc3c0e0[_0xc3c0e0['length']-0x1]&&_0xc3c0e0[_0xc3c0e0['length']-0x1]['forceDefaultExecution']?_0xc3c0e0['pop']():(_0x11ccde['return']=_0x2c23f9((..._0x57232c)=>_0x284336['execute'](..._0x57232c,{'forceDefaultExecution':!0x0}),..._0xc3c0e0),_0x11ccde['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1343aa){let _0x2c1ba4,_0x43a838;const _0x5826ed=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2c1ba4=_0x1343aa();}catch(_0x369752){_0x43a838=_0x369752;}return _0x5826ed||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x43a838&&_0x280f1c['rethrowUnexpectedError'](_0x43a838,this),_0x2c1ba4;}['markInsertion'](_0x347bb2,_0x408e64=null,_0x18e330={}){if(_0x347bb2['isCollapsed'])return null;const _0x5f40fd=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x18e330['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x502c0a,meta:_0x3ad36d}of this['_findSuggestions'](_0x347bb2,'insertion'))if(_0x3ad36d['isOwn']){if(!_0x3ad36d['isNextTo']){if(_0x3ad36d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x502c0a,_0x18e330))continue;return _0x502c0a;}if(Xt(_0x502c0a,_0x18e330))return _0x502c0a;this['_breakSuggestionMarker'](_0x502c0a,_0x347bb2['start'],_0x347bb2['end']);break;}if(_0x408e64==_0x502c0a['subType']&&Xt(_0x502c0a,_0x18e330)){const _0x36b15a=_0x502c0a['getFirstRange']();return _0x36b15a['start']['isEqual'](_0x347bb2['end'])?this['_setSuggestionRange'](_0x502c0a,this['_model']['createRange'](_0x347bb2['start'],_0x36b15a['end'])):this['_setSuggestionRange'](_0x502c0a,this['_model']['createRange'](_0x36b15a['start'],_0x347bb2['end'])),_0x502c0a;}}const _0x2dab48=_0x5011f0(),_0x55aa1d=_0x5f40fd['id'],_0x1751b4=_0x408e64?'insertion:'+_0x408e64:'insertion',_0x45c6cc=this['_setSuggestionData']({'id':_0x2dab48,'type':_0x1751b4,'createdAt':new Date(),'authorId':_0x55aa1d,'attributes':_0x18e330});return this['_addSuggestionMarker'](_0x1751b4,_0x2dab48,_0x55aa1d,_0x347bb2),_0x45c6cc;}['markMultiRangeInsertion'](_0xf718ff,_0x141f0f='multi',_0x4481d5={}){const _0x35c3ef=this['editor']['plugins']['get']('Users')['me'],_0x3fe373=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x141f0f,'join');this['_trackingSessionId']&&(_0x4481d5['trackingSessionId']=this['_trackingSessionId']);for(const _0x14d010 of this['getSuggestions']())if(_0x14d010['author']['id']==_0x35c3ef['id']&&'insertion'==_0x14d010['type']&&_0x14d010['subType']==_0x141f0f&&Xt(_0x14d010,_0x4481d5)&&(_0x3fe373(_0x14d010['getRanges'](),_0xf718ff)||_0x3fe373(_0xf718ff,_0x14d010['getRanges']()))){for(const _0x6c82d8 of _0xf718ff)_0x14d010['addRange'](_0x6c82d8);return _0x14d010;}for(const {suggestion:_0xd125b4,meta:_0x5b0043}of this['_findSuggestions'](_0xf718ff,'insertion')){if(!_0x5b0043['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b0043['containsRangeInObject'])continue;if(!Xt(_0xd125b4,_0x4481d5))continue;let _0x448315=!0x0;for(const _0x54ccbe of _0xd125b4['getRanges']())for(const _0x357655 of _0xf718ff)if(!_0x54ccbe['containsRange'](_0x357655)){_0x448315=!0x1;break;}if(_0x448315)return _0xd125b4;}const _0x2e5eda=_0x5011f0(),_0x291645=_0x35c3ef['id'],_0x5d6cbc='insertion:'+_0x141f0f,_0x494e0a=this['_setSuggestionData']({'id':_0x2e5eda,'type':_0x5d6cbc,'createdAt':new Date(),'authorId':_0x291645,'attributes':_0x4481d5});for(const _0x15e51a of _0xf718ff)this['_addSuggestionMarker'](_0x5d6cbc,_0x2e5eda,_0x291645,_0x15e51a,o['getMultiRangeId']());return _0x494e0a;}['markInlineFormat'](_0x4b9a94,_0x363126,_0x511eea=null,_0x33b91e={}){if(_0x511eea=_0x511eea||Kt(_0x363126),_0x4b9a94['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x33b91e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2379d0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x511eea,'accept');return this['forceDefaultExecution'](()=>_0x2379d0([_0x4b9a94],_0x363126,_0x33b91e)),null;}const _0x55fce1=this['editor']['plugins']['get']('Users')['me'],_0x254784=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2b6fae,meta:_0x1b81d7}of this['_findSuggestions'](_0x4b9a94,'insertion'))_0x1b81d7['isOwn']&&!_0x1b81d7['isInsideObject']&&_0x254784['push'](..._0x2b6fae['getRanges']());}const _0x404b36=function(_0x12a379,_0x9a3579){const _0x5b1414=[];for(const _0x56f512 of _0x9a3579){const _0xcd6c8d=_0x12a379['getIntersection'](_0x56f512);_0xcd6c8d&&_0x5b1414['push'](_0xcd6c8d);}return _0x5b1414;}(_0x4b9a94,_0x254784),_0x6eb6a3=function(_0x582fd1,_0x4b1d0a){const _0x500245=[_0x582fd1];for(const _0x644988 of _0x4b1d0a){let _0x482ada=0x0;for(;_0x482ada<_0x500245['length'];){const _0x173217=_0x500245[_0x482ada]['getDifference'](_0x644988);_0x500245['splice'](_0x482ada,0x1,..._0x173217),_0x482ada+=_0x173217['length'];}}return _0x500245;}(_0x4b9a94,_0x254784);_0x404b36['length']&&this['_model']['change'](()=>{for(const _0x18e3d7 of _0x404b36){const _0x5079e8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x511eea,'accept');this['forceDefaultExecution'](()=>_0x5079e8([_0x18e3d7],_0x363126,_0x33b91e));}});for(const _0x4ddf1a of _0x6eb6a3){let _0x2c61a5=null,_0x191956=_0x4ddf1a['start'],_0x19847c=_0x4ddf1a['end'];for(const {suggestion:_0x2d1760,meta:_0x17e4de}of this['_findSuggestions'](_0x4ddf1a,'formatInline')){if(!_0x17e4de['isOwn'])continue;if(_0x2d1760['subType']!=_0x511eea)continue;if(!Xt(_0x2d1760,_0x33b91e))continue;const _0x8ea8d6=_0x2d1760['getFirstRange']();if(_0x8ea8d6['containsRange'](_0x4ddf1a,!0x0))return null;_0x191956=_0x191956['isBefore'](_0x8ea8d6['start'])?_0x191956:_0x8ea8d6['start'],_0x19847c=_0x19847c['isAfter'](_0x8ea8d6['end'])?_0x19847c:_0x8ea8d6['end'],_0x2c61a5?_0x8ea8d6['start']['isBefore'](_0x2c61a5['getFirstRange']()['start'])?(_0x2c61a5['removeMarkers'](),_0x2c61a5=_0x2d1760):_0x2d1760['removeMarkers']():_0x2c61a5=_0x2d1760;}const _0x3e56bc=this['_model']['createRange'](_0x191956,_0x19847c);if(_0x2c61a5)this['_setSuggestionRange'](_0x2c61a5,_0x3e56bc);else{const _0x1b07c5=_0x5011f0(),_0x46ba45=_0x55fce1['id'];this['_setSuggestionData']({'id':_0x1b07c5,'type':'formatInline:'+_0x511eea,'data':_0x363126,'createdAt':new Date(),'authorId':_0x46ba45,'attributes':_0x33b91e}),this['_addSuggestionMarker']('formatInline:'+_0x511eea,_0x1b07c5,_0x46ba45,_0x3e56bc);}}return null;}['markBlockFormat'](_0xfda663,_0x1a6afd,_0x1b84d7=[],_0x43ad8f=null,_0xe2c120={}){_0x1a6afd['formatGroupId']||(_0x1a6afd['formatGroupId']=_0x1a6afd['commandName']),_0x1a6afd['multipleBlocks']=_0xfda663['is']('range'),_0x43ad8f=_0x43ad8f||Kt(_0x1a6afd);const _0x214e75=_0x1b84d7['map'](_0x22fbf5=>zt(_0x22fbf5,this['_model'])),_0x291e03=_0xfda663['is']('range')?_0xfda663:zt(_0xfda663,this['_model']);if(this['_trackingSessionId']&&(_0xe2c120['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x39868a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43ad8f,'accept');return this['forceDefaultExecution'](()=>_0x39868a([_0x291e03],_0x1a6afd,_0xe2c120)),null;}_0x214e75['push'](_0x291e03);let _0x1c91d9=!0x0;for(const _0x10f9f5 of _0x214e75)if(!this['_rangeIsInLocalUserInsertion'](_0x10f9f5)){_0x1c91d9=!0x1;break;}if(_0x1c91d9&&'always'!==this['_trackFormatChanges']){const _0x4a4d92=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43ad8f,'accept');return this['forceDefaultExecution'](()=>_0x4a4d92([_0x291e03],_0x1a6afd,_0xe2c120)),null;}let _0x4d5859=null,_0x298c44=_0x291e03['start'],_0x5411df=_0x291e03['end'];for(const {suggestion:_0x4ec79b,meta:_0x30d214}of this['_findSuggestions'](_0x291e03,'formatBlock')){if(!_0x30d214['isOwn'])continue;if(_0x30d214['isNextTo']||_0x30d214['containsRangeInObject']||_0x30d214['isInsideObject'])continue;if(_0x4ec79b['data']['formatGroupId']!=_0x1a6afd['formatGroupId'])continue;if(!Xt(_0x4ec79b,_0xe2c120))continue;const _0x1f49ef=_0x4ec79b['getFirstRange']();if(_0x4ec79b['subType']==_0x43ad8f){if(_0x1f49ef['containsRange'](_0x291e03,!0x0))return null;_0x298c44=_0x298c44['isBefore'](_0x1f49ef['start'])?_0x298c44:_0x1f49ef['start'],_0x5411df=_0x5411df['isAfter'](_0x1f49ef['end'])?_0x5411df:_0x1f49ef['end'],_0x4d5859?_0x1f49ef['start']['isBefore'](_0x4d5859['getFirstRange']()['start'])?(_0x4d5859['removeMarkers'](),_0x4d5859=_0x4ec79b):_0x4ec79b['removeMarkers']():_0x4d5859=_0x4ec79b;}else{const _0xf28612=_0x291e03['getIntersection'](_0x1f49ef);this['_cutOutSuggestionMarker'](_0x4ec79b,_0xf28612);}}const _0x5647b5=this['editor']['plugins']['get']('Users')['me'],_0x308a65=_0x5011f0(),_0xdc3533=_0x5647b5['id'];if(_0x4d5859)return this['_setSuggestionRange'](_0x4d5859,this['_model']['createRange'](_0x298c44,_0x5411df)),_0x4d5859;{const _0x8065a8=this['_setSuggestionData']({'id':_0x308a65,'type':'formatBlock:'+_0x43ad8f,'data':_0x1a6afd,'createdAt':new Date(),'authorId':_0xdc3533,'attributes':_0xe2c120});return this['_addSuggestionMarker']('formatBlock:'+_0x43ad8f,_0x308a65,_0xdc3533,this['_model']['createRange'](_0x298c44,_0x5411df)),_0x8065a8;}}['markMultiRangeBlockFormat'](_0x2aa7ef,_0x47ba00,_0x4871b1=[],_0x2aa847=null,_0x18c91f={}){_0x47ba00['formatGroupId']||(_0x47ba00['formatGroupId']=_0x47ba00['commandName']);const _0x339c8f=_0x2aa7ef[0x0];_0x47ba00['multipleBlocks']=_0x339c8f['is']('range'),_0x2aa847=_0x2aa847||Kt(_0x47ba00);const _0x8766a3=_0x4871b1['map'](_0x28cce4=>zt(_0x28cce4,this['_model'])),_0x17726d=_0x339c8f['is']('range')?_0x2aa7ef:_0x2aa7ef['map'](_0x479d79=>zt(_0x479d79,this['_model']));if(this['_trackingSessionId']&&(_0x18c91f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x11a7b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa847,'accept');return this['forceDefaultExecution'](()=>_0x11a7b9(_0x17726d,_0x47ba00,_0x18c91f)),null;}_0x8766a3['push'](..._0x17726d);let _0x2f619a=!0x0;for(const _0xf9dedc of _0x8766a3)if(!this['_rangeIsInLocalUserInsertion'](_0xf9dedc)){_0x2f619a=!0x1;break;}if(_0x2f619a&&'always'!==this['_trackFormatChanges']){const _0x3d0dce=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa847,'accept');return this['forceDefaultExecution'](()=>_0x3d0dce(_0x17726d,_0x47ba00,_0x18c91f)),null;}const _0x23a81b=this['editor']['plugins']['get']('Users')['me'];for(const _0x373e72 of this['getSuggestions']()){if(_0x373e72['author']['id']!=_0x23a81b['id'])continue;if('formatBlock'!=_0x373e72['type']||_0x373e72['data']['formatGroupId']!=_0x47ba00['formatGroupId'])continue;if(!Xt(_0x373e72,_0x18c91f))continue;const _0x1a342f=_0x373e72['subType']==_0x2aa847;for(let _0x15a605=0x0;_0x15a605<_0x17726d['length'];_0x15a605++){const _0x46924b=_0x17726d[_0x15a605];for(const _0x4f7283 of _0x373e72['getMarkers']()){const _0x19fdc3=_0x4f7283['getRange']();if(_0x46924b['isEqual'](_0x19fdc3)){_0x1a342f?(_0x17726d['splice'](_0x15a605,0x1),_0x15a605--):_0x373e72['removeMarker'](_0x4f7283['name']);break;}}}}if(0x0==_0x17726d['length'])return null;const _0x3141f7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2aa847,'join');for(const _0x4fa43f of this['getSuggestions']())if(_0x4fa43f['author']['id']==_0x23a81b['id']&&'formatBlock'==_0x4fa43f['type']&&_0x4fa43f['data']['formatGroupId']==_0x47ba00['formatGroupId']&&_0x4fa43f['subType']==_0x2aa847&&Xt(_0x4fa43f,_0x18c91f)&&(_0x3141f7(_0x4fa43f['getRanges'](),_0x17726d)||_0x3141f7(_0x17726d,_0x4fa43f['getRanges']()))){for(const _0x5db278 of _0x17726d)_0x4fa43f['addRange'](_0x5db278);return _0x4fa43f;}const _0x290f15=_0x5011f0(),_0x4d5d9b=_0x23a81b['id'],_0x4dcf4e='formatBlock:'+_0x2aa847,_0x2f0820=this['_setSuggestionData']({'id':_0x290f15,'type':_0x4dcf4e,'data':_0x47ba00,'createdAt':new Date(),'authorId':_0x4d5d9b,'attributes':_0x18c91f});for(const _0x49bb2d of _0x17726d)this['_addSuggestionMarker'](_0x4dcf4e,_0x290f15,_0x4d5d9b,_0x49bb2d,o['getMultiRangeId']());return _0x2f0820;}['markDeletion'](_0x124f04,_0x315f72=null,_0xa2c51b={}){if(_0x124f04['isCollapsed'])return null;const _0x2450b9=this['editor']['plugins']['get']('Users')['me'],_0x3deefb=new _0x39b5cf(_0x124f04['start'],_0x124f04['end']);this['_trackingSessionId']&&(_0xa2c51b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x561491,meta:_0x37fb8d}of this['_findSuggestions'](_0x3deefb,'insertion'))if(_0x37fb8d['isOwn']&&!_0x37fb8d['isNextTo']){if(_0x561491['isMultiRange']){const _0x45f931=_0x561491['getRanges']()['filter'](_0x3e1e98=>'$graveyard'!=_0x3e1e98['root']['rootName']);_0x45f931['every'](_0x168a06=>_0x3deefb['containsRange'](_0x168a06,!0x0))&&_0x561491['discard']();if(_0x45f931['some'](_0x199f76=>_0x199f76['containsRange'](_0x3deefb,!0x0))){const _0x1a83cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x315f72,'accept');return this['forceDefaultExecution'](()=>_0x1a83cf([_0x3deefb],null,_0xa2c51b)),null;}}else{const _0x4959f8=_0x3deefb['getIntersection'](_0x561491['getFirstRange']());null!==_0x4959f8&&_0x561491['_onDiscard']([_0x4959f8],null,_0xa2c51b);}}if(_0x3deefb['detach'](),_0x3deefb['isCollapsed']||'$graveyard'==_0x3deefb['root']['rootName'])return null;let _0x26e8e2=null,_0x53c4a3=_0x3deefb['start'],_0x50dc91=_0x3deefb['end'];const _0x21a876=this['_findSuggestions'](_0x3deefb,'deletion');for(const {suggestion:_0x505dc5,meta:_0x5df3d8}of _0x21a876){const _0x327aff=this['_model']['createRange'](_0x53c4a3,_0x50dc91);if(_0x5df3d8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5df3d8['containsRangeInObject']&&!_0x5df3d8['isInsideObject'])){if(_0x505dc5['isMultiRange']){if(!Xt(_0x505dc5,_0xa2c51b))continue;let _0x75c5d9=!0x0;for(const _0x3908f4 of _0x505dc5['getRanges']()){if(_0x3908f4['containsRange'](_0x327aff,!0x0))return _0x505dc5;_0x327aff['containsRange'](_0x3908f4)||(_0x75c5d9=!0x1);}_0x75c5d9&&_0x505dc5['discard']();}else{const _0x1f8fec=_0x505dc5['getFirstRange']();if(_0x1f8fec['containsRange'](_0x327aff,!0x0))return _0x505dc5;if(!Xt(_0x505dc5,_0xa2c51b)){_0x327aff['containsRange'](_0x1f8fec)?_0x505dc5['removeMarkers']():_0x1f8fec['containsPosition'](_0x53c4a3)?_0x53c4a3=_0x1f8fec['end']:_0x1f8fec['containsPosition'](_0x50dc91)&&(_0x50dc91=_0x1f8fec['start']);continue;}_0x53c4a3=_0x53c4a3['isBefore'](_0x1f8fec['start'])?_0x53c4a3:_0x1f8fec['start'],_0x50dc91=_0x50dc91['isAfter'](_0x1f8fec['end'])?_0x50dc91:_0x1f8fec['end'],_0xa2c51b=Object['assign']({},_0x505dc5['attributes']),_0x26e8e2?_0x1f8fec['start']['isBefore'](_0x26e8e2['getFirstRange']()['start'])?(_0x26e8e2['removeMarkers'](),_0x26e8e2=_0x505dc5):_0x505dc5['removeMarkers']():_0x26e8e2=_0x505dc5;}}}if(_0x26e8e2)return this['_setSuggestionRange'](_0x26e8e2,this['_model']['createRange'](_0x53c4a3,_0x50dc91)),_0x26e8e2;{const _0x430070=_0x5011f0(),_0x4fbf55=this['_model']['createRange'](_0x53c4a3,_0x50dc91),_0x53d9a3=_0x2450b9['id'],_0x593423=_0x315f72?'deletion:'+_0x315f72:'deletion',_0x5777b1=this['_setSuggestionData']({'id':_0x430070,'type':_0x593423,'createdAt':new Date(),'authorId':_0x53d9a3,'attributes':_0xa2c51b});return this['_addSuggestionMarker'](_0x593423,_0x430070,_0x53d9a3,_0x4fbf55),_0x5777b1;}}['markMultiRangeDeletion'](_0x52dbee,_0x415758='multi',_0xde674d={}){const _0x4890b4=this['editor']['plugins']['get']('Users')['me'],_0x17f621=_0x52dbee['map'](_0x42869e=>new _0x39b5cf(_0x42869e['start'],_0x42869e['end'])),_0x5d7833=new Set();this['_trackingSessionId']&&(_0xde674d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x28715c,meta:_0x4a8744}of this['_findSuggestions'](_0x17f621,'insertion'))_0x4a8744['isOwn']&&!_0x4a8744['isNextTo']&&_0x5d7833['add'](_0x28715c);for(const _0xc8c874 of _0x5d7833)if(_0xc8c874['isMultiRange']){const _0x37ba4d=_0xc8c874['getRanges']();(!_0xc8c874['attributes']||!_0xc8c874['attributes']['skipNestingCheck'])&&(_0x37ba4d['every'](_0x551d12=>_0x17f621['some'](_0xa6da3d=>_0xa6da3d['containsRange'](_0x551d12,!0x0)))&&_0xc8c874['discard']());if(_0x17f621['every'](_0x498b04=>_0x37ba4d['some'](_0x335598=>_0x335598['containsRange'](_0x498b04,!0x0)))){const _0x4ea4a3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x415758,'accept');return this['forceDefaultExecution'](()=>_0x4ea4a3(_0x52dbee,null,_0xde674d)),null;}}else{const _0x1f7690=_0xc8c874['getFirstRange']();_0x17f621['some'](_0x289fa8=>_0x289fa8['containsRange'](_0x1f7690,!0x0))&&_0xc8c874['discard']();if(_0x17f621['every'](_0x9caaf3=>_0x1f7690['containsRange'](_0x9caaf3,!0x0))){const _0x2215ae=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x415758,'accept');return this['forceDefaultExecution'](()=>_0x2215ae(_0x17f621,null,_0xde674d)),null;}}const _0x225e74=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x415758,'join');let _0x3fe293=null;for(const _0x4bf861 of this['getSuggestions']())if(_0x4bf861['author']['id']==_0x4890b4['id']&&_0x4bf861['isInContent']&&'deletion'==_0x4bf861['type']&&_0x4bf861['subType']==_0x415758&&Xt(_0x4bf861,_0xde674d)&&(_0x225e74(_0x4bf861['getRanges'](),_0x17f621)||_0x225e74(_0x17f621,_0x4bf861['getRanges']()))){if(_0x3fe293){if(_0x4bf861['commentThread']&&_0x4bf861['commentThread']['length'])continue;for(const _0x588198 of _0x4bf861['getRanges']())_0x3fe293['isIntersectingWithRange'](_0x588198)||_0x3fe293['addRange'](_0x588198);_0x4bf861['removeMarkers']();}else{_0x3fe293=_0x4bf861;for(const _0x25dcd7 of _0x17f621)_0x4bf861['isIntersectingWithRange'](_0x25dcd7)||_0x4bf861['addRange'](_0x25dcd7);}}if(_0x3fe293)return _0x3fe293;_0x5d7833['clear']();for(const {suggestion:_0x7b1aba,meta:_0x3ac8c5}of this['_findSuggestions'](_0x17f621,'deletion'))_0x3ac8c5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3ac8c5['containsRangeInObject']&&!_0x3ac8c5['isInsideObject'])&&Xt(_0x7b1aba,_0xde674d)&&_0x5d7833['add'](_0x7b1aba);for(const _0x5ef77c of _0x5d7833){const _0x4266ec=_0x5ef77c['getRanges']();if(!_0xde674d||!_0xde674d['skipNestingCheck']){if(_0x17f621['every'](_0x33115e=>_0x4266ec['some'](_0x4693b0=>_0x4693b0['containsRange'](_0x33115e,!0x0))))return _0x5ef77c;}(!_0x5ef77c['attributes']||!_0x5ef77c['attributes']['skipNestingCheck'])&&(_0x4266ec['every'](_0x51b108=>_0x17f621['some'](_0x4fccb7=>_0x4fccb7['containsRange'](_0x51b108,!0x0)))&&_0x5ef77c['discard']());}const _0x5319cc=_0x5011f0(),_0xbb963d=_0x4890b4['id'],_0x5e3ff0='deletion:'+_0x415758,_0x498f95=this['_setSuggestionData']({'id':_0x5319cc,'type':_0x5e3ff0,'createdAt':new Date(),'authorId':_0xbb963d,'attributes':_0xde674d});for(const _0x1adb51 of _0x17f621)_0x1adb51['detach'](),_0x1adb51['isCollapsed']||'$graveyard'==_0x1adb51['root']['rootName']||this['_addSuggestionMarker'](_0x5e3ff0,_0x5319cc,_0xbb963d,_0x1adb51,o['getMultiRangeId']());return _0x498f95;}['markAttributeChange'](_0x59ff61,_0x272f82,_0x14dfdb,_0x1e5455,_0x3e7ef0){if(_0x59ff61['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd6934f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2e12ee=Array['from'](this['_suggestions']['values']())['filter'](_0x4e190d=>'attribute'==_0x4e190d['type']&&_0x4e190d['data']['key']==_0x272f82&&_0x4e190d['isIntersectingWithRange'](_0x59ff61));if(this['_trackingSessionId']&&(_0x3e7ef0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1c3d58=this['_findSuggestions'](_0x59ff61,'insertion')['filter'](({meta:_0x27fb38})=>_0x27fb38['isOwn']&&!_0x27fb38['isInsideObject']&&!_0x27fb38['isNextTo'])['map'](({suggestion:_0x290a9f})=>_0x290a9f);_0x2e12ee['unshift'](..._0x1c3d58);}const _0x1caafb=new Map([[_0x59ff61,_0x14dfdb]]);for(const _0x1c1b02 of _0x2e12ee){const _0x1ca86a='attribute'==_0x1c1b02['type']?_0x1c1b02['data']['oldValue']:void 0x0,_0x3d234e=_0x1c1b02['getFirstRange'](),_0x1a0ed3=Array['from'](_0x1caafb['keys']())['find'](_0x47a993=>_0x47a993['isIntersecting'](_0x3d234e));if(!_0x1a0ed3)continue;const _0x3cea88=_0x1a0ed3['getDifference'](_0x3d234e);this['_isBlockAttribute'](_0x272f82)&&'insertion'==_0x1c1b02['type']&&0x0!=_0x3cea88['length']||(_0x1caafb['delete'](_0x1a0ed3),_0x3cea88['forEach'](_0x231778=>{_0x1caafb['set'](_0x231778,_0x14dfdb);}),'insertion'!=_0x1c1b02['type']&&_0x1ca86a!=_0x1e5455&&_0x1caafb['set'](_0x1a0ed3['getIntersection'](_0x3d234e),_0x1ca86a));}const _0x1c445e=[];for(const [_0x311b3a,_0x21d9bb]of _0x1caafb){const _0x1cec59=_0x5011f0(),_0xf2969a={'key':_0x272f82,'oldValue':_0x21d9bb,'newValue':_0x1e5455};_0x272f82['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':_0x272f82});const _0x1b1f39=('attribute:'+(_0x272f82+'|'+Kt({'newValue':_0x1e5455})))['substring'](0x0,0x3c),_0x464e2e=this['_setSuggestionData']({'id':_0x1cec59,'type':_0x1b1f39,'data':_0xf2969a,'createdAt':new Date(),'authorId':_0xd6934f,'attributes':_0x3e7ef0});_0x1c445e['push'](_0x464e2e),this['_addSuggestionMarker'](_0x1b1f39,_0x1cec59,_0xd6934f,_0x311b3a);}return _0x1c445e;}['enableDefaultAttributesIntegration'](_0x55298b){this['enableCommand'](_0x55298b,(_0xbee37,..._0x484442)=>{this['_recordAttributeChanges'](()=>{_0xbee37(..._0x484442);});});}['registerBlockAttribute'](_0x2db635){this['_blockAttributeKeys']['add'](_0x2db635);}['registerInlineAttribute'](_0x51f4a5){this['_inlineAttributeKeys']['add'](_0x51f4a5);}['startTrackingSession'](_0x43032d){return this['_trackingSessionId']=void 0x0!==_0x43032d?_0x43032d:_0x5011f0(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1636c6){return'attribute'==_0x1636c6['type']?_0x1636c6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x913139,_0x3570a9){const _0xa87d67=_0x913139['getFirstMarker']();this['_model']['change'](_0x86e683=>{_0x86e683['updateMarker'](_0xa87d67,{'range':_0x3570a9});});}['_addThreadToSuggestion'](_0xd4fef2){const _0x4220df=_0xd4fef2['id'],_0x2fb32c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4220df)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2fb32c,'threadId':_0x4220df,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2c1a92=this['_commentsRepository']['getCommentThread'](_0x4220df);_0x2c1a92['unbind']('isRemovable'),_0x2c1a92['isRemovable']=!0x1,_0xd4fef2['commentThread']=_0x2c1a92;}['_checkSuggestionCorrectness'](_0x560492,_0x1239ea,_0x52db71,_0x1a91be){if(_0x560492['type']!=_0x1239ea||_0x560492['subType']!=_0x52db71||_0x560492['creator']['id']!=_0x1a91be)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x280f1c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5e8b7b,_0x1f3623){const _0x148a6b=_0x5e8b7b['getFirstRange']();if(_0x1f3623['isEqual'](_0x148a6b))_0x5e8b7b['removeMarkers']();else{if(_0x148a6b['containsRange'](_0x1f3623)){const _0x21f6ee=this['_model']['createPositionAt'](_0x1f3623['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e8b7b,this['_model']['createRange'](_0x148a6b['start'],_0x21f6ee));const _0x36d9ed=_0x5011f0(),_0x352154=_0x5e8b7b['creator']['id'],_0x28a57a=_0x5e8b7b['type']+':'+_0x5e8b7b['subType'];this['_setSuggestionData']({'id':_0x36d9ed,'type':_0x28a57a,'createdAt':new Date(),'authorId':_0x352154,'data':_0x5e8b7b['data'],'attributes':_0x5e8b7b['attributes']});const _0x31a088=this['_model']['createPositionAt'](_0x1f3623['end']['parent'],'after'),_0x17ac43=this['_model']['createRange'](_0x31a088,_0x148a6b['end']);this['_addSuggestionMarker'](_0x28a57a,_0x36d9ed,_0x352154,_0x17ac43);}else{if(_0x148a6b['containsPosition'](_0x1f3623['start'])){const _0x3f6b08=this['_model']['createPositionAt'](_0x1f3623['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5e8b7b,this['_model']['createRange'](_0x148a6b['start'],_0x3f6b08));}else{const _0x619561=this['_model']['createPositionAt'](_0x1f3623['end']['parent'],'after');this['_setSuggestionRange'](_0x5e8b7b,this['_model']['createRange'](_0x619561,_0x148a6b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x360a06){for(const {suggestion:_0x2a50fb,meta:_0x25cf8c}of this['_findSuggestions'](_0x360a06,'insertion')){if(!_0x25cf8c['isOwn'])continue;const _0x1073fe=_0x2a50fb['getRanges']();for(const _0x119ed3 of _0x1073fe)if(!_0x360a06['getDifference'](_0x119ed3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3529e1){const _0x540e3b=this['editor']['plugins']['get']('Users')['getUser'](_0x3529e1);if(!_0x540e3b)throw new _0x280f1c('track-changes-user-not-found',this);return _0x540e3b;}['_getExternalAuthor'](_0x2d1ce2){const _0x518551=this['editor']['plugins']['get']('Users'),_0x3e1a9a=_0x4130c6('external:'+_0x2d1ce2),_0x25679f=_0x518551['getUser'](_0x3e1a9a);return _0x25679f||_0x518551['addUser']({'id':_0x3e1a9a,'name':_0x2d1ce2});}['_createSuggestion'](_0x1a6e1a,_0x48d093,_0x359fa6,_0x23b0e7,_0x10a4eb,_0x4dced3){const _0x1a4796=this['_getAuthorFromId'](_0x23b0e7),_0x3ce0f1=this['_suggestionFactory']['buildSuggestion'](_0x1a6e1a,_0x48d093,_0x359fa6,_0x1a4796,_0x10a4eb,_0x64834=>{this['_updateSuggestionData'](_0x359fa6,{'attributes':_0x64834});const _0x11ed67=this['getSuggestion'](_0x359fa6);this['_joinWithAdjacentSuggestions'](new Set([_0x11ed67])),this['_refreshSuggestionsChain'](new Set([_0x11ed67]));},_0x4dced3);return this['listenTo'](_0x3ce0f1,'accept',()=>{this['_updateSuggestionData'](_0x359fa6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3ce0f1,'discard',()=>{this['_updateSuggestionData'](_0x359fa6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x359fa6,_0x3ce0f1),this['_suggestionState']['set'](_0x3ce0f1,'notReady'),_0x3ce0f1;}['_splitMarkerName'](_0xd2391b){const _0x290e05=_0xd2391b['split'](':');return{'group':_0x290e05[0x0],'type':_0x290e05[0x1],'subType':_0x290e05['length']>=0x5?_0x290e05[0x2]:null,'id':_0x290e05['length']<0x5?_0x290e05[0x2]:_0x290e05[0x3],'authorId':_0x290e05['length']<0x5?_0x290e05[0x3]:_0x290e05[0x4],'markerCount':0x6==_0x290e05['length']?_0x290e05[0x5]:null};}['_breakSuggestionMarker'](_0x39b8f9,_0x2b34b6,_0x16c539){const _0x201c41=_0x39b8f9['getFirstRange'](),_0x4bcd04=_0x201c41['start'],_0x1ed8d4=_0x201c41['end'];this['_setSuggestionRange'](_0x39b8f9,this['_model']['createRange'](_0x4bcd04,_0x2b34b6));const _0x2e6bf1=_0x5011f0(),_0x2abb98=_0x39b8f9['creator']['id'],_0x19fa74=_0x39b8f9['type']+(_0x39b8f9['subType']?':'+_0x39b8f9['subType']:'');this['_setSuggestionData']({'id':_0x2e6bf1,'type':_0x19fa74,'createdAt':new Date(),'authorId':_0x2abb98,'originalSuggestionId':_0x39b8f9['_originalSuggestionId']||_0x39b8f9['id'],'attributes':_0x39b8f9['attributes'],'data':_0x39b8f9['data']});const _0x36ff57=this['_getAttributeKey'](_0x39b8f9);('formatBlock'==_0x39b8f9['type']||_0x36ff57&&this['_isBlockAttribute'](_0x36ff57))&&(_0x16c539=this['_model']['createPositionBefore'](_0x16c539['parent'])),this['_addSuggestionMarker'](_0x19fa74,_0x2e6bf1,_0x2abb98,this['_model']['createRange'](_0x16c539,_0x1ed8d4));}['_findSuggestions'](_0x25f2e7,_0x5512a1=null){const _0x727095=[],_0x5b2d83=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x25f2e7)||(_0x25f2e7=[_0x25f2e7]);for(const _0x5ecf5e of this['getSuggestions']()){if(!_0x5ecf5e['isInContent'])continue;if(_0x5512a1&&_0x5ecf5e['type']!=_0x5512a1)continue;let _0x24ab58=!0x1;for(const _0x49973c of _0x5ecf5e['getRanges']()){for(const _0xf87dbf of _0x25f2e7){const _0x139b74=_0xf87dbf['start']['isEqual'](_0x49973c['end'])||_0xf87dbf['end']['isEqual'](_0x49973c['start']);if(_0x139b74||_0xf87dbf['getIntersection'](_0x49973c)){const _0xedc6dc=_0xf87dbf['containsRange'](_0x49973c)&&Gt(this['_model']['schema'],_0x49973c['start'],_0xf87dbf),_0x15ed62=_0x49973c['containsRange'](_0xf87dbf)&&Gt(this['_model']['schema'],_0xf87dbf['start'],_0x49973c);_0x727095['push']({'suggestion':_0x5ecf5e,'meta':{'isOwn':_0x5b2d83==_0x5ecf5e['author'],'isNextTo':_0x139b74,'isInsideObject':_0xedc6dc,'containsRangeInObject':_0x15ed62}}),_0x24ab58=!0x0;break;}}if(_0x24ab58)break;}}return _0x727095;}['_addSuggestionMarker'](_0x5e6431,_0x282f12,_0x5b6446,_0x2d3a0a,_0x5ed373){this['_model']['change'](_0x1ae3bb=>{let _0x413927='suggestion:'+_0x5e6431+':'+_0x282f12+':'+_0x5b6446;_0x5ed373&&(_0x413927=_0x413927+':'+_0x5ed373),_0x1ae3bb['addMarker'](_0x413927,{'range':_0x2d3a0a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x231cec){const _0x4bc056=_0x231cec['previous'],_0x243928=_0x231cec['next'];_0x231cec['previous']=null,_0x231cec['next']=null,null!=_0x4bc056&&_0x4bc056['next']==_0x231cec&&(_0x4bc056['next']=_0x243928),null!=_0x243928&&_0x243928['previous']==_0x231cec&&(_0x243928['previous']=_0x4bc056),'ready'==this['_suggestionState']['get'](_0x231cec)&&(this['_suggestionState']['set'](_0x231cec,'removed'),this['fire']('suggestionUnloaded',_0x231cec,_0x4bc056,_0x243928));}['_setSuggestionData'](_0x396434){const _0x4da14e=_0x396434['id'],_0x476304=this['addSuggestionData'](_0x396434);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1e6c56=this['editor']['plugins']['get']('PendingActions'),_0x103629=_0x476304['hasComments'],_0xa594a3=_0x476304['subType']?_0x476304['type']+':'+_0x476304['subType']:_0x476304['type'],_0x3a0868=this['editor']['locale'],_0x27d769=_0x1e6c56['add'](c(_0x3a0868,'PENDING_ACTION_SUGGESTION')),_0xcc407f={'id':_0x4da14e,'type':_0xa594a3,'hasComments':_0x103629,'data':_0x396434['data']||null,'originalSuggestionId':_0x396434['originalSuggestionId']||null,'attributes':_0x476304['attributes']};this['_adapter']['addSuggestion'](_0xcc407f)['then'](_0x249002=>{_0x476304['_saved']=!0x0,_0x1e6c56['remove'](_0x27d769),_0x249002&&_0x249002['createdAt']&&(this['_suggestions']['get'](_0x4da14e)['createdAt']=_0x249002['createdAt']);})['catch'](_0xc998ab=>{throw _0x247906('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x476304['discard']();}),_0x476304['stopListening'](),this['_suggestions']['delete'](_0x476304['id']),this['_suggestionState']['delete'](_0x476304),_0xc998ab;});}return _0x476304;}['_isBlockAttribute'](_0x165cf8){return this['_blockAttributeKeys']['has'](_0x165cf8);}['_updateSuggestionData'](_0x248238,_0x17834b){const _0x13b813=this['editor']['plugins']['get']('PendingActions'),_0xc6b785=this['getSuggestion'](_0x248238);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0xc6b785['_saved']){const _0x6917a8=_0x13b813['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x248238,_0x17834b)['then'](()=>{_0x13b813['remove'](_0x6917a8);});}else _0xc6b785['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x248238,_0x17834b);});}}['_getSuggestionData'](_0x4d883f){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x280f1c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4d883f);}['_handleNewSuggestionMarker'](_0x5a1e3c){const {id:_0x2b7d3a,type:_0x415b80,subType:_0x42642b,authorId:_0x3fed38}=this['_splitMarkerName'](_0x5a1e3c),_0x35af17=this['_suggestions']['get'](_0x2b7d3a)||this['_createSuggestion'](_0x415b80,_0x42642b,_0x2b7d3a,_0x3fed38,{});switch(this['_checkSuggestionCorrectness'](_0x35af17,_0x415b80,_0x42642b,_0x3fed38),this['_suggestionState']['get'](_0x35af17)){case'notReady':this['_getSuggestionData'](_0x2b7d3a)['then'](_0xd696e5=>{let _0x56a3fb=Promise['resolve']();_0xd696e5['hasComments']&&(_0x56a3fb=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2b7d3a})),_0x56a3fb['then'](()=>{this['addSuggestionData'](_0xd696e5)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x35af17,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2b7d3a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x35af17,'ready'),this['fire']('suggestionLoaded',_0x35af17);break;case'ready':this['fire']('suggestionChanged',_0x35af17);}return _0x35af17['addMarkerName'](_0x5a1e3c),_0x35af17;}['_refreshSuggestionsChain'](_0x78d0ac){const _0x35bc39=Array['from'](_0x78d0ac),_0x198368=_0x35bc39['filter'](_0x39df1c=>'attribute'==_0x39df1c['type']);this['_refreshAttributeSuggestionsChain'](_0x198368);const _0xf307e5=_0x35bc39['filter'](_0x37650c=>!_0x37650c['isMultiRange']&&'attribute'!=_0x37650c['type']),_0x3ab303=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x478325=>!_0x478325['isMultiRange']&&'attribute'!=_0x478325['type']),_0x2d873e=_0x3ab303['filter'](_0xff5068=>!_0x78d0ac['has'](_0xff5068)),_0x52a0d6=new Map(_0x3ab303['map'](_0x307f02=>[_0x307f02,this['_suggestionFactory']['getSuggestionCallback'](_0x307f02['type'],_0x307f02['subType'],'chain')])),_0x1f0331=new Map(_0x3ab303['map'](_0x358bf8=>[_0x358bf8,_0x358bf8['getFirstRange']()])),_0x4cd51b=new Set(),_0x466f95=new Set();for(let _0x3da036=0x0;_0x3da036<_0xf307e5['length'];_0x3da036++)_0x422424(_0xf307e5[_0x3da036],_0xf307e5,_0x3da036+0x1);for(let _0x1291f4=0x0;_0x1291f4<_0xf307e5['length'];_0x1291f4++)_0x422424(_0xf307e5[_0x1291f4],_0x2d873e,0x0);const _0x1ffa55=new Set();for(let _0x5ee884=0x0;_0x5ee884<_0xf307e5['length'];_0x5ee884++){const _0x10a8f2=_0xf307e5[_0x5ee884];!_0x466f95['has'](_0x10a8f2)&&_0x10a8f2['previous']&&(_0x1ffa55['add'](_0x10a8f2['previous']),_0x10a8f2['previous']['next']===_0x10a8f2&&(_0x10a8f2['previous']['next']=null),_0x10a8f2['previous']=null),!_0x4cd51b['has'](_0x10a8f2)&&_0x10a8f2['next']&&(_0x1ffa55['add'](_0x10a8f2['next']),_0x10a8f2['next']['previous']===_0x10a8f2&&(_0x10a8f2['next']['previous']=null),_0x10a8f2['next']=null);}function _0x422424(_0x10d566,_0x260151,_0x5f50ee){for(let _0x17ad9d=_0x5f50ee;_0x17ad9d<_0x260151['length'];_0x17ad9d++){const _0x554b36=_0x19eff9(_0x10d566,_0x260151[_0x17ad9d]);_0x554b36&&(_0x554b36[0x0]['next']=_0x554b36[0x1],_0x554b36[0x1]['previous']=_0x554b36[0x0],_0x4cd51b['add'](_0x554b36[0x0]),_0x466f95['add'](_0x554b36[0x1]));}}function _0x19eff9(_0x24715d,_0x1d8484){if(_0x24715d['author']['id']!==_0x1d8484['author']['id'])return null;const _0x3cad07=_0x52a0d6['get'](_0x24715d)(_0x24715d,_0x1d8484,_0x1f0331['get'](_0x24715d),_0x1f0331['get'](_0x1d8484));if(!_0x3cad07)return null;return _0x52a0d6['get'](_0x1d8484)(_0x24715d,_0x1d8484,_0x1f0331['get'](_0x24715d),_0x1f0331['get'](_0x1d8484))?_0x3cad07[0x1]['commentThread']&&_0x3cad07[0x1]['commentThread']['length']?null:_0x3cad07:null;}_0x1ffa55['size']&&this['_refreshSuggestionsChain'](_0x1ffa55);}['_refreshAttributeSuggestionsChain'](_0x179c2e){if(0x0==_0x179c2e['length'])return;const _0x1b5923=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20c349=>'attribute'==_0x20c349['type']&&_0x20c349['_isDataLoaded']),_0x2f7483=[],_0x30ebfe=new Map();for(const _0x594bfe of _0x1b5923){const _0x305531=_0x4130c6(_0x594bfe['attributes']);_0x30ebfe['has'](_0x305531)||(_0x30ebfe['set'](_0x305531,_0x2f7483['length']),_0x2f7483['push']([]));const _0x48038e=_0x30ebfe['get'](_0x305531);_0x2f7483[_0x48038e]['push'](_0x594bfe);}!(function(){_0x2f7483['sort']((_0x3f4944,_0x24be42)=>{const _0xcfdf73=_0x3f4944[0x0]['createdAt'],_0xdb5f95=_0x24be42[0x0]['createdAt'];return _0xcfdf73==_0xdb5f95?_0x3f4944[0x0]['attributes']['groupId']<_0x24be42[0x0]['attributes']['groupId']?-0x1:0x1:_0xcfdf73<_0xdb5f95?-0x1:0x1;});for(const _0x2695c6 of _0x2f7483)_0x2695c6['sort']((_0x319923,_0x1f05e9)=>_0x319923['id']<_0x1f05e9['id']?-0x1:0x1);}());for(let _0x7a1dec=0x0;_0x7a1dec<_0x2f7483['length'];_0x7a1dec++){if(0x0==_0x2f7483[_0x7a1dec]['length'])continue;const _0x38236e=[];for(let _0x36172d=_0x7a1dec+0x1;_0x36172d<_0x2f7483['length'];_0x36172d++)0x0!=_0x2f7483[_0x36172d]['length']&&_0x362a80(_0x2f7483[_0x7a1dec],_0x2f7483[_0x36172d])&&_0x38236e['push'](_0x36172d);for(const _0x2f79c8 of _0x38236e)_0x2f7483[_0x7a1dec]=_0x2f7483[_0x7a1dec]['concat'](_0x2f7483[_0x2f79c8]),_0x2f7483[_0x2f79c8]=[];}for(const _0x17e0ca of _0x2f7483)for(let _0x1fb2f5=0x0;_0x1fb2f5<_0x17e0ca['length'];_0x1fb2f5++){const _0x2b5a0d=_0x17e0ca[_0x1fb2f5+0x1]||null;_0x17e0ca[_0x1fb2f5]['next']!==_0x2b5a0d&&(_0x17e0ca[_0x1fb2f5]['next']=_0x2b5a0d);}for(const _0x3e7a4e of _0x2f7483)for(let _0x1ab760=0x0;_0x1ab760<_0x3e7a4e['length'];_0x1ab760++){const _0x2ec97a=_0x3e7a4e[_0x1ab760-0x1]||null;_0x3e7a4e[_0x1ab760]['previous']!==_0x2ec97a&&(_0x3e7a4e[_0x1ab760]['previous']=_0x2ec97a);}function _0x362a80(_0x6d64ff,_0x3f42c7){if(_0x6d64ff[0x0]['attributes']['groupId']!==_0x3f42c7[0x0]['attributes']['groupId']&&_0x6d64ff[0x0]['author']!==_0x3f42c7[0x0]['author'])return!0x1;if(!function(_0x43dc2a,_0x3ce302){if(!_0x43dc2a['hasComments']&&!_0x3ce302['hasComments'])return!0x0;if(_0x43dc2a['hasComments']&&_0x3ce302['hasComments'])return!0x1;if(_0x43dc2a['hasComments']&&_0x3ce302['createdAt']<_0x43dc2a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3ce302['hasComments']&&_0x43dc2a['createdAt']<_0x3ce302['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x6d64ff[0x0],_0x3f42c7[0x0]))return!0x1;const _0x337798=Ft(_0x6d64ff[0x0]['attributes'],['groupId','trackingSessionId']),_0xd0e60e=Ft(_0x3f42c7[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x5c3aba(_0x337798,_0xd0e60e))return!0x1;if(_0x6d64ff[0x0]['attributes']['groupId']==_0x3f42c7[0x0]['attributes']['groupId'])return!0x0;if(_0x6d64ff[0x0]['attributes']['trackingSessionId']!==_0x3f42c7[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x6d64ff['every'](_0x5a345c=>_0x3f42c7['some'](_0x53d7a3=>_0x5a345c['getFirstRange']()['isEqual'](_0x53d7a3['getFirstRange']())))&&_0x3f42c7['every'](_0x2f6009=>_0x6d64ff['some'](_0x245b51=>_0x2f6009['getFirstRange']()['isEqual'](_0x245b51['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2684a8){const _0x3b6e88=Array['from'](_0x2684a8),_0x3a2490=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4691e8=_0x3a2490['filter'](_0x1c1368=>!_0x2684a8['has'](_0x1c1368)),_0x220021=new Map(_0x3b6e88['map'](_0x411d58=>[_0x411d58,this['_suggestionFactory']['getSuggestionCallback'](_0x411d58['type'],_0x411d58['subType'],'join')])),_0x48bd82=new Map(_0x3a2490['map'](_0x1f7244=>[_0x1f7244,_0x1f7244['getRanges']()]));for(let _0x311765=0x0;_0x311765<_0x3b6e88['length'];_0x311765++){if(_0x5e9515(this,_0x3b6e88[_0x311765],_0x3b6e88,_0x311765+0x1))return!0x0;}for(let _0x787d3f=0x0;_0x787d3f<_0x3b6e88['length'];_0x787d3f++){if(_0x5e9515(this,_0x3b6e88[_0x787d3f],_0x4691e8,0x0))return!0x0;}return!0x1;function _0x5e9515(_0x4e036b,_0x5db377,_0x12ff45,_0x385c77){for(let _0x166fd1=_0x385c77;_0x166fd1<_0x12ff45['length'];_0x166fd1++){const _0x524007=_0x12ff45[_0x166fd1];if(_0x524007['type']!==_0x5db377['type']||_0x524007['author']['id']!==_0x5db377['author']['id']||_0x524007['subType']!==_0x5db377['subType'])continue;if(!Qt(_0x5db377,_0x524007))continue;if('attribute'==_0x5db377['type']&&_0x5db377['data']['oldValue']!=_0x524007['data']['oldValue'])continue;if('attribute'==_0x5db377['type']&&_0x4e036b['_isBlockAttribute'](_0x5db377['data']['key']))continue;if('formatBlock'==_0x5db377['type']){const _0x493903=_0x4e036b['editor']['model'],_0x2f252f=_0x5db377['getContainedElement']();if(_0x2f252f&&(_0x493903['schema']['isObject'](_0x2f252f)||_0x493903['schema']['isLimit'](_0x2f252f)))continue;}const _0x1dd618=_0x220021['get'](_0x5db377),_0x1640aa=_0x48bd82['get'](_0x5db377),_0x112e7e=_0x48bd82['get'](_0x524007),_0x4bb940=_0x5db377['commentThread']&&_0x5db377['commentThread']['length'],_0x2972d8=_0x524007['commentThread']&&_0x524007['commentThread']['length'];if(!_0x4bb940&&_0x1dd618(_0x112e7e,_0x1640aa))return _0x4e036b['_joinSuggestions'](_0x524007,_0x5db377),_0x48bd82['delete'](_0x5db377),!0x0;if(!_0x2972d8&&_0x1dd618(_0x1640aa,_0x112e7e))return _0x4e036b['_joinSuggestions'](_0x5db377,_0x524007),_0x48bd82['delete'](_0x524007),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5e0183,_0x12c8da){if(_0x5e0183['isMultiRange']){for(const _0x3f73d3 of _0x12c8da['getRanges']())_0x5e0183['addRange'](_0x3f73d3);}else{const _0x21d959=_0x12c8da['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5e0183,this['_model']['createRange'](_0x5e0183['getFirstRange']()['start'],_0x21d959));}_0x12c8da['removeMarkers']();}['_getMarkerAnnouncementText'](_0xe102c3,_0x4c2e60,_0x5c2fc9){const _0x3be779=_0xe102c3['startsWith']('format')||_0xe102c3['startsWith']('attribute')?'FORMATTING':_0xe102c3['toUpperCase']();return c(this['editor']['locale'],_0x4c2e60+'_'+_0x3be779+'_SUGGESTION_ANNOUNCEMENT',_0x5c2fc9);}['_initAriaMarkerChangeAnnouncements'](){const _0x59fc48=this['editor'];if(!_0x59fc48['ui'])return;const {ariaLiveAnnouncer:_0x4be827}=_0x59fc48['ui'];_0x1b4244(this['_model'],({left:_0x459a9e,entered:_0x352a98})=>{for(const _0x393ace of _0x459a9e){const {group:_0x511d56,type:_0x25de0c}=this['_splitMarkerName'](_0x393ace['name']);if('suggestion'===_0x511d56){_0x4be827['announce'](this['_getMarkerAnnouncementText'](_0x25de0c,'LEAVE'));break;}}for(const _0x56510f of _0x352a98){const {group:_0x522d71,type:_0x66cbc8}=this['_splitMarkerName'](_0x56510f['name']);if('suggestion'===_0x522d71){_0x4be827['announce'](this['_getMarkerAnnouncementText'](_0x66cbc8,'ENTER',_0x32cd60(_0x5a122d)));break;}}});}['_processAttributeChanges'](_0x4a4620){if(this['_recordAttributeSuggestions'])return!0x1;const _0x58849f=this['editor'],_0x4b5325=_0x58849f['model']['document']['differ']['getChanges']();if(0x0==_0x4b5325['length'])return!0x1;const _0x7e9e1a=[],_0x2d978d=_0x4b5325['filter'](_0x52aca4=>'attribute'==_0x52aca4['type']),_0x584510=_0x4b5325['filter'](_0x2400be=>'insert'==_0x2400be['type']&&'$text'!=_0x2400be['name']),_0x1a9f74=_0x4b5325['filter'](_0x7999cf=>'remove'==_0x7999cf['type']&&'$text'!=_0x7999cf['name']);for(const _0x139c2e of _0x2d978d)_0x7e9e1a['push']({'key':_0x139c2e['attributeKey'],'newValue':_0x139c2e['attributeNewValue'],'oldValue':_0x139c2e['attributeOldValue'],'range':qt(_0x139c2e['range'],_0x58849f['model'])});for(const _0xb8d48d of _0x584510){const _0x40a9cc=_0x1a9f74['find'](_0x2e5707=>_0x2e5707['position']['isEqual'](_0xb8d48d['position']));_0x40a9cc&&_0x7e9e1a['push']({'key':u,'newValue':_0xb8d48d['name'],'oldValue':_0x40a9cc['name'],'range':_0x58849f['model']['createRangeOn'](_0xb8d48d['position']['nodeAfter'])});}return 0x0!=_0x7e9e1a['length']&&this['_reduceExistingSuggestions'](_0x4a4620,_0x7e9e1a);}['_processAttributeSuggestions'](_0x56ef01){let _0x34138a=!0x1;const _0x3b6ff8=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x54c346=>_0x54c346['data']['newRange']&&_0x54c346['name']['startsWith']('suggestion:attribute:'));for(const _0x592793 of _0x3b6ff8){const {subType:_0xa563ba,id:_0x47d6}=this['_splitMarkerName'](_0x592793['name']),_0x1f9370=_0xa563ba['split']('|')[0x0];for(const _0x3135de of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3135de['id']!=_0x47d6&&'attribute'==_0x3135de['type']&&_0x3135de['data']&&_0x3135de['data']['key']==_0x1f9370&&_0x3135de['getFirstRange']()['isIntersecting'](_0x592793['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3135de,_0x592793['data']['newRange'],_0x56ef01),_0x34138a=!0x0);}return _0x34138a;}['_recordAttributeChanges'](_0x3d4834){this['_recordAttributeSuggestions']=!0x0,_0x3d4834();}['_isRegisteredAttribute'](_0x2491b2){const _0x3e750a=this['_isBlockAttribute'](_0x2491b2),_0x2e651f=this['_inlineAttributeKeys']['has'](_0x2491b2);return _0x3e750a||_0x2e651f;}['_reduceExistingSuggestions'](_0x19e2a2,_0x22408f){if(0x0==_0x22408f['length'])return!0x1;let _0x44ace4=!0x1;for(const _0x263ffe of _0x22408f){const _0x34ae75=this['_findSuggestions'](_0x263ffe['range'],'attribute')['filter'](_0x1b6df5=>!_0x1b6df5['meta']['isNextTo'])['map'](_0x39c6ac=>_0x39c6ac['suggestion']),_0x46d551=_0x4130c6({'newValue':_0x263ffe['newValue']});_0x34ae75['filter'](_0x4d0764=>{const [_0x124eed,_0x2066b1]=_0x4d0764['subType']['split']('|');return _0x124eed==_0x263ffe['key']&&_0x2066b1!=_0x46d551;})['forEach'](_0x501c6e=>{this['_reduceSuggestionAttributeRange'](_0x501c6e,_0x263ffe['range'],_0x19e2a2),_0x44ace4=!0x0;});}return _0x44ace4;}['_reduceSuggestionAttributeRange'](_0x3c4bb1,_0xfbb6d9,_0x356bdd){const _0x23471d=_0x3c4bb1['getFirstRange']()['getDifference'](_0xfbb6d9);0x0!==_0x23471d['length']?0x1!==_0x23471d['length']?this['_breakSuggestionMarker'](_0x3c4bb1,_0xfbb6d9['start'],_0xfbb6d9['end']):this['_setSuggestionRange'](_0x3c4bb1,_0x23471d[0x0]):_0x356bdd['removeMarker'](_0x3c4bb1['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa5c9f1){this['_editor']=_0xa5c9f1,this['_model']=_0xa5c9f1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1ba6e3,_0x370ca9,_0x3b0e6c,_0x50fbfb,_0x254e2f,_0x1fff7a,_0x29714f){return new o(this['_model'],{'type':_0x1ba6e3,'subType':_0x370ca9,'id':_0x3b0e6c,'originalSuggestionId':_0x29714f,'author':_0x50fbfb,'creator':_0x50fbfb,'attributes':_0x254e2f,'onAttributesChange':_0x1fff7a,'onAccept':(..._0x189256)=>this['getSuggestionCallback'](_0x1ba6e3,_0x370ca9,'accept')(..._0x189256),'onDiscard':(..._0x1f1676)=>this['getSuggestionCallback'](_0x1ba6e3,_0x370ca9,'discard')(..._0x1f1676)});}['registerCustomCallback'](_0x5cff36,_0x345965,_0xdfc3a6,_0x52eef8){const _0x40b66=_0x5cff36+':'+_0x345965+':'+_0xdfc3a6;this['_customCallbacks']['set'](_0x40b66,_0x52eef8);}['getSuggestionCallback'](_0x20ee60,_0x51717a,_0x266205){const _0x20e07d=_0x20ee60+':'+_0x51717a+':'+_0x266205;return this['_customCallbacks']['get'](_0x20e07d)||this['_defaultCallbacks']['get'](_0x20ee60+':'+_0x266205);}['_registerDefaultCallbacks'](){const _0x52f6ac=()=>!0x1,_0x14897d=_0x188bd1=>{_0x188bd1['sort']((_0x4438eb,_0x103e4f)=>_0x4438eb['start']['isBefore'](_0x103e4f['start'])?0x1:-0x1),this['_model']['change'](_0x2c5bb7=>{for(const _0x15a34a of _0x188bd1){let _0x28a999;_0x28a999=_0x15a34a['end']['isAtEnd']&&_0x15a34a['end']['parent']==_0x15a34a['start']['nodeAfter']?_0x2c5bb7['createSelection'](_0x15a34a['start']['nodeAfter'],'on'):_0x2c5bb7['createSelection'](_0x15a34a),this['_model']['deleteContent'](_0x28a999,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x367181=(_0x32298e,_0x35a843)=>{_0x35a843&&this['_model']['change'](_0x55bf85=>{const {commandName:_0x1c2614,commandParams:_0x1a7ca1=[]}=_0x35a843,_0x4213da=_0x32298e['map'](_0x5423ec=>(Lt(_0x5423ec)&&(_0x5423ec=this['_model']['createRange'](_0x5423ec['end'])),_0x5423ec))['filter'](_0x2899c5=>'$graveyard'!==_0x2899c5['root']['rootName']);if(_0x4213da['length']<0x1)return;const _0x12cdd2=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x282b21=>_0x39b5cf['fromRange'](_0x282b21));_0x55bf85['setSelection'](_0x4213da);for(const _0x177a4f of this['_editor']['commands']['commands']())_0x177a4f['refresh']();_0x1a7ca1['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1c2614,..._0x1a7ca1);const _0x1026c0=_0x12cdd2['filter'](_0x3ee93c=>'$graveyard'!=_0x3ee93c['root']['rootName']);_0x1026c0['length']>0x0&&_0x55bf85['setSelection'](_0x1026c0);for(const _0x33b565 of _0x12cdd2)_0x33b565['detach']();});},_0x40731b=(_0x20b6f5,_0x31cb59)=>0x1==_0x20b6f5['length']&&0x1==_0x31cb59['length']&&_0x20b6f5[0x0]['end']['isEqual'](_0x31cb59[0x0]['start']),_0x55f981=(_0x586203,_0x23c803,_0x1230ab,_0x21bf1f)=>Wt(_0x586203,_0x23c803,_0x1230ab,_0x21bf1f)?[_0x586203,_0x23c803]:Wt(_0x23c803,_0x586203,_0x21bf1f,_0x1230ab)?[_0x23c803,_0x586203]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x52f6ac),this['_defaultCallbacks']['set']('insertion:discard',_0x14897d),this['_defaultCallbacks']['set']('insertion:join',_0x40731b),this['_defaultCallbacks']['set']('insertion:chain',_0x55f981),this['_defaultCallbacks']['set']('deletion:accept',_0x14897d),this['_defaultCallbacks']['set']('deletion:discard',_0x52f6ac),this['_defaultCallbacks']['set']('deletion:join',_0x40731b),this['_defaultCallbacks']['set']('deletion:chain',_0x55f981),this['_defaultCallbacks']['set']('formatInline:accept',_0x367181),this['_defaultCallbacks']['set']('formatInline:discard',_0x52f6ac),this['_defaultCallbacks']['set']('formatInline:join',_0x40731b),this['_defaultCallbacks']['set']('formatInline:chain',_0x52f6ac),this['_defaultCallbacks']['set']('formatBlock:accept',_0x367181),this['_defaultCallbacks']['set']('formatBlock:discard',_0x52f6ac),this['_defaultCallbacks']['set']('formatBlock:join',_0x40731b),this['_defaultCallbacks']['set']('formatBlock:chain',_0x52f6ac),this['_defaultCallbacks']['set']('attribute:accept',_0x52f6ac),this['_defaultCallbacks']['set']('attribute:discard',(_0x42f5a8,_0x16e067)=>{if(!_0x16e067)return;const _0x3d43d1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2f06a7=>{if(_0x16e067['key']==u)for(const _0x357df1 of _0x42f5a8){const _0xf3fef2=_0x357df1['start']['nodeAfter'],_0x4e8a06=_0x16e067['oldValue'];_0x2f06a7['rename'](_0xf3fef2,_0x4e8a06);}else{if(_0x3d43d1['_isBlockAttribute'](_0x16e067['key'])){for(const _0x301719 of _0x42f5a8)void 0x0!==_0x16e067['oldValue']?_0x2f06a7['setAttribute'](_0x16e067['key'],_0x16e067['oldValue'],_0x301719['start']['nodeAfter']):_0x2f06a7['removeAttribute'](_0x16e067['key'],_0x301719['start']['nodeAfter']);}else{for(const _0x38ba2e of _0x42f5a8)_0x16e067['oldValue']?_0x2f06a7['setAttribute'](_0x16e067['key'],_0x16e067['oldValue'],_0x38ba2e):_0x2f06a7['removeAttribute'](_0x16e067['key'],_0x38ba2e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x40731b);}}function Gt(_0x1bc75e,_0x3ae56a,_0x416df5){for(const _0x2e8b30 of _0x3ae56a['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2e8b30['root']==_0x2e8b30)return!0x1;if(!_0x416df5['containsItem'](_0x2e8b30))return!0x1;if(_0x1bc75e['isObject'](_0x2e8b30)||_0x1bc75e['isLimit'](_0x2e8b30))return!0x0;}return!0x1;}function Lt(_0x2cbf2b){return _0x2cbf2b['end']['parent']==_0x2cbf2b['start']['nodeAfter']&&_0x2cbf2b['end']['isAtStart'];}function Jt(_0xa9dd15,_0x10048d,_0x5f2e29,_0x1b24fc){const _0x1d829d=_0x2eb13a=>!_0x2eb13a['item']['is']('$textProxy')&&!_0x1b24fc['isObject'](_0x2eb13a['item']),_0x527fe3=_0xa9dd15['start']['getLastMatchingPosition'](_0x1d829d),_0x3808e7=_0xa9dd15['end']['getLastMatchingPosition'](_0x1d829d,{'direction':'backward'});return(!_0xa9dd15['start']['isEqual'](_0x527fe3)||!_0xa9dd15['end']['isEqual'](_0x3808e7))&&(_0x527fe3['isBefore'](_0x3808e7)?_0x5f2e29['updateMarker'](_0x10048d,{'range':_0x5f2e29['createRange'](_0x527fe3,_0x3808e7)}):_0x5f2e29['removeMarker'](_0x10048d),!0x0);}function Kt(_0x168e54){return _0x4130c6(_0x168e54);}function Ht(_0x26c24d){const _0x439d2b=_0x26c24d['start']['nodeAfter'];return _0x439d2b&&_0x439d2b['is']('element');}function qt(_0x2f75b1,_0x5e5c85){return null==_0x2f75b1['end']['nodeBefore']&&_0x2f75b1['end']['parent']==_0x2f75b1['start']['nodeAfter']?zt(_0x2f75b1['start']['nodeAfter'],_0x5e5c85):_0x2f75b1;}function zt(_0x55b661,_0x29819b){const _0x1c9bb3=_0x29819b['schema']['isObject'](_0x55b661)||_0x29819b['schema']['isSelectable'](_0x55b661);return _0x29819b['createRange'](_0x29819b['createPositionAt'](_0x55b661,'before'),_0x1c9bb3?_0x29819b['createPositionAfter'](_0x55b661):_0x29819b['createPositionAt'](_0x55b661,'end'));}function Wt(_0x2afb45,_0x3e6098,_0x5aab23,_0x1c0d0c){return!!Qt(_0x2afb45,_0x3e6098)&&_0x5aab23['end']['isEqual'](_0x1c0d0c['start']);}function Qt(_0x3ed51d,_0x8e43c0){if(!_0x3ed51d['_isDataLoaded']||!_0x8e43c0['_isDataLoaded'])return!0x1;const _0x38d12c=new Set(Object['keys'](_0x3ed51d['attributes'])),_0x435458=new Set(Object['keys'](_0x8e43c0['attributes']));if(_0x38d12c['delete']('groupId'),_0x435458['delete']('groupId'),0x0==_0x38d12c['size']&&0x0==_0x435458['size'])return!0x0;if(_0x38d12c['size']!=_0x435458['size'])return!0x1;const _0x13fadc={..._0x3ed51d['attributes']},_0x5c9b04={..._0x8e43c0['attributes']};return delete _0x13fadc['groupId'],delete _0x5c9b04['groupId'],JSON['stringify'](_0x13fadc)==JSON['stringify'](_0x5c9b04);}function Xt(_0x4e5779,_0x2074c9){const _0x5bb93b=Yt(_0x4e5779['attributes']),_0x1061b4=Yt(_0x2074c9);if(!_0x4e5779['_isDataLoaded'])return!0x1;for(const _0x4ff302 of Object['keys'](_0x1061b4))if(!_0x5c3aba(_0x5bb93b[_0x4ff302],_0x1061b4[_0x4ff302]))return!0x1;return!0x0;}function Yt(_0x56b588){const _0x508e28=Object['assign']({},_0x56b588);return delete _0x508e28['skipNestingCheck'],delete _0x508e28['tablePasteChainId'],_0x508e28;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x824c0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2595ae,_0x22c477,_0x7c94a,_0xc791e3){super(),this['model']=_0x22c477,this['view']=_0x7c94a,this['commentThreadController']=_0xc791e3,this['_editor']=_0x2595ae,this['_acceptCommand']=_0x2595ae['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2595ae['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x586485,_0xc706a)=>_0x586485||_0xc706a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x1663cc=>_0x1663cc&&this['_editor']['model']['canEditAt'](_0x22c477['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3046f1=>_0x3046f1&&this['_editor']['model']['canEditAt'](_0x22c477['getRanges']())),this['_pendingAction']=null,_0x7c94a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x7c94a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x7c94a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x7c94a,'change:isDirty',()=>{_0x7c94a['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 _0x30589c=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x30589c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x36f767{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2a350a,_0xe7ecde,_0x166ada,_0x5524e8){super(_0x2a350a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x459411(_0x2a350a,c(_0x2a350a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0xe7ecde['authoredAt']),this['bind']('authoredAt')['to'](_0xe7ecde),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',_0xe7ecde,'authoredAt',this,'descriptionParts',(_0x139053,_0x4fa487,_0x5dec7d)=>{const _0x997bc7=_0x5dec7d['map'](_0x22cb0d=>ls(_0x22cb0d['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x139053-0x1,_0xe7ecde['author']['name'],_0x4fa487?_0x5524e8['formatDateTime'](_0x4fa487):'',new DOMParser()['parseFromString'](_0x997bc7,'text/html')['body']['textContent']]);}),this['focusables']=new _0x46b370(),this['focusTracker']=new _0x411687(),this['keystrokes']=new _0x5036c6(),this['focusCycler']=new _0x1ec038({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x313fc3=>_0x313fc3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0xe7ecde,this['_localUser']=_0x166ada,this['_config']=_0x5524e8,_0x5524e8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3d5471(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x273cde}=this['_config'];this['commentsListView']=new _0x273cde(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',_0x25ecd9=>_0x25ecd9+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x29a693,_0x220a88)=>_0x29a693||!!_0x220a88);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x197f87}=this['_config'],_0x55b7c4=new _0x197f87(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x44d810=_0x55b7c4['commentInputView'];return _0x55b7c4['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x44d810,'value',(_0x54945a,_0xbbb588,_0x957f71)=>!!_0x957f71||_0x54945a&&!_0xbbb588),_0x44d810['on']('submit',(_0x524d51,_0x23d2b3)=>{this['fire']('addComment',_0x23d2b3),_0x44d810['editor']['setData']('');}),_0x44d810['on']('cancel',()=>this['focus']()),_0x44d810['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x55b7c4;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x6711b8,_0x372792,_0x3f53cd,_0x301d69){super(_0x6711b8,_0x372792,_0x3f53cd,_0x301d69),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5ba025=>_0x5ba025&&_0x5ba025[0x0]?_0x5ba025[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3cb8c1,_0x3e297e)=>{let _0xb1b077='';for(const _0x42f9ad of _0x3cb8c1)_0xb1b077+='<p>'+ls(_0x42f9ad['content'],_0x42f9ad['color'])+'</p>';return _0x3e297e?_0xb1b077:ti(_0xb1b077,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x301d69['SuggestionView'](_0x6711b8,_0x372792,{'formatDateTime':_0x301d69['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 _0x60e98a=this['bindTemplate'],_0x2b7ced=[this['suggestionView']];return this['commentsListView']&&_0x2b7ced['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2b7ced['push'](this['commentThreadInputView']),_0x2b7ced['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x60e98a['if']('isActive','ck-suggestion-wrapper--active'),_0x60e98a['to']('type',_0x4f0508=>'ck-suggestion-'+_0x4f0508),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':_0x60e98a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2b7ced};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x36f767{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x56b354,_0x51be7b,_0x3dc81b){super(_0x56b354),this['_model']=_0x51be7b,this['_config']=_0x3dc81b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x51be7b),this['acceptButton']=this['_createButton'](c(_0x56b354,'Accept\x20suggestion'),_0x516f82,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x56b354,'Discard\x20suggestion'),_0x40ee79,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x3cca20(_0x56b354,_0x51be7b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x46b370([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x411687(),this['keystrokes']=new _0x5036c6(),this['focusCycler']=new _0x1ec038({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x5952a3=>_0x5952a3['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x364de7=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x364de7['innerHTML']=this['description'],this['on']('change:description',(_0x938b6d,_0x44453b,_0x5f34c7)=>{_0x364de7['innerHTML']=_0x5f34c7;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x158582=this['bindTemplate'],_0x5ba265=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x158582['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x158582['to']('authoredAt',_0x332cb4=>this['_config']['formatDateTime'](_0x332cb4))}]}]},{'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']&&_0x5ba265['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':_0x5ba265}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x15fc6f,_0x6d8caf,_0x477d5c,_0x3a5a22,_0x5e7647){const _0x122b93=new _0x400f94(this['locale']);return _0x122b93['set']({'label':_0x15fc6f,'icon':_0x6d8caf,'tooltip':!0x0,'tooltipPosition':_0x5e7647}),_0x122b93['extendTemplate']({'attributes':{'class':_0x477d5c}}),_0x122b93['on']('execute',()=>{this['fire'](_0x3a5a22,this['_model']['id']);}),_0x122b93;}['_setupKeyboardNavigation'](){const _0x5d577d=this['element'];this['keystrokes']['listenTo'](_0x5d577d);for(const _0x216b78 of this['focusables'])this['focusTracker']['add'](_0x216b78['element']),this['keystrokes']['listenTo'](_0x216b78['element']);this['keystrokes']['set']('enter',(_0xd59a4a,_0x2cab2a)=>{_0x5d577d===_0xd59a4a['target']&&(this['focusCycler']['focusFirst'](),_0x2cab2a());}),this['keystrokes']['set']('esc',(_0x1eab00,_0x109626)=>{_0x5d577d!==_0x1eab00['target']&&(this['focus'](),_0x109626());});}}class d extends _0x59f721{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x182af8,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x288edc){super(_0x288edc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x7b8d2f=this['editor']['config'];_0x7b8d2f['define']('trackChanges.SuggestionThreadView',fe),_0x7b8d2f['define']('trackChanges.SuggestionView',we),_0x7b8d2f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x7b8d2f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5b55be,_0x2505fe){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xaf32dd,_0x2944f1]of this['_handleControllerBuffer']){const _0x51078e=this['_suggestionToController']['has'](_0xaf32dd);_0x51078e||_0x2944f1?_0x51078e&&_0x2944f1&&this['_destroyController'](_0xaf32dd):this['_initializeController'](_0xaf32dd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5b55be,_0x2505fe);}['init'](){const _0xe674d1=this['editor'],_0x4bc41e=_0xe674d1['plugins']['get']('TrackChangesEditing'),_0x1f62cf=_0xe674d1['plugins']['get']('Annotations'),_0x85fafb=_0xe674d1['plugins']['get']('EditorAnnotations'),_0x2a31f4=_0xe674d1['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x85fafb['addSourceCollector'](()=>{const _0x23aebd=[];for(const [_0x460f00,_0x550e9a]of Array['from'](this['_suggestionToController'])){const _0x4f749c=_0x460f00['getAllAdjacentSuggestions'](),_0x5944c8=[];for(const _0x2f511f of _0x4f749c){if(!_0x2f511f['isInContent'])continue;if(_0x2f511f['isMultiRange']){_0x5944c8['push'](..._0x2f511f['getRanges']());continue;}const _0x297c5e=_0x2f511f['getFirstRange']();if(_0x5944c8['length']>0x0){const _0x1b0d5f=_0x5944c8[0x0]['getJoined'](_0x297c5e);if(_0x1b0d5f){_0x5944c8[0x0]=_0x1b0d5f;continue;}}_0x5944c8['push'](_0x297c5e);}_0x23aebd['push']([_0x550e9a['view'],_0x5944c8]);}return _0x23aebd;}),this['listenTo'](_0x4bc41e,'suggestionLoaded',(_0x56ffa0,_0x4c865c)=>{this['listenTo'](_0x4c865c,'change:previous',(_0x3d6dd6,_0x2f789f,_0x271edb,_0x432874)=>{_0x4c865c['isInContent']&&(null==_0x271edb?(this['_updateController'](_0x432874['head']),this['_handleSuggestionControllerDelayed'](_0x4c865c,!0x1)):(this['_updateController'](_0x271edb['head']),null==_0x432874&&this['_handleSuggestionControllerDelayed'](_0x4c865c,!0x0)));}),null!==_0x4c865c['previous']?this['_updateController'](_0x4c865c['head']):this['_handleSuggestionControllerDelayed'](_0x4c865c,!0x1);}),this['listenTo'](_0x4bc41e,'suggestionUnloaded',(_0x1021b8,_0x2b9a96,_0x46ba29)=>{this['stopListening'](_0x2b9a96,'change:previous'),this['_handleControllerBuffer']['delete'](_0x2b9a96),this['_suggestionToController']['has'](_0x2b9a96)&&this['_destroyController'](_0x2b9a96),_0x46ba29&&this['_updateController'](_0x46ba29['head']);}),this['listenTo'](_0x4bc41e,'suggestionChanged',(_0x57e394,_0x178cb3)=>{this['_updateController'](_0x178cb3);}),this['listenTo'](_0x1f62cf,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2a31f4,'addComment',(_0x357610,{threadId:_0x371813,isFromAdapter:_0x2f904e})=>{if(_0x2f904e||!_0x4bc41e['hasSuggestion'](_0x371813))return;const _0x52165e=_0x4bc41e['getSuggestion'](_0x371813);this['_suggestionToController']['get'](_0x52165e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18d3a7=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5d90cc;for(const _0x472042 in _0x18d3a7){const _0x428fca=_0x472042,_0x24d35b=_0x18d3a7[_0x428fca];if('trackChangesLicenseKeyValid'==_0x24d35b||'trackChangesLicenseKeyInvalid'==_0x24d35b||'trackChangesLicenseKeyExpired'==_0x24d35b||'trackChangesLicenseKeyDomainLimit'==_0x24d35b||'trackChangesLicenseKeyNotAllowed'==_0x24d35b||'trackChangesLicenseKeyEvaluationLimit'==_0x24d35b||'trackChangesLicenseKeyTrialLimit'==_0x24d35b||'trackChangesLicenseKeyUsageLimit'==_0x24d35b){delete _0x18d3a7[_0x428fca],_0x5d90cc=_0x24d35b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5d90cc&&_0x18d3a7['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x464cd4=this['editor']['plugins']['get']('Annotations'),_0x7f97d2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x531328=Array['from'](_0x464cd4['activeAnnotations'],_0x5bf7a3=>_0x5bf7a3['innerView'])['filter'](_0x327468=>this['_viewToController']['has'](_0x327468)),_0xf7d39c=[];for(const _0x3df476 of _0x531328){const _0x30de68=this['_viewToController']['get'](_0x3df476)['model']['getAllAdjacentSuggestions']();_0xf7d39c['push'](..._0x30de68['reduce']((_0x244724,_0x388d2d)=>[..._0x244724,..._0x388d2d['getMarkerNames']()],[]));}_0x7f97d2['activeMarkers']=_0xf7d39c;}['_addUIComponentsToFactory'](){const _0x338741=this['editor'],_0x57a78e=_0x338741['locale'],_0x152013=c(_0x57a78e,'Track\x20changes'),_0x37c8c0=new _0x29a520([{'type':'switchbutton','model':new _0x423a90({'withText':!0x0,'isToggleable':!0x0,'label':_0x152013,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x338741['plugins']['has']('TrackChangesPreview')&&_0x37c8c0['addMany']([{'type':'separator'},{'type':'button','model':new _0x423a90({'withText':!0x0,'label':c(_0x57a78e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2c90f9 of _0x37c8c0)if(ke(_0x2c90f9)){const _0x13418a=_0x338741['commands']['get'](_0x2c90f9['model']['commandName']);_0x2c90f9['model']['bind']('isOn','isEnabled')['to'](_0x13418a,'value','isEnabled');}_0x338741['ui']['componentFactory']['add']('trackChanges',_0x39475d=>this['_createToolbarButton'](_0x39475d,_0x37c8c0,_0x152013)),_0x338741['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2f81c4=>this['_createMenuBarMenu'](_0x2f81c4,_0x37c8c0,_0x152013));}['_createToolbarButton'](_0x5d8a7e,_0x5c0e1f,_0x8a63fb){const _0x191b29=_0x471bad(_0x5d8a7e,_0x1aed8c),_0x1fe4cb=this['editor']['commands']['get']('trackChanges');_0x191b29['buttonView']['set']({'tooltip':_0x8a63fb,'label':_0x8a63fb,'icon':_0x3c6561}),_0x191b29['buttonView']['bind']('isOn')['to'](_0x1fe4cb,'value'),_0x191b29['buttonView']['on']('execute',()=>{_0x1fe4cb['execute'](),this['editor']['editing']['view']['focus']();}),_0x386c3e(_0x191b29,_0x5c0e1f,{'role':'menu'});const _0x407896=[];for(const _0x45f7ba of _0x5c0e1f)ke(_0x45f7ba)&&_0x407896['push'](this['editor']['commands']['get'](_0x45f7ba['model']['commandName']));const _0x2f9c7a=_0x191b29['buttonView'];return _0x2f9c7a['actionView']['unbind']('isEnabled'),_0x2f9c7a['arrowView']['unbind']('isEnabled'),_0x2f9c7a['actionView']['bind']('isEnabled')['to'](_0x1fe4cb,'isEnabled'),_0x2f9c7a['arrowView']['bind']('isEnabled')['toMany'](_0x407896,'isEnabled',(..._0x50d9dc)=>_0x50d9dc['some'](_0x35e492=>_0x35e492)),_0x191b29['on']('execute',_0x2a89e4=>{this['editor']['execute'](_0x2a89e4['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x191b29;}['_createMenuBarMenu'](_0x221489,_0x47075f,_0x4c4ece){const _0x306e12=new _0x192111(_0x221489),_0x1f8f9f=this['editor']['commands']['get']('trackChanges');_0x306e12['buttonView']['set']({'label':_0x4c4ece,'icon':_0x3c6561});const _0x276b17=new _0x364d3b(_0x221489);for(const _0xd367f9 of _0x47075f){if('separator'==_0xd367f9['type']){_0x276b17['items']['add'](new _0x11b1e0(_0x221489));continue;}const _0x48dbdc=new _0x22223f(_0x221489,_0x306e12),_0x455c7b=new _0x112160(_0x221489),_0x431312=_0xd367f9['model'];_0x455c7b['bind'](...Object['keys'](_0x431312))['to'](_0x431312),_0x455c7b['delegate']('execute')['to'](_0x306e12),_0x455c7b['on']('execute',()=>{this['editor']['execute'](_0x431312['commandName']),this['editor']['editing']['view']['focus']();}),_0x48dbdc['children']['add'](_0x455c7b),_0x276b17['items']['add'](_0x48dbdc);}return _0x306e12['bind']('isEnabled')['to'](_0x1f8f9f,'isEnabled'),_0x306e12['panelView']['children']['add'](_0x276b17),_0x306e12;}['_initializeController'](_0x2ac1c6){const _0x446592=this['editor'],_0x16eda1=_0x446592['config'],_0x1784f0=_0x446592['plugins']['get']('Annotations'),_0x36d20f=_0x446592['plugins']['get']('CommentsRepository'),_0x1989b6=_0x446592['plugins']['get']('EditorAnnotations'),_0x3aaf84=_0x446592['plugins']['get'](_0x182af8)['me'],_0x42e630=_0x16eda1['get']('trackChanges')['SuggestionThreadView'],_0x17e61d=_0x16eda1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x402d56,CommentThreadInputView:_0x38bb26}=_0x446592['plugins']['get']('CommentsUI');let _0x5ee2c4,_0x1d4c53,_0x34e14a;this['_annotationViews']['has'](_0x2ac1c6['id'])?(_0x1d4c53=this['_annotationViews']['get'](_0x2ac1c6['id']),_0x5ee2c4=_0x1d4c53['mainView']):(_0x5ee2c4=new _0x42e630(_0x446592['locale'],_0x2ac1c6,_0x3aaf84,{'disableComments':this['_disableComments'],'editorConfig':{..._0x16eda1['get']('comments.editorConfig'),'licenseKey':_0x16eda1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x16eda1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x16eda1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x16eda1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x597a50(_0x16eda1['get']('locale'),_0x446592['locale']),'CommentView':_0x16eda1['get']('comments')['CommentView'],'CommentsListView':_0x402d56,'CommentThreadInputView':_0x38bb26,'SuggestionView':_0x17e61d}),_0x5ee2c4['suggestionView']['acceptButton']['on']('execute',()=>{_0x446592['editing']['view']['focus']();}),_0x5ee2c4['suggestionView']['discardButton']['on']('execute',()=>{_0x446592['editing']['view']['focus']();}),_0x1d4c53=_0x1784f0['createAnnotationView'](this['editor']['locale'],_0x5ee2c4),_0x1d4c53['bind']('isDirty')['to'](_0x5ee2c4,'isDirty'),_0x1d4c53['bind']('length')['to'](_0x5ee2c4),_0x1d4c53['bind']('type')['to'](_0x5ee2c4,'type',_0x8873ee=>'suggestion-'+_0x8873ee),_0x5ee2c4['on']('escape',()=>{_0x34e14a['fire']('escape');}),this['_annotationViews']['set'](_0x2ac1c6['id'],_0x1d4c53));const _0x41daeb=_0x36d20f['createCommentThreadController'](_0x2ac1c6['commentThread'],_0x5ee2c4),_0x4a77a0=new pe(_0x446592,_0x2ac1c6,_0x5ee2c4,_0x41daeb),_0x524775=_0x2ac1c6['getAllAdjacentSuggestions']()['filter'](_0x3379a5=>_0x3379a5['isInContent']);_0x5ee2c4['descriptionParts']=_0x446592['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x524775),this['_suggestionToController']['set'](_0x2ac1c6,_0x4a77a0),this['_viewToController']['set'](_0x5ee2c4,_0x4a77a0),_0x34e14a=_0x1784f0['createAnnotation']({'view':_0x1d4c53,'target':()=>{const _0x3bc8c0=[],_0x48a65d=_0x2ac1c6['getAllAdjacentSuggestions']()['filter'](_0x5dd874=>_0x5dd874['isInContent']);for(const _0x4e0ced of _0x48a65d)_0x3bc8c0['push'](..._0x4e0ced['getMarkers']());return _0x2492d1(_0x446592['editing'],_0x3bc8c0);},'type':()=>'suggestion-'+_0x4a77a0['view']['type']}),_0x36d20f['_bindAnnotationToEditors'](_0x5ee2c4,_0x34e14a),_0x1784f0['add'](_0x34e14a),_0x1989b6['registerAnnotation'](_0x34e14a);}['_destroyController'](_0x59028e){const _0x18ec5a=this['editor']['plugins']['get']('CommentsRepository'),_0x29c5c6=this['editor']['plugins']['get']('Annotations'),_0x57d2ac=this['_suggestionToController']['get'](_0x59028e),_0xbb355d=_0x57d2ac['view'],_0x2cc45f=_0x29c5c6['getByInnerView'](_0xbb355d);_0x18ec5a['_unbindEditors'](_0xbb355d),_0x2cc45f&&_0x29c5c6['remove'](_0x2cc45f),this['_suggestionToController']['delete'](_0x59028e),this['_viewToController']['delete'](_0xbb355d),_0x57d2ac['destroy']();}['_updateController'](_0x522309){if(!_0x522309['isInContent']||!this['_suggestionToController']['has'](_0x522309))return;const _0x19f920=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4828b4=this['_suggestionToController']['get'](_0x522309),_0x2747fe=_0x522309['getAllAdjacentSuggestions']();_0x4828b4['view']['descriptionParts']=_0x19f920['descriptionFactory']['getDescriptions'](_0x2747fe);}['destroy'](){for(const _0x50438d of this['_suggestionToController']['keys']())this['_destroyController'](_0x50438d);for(const _0x28b271 of this['_annotationViews']['values']())_0x28b271['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x13d4c8){return'model'in _0x13d4c8;}class k extends _0x59f721{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x349424){this['editor']['plugins']['get'](p)['adapter']=_0x349424;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xcb962f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xcb962f);}['getSuggestions']({skipNotAttached:_0x236f29=!0x1,toJSON:_0xa0ab92=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x236f29,'toJSON':_0xa0ab92});}['getSuggestion'](_0x2f5c6b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2f5c6b);}}const w=['Pagination'];class T extends _0x59f721{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3da459=this['editor'];if(_0x3da459['config']['define']('trackChangesData.editorCreator',_0x469e09=>{const _0x19d290=_0x3da459['model']['document']['getRootNames']()['reduce']((_0x40d6d1,_0x3d3d77)=>(_0x40d6d1[_0x3d3d77]='',_0x40d6d1),{});return _0x3da459['constructor']['create'](_0x19d290,_0x469e09);}),'function'!=typeof _0x3da459['config']['get']('trackChangesData')['editorCreator'])throw new _0x280f1c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x283332){return N(this['editor'],!0x0,_0x283332);}['getDataWithDiscardedSuggestions'](_0x302ade){return N(this['editor'],!0x1,_0x302ade);}}class D extends _0x59f721{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25ede9){function _0x5e4513(_0x9dcff5){return _0x9dcff5['map'](_0x410343=>String['fromCharCode'](_0x410343))['join']('');}super(_0x25ede9),this['result']='end',_0x25ede9[_0x5e4513([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e4513([0x76,0x69,0x65,0x77])][_0x5e4513([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e4513([0x61,0x75,0x74,0x6f]),_0x25ede9[_0x5e4513([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5e4513([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e4513([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5e4513([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5e4513([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x508518){return void 0x0!==_0x508518['getRootsAttributes'];}async function N(_0x14b818,_0xf22f48,_0x443aa8){const _0x177acc=_0x3d709e(_0x14b818,w);_0x177acc['plugins']['push'](p,D),_0x177acc['rootsAttributes']=Ge(_0x14b818)?_0x14b818['getRootsAttributes']():void 0x0;const _0x4e7091=document['createDocumentFragment'](),_0x3d28c7=_0x14b818['config']['get']('trackChangesData')['editorCreator'],_0x365bb1=await _0x3d28c7(_0x177acc,()=>function(_0x4bd1f4){const _0x30b179=document['createElement']('div');return _0x4bd1f4['appendChild'](_0x30b179),_0x30b179;}(_0x4e7091));!function(_0x3df490,_0x3d8c4a){const _0x13fa1d=_0x3df490['model']['document']['getRootNames']()['reduce']((_0x81a677,_0x3119a2)=>(_0x81a677[_0x3119a2]=_0x3df490['data']['get']({'rootName':_0x3119a2}),_0x81a677),{}),_0x11e72c=_0x3df490['plugins']['get']('Users')['users']['map'](_0x11dfb7=>({'id':_0x11dfb7['id'],'name':_0x11dfb7['name']})),_0x261d3e=_0x3df490['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a4493=_0x3df490['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x373331=_0x3d8c4a['plugins']['get']('Users'),_0x35990a=_0x3d8c4a['plugins']['get']('TrackChangesEditing'),_0x4a7289=_0x3d8c4a['plugins']['get']('CommentsRepository');for(const _0x63e972 of _0x4a7289['getCommentThreads']())_0x63e972['remove']();for(const _0x4f6031 of _0x11e72c)_0x373331['getUser'](_0x4f6031['id'])||_0x373331['addUser'](_0x4f6031);_0x373331['me']||_0x373331['useAnonymousUser']();for(const _0x4ab0b2 of _0x5a4493)_0x4a7289['addCommentThread'](_0x4ab0b2);for(const _0x3708b4 of _0x261d3e)_0x35990a['addSuggestionData'](_0x3708b4);_0x3d8c4a['data']['set'](_0x13fa1d);}(_0x14b818,_0x365bb1),_0x365bb1['execute'](_0xf22f48?'acceptAllSuggestions':'discardAllSuggestions');const _0xfc79e1=Ge(_0x365bb1)?_0x365bb1['getFullData'](_0x443aa8):_0x365bb1['data']['get'](_0x443aa8);return await _0x365bb1['destroy'](),_0xfc79e1;}class Me extends _0x36f767{['options'];constructor(_0x5aa68e,_0x87bf42){super(_0x5aa68e),this['options']=_0x87bf42,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x391e99,_0x5356e3){if(!this['element'])return;const _0x199788=[];for(const [_0x360930,_0x32f661]of _0x391e99){const _0x149987=document['createElement']('div');_0x149987['setAttribute']('data-ck-root-name',_0x360930),_0x149987['className']=_0x32f661['classes']+'\x20ck-track-changes-preview__root-container',_0x149987['innerHTML']=_0x32f661['content'],_0x199788['push'](_0x149987);}_0x5356e3(this['element'],_0x199788),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x3c6e3f{constructor(_0x10b2b7){super(_0x10b2b7),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x1f5354=this['editor'],_0x486661=_0x1f5354['locale'],_0x21d08a=_0x1f5354['plugins']['get']('Dialog');let _0x2fb15b;const _0x8b55e6=function(_0x265ded){const _0x52cfb9={};if('editables'in _0x265ded['ui']['view']){for(const [_0x4ff507,_0x48924c]of Object['entries'](_0x265ded['ui']['view']['editables']))_0x52cfb9[_0x4ff507]=_0x48924c['element'];}else _0x52cfb9[_0x265ded['model']['document']['getRootNames']()[0x0]]=_0x265ded['ui']['view']['editable']['element'];return _0x52cfb9;}(_0x1f5354),_0x353948=function(_0x44ee89){let _0x21dc85=0x0;for(const _0x105cc2 of Object['values'](_0x44ee89))_0x21dc85=Math['max'](_0x21dc85,_0x105cc2['getBoundingClientRect']()['width']);let _0x512dde=0x0;for(const _0x44e1e8 of Object['values'](_0x44ee89))_0x512dde+=_0x44e1e8['getBoundingClientRect']()['height'];const _0x31db4d=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x155b96=Math['min'](_0x512dde,_0x31db4d);return{'width':_0x21dc85,'height':_0x155b96};}(_0x8b55e6);_0x21d08a['show']({'id':'finalContentPreview','title':c(_0x486661,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x486661,{'dialogRects':_0x353948}),'onHide':()=>{_0x2fb15b['detachFromDom']();},'onShow':()=>{_0x1f5354['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x41dd3c=>{const _0x54e2c7=this['_standarizeRootsData'](_0x41dd3c,_0x1f5354,_0x8b55e6);_0x21d08a['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54e2c7,_0x1f5354['config']['get']('trackChanges.preview.renderFunction'));}),_0x2fb15b=new _0x529ec8(_0x486661,[_0x21d08a['view']]),_0x2fb15b['attachToDom'](),_0x2fb15b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x1f5354['once']('destroy',()=>{_0x2fb15b['detachFromDom']();});const _0x23da21=_0x21d08a['view']['headerView']['class'];_0x21d08a['view']['headerView']['class']=_0x23da21?_0x23da21+'\x20ck-reset_all':'ck-reset_all',_0x21d08a['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x21d08a['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x32cc92=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x4d4b0e=_0x32cc92['previewMode'],_0x120958={};if('$labels'===_0x4d4b0e){for(const _0xac6371 of _0x32cc92['getMergeFieldsIds']())_0x120958[_0xac6371]=_0x32cc92['getLabel'](_0xac6371)||_0xac6371;}else{const _0x550bc7='$defaultValues'===_0x4d4b0e?_0x32cc92['getDefaultValues']():_0x32cc92['getDataSetValues'](_0x4d4b0e,!0x0);for(const _0xd0d416 of Object['entries'](_0x550bc7)){const [_0x5eda44,_0x11a4d4]=_0xd0d416;_0x120958[_0x5eda44]=null!==_0x11a4d4?_0x11a4d4:_0x32cc92['getLabel'](_0x5eda44)||_0x5eda44;}}return{'mergeFieldsData':_0x120958};}['_standarizeRootsData'](_0x188ffe,_0xe7f978,_0x499a50){let _0x3189bd;if('string'==typeof _0x188ffe){const _0x46e904=_0xe7f978['model']['document']['getRootNames']()[0x0];_0x3189bd={[_0x46e904]:_0x188ffe};}else _0x3189bd=_0x188ffe;const _0x344dfb=this['_fixMediaEmbeds'](_0x3189bd,_0xe7f978),_0x1de694=function(_0x23972b,_0x4c1c86){for(const [_0x2c378b,_0x343532]of _0x23972b)_0x343532['classes']=_0x4c1c86[_0x2c378b]['classList']['value']['replace']('ck-focused','');return _0x23972b;}(this['_sortRoots'](_0xe7f978)['reduce']((_0x17b020,_0x12b71e)=>(_0x17b020['push']([_0x12b71e,{'content':_0x344dfb[_0x12b71e],'classes':''}]),_0x17b020),[]),_0x499a50);return _0x1de694;}['_fixMediaEmbeds'](_0xd2d24f,_0x17ff38){if(!_0x17ff38['plugins']['has']('MediaEmbedEditing'))return _0xd2d24f;const _0x51e73c=_0x17ff38['plugins']['get']('MediaEmbedEditing');for(const [_0x37d0de,_0xf2e352]of Object['entries'](_0xd2d24f)){const _0x4dcba8=document['createElement']('div');_0x4dcba8['innerHTML']=_0xf2e352,(_0x4dcba8['querySelectorAll']('figure.media')['forEach'](_0x22e043=>{const _0x27eb2c=_0x22e043['querySelector']('oembed');if(_0x27eb2c){const _0x2dd8d7=_0x27eb2c['getAttribute']('url');if(_0x2dd8d7){const _0x1cdab2=_0x51e73c['registry']['getMediaViewElement'](new _0x34e4ea(_0x17ff38['editing']['view']['document']),_0x2dd8d7,{'elementName':'','renderForEditingView':!0x0}),_0x46cc48=document['createElement']('div');_0x46cc48['classList']['add']('ck-media__wrapper'),_0x1cdab2['render'](_0x46cc48,_0x17ff38['editing']['view']['domConverter']),_0x27eb2c['replaceWith'](_0x46cc48);}}}),_0xd2d24f[_0x37d0de]=_0x4dcba8['innerHTML']);}return _0xd2d24f;}['_sortRoots'](_0x333821){if(!function(_0x36e51c){return void 0x0!==_0x36e51c['getRootsAttributes'];}(_0x333821))return _0x333821['model']['document']['getRootNames']();const _0x88d5e1=[],_0x4554bf=new Map();for(const _0x19ed62 of _0x333821['model']['document']['getRootNames']()){const _0x362e50=_0x333821['editing']['view']['getDomRoot'](_0x19ed62)['getClientRects']()['item'](0x0);_0x88d5e1['push'](_0x19ed62),_0x4554bf['set'](_0x19ed62,_0x362e50);}return _0x88d5e1['sort']((_0x50511a,_0x28bb67)=>{const _0x3c299d=_0x4554bf['get'](_0x50511a),_0x12ca3f=_0x4554bf['get'](_0x28bb67);return _0x3c299d['y']-_0x12ca3f['y']||_0x3c299d['x']-_0x12ca3f['x'];}),_0x88d5e1;}}class te extends _0x59f721{static get['requires'](){return[T,_0x51c057];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x7a8dd3){super(_0x7a8dd3),_0x7a8dd3['commands']['add']('previewFinalContent',new re(this['editor'])),_0x7a8dd3['config']['define']('trackChanges.preview.renderFunction',(_0x2f442e,_0x71c5d7)=>{for(const _0xb185f5 of _0x71c5d7)_0x2f442e['appendChild'](_0xb185f5);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x5136f2,Plugin as _0x31a850,PendingActions as _0x253bb6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5121be,ObservableMixin as _0x21885c,uid as _0x34bf97,priorities as _0x26424c,insertToPriorityArray as _0x26c69e,toArray as _0x2fd845,logWarning as _0x507090,getEnvKeystrokeText as _0x1b231d,FocusTracker as _0x4ae692,KeystrokeHandler as _0x2e95d7,Collection as _0x2a6a53}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x252edb,IconCancel as _0x454f62,IconTrackChanges as _0x24a931}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x299ee1,View as _0x254aba,ViewCollection as _0x2a4980,FocusCycler as _0x4a7472,ViewModel as _0x19c07f,createDropdown as _0x4704a3,SplitButtonView as _0x4a4c5d,addListToDropdown as _0x29a0cc,MenuBarMenuView as _0x3eb7ca,MenuBarMenuListView as _0x741bb6,ListSeparatorView as _0x280b7c,MenuBarMenuListItemView as _0x4709cb,MenuBarMenuListItemButtonView as _0x2055c7,BodyCollection as _0x5f4960,Dialog as _0x4fc00c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x45c096,hashObject as _0x3d6420,surroundingMarkersDetector as _0x252763,FOCUS_ANNOTATION_KEYSTROKE as _0x2cee65,AriaDescriptionView as _0x3fde59,setupThreadKeyboardNavigation as _0x210702,trimHtml as ti,UserView as _0x1b925e,LateFocusButtonView as _0x14a78a,getDateTimeFormatter as _0x40d165,getAllMarkersDomElementsSorted as _0x521180,sanitizeEditorConfig as _0x4987e8}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1fac1e,LiveRange as _0x275766,LivePosition as _0x14a222,DowncastWriter as _0x551d30}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xdde8e0,toWidget as _0x1785d4}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x11da27,set as _0x1e69a4,isEqual as _0x439f28,unset as _0x4a4206,omit as Ft}from'es-toolkit/compat';import{Delete as _0x5933fc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x58bc11}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x1e072e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x5136f2{['_enabledCommands'];constructor(_0x174315,_0x3a3fca){super(_0x174315),this['_enabledCommands']=_0x3a3fca,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 _0x403a8a of this['editor']['commands']['commands']())_0x403a8a['affectsData']&&!this['_enabledCommands']['has'](_0x403a8a)&&_0x403a8a['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x34fc15 of this['editor']['commands']['commands']())_0x34fc15['affectsData']&&!this['_enabledCommands']['has'](_0x34fc15)&&_0x34fc15['clearForceDisabled']('TrackChangesCommand');}}class x extends _0x5136f2{['_suggestions'];constructor(_0x490bb3,_0x34da76){super(_0x490bb3),this['_suggestions']=_0x34da76,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa4eced){const _0x320edd=this['_suggestions']['get'](_0xa4eced);if(!_0x320edd)throw new _0x5121be('track-changes-accept-suggestion-not-found',this);const _0x117864=_0x320edd['getRanges']();this['editor']['model']['canEditAt'](_0x117864)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x320edd);}}class O extends _0x5136f2{['_suggestions'];constructor(_0x43e097,_0x57c52b){super(_0x43e097),this['_suggestions']=_0x57c52b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x132a9b){const _0x298515=this['_suggestions']['get'](_0x132a9b);if(!_0x298515)throw new _0x5121be('track-changes-discard-suggestion-not-found',this);const _0x154fe9=_0x298515['getRanges']();this['editor']['model']['canEditAt'](_0x154fe9)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x298515);}}function ls(_0x4253da,_0x649e4a){let _0x324973='';return _0x324973+=_0x4253da['split']('*')['map']((_0x264d58,_0x2ea951)=>_0x2ea951%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x264d58)+'</span>':nn(_0x264d58))['join'](''),_0x649e4a&&(_0x324973+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x649e4a['value']+'\x22\x20title=\x22'+_0x649e4a['title']+'\x22></span>'),_0x324973;}function nn(_0x59dca2){const _0x538acd=document['createElement']('span');return _0x538acd['innerText']=_0x59dca2,_0x538acd['innerHTML'];}function ts(_0x48c112){return _0x48c112['sort']((_0x2abbab,_0x5818b7)=>'deletion'==_0x2abbab['type']&&'deletion'!=_0x5818b7['type']?-0x1:'deletion'!=_0x2abbab['type']&&'deletion'==_0x5818b7['type']?0x1:0x0);}function to(_0x2c15c3,_0x2db15a){let _0x2b71ba,_0xa88458=0x0;const _0x563226=[],_0x8badcd=_0x2db15a['schema'];for(;_0xa88458<_0x2c15c3['length'];){const _0x2ffa68=_0x2c15c3[_0xa88458],_0x4bf68d=_0x2c15c3[_0xa88458+0x1];_0x2b71ba||(_0x2b71ba=_0x2db15a['createPositionBefore'](_0x2ffa68)),on(_0x2db15a,_0x2ffa68,_0x4bf68d)||(_0x563226['push'](_0x2db15a['createRange'](_0x2b71ba,_0x8badcd['isObject'](_0x2ffa68)?_0x2db15a['createPositionAfter'](_0x2ffa68):_0x2db15a['createPositionAt'](_0x2ffa68,'end'))),_0x2b71ba=null),_0xa88458++;}return _0x563226;}function on(_0x5117ee,_0x3e9f1a,_0x3b4701){if(!_0x3b4701)return!0x1;const _0x17e160=_0x5117ee['createPositionAfter'](_0x3e9f1a),_0x2ae092=_0x5117ee['createPositionBefore'](_0x3b4701);return _0x17e160['isTouching'](_0x2ae092);}function rs(_0x5e1030,_0x3d3e10,_0x2ae038){for(;_0x2ae038['length'];){const _0x2b16c3=_0x2ae038['splice'](0x0,0x64);_0x5e1030['change'](()=>{for(const _0xa00a8e of _0x2b16c3)_0xa00a8e['isInContent']&&_0x3d3e10['execute'](_0xa00a8e['id']);});}}class R extends _0x5136f2{['_command'];['_suggestions'];constructor(_0x54cfd3,_0x8ecdad,_0x2b3039){super(_0x54cfd3),this['_command']=_0x8ecdad,this['_suggestions']=_0x2b3039,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x317f83=Array['from'](this['_suggestions']['values']())['some'](_0x2e613d=>_0x2e613d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x317f83;}['execute'](){const _0x3314bb=ts(Array['from'](this['_suggestions']['values']()));for(const _0x39c8a2 of _0x3314bb){const _0x12b95f=_0x39c8a2['getRanges']();if(!this['editor']['model']['canEditAt'](_0x12b95f))return;}rs(this['editor']['model'],this['_command'],_0x3314bb);}}class E extends _0x5136f2{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x53b3cb,_0x332420,_0x1cbe87){super(_0x53b3cb),this['_command']=_0x332420,this['_suggestions']=_0x1cbe87,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x447568=this['editor']['model']['document']['selection'],_0x12e4da=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x136d4a,_0x53baf8){const _0x2e38e9=Array['from'](_0x136d4a['getRanges']()),_0x1ab400=new Set();for(const _0x2df8dc of _0x53baf8)if(_0x2df8dc['isInContent']){for(const _0x3e466b of _0x2e38e9)for(const _0xea07b2 of _0x2df8dc['getRanges']())(_0x3e466b['isIntersecting'](_0xea07b2)||_0x136d4a['isCollapsed']&&!_0x2df8dc['isMultiRange']&&_0x2df8dc['next']&&_0xea07b2['end']['isTouching'](_0x3e466b['start']))&&_0x1ab400['add'](_0x2df8dc);}return _0x1ab400;}(_0x447568,_0x12e4da),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xb8df0c=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3c6997 of _0xb8df0c){const _0x16d29c=_0x3c6997['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16d29c))return;}rs(this['editor']['model'],this['_command'],_0xb8df0c);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x21885c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xaaeb1c,_0x3b555e){super(),this['id']=_0x3b555e['id'],this['type']=_0x3b555e['type'],this['subType']=_0x3b555e['subType']||null,this['author']=_0x3b555e['author'],this['creator']=_0x3b555e['creator']||_0x3b555e['author'],this['isExternal']=Boolean(_0x3b555e['attributes']&&_0x3b555e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x3b555e['originalSuggestionId']||null,this['_model']=_0xaaeb1c,this['_onAccept']=_0x3b555e['onAccept'],this['_onDiscard']=_0x3b555e['onDiscard'],this['_onAttributesChange']=_0x3b555e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3b555e['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 _0x44a6eb=this;for(;_0x44a6eb['previous'];)_0x44a6eb=_0x44a6eb['previous'];return _0x44a6eb;}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'](_0x562d78){this['_markerNames']['add'](_0x562d78);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x43079d=>this['_model']['markers']['get'](_0x43079d))['filter'](_0x5c8c7b=>_0x5c8c7b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x412af7=>{for(const _0x5c0de5 of this['getMarkers']())_0x412af7['removeMarker'](_0x5c0de5);}),this['_markerNames']['clear']();}['removeMarker'](_0x2fdc73){this['_model']['change'](_0xeac152=>{_0xeac152['removeMarker'](_0x2fdc73);}),this['_markerNames']['delete'](_0x2fdc73);}['addRange'](_0x46f269){const _0x292b6c='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x292b6c),this['_model']['change'](_0x49565e=>{_0x49565e['addMarker'](_0x292b6c,{'range':_0x46f269,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4987bf){for(const _0x514db1 of this['getRanges']())if(_0x514db1['isIntersecting'](_0x4987bf))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4009e6=>_0x4009e6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x62f649,_0x505725)=>[..._0x62f649,..._0x505725['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2678ee=this['getRanges']();if(0x1!=_0x2678ee['length'])return null;const _0xd9c5ed=_0x2678ee[0x0],_0x2eb0b7=_0xd9c5ed['start']['nodeAfter'],_0x16fea6=_0xd9c5ed['end']['nodeBefore'];return _0x2eb0b7 instanceof _0x1fac1e?_0x2eb0b7!=_0x16fea6?null:_0x2eb0b7: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 _0x4ec9c5=[];let _0x3ea4b4=this['head'];for(;_0x3ea4b4;)_0x4ec9c5['push'](_0x3ea4b4),_0x3ea4b4=_0x3ea4b4['next'];return _0x4ec9c5;}['setAttribute'](_0x5e1842,_0x1a9a29){const _0x233da4=_0x11da27(this['attributes']);_0x1e69a4(_0x233da4,_0x5e1842,_0x1a9a29),_0x439f28(_0x233da4,this['attributes'])||(this['attributes']=_0x233da4,this['_onAttributesChange'](_0x233da4));}['removeAttribute'](_0x3b6e61){const _0x2f8994=_0x11da27(this['attributes']);_0x4a4206(_0x2f8994,_0x3b6e61),_0x439f28(_0x2f8994,this['attributes'])||(this['attributes']=_0x2f8994,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 _0x34bf97()['substr'](0x1,0x5);}}function c(_0x5ad94f,_0x410271,_0x586026){const _0x5059e9=_0x5ad94f['t'],t=_0x5ad94f['t'];switch(_0x410271){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x586026);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x586026);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x586026);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x586026);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x586026);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',_0x586026);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x586026);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x586026);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x586026);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x586026);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x586026);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x586026);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x586026);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x586026);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x586026);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x586026);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x586026);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x586026);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x586026);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x586026);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x586026);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x586026);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x586026);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x586026);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x586026);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'},_0x586026);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x586026);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x586026);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x586026);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x586026);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x586026);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x586026);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x586026);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'},_0x586026);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x586026);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x586026);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x586026);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x586026);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'},_0x586026);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x586026);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'},_0x586026);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'},_0x586026);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x586026);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'},_0x586026);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x586026);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'},_0x586026);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x586026);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x586026);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'},_0x586026);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x586026);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 _0x5059e9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x586026);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5059e9({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x586026);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x586026);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'},_0x586026);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'},_0x586026);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'},_0x586026);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x410271;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x124951,_0x404c89){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x124951,this['_locale']=_0x404c89;}['getDescriptions'](_0x2fa2a8){const _0x3deaa4=[],_0xd5b22d=new Set(),_0x3e80f1=new Set();for(let _0x31d4d8=0x0;_0x31d4d8<_0x2fa2a8['length'];_0x31d4d8++){const _0x34bd7e=_0x2fa2a8[_0x31d4d8];if(!_0x34bd7e['isInContent'])continue;const _0x4b53e8=this['_handleCustomCallbackDescription'](_0x34bd7e);if(_0x4b53e8){if(null!=_0x34bd7e['subType']){if(_0xd5b22d['has'](_0x34bd7e['subType']))continue;_0xd5b22d['add'](_0x34bd7e['subType']);}_0x3deaa4['push'](_0x4b53e8);}else{if('attribute'!=_0x34bd7e['type'])'insertion'!=_0x34bd7e['type']&&'deletion'!=_0x34bd7e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3deaa4,_0x34bd7e,_0x2fa2a8[_0x31d4d8+0x1]);else{const _0x36456d=_0x34bd7e['data']['key'];if(_0x3e80f1['has'](_0x36456d))continue;_0x3e80f1['add'](_0x34bd7e['data']['key']),_0x36456d==u?this['_handleRenameSuggestionDescription'](_0x3deaa4,_0x34bd7e):this['_handleAttributeSuggestionDescription'](_0x3deaa4,_0x34bd7e);}}}return this['_resolveDescriptionItems'](_0x3deaa4);}['registerDescriptionCallback'](_0x1027d7){this['_customCallbacks']['push'](_0x1027d7);}['registerElementLabel'](_0x3e89bb,_0x525947,_0x1f56f3=_0x26424c['normal']){'function'==typeof _0x3e89bb?_0x26c69e(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3e89bb,'label':_0x525947,'priority':_0x1f56f3}):this['_itemLabels']['set'](_0x3e89bb,_0x525947);}['registerAttributeLabel'](_0x1e6ff7,_0x3e29c2){this['_attributeLabels']['set'](_0x1e6ff7,_0x3e29c2);}['getItemLabel'](_0x3d8eea,_0xf2bb12=0x1){let _0x4327cb;for(const _0x478f61 of this['_itemLabelsCallbacks'])if(_0x478f61['matchingCallback'](_0x3d8eea)){_0x4327cb=_0x478f61['label'];break;}return _0x4327cb||(_0x4327cb=this['_itemLabels']['get'](_0x3d8eea['name'])),_0x4327cb?_0x4327cb(_0xf2bb12):0x1!==_0xf2bb12?_0xf2bb12+'\x20'+_0x3d8eea['name']+'s':''+_0x3d8eea['name'];}['_addDescriptionItems'](_0x510464,_0x2a677){const _0x5324a2=_0x2a677['getFirstRange']()['getWalker'](),_0x35bdb3='insertion'==_0x2a677['type']?'add':'remove';for(const _0xf6e9b4 of _0x5324a2){const _0x4058b2=_0xf6e9b4['item'],_0x5ab8e1=_0x510464[_0x510464['length']-0x1];if(_0x4058b2['is']('$textProxy'))_0x5ab8e1&&_0x5ab8e1['type']['indexOf']('Container')>-0x1&&_0x510464['pop'](),_0x5ab8e1&&'text'==_0x5ab8e1['type']?_0x5ab8e1[_0x35bdb3]+=_0x4058b2['data']:_0x510464['push']({'type':'text','add':'add'==_0x35bdb3?_0x4058b2['data']:'','remove':'remove'==_0x35bdb3?_0x4058b2['data']:''});else{if(this['_schema']['isObject'](_0x4058b2)){const _0x5a148d=_0x4058b2;if(_0x5ab8e1&&_0x5ab8e1['type']['indexOf']('Container')>-0x1&&_0x510464['pop'](),'elementEnd'==_0xf6e9b4['type'])continue;_0x5ab8e1&&_0x5ab8e1['type']==_0x35bdb3+'Object'&&_0x5ab8e1['element']['name']==_0x5a148d['name']?_0x5ab8e1['quantity']++:_0x510464['push']({'type':_0x35bdb3+'Object','element':_0x5a148d,'quantity':0x1}),_0x5324a2['skip'](_0x3923a0=>!('elementEnd'==_0x3923a0['type']&&_0x3923a0['item']==_0x4058b2));}else{if(this['_schema']['checkChild'](_0x4058b2,'$text')||_0x4058b2['is']('element','softBreak')){const _0x42bfa1=_0x4058b2;if('add'==_0x35bdb3&&'elementStart'==_0xf6e9b4['type']||'remove'==_0x35bdb3&&'elementEnd'==_0xf6e9b4['type'])continue;if(_0x5ab8e1&&-0x1==_0x5ab8e1['type']['indexOf']('Container')){'text'==_0x5ab8e1['type']&&(_0x5ab8e1[_0x35bdb3]+='\x0a');continue;}let _0x42e8c9;if(_0x42e8c9='add'==_0x35bdb3?_0x42bfa1['nextSibling']&&!this['_schema']['isObject'](_0x42bfa1['nextSibling'])?_0x42bfa1['nextSibling']:null:_0x42bfa1['previousSibling']&&!this['_schema']['isObject'](_0x42bfa1['previousSibling'])?_0x42bfa1['previousSibling']:null,_0x42bfa1['isEmpty']||_0x42e8c9&&_0x42e8c9['isEmpty']){const _0x58555d=_0x42e8c9&&_0x42e8c9['isEmpty']?_0x42e8c9:_0x42bfa1;_0x5ab8e1&&_0x5ab8e1['type']==_0x35bdb3+'EmptyContainer'&&_0x5ab8e1['element']['name']==_0x58555d['name']?_0x5ab8e1['quantity']++:_0x510464['push']({'type':_0x35bdb3+'EmptyContainer','element':_0x58555d,'quantity':0x1});}else _0x510464['push']({'type':_0x35bdb3+'Container','element':_0x42bfa1});}}}}}['_resolveDescriptionItems'](_0x28dd6b){const _0x1ac432=this['_locale'],_0x3dd8e6=[],_0x4adb01=[],_0x30918c=[];for(const _0x4e3f07 of _0x28dd6b)switch(_0x4e3f07['type']){case'text':if(_0x4e3f07['add']=_0x4e3f07['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4e3f07['remove']=_0x4e3f07['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4e3f07['add']&&''!=_0x4e3f07['remove']){_0x3dd8e6['push']({'type':'replace','content':c(_0x1ac432,'REPLACE_TEXT',['\x22'+_0x4e3f07['remove']+'\x22','\x22'+_0x4e3f07['add']+'\x22'])});continue;}if(null!=_0x4e3f07['add']['match'](/^ +$/)){_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Insert:*\x20%0',c(_0x1ac432,'ELEMENT_SPACE',_0x4e3f07['add']['length']))});continue;}if(null!=_0x4e3f07['remove']['match'](/^ +$/)){_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Remove:*\x20%0',c(_0x1ac432,'ELEMENT_SPACE',_0x4e3f07['remove']['length']))});continue;}if(''!=_0x4e3f07['add']){_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Insert:*\x20%0','\x22'+_0x4e3f07['add']+'\x22')});continue;}_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Remove:*\x20%0','\x22'+_0x4e3f07['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Insert:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Remove:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'addContainer':_0x3dd8e6['push']({'type':'insertion','content':c(_0x1ac432,'*Split:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'removeContainer':_0x3dd8e6['push']({'type':'deletion','content':c(_0x1ac432,'*Merge:*\x20%0',this['getItemLabel'](_0x4e3f07['element'],_0x4e3f07['quantity']))});continue;case'addFormat':_0x4adb01['push'](_0x4e3f07['key']);continue;case'removeFormat':_0x30918c['push'](_0x4e3f07['key']);continue;default:_0x3dd8e6['push'](_0x4e3f07);}if(_0x4adb01['length']){const _0x132fb9=_0x4adb01['map'](_0x31deed=>this['_attributeLabels']['has'](_0x31deed)?this['_attributeLabels']['get'](_0x31deed):_0x31deed)['join'](',\x20');_0x3dd8e6['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x132fb9)});}if(_0x30918c['length']){const _0x1f4cfe=_0x30918c['map'](_0x49b22f=>this['_attributeLabels']['has'](_0x49b22f)?this['_attributeLabels']['get'](_0x49b22f):_0x49b22f)['join'](',\x20');_0x3dd8e6['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x1f4cfe)});}return _0x3dd8e6;}['_handleCustomCallbackDescription'](_0x58f2d9){for(const _0x1a3dd6 of this['_customCallbacks']){const _0x5947b9=_0x1a3dd6(_0x58f2d9);if(_0x5947b9&&'type'in _0x5947b9)return _0x5947b9;}}['_handleAttributeSuggestionDescription'](_0x446e70,_0x565f4a){const _0x153924=_0x565f4a['data'],_0x2a7b08=void 0x0===_0x153924['newValue']?'removeFormat':'addFormat';_0x446e70['push']({'type':_0x2a7b08,'key':_0x153924['key']});}['_handleRenameSuggestionDescription'](_0x198863,_0xc820c2){_0x198863['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xc820c2['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xc3663f,_0x2f24e7,_0x535ac3){if(this['_addDescriptionItems'](_0xc3663f,_0x2f24e7),_0x535ac3&&_0x535ac3['getFirstRange']()&&!_0x2f24e7['getFirstRange']()['end']['isEqual'](_0x535ac3['getFirstRange']()['start'])){const _0x3499f5=_0xc3663f[_0xc3663f['length']-0x1],_0x87bf5e='insertion'==_0x2f24e7['type']?'add':'remove';_0x3499f5&&'text'==_0x3499f5['type']&&(_0x3499f5[_0x87bf5e]+='\x0a');}}}class U extends _0x31a850{['afterInit'](){const _0x10c727=this['editor'],_0x543323=_0x10c727['plugins']['get']('TrackChangesEditing');_0x10c727['commands']['get']('showAIAssistant')&&_0x543323['enableCommand']('showAIAssistant');}}class V extends _0x31a850{['afterInit'](){const _0x1ca0ae=this['editor'],_0x444fc8=_0x1ca0ae['locale'];if(!_0x1ca0ae['plugins']['has']('AlignmentEditing'))return;const _0x477963=_0x1ca0ae['plugins']['get']('TrackChangesEditing');_0x477963['enableDefaultAttributesIntegration']('alignment'),_0x477963['registerBlockAttribute']('alignment'),_0x477963['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x444fc8,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4bddfa=this['editor'],_0x55d943=_0x4bddfa['locale'];_0x4bddfa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a97d9=>{if('formatBlock'!=_0x5a97d9['type'])return;const {data:_0x30d0ca}=_0x5a97d9;if(_0x30d0ca&&'alignment'==_0x30d0ca['commandName']){const _0x39933c=_0x30d0ca['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x55d943,'*Format:*\x20%0',function(_0x2a049f){switch(_0x2a049f){case'left':return c(_0x55d943,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x55d943,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x55d943,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x55d943,'FORMAT_JUSTIFY_TEXT');}}(_0x39933c))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x31a850{['afterInit'](){const _0x30f636=this['editor'],_0x50843d=_0x30f636['plugins']['get']('TrackChangesEditing'),_0x3dc4ed=_0x30f636['locale'];for(const _0x574964 of Zt){if(!_0x30f636['plugins']['has'](_0x574964))continue;const _0x2bc0be=_0x574964['slice'](0x0,-0x7)['toLowerCase'](),_0x1527ad='FORMAT_'+_0x2bc0be['toUpperCase']();_0x50843d['enableDefaultAttributesIntegration'](_0x2bc0be),_0x50843d['registerInlineAttribute'](_0x2bc0be),_0x50843d['descriptionFactory']['registerAttributeLabel'](_0x2bc0be,c(_0x3dc4ed,_0x1527ad));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x490a8d=this['editor'],_0x4d2d42=_0x490a8d['locale'],_0x314020=_0x490a8d['plugins']['get']('TrackChangesEditing');function _0x48fc04(_0x41438c,_0x1a0dce){_0x314020['descriptionFactory']['registerDescriptionCallback'](_0x42393e=>{if('formatInline'!=_0x42393e['type'])return;const {data:_0x4042fd}=_0x42393e;return _0x4042fd&&_0x4042fd['commandName']===_0x41438c?_0x4042fd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x4d2d42,'*Format:*\x20%0',_0x1a0dce)}:{'type':'format','content':c(_0x4d2d42,'*Remove\x20format:*\x20%0',_0x1a0dce)}:void 0x0;});}_0x48fc04('bold',c(_0x4d2d42,'FORMAT_BOLD')),_0x48fc04('italic',c(_0x4d2d42,'FORMAT_ITALIC')),_0x48fc04('underline',c(_0x4d2d42,'FORMAT_UNDERLINE')),_0x48fc04('code',c(_0x4d2d42,'FORMAT_CODE')),_0x48fc04('strikethrough',c(_0x4d2d42,'FORMAT_STRIKETHROUGH')),_0x48fc04('subscript',c(_0x4d2d42,'FORMAT_SUBSCRIPT')),_0x48fc04('superscript',c(_0x4d2d42,'FORMAT_SUPERSCRIPT'));}}class G extends _0x31a850{['afterInit'](){const _0x10c558=this['editor'],_0x3f59f8=_0x10c558['locale'];if(!_0x10c558['plugins']['has']('BlockQuoteEditing'))return;const _0x55fe7f=_0x10c558['plugins']['get']('TrackChangesEditing'),_0x37e604=this['editor']['commands']['get']('blockQuote');_0x55fe7f['enableCommand']('blockQuote',(_0x1f55a3,_0x53d98e={})=>{const _0x12f763=this['editor']['model']['document']['selection'],_0x2c3a8f=_0x53d98e&&void 0x0!==_0x53d98e['forceValue']?_0x53d98e['forceValue']:!_0x37e604['value'];let _0x25de04=[];if(_0x2c3a8f){const _0x30c33=Array['from'](_0x12f763['getSelectedBlocks']())['filter'](_0x49a760=>oo(_0x49a760)||function(_0x11ccc2,_0x4c9cde){const _0x60f947=_0x4c9cde['checkChild'](_0x11ccc2['parent'],'blockQuote'),_0x4562c0=_0x4c9cde['checkChild'](['$root','blockQuote'],_0x11ccc2);return _0x60f947&&_0x4562c0;}(_0x49a760,this['editor']['model']['schema']));_0x25de04=to(_0x30c33,_0x10c558['model']);}else{const _0x40df60=Array['from'](_0x12f763['getSelectedBlocks']())['filter'](_0x266f0c=>oo(_0x266f0c));_0x25de04=to(_0x40df60,_0x10c558['model']);}_0x10c558['model']['change'](()=>{for(const _0x5ea898 of _0x25de04)_0x55fe7f['markBlockFormat'](_0x5ea898,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2c3a8f}]});});}),_0x55fe7f['descriptionFactory']['registerDescriptionCallback'](_0x50a3e3=>{const {data:_0x1bd07e}=_0x50a3e3;if(_0x1bd07e&&'blockQuote'==_0x1bd07e['commandName']){const _0x493ce3=c(_0x3f59f8,'ELEMENT_BLOCK_QUOTE');return _0x1bd07e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f59f8,'*Set\x20format:*\x20%0',_0x493ce3)}:{'type':'format','content':c(_0x3f59f8,'*Remove\x20format:*\x20%0',_0x493ce3)};}});}}function oo(_0x1e9ab7){return'blockQuote'==_0x1e9ab7['parent']['name'];}class L extends _0x31a850{['afterInit'](){const _0x2dc207=this['editor'],_0x5066c6=_0x2dc207['locale'],_0xd60693=_0x2dc207['plugins']['get']('TrackChangesEditing');_0x2dc207['plugins']['has']('BookmarkEditing')&&(_0xd60693['enableCommand']('insertBookmark'),_0xd60693['enableDefaultAttributesIntegration']('updateBookmark'),_0xd60693['registerBlockAttribute']('bookmarkId'),_0xd60693['descriptionFactory']['registerDescriptionCallback'](_0x2fcd0b=>{if('insertion'!=_0x2fcd0b['type']&&'deletion'!=_0x2fcd0b['type']&&'attribute'!=_0x2fcd0b['type'])return;const _0x41f87d=_0x2fcd0b['getContainedElement']();if(null==_0x41f87d)return;if(!_0x41f87d['is']('element','bookmark'))return;const _0x423633=_0x41f87d['getAttribute']('bookmarkId');if('insertion'==_0x2fcd0b['type'])return{'type':'insertion','content':c(_0x5066c6,'*Insert:*\x20%0','\x22'+_0x423633+'\x22\x20'+c(_0x5066c6,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2fcd0b['type'])return{'type':'deletion','content':c(_0x5066c6,'*Remove:*\x20%0','\x22'+_0x423633+'\x22\x20'+c(_0x5066c6,'ELEMENT_BOOKMARK'))};const {data:_0x551d03}=_0x2fcd0b;if(!_0x551d03||'bookmarkId'!=_0x551d03['key'])return;return{'type':'format','content':c(_0x5066c6,'*Set\x20bookmark:*\x20%0','\x22'+_0x551d03['newValue']+'\x22')};}));}}class J extends _0x31a850{['afterInit'](){const _0x4fc0b5=this['editor'];_0x4fc0b5['plugins']['has']('CaseChange')&&(_0x4fc0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4fc0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4fc0b5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x31a850{['afterInit'](){const _0xc99c48=this['editor'];_0xc99c48['commands']['get']('ckbox')&&_0xc99c48['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x31a850{['afterInit'](){const _0x255d23=this['editor'];if(!_0x255d23['plugins']['has']('CodeBlock'))return;const _0x5f1d11=_0x255d23['plugins']['get']('TrackChangesEditing'),_0x27f3bd=_0x255d23['locale'],_0x1b0ee4=_0x255d23['config']['get']('codeBlock')['languages'],_0x5cc3d8=_0x255d23['commands']['get']('codeBlock');_0x5f1d11['enableCommand']('indentCodeBlock'),_0x5f1d11['enableCommand']('outdentCodeBlock'),_0x5f1d11['enableCommand']('codeBlock',(_0x3b5dd6,_0x205fa8={})=>{const _0x171088=_0x255d23['model'],_0x249128=_0x255d23['model']['document']['selection'],_0x2d176e=_0x205fa8&&void 0x0!==_0x205fa8['forceValue']?_0x205fa8['forceValue']:!_0x5cc3d8['value'];let _0x1979f4;_0x205fa8['language']||(_0x205fa8['language']=_0x1b0ee4[0x0]['language']),_0x1979f4=_0x2d176e?Array['from'](_0x249128['getSelectedBlocks']())['filter'](_0x5bb7ef=>eo(_0x5bb7ef)||function(_0x1eea78,_0x5e8e54){if(_0x1eea78['is']('rootElement')||_0x5e8e54['isLimit'](_0x1eea78))return!0x1;return _0x5e8e54['checkChild'](_0x1eea78['parent'],'codeBlock');}(_0x5bb7ef,_0x171088['schema'])):Array['from'](_0x249128['getSelectedBlocks']())['filter'](_0x586f59=>eo(_0x586f59));const _0x415501=to(_0x1979f4,_0x171088);_0x171088['change'](()=>{for(const _0x564af7 of _0x415501)_0x5f1d11['markBlockFormat'](_0x564af7,{'commandName':'codeBlock','commandParams':[{..._0x205fa8,'forceValue':_0x2d176e}],'formatGroupId':'blockName'});});}),(_0x5f1d11['descriptionFactory']['registerElementLabel']('codeBlock',_0x28ed6f=>c(_0x27f3bd,'ELEMENT_CODE_BLOCK',_0x28ed6f)),_0x5f1d11['descriptionFactory']['registerDescriptionCallback'](_0x374343=>{if('formatBlock'!=_0x374343['type'])return;const _0x34362d=_0x27f3bd['t'],{data:_0x378c3e}=_0x374343;if(!_0x378c3e||'codeBlock'!=_0x378c3e['commandName'])return;const _0x447a5c=_0x378c3e['commandParams'][0x0]['language'],_0x341614=_0x34362d(_0x1b0ee4['find'](_0x2c9d67=>_0x2c9d67['language']===_0x447a5c)['label'])['toLowerCase']();return _0x378c3e['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x27f3bd,'*Set\x20format:*\x20%0',c(_0x27f3bd,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x341614+')')}:{'type':'format','content':c(_0x27f3bd,'*Remove\x20format:*\x20%0',c(_0x27f3bd,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x37183d){return'codeBlock'==_0x37183d['name'];}class q extends _0x31a850{['afterInit'](){const _0x33d507=this['editor'];if(!_0x33d507['plugins']['has']('CommentsEditing'))return;_0x33d507['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x25c99c,_0x1fa152,_0x2513f8){const _0x305b7e=[];for(const _0x48a902 of _0x1fa152['getItems']())_0x48a902['hasAttribute'](_0x25c99c)&&_0x305b7e['push'](_0x2513f8['createRangeOn'](_0x48a902));return _0x305b7e;}function Fe(_0x599c9b,_0x34068e,{showActiveMarker:_0x47a886=!0x0}={}){const _0x5bba7f=_0x599c9b['plugins']['get']('TrackChangesEditing');return(_0x4cb637,_0x1d35ba,_0x57f697)=>{if(!_0x57f697['consumable']['test'](_0x1d35ba['markerRange'],_0x4cb637['name']))return;const _0x11a304=_0x1d35ba['markerRange']['getWalker'](),_0x5b8f5a=_0x1d35ba['markerRange']['start'],_0x9ae7f5=_0x599c9b['model']['schema'];let _0x15ed83=null,_0x3671fb=null,_0x55c536=!0x1,_0x1ce44b=!0x1;for(const _0x2e105a of _0x11a304){const _0x3aa39a=_0x2e105a['item'];_0x55c536=_0x55c536||_0x9ae7f5['isContent'](_0x3aa39a);const _0xafbe20=_0x57f697['mapper']['toViewElement'](_0x3aa39a);if(_0xafbe20&&_0xafbe20['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2e105a['type']&&(_0x9ae7f5['isBlock'](_0x3aa39a)&&!_0x9ae7f5['isLimit'](_0x3aa39a)&&(_0x3aa39a['nextSibling']||_0x5b8f5a['isAtEnd']?_0x15ed83&&_0x15ed83['parent']==_0x3aa39a||(_0x15ed83=_0x3aa39a,_0x25ebaf(_0x2e105a['previousPosition']),_0x1ce44b=!0x0):_0x3671fb=_0x3671fb||_0x2e105a['previousPosition']));}function _0x25ebaf(_0x3ab92e){const {id:_0x54bc76,authorId:_0x5d798e}=_0x5bba7f['_splitMarkerName'](_0x1d35ba['markerName']),_0x45925a=_0x57f697['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34068e,'data-suggestion':_0x54bc76,'data-author-id':_0x5d798e}),_0x888be8=_0x57f697['mapper']['toViewPosition'](_0x3ab92e);_0x47a886&&_0x5bba7f['activeMarkers']['includes'](_0x1d35ba['markerName'])&&_0x57f697['writer']['addClass']('ck-suggestion-marker--active',_0x45925a),_0x57f697['writer']['insert'](_0x888be8,_0x45925a),_0x57f697['mapper']['bindElementToMarker'](_0x45925a,_0x1d35ba['markerName']);}_0x55c536||_0x1ce44b||!_0x3671fb||_0x25ebaf(_0x3671fb);};}class z extends _0x31a850{static get['requires'](){return[_0x5933fc];}['init'](){const _0x43b984=this['editor'],_0x35f2d2=_0x43b984['plugins']['get']('TrackChangesEditing');_0x35f2d2['enableCommand']('delete');const _0x44b410=_0x43b984['commands']['get']('deleteForward');_0x35f2d2['enableCommand']('deleteForward',(_0x377263,_0x46b4e2={})=>{const _0x320686=_0x43b984['model']['createSelection'](_0x43b984['model']['document']['selection']);_0x320686['isCollapsed']&&_0x43b984['model']['modifySelection'](_0x320686,{'direction':'forward','unit':_0x46b4e2['unit']});const _0x1c8890=_0x320686['getFirstRange'](),_0x171b14=_0x275766['fromRange'](_0x1c8890);let _0x267055;_0x377263(_0x46b4e2),_0x267055='$graveyard'==_0x171b14['root']['rootName']?_0x43b984['model']['createRange'](_0x1c8890['start']):_0x43b984['model']['createRange'](_0x171b14['start'],_0x171b14['end']),_0x171b14['detach'](),_0x43b984['model']['enqueueChange'](_0x44b410['buffer']['batch'],_0x1ef327=>{_0x44b410['buffer']['lock'](),_0x1ef327['setSelection'](_0x1ef327['createRange'](_0x267055['end'])),_0x44b410['buffer']['unlock']();});}),_0x43b984['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x43b984,'merge'),{'priority':'high'}),_0x43b984['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c281c,_0x5a80fe,_0x131c10)=>{_0x131c10['options']['showSuggestionHighlights']&&Fe(_0x43b984,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1c281c,_0x5a80fe,_0x131c10);},{'priority':'high'}),_0x43b984['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x52669c,_0x99988c,_0x3a67fc)=>{const _0x276c5f=_0x3a67fc['mapper']['markerNameToElements'](_0x99988c['markerName']);if(_0x276c5f){for(const _0xd3bcfd of _0x276c5f)_0xd3bcfd['is']('uiElement')&&(_0x3a67fc['mapper']['unbindElementFromMarkerName'](_0xd3bcfd,_0x99988c['markerName']),_0x3a67fc['writer']['remove'](_0xd3bcfd));}},{'priority':'high'});}}class W extends _0x31a850{['afterInit'](){const _0x2c3fed=this['editor'];if(!_0x2c3fed['plugins']['has']('ListEditing'))return;const _0x19f69d=_0x2c3fed['locale'],_0x1cd784=_0x2c3fed['plugins']['get']('TrackChangesEditing'),_0x377c10=_0x2c3fed['plugins']['has']('TodoListEditing'),_0x593ed3=!!_0x2c3fed['config']['get']('list.multiBlock');function _0x28119a(_0xdd4f2){return{'type':'format','content':''+c(_0x19f69d,'*Set\x20format:*\x20%0',_0xdd4f2)};}function _0x5507c0(_0x457e50){return{'type':'format','content':''+c(_0x19f69d,'*Remove\x20format:*\x20%0',_0x457e50)};}_0x1cd784['enableDefaultAttributesIntegration']('numberedList'),_0x1cd784['enableDefaultAttributesIntegration']('bulletedList'),_0x1cd784['enableDefaultAttributesIntegration']('customNumberedList'),_0x1cd784['enableDefaultAttributesIntegration']('customBulletedList'),_0x1cd784['enableDefaultAttributesIntegration']('indentList'),_0x1cd784['enableDefaultAttributesIntegration']('outdentList'),_0x1cd784['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1cd784['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x1cd784['registerBlockAttribute']('listItemId'),_0x1cd784['registerBlockAttribute']('listType'),_0x1cd784['registerBlockAttribute']('listIndent'),_0x593ed3&&(_0x1cd784['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1cd784['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x377c10&&(_0x1cd784['enableDefaultAttributesIntegration']('todoList'),_0x1cd784['enableDefaultAttributesIntegration']('checkTodoList'),_0x1cd784['registerBlockAttribute']('todoListChecked'),_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0xc7ab93=>{const {data:_0x56681c}=_0xc7ab93;if(_0x56681c&&'todoListChecked'==_0x56681c['key'])return{'type':'format','content':_0x56681c['newValue']?c(_0x19f69d,'*Check\x20item*'):c(_0x19f69d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2eda39=>{if(_0x2eda39['batch']['isUndo'])return!0x1;let _0x201314=!0x1;const _0x33b8f6=_0x1cd784['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4961a3=>'todoListChecked'===_0x1cd784['_getAttributeKey'](_0x4961a3));for(const _0x32f246 of _0x33b8f6){'todo'!=_0x32f246['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1cd784['_findSuggestions'](_0x32f246['getFirstRange'](),'attribute')['find'](_0x9fd7f9=>'listType'===_0x1cd784['_getAttributeKey'](_0x9fd7f9['suggestion']))||(_0x2eda39['removeMarker'](_0x32f246['getFirstMarker']()),_0x201314=!0x0));}return _0x201314;})),_0x1cd784['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x19f69d,'FORMAT_INDENT'));const _0x433e6b={'type':'format','content':''};_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0x435626=>{const {data:_0x1652f3}=_0x435626;if(!_0x1652f3||'listType'!=_0x1652f3['key'])return;let _0x1d308b=_0x435626['head'];for(;_0x1d308b;){if(_0x1d308b['data']&&(('listStyle'==_0x1d308b['data']['key']||'listMarkerStyle'==_0x1d308b['data']['key'])&&(_0x1d308b['data']['newValue']&&'default'!=_0x1d308b['data']['newValue']||'default'!=_0x1d308b['data']['oldValue']&&!_0x1652f3['newValue'])||!_0x593ed3&&_0x1d308b['data']['key']==u))return _0x433e6b;_0x1d308b=_0x1d308b['next'];}if(null==_0x1652f3['newValue'])switch(_0x1652f3['oldValue']){case'bulleted':return _0x5507c0(c(_0x19f69d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5507c0(c(_0x19f69d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5507c0(c(_0x19f69d,'ELEMENT_TODO_LIST'));}switch(_0x1652f3['newValue']){case'bulleted':return _0x28119a(c(_0x19f69d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28119a(c(_0x19f69d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28119a(c(_0x19f69d,'ELEMENT_TODO_LIST'));}}),_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0x2ea53c=>{const {data:_0x506cab}=_0x2ea53c;if(_0x506cab&&'listIndent'==_0x506cab['key'])return null==_0x506cab['newValue']||null==_0x506cab['oldValue']&&0x0==_0x506cab['newValue']?_0x433e6b:void 0x0;}),_0x1cd784['descriptionFactory']['registerDescriptionCallback'](_0x471f94=>{if('attribute'!=_0x471f94['type'])return;const {data:_0xfe086f}=_0x471f94;if(!_0xfe086f||'listItemId'!=_0xfe086f['key'])return;const _0x59236f=Te(_0x471f94);return'newValue'==_0x59236f?{'type':'format','content':c(_0x19f69d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59236f?{'type':'format','content':c(_0x19f69d,'*Split:*\x20list\x20item')}:_0x433e6b;}),_0x2c3fed['model']['document']['registerPostFixer'](_0x2400be=>this['listItemIdFixer'](_0x2400be)),_0x2c3fed['model']['document']['registerPostFixer'](_0x1d855e=>this['noTrackChangesFixer'](_0x1d855e)),_0x2c3fed['model']['document']['on']('change:data',(_0x226707,_0x87fe2)=>{if(_0x87fe2['isUndo']||!_0x87fe2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x45324b){if(_0x45324b['batch']['isUndo']||!_0x45324b['batch']['isLocal'])return!0x1;let _0x1cdd3d=!0x1;const _0x542eb4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x93267c=>_0x93267c['data']&&'listItemId'==_0x93267c['data']['key'])['filter'](_0x2248b8=>_0x2248b8['data']['newValue']&&_0x2248b8['data']['oldValue']);for(const _0x1c8c90 of _0x542eb4)Te(_0x1c8c90)||(_0x45324b['removeMarker'](_0x1c8c90['getFirstMarker']()),_0x1cdd3d=!0x0);return _0x1cdd3d;}['noTrackChangesFixer'](_0xa168cc){if(_0xa168cc['batch']['isUndo']||!_0xa168cc['batch']['isLocal'])return!0x1;const _0x3362b2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3362b2['trackChangesCommand']['value'])return!0x1;let _0x44632f=!0x1;const _0x2c57e2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x512d69=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0xf25499=>'attribute'==_0xf25499['type'])['filter'](_0xb41842=>_0x2c57e2['includes'](_0xb41842['attributeKey']));if(0x0==_0x512d69['length'])return _0x44632f;for(const _0x197576 of _0x512d69){const _0x72a98f=_0x3362b2['_findSuggestions'](_0x197576['range'],'attribute')['filter'](_0x5ca00f=>!_0x5ca00f['meta']['isNextTo'])['map'](_0x1e8cb6=>_0x1e8cb6['suggestion'])['filter'](_0xd5a4b2=>{const _0x22e3dc=_0x3362b2['_getAttributeKey'](_0xd5a4b2);return _0x2c57e2['includes'](_0x22e3dc);});if(_0x72a98f['length']){for(const _0x49fb68 of _0x72a98f)_0xa168cc['removeMarker'](_0x49fb68['getFirstMarker']());_0x44632f=!0x0;}}return _0x44632f;}['assureChains'](){const _0x1ae5f6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5309c4=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x32774a;const _0x1957f0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x237b78=>{if(_0x237b78['data']['oldRange']||!_0x237b78['data']['newRange'])return null;if(!_0x237b78['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x7c7c88}=_0x1ae5f6['_splitMarkerName'](_0x237b78['name']);if(!_0x1ae5f6['hasSuggestion'](_0x7c7c88))return null;const _0x15b6d6=_0x1ae5f6['getSuggestion'](_0x7c7c88);return _0x5309c4['includes'](_0x15b6d6['data']['key']);})['map'](_0x4aa7ca=>{const {id:_0x539f73}=_0x1ae5f6['_splitMarkerName'](_0x4aa7ca['name']),_0x58c184=_0x1ae5f6['getSuggestion'](_0x539f73);return _0x32774a=_0x58c184['attributes']['groupId'],_0x58c184['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1957f0['size'])return;const _0x1585c6=_0x1ae5f6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2eeec3=>'attribute'==_0x2eeec3['type']&&_0x2eeec3['data']&&_0x5309c4['includes'](_0x2eeec3['data']['key'])&&_0x2eeec3['attributes']['groupId']!=_0x32774a)['map'](_0x57eaee=>({'listItem':_0x57eaee['getFirstRange']()['start']['nodeAfter'],'groupId':_0x57eaee['attributes']['groupId']})),_0x1ad87a=new Set();for(const {groupId:_0x41b02b,listItem:_0x1dc5ba}of _0x1585c6)_0x1957f0['has'](_0x1dc5ba)&&_0x1ad87a['add'](_0x41b02b);for(const _0x88349f of _0x1ae5f6['getSuggestions']())_0x1ad87a['has'](_0x88349f['attributes']['groupId'])&&_0x88349f['setAttribute']('groupId',_0x32774a);}['_supportLegacySuggestions'](){const _0x4fefec=this['editor'],_0x4b0664=_0x4fefec['locale'],_0x33991=_0x4fefec['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x33991['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4e7edb,_0x7c625){const _0x27829d=[];for(let _0x51b7f7 of _0x4e7edb)_0x51b7f7['start']['nodeAfter']===_0x51b7f7['end']['parent']&&(_0x51b7f7=_0x4fefec['model']['createRange'](_0x4fefec['model']['createPositionAt'](_0x51b7f7['start']['nodeAfter'],0x0))),_0x27829d['push'](_0x51b7f7);_0x4fefec['model']['change'](_0x1b459d=>{const _0x11a414=_0x4fefec['model']['document']['selection'],_0xfaa715=Array['from'](_0x11a414['getRanges']())['map'](_0xf03844=>_0x275766['fromRange'](_0xf03844));_0x1b459d['setSelection'](_0x27829d),_0x4fefec['commands']['get'](_0x7c625['commandName'])['refresh'](),_0x7c625['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4fefec['execute'](_0x7c625['commandName'],..._0x7c625['commandParams']),_0x1b459d['setSelection'](_0xfaa715);for(const _0x6fec3 of _0xfaa715)_0x6fec3['detach']();});}),_0x33991['descriptionFactory']['registerElementLabel'](function(_0x493be2){const _0x3ad331=!_0x4fefec['model']['schema']['isObject'](_0x493be2),_0x56bb96=_0x493be2['previousSibling'],_0x3575df=_0x493be2['nextSibling'],_0x28d17c=_0x493be2['getAttribute']('listItemId'),_0x594648=!_0x56bb96||_0x56bb96['getAttribute']('listItemId')!==_0x28d17c,_0x5336ef=!_0x3575df||_0x3575df['getAttribute']('listItemId')!==_0x28d17c;return _0x3ad331&&Boolean(_0x28d17c)&&_0x594648&&_0x5336ef;},_0x39a7b8=>c(_0x4b0664,'ELEMENT_LIST_ITEM',_0x39a7b8));}['_registerLegacyDescription'](){const _0x5f4f07=this['editor'],_0x463004=_0x5f4f07['locale'];function _0xaaa641(_0x6d3143){const _0x3df98c=_0x5f4f07['commands']['get']('bulletedList')['value'],_0x442115=_0x5f4f07['commands']['get']('numberedList')['value'];return'numberedList'===_0x6d3143?_0x3df98c:_0x442115;}_0x5f4f07['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5ce1f9){if('formatBlock'!=_0x5ce1f9['type'])return;const {data:_0x60a7d7}=_0x5ce1f9;if(!_0x60a7d7)return;let _0x2b2466,_0x41b41a,_0x2b3305,_0x424062;switch(_0x60a7d7['commandName']){case'bulletedList':_0x2b3305=_0x60a7d7['commandParams'][0x0]['forceValue'],_0x424062=_0xaaa641(_0x60a7d7['commandName']),_0x2b2466=_0x2b3305?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x424062&&_0x5f4f07['config']['get']('list.multiBlock')||(_0x2b2466='*Change\x20to:*\x20%0'),_0x41b41a={'type':'format','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2b3305=_0x60a7d7['commandParams'][0x0]['forceValue'],_0x424062=_0xaaa641(_0x60a7d7['commandName']),_0x2b2466=_0x2b3305?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x424062&&_0x5f4f07['config']['get']('list.multiBlock')||(_0x2b2466='*Change\x20to:*\x20%0'),_0x41b41a={'type':'format','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2b2466='*Indent:*\x20%0',_0x41b41a={'type':'format','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2b2466=function(_0x255636){const _0x2b87b7=_0x255636['getFirstRange']();let _0x57d5b5=_0x2b87b7['start']['nodeAfter'];for(;_0x57d5b5&&_0x2b87b7['containsItem'](_0x57d5b5);){if(_0x57d5b5['getAttribute']('listIndent')>0x0)return!0x1;_0x57d5b5=_0x57d5b5['nextSibling'];}return!0x0;}(_0x5ce1f9)?c(_0x463004,'*Format:*\x20remove\x20from\x20%0',c(_0x463004,function(_0x5c4832){return'ELEMENT_'+_0x5c4832['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5ce1f9))):c(_0x463004,'*Outdent:*\x20%0',c(_0x463004,'ELEMENT_LIST_ITEM')),_0x41b41a={'type':'format','content':_0x2b2466};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x60a7d7['multipleBlocks']&&(_0x2b2466='*Merge:*\x20%0',_0x41b41a={'type':'deletion','content':c(_0x463004,_0x2b2466,c(_0x463004,'ELEMENT_LIST_ITEM'))});}return _0x41b41a;});}}function Te(_0x139c59){let _0x34411f=_0x139c59['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34411f;){const _0x3119f1=_0x34411f['getAttribute']('listItemId');if(!_0x3119f1)return!0x1;if(_0x3119f1==_0x139c59['data']['newValue'])return'newValue';if(_0x3119f1==_0x139c59['data']['oldValue'])return'oldValue';_0x34411f=_0x34411f['previousSibling'];}return!0x1;}class Se extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x106758=this['editor']['config']['get']('list.properties'),_0x3a0b9c=this['editor']['plugins']['get']('TrackChangesEditing');_0x106758['styles']&&(_0x3a0b9c['enableDefaultAttributesIntegration']('listStyle'),_0x3a0b9c['registerBlockAttribute']('listStyle')),_0x106758['reversed']&&(_0x3a0b9c['enableDefaultAttributesIntegration']('listReversed'),_0x3a0b9c['registerBlockAttribute']('listReversed')),_0x106758['startIndex']&&(_0x3a0b9c['enableDefaultAttributesIntegration']('listStart'),_0x3a0b9c['registerBlockAttribute']('listStart'));const _0x3a9fa4={'type':'format','content':''};_0x3a0b9c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5292a2=this['editor']['locale'];_0x3a0b9c['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x5292a2,'FORMAT_LIST_REVERSED')),_0x3a0b9c['descriptionFactory']['registerDescriptionCallback'](_0x4f5371=>{const {data:_0x3b6113}=_0x4f5371;if(_0x3b6113&&'listReversed'==_0x3b6113['key'])return null==_0x3b6113['newValue']||0x0==_0x3b6113['newValue']&&null==_0x3b6113['oldValue']?_0x3a9fa4:void 0x0;}),_0x3a0b9c['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x5292a2,'FORMAT_LIST_START')),_0x3a0b9c['descriptionFactory']['registerDescriptionCallback'](_0x3bb01e=>{const {data:_0x12ce02}=_0x3bb01e;if(_0x12ce02&&'listStart'==_0x12ce02['key'])return null==_0x12ce02['newValue']||0x1==_0x12ce02['newValue']&&null==_0x12ce02['oldValue']?_0x3a9fa4:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1c4601=>{if(_0x1c4601['batch']['isUndo'])return!0x1;let _0x272a60=!0x1;const _0xf1bdd4=_0x3a0b9c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e1676=>{const _0x349893=_0x3a0b9c['_getAttributeKey'](_0x5e1676);return'listStart'==_0x349893||'listReversed'==_0x349893;});for(const _0x31f7fe of _0xf1bdd4){const _0x3aef7e=_0x31f7fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3aef7e||'customNumbered'==_0x3aef7e)continue;_0x3a0b9c['_findSuggestions'](_0x31f7fe['getFirstRange'](),'attribute')['find'](_0x16127b=>'listType'==_0x3a0b9c['_getAttributeKey'](_0x16127b['suggestion']))||(_0x1c4601['removeMarker'](_0x31f7fe['getFirstMarker']()),_0x272a60=!0x0);}return _0x272a60;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1be3e2){const _0x565b56=this['editor']['locale'],{data:_0x34b3f3}=_0x1be3e2,_0x3538d5={'type':'format','content':''};if(!_0x34b3f3||'listStyle'!=_0x34b3f3['key'])return;if(!_0x34b3f3['oldValue'])return'default'==_0x34b3f3['newValue']?_0x3538d5:{'type':'format','content':''+c(_0x565b56,'*Set\x20format:*\x20%0',c(_0x565b56,this['_getTranslationKeyForListStyle'](_0x34b3f3['newValue'])))};if(!_0x34b3f3['newValue']){if('default'==_0x34b3f3['oldValue'])return _0x3538d5;let _0x367436=_0x1be3e2['head'];for(;_0x367436;){if(_0x367436['data']&&'listType'==_0x367436['data']['key']&&_0x367436['data']['newValue'])return _0x3538d5;_0x367436=_0x367436['next'];}return{'type':'format','content':''+c(_0x565b56,'*Remove\x20format:*\x20%0',c(_0x565b56,this['_getTranslationKeyForListStyle'](_0x34b3f3['oldValue'])))};}if('default'!=_0x34b3f3['newValue'])return{'type':'format','content':''+c(_0x565b56,'*Set\x20format:*\x20%0',c(_0x565b56,this['_getTranslationKeyForListStyle'](_0x34b3f3['newValue'])))};let _0x324394=_0x1be3e2['head'];for(;_0x324394;){if(_0x324394['data']&&'listType'==_0x324394['data']['key']&&_0x324394['data']['newValue']&&_0x324394['data']['oldValue'])return _0x3538d5;_0x324394=_0x324394['next'];}return{'type':'format','content':c(_0x565b56,'*Set\x20format:*\x20%0',c(_0x565b56,'ELEMENT_'+_0x1be3e2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1dc452=this['editor'],_0x1f890b=_0x1dc452['locale'];_0x1dc452['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50233f=>{if('formatBlock'!=_0x50233f['type'])return;const {data:_0x1a9f4b}=_0x50233f;if(!_0x1a9f4b)return;let _0xf77e53,_0x46236f;switch(_0x1a9f4b['commandName']){case'listStyle':_0xf77e53='*Change\x20to:*\x20%0',_0x46236f={'type':'format','content':c(_0x1f890b,_0xf77e53,c(_0x1f890b,this['_getTranslationKeyForListStyle'](_0x1a9f4b['commandParams'][0x0]['type'])))};break;case'listReversed':_0xf77e53=_0x1a9f4b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x46236f={'type':'format','content':c(_0x1f890b,_0xf77e53)};break;case'listStart':_0xf77e53='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46236f={'type':'format','content':c(_0x1f890b,_0xf77e53,_0x1a9f4b['commandParams'][0x0]['startIndex'])};}return _0x46236f;});}['_getTranslationKeyForListStyle'](_0x4dc647){return'ELEMENT_'+function(_0x24ec39){if(_e['includes'](_0x24ec39))return'bulleted';if(Re['includes'](_0x24ec39))return'numbered';return null;}(_0x4dc647)['toUpperCase']()+'_LIST_'+_0x4dc647['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x31a850{['afterInit'](){const _0x259e6a=this['editor'];_0x259e6a['commands']['get']('emoji')&&_0x259e6a['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x31a850{static get['requires'](){return[_0x58bc11];}['init'](){const _0xeb392c=this['editor'],_0x20857b=_0xeb392c['plugins']['get']('TrackChangesEditing'),_0x253b1b=_0xeb392c['commands']['get']('enter');_0x20857b['enableCommand']('enter',()=>{_0xeb392c['model']['change'](_0x3faeec=>{const _0x193dd9=_0xeb392c['model']['document']['selection'],_0x534fb2=_0x193dd9['getFirstPosition'](),_0x394df1=_0x275766['fromRange'](_0x193dd9['getFirstRange']());if(_0x253b1b['enterBlock'](_0x3faeec)){const _0x12b99b=_0xeb392c['model']['createPositionAt'](_0x534fb2['parent']['nextSibling'],0x0),_0x5011b0=_0x3faeec['createRange'](_0x534fb2,_0x12b99b);_0x20857b['markInsertion'](_0x5011b0);}else _0x3faeec['setSelection'](_0x3faeec['createRange'](_0x394df1['end']));_0x394df1['detach'](),_0x253b1b['fire']('afterExecute',{'writer':_0x3faeec});});}),_0xeb392c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0xeb392c,'split'),{'priority':'high'}),_0xeb392c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1f3760,_0x40efc2,_0x5f0cd7)=>{const _0x258e4d=_0x5f0cd7['mapper']['markerNameToElements'](_0x40efc2['markerName']);if(_0x258e4d){for(const _0x246be7 of _0x258e4d)_0x246be7['hasClass']('ck-suggestion-marker-split')&&(_0x5f0cd7['mapper']['unbindElementFromMarkerName'](_0x246be7,_0x40efc2['markerName']),_0x5f0cd7['writer']['remove'](_0x246be7));}},{'priority':'high'}),_0xeb392c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x173afd,_0x151e64,_0x462677)=>{_0x462677['options']['showSuggestionHighlights']&&Fe(_0xeb392c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x173afd,_0x151e64,_0x462677);},{'priority':'high'});}}class Z extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5160b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x5160b8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5160b8['enableCommand']('findNext'),_0x5160b8['enableCommand']('findPrevious'),_0x5160b8['enableCommand']('replace'),_0x5160b8['enableCommand']('replaceAll');}['handleFindCommand'](_0x43d628,_0x29d95f,_0x347147={}){const _0xe3f935=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x43d628(_0x38482e=>{let _0x5e6980=('string'==typeof _0x29d95f?_0xe3f935['findByTextCallback'](_0x29d95f,_0x347147):_0x29d95f)(_0x38482e);Array['isArray'](_0x5e6980)&&(_0x5e6980={'results':_0x5e6980,'searchText':'string'==typeof _0x29d95f?_0x29d95f:''});const _0x193bed=_0x5e6980['results']['filter'](_0x2b0f1a=>!0x1===this['_isInDeletionRange'](_0x2b0f1a,_0x38482e['item']));return{..._0x5e6980,'results':_0x193bed};},_0x347147);}['_isInDeletionRange'](_0x1d2402,_0x1ed959){const _0x1b109b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1ed959,_0x1d2402['start']),this['editor']['model']['createPositionAt'](_0x1ed959,_0x1d2402['end']));for(const _0x4ab394 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1b109b['getIntersection'](_0x4ab394['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x31a850{['afterInit'](){const _0x5266be=this['editor']['locale'],_0x4f8202=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x83cdfc,commandName:_0x1e69ed}of ro)this['editor']['plugins']['has'](_0x83cdfc)&&(_0x4f8202['enableDefaultAttributesIntegration'](_0x1e69ed),_0x4f8202['registerInlineAttribute'](_0x1e69ed));_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x5266be,'FORMAT_FONT_SIZE')),_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x5266be,'FORMAT_FONT_FAMILY')),_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x5266be,'FORMAT_FONT_COLOR')),_0x4f8202['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x5266be,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c4f6c=this['editor'],_0x2e345f=_0x1c4f6c['locale'];_0x1c4f6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a67e0=>{const _0x2e2a1d=_0x2e345f['t'];if('formatInline'!=_0x1a67e0['type'])return;const {data:_0x3330c0}=_0x1a67e0;if(null!=_0x3330c0){if('fontSize'==_0x3330c0['commandName']){const _0x130645=_0x3330c0['commandParams'][0x0]['value'];if(_0x130645){const _0x29e934=_0x2e2a1d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xbb4f8b=>_0xbb4f8b['model']==_0x130645)['title'])['toLowerCase']();return{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20size:*\x20%0',_0x29e934)};}return{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3330c0['commandName']){const _0x18b2e4=_0x3330c0['commandParams'][0x0]['value'];return _0x18b2e4?{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20family:*\x20%0',_0x18b2e4)}:{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3330c0['commandName']){const _0x2cb462=_0x3330c0['commandParams'][0x0]['value'];if(_0x2cb462){const _0x3bc3d3=_0x299ee1(this['editor']['config']['get']('fontColor.colors'))['find'](_0x34c09b=>_0x34c09b['model']==_0x2cb462);let _0x3002ab=_0x2cb462,_0x5d2a07='';return _0x3bc3d3&&(_0x3002ab=_0x3bc3d3['label'],_0x5d2a07=_0x2e2a1d(_0x3002ab)['toLowerCase']()),{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20color:*\x20%0',_0x5d2a07)['trim'](),'color':{'value':_0x2cb462,'title':_0x5d2a07||_0x3002ab}};}return{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3330c0['commandName']){const _0x3f0d06=_0x3330c0['commandParams'][0x0]['value'];if(_0x3f0d06){const _0x4ad64f=_0x299ee1(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x25af8e=>_0x25af8e['model']==_0x3f0d06);let _0xeb1ced=_0x3f0d06,_0x766bd='';return _0x4ad64f&&(_0xeb1ced=_0x4ad64f['label'],_0x766bd=_0x2e2a1d(_0xeb1ced)['toLowerCase']()),{'type':'format','content':c(_0x2e345f,'*Set\x20font\x20background\x20color:*\x20%0',_0x766bd)['trim'](),'color':{'value':_0x3f0d06,'title':_0x766bd||_0xeb1ced}};}return{'type':'format','content':c(_0x2e345f,'*Reset\x20font\x20background\x20color*')};}}});}}class it extends _0x31a850{['afterInit'](){const _0x5acab6=this['editor'],_0x52d466=_0x5acab6['plugins']['get']('TrackChangesEditing'),_0x4b8d2b=_0x5acab6['commands']['get']('copyFormat'),_0x3cad5f=_0x5acab6['commands']['get']('pasteFormat');_0x4b8d2b&&_0x3cad5f&&(_0x52d466['enableDefaultAttributesIntegration']('pasteFormat'),_0x52d466['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x118413=this['editor'],_0xe3c504=_0x118413['locale'];_0x118413['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x105c50=>{if('formatBlock'!=_0x105c50['type']&&'formatInline'!=_0x105c50['type'])return;const {data:_0x50cb38}=_0x105c50;if(_0x50cb38&&'pasteFormat'===_0x50cb38['commandName']){const _0x1cc7df=[],_0x32fa9b=_0x50cb38['commandParams'][0x0];for(const [_0x4bfcae,_0x4c01e3]of Object['entries'](_0x32fa9b))_0x1cc7df['push'](so(_0x118413,_0x4bfcae,_0x4c01e3));return _0x1cc7df['length']?{'type':'format','content':c(_0xe3c504,'*Set\x20format\x20to:*\x20%0',_0x1cc7df['join'](',\x20'))}:{'type':'format','content':c(_0xe3c504,'*Remove\x20all\x20formatting*')};}});}}function so(_0x381ddb,_0x355156,_0x109378){const _0x54a73e=_0x381ddb['locale']['t'],_0x5bb5f7=_0x355156['split'](/(?=[A-Z])/)['join']('\x20'),_0x29ff81=_0x54a73e(_0x5bb5f7['charAt'](0x0)['toUpperCase']()+_0x5bb5f7['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x109378)return _0x29ff81;if('fontColor'===_0x355156||'fontBackgroundColor'===_0x355156){const _0x6ae4af=_0x299ee1(_0x381ddb['config']['get']('fontColor.colors'))['find'](_0x2baaa3=>_0x2baaa3['model']==_0x109378);return _0x29ff81+'\x20('+(_0x6ae4af?_0x54a73e(_0x6ae4af['label'])['toLowerCase']():_0x109378)+')';}if('fontSize'===_0x355156&&isNaN(parseFloat(_0x109378))){const _0xeec370=_0x381ddb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x381ddb['config']['get']('fontSize.options'))['find'](_0x493856=>_0x493856['model']==_0x109378);return _0x29ff81+'\x20('+(_0xeec370?_0x54a73e(_0xeec370['title'])['toLowerCase']():_0x109378)+')';}return _0x29ff81+'\x20('+_0x109378+')';}class et extends _0x31a850{['_headingOptions'];['afterInit'](){const _0x1dcfcc=this['editor'];if(!_0x1dcfcc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1dcfcc['config']['get']('heading.options');const _0x64fb85=_0x1dcfcc['locale'],_0x14b64b=_0x1dcfcc['plugins']['get']('TrackChangesEditing');_0x14b64b['enableDefaultAttributesIntegration']('heading');for(const _0xddd678 of this['_headingOptions'])'paragraph'!=_0xddd678['model']&&_0x14b64b['descriptionFactory']['registerElementLabel'](_0xddd678['model'],_0x1fe5fe=>{const _0xb87e6f=this['_getHeadingLevel'](_0xddd678['model']);return null!==_0xb87e6f?_0x446836(_0x1fe5fe,_0xb87e6f):_0x47620b(_0x1fe5fe,_0xddd678['title']);});function _0x446836(_0x2a0585,_0x28405a){return c(_0x64fb85,'ELEMENT_HEADING',[_0x2a0585,_0x28405a]);}function _0x47620b(_0x5320f6,_0x29a4cc){return c(_0x64fb85,'ELEMENT_HEADING_CUSTOM',[_0x5320f6,_0x29a4cc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c6638=this['editor'],_0x2766b0=_0x1c6638['locale'];function _0x4fe41d(_0x158bf7,_0x301ceb){return c(_0x2766b0,'ELEMENT_HEADING_CUSTOM',[_0x158bf7,_0x301ceb]);}_0x1c6638['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14667f=>{if('formatBlock'!=_0x14667f['type'])return;const {data:_0x2dca71}=_0x14667f;if(_0x2dca71&&'heading'==_0x2dca71['commandName']){const _0x2a953c=_0x2dca71['commandParams'][0x0]['value'],_0x5c7800=this['_getHeadingLevel'](_0x2a953c);if(null!==_0x5c7800)return{'type':'format','content':c(_0x2766b0,'*Change\x20to:*\x20%0',(_0x1962bc=0x1,_0x4bab2e=_0x5c7800,c(_0x2766b0,'ELEMENT_HEADING',[_0x1962bc,_0x4bab2e])))};const _0x237ea4=this['_headingOptions']['find'](_0x31e71e=>_0x31e71e['model']===_0x2a953c)['title'];return{'type':'format','content':c(_0x2766b0,'*Change\x20to:*\x20%0',_0x4fe41d(0x1,_0x237ea4))};}var _0x1962bc,_0x4bab2e;});}['_getHeadingLevel'](_0x3df28c){const _0x116019=_0x3df28c['match'](/^heading(\d+)/);if(_0x116019)return _0x116019[0x1];const _0x30a03=this['_headingOptions']?.['find'](_0x54367a=>_0x54367a['model']==_0x3df28c);if(_0x30a03&&_0x30a03['view']){const _0x5e0e3c=_0x30a03['view'],_0x19b6fd=(_0x5e0e3c['name']??_0x5e0e3c)['match'](/^h(\d+)/);if(_0x19b6fd)return _0x19b6fd[0x1];}return null;}}class nt extends _0x31a850{['afterInit'](){const _0x484526=this['editor'];if(!_0x484526['plugins']['has']('HighlightEditing'))return;const _0x3bcaf0=_0x484526['plugins']['get']('TrackChangesEditing'),_0x5d43d5=_0x484526['locale'];_0x3bcaf0['enableDefaultAttributesIntegration']('highlight'),_0x3bcaf0['registerInlineAttribute']('highlight'),_0x3bcaf0['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5d43d5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc1451=this['editor'],_0x65a47a=_0xc1451['locale'];_0xc1451['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x374d7f=>{if('formatInline'!=_0x374d7f['type'])return;const {data:_0x1843c6}=_0x374d7f;if(_0x1843c6&&'highlight'==_0x1843c6['commandName']){const _0x774cfa=_0x65a47a['t'],_0x4b6b02=_0x1843c6['commandParams'][0x0]['value'];if(_0x4b6b02){const _0x57338c=_0xc1451['config']['get']('highlight.options')['find'](_0xb3eded=>_0xb3eded['model']==_0x4b6b02),_0x1c4265=_0x774cfa(_0x57338c['title'])['toLowerCase']();return{'type':'format','content':c(_0x65a47a,'*Set\x20highlight:*\x20%0',_0x1c4265),'color':{'value':_0x57338c['color'],'title':_0x57338c['title']}};}return{'type':'format','content':c(_0x65a47a,'*Remove\x20highlight*',c(_0x65a47a,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x31a850{['afterInit'](){const _0x559197=this['editor'];if(!_0x559197['plugins']['has']('HorizontalLineEditing'))return;_0x559197['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x10ef05=_0x559197['plugins']['get']('TrackChangesEditing'),_0x73ea8d=_0x559197['locale'];_0x10ef05['descriptionFactory']['registerElementLabel']('horizontalLine',_0x302528=>c(_0x73ea8d,'ELEMENT_HORIZONTAL_LINE',_0x302528)),_0x559197['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x4d03f0,{writer:_0x19a58e,options:_0x2d9826})=>{if(!_0x2d9826['showSuggestionHighlights'])return null;const _0x580454=_0x19a58e['createContainerElement']('div'),_0x233027=_0x19a58e['createEmptyElement']('hr');return _0x19a58e['addClass']('ck-horizontal-line',_0x580454),_0x19a58e['insert'](_0x19a58e['createPositionAt'](_0x580454,0x0),_0x233027),_0x580454;},'converterPriority':'high'});}}class ot extends _0x31a850{['afterInit'](){const _0x1f8e50=this['editor'];if(!_0x1f8e50['plugins']['has']('HtmlEmbed'))return;const _0x276a86=_0x1f8e50['plugins']['get']('TrackChangesEditing'),_0x30dc16=_0x1f8e50['locale'];_0x276a86['descriptionFactory']['registerElementLabel']('rawHtml',_0x25b2d0=>c(_0x30dc16,'ELEMENT_HTML_EMBED',_0x25b2d0)),_0x276a86['enableDefaultAttributesIntegration']('htmlEmbed'),_0x276a86['registerBlockAttribute']('value'),_0x276a86['descriptionFactory']['registerDescriptionCallback'](_0x564560=>{if('attribute'!=_0x564560['type'])return;const {data:_0x48d86e}=_0x564560;if(_0x48d86e&&'value'==_0x48d86e['key']&&_0x564560['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3cd75b=c(_0x30dc16,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x30dc16,'*Change\x20%0\x20content*',_0x3cd75b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56b200=this['editor'],_0x1d418b=_0x56b200['locale'];_0x56b200['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6d8519=>{if('formatBlock'!=_0x6d8519['type'])return;const {data:_0x2f4707}=_0x6d8519;if(_0x2f4707&&'htmlEmbed'==_0x2f4707['commandName']){const _0x5bd6c8=c(_0x1d418b,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x1d418b,'*Change\x20%0\x20content*',_0x5bd6c8)};}});}}class rt extends _0x31a850{['afterInit'](){const _0xedc05=this['editor'];if(!_0xedc05['plugins']['has']('ImageEditing'))return;const _0x11a653=_0xedc05['plugins']['get']('TrackChangesEditing'),_0x23b368=_0xedc05['plugins']['get']('ImageUtils'),_0x46464a=_0xedc05['locale'];_0x11a653['enableCommand']('insertImage'),_0x11a653['descriptionFactory']['registerElementLabel']('imageBlock',_0x3a4fa2=>c(_0x46464a,'ELEMENT_IMAGE',_0x3a4fa2)),_0x11a653['descriptionFactory']['registerElementLabel']('imageInline',_0x5941a4=>c(_0x46464a,'ELEMENT_INLINE_IMAGE',_0x5941a4)),_0x11a653['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x46464a,'ELEMENT_CAPTION')),_0xedc05['plugins']['has']('ImageUploadEditing')&&_0x11a653['enableCommand']('uploadImage'),_0xedc05['plugins']['has']('ImageBlockEditing')&&_0xedc05['plugins']['has']('ImageInlineEditing')&&(_0x11a653['enableCommand']('imageTypeInline',(_0x4f6af3,_0x30546f)=>{const _0x2d6ac8=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']);_0xedc05['model']['change'](()=>{_0x11a653['markBlockFormat'](_0x2d6ac8,{'commandName':'imageTypeInline','commandParams':[_0x30546f]},[],'convertBlockImageToInline');});}),_0x11a653['enableCommand']('imageTypeBlock',(_0x1079da,_0x5ae582)=>{_0xedc05['model']['change'](_0x2462fd=>{let _0x2aa1ca=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x208647=_0x2462fd['createRangeOn'](_0x2aa1ca);const _0x33cb4e=_0x14a222['fromPosition'](_0x208647['start'],'toPrevious'),_0x1c5022=_0x14a222['fromPosition'](_0x208647['end'],'toNext');_0x11a653['forceDefaultExecution'](()=>_0x1079da(_0x5ae582)),_0x2aa1ca=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x208647=_0x2462fd['createRangeOn'](_0x2aa1ca);const _0x57a84d=_0x2462fd['createRange'](_0x33cb4e,_0x1c5022);_0x33cb4e['detach'](),_0x1c5022['detach'](),_0x11a653['markBlockFormat'](_0x2aa1ca,{'commandName':'imageTypeInline','commandParams':[_0x5ae582]},[],'convertInlineImageToBlock'),_0x57a84d['start']['isBefore'](_0x208647['start'])&&_0x11a653['markInsertion'](_0x2462fd['createRange'](_0x57a84d['start'],_0x208647['start']),'convertInlineImageToBlock'),_0x208647['end']['isBefore'](_0x57a84d['end'])&&_0x11a653['markInsertion'](_0x2462fd['createRange'](_0x208647['end'],_0x57a84d['end']),'convertInlineImageToBlock');});}),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11a653['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x23b9b4])=>{const _0x5e8661=_0x11a653['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x499b41=_0x23b9b4['start'],_0x50f2dc=_0x23b9b4['end'];const _0x1fc2ec=_0xedc05['model']['schema']['getNearestSelectionRange'](_0x499b41,'backward'),_0x3cbbf6=_0xedc05['model']['schema']['getNearestSelectionRange'](_0x50f2dc,'forward');_0x1fc2ec['isCollapsed']&&(_0x499b41=_0x1fc2ec['start']),_0x3cbbf6['isCollapsed']&&(_0x50f2dc=_0x3cbbf6['end']),_0x5e8661([_0xedc05['model']['createRange'](_0x499b41,_0x50f2dc)]);}),_0x11a653['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x40d7e0),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x40d7e0)),_0xedc05['plugins']['has']('ImageCaptionEditing')&&(_0x11a653['enableCommand']('toggleImageCaption',(_0x4cc488,_0x34212f)=>{const _0x43875d=_0xedc05['plugins']['get']('ImageCaptionUtils');let _0x28da1d=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x837050=_0x43875d['getCaptionFromImageModelElement'](_0x28da1d);_0xedc05['model']['change'](()=>{if(_0x837050)return void _0x11a653['markDeletion'](_0xedc05['model']['createRangeOn'](_0x837050));const _0x3f2271=_0x23b368['isBlockImage'](_0x28da1d);_0x4cc488(_0x34212f),_0x28da1d=_0x23b368['getClosestSelectedImageElement'](_0xedc05['model']['document']['selection']),_0x837050=_0x43875d['getCaptionFromImageModelElement'](_0x28da1d),_0x11a653['markInsertion'](_0xedc05['model']['createRangeOn'](_0x837050),_0x3f2271?null:'imageCaption');});}),_0x11a653['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x40d7e0));const _0x3646b1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29f316(_0x31076b,_0x6b4a0d){const _0x4b97bb=_0x3646b1['findIndex'](({type:_0x30b21b,subType:_0x36e78a})=>_0x31076b['type']==_0x30b21b&&_0x31076b['subType']==_0x36e78a),_0x4f1a91=_0x3646b1['findIndex'](({type:_0x2876fb,subType:_0x3f4046})=>_0x6b4a0d['type']==_0x2876fb&&_0x6b4a0d['subType']==_0x3f4046);if(_0x4b97bb<0x0||_0x4f1a91<0x0)return!0x1;const _0x1e20d4=_0x31076b['getFirstRange'](),_0x596ecf=_0x6b4a0d['getFirstRange']();if((0x0==_0x4b97bb||0x1==_0x4b97bb)&&0x2==_0x4f1a91&&_0x1e20d4['isIntersecting'](_0x596ecf))return!0x0;if(0x2==_0x4b97bb&&0x3==_0x4f1a91){const _0xb617c7=_0x11a653['_findSuggestions'](_0x1e20d4,'insertion')['filter'](({suggestion:_0x41bdc7,meta:_0x31f77e})=>_0x31f77e['isOwn']&&'convertInlineImageToBlock'==_0x41bdc7['subType']);if(_0xb617c7['length']>0x1&&_0x596ecf['end']['isEqual'](_0x1e20d4['start']))return!0x0;if(0x1==_0xb617c7['length']&&(_0x1e20d4['start']['isEqual'](_0x596ecf['end'])||_0x1e20d4['end']['isEqual'](_0x596ecf['start'])))return!0x0;}if(0x3==_0x4b97bb&&0x3==_0x4f1a91&&_0x1e20d4['start']['isBefore'](_0x596ecf['start'])){const _0x525776=_0x1e20d4['end']['nodeAfter'],_0x54c078=_0x596ecf['start']['nodeBefore'];return _0x23b368['isBlockImage'](_0x525776)&&_0x525776===_0x54c078;}return!0x1;}function _0x40d7e0(_0x3059d2,_0x1c11d1){return _0x29f316(_0x3059d2,_0x1c11d1)?[_0x3059d2,_0x1c11d1]:_0x29f316(_0x1c11d1,_0x3059d2)?[_0x1c11d1,_0x3059d2]:null;}_0xedc05['plugins']['has']('ImageResize')&&(_0x11a653['enableDefaultAttributesIntegration']('resizeImage'),_0x11a653['registerBlockAttribute']('resizedWidth'),_0x11a653['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x46464a,'FORMAT_IMAGE_SIZE'))),_0xedc05['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11a653['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11a653['registerBlockAttribute']('alt')),_0xedc05['plugins']['has']('PictureEditing')&&(_0x11a653['registerBlockAttribute']('sources'),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0xbb00df=>{if('attribute'!=_0xbb00df['type'])return;const {data:_0x47249c}=_0xbb00df;return _0x47249c&&'sources'==_0x47249c['key']?{'type':'format','content':''}:void 0x0;})),_0xedc05['plugins']['has']('ImageSizeAttributes')&&(_0x11a653['registerBlockAttribute']('width'),_0x11a653['registerBlockAttribute']('height'),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x54cf1f=>{if('attribute'!=_0x54cf1f['type'])return;const {data:_0x53348c}=_0x54cf1f;return!_0x53348c||'width'!=_0x53348c['key']&&'height'!=_0x53348c['key']?void 0x0:{'type':'format','content':''};})),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x587094=>{if(!!_0x3646b1['find'](({type:_0x3c6b8d,subType:_0x4c9684})=>_0x587094['type']==_0x3c6b8d&&_0x587094['subType']==_0x4c9684))return _0x587094['previous']?{}:void 0x0;}),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x33c168=>{if('insertion'==_0x33c168['type']||'deletion'==_0x33c168['type']){const _0x194606=_0x33c168['getContainedElement']();if(_0x194606&&_0x194606['is']('element','caption'))return{'type':'insertion'==_0x33c168['type']?'addObject':'removeObject','element':_0x194606,'quantity':0x1};}}),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0xe0f87c=>'formatBlock'==_0xe0f87c['type']&&'convertInlineImageToBlock'==_0xe0f87c['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xe0f87c['type']&&'convertBlockImageToInline'==_0xe0f87c['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11a653['descriptionFactory']['registerDescriptionCallback'](_0x488433=>{if('attribute'!=_0x488433['type'])return;const {data:_0x385e93}=_0x488433;if(!_0x385e93||'alt'!=_0x385e93['key'])return;const _0x551274=_0x385e93['newValue'];return _0x551274?{'type':'format','content':c(_0x46464a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x551274+'\x22')}:{'type':'format','content':c(_0x46464a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x543933=this['editor'],_0x1fcd0a=_0x543933['locale'];_0x543933['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f7e34=>{if('formatBlock'!=_0x3f7e34['type']&&'formatInline'!=_0x3f7e34['type'])return;const {data:_0x54f854}=_0x3f7e34;if(_0x54f854){if('imageTextAlternative'==_0x54f854['commandName']){const _0x1b89c3=_0x54f854['commandParams'][0x0]['newValue'];return _0x1b89c3?{'type':'format','content':c(_0x1fcd0a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b89c3+'\x22')}:{'type':'format','content':c(_0x1fcd0a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x54f854['commandName']){const _0x4d3933=_0x54f854['commandParams'][0x0]['width'];return _0x4d3933?{'type':'format','content':c(_0x1fcd0a,'*Set\x20image\x20width:*\x20%0',_0x4d3933)}:{'type':'format','content':c(_0x1fcd0a,'*Reset\x20image\x20width*')};}}});}}class at extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x372d26=this['editor']['locale'],_0x2170e3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2170e3['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2170e3['registerBlockAttribute']('src'),_0x2170e3['descriptionFactory']['registerDescriptionCallback'](_0x14b209=>{if('attribute'!=_0x14b209['type'])return;const {data:_0x4cb4a4}=_0x14b209;return _0x4cb4a4&&'src'==_0x4cb4a4['key']?_0x4cb4a4['newValue']&&_0x4cb4a4['oldValue']?{'type':'format','content':c(_0x372d26,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x50999a=this['editor']['plugins']['get']('TrackChangesEditing');_0x50999a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x50999a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x50999a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x50999a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x291860=this['editor'],_0x5943a2=_0x291860['locale'];_0x291860['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3841e0=>{if('formatBlock'!=_0x3841e0['type']&&'formatInline'!=_0x3841e0['type'])return;const {data:_0x120258}=_0x3841e0;if(!_0x120258||'replaceImageSource'!=_0x120258['commandName'])return;return{'type':'format','content':c(_0x5943a2,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x31a850{['afterInit'](){const _0x5e3639=this['editor'];if(!_0x5e3639['plugins']['has']('ImageStyleEditing'))return;const _0xb8888d=_0x5e3639['plugins']['get']('TrackChangesEditing'),_0x5583c1=_0x5e3639['plugins']['get']('ImageUtils'),_0x4876e4={};_0xb8888d['enableCommand']('imageStyle',(_0x2e5fc5,_0x44caab)=>{const _0xf20b9c=_0x5e3639['plugins']['get']('Users')['me'],_0x1aee10=_0x5e3639['commands']['get']('imageStyle');let _0x35a80c=_0x5583c1['getClosestSelectedImageElement'](_0x5e3639['model']['document']['selection']),_0x403b26=_0x5e3639['model']['createRangeOn'](_0x35a80c),_0x5b35ba=_0x1aee10['value'];if(_0x5b35ba==_0x44caab['value'])return;const _0x51c80a={'commandName':'imageStyle','commandParams':[_0x44caab],'formatGroupId':_0x34bf97()};_0x5e3639['model']['change'](()=>{if(_0xb8888d['getSuggestions']()['filter'](_0x1f59a0=>_0x1f59a0['isInContent']&&_0xf20b9c==_0x1f59a0['author']&&('formatBlock'==_0x1f59a0['type']||'formatInline'==_0x1f59a0['type'])&&('imageStylePreApply'==_0x1f59a0['subType']||'imageStylePostApply'==_0x1f59a0['subType'])&&_0x1f59a0['getFirstRange']()['isEqual'](_0x403b26))['forEach'](_0x3edf36=>_0xb8888d['discardSuggestion'](_0x3edf36['head'])),_0x35a80c=_0x5583c1['getClosestSelectedImageElement'](_0x5e3639['model']['document']['selection']),_0x403b26=_0x5e3639['model']['createRangeOn'](_0x35a80c),_0x1aee10['refresh'](),_0x5e3639['commands']['get']('imageTypeInline')['refresh'](),_0x5e3639['commands']['get']('imageTypeBlock')['refresh'](),_0x5b35ba=_0x1aee10['value'],_0x5b35ba!=_0x44caab['value'])return _0x5583c1['isInlineImage'](_0x35a80c)&&_0x1aee10['shouldConvertImageType'](_0x44caab['value'],_0x35a80c)?(_0x2e5fc5({..._0x44caab,'setImageSizes':!0x1}),_0x35a80c=_0x5583c1['getClosestSelectedImageElement'](_0x5e3639['model']['document']['selection']),void _0xb8888d['markBlockFormat'](_0x35a80c,{..._0x51c80a,'commandReversedParams':[{'value':_0x5b35ba||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5583c1['isBlockImage'](_0x35a80c)?_0xb8888d['markBlockFormat'](_0x35a80c,_0x51c80a,[],'imageStylePostApply'):_0xb8888d['markInlineFormat'](_0x403b26,_0x51c80a,'imageStylePostApply'));});});for(const _0x3e8f53 of _0x5e3639['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4876e4[_0x3e8f53['name']]=_0x3e8f53['title']['toLowerCase']();_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2cfc7c])=>{_0x5583c1['setImageNaturalSizeAttributes'](_0x2cfc7c['getContainedElement']());}),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x14d4be,_0x392a63)=>{_0xb8888d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x14d4be,{'commandName':_0x392a63['commandName'],'commandParams':_0x392a63['commandReversedParams']});}),_0xb8888d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x516854,_0x1cbb89){if(_0x494245(_0x516854,_0x1cbb89))return[_0x516854,_0x1cbb89];if(_0x494245(_0x1cbb89,_0x516854))return[_0x1cbb89,_0x516854];return null;});const _0x115295=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x494245(_0xac1a48,_0x453ae4){const _0x43dca5=_0x115295['findIndex'](({type:_0x188154,subType:_0x28f32d})=>_0xac1a48['type']==_0x188154&&_0xac1a48['subType']==_0x28f32d),_0xbc7360=_0x115295['findIndex'](({type:_0x5dac13,subType:_0x3a53e4})=>_0x453ae4['type']==_0x5dac13&&_0x453ae4['subType']==_0x3a53e4);if(_0x43dca5<0x0||_0xbc7360<0x0)return!0x1;const _0x3f07e3=_0xac1a48['getFirstRange'](),_0x4f2087=_0x453ae4['getFirstRange']();if((0x0==_0x43dca5||0x1==_0x43dca5)&&0x2==_0xbc7360&&_0x3f07e3['isIntersecting'](_0x4f2087))return!0x0;if(0x2==_0x43dca5&&0x3==_0xbc7360){const _0x149119=_0xb8888d['_findSuggestions'](_0x3f07e3,'insertion')['filter'](({suggestion:_0x1fca49,meta:_0x3cf6d7})=>_0x3cf6d7['isOwn']&&'convertInlineImageToBlock'==_0x1fca49['subType']);if(_0x149119['length']>0x1&&_0x4f2087['end']['isEqual'](_0x3f07e3['start']))return!0x0;if(0x1==_0x149119['length']&&(_0x3f07e3['start']['isEqual'](_0x4f2087['end'])||_0x3f07e3['end']['isEqual'](_0x4f2087['start'])))return!0x0;}if(0x3==_0x43dca5&&0x3==_0xbc7360&&_0x3f07e3['start']['isBefore'](_0x4f2087['start'])){const _0x1533e5=_0x3f07e3['end']['nodeAfter'],_0xfc77b1=_0x4f2087['start']['nodeBefore'];return _0x5583c1['isBlockImage'](_0x1533e5)&&_0x1533e5===_0xfc77b1;}return!0x1;}_0x5e3639['model']['document']['registerPostFixer'](()=>{let _0x8bfb36=!0x1;const _0x4f2f62=Array['from'](_0x5e3639['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d8885,data:_0x3e081b}of _0x4f2f62){const {group:_0x49deb1,type:_0x20c0a7,subType:_0x1314fa,id:_0x5ae904}=_0xb8888d['_splitMarkerName'](_0x2d8885);if('suggestion'==_0x49deb1&&_0xb8888d['hasSuggestion'](_0x5ae904)){if('formatBlock'==_0x20c0a7&&('imageStylePreApply'==_0x1314fa||'imageStylePostApply'==_0x1314fa)){const _0x3066e8=_0xb8888d['getSuggestion'](_0x5ae904);if(_0x3e081b['newRange']){const _0xa511fb=_0x3066e8['getFirstRange']()['getContainedElement']();if(_0x5583c1['isBlockImage'](_0xa511fb))continue;_0xb8888d['discardSuggestion'](_0x3066e8),_0x8bfb36=!0x0;}}if('insertion'==_0x20c0a7&&'imageCaption'==_0x1314fa&&!_0x3e081b['newRange']){const _0x107f91=_0xb8888d['getSuggestion'](_0x5ae904);_0x107f91['next']&&_0x107f91['next']['isInContent']&&(_0xb8888d['discardSuggestion'](_0x107f91['next']),_0x8bfb36=!0x0);}}}return _0x8bfb36;}),this['_registerLegacyDescription'](_0x4876e4);}['_registerLegacyDescription'](_0x224e52){const _0x4fa077=this['editor'],_0x4e37ee=_0x4fa077['locale'];_0x4fa077['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197337=>{if('formatBlock'!=_0x197337['type']&&'formatInline'!=_0x197337['type'])return;const {data:_0x3a2b1a}=_0x197337;if(!_0x3a2b1a||'imageStyle'!=_0x3a2b1a['commandName'])return;const _0x573fab=_0x3a2b1a['commandParams'][0x0]['value'];return _0x4f3ebd('side'===_0x573fab?c(_0x4e37ee,'FORMAT_SIDE_IMAGE'):_0x224e52[_0x573fab]||_0x573fab);function _0x4f3ebd(_0x2cffe3){return{'type':'format','content':c(_0x4e37ee,'*Format:*\x20%0',_0x2cffe3)};}});}}class ut extends _0x31a850{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x792ad1){super(_0x792ad1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x54b05b=this['editor'],_0x507398=_0x54b05b['commands']['get']('importWord'),_0x324430=_0x54b05b['commands']['get']('trackChanges');_0x507398&&(_0x507398['on']('execute',(_0x1fb6a2,[,_0x2e2cf0])=>{this['_trackChangesValueDuringImport']=_0x324430['value'],_0x2e2cf0['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x507398,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x507398,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x324430['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x54b05b['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1deb1e,_0x9b2018){const {suggestions:_0x30a689}=_0x9b2018,_0x2eda28=this['editor']['commands']['get']('trackChanges'),_0x382fea=_0x2eda28['value'];this['_trackChangesValueDuringImport']!==_0x382fea&&(_0x2eda28['execute'](),this['_trackChangesExecuted']=!0x0),_0x30a689&&_0x30a689['forEach'](({id:_0x577430,type:_0x869fce,author:_0x1252b2,created_at:_0x3799fb})=>{const _0x2ece60={'id':_0x577430,'type':_0x869fce,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1252b2,'createdAt':_0x3799fb?new Date(_0x3799fb):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ece60);});}}class ft extends _0x31a850{['afterInit'](){const _0x51a9ff=this['editor'],_0x58c525=_0x51a9ff['plugins']['get']('TrackChangesEditing');if(_0x51a9ff['plugins']['has']('IndentEditing')&&(_0x58c525['enableCommand']('indent'),_0x58c525['enableCommand']('outdent')),_0x51a9ff['plugins']['has']('IndentBlock')){for(const _0x1a7dff of['indentBlock','outdentBlock'])_0x58c525['enableDefaultAttributesIntegration'](_0x1a7dff);}const _0x5bd6dc=_0x51a9ff['locale'];_0x58c525['registerBlockAttribute']('blockIndent'),_0x58c525['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5bd6dc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5bf23e=this['editor'],_0x54333e=_0x5bf23e['locale'],_0x515e8b=_0x5bf23e['plugins']['get']('TrackChangesEditing');_0x515e8b['descriptionFactory']['registerDescriptionCallback'](_0x30ffc8=>{if('formatBlock'!=_0x30ffc8['type'])return;const {data:_0x19f163}=_0x30ffc8;if(!_0x19f163)return;if('indentBlock'!=_0x19f163['commandName']&&'outdentBlock'!=_0x19f163['commandName'])return;const _0x3b393b=_0x30ffc8['getItems']()[0x0],_0x39dccf=_0x515e8b['descriptionFactory']['getItemLabel'](_0x3b393b);return'indentBlock'==_0x19f163['commandName']?{'type':'format','content':c(_0x54333e,'*Indent:*\x20%0',_0x39dccf)}:'outdentBlock'==_0x19f163['commandName']?{'type':'format','content':c(_0x54333e,'*Outdent:*\x20%0',_0x39dccf)}:void 0x0;});}}class ht extends _0x31a850{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class gt extends _0x31a850{['afterInit'](){const _0x13b6e3=this['editor'];if(!_0x13b6e3['plugins']['has']('LinkEditing'))return;const _0x444baa=_0x13b6e3['plugins']['get']('TrackChangesEditing'),_0x444c6e=_0x13b6e3['commands']['get']('link');_0x444baa['enableDefaultAttributesIntegration']('link'),_0x444baa['enableDefaultAttributesIntegration']('unlink'),_0x444baa['registerInlineAttribute']('linkHref');for(const _0x4234a7 of _0x444c6e['manualDecorators'])_0x444baa['registerInlineAttribute'](_0x4234a7['id']),_0x444baa['descriptionFactory']['registerAttributeLabel'](_0x4234a7['id'],'link\x20('+_0x4234a7['label']['toLowerCase']()+')');_0x444baa['descriptionFactory']['registerDescriptionCallback'](_0x280ef9=>{if('attribute'!=_0x280ef9['type'])return;const {data:_0x2c4698}=_0x280ef9;if(!_0x2c4698||'linkHref'!=_0x2c4698['key'])return;const _0x3bfdb6=_0x2c4698['newValue'],_0x7f220a=_0x13b6e3['locale'];return{'type':'format','content':null==_0x3bfdb6?c(_0x7f220a,'*Remove\x20link*'):c(_0x7f220a,'*Set\x20link:*\x20%0','\x22'+_0x3bfdb6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x351afd=this['editor'],_0x220ac9=_0x351afd['locale'];_0x351afd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ea620=>{if('formatInline'!=_0x1ea620['type'])return;const {data:_0x14cca9}=_0x1ea620;if(_0x14cca9){if('link'==_0x14cca9['commandName']){const _0x5d840b=_0x14cca9['commandParams'][0x0];return{'type':'format','content':c(_0x220ac9,'*Set\x20link:*\x20%0','\x22'+_0x5d840b+'\x22')};}return'unlink'==_0x14cca9['commandName']?{'type':'format','content':c(_0x220ac9,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x31a850{['afterInit'](){const _0x42f465=this['editor'],_0x5bbc1f=_0x42f465['locale'];if(!_0x42f465['plugins']['has']('LegacyListEditing'))return;const _0x529281=_0x42f465['plugins']['get']('TrackChangesEditing'),_0x5ff3e3=_0x42f465['plugins']['has']('LegacyTodoListEditing');function _0x1efb55(_0x24f065){return()=>{const _0x682786=_0x42f465['model']['document']['selection'],_0x190b21=_0x42f465['commands']['get'](_0x24f065);if(_0x190b21['value'])return void _0x42f465['execute']('paragraph',{});const _0x41fd46=_0x24f065['slice'](0x0,-0x4),_0xedd30d=function(_0x56fcc6,_0x88f454,_0x2d05a5){let _0x21b6d5=Array['from'](_0x56fcc6)['filter'](_0x3b583a=>function(_0x53505c,_0x38b022){return _0x38b022['checkChild'](_0x53505c['parent'],'listItem')&&!_0x38b022['isObject'](_0x53505c);}(_0x3b583a,_0x2d05a5));_0x21b6d5=_0x21b6d5['filter'](_0x1f8407=>!_0x1f8407['is']('element','listItem')||_0x1f8407['getAttribute']('listType')!=_0x88f454);const _0x4dc790=new Set();for(const _0x201854 of _0x21b6d5)_0x201854['is']('element','listItem')?_0x4dc790['add'](Le(_0x201854)):_0x4dc790['add'](_0x201854);return Array['from'](_0x4dc790);}(_0x682786['getSelectedBlocks'](),_0x41fd46,_0x42f465['model']['schema']);_0x42f465['model']['change'](()=>{for(const _0x595dec of _0xedd30d)_0x529281['markBlockFormat'](_0x595dec,{'commandName':_0x24f065,'commandParams':[{'forceValue':!_0x190b21['value']}],'formatGroupId':'blockName'},Ee(_0x595dec));});};}function _0x2bbeeb(_0x2a5f9f){return()=>{const _0x3f0ea4=function(_0x41bc22){let _0x1123f0=Array['from'](_0x41bc22);const _0x2fd307=_0x1123f0['findIndex'](_0x5b2239=>'listItem'!=_0x5b2239['name']);return _0x2fd307>-0x1&&(_0x1123f0=_0x1123f0['slice'](0x0,_0x2fd307)),_0x1123f0;}(_0x42f465['model']['document']['selection']['getSelectedBlocks']()),_0x4b9efd=_0x42f465['model']['createRange'](_0x42f465['model']['createPositionAt'](_0x3f0ea4[0x0],'before'),_0x42f465['model']['createPositionAt'](_0x3f0ea4[_0x3f0ea4['length']-0x1],'end'));_0x42f465['model']['change'](()=>{_0x529281['markBlockFormat'](_0x4b9efd,{'commandName':_0x2a5f9f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b941d){const _0x3cdfd9=new Set();for(const _0x60297a of _0x2b941d){let _0x12598=_0x60297a['nextSibling'];for(;_0x12598&&_0x12598['getAttribute']('listIndent')>_0x60297a['getAttribute']('listIndent');)_0x3cdfd9['add'](_0x12598),_0x12598=_0x12598['nextSibling'];}return Array['from'](_0x3cdfd9);}(_0x3f0ea4));});};}_0x529281['enableCommand']('numberedList',_0x1efb55('numberedList')),_0x529281['enableCommand']('bulletedList',_0x1efb55('bulletedList')),_0x5ff3e3&&_0x529281['enableCommand']('todoList',_0x1efb55('todoList')),_0x529281['enableCommand']('indentList',_0x2bbeeb('indentList')),_0x529281['enableCommand']('outdentList',_0x2bbeeb('outdentList')),_0x5ff3e3&&_0x529281['enableCommand']('checkTodoList',()=>{const _0x13e089=_0x42f465['commands']['get']('checkTodoList'),_0x12d859=Array['from'](_0x13e089['_selectedElements']);_0x12d859['filter'](_0x36c845=>_0x36c845['getAttribute']('todoListChecked')!=_0x13e089['value']),_0x42f465['model']['change'](()=>{for(const _0x4a15b8 of _0x12d859)_0x529281['markBlockFormat'](_0x4a15b8,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x13e089['value']}]});});}),_0x529281['descriptionFactory']['registerElementLabel']('listItem',_0x59c0f4=>c(_0x5bbc1f,'ELEMENT_LIST_ITEM',_0x59c0f4)),_0x529281['descriptionFactory']['registerDescriptionCallback'](_0x5cf72b=>{if('formatBlock'!=_0x5cf72b['type']&&'formatInline'!=_0x5cf72b['type'])return;const {data:_0x5149f2}=_0x5cf72b;if(_0x5149f2){if('numberedList'==_0x5149f2['commandName']||'bulletedList'==_0x5149f2['commandName']||'todoList'==_0x5149f2['commandName'])switch(_0x5149f2['commandName']['replace']('List','')){case'bulleted':return _0x416315(c(_0x5bbc1f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x416315(c(_0x5bbc1f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x416315(c(_0x5bbc1f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5149f2['commandName'])return{'type':'format','content':c(_0x5bbc1f,'*Indent:*\x20%0',c(_0x5bbc1f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5149f2['commandName'])return{'type':'format','content':c(_0x5bbc1f,'*Outdent:*\x20%0',c(_0x5bbc1f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5149f2['commandName'])return _0x5149f2['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5bbc1f,'*Check\x20item*')}:{'type':'format','content':c(_0x5bbc1f,'*Uncheck\x20item*')};}function _0x416315(_0x58d3e3){return{'type':'format','content':c(_0x5bbc1f,'*Change\x20to:*\x20%0',_0x58d3e3)};}});}}function Le(_0x20358a){const _0x2a5c47=_0x20358a['getAttribute']('listIndent');if(0x0==_0x2a5c47)return _0x20358a;let _0x3c842c=_0x20358a;for(;_0x20358a['previousSibling']&&_0x20358a['previousSibling']['is']('element','listItem');){const _0x45920f=_0x20358a['previousSibling']['getAttribute']('listIndent');if(_0x45920f==_0x2a5c47)_0x3c842c=_0x20358a['previousSibling'];else{if(_0x45920f<_0x2a5c47)break;}_0x20358a=_0x20358a['previousSibling'];}return _0x3c842c;}function Ee(_0x2fa2a2){const _0x2644d0=[];if(_0x2fa2a2['is']('element','listItem')&&_0x2fa2a2['getAttribute']('listIndent')>0x0){let _0x1d576d=_0x2fa2a2['nextSibling'];for(;_0x1d576d&&'listItem'==_0x1d576d['name']&&_0x1d576d['getAttribute']('listIndent')==_0x2fa2a2['getAttribute']('listIndent');)_0x2644d0['push'](_0x1d576d),_0x1d576d=_0x1d576d['nextSibling'];}return _0x2644d0;}class Q extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x326173=this['editor']['config']['get']('list.properties'),_0x11f660=this['editor']['plugins']['get']('TrackChangesEditing');_0x326173['styles']&&_0x11f660['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x326173['reversed']&&_0x11f660['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x326173['startIndex']&&_0x11f660['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x11f660['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2a3743,_0x2eeb4c={}){const _0x468bfb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5488=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x468bfb['markMultiRangeBlockFormat'](_0x3e5488,{'commandName':'listStyle','commandParams':[{'type':_0x2eeb4c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4fa9f1,_0x58ed45={}){const _0x420d49=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a5ca5=this['_getSuggestionBlocks'](_0x4b3aa4=>_0x4b3aa4['is']('element','listItem')&&'numbered'===_0x4b3aa4['getAttribute']('listType'));if(_0x4a5ca5['length']<0x1)return;const _0x55f09f=_0x4a5ca5['map'](_0x360f59=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x360f59,'before'),this['editor']['model']['createPositionAt'](_0x360f59,0x0)));this['editor']['model']['change'](()=>{_0x420d49['markMultiRangeBlockFormat'](_0x55f09f,{'commandName':'listReversed','commandParams':[{'reversed':_0x58ed45['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x7f829b,_0x43b788={}){const _0x44fda6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x574ebc=this['_getSuggestionBlocks'](_0x566a8d=>_0x566a8d['is']('element','listItem')&&'numbered'===_0x566a8d['getAttribute']('listType'));if(_0x574ebc['length']<0x1)return;const _0x367b81=_0x574ebc['map'](_0x52439a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52439a,'before'),this['editor']['model']['createPositionAt'](_0x52439a,0x0)));this['editor']['model']['change'](()=>{_0x44fda6['markMultiRangeBlockFormat'](_0x367b81,{'commandName':'listStart','commandParams':[{'startIndex':_0x43b788['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x1d6572){if('formatBlock'!=_0x1d6572['type']&&'formatInline'!=_0x1d6572['type'])return;const _0x2b9dea=this['editor']['locale'],{data:_0x224baa}=_0x1d6572;if(!_0x224baa)return;let _0x547277,_0xb01608;switch(_0x224baa['commandName']){case'listStyle':_0x547277='*Change\x20to:*\x20%0',_0xb01608={'type':'format','content':c(_0x2b9dea,_0x547277,c(_0x2b9dea,this['_getTranslationKeyForListStyle'](_0x224baa['commandParams'][0x0]['type'])))};break;case'listReversed':_0x547277=_0x224baa['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb01608={'type':'format','content':c(_0x2b9dea,_0x547277)};break;case'listStart':_0x547277='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb01608={'type':'format','content':c(_0x2b9dea,_0x547277,_0x224baa['commandParams'][0x0]['startIndex'])};}return _0xb01608;}['_getSuggestionBlocksForListStyle'](){const _0x5842d3=this['editor']['plugins']['get']('LegacyListUtils');let _0x1578a2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1578a2[0x0]?.['is']('element','listItem')&&_0x1578a2['unshift'](..._0x5842d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1578a2[_0x1578a2['length']-0x1]?.['is']('element','listItem')&&_0x1578a2['push'](..._0x5842d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1578a2=[...new Set(_0x1578a2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1578a2=_0x1578a2['filter'](_0x19d1c7=>_0x19d1c7['is']('element','listItem'))),_0x1578a2;}['_getSuggestionBlocks'](_0x481813){const _0xad5708=this['editor']['plugins']['get']('LegacyListUtils');let _0x19e32c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x481813)['map'](_0x271139=>{const _0x3f0426=this['editor']['model']['createPositionAt'](_0x271139,0x0);return[..._0xad5708['getSiblingNodes'](_0x3f0426,'backward'),..._0xad5708['getSiblingNodes'](_0x3f0426,'forward')];})['flat']();return _0x19e32c=[...new Set(_0x19e32c)],_0x19e32c;}['_getTranslationKeyForListStyle'](_0x54a7b0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x54a7b0)||'default')['toUpperCase']()+'_LIST_'+_0x54a7b0['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x31a850{['afterInit'](){const _0x3e603f=this['editor'];if(!_0x3e603f['plugins']['has']('MediaEmbedEditing'))return;const _0x5f15be=_0x3e603f['plugins']['get']('TrackChangesEditing'),_0x34e9c1=_0x3e603f['locale'];_0x5f15be['enableCommand']('mediaEmbed'),_0x5f15be['descriptionFactory']['registerElementLabel']('media',_0x3b8d73=>c(_0x34e9c1,'ELEMENT_MEDIA',_0x3b8d73)),_0x3e603f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x389f87,{writer:_0x2cf02c,options:_0x23fab9})=>{if(_0x23fab9['showSuggestionHighlights'])return _0x2cf02c['createEmptyElement']('div');},'converterPriority':'high'}),_0x3e603f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x476651,_0x189500,_0x4fee85)=>{_0x4fee85['options']['showSuggestionHighlights']&&_0x476651['stop']();},{'priority':'high'});}}class pt extends _0x31a850{['afterInit'](){const _0x5eb1e9=this['editor'];_0x5eb1e9['plugins']['has']('MentionEditing')&&_0x5eb1e9['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class kt extends _0x31a850{['afterInit'](){const _0x2ea097=this['editor'];if(!_0x2ea097['plugins']['has']('MergeFieldsEditing'))return;const _0x552a78=_0x2ea097['plugins']['get']('TrackChangesEditing'),_0x2b9d5f=_0x2ea097['locale'];_0x552a78['enableCommand']('insertMergeField'),_0x552a78['enableCommand']('insertMergeFieldBlock'),_0x552a78['enableCommand']('insertMergeFieldImage'),_0x552a78['descriptionFactory']['registerElementLabel']('mergeField',_0x5de80f=>c(_0x2b9d5f,'ELEMENT_MERGE_FIELD',_0x5de80f)),_0x552a78['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4c08bb=>c(_0x2b9d5f,'ELEMENT_MERGE_FIELD',_0x4c08bb)),_0x552a78['descriptionFactory']['registerDescriptionCallback'](_0x3ea3d9=>{if('insertion'!=_0x3ea3d9['type']&&'deletion'!=_0x3ea3d9['type'])return;const _0x112d76=_0x3ea3d9['getContainedElement']();if(null==_0x112d76)return;const _0x437555=_0x2ea097['plugins']['get']('MergeFieldsEditing');let _0xa79c0a;switch(_0x437555['getMergeFieldType'](_0x112d76)){case null:return;case'image':{const _0x289930=_0x437555['unwrapAffixes'](_0x112d76['getAttribute']('src'));_0xa79c0a=_0x437555['getLabel'](_0x289930)||_0x289930;break;}default:{const _0x823282=_0x112d76['getAttribute']('id');_0xa79c0a=_0x437555['getLabel'](_0x823282)||_0x823282;break;}}return'insertion'==_0x3ea3d9['type']?{'type':'insertion','content':c(_0x2b9d5f,'*Insert:*\x20%0','\x22'+_0xa79c0a+'\x22\x20'+c(_0x2b9d5f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x2b9d5f,'*Remove:*\x20%0','\x22'+_0xa79c0a+'\x22\x20'+c(_0x2b9d5f,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x31a850{['afterInit'](){const _0x1eaef0=this['editor'],_0x43d505=_0x1eaef0['plugins']['get']('TrackChangesEditing');_0x1eaef0['plugins']['has']('MultiLevelList')&&(_0x43d505['enableDefaultAttributesIntegration']('multiLevelList'),_0x43d505['registerBlockAttribute']('listMarkerStyle'),_0x43d505['descriptionFactory']['registerDescriptionCallback'](_0x54ea27=>this['handleDescriptions'](_0x54ea27)));}['handleDescriptions'](_0x1d1240){const _0x1cdb69=this['editor']['locale'],{data:_0x2058ca}=_0x1d1240,_0x3815d1={'type':'format','content':''};if(_0x2058ca&&'listMarkerStyle'==_0x2058ca['key']){if(!_0x2058ca['oldValue'])return{'type':'format','content':c(_0x1cdb69,'*Set\x20format:*\x20%0',c(_0x1cdb69,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2058ca['newValue']+')'};if(!_0x2058ca['newValue']){let _0x4c5c53=_0x1d1240['head'];for(;_0x4c5c53;){if(_0x4c5c53['data']&&'listType'==_0x4c5c53['data']['key']&&_0x4c5c53['data']['newValue'])return _0x3815d1;_0x4c5c53=_0x4c5c53['next'];}return{'type':'format','content':c(_0x1cdb69,'*Remove\x20format:*\x20%0',c(_0x1cdb69,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2058ca['oldValue']+')'};}}}}class bt extends _0x31a850{['afterInit'](){const _0x270d0e=this['editor'];if(!_0x270d0e['plugins']['has']('PageBreakEditing'))return;_0x270d0e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x158f0d=_0x270d0e['plugins']['get']('TrackChangesEditing'),_0x9a013a=_0x270d0e['locale'];_0x158f0d['descriptionFactory']['registerElementLabel']('pageBreak',_0x440091=>c(_0x9a013a,'ELEMENT_PAGE_BREAK',_0x440091));}}class yt extends _0x31a850{['afterInit'](){const _0x2f5ba8=this['editor'];if(!_0x2f5ba8['plugins']['has']('Paragraph'))return;const _0x364259=_0x2f5ba8['locale'],_0x335bf8=_0x2f5ba8['plugins']['get']('TrackChangesEditing');_0x335bf8['descriptionFactory']['registerElementLabel']('paragraph',_0x3c2a58=>c(_0x364259,'ELEMENT_PARAGRAPH',_0x3c2a58)),_0x335bf8['enableDefaultAttributesIntegration']('paragraph'),_0x335bf8['enableCommand']('insertParagraph'),_0x2f5ba8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2f5ba8),{'priority':'highest'}),_0x2f5ba8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x235d82,_0x272068,_0x579e2f)=>{_0x579e2f['options']['showSuggestionHighlights']&&nr(_0x2f5ba8,{'showActiveMarker':!0x1})(_0x235d82,_0x272068,_0x579e2f);},{'priority':'highest'});const _0x20a28e=_0x335bf8['descriptionFactory'];_0x20a28e['registerDescriptionCallback'](_0x143575=>{if('insertion'!==_0x143575['type'])return;const {start:_0x1ee7ac,end:_0x54a8a3}=_0x143575['getFirstRange']();if(!_0x1ee7ac['isTouching'](_0x54a8a3)||!_0x1ee7ac['nodeAfter'])return;const _0x21325c=_0x2f5ba8['model']['schema'],_0x2d307b=_0x1ee7ac['nodeAfter'];return _0x21325c['isBlock'](_0x2d307b)&&!_0x21325c['isLimit'](_0x2d307b)&&_0x21325c['checkChild'](_0x2d307b,'$text')?{'type':'insertion','content':c(_0x364259,'*Insert:*\x20%0',_0x20a28e['getItemLabel'](_0x2d307b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f433c=this['editor'],_0xedf20f=_0x2f433c['locale'];_0x2f433c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197c6a=>{if('formatBlock'!=_0x197c6a['type'])return;const {data:_0x4421af}=_0x197c6a;return _0x4421af&&'paragraph'==_0x4421af['commandName']?{'type':'format','content':c(_0xedf20f,'*Change\x20to:*\x20%0',c(_0xedf20f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x333371,{showActiveMarker:_0x1aeec9=!0x0}={}){return(_0x2ce0ae,_0x595bac,_0x295835)=>{const _0x49cdb3=_0x333371['plugins']['get']('TrackChangesEditing'),_0x4eac80=_0x595bac['markerRange']['start'],_0x556335=_0x595bac['markerRange']['end'],_0x375ef0=_0x333371['model']['schema'];if(!_0x4eac80['isTouching'](_0x556335)||!_0x4eac80['nodeAfter'])return;const _0x3ae407=_0x4eac80['nodeAfter'];if(_0x375ef0['isBlock'](_0x3ae407)&&!_0x375ef0['isLimit'](_0x3ae407)&&_0x375ef0['checkChild'](_0x3ae407,'$text')){if(!_0x295835['consumable']['consume'](_0x595bac['markerRange'],_0x2ce0ae['name']))return;const {id:_0x1e8731,authorId:_0x47c8aa}=_0x49cdb3['_splitMarkerName'](_0x595bac['markerName']),_0x3ad2b6=_0x295835['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1e8731,'data-author-id':_0x47c8aa}),_0x3605de=_0x295835['mapper']['toViewPosition'](_0x556335);_0x1aeec9&&_0x49cdb3['activeMarkers']['includes'](_0x595bac['markerName'])&&_0x295835['writer']['addClass']('ck-suggestion-marker--active',_0x3ad2b6),_0x295835['writer']['insert'](_0x3605de,_0x3ad2b6),_0x295835['mapper']['bindElementToMarker'](_0x3ad2b6,_0x595bac['markerName']);}};}class St extends _0x31a850{['afterInit'](){const _0x258ba7=this['editor'];_0x258ba7['commands']['get']('replaceSource')&&_0x258ba7['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class jt extends _0x31a850{['afterInit'](){const _0x38d085=this['editor'];if(!_0x38d085['plugins']['has']('RemoveFormatEditing'))return;_0x38d085['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x88f281=this['editor'];_0x88f281['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10dd66=>{if('formatBlock'!=_0x10dd66['type']&&'formatInline'!=_0x10dd66['type'])return;const {data:_0x1affe6}=_0x10dd66;return _0x1affe6&&'removeFormat'==_0x1affe6['commandName']?{'type':'format','content':c(_0x88f281['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x31a850{['afterInit'](){const _0x4f3865=this['editor'];if(!_0x4f3865['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa1c5d1=_0x4f3865['plugins']['get']('TrackChangesEditing');_0xa1c5d1['enableCommand']('goToPreviousRestrictedEditingException'),_0xa1c5d1['enableCommand']('goToNextRestrictedEditingException');const _0x428697=_0x4f3865['plugins']['get']('RestrictedEditingModeEditing');_0x428697['enableCommand']('trackChanges'),_0x428697['enableCommand']('acceptSuggestion'),_0x428697['enableCommand']('discardSuggestion'),_0x428697['enableCommand']('acceptAllSuggestions'),_0x428697['enableCommand']('discardAllSuggestions'),_0x428697['enableCommand']('acceptSelectedSuggestions'),_0x428697['enableCommand']('discardSelectedSuggestions');}}class At extends _0x31a850{['afterInit'](){const _0x20caf3=this['editor'];if(!_0x20caf3['plugins']['has']('ShiftEnter'))return;const _0x319b91=_0x20caf3['plugins']['get']('TrackChangesEditing');_0x319b91['enableCommand']('shiftEnter'),_0x20caf3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x20caf3),{'priority':'high'}),_0x20caf3['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x20caf3),{'priority':'high'}),_0x20caf3['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x667586,_0x5f3e3d,_0x1702aa)=>{_0x1702aa['options']['showSuggestionHighlights']&&je(_0x20caf3,{'showActiveMarker':!0x1})(_0x667586,_0x5f3e3d,_0x1702aa);}),_0x319b91['descriptionFactory']['registerElementLabel']('softBreak',_0x1fa215=>c(_0x20caf3['locale'],'ELEMENT_LINE_BREAK',_0x1fa215));}}function je(_0x191a82,{showActiveMarker:_0x53e35d=!0x0}={}){return(_0x21ae40,_0x595262,_0x39da27)=>{const _0x707af0=_0x191a82['plugins']['get']('TrackChangesEditing');if(!_0x39da27['consumable']['test'](_0x595262['markerRange'],_0x21ae40['name']))return;const _0xa179e6=_0x191a82['model'];for(const _0x3b7541 of _0x595262['markerRange']['getItems']()){if(!_0x3b7541['is']('element','softBreak'))continue;const _0x5025c9='deletion'==_0x595262['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x2b75ef,authorId:_0xfb143b}=_0x707af0['_splitMarkerName'](_0x595262['markerName']),_0x1dc89c=_0x39da27['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5025c9,'data-suggestion':_0x2b75ef,'data-author-id':_0xfb143b}),_0x597905=_0x39da27['mapper']['toViewPosition'](_0xa179e6['createPositionBefore'](_0x3b7541));_0x53e35d&&_0x707af0['activeMarkers']['includes'](_0x595262['markerName'])&&_0x39da27['writer']['addClass']('ck-suggestion-marker--active',_0x1dc89c),_0x39da27['writer']['insert'](_0x597905,_0x1dc89c),_0x39da27['mapper']['bindElementToMarker'](_0x1dc89c,_0x595262['markerName']);}};}class _t extends _0x31a850{['afterInit'](){const _0x4ecf26=this['editor'],_0x3c8b31=_0x4ecf26['model'],_0x11c219=_0x4ecf26['locale'];if(!_0x4ecf26['plugins']['has']('StandardEditingModeEditing'))return;const _0x4f95c0=_0x4ecf26['plugins']['get']('TrackChangesEditing'),_0x447b0a='restrictedEditingException',_0x108800=_0x4ecf26['commands']['get'](_0x447b0a);_0x4f95c0['enableCommand'](_0x447b0a,(_0x256523,_0x5e8f3d={})=>{const _0x2a2a33=_0x3c8b31['document']['selection'];if(_0x2a2a33['isCollapsed'])return void _0x256523(_0x5e8f3d);const _0x8165=void 0x0!==_0x5e8f3d['forceValue']?_0x5e8f3d['forceValue']:!_0x108800['value'];_0x3c8b31['change'](()=>{const _0x59dbee=Array['from'](_0x2a2a33['getRanges']());for(const _0x347250 of _0x59dbee){const _0x7f8526=_0x8165?[_0x347250]:io(_0x447b0a,_0x347250,_0x3c8b31);for(const _0x712744 of _0x7f8526)_0x4f95c0['markInlineFormat'](_0x712744,{'commandName':_0x447b0a,'commandParams':[{'forceValue':_0x8165}]});}});}),_0x4f95c0['descriptionFactory']['registerDescriptionCallback'](_0x398033=>{if('formatBlock'!=_0x398033['type']&&'formatInline'!=_0x398033['type'])return;const {data:_0x226306}=_0x398033;return _0x226306&&_0x226306['commandName']==_0x447b0a?_0x226306['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x11c219,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x11c219,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x31a850{['afterInit'](){const _0x230b43=this['editor'];if(!_0x230b43['plugins']['has']('Style')||!_0x230b43['plugins']['has']('DataSchema'))return;const _0x40308a=_0x230b43['plugins']['get']('TrackChangesEditing'),_0x4398a4=_0x230b43['locale'],_0x298908=_0x230b43['config']['get']('style')||{},_0x5b0bc3=_0x230b43['plugins']['get']('GeneralHtmlSupport'),_0x30a805=_0x230b43['plugins']['get']('StyleUtils')['normalizeConfig'](_0x230b43['plugins']['get']('DataSchema'),_0x298908['definitions']);_0x40308a['enableDefaultAttributesIntegration']('style');const _0x5d1af1=new Set();for(const _0x38e31a of _0x30a805['block']){const _0x2e2907=_0x5b0bc3['getGhsAttributeNameForElement'](_0x38e31a['element']);_0x5d1af1['add'](_0x2e2907);}const _0x443b3b=new Set();for(const _0x3cbdff of _0x30a805['inline']){const _0x161e7f=_0x5b0bc3['getGhsAttributeNameForElement'](_0x3cbdff['element']);_0x443b3b['add'](_0x161e7f);for(const _0x24cbad of _0x3cbdff['ghsAttributes'])_0x443b3b['add'](_0x24cbad);}for(const _0x5c9c4e of _0x5d1af1)_0x40308a['registerBlockAttribute'](_0x5c9c4e),_0x40308a['descriptionFactory']['registerAttributeLabel'](_0x5c9c4e,c(_0x4398a4,'FORMAT_STYLE'));for(const _0x31f7de of _0x443b3b)_0x40308a['registerInlineAttribute'](_0x31f7de),_0x40308a['descriptionFactory']['registerAttributeLabel'](_0x31f7de,c(_0x4398a4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x189376=this['editor'],_0x3f41b7=_0x189376['locale'];_0x189376['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba470=>{if('formatBlock'!=_0x2ba470['type']&&'formatInline'!=_0x2ba470['type'])return;const {data:_0x2fe843}=_0x2ba470;return _0x2fe843&&'style'===_0x2fe843['commandName']?_0x2fe843['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3f41b7,'*Set\x20format:*\x20%0',_0x2fe843['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x3f41b7,'*Remove\x20format:*\x20%0',_0x2fe843['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x31a850{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x10ba46){super(_0x10ba46),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x314f52=this['editor'],_0x4c63bf=_0x314f52['model']['document']['selection'];if(!_0x314f52['plugins']['has']('TableEditing'))return;const _0x583b2a=_0x314f52['locale'],_0x41102c=_0x314f52['plugins']['get']('TrackChangesEditing'),_0x53cd83=_0x314f52['plugins']['get']('TableUtils');_0x41102c['descriptionFactory']['registerElementLabel']('table',_0xd17b20=>c(_0x583b2a,'ELEMENT_TABLE',_0xd17b20)),this['_setupColumnsRowsFixing'](),_0x41102c['enableCommand']('insertTable'),_0x41102c['enableCommand']('selectTableRow'),_0x41102c['enableCommand']('selectTableColumn');for(const _0xfde11d of['insertTableRowAbove','insertTableRowBelow']){const _0x1bfcfc=_0x314f52['commands']['get'](_0xfde11d);_0x41102c['enableCommand'](_0xfde11d,_0x3a7eb5=>{_0x314f52['model']['change'](_0x5c9efe=>{_0x3a7eb5();const _0x215d01='above'===_0x1bfcfc['order'],_0x187f38=_0x53cd83['getSelectionAffectedTableCells'](_0x4c63bf),_0x2ff10d=_0x53cd83['getRowIndexes'](_0x187f38),_0x4136ca=_0x215d01?_0x2ff10d['first']-0x1:_0x2ff10d['last']+0x1,_0x4ffdf5=_0x187f38[0x0]['findAncestor']('table'),_0x33fafd=_0x53cd83['createTableWalker'](_0x4ffdf5,{'startRow':_0x4136ca,'endRow':_0x4136ca}),_0x256c5e=Array['from'](_0x33fafd)['map'](_0x5d09d1=>_0x5c9efe['createRangeOn'](_0x5d09d1['cell']));_0x41102c['markMultiRangeInsertion'](_0x256c5e,'tableRow');});});}for(const _0x31eb0b of['insertTableColumnLeft','insertTableColumnRight']){const _0x314cfa=_0x314f52['commands']['get'](_0x31eb0b);_0x41102c['enableCommand'](_0x31eb0b,_0x52d0a6=>{_0x314f52['model']['change'](_0x419590=>{_0x52d0a6();const _0x23c2de='left'===_0x314cfa['order'],_0x48f8b1=_0x53cd83['getSelectionAffectedTableCells'](_0x4c63bf),_0x228dc8=_0x53cd83['getColumnIndexes'](_0x48f8b1),_0x4e951d=_0x23c2de?_0x228dc8['first']-0x1:_0x228dc8['last']+0x1,_0x9ebf09=_0x48f8b1[0x0]['findAncestor']('table'),_0x1112a4=_0x53cd83['createTableWalker'](_0x9ebf09,{'startRow':0x0,'column':_0x4e951d,'includeAllSlots':!0x1}),_0x141334=Array['from'](_0x1112a4)['map'](_0x1629ec=>_0x419590['createRangeOn'](_0x1629ec['cell']));_0x41102c['markMultiRangeInsertion'](_0x141334,'tableColumn');});});}for(const _0x5c493c of['removeTableRow','removeTableColumn']){const _0x2ddedd=_0x5c493c['substr'](0xb),_0x1a3cd9=_0x2ddedd['toLowerCase'](),_0x564e1d=_0x1a3cd9['substr'](0x0,0x3)+'span',_0x2aca7c='table'+_0x2ddedd,_0x1ffe20='min'+_0x2ddedd,_0x5dcb07='max'+_0x2ddedd;_0x41102c['enableCommand'](_0x5c493c,()=>{_0x314f52['model']['change'](_0x424817=>{const _0x5a0595=_0x53cd83['getSelectionAffectedTableCells'](_0x4c63bf),_0x580bc7=_0x5a0595[0x0]['findAncestor']('table');let _0x35b983;if('removeTableRow'==_0x5c493c){const _0x3f9dd2=_0x53cd83['getRowIndexes'](_0x5a0595);_0x35b983={'startRow':_0x3f9dd2['first'],'endRow':_0x3f9dd2['last'],'includeAllSlots':!0x0};}else{const _0x141e6d=_0x53cd83['getColumnIndexes'](_0x5a0595);_0x35b983={'startColumn':_0x141e6d['first'],'endColumn':_0x141e6d['last'],'includeAllSlots':!0x0};}const _0x52bdb3=_0x53cd83['createTableWalker'](_0x580bc7,_0x35b983),_0x518a21=Array['from'](_0x52bdb3)['map'](({cell:_0x27a870})=>_0x27a870),_0x5d73c0=xe(_0x518a21['filter'](_0x1807b3=>_0x1807b3['hasAttribute'](_0x564e1d))),_0x2985be=xe(_0x518a21['filter'](_0x24ae09=>!_0x24ae09['hasAttribute'](_0x564e1d)))['map'](_0x40abcb=>_0x424817['createRangeOn'](_0x40abcb)),_0x26bc00=_0x41102c['markMultiRangeDeletion'](_0x2985be,_0x2aca7c);if(_0x26bc00&&('tableRow'==_0x26bc00['subType']||'tableColumn'==_0x26bc00['subType'])){const _0x32accf=this['_getSuggestionCoords'](_0x26bc00);for(const _0x3dfd70 of _0x5d73c0){const _0x2b87e8=_0x424817['createRangeOn'](_0x3dfd70),_0x56b1db=_0x53cd83['getCellLocation'](_0x3dfd70),_0x3f988b=_0x3dfd70['getAttribute'](_0x564e1d)-0x1,_0x4a36ce=_0x32accf[_0x1ffe20],_0x4d0415=_0x32accf[_0x5dcb07];_0x4a36ce<=_0x56b1db[_0x1a3cd9]&&_0x56b1db[_0x1a3cd9]+_0x3f988b<=_0x4d0415&&_0x26bc00['addRange'](_0x2b87e8);}}});});}function _0x517ccf(_0x5e8beb){const _0x325a28=Array['from'](_0x4c63bf['getRanges']())['map'](_0x1f4655=>_0x275766['fromRange'](_0x1f4655));_0x314f52['model']['change'](_0x36f62b=>{const _0x1b5eef=_0x36f62b['batch'];_0x5e8beb=_0x5e8beb['filter'](_0x2499ff=>'$graveyard'!=_0x2499ff['root']['rootName']),_0x36f62b['setSelection'](_0x5e8beb),_0x314f52['commands']['get']('removeTableRow')['refresh'](),_0x314f52['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x314f52['model']['enqueueChange'](()=>{_0x314f52['model']['enqueueChange'](_0x1b5eef,_0x11726b=>{const _0x5778b6=_0x325a28['filter'](_0x2d1706=>'$graveyard'!=_0x2d1706['root']['rootName']);_0x5778b6['length']>0x0&&_0x11726b['setSelection'](_0x5778b6);for(const _0x3a812a of _0x325a28)_0x3a812a['detach']();});});});}function _0x471934(_0x298595){_0x314f52['model']['change'](_0x3370bd=>{const _0x2f8816=Array['from'](_0x4c63bf['getRanges']())['map'](_0x4a055c=>_0x275766['fromRange'](_0x4a055c)),_0x2fe95c=[];for(const _0x1ef656 of _0x298595)for(const _0x806c59 of _0x1ef656['getItems']({'shallow':!0x0}))_0x2fe95c['push'](_0x806c59);for(const _0x4555b6 of _0x2fe95c)'$graveyard'!=_0x4555b6['root']['rootName']&&(_0x3370bd['setSelection'](_0x3370bd['createPositionAt'](_0x4555b6,0x0)),_0x314f52['commands']['get']('removeTableColumn')['refresh'](),_0x314f52['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x43fbbb=_0x2f8816['filter'](_0x438da1=>'$graveyard'!=_0x438da1['root']['rootName']);_0x43fbbb['length']>0x0&&_0x3370bd['setSelection'](_0x43fbbb);for(const _0x1c042e of _0x2f8816)_0x1c042e['detach']();});}function _0x4cddb9(_0x2cc5fb,_0x35eb85){return _0x35eb85['every'](_0x4d0b77=>_0x2cc5fb['some'](_0x21f1e6=>_0x21f1e6['end']['isEqual'](_0x4d0b77['start'])||_0x4d0b77['end']['isEqual'](_0x21f1e6['start'])));}function _0x41608a(_0x36266b,_0x1e13dc){return!_0x36266b['some'](_0x218a9a=>_0x1e13dc['some'](_0x19c19d=>_0x218a9a['isIntersecting'](_0x19c19d)))&&_0x36266b['some'](_0x4902bb=>_0x1e13dc['some'](_0x36eff9=>_0x4902bb['end']['isTouching'](_0x36eff9['start'])));}_0x314f52['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cc77f,_0x492587,_0x3e5737)=>{if(!_0x3e5737['options']['showSuggestionHighlights'])return;const _0x119431=_0x492587['item'];if(!_0x119431||!_0x119431['is']('element','tableCell'))return;const _0x43b39b=_0x3e5737['mapper']['toViewElement'](_0x119431);if(_0x43b39b){const {id:_0x5890a3,authorId:_0x23cdb6}=_0x41102c['_splitMarkerName'](_0x492587['markerName']);_0xdde8e0(_0x43b39b,_0x3e5737['writer'],(_0x1bdf9b,_0x4905f7,_0x4eb778)=>{_0x4eb778['addClass'](_0x2fd845(_0x4905f7['classes']),_0x1bdf9b),_0x4eb778['setAttribute']('data-suggestion-id',_0x5890a3,_0x1bdf9b),_0x4eb778['setAttribute']('data-author-id',_0x23cdb6,_0x1bdf9b);},(_0x126a45,_0x541835,_0x83b533)=>{_0x83b533['removeClass'](_0x2fd845(_0x541835['classes']),_0x126a45),_0x83b533['removeAttribute']('data-suggestion-id',_0x126a45),_0x83b533['removeAttribute']('data-author-id',_0x126a45);});}},{'priority':'highest'}),_0x41102c['descriptionFactory']['registerDescriptionCallback'](_0xe4104e=>{if('insertion'!=_0xe4104e['type']&&'deletion'!=_0xe4104e['type'])return;const _0x47217c=_0xe4104e['getContainedElement']();if(null!=_0x47217c&&_0x47217c['is']('element','table')){if('insertion'==_0xe4104e['type']){const _0x527160=_0xe4104e['getItems']()['filter'](_0x18e3df=>_0x18e3df['is']('$textProxy'))['map'](_0xaaffa3=>_0xaaffa3['data']);if(_0x527160['length'])return{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x527160['join']('\x20')+'\x22'))};}if('deletion'==_0xe4104e['type']){const _0xeec8ab=_0xe4104e['getItems']()['filter'](_0x3650cd=>_0x3650cd['is']('$textProxy'))['map'](_0x3c1958=>_0x3c1958['data']);if(_0xeec8ab['length'])return{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xeec8ab['join']('\x20')+'\x22'))};}}}),_0x41102c['descriptionFactory']['registerDescriptionCallback'](_0x234e05=>{if('tableRow'==_0x234e05['subType']){const _0x310078=_0x234e05['getItems']()['filter'](_0x519ca0=>_0x519ca0['is']('$textProxy'))['map'](_0x1a33d8=>_0x1a33d8['data']),_0x347f69=this['_getSuggestionCoords'](_0x234e05),_0x1c9e20=_0x347f69['maxRow']-_0x347f69['minRow']+0x1;if('insertion'==_0x234e05['type'])return _0x310078['length']?{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c9e20,'\x22'+_0x310078['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW',_0x1c9e20))};if('deletion'==_0x234e05['type'])return _0x310078['length']?{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1c9e20,'\x22'+_0x310078['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_ROW',_0x1c9e20))};}if('tableColumn'==_0x234e05['subType']){const _0x1fd899=_0x234e05['getItems']()['filter'](_0x54d375=>_0x54d375['is']('$textProxy'))['map'](_0x44896d=>_0x44896d['data']),_0x3d2186=this['_getSuggestionCoords'](_0x234e05),_0x4f4cd3=_0x3d2186['maxColumn']-_0x3d2186['minColumn']+0x1;if('insertion'==_0x234e05['type'])return _0x1fd899['length']?{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f4cd3,'\x22'+_0x1fd899['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x583b2a,'*Insert:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN',_0x4f4cd3))};if('deletion'==_0x234e05['type'])return _0x1fd899['length']?{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f4cd3,'\x22'+_0x1fd899['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x583b2a,'*Remove:*\x20%0',c(_0x583b2a,'ELEMENT_TABLE_COLUMN',_0x4f4cd3))};}}),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x517ccf),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x517ccf),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x471934),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x471934),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4cddb9),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4cddb9),_0x41102c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x41608a),_0x41102c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x41608a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2059d9=this['editor'],_0x4c8d5b=_0x2059d9['model']['document']['selection'];return(_0x3e0daa,_0x474ab8)=>{_0x2059d9['model']['change'](_0x3a88ef=>{const {commandName:_0x1d8fbe,commandParams:_0x5464bd}=_0x474ab8;let _0x12673a=_0x3e0daa[0x0]['end']['nodeBefore'];_0x5464bd&&_0x5464bd[0x0]&&!0x1===_0x5464bd[0x0]['forceValue']&&(_0x12673a=_0x3e0daa[0x0]['start']['nodeAfter']);const _0x3969b0=_0x3a88ef['createRangeIn'](_0x12673a);if('$graveyard'==_0x3969b0['root']['rootName'])return;const _0x22f8eb=Array['from'](_0x4c8d5b['getRanges']())['map'](_0x13713d=>_0x275766['fromRange'](_0x13713d));_0x3a88ef['setSelection'](_0x3969b0),_0x2059d9['commands']['get'](_0x1d8fbe)['refresh'](),_0x5464bd['push']({'forceDefaultExecution':!0x0}),_0x2059d9['execute'](_0x1d8fbe,..._0x5464bd);const _0x12bbb3=_0x22f8eb['filter'](_0x89efb9=>'$graveyard'!=_0x89efb9['root']['rootName']);_0x12bbb3['length']>0x0&&_0x3a88ef['setSelection'](_0x12bbb3);for(const _0x4a3867 of _0x22f8eb)_0x4a3867['detach']();});};}['_getCoordsForCells'](_0x136990){const _0x173fc5=this['editor']['plugins']['get']('TableUtils');let _0x3ad40c=Number['MAX_SAFE_INTEGER'],_0x4c29af=Number['MIN_SAFE_INTEGER'],_0x55337b=Number['MAX_SAFE_INTEGER'],_0x241d55=Number['MIN_SAFE_INTEGER'];for(const _0x501938 of _0x136990){if('$graveyard'==_0x501938['root']['rootName'])continue;const {row:_0x5d9f7f,column:_0x18f7dc}=_0x173fc5['getCellLocation'](_0x501938),_0x5cbb80=_0x501938['hasAttribute']('rowspan')?_0x501938['getAttribute']('rowspan')-0x1:0x0,_0x2fa3e8=_0x501938['hasAttribute']('colspan')?_0x501938['getAttribute']('colspan')-0x1:0x0;_0x3ad40c=_0x5d9f7f<_0x3ad40c?_0x5d9f7f:_0x3ad40c,_0x4c29af=_0x5d9f7f+_0x5cbb80>_0x4c29af?_0x5d9f7f+_0x5cbb80:_0x4c29af,_0x55337b=_0x18f7dc<_0x55337b?_0x18f7dc:_0x55337b,_0x241d55=_0x18f7dc+_0x2fa3e8>_0x241d55?_0x18f7dc+_0x2fa3e8:_0x241d55;}return{'minRow':_0x3ad40c,'maxRow':_0x4c29af,'minColumn':_0x55337b,'maxColumn':_0x241d55};}['_setupColumnsRowsFixing'](){const _0x5ee14e=this['editor'],_0x3628dc=_0x5ee14e['plugins']['get']('TrackChangesEditing'),_0xaf0e84=_0x5ee14e['plugins']['get']('TableUtils');_0x5ee14e['model']['document']['on']('change:data',()=>{const _0x4ae169=Array['from'](_0x5ee14e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x518f38,data:_0xc6ada1}of _0x4ae169){const {group:_0x408eed,id:_0x61d6a1,subType:_0x5a2e11}=_0x3628dc['_splitMarkerName'](_0x518f38);if('suggestion'!=_0x408eed)continue;if(null!=_0xc6ada1['oldRange'])continue;const _0x11ca9a=_0x3628dc['getSuggestion'](_0x61d6a1);this['_tablePostFixingSubtypes']['includes'](_0x5a2e11)&&this['_tableSuggestions']['add'](_0x11ca9a);}},{'priority':'low'});const _0x4c6921=(_0x535b1a,_0xd58604)=>{let _0x5358e0=!0x1;const _0x6d65fa=_0xd58604['createRangeOn'](_0x535b1a),_0x3eaec5=_0x535b1a['findAncestor']('table'),_0x39988e=_0xaf0e84['getCellLocation'](_0x535b1a);for(const _0x1c3873 of this['_tableSuggestions']){const _0x481a61=_0x1c3873['subType'],_0x5d230=_0x481a61['startsWith']('tablePaste'),_0x497752=_0x481a61['substr'](_0x5d230?0xa:0x5),_0x544557=_0x497752['toLowerCase'](),_0x345796=_0x544557['substr'](0x0,0x3)+'span',_0xce1375='min'+_0x497752,_0x47b30d='max'+_0x497752;if(!_0x1c3873['isInContent'])continue;if(_0x3eaec5!=_0x1c3873['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1c3873['isIntersectingWithRange'](_0x6d65fa))continue;const _0x11dd21=_0x535b1a['hasAttribute'](_0x345796)?_0x535b1a['getAttribute'](_0x345796)-0x1:0x0,_0x24ad30=this['_getSuggestionCoords'](_0x1c3873),_0x46f44c=_0x24ad30[_0xce1375],_0x9816a8=_0x24ad30[_0x47b30d];_0x46f44c<=_0x39988e[_0x544557]&&_0x39988e[_0x544557]+_0x11dd21<=_0x9816a8&&(_0x1c3873['addRange'](_0x6d65fa),_0x5358e0=!0x0);}return _0x5358e0;};_0x5ee14e['model']['document']['registerPostFixer'](_0x2bc4fe=>{let _0x2b634a=!0x1;for(const _0x6dad92 of _0x5ee14e['model']['document']['differ']['getChanges']())if('insert'==_0x6dad92['type']){if('tableRow'==_0x6dad92['name']){for(const _0x435929 of _0x6dad92['position']['nodeAfter']['getChildren']())_0x2b634a=_0x2b634a||_0x4c6921(_0x435929,_0x2bc4fe);}else'tableCell'==_0x6dad92['name']&&(_0x2b634a=_0x2b634a||_0x4c6921(_0x6dad92['position']['nodeAfter'],_0x2bc4fe));}return _0x2b634a;});}['_getSuggestionCoords'](_0x18f223){return this['_getCoordsForCells'](_0x18f223['getRanges']()['map'](_0x5897c0=>_0x5897c0['start']['nodeAfter']));}}function xe(_0x1f5385){return Array['from'](new Set(_0x1f5385)['values']());}class Nt extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x38384d=this['editor'],_0x3538fa=_0x38384d['model']['document']['selection'],_0x3a6e99=_0x38384d['locale'];if(!_0x38384d['plugins']['has']('TableEditing'))return;const _0x4fb69a=_0x38384d['plugins']['get']('TrackChangesEditing'),_0x1cfce9=_0x38384d['plugins']['get']('TableUtils'),_0x45e3d2=_0x38384d['plugins']['get'](Ct);_0x45e3d2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4fb69a['enableCommand']('mergeTableCells',()=>{const _0x501a70=_0x1cfce9['getSelectionAffectedTableCells'](_0x38384d['model']['document']['selection']);_0x38384d['model']['change'](()=>{_0x4fb69a['markMultiRangeBlockFormat'](_0x501a70,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x38384d['commands']['get']('mergeTableCells')['on']('execute',(_0x1d66a3,_0x16208b)=>{_0x38384d['commands']['get']('trackChanges')['value']&&(_0x16208b['length']>0x0&&_0x16208b[_0x16208b['length']-0x1]&&_0x16208b[_0x16208b['length']-0x1]['forceDefaultExecution']||_0x4fb69a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1d66a3['stop']());},{'priority':'highest'});for(const _0x1cca44 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x39c51b=_0x38384d['commands']['get'](_0x1cca44);_0x4fb69a['enableCommand'](_0x1cca44,()=>{const _0x5da247=_0x38384d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4e05e6=>_0x4e05e6['is']('element','tableCell')),_0x52aea6=_0x39c51b['value'];_0x38384d['model']['change'](()=>{_0x4fb69a['markMultiRangeBlockFormat']([_0x5da247,_0x52aea6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c9a25 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b2649=_0x38384d['commands']['get'](_0x3c9a25);_0x4fb69a['enableCommand'](_0x3c9a25,()=>{const _0x1d1568=_0x1cfce9['getSelectionAffectedTableCells'](_0x38384d['model']['document']['selection'])[0x0],_0x4a4546=_0x1d1568['findAncestor']('table'),{column:_0x9ee6bf,row:_0x5c0d53}=_0x1cfce9['getCellLocation'](_0x1d1568);let _0x574ce6=[];if('horizontally'==_0x2b2649['direction']){const _0xadb35d=_0x1cfce9['createTableWalker'](_0x4a4546,{'startRow':_0x5c0d53,'endRow':_0x5c0d53,'includeAllSlots':!0x0});_0x574ce6=Array['from'](_0xadb35d)['map'](_0x3710e7=>_0x3710e7['cell']);}else{const _0x5975ed=_0x1cfce9['createTableWalker'](_0x4a4546,{'column':_0x9ee6bf,'includeAllSlots':!0x0});_0x574ce6=Array['from'](_0x5975ed)['map'](_0xdd9ed7=>_0xdd9ed7['cell']);}_0x38384d['model']['change'](_0x27e634=>{_0x4fb69a['markBlockFormat'](_0x27e634['createRangeOn'](_0x1d1568),{'commandName':_0x3c9a25,'commandParams':[]},_0x574ce6,_0x3c9a25);});});}_0x4fb69a['descriptionFactory']['registerDescriptionCallback'](_0x1b5b07=>{if('formatBlock'!=_0x1b5b07['type']&&'formatInline'!=_0x1b5b07['type'])return;const {data:_0x51fd8d}=_0x1b5b07;return _0x51fd8d&&'mergeTableCells'==_0x51fd8d['commandName']?{'type':'format','content':c(_0x3a6e99,'*Merge\x20cells*')}:void 0x0;}),_0x4fb69a['descriptionFactory']['registerDescriptionCallback'](_0x220a8e=>{if('formatBlock'!=_0x220a8e['type']&&'formatInline'!=_0x220a8e['type'])return;const {data:_0x5d0c58}=_0x220a8e;return _0x5d0c58?'splitTableCellVertically'==_0x5d0c58['commandName']?{'type':'format','content':c(_0x3a6e99,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5d0c58['commandName']?{'type':'format','content':c(_0x3a6e99,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0xb820e9=_0x45e3d2['_acceptFormatSuggestionCallbackFactory']();for(const _0x3df873 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4fb69a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3df873,'accept',_0xb820e9);for(const _0x408582 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4fb69a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x408582,'accept',_0xb820e9);_0x4fb69a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3255f4=>{_0x38384d['model']['change'](_0x36a04b=>{const _0x4d3075=Array['from'](_0x3538fa['getRanges']())['map'](_0x2ff932=>_0x275766['fromRange'](_0x2ff932));_0x36a04b['setSelection'](_0x3255f4),_0x38384d['commands']['get']('mergeTableCells')['refresh'](),_0x38384d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x6b5203=_0x4d3075['filter'](_0x4fd124=>'$graveyard'!=_0x4fd124['root']['rootName']);_0x6b5203['length']>0x0&&_0x36a04b['setSelection'](_0x6b5203);for(const _0x559127 of _0x4d3075)_0x559127['detach']();});});for(const _0x1c1f7c of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3a4347=_0x38384d['commands']['get'](_0x1c1f7c);_0x3a4347['on']('set:isEnabled',(_0x986018,_0x341c9e,_0x2936bf)=>{if(_0x2936bf){const _0x59180f=_0x38384d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x158a13=>_0x158a13['is']('element','tableCell'));this['_areMergableCells'](_0x3a4347['value'],_0x59180f)||(_0x986018['return']=!0x1,_0x986018['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x16aaac=this['editor']['commands']['get']('mergeTableCells'),_0x5df8c0=this['editor']['plugins']['get']('TableUtils');if(!_0x16aaac['isEnabled'])return!0x1;const _0x943fac=_0x5df8c0['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x345ae1 of _0x943fac)for(const _0x25283c of _0x943fac)if(_0x345ae1!=_0x25283c&&!this['_areMergableCells'](_0x345ae1,_0x25283c))return!0x1;return!0x0;}['_areMergableCells'](_0x35c1ce,_0x305c28){const _0x47e607=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20aa2a=this['editor']['model']['createRangeOn'](_0x35c1ce),_0x43ce33=this['editor']['model']['createRangeOn'](_0x305c28),_0x3de0f3=new Set(),_0x3a6b57=new Set();for(const _0x3d93b7 of _0x47e607['getSuggestions']())if(('insertion'==_0x3d93b7['type']||'deletion'==_0x3d93b7['type']||'mergeTableCells'==_0x3d93b7['subType'])&&_0x3d93b7['isInContent']){for(const _0xeda670 of _0x3d93b7['getRanges']())_0xeda670['containsRange'](_0x20aa2a,!0x0)&&_0x3de0f3['add'](_0x3d93b7['type']+':'+_0x3d93b7['author']['id']),_0xeda670['containsRange'](_0x43ce33,!0x0)&&_0x3a6b57['add'](_0x3d93b7['type']+':'+_0x3d93b7['author']['id']);}if(_0x3de0f3['size']!=_0x3a6b57['size'])return!0x1;for(const _0x1d91fc of _0x3de0f3)if(!_0x3a6b57['has'](_0x1d91fc))return!0x1;return!0x0;}}class Dt extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x2e38e8=this['editor'];if(!_0x2e38e8['plugins']['has']('TableEditing'))return;const _0xc5e8fd=_0x2e38e8['locale'],_0x26c376=_0x2e38e8['plugins']['get']('TrackChangesEditing');_0x26c376['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x26c376['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x26c376['registerBlockAttribute']('headingRows'),_0x26c376['registerBlockAttribute']('headingColumns'),_0x26c376['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0xc5e8fd,'FORMAT_HEADER_ROW')),_0x26c376['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0xc5e8fd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b46fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47c2dc=this['editor']['plugins']['get']('TableUtils'),_0x4c1496=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5d0b39({showActiveMarker:_0x44eab8=!0x0,setDataAttribute:_0x35b490=!0x0}={}){return(_0x13daed,_0xe8fbed,_0x4fae6a)=>{const {type:_0x351d3d,id:_0x25a5f4}=_0x3b46fd['_splitMarkerName'](_0xe8fbed['markerName']),_0xe31086=_0x3b46fd['getSuggestion'](_0x25a5f4),_0x52eaf2=_0xe31086['data'];if('formatBlock'!=_0xe31086['type']||!_0x52eaf2||'setTableColumnHeader'!=_0x52eaf2['commandName'])return;if(_0xe8fbed['item'])return void _0x13daed['stop']();if(!_0x4fae6a['consumable']['consume'](_0xe8fbed['markerRange'],_0x13daed['name']))return;const _0x35a16a=_0xe8fbed['markerRange']['start']['nodeAfter'],_0x2d1e2c=_0xe8fbed['markerRange']['end']['nodeBefore'],_0x17dd15=_0x35a16a['parent']['parent'],{column:_0xdb29cf}=_0x47c2dc['getCellLocation'](_0x35a16a),{column:_0x2eecb2}=_0x47c2dc['getCellLocation'](_0x2d1e2c);for(let _0x4a7bdd=_0xdb29cf;_0x4a7bdd<=_0x2eecb2;_0x4a7bdd++){const _0x8a0d42=_0x47c2dc['createTableWalker'](_0x17dd15,{'column':_0x4a7bdd,'includeAllSlots':!0x1});for(const _0x4d8c3f of _0x8a0d42){const _0x2aeb23=_0x4d8c3f['cell'],_0x2713db=_0x4fae6a['mapper']['toViewElement'](_0x2aeb23);_0x4fae6a['writer']['addClass']('ck-suggestion-marker-'+_0x351d3d,_0x2713db),_0x35b490&&_0x4fae6a['writer']['setAttribute']('data-suggestion',_0x25a5f4,_0x2713db),_0x4fae6a['mapper']['bindElementToMarker'](_0x2713db,_0xe8fbed['markerName']),_0x44eab8&&(_0x3b46fd['activeMarkers']['includes'](_0xe8fbed['markerName'])?_0x4fae6a['writer']['addClass']('ck-suggestion-marker--active',_0x2713db):_0x4fae6a['writer']['removeClass']('ck-suggestion-marker--active',_0x2713db));}}};}_0x3b46fd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4c1496),_0x3b46fd['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4c1496),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5d0b39(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23204a,_0x2f7bd5,_0x462324)=>{_0x462324['options']['showSuggestionHighlights']&&_0x5d0b39({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x23204a,_0x2f7bd5,_0x462324);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x559676,_0x562dae,_0x5edfe3)=>{const {type:_0x47dd30,id:_0x443351}=_0x3b46fd['_splitMarkerName'](_0x562dae['markerName']),_0xe466df=_0x3b46fd['getSuggestion'](_0x443351),_0xfdcb5b=_0xe466df['data'];if('formatBlock'!=_0xe466df['type']||!_0xfdcb5b||'setTableColumnHeader'!=_0xfdcb5b['commandName'])return;const _0x40483f=_0x5edfe3['mapper']['markerNameToElements'](_0x562dae['markerName']);if(_0x40483f){for(const _0x6ee822 of _0x40483f)_0x5edfe3['writer']['removeClass']('ck-suggestion-marker-'+_0x47dd30,_0x6ee822),_0x5edfe3['writer']['removeClass']('ck-suggestion-marker--active',_0x6ee822),_0x5edfe3['writer']['removeAttribute']('data-suggestion',_0x6ee822),_0x5edfe3['mapper']['unbindElementFromMarkerName'](_0x6ee822,_0x562dae['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13dc0a=this['editor'],_0x1a6996=_0x13dc0a['locale'];function _0x28cb86(_0x1a7bc2){return{'type':'format','content':c(_0x1a6996,'*Format:*\x20%0',_0x1a7bc2)};}_0x13dc0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xcd222a=>{if('formatBlock'!=_0xcd222a['type'])return;const {data:_0x3b2f69}=_0xcd222a;if(_0x3b2f69){if('setTableRowHeader'==_0x3b2f69['commandName']){const _0x26d493=_0x3b2f69['commandParams'][0x0]['forceValue'];return _0x28cb86(c(_0x1a6996,_0x26d493?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3b2f69['commandName']){const _0x57756e=_0x3b2f69['commandParams'][0x0]['forceValue'];return _0x28cb86(c(_0x1a6996,_0x57756e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x31a850{['afterInit'](){const _0x4f2dfb=this['editor'],_0x1ce269=_0x4f2dfb['locale'],_0x1ac5a8=_0x4f2dfb['plugins']['get']('TrackChangesEditing');function _0x4af9b6(_0x54eca0){return{'type':'format','content':''+c(_0x1ce269,'*Set\x20table\x20type:*\x20%0',_0x54eca0)};}_0x4f2dfb['plugins']['has']('TableLayout')&&(_0x1ac5a8['enableCommand']('insertTableLayout'),_0x1ac5a8['enableDefaultAttributesIntegration']('tableType'),_0x1ac5a8['registerBlockAttribute']('tableType'),_0x1ac5a8['descriptionFactory']['registerElementLabel'](_0x5981dc=>_0x5981dc['is']('element','table')&&'layout'===_0x5981dc['getAttribute']('tableType'),_0x325a13=>c(_0x1ce269,'ELEMENT_LAYOUT_TABLE',_0x325a13)),_0x1ac5a8['descriptionFactory']['registerDescriptionCallback'](_0x61216f=>{const {data:_0x4ec39d}=_0x61216f;if(_0x4ec39d&&'tableType'==_0x4ec39d['key'])switch(_0x4ec39d['newValue']){case'layout':return _0x4af9b6(c(_0x1ce269,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4af9b6(c(_0x1ce269,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x1d9996=>[_0x1d9996,null]));class $t extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x221a2b=this['editor'];if(!_0x221a2b['plugins']['has']('TableClipboard'))return;const _0x1308f4=_0x221a2b['plugins']['get']('TrackChangesEditing'),_0x2b74cb=_0x221a2b['plugins']['get']('TableUtils'),_0x1972aa=_0x221a2b['plugins']['get'](Ct),_0x37bbde=_0x221a2b['plugins']['get']('TableClipboard'),_0x1eb98b=_0x221a2b['plugins']['get']('TableSelection'),_0x3fdb02=_0x221a2b['plugins']['get'](_0x1e072e);_0x1972aa['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x221a2b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x221a2b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4cd36e=null,_0xfebe53=!0x1;_0x3fdb02['on']('contentInsertion',(_0x5bc025,_0x147916)=>{_0xfebe53='paste'===_0x147916['method'];}),_0x221a2b['model']['on']('insertContent',(_0x57433e,_0x27e89a)=>{if(!_0xfebe53&&null===_0x1eb98b['getSelectedTableCells']())return;const [_0x42b471,_0x44512f]=_0x27e89a,_0x3b2894=_0x27e89a[_0x27e89a['length']-0x1];_0x3b2894&&_0x3b2894['forceDefaultExecution']||_0x1308f4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x538102,_0x2744f5,_0x576e2c,_0x54ecd9,_0x3e76f4){if(_0x2744f5&&!_0x2744f5['is']('documentSelection'))return!0x1;const _0x5677fd=_0x3e76f4['getTableIfOnlyTableInContent'](_0x538102,_0x576e2c);if(!_0x5677fd||!He(_0x5677fd,void 0x0,_0x54ecd9))return!0x1;const _0x27cc61=_0x54ecd9['getSelectionAffectedTableCells'](_0x576e2c['document']['selection']);if(!_0x27cc61['length'])return!0x1;const _0x1ee90a=_0x27cc61[0x0]['findAncestor']('table'),_0x1193d4=_0x54ecd9['getRowIndexes'](_0x27cc61),_0x2ef9fb=_0x54ecd9['getColumnIndexes'](_0x27cc61),_0x3d2aaa={'startRow':_0x1193d4['first'],'endRow':_0x1193d4['last'],'startColumn':_0x2ef9fb['first'],'endColumn':_0x2ef9fb['last']};return 0x1==_0x27cc61['length']&&(_0x3d2aaa['endRow']+=_0x54ecd9['getRows'](_0x5677fd)-0x1,_0x3d2aaa['endColumn']+=_0x54ecd9['getColumns'](_0x5677fd)-0x1),He(_0x1ee90a,_0x3d2aaa,_0x54ecd9);}(_0x42b471,_0x44512f,_0x221a2b['model'],_0x2b74cb,_0x37bbde)&&(_0x57433e['stop'](),_0x4cd36e={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x221a2b['model']['change'](()=>{_0x221a2b['model']['insertContent'](_0x27e89a[0x0],_0x27e89a[0x1],_0x27e89a[0x2],{'forceDefaultExecution':!0x0});const _0x2af340=_0x34bf97(),{rowInsertionRanges:_0x2fa6f1,columnInsertionRanges:_0x360dbb,insertionRanges:_0x20fe5,deletionRanges:_0x2c5ee3,cells:_0x17cd5d}=_0x4cd36e;_0x2fa6f1['length']&&_0x1308f4['markMultiRangeInsertion'](_0x2fa6f1,'tablePasteRow',{'tablePasteChainId':_0x2af340}),_0x360dbb['length']&&_0x1308f4['markMultiRangeInsertion'](_0x360dbb,'tablePasteColumn',{'tablePasteChainId':_0x2af340}),_0x20fe5['length']&&(_0x1308f4['markMultiRangeInsertion'](_0x20fe5,'tablePaste',{'tablePasteChainId':_0x2af340,'skipNestingCheck':!0x0}),_0x20fe5['forEach'](_0x362d57=>_0x362d57['detach']?.())),_0x2c5ee3['length']&&(_0x1308f4['markMultiRangeDeletion'](_0x2c5ee3,'tablePaste',{'tablePasteChainId':_0x2af340,'skipNestingCheck':!0x0}),_0x2c5ee3['forEach'](_0x194117=>_0x194117['detach']?.()));const _0x581b6f=_0x1308f4['markMultiRangeBlockFormat'](_0x17cd5d['map'](({element:_0x1e38f6})=>_0x1e38f6),{'formatGroupId':_0x34bf97()},[],'tablePasteCell',{'tablePasteChainId':_0x2af340});if(_0x581b6f){const _0x46c8ec=_0x581b6f['getMarkers'](),_0x2bbc88=[];for(const {element:_0x2ab0cc,attributes:_0x2267c0}of _0x17cd5d){if(!_0x2267c0)continue;const _0x5123ac=_0x221a2b['model']['createRangeOn'](_0x2ab0cc),_0x4692e1=_0x46c8ec['find'](_0x221313=>_0x221313['getRange']()['isEqual'](_0x5123ac));_0x4692e1&&_0x2bbc88['push']([_0x4692e1['name'],_0x2267c0]);}_0x2bbc88['length']&&_0x581b6f['setAttribute']('markerAttributes',Object['fromEntries'](_0x2bbc88));}_0x4cd36e=null;}));},{'priority':_0x26424c['high']+0xa}),_0x3fdb02['on']('contentInsertion',()=>{_0xfebe53=!0x1;},{'priority':'lowest'}),_0x221a2b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3222a8,_0x361d3c)=>{const [_0x1368fc,_0x27d241,,_0xa693e]=_0x361d3c;if(!_0x4cd36e)return;_0x3222a8['stop']();const _0x1d985c=_0x1368fc['cell'],_0x289498=_0x27d241,_0x484d5d=De(_0x1d985c),_0xe4277f=De(_0x289498);_0x3222a8['return']=_0x1d985c;let _0x4a7bfa=null,_0x272a85=null;if(_0xe4277f||_0x484d5d){if(_0x484d5d&&!_0xe4277f){_0xa693e['remove'](_0x1d985c['getChild'](0x0));for(const _0x564c8f of Array['from'](_0x289498['getChildren']()))_0xa693e['insert'](_0x564c8f,_0x1d985c,'end');const _0x540d1a=_0x4cd36e['rowInsertionIndexes']['includes'](_0x1368fc['row']),_0x2e7d5c=_0x4cd36e['columnInsertionIndexes']['includes'](_0x1368fc['column']);_0x540d1a||_0x2e7d5c||(_0x4a7bfa=_0x275766['fromRange'](_0xa693e['createRangeIn'](_0x1d985c)));}else _0xe4277f&&!_0x484d5d&&(_0x272a85=_0xa693e['createRangeIn'](_0x1d985c));}else{const _0x1c9d01=_0xa693e['createElement']('tableCellSuggestion'),_0x4195f0=_0xa693e['createElement']('tableCellSuggestion');_0xa693e['wrap'](_0xa693e['createRangeIn'](_0x1d985c),_0x4195f0),_0xa693e['insert'](_0x1c9d01,_0x1d985c,0x0);for(const _0xbe6c3b of Array['from'](_0x289498['getChildren']()))_0xa693e['insert'](_0xbe6c3b,_0x1c9d01,'end');_0x4a7bfa=_0x275766['fromRange'](_0xa693e['createRangeOn'](_0x1c9d01)),_0x272a85=_0x275766['fromRange'](_0xa693e['createRangeOn'](_0x4195f0));}const _0x4ab9c5=Array['from'](_0x289498['getAttributes']())['filter'](([_0x36bbaf])=>Oe['includes'](_0x36bbaf));_0x4cd36e['cells']['push']({'element':_0x1d985c,'attributes':_0x4ab9c5['length']?Object['fromEntries'](_0x4ab9c5):null}),_0x4a7bfa&&_0x4cd36e['insertionRanges']['push'](_0x4a7bfa),_0x272a85&&_0x4cd36e['deletionRanges']['push'](_0x272a85);},{'priority':'high'}),_0x2b74cb['on']('insertColumns',(_0x423465,_0x925400)=>{const [_0x50e8ba,_0x22dbf1={}]=_0x925400;if(!_0x4cd36e)return;const _0xf40107=_0x22dbf1['at']||0x0,_0x1ec748=_0x22dbf1['columns']||0x1;_0x4cd36e['columnInsertionIndexes']=new Array(_0x1ec748)['fill'](_0xf40107)['map']((_0x29f07a,_0x4afd2)=>_0x29f07a+_0x4afd2);for(const {cell:_0x3d61cb}of _0x2b74cb['createTableWalker'](_0x50e8ba,{'startColumn':_0xf40107,'endColumn':_0xf40107+_0x1ec748-0x1}))_0x4cd36e['columnInsertionRanges']['push'](_0x221a2b['model']['createRangeOn'](_0x3d61cb));},{'priority':'low'}),_0x2b74cb['on']('insertRows',(_0x5827dd,_0x26adc4)=>{const [_0x136dde,_0x2cda85={}]=_0x26adc4;if(!_0x4cd36e)return;const _0x18f0f7=_0x2cda85['at']||0x0,_0x48e1f2=_0x2cda85['rows']||0x1;_0x4cd36e['rowInsertionIndexes']=new Array(_0x48e1f2)['fill'](_0x18f0f7)['map']((_0x439bbd,_0x2659a6)=>_0x439bbd+_0x2659a6);for(const {cell:_0x3a8071}of _0x2b74cb['createTableWalker'](_0x136dde,{'startRow':_0x18f0f7,'endRow':_0x18f0f7+_0x48e1f2-0x1}))_0x4cd36e['rowInsertionRanges']['push'](_0x221a2b['model']['createRangeOn'](_0x3a8071));},{'priority':'low'}),_0x1308f4['descriptionFactory']['registerDescriptionCallback'](_0x1dcfcf=>{if(_0x1dcfcf['subType']&&_0x1dcfcf['subType']['startsWith']('tablePaste'))return _0x1dcfcf['previous']?{}:{'type':'insertion','content':c(_0x221a2b['locale'],'*Replace\x20table\x20cells*')};});const _0x4dac94=()=>!0x1;for(const _0x2c27f4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1308f4['_suggestionFactory']['registerCustomCallback']('insertion',_0x2c27f4,'join',_0x4dac94),_0x1308f4['_suggestionFactory']['registerCustomCallback']('deletion',_0x2c27f4,'join',_0x4dac94),_0x1308f4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c27f4,'join',_0x4dac94);_0x1308f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x4dac94),_0x1308f4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1e4e46,_0x50c4d8,_0x383821)=>{const _0x2a572f=_0x1e4e46['map'](_0x589c52=>_0x589c52['getContainedElement']())['filter'](_0x32c794=>_0x32c794),_0x4a1d7b=new Map(_0x2a572f['map'](_0x378b70=>[_0x378b70,null]));if(_0x4cd36e){for(const {element:_0x3a4aad,attributes:_0x288156}of _0x4cd36e['cells'])_0x288156&&_0x4a1d7b['set'](_0x3a4aad,_0x288156);}else{if(_0x383821&&_0x383821['markerAttributes'])for(const [_0x119f66,_0x4b43c6]of Object['entries'](_0x383821['markerAttributes'])){const _0xbe8aba=_0x221a2b['model']['markers']['get'](_0x119f66),_0x1b59b8=_0xbe8aba?_0xbe8aba['getRange']()['getContainedElement']():null;_0x1b59b8&&_0x4a1d7b['set'](_0x1b59b8,_0x4b43c6);}}_0x221a2b['model']['change'](_0x3a84c2=>{for(const [_0x5e0537,_0x58365f]of _0x4a1d7b)_0x3a84c2['setAttributes']({...Ue,..._0x58365f},_0x5e0537);});});const _0x566819=(_0x31f676,_0xba3473)=>{_0x1308f4['_suggestionFactory']['registerCustomCallback'](_0x31f676,'tablePaste',_0xba3473,(_0x2e2914,_0x2d393d,_0x3f5bf8)=>{_0x221a2b['model']['change'](_0x483b80=>{const _0x3ac87d=[];for(const _0x493186 of _0x2e2914){const _0x14eca0=_0x493186['start']['nodeAfter'];_0x14eca0['is']('element','tableCellSuggestion')&&_0x3ac87d['push'](_0x14eca0);}_0x1308f4['_suggestionFactory']['getSuggestionCallback'](_0x31f676,null,_0xba3473)(_0x2e2914,_0x2d393d,_0x3f5bf8);for(const _0x5ac889 of _0x3ac87d)'$graveyard'!=_0x5ac889['root']['rootName']&&_0x483b80['unwrap'](_0x5ac889);});});};_0x566819('insertion','accept'),_0x566819('insertion','discard'),_0x566819('deletion','accept'),_0x566819('deletion','discard'),_0x1308f4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x373c1b=>{const _0x36e87a=_0x373c1b['map'](_0x2f19dd=>_0x2f19dd['getContainedElement']()),_0x33be81=_0x36e87a[0x0]['findAncestor']('table'),{minRow:_0xf5d614,maxRow:_0x25627f}=_0x1972aa['_getCoordsForCells'](_0x36e87a);_0x2b74cb['removeRows'](_0x33be81,{'at':_0xf5d614,'rows':_0x25627f-_0xf5d614+0x1});}),_0x1308f4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x43bc7f=>{const _0x17085a=_0x43bc7f['map'](_0x348601=>_0x348601['getContainedElement']()),_0x33089e=_0x17085a[0x0]['findAncestor']('table'),{minColumn:_0x3be67c,maxColumn:_0x3879d7}=_0x1972aa['_getCoordsForCells'](_0x17085a);_0x2b74cb['removeColumns'](_0x33089e,{'at':_0x3be67c,'columns':_0x3879d7-_0x3be67c+0x1});});const _0x36f8f3=(_0x2df13c,_0x4aa7e9)=>{if(!_0x4aa7e9['subType']||!_0x4aa7e9['subType']['startsWith']('tablePaste'))return;const _0x2bcb26=_0x4aa7e9['attributes']['tablePasteChainId'],_0x2bc21b=_0x1308f4['getSuggestions']()['filter'](_0x1f2c74=>_0x1f2c74['isInContent']&&_0x1f2c74['attributes']&&_0x1f2c74['attributes']['tablePasteChainId']==_0x2bcb26);_0x2bc21b['length']&&_0x4aa7e9['getAllAdjacentSuggestions']()['length']!=_0x2bc21b['length']&&_0x2bc21b['reduce']((_0x10fca0,_0x2935d4)=>(_0x10fca0['next']=_0x2935d4,_0x2935d4['previous']=_0x10fca0,_0x2935d4));};function _0x467e08(_0x24e954,_0x478427=!0x0){const {id:_0x38f0f1,authorId:_0x35cda0}=_0x1308f4['_splitMarkerName'](_0x24e954['markerName']),_0x164760=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x23d4e4=_0x1308f4['activeMarkers']['includes'](_0x24e954['markerName']);return _0x23d4e4&&_0x164760['push']('ck-suggestion-marker--active'),{'classes':_0x164760,'attributes':{'data-suggestion':_0x38f0f1,'data-author-id':_0x35cda0},'priority':_0x23d4e4&&_0x478427?0xbc2:0xbb8};}_0x1308f4['on']('suggestionLoaded',_0x36f8f3,{'priority':'high'}),_0x1308f4['on']('suggestionUnloaded',_0x36f8f3,{'priority':'high'}),_0x221a2b['model']['document']['registerPostFixer'](()=>{let _0x3e188f=!0x1;const _0x578dd3=Array['from'](_0x221a2b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4d4dbf,data:_0x4ec240}of _0x578dd3){const {group:_0x3e526a,type:_0x1b2460,id:_0x4174af}=_0x1308f4['_splitMarkerName'](_0x4d4dbf);if('suggestion'!=_0x3e526a||'deletion'!=_0x1b2460||_0x4ec240['oldRange'])continue;if(!_0x1308f4['hasSuggestion'](_0x4174af))continue;const _0x15a579=_0x1308f4['getSuggestion'](_0x4174af)['getRanges'](),_0x37f0eb=_0x221a2b['plugins']['get']('Users')['me'];for(const _0x12b0af of _0x1308f4['getSuggestions']()){if(!_0x12b0af['isInContent']||_0x12b0af['author']!=_0x37f0eb)continue;if('formatBlock'!=_0x12b0af['type']||'tablePasteCell'!=_0x12b0af['subType'])continue;if(_0x12b0af['getRanges']()['every'](_0x4ef7f2=>_0x15a579['some'](_0x11344d=>_0x11344d['containsRange'](_0x4ef7f2,!0x0)))){for(const _0x542fd2 of _0x12b0af['getAllAdjacentSuggestions']())_0x542fd2['isInContent']&&(_0x542fd2['discard'](),_0x3e188f=!0x0);}}}return _0x3e188f;}),_0x221a2b['model']['document']['registerPostFixer'](_0x443123=>{const _0x4b0995=_0x221a2b['commands']['get']('redo');if(!_0x4b0995||!_0x4b0995['_createdBatches']['has'](_0x443123['batch']))return!0x1;let _0x2011e6=!0x1;const _0x20143a=_0x221a2b['plugins']['get']('Users')['me'],_0xb62075=_0x221a2b['model']['document']['differ']['getChanges'](),_0x195755=Array['from'](_0x221a2b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x579a98,data:_0x4dd952})=>{const {group:_0x48bc3e,subType:_0x1278a9,authorId:_0x373042}=_0x1308f4['_splitMarkerName'](_0x579a98);return'suggestion'==_0x48bc3e&&'tablePaste'==_0x1278a9&&_0x373042==_0x20143a['id']&&!_0x4dd952['oldRange'];});for(const _0x453634 of _0xb62075){if('insert'!=_0x453634['type']||'tableCellSuggestion'!=_0x453634['name']||0x1!=_0x453634['length'])continue;const _0x4153a0=_0x443123['createRange'](_0x453634['position'],_0x453634['position']['getShiftedBy'](0x1));if(!_0x195755['find'](({data:_0x1418a5})=>_0x1418a5['newRange']['isEqual'](_0x4153a0))){for(const {name:_0x1b301e,data:_0x580d55}of _0x195755)if(_0x4153a0['containsRange'](_0x580d55['newRange'])){_0x443123['updateMarker'](_0x1b301e,{'range':_0x4153a0}),_0x2011e6=!0x0;break;}}}return _0x2011e6;}),_0x221a2b['model']['document']['registerPostFixer'](_0xee0935=>{let _0x4908a7=!0x1;const _0x16caea=_0x221a2b['plugins']['get']('Users')['me'],_0x1a9e93=_0x1308f4['getSuggestions']()['filter'](_0x1b2f07=>_0x1b2f07['isInContent']&&_0x1b2f07['author']==_0x16caea),_0x34de74=new Set(),_0x2d6da6=new Set();for(const _0xadcc45 of _0x1a9e93)if('tablePaste'==_0xadcc45['subType'])for(const _0x1df028 of _0xadcc45['getMarkers']()){const _0x25c6d0=_0x1df028['getRange']()['getContainedElement']();if(_0x25c6d0){if(_0x25c6d0['is']('element','tableCellSuggestion')&&De(_0x25c6d0)){_0xadcc45['removeMarker'](_0x1df028['name']),_0x34de74['add'](_0x25c6d0),_0x4908a7=!0x0;const _0x265b99=_0x25c6d0['nextSibling'],_0x2e6115=_0x25c6d0['previousSibling'],_0x1e738d=_0x265b99&&_0x265b99['is']('element','tableCellSuggestion'),_0x3311a6=_0x2e6115&&_0x2e6115['is']('element','tableCellSuggestion');_0x1e738d&&!_0x34de74['has'](_0x265b99)&&_0x2d6da6['add'](_0x265b99),_0x3311a6&&!_0x34de74['has'](_0x2e6115)&&_0x2d6da6['add'](_0x2e6115);}else _0x25c6d0['is']('element','paragraph')&&_0x25c6d0['isEmpty']&&(_0xadcc45['removeMarker'](_0x1df028['name']),_0x4908a7=!0x0);}}else{if('tablePasteCell'==_0xadcc45['subType']){if(!_0xadcc45['attributes']||!_0xadcc45['attributes']['tablePasteChainId'])continue;const _0x3e2483=_0xadcc45['attributes']['markerAttributes'];if(_0x3e2483&&Object['keys'](_0x3e2483)['length'])continue;const _0x88e79b=_0xadcc45['attributes']['tablePasteChainId'];let _0x31eac2=!0x0,_0x5647e3=!0x0;for(const _0x4d59ef of _0x1a9e93)if(_0x4d59ef['subType']&&_0x4d59ef['subType']['startsWith']('tablePaste')){if(!_0x4d59ef['attributes']['tablePasteChainId']){_0x5647e3=!0x1;break;}if(_0x4d59ef['id']!=_0xadcc45['id']&&_0x4d59ef['attributes']['tablePasteChainId']==_0x88e79b){_0x31eac2=!0x1;break;}}_0x5647e3&&_0x31eac2&&(_0xadcc45['removeMarkers'](),_0x4908a7=!0x0);}}for(const _0x14baa7 of _0x34de74)_0xee0935['remove'](_0x14baa7);for(const _0x39c595 of _0x2d6da6)_0xee0935['unwrap'](_0x39c595);return _0x4908a7;}),_0x221a2b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1d3cef=>_0x467e08(_0x1d3cef),'converterPriority':'high'}),_0x221a2b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2e396d,_0x3fb94a)=>_0x3fb94a['options']['showSuggestionHighlights']?_0x467e08(_0x2e396d,!0x1):null,'converterPriority':'high'});const _0x5b682a=_0x221a2b['editing']['view'];this['listenTo'](_0x5b682a['document'],'clipboardOutput',(_0x266317,_0x34ea1c)=>{const _0x167b97=[];for(const _0x2af1d5 of _0x5b682a['createRangeIn'](_0x34ea1c['content'])['getItems']())_0x2af1d5['is']('element','suggestion-td')&&_0x167b97['push'](_0x2af1d5);_0x5b682a['change'](_0x15ccd2=>{for(const _0x42dbc1 of _0x167b97)_0x15ccd2['move'](_0x15ccd2['createRangeIn'](_0x42dbc1),_0x15ccd2['createPositionBefore'](_0x42dbc1)),_0x15ccd2['remove'](_0x42dbc1);});});}}function De(_0x13a63d){if(_0x13a63d['isEmpty'])return!0x0;const _0x1e2414=_0x13a63d['getChild'](0x0);return _0x1e2414['is']('element','paragraph')&&_0x1e2414['isEmpty'];}function He(_0x2d9f94,_0x176c55={},_0x50b5ff){for(const {isAnchor:_0x4a14d6,cellHeight:_0x590459,cellWidth:_0x277554}of _0x50b5ff['createTableWalker'](_0x2d9f94,{'includeAllSlots':!0x0,..._0x176c55}))if(!_0x4a14d6||0x1!=_0x590459||0x1!=_0x277554)return!0x1;return!0x0;}class Bt extends _0x31a850{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xc18636=this['editor']['plugins']['get']('TrackChangesEditing');_0xc18636['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xc18636['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xc18636['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc18636['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xc18636['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xc18636['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x59726b,_0x55a025){const _0x4fa647=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ee783=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16f0aa=_0x55a025['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xd5e053=_0x5ee783['getColumnGroupElement'](_0x16f0aa);let _0x62ce95=_0xd5e053?_0x5ee783['getTableColumnsWidths'](_0xd5e053):null,_0x27ceef=_0x16f0aa['getAttribute']('tableWidth')||null;const _0x5cf2db=_0x55a025['tableWidth']||_0x27ceef,_0x255c5f=_0x55a025['columnWidths']||_0x62ce95,_0x256214=this['editor']['plugins']['get']('Users')['me'];for(const _0x47f0ce of _0x4fa647['getSuggestions']()){const _0x413bc4=_0x47f0ce['getContainedElement']();if('resizeTable'===_0x47f0ce['subType']&&_0x413bc4===_0x16f0aa){_0x47f0ce['author']!==_0x256214&&_0x47f0ce['discard']();const _0xa18312=_0x47f0ce['data']['commandParams'];_0x27ceef=_0xa18312[0x0]['tableWidth'],_0x62ce95=_0xa18312[0x0]['columnWidths'];break;}}_0x59726b({'table':_0x16f0aa,'tableWidth':_0x5cf2db,'columnWidths':_0x255c5f}),_0x4fa647['markBlockFormat'](_0x16f0aa,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x27ceef,'columnWidths':_0x62ce95}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x51b4c0){if('formatBlock'!=_0x51b4c0['type']&&'formatInline'!=_0x51b4c0['type'])return;const {data:_0x5c96e2}=_0x51b4c0;if(_0x5c96e2&&'resizeTable'===_0x5c96e2['formatGroupId']){const _0x2ecf8d='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x2ecf8d)};}}}class xt extends _0x31a850{['afterInit'](){const _0x16a97b=this['editor'];_0x16a97b['plugins']['has']('Template')&&_0x16a97b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x31a850{['afterInit'](){const _0x301e33=this['editor'];if(!_0x301e33['commands']['get']('insertTableOfContents'))return;_0x301e33['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xe4abdb=_0x301e33['plugins']['get']('TrackChangesEditing'),_0x33cee2=_0x301e33['locale'];_0xe4abdb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3038a0=>c(_0x33cee2,'ELEMENT_TABLE_OF_CONTENTS',_0x3038a0));}}class Rt extends _0x31a850{['afterInit'](){const _0x5a9504=this['editor'];if(!_0x5a9504['plugins']['has']('Title'))return;const _0x5d6099=_0x5a9504['plugins']['get']('TrackChangesEditing');_0x5d6099['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x5a9504['locale'],'ELEMENT_TITLE')),_0x5a9504['model']['document']['registerPostFixer'](_0x351436=>{let _0xfab24b=!0x1;const _0x441cf2=Array['from'](_0x5a9504['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x528056,data:_0x32cc37}of _0x441cf2){const {group:_0x3d9d2b}=_0x5d6099['_splitMarkerName'](_0x528056);if('suggestion'!==_0x3d9d2b||!_0x32cc37['newRange'])continue;const _0x30e1f1=_0x32cc37['newRange'],_0x1c46e5=_0x30e1f1['end']['nodeBefore'];if(!_0x1c46e5||!_0x1c46e5['is']('element','title-content'))continue;if(!_0x30e1f1['start']['isTouching'](_0x30e1f1['end']))continue;const _0x5a0fbc=_0x5a9504['model']['schema']['getNearestSelectionRange'](_0x30e1f1['end'],'forward');if(_0x5a0fbc&&_0x5a0fbc['isCollapsed']){const _0x15286e=_0x351436['createRange'](_0x30e1f1['start'],_0x5a0fbc['start']);_0x15286e['isEqual'](_0x30e1f1)||(_0x351436['updateMarker'](_0x528056,{'range':_0x15286e}),_0xfab24b=!0x0);}_0xfab24b||(_0x351436['removeMarker'](_0x528056),_0xfab24b=!0x0);}return _0xfab24b;});}}class Tt extends _0x31a850{['afterInit'](){const _0x661ba6=this['editor'],_0x374fab=_0x661ba6['plugins']['get']('TrackChangesEditing');_0x661ba6['plugins']['has']('Uploadcare')&&(_0x374fab['enableCommand']('uploadcare'),_0x661ba6['plugins']['has']('UploadcareImageEdit')&&(_0x374fab['enableCommand']('uploadcareImageEdit'),_0x374fab['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x374fab['registerBlockAttribute']('uploadcareImageId'),_0x374fab['descriptionFactory']['registerDescriptionCallback'](_0x2c5c2c=>{if('attribute'!=_0x2c5c2c['type'])return;const {data:_0x5f0c04}=_0x2c5c2c;return _0x5f0c04&&'uploadcareImageId'==_0x5f0c04['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x31a850{['afterInit'](){const _0x32fc31=this['editor'],_0x1eb698=_0x32fc31['plugins']['get']('TrackChangesEditing');_0x32fc31['plugins']['has']('UndoEditing')&&(_0x1eb698['enableCommand']('undo'),_0x1eb698['enableCommand']('redo'));}}class Ut extends _0x31a850{static get['requires'](){return[Ct];}['afterInit'](){const _0x7134ce=this['editor'];if(!_0x7134ce['plugins']['has']('TableCaptionEditing'))return;_0x7134ce['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x31a850{['tableProperties'];['tableCellProperties'];constructor(_0x4ba597){super(_0x4ba597),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 _0x2224ef=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x156053 of this['tableProperties'])_0x2224ef['enableCommand'](_0x156053,(_0x2c537f,_0xc689)=>{const _0x275528=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x156053,[_0x275528],this['tableProperties'],'tableProperties',_0x2c537f,_0xc689);});_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2224ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x40ab0,_0x51d585)=>this['handleDiscardAction'](this['tableProperties'],_0x40ab0,_0x51d585)),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4d5ec0 of this['tableCellProperties'])_0x2224ef['enableCommand'](_0x4d5ec0,(_0x4a353c,_0x56892b)=>{const _0x553b29=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4d5ec0,_0x553b29,this['tableCellProperties'],'tableCellProperties',_0x4a353c,_0x56892b);});_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2224ef['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x32d2d5,_0x1d6c03)=>this['handleDiscardAction'](this['tableCellProperties'],_0x32d2d5,_0x1d6c03)),_0x2224ef['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2224ef['descriptionFactory']['registerDescriptionCallback'](_0x57bbe4=>this['handleSuggestionDescription'](_0x57bbe4));}['_handlePropertyChange'](_0xfc3e00,_0x19be8a,_0x49008e,_0xdf9365,_0x22f39c,_0x134388){const _0x3c16fe=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x134388['batch'],()=>{for(const _0x43860c of _0x19be8a){if(this['_getSuggestion'](_0x43860c,_0xdf9365))_0x22f39c(_0x134388);else{const _0x364aa5={};for(const _0x38035e of _0x49008e){const _0x142e75=_0x43860c['getAttribute'](_0x38035e);void 0x0!==_0x142e75&&(_0x364aa5[_0x38035e]=_0x142e75);}_0x22f39c(_0x134388),_0x3c16fe['markBlockFormat'](_0x43860c,{'commandParams':[_0x364aa5]},[],_0xdf9365);}}});}['handleDiscardAction'](_0x1d92f7,_0x4965b8,_0x454ba9){const _0xe8ee4a=_0x4965b8[0x0]['start']['nodeAfter'],_0x372e5a=_0x454ba9['commandParams'][0x0];this['editor']['model']['change'](_0x3ce576=>{for(const _0x55fece of _0x1d92f7)void 0x0!==_0x372e5a[_0x55fece]?_0x3ce576['setAttribute'](_0x55fece,_0x372e5a[_0x55fece],_0xe8ee4a):_0x3ce576['removeAttribute'](_0x55fece,_0xe8ee4a);});}['handleSuggestionDescription'](_0x2911ff){if(_0x2911ff['data'])switch(_0x2911ff['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5dad18,_0x2a7af9){const _0x1f7b27=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4bb0cc of _0x1f7b27['getSuggestions']({'skipNotAttached':!0x0})){const _0x31fdd4=_0x4bb0cc['getContainedElement']();if(_0x4bb0cc['subType']===_0x2a7af9&&_0x31fdd4===_0x5dad18)return _0x4bb0cc;}return null;}}const u='$elementName';class p extends _0x31a850{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x45c096,_0x253bb6,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,it,et,nt,st,ot,rt,ct,at,ut,ft,ht,lt,Q,wt,gt,W,Se,mt,pt,kt,bt,yt,St,jt,It,At,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Ot,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3334d1){super(_0x3334d1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x18fdec,_0x895762,_0x1d30be,_0x25ce75)=>{this['_model']['change'](()=>{for(const _0x139304 of[..._0x25ce75,..._0x1d30be])this['_model']['markers']['has'](_0x139304)&&_0x3334d1['editing']['reconvertMarker'](_0x139304);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3334d1['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x3334d1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3334d1['config']['get']('trackChanges.trackFormatChanges'),_0x3334d1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3334d1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3334d1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x558185=this['editor'],_0x41f128=(_0x9cd97a,_0x51f873)=>{if('attribute'!=_0x9cd97a)return'ck-suggestion-marker-'+_0x9cd97a;const _0x55dc8c=_0x51f873['split']('|')[0x0];return this['_isBlockAttribute'](_0x55dc8c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x558185['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x4bcf89=>{const {id:_0x88af73,authorId:_0xb75146,type:_0x2290ea,subType:_0x531b6a}=this['_splitMarkerName'](_0x4bcf89['markerName']),_0x5c595f=['ck-suggestion-marker',_0x41f128(_0x2290ea,_0x531b6a)];let _0x1f318a=0xbb8;return this['activeMarkers']['includes'](_0x4bcf89['markerName'])&&(_0x5c595f['push']('ck-suggestion-marker--active'),_0x1f318a=0xbc2),'deletion'==_0x2290ea&&(_0x1f318a+=0x5),{'classes':_0x5c595f,'attributes':{'data-suggestion':_0x88af73,'data-author-id':_0xb75146},'priority':_0x1f318a};}}),_0x558185['conversion']['for']('dataDowncast')['add'](_0x490a76=>{_0x490a76['on']('addMarker:suggestion',(_0x408d9c,_0x17f61f,_0x41141d)=>{if(!_0x41141d['options']['showSuggestionHighlights'])return;const _0x3585d1=_0x17f61f['item'];if(!_0x3585d1)return;const _0x58c4c3=_0x41141d['mapper']['toViewElement'](_0x3585d1);_0x558185['model']['schema']['isObject'](_0x3585d1)&&_0x58c4c3&&!_0x58c4c3['getCustomProperty']('widget')&&_0x58c4c3['is']('containerElement')&&_0x1785d4(_0x58c4c3,_0x41141d['writer']);},{'priority':'high'});}),_0x558185['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x348e25,_0x1dcf4c)=>{if(!_0x1dcf4c['options']['showSuggestionHighlights'])return null;const {id:_0x57a159,authorId:_0x59d3de,type:_0x57c1b5,subType:_0x23319b}=this['_splitMarkerName'](_0x348e25['markerName']);return{'classes':['ck-suggestion-marker',_0x41f128(_0x57c1b5,_0x23319b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x57a159,'data-author-id':_0x59d3de}};}});const _0x1509d8=({showActiveMarkers:_0x3e5704=!0x0,isAttributeSuggestion:_0x5b76f6=!0x1}={})=>(_0x1a2901,_0x59d38c,_0x48d746)=>{if(!_0x59d38c['item'])return;const {id:_0x4191a3,authorId:_0x1a5778}=this['_splitMarkerName'](_0x59d38c['markerName']);if(_0x5b76f6){const _0x2b4b1f=this['_suggestions']['get'](_0x4191a3),_0x36062d=this['_getAttributeKey'](_0x2b4b1f);if(!this['_isBlockAttribute'](_0x36062d))return;}if(_0x59d38c['item']['is']('selection'))return void _0x48d746['consumable']['consume'](_0x59d38c['item'],_0x1a2901['name']);const _0x5293e2=_0x48d746['mapper']['toViewElement'](_0x59d38c['item']);if(_0x59d38c['item']['is']('element')&&_0x558185['model']['schema']['isBlock'](_0x59d38c['item'])&&!_0x5293e2['getCustomProperty']('addHighlight')){_0x48d746['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5293e2),_0x48d746['writer']['setAttribute']('data-suggestion',_0x4191a3,_0x5293e2),_0x48d746['writer']['setAttribute']('data-author-id',_0x1a5778,_0x5293e2),_0x48d746['mapper']['bindElementToMarker'](_0x5293e2,_0x59d38c['markerName']),_0x3e5704&&(this['activeMarkers']['includes'](_0x59d38c['markerName'])?_0x48d746['writer']['addClass']('ck-suggestion-marker--active',_0x5293e2):_0x48d746['writer']['removeClass']('ck-suggestion-marker--active',_0x5293e2));for(const _0x188f5e of _0x558185['model']['createRangeIn'](_0x59d38c['item'])['getItems']())_0x48d746['consumable']['consume'](_0x188f5e,_0x1a2901['name']);_0x48d746['consumable']['consume'](_0x59d38c['item'],_0x1a2901['name']);}};_0x558185['conversion']['for']('dataDowncast')['add'](_0x5db21b=>{_0x5db21b['on']('addMarker:suggestion:formatBlock',(_0x5ac321,_0xa28c5,_0x3af137)=>{_0x3af137['options']['showSuggestionHighlights']&&_0x1509d8({'showActiveMarkers':!0x1})(_0x5ac321,_0xa28c5,_0x3af137);},{'priority':'highest'});}),_0x558185['conversion']['for']('dataDowncast')['add'](_0x3a1077=>{_0x3a1077['on']('addMarker:suggestion:attribute',(_0x2e9d4f,_0xfb1c8a,_0x473812)=>{_0x473812['options']['showSuggestionHighlights']&&_0x1509d8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2e9d4f,_0xfb1c8a,_0x473812);},{'priority':'highest'});}),_0x558185['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x46c0dd,_0x230f3f)=>{if(_0x230f3f['options']['showSuggestionHighlights']){const {id:_0x27f9e3,authorId:_0x1c4f96}=this['_splitMarkerName'](_0x46c0dd);return _0x46c0dd['includes'](':split')||_0x46c0dd['includes'](':merge')?{'group':'suggestion','name':_0x46c0dd['substr'](0xb),'attributes':{'data-suggestion':_0x27f9e3,'data-author-id':_0x1c4f96}}:null;}return{'group':'suggestion','name':_0x46c0dd['substr'](0xb)};}}),_0x558185['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x23b2f8,{writer:_0x49e1dc})=>{let _0x3a1a89='suggestion:'+_0x23b2f8['getAttribute']('suggestion-type')+':'+_0x23b2f8['getAttribute']('id');return _0x23b2f8['getAttribute']('marker-count')&&(_0x3a1a89+=':'+_0x23b2f8['getAttribute']('marker-count')),_0x49e1dc['createElement']('$marker',{'data-name':_0x3a1a89});}}),_0x558185['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x558185['conversion']['for']('editingDowncast')['add'](_0xc8d05d=>{_0xc8d05d['on']('addMarker:suggestion:formatBlock',_0x1509d8(),{'priority':'high'});}),_0x558185['conversion']['for']('editingDowncast')['add'](_0x43130c=>{_0x43130c['on']('addMarker:suggestion:attribute',_0x1509d8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x558185['conversion']['for']('editingDowncast')['add'](_0x12ef2b=>{_0x12ef2b['on']('removeMarker:suggestion:formatBlock',(_0x276dd5,_0x2ca754,_0x476943)=>{const _0x2da8f3=_0x476943['mapper']['markerNameToElements'](_0x2ca754['markerName']);if(_0x2da8f3){for(const _0x422b38 of _0x2da8f3)_0x422b38['getCustomProperty']('addHighlight')||(_0x476943['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x422b38),_0x476943['writer']['removeAttribute']('data-suggestion',_0x422b38),_0x476943['writer']['removeAttribute']('data-author-id',_0x422b38),_0x476943['mapper']['unbindElementFromMarkerName'](_0x422b38,_0x2ca754['markerName']));}},{'priority':'high'});}),_0x558185['conversion']['for']('editingDowncast')['add'](_0x14f316=>{_0x14f316['on']('removeMarker:suggestion:attribute',(_0x3355fa,_0x15890a,_0x57a1b1)=>{const _0x2ebc4f=_0x57a1b1['mapper']['markerNameToElements'](_0x15890a['markerName']);if(!_0x2ebc4f)return;const {id:_0x37b2c9}=this['_splitMarkerName'](_0x15890a['markerName']),_0x4d28ca=this['_suggestions']['get'](_0x37b2c9),_0x2ffaa5=this['_getAttributeKey'](_0x4d28ca);if(this['_isBlockAttribute'](_0x2ffaa5)){for(const _0xeb61a7 of _0x2ebc4f)_0xeb61a7['getCustomProperty']('addHighlight')||(_0x57a1b1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xeb61a7),_0x57a1b1['writer']['removeAttribute']('data-suggestion',_0xeb61a7),_0x57a1b1['writer']['removeAttribute']('data-author-id',_0xeb61a7),_0x57a1b1['mapper']['unbindElementFromMarkerName'](_0xeb61a7,_0x15890a['markerName']));}},{'priority':'high'});}),_0x558185['model']['document']['registerPostFixer'](_0x205099=>{let _0x2d6ecf=!0x1;const _0x489151=Array['from'](_0x558185['model']['document']['differ']['getChangedMarkers']()),_0x935b68=new Set();for(const {name:_0x970af4,data:_0x2d0f11}of _0x489151){const {group:_0x1ecf46,type:_0x42095c,subType:_0x1c0e38,id:_0x50957a}=this['_splitMarkerName'](_0x970af4);if('suggestion'!==_0x1ecf46)continue;const _0x460225=this['_suggestions']['get'](_0x50957a);if(null!=_0x2d0f11['newRange']){'formatInline'==_0x42095c&&(_0x2d6ecf=_0x2d6ecf||Jt(_0x2d0f11['newRange'],_0x970af4,_0x205099,_0x558185['model']['schema']));const _0x1c5c85='attribute'==_0x42095c&&this['_isBlockAttribute'](_0x1c0e38['split']('|')[0x0]);if(_0x2d0f11['newRange']['isCollapsed']||'$graveyard'==_0x2d0f11['newRange']['root']['rootName']||'formatBlock'==_0x42095c&&!Ht(_0x2d0f11['newRange'])||_0x1c5c85&&!Ht(_0x2d0f11['newRange'])||'deletion'==_0x42095c&&!(!Lt(_0x73a27a=_0x2d0f11['newRange'])&&!function(_0x4d96b6){return _0x4d96b6['start']['parent']==_0x4d96b6['end']['nodeBefore']&&_0x4d96b6['start']['isAtEnd'];}(_0x73a27a)))_0x205099['removeMarker'](_0x970af4),_0x2d6ecf=!0x0;else{if(!_0x460225||!_0x460225['isInContent'])continue;if(_0x2d0f11['newRange']&&_0x2d0f11['oldRange']&&_0x2d0f11['newRange']['isEqual'](_0x2d0f11['oldRange']))continue;_0x935b68['add'](_0x460225);}}}var _0x73a27a;return _0x935b68['size']>0x0&&(_0x2d6ecf=!!this['_joinWithAdjacentSuggestions'](_0x935b68)||_0x2d6ecf),_0x2d6ecf;}),_0x558185['model']['document']['registerPostFixer'](_0x3f1066=>{let _0x243805=!0x1;for(const _0x2c7f68 of _0x558185['model']['document']['differ']['getChanges']())if('insert'==_0x2c7f68['type'])for(const _0x11097e of this['_suggestions']['values']()){if(_0x11097e['isMultiRange']||!_0x11097e['isInContent'])continue;const _0x13d2de='formatBlock'==_0x11097e['type'],_0xa6e36c=this['_getAttributeKey'](_0x11097e),_0x39e24f=_0xa6e36c&&this['_isBlockAttribute'](_0xa6e36c);if(!_0x13d2de&&!_0x39e24f)continue;const _0x4ca889=_0x11097e['getFirstRange']();if(_0x4ca889['start']['parent']!=_0x4ca889['end']['parent']&&!_0x4ca889['end']['isAtEnd']){const _0x75dd78=_0x558185['model']['createPositionAt'](_0x4ca889['start']['nodeAfter'],'end'),_0x23870a=_0x558185['model']['createRange'](_0x4ca889['start'],_0x75dd78);_0x3f1066['updateMarker'](_0x11097e['getFirstMarker'](),{'range':_0x23870a}),_0x243805=!0x0;}}return _0x243805;}),_0x558185['model']['document']['registerPostFixer'](_0x3b5f33=>this['_processAttributeChanges'](_0x3b5f33)),_0x558185['model']['document']['registerPostFixer'](_0x2e6604=>!_0x2e6604['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2e6604)),_0x558185['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x558185['model']['document']['on']('change:data',(_0x21dbe2,_0xfe414)=>{if(!_0xfe414['isLocal']||_0xfe414['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5019cb=_0x558185['model']['document']['differ']['getChanges']();if(0x0==_0x5019cb['length'])return;const _0x440ef2=[],_0x18d454=_0x5019cb['filter'](_0x4e0bb6=>'attribute'==_0x4e0bb6['type']),_0x449f9d=_0x5019cb['filter'](_0x4dac7a=>'insert'==_0x4dac7a['type']&&'$text'!=_0x4dac7a['name']);for(const _0x3374f9 of _0x18d454)this['_isRegisteredAttribute'](_0x3374f9['attributeKey'])&&_0x440ef2['push']({'key':_0x3374f9['attributeKey'],'newValue':_0x3374f9['attributeNewValue'],'oldValue':_0x3374f9['attributeOldValue'],'range':qt(_0x3374f9['range'],_0x558185['model'])});for(const _0x3cadb7 of _0x449f9d){if('rename'!=_0x3cadb7['action']&&'refresh'!=_0x3cadb7['action'])continue;const _0x38d9eb=zt(_0x3cadb7['position']['nodeAfter'],_0x558185['model']),_0x51077b=_0x3cadb7['before'];'rename'==_0x3cadb7['action']&&_0x440ef2['push']({'key':u,'newValue':_0x3cadb7['name'],'oldValue':_0x51077b['name'],'range':_0x38d9eb});for(const [_0x92b80d,_0x198760]of _0x51077b['attributes']){if(!this['_isRegisteredAttribute'](_0x92b80d))continue;const _0x16e849=_0x3cadb7['attributes']['get'](_0x92b80d);_0x198760!==_0x16e849&&_0x440ef2['push']({'key':_0x92b80d,'newValue':_0x16e849,'oldValue':_0x198760,'range':_0x38d9eb});}for(const [_0x23a75c,_0x2cfa2e]of _0x3cadb7['attributes'])this['_isRegisteredAttribute'](_0x23a75c)&&(_0x51077b['attributes']['has'](_0x23a75c)||_0x440ef2['push']({'key':_0x23a75c,'newValue':_0x2cfa2e,'oldValue':null,'range':_0x38d9eb}));}0x0!=_0x440ef2['length']&&_0x558185['model']['enqueueChange'](_0xfe414,_0x1b1d67=>{const _0x47a3fa=_0x34bf97();for(const {range:_0x4df57f,key:_0x1c15a8,oldValue:_0x32c8d7,newValue:_0x1506b5}of _0x440ef2)this['markAttributeChange'](_0x4df57f,_0x1c15a8,_0x32c8d7,_0x1506b5,{'groupId':_0x47a3fa});this['_reduceExistingSuggestions'](_0x1b1d67,_0x440ef2);});},{'priority':'lowest'}),_0x558185['model']['markers']['on']('update:suggestion',(_0x4d2256,_0x2ab68d,_0x7ef52f)=>{if(null==_0x7ef52f){const {id:_0x39c784}=this['_splitMarkerName'](_0x2ab68d['name']),_0x27b1cf=this['_suggestions']['get'](_0x39c784);_0x27b1cf&&_0x27b1cf['addMarkerName'](_0x2ab68d['name']);}}),_0x558185['model']['document']['on']('change:data',()=>{const _0x3acc4d=Array['from'](_0x558185['model']['document']['differ']['getChangedMarkers']())['filter'](_0x396281=>'suggestion'===this['_splitMarkerName'](_0x396281['name'])['group']);if(0x0===_0x3acc4d['length'])return;_0x3acc4d['sort']((_0x10a79a,_0x105132)=>{const _0x39ab28=_0x10a79a['data']['oldRange'],_0x1aee7e=_0x105132['data']['oldRange'];return null===_0x39ab28&&null===_0x1aee7e?0x0:null===_0x39ab28&&null!==_0x1aee7e?-0x1:null!==_0x39ab28&&null===_0x1aee7e?0x1:_0x39ab28['start']['isBefore'](_0x1aee7e['start'])?-0x1:0x1;});const _0x56c66b=new Set(),_0x1ad4a2=new Set();for(const {name:_0x5a8192,data:_0x189aa5}of _0x3acc4d){const {id:_0x3d36a5}=this['_splitMarkerName'](_0x5a8192);if(null===_0x189aa5['oldRange']){const _0x38f95f=this['_handleNewSuggestionMarker'](_0x5a8192);_0x1ad4a2['add'](_0x38f95f);}else{const _0x39133d=this['_suggestions']['get'](_0x3d36a5);null!==_0x189aa5['newRange']||_0x39133d['isInContent']?(_0x56c66b['add'](_0x39133d['head']),_0x1ad4a2['add'](_0x39133d)):this['_removeSuggestion'](_0x39133d);}}_0x1ad4a2['size']>0x0&&this['_refreshSuggestionsChain'](_0x1ad4a2);for(const _0x5ba39a of _0x56c66b)this['fire']('suggestionChanged',_0x5ba39a);}),_0x558185['model']['on']('applyOperation',(_0x282085,_0xc4f51)=>{const _0x194a89=_0xc4f51[0x0];if(!this['_suggestions']['size'])return;if(!_0x194a89['isDocumentOperation'])return;if(_0x194a89['batch']['isUndo']||!_0x194a89['batch']['isLocal'])return;let _0x19fa16,_0x12554f;switch(_0x194a89['type']){case'insert':_0x19fa16=_0x558185['model']['createPositionAt'](_0x194a89['position']),_0x12554f=_0x19fa16['getShiftedBy'](_0x194a89['howMany']);break;case'split':_0x19fa16=_0x558185['model']['createPositionAt'](_0x194a89['splitPosition']),_0x12554f=_0x558185['model']['createPositionAt'](_0x194a89['moveTargetPosition']);break;case'move':_0x19fa16=_0x558185['model']['createPositionAt'](_0x194a89['targetPosition']),_0x12554f=_0x19fa16['getShiftedBy'](_0x194a89['howMany']);break;default:return;}const _0xb8b3d2=_0x558185['model']['createRange'](_0x19fa16,_0x12554f);_0x558185['model']['change'](()=>{for(const {suggestion:_0x2ed7b8,meta:_0x12eb28}of this['_findSuggestions'](_0xb8b3d2)){if(_0x2ed7b8['isMultiRange'])continue;if('formatInline'==_0x2ed7b8['type'])continue;const _0x5ae409=this['_getAttributeKey'](_0x2ed7b8);if(_0x5ae409&&this['_isBlockAttribute'](_0x5ae409)&&'split'!=_0x194a89['type'])continue;const _0x6ad7de=_0x2ed7b8['data']&&_0x2ed7b8['data']['multipleBlocks'];('formatBlock'!=_0x2ed7b8['type']||'split'==_0x194a89['type']&&!_0x6ad7de)&&(_0x12eb28['containsRangeInObject']||'insertion'==_0x2ed7b8['type']&&_0x12eb28['isOwn']||_0x2ed7b8['getFirstRange']()['containsRange'](_0xb8b3d2)&&this['_breakSuggestionMarker'](_0x2ed7b8,_0x19fa16,_0x12554f));}});},{'priority':'lowest'}),_0x558185['model']['on']('deleteContent',(_0x566cf8,_0x274c3e)=>{const _0x275129=_0x274c3e[0x0],_0x3c9f7e=_0x274c3e[0x1];if(_0x3c9f7e&&_0x3c9f7e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x275129['isCollapsed'])return;const _0x33f113=_0x558185['model']['schema'],{start:_0x5b59c7,end:_0x362d91}=_0x275129['getFirstRange'](),_0x4e48f1=_0x5b59c7['nodeAfter']&&_0x33f113['isLimit'](_0x5b59c7['nodeAfter'])?null:_0x33f113['getNearestSelectionRange'](_0x5b59c7,'forward'),_0x1447cb=_0x362d91['nodeBefore']&&_0x33f113['isLimit'](_0x362d91['nodeBefore'])?null:_0x33f113['getNearestSelectionRange'](_0x362d91,'backward'),_0x5178f1=_0x558185['model']['createRange'](_0x4e48f1?_0x4e48f1['start']:_0x5b59c7,_0x1447cb?_0x1447cb['end']:_0x362d91);_0x558185['model']['change'](_0x2380e5=>{this['markDeletion'](_0x5178f1);const _0x3591ed=_0x558185['model']['schema']['getNearestSelectionRange'](_0x5178f1['start']);_0x275129['is']('documentSelection')?_0x2380e5['setSelection'](_0x3591ed):_0x275129['setTo'](_0x3591ed);}),_0x566cf8['stop']();},{'priority':_0x26424c['normal']+0xa}),_0x558185['model']['on']('insertContent',(_0x519dca,_0x445366)=>{const _0x19dfe3=_0x445366[_0x445366['length']-0x1];_0x19dfe3&&_0x19dfe3['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x558185['model']['change'](()=>{let _0x33453f=_0x558185['model']['insertContent'](_0x445366[0x0],_0x445366[0x1],_0x445366[0x2],{'forceDefaultExecution':!0x0});if(!_0x33453f)return;_0x519dca['return']=_0x33453f['clone']();const _0x67ac6e=_0x33453f['end']['nodeBefore'],_0x4b7104=_0x558185['model']['schema'];_0x67ac6e&&_0x4b7104['isBlock'](_0x67ac6e)&&!_0x4b7104['isObject'](_0x67ac6e)&&(_0x33453f=_0x558185['model']['createRange'](_0x33453f['start'],_0x558185['model']['createPositionAt'](_0x67ac6e,'end'))),this['markInsertion'](_0x33453f);}),_0x519dca['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x240f7a=new x(_0x558185,this['_suggestions']);_0x558185['commands']['add']('acceptSuggestion',_0x240f7a),this['enableCommand']('acceptSuggestion');const _0x246923=new O(_0x558185,this['_suggestions']);_0x558185['commands']['add']('discardSuggestion',_0x246923),this['enableCommand']('discardSuggestion'),_0x558185['commands']['add']('acceptAllSuggestions',new R(_0x558185,_0x240f7a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x558185['commands']['add']('discardAllSuggestions',new R(_0x558185,_0x246923,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x558185['commands']['add']('acceptSelectedSuggestions',new E(_0x558185,_0x240f7a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x558185['commands']['add']('discardSelectedSuggestions',new E(_0x558185,_0x246923,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x100140=_0x558185['plugins']['get']('CommentsRepository');this['listenTo'](_0x100140,'addComment',(_0x9305ff,{threadId:_0x59b6e7})=>{const _0x4c73dc=this['_suggestions']['get'](_0x59b6e7);_0x4c73dc&&_0x4c73dc['commentThread']&&0x1===_0x4c73dc['commentThread']['length']&&this['_updateSuggestionData'](_0x59b6e7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x100140,'removeComment',(_0x4b19f8,{threadId:_0x113708})=>{const _0x563997=this['_suggestions']['get'](_0x113708);_0x563997&&_0x563997['commentThread']&&!_0x563997['commentThread']['length']&&this['_updateSuggestionData'](_0x113708,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4c35e7){const _0xb6302f=_0x491d86([0x76,0x52,0x43,0x6d,0x45,0x57,0x4f,0x6a,0x38,0x72,0x30,0x37,0x73,0x48,0x47,0x42,0x66,0x63,0x65,0x4b,0x4e,0x64,0x49,0x74,0x44,0x32,0x58,0x5a,0x4a,0x79,0x41,0x61,0x71,0x46,0x6e,0x35,0x33,0x7a,0x51,0x4d,0x67,0x39,0x69,0x77,0x62,0x70,0x6b,0x56,0x53,0x75,0x50,0x55,0x4c,0x31,0x34,0x54,0x6f,0x6c,0x78,0x59,0x36,0x68]),_0xae1e79=0x4b1cce3e,_0x333eef=0x4b1ba756^_0xae1e79,_0x4779c5=window[_0x491d86([0x44,0x61,0x74,0x65])][_0x491d86([0x6e,0x6f,0x77])](),_0x10b150=_0x4c35e7[_0x491d86([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x54f15a=new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe9aa=>{_0x10b150[_0x491d86([0x6f,0x6e,0x63,0x65])](_0x491d86([0x72,0x65,0x61,0x64,0x79]),_0x2fe9aa);}),_0x15fcd5={[_0x491d86([0x6b,0x74,0x79])]:_0x491d86([0x45,0x43]),[_0x491d86([0x75,0x73,0x65])]:_0x491d86([0x73,0x69,0x67]),[_0x491d86([0x63,0x72,0x76])]:_0x491d86([0x50,0x2d,0x32,0x35,0x36]),[_0x491d86([0x78])]:_0x491d86([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]),[_0x491d86([0x79])]:_0x491d86([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]),[_0x491d86([0x61,0x6c,0x67])]:_0x491d86([0x45,0x53,0x32,0x35,0x36])},_0x50b80b=_0x10b150[_0x491d86([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x491d86([0x67,0x65,0x74])](_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44c352(){let _0x75a164,_0x10c11f=null,_0x5e001e=null;try{if(_0x50b80b==_0x491d86([0x47,0x50,0x4c]))return _0x491d86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x75a164=_0x2b9428(),!_0x75a164)return _0x491d86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x75a164[_0x491d86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e001e=_0x10a618(_0x75a164[_0x491d86([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x75a164[_0x491d86([0x6a,0x74,0x69])])),await _0x173f5f()?_0x37c9ca()?_0x1ceecc()?_0x491d86([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x414c47()?(_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x491d86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x10c11f=_0x548148(_0x491d86([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x491d86([0x74,0x72,0x69,0x61,0x6c])&&(_0x10c11f=_0x548148(_0x491d86([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e55e1()):_0x491d86([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x491d86([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x491d86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x491d86([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1ceecc(){const _0x2b6591=[_0x491d86([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x491d86([0x74,0x72,0x69,0x61,0x6c])][_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4779c5/0x3e8:0xe10*_0x333eef;return _0x75a164[_0x491d86([0x65,0x78,0x70])]<_0x2b6591;}function _0x37c9ca(){const _0x4d73b9=_0x75a164[_0x491d86([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4d73b9)return!0x1;if(_0x4d73b9[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x2a])))return!0x0;if(_0x4d73b9[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x54,0x43])))return!0x0;if(_0x4d73b9[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x52,0x54,0x43]))){if(_0x2e5268())return!0x0;if(_0x3eac22()||_0x316f53())return!0x0;}return!0x1;}function _0x414c47(){const _0x3afea5=_0x75a164[_0x491d86([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3afea5||0x0==_0x3afea5[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x153458}=new URL(window[_0x491d86([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3afea5[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x153458))return!0x0;const _0x4d708d=_0x153458[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e]));return _0x3afea5[_0x491d86([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x282698=>_0x282698[_0x491d86([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x491d86([0x2a])))[_0x491d86([0x6d,0x61,0x70])](_0xb38c7e=>_0xb38c7e[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e])))[_0x491d86([0x73,0x6f,0x6d,0x65])](_0x202ec7=>_0x4d708d[_0x491d86([0x65,0x76,0x65,0x72,0x79])]((_0x3a1050,_0x4f3ba9)=>_0x202ec7[_0x4f3ba9]===_0x3a1050||_0x202ec7[_0x4f3ba9]===_0x491d86([0x2a])));}function _0x3e55e1(){return _0x10c11f&&_0x5e001e?new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16eef4,_0x2793bb)=>{_0x10c11f[_0x491d86([0x74,0x68,0x65,0x6e])](_0x16eef4,_0x2793bb),_0x5e001e[_0x491d86([0x74,0x68,0x65,0x6e])](_0x30b08f=>{_0x30b08f!=_0x491d86([0x56,0x61,0x6c,0x69,0x64])&&_0x16eef4(_0x30b08f);},_0x2793bb);}):_0x10c11f||_0x5e001e||_0x491d86([0x56,0x61,0x6c,0x69,0x64]);}}function _0x10a618(_0x3ffc9e,_0x1d3b85){return new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5451ff=>{if(_0x33b4bf())return _0x5451ff(_0x491d86([0x56,0x61,0x6c,0x69,0x64]));_0x34c93a(),_0x10b150[_0x491d86([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x491d86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x354e16=!0x1;const _0x2d50db=_0x34bf97();function _0x3eeb53(_0x7e2bb9){return!!_0x7e2bb9&&(typeof _0x7e2bb9===_0x491d86([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x7e2bb9===_0x491d86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x7e2bb9[_0x491d86([0x74,0x68,0x65,0x6e])]===_0x491d86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x7e2bb9[_0x491d86([0x63,0x61,0x74,0x63,0x68])]===_0x491d86([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5aea9d(_0x1a3264){_0x11934e(_0x1a3264)[_0x491d86([0x74,0x68,0x65,0x6e])](_0x56b1f2=>{if(!_0x56b1f2||_0x56b1f2[_0x491d86([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x491d86([0x6f,0x6b]))return _0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x31c0d3(_0xfd99ec(_0x2d50db+_0x1d3b85))!=_0x56b1f2[_0x491d86([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x491d86([0x56,0x61,0x6c,0x69,0x64]);})[_0x491d86([0x74,0x68,0x65,0x6e])](_0x5721ba=>(_0x51b3e7(),_0x5721ba),()=>{const _0xc1a4fa=_0x1715e5();return null==_0xc1a4fa?(_0x51b3e7(),_0x491d86([0x56,0x61,0x6c,0x69,0x64])):_0x491d86(_0x4779c5-_0xc1a4fa>(0x6f104a3e^_0xae1e79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x491d86([0x74,0x68,0x65,0x6e])](_0x5451ff)[_0x491d86([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5451ff(_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x984066=0x4b2a20be^_0xae1e79;function _0x51b3e7(){const _0x1d01c0=_0x491d86([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c0d3(_0xfd99ec(_0x3ffc9e)),_0x53ff33=_0x578486(_0x31c0d3(window[_0x491d86([0x4d,0x61,0x74,0x68])][_0x491d86([0x63,0x65,0x69,0x6c])](_0x4779c5/_0x984066)));window[_0x491d86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x491d86([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1d01c0,_0x53ff33);}function _0x1715e5(){const _0x22c7e7=_0x491d86([0x6c,0x6c,0x63,0x74,0x2d])+_0x31c0d3(_0xfd99ec(_0x3ffc9e)),_0x5d1779=window[_0x491d86([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x491d86([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22c7e7);return _0x5d1779?window[_0x491d86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x578486(_0x5d1779),0x10)*_0x984066:null;}function _0x11934e(_0x4f8808){return new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b9103,_0x5a8b3e)=>{_0x4f8808[_0x491d86([0x74,0x68,0x65,0x6e])](_0x5b9103,_0x5a8b3e),window[_0x491d86([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5a8b3e,0x4b1d1afe^_0xae1e79);});}}_0x10b150[_0x491d86([0x6f,0x6e])](_0x491d86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b5fd3,_0x2e8c38)=>{if(_0x2e8c38[0x0]!=_0x3ffc9e)return _0x5451ff(_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e8c38[0x1]={..._0x2e8c38[0x1],[_0x491d86([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d50db};},{[_0x491d86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x491d86([0x68,0x69,0x67,0x68])}),_0x10b150[_0x491d86([0x6f,0x6e])](_0x491d86([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2bc9f3=>{_0x3eeb53(_0x2bc9f3[_0x491d86([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x354e16=!0x0,_0x5aea9d(_0x2bc9f3[_0x491d86([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x491d86([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x491d86([0x6c,0x6f,0x77])}),_0x54f15a[_0x491d86([0x74,0x68,0x65,0x6e])](()=>{_0x354e16||_0x5451ff(_0x491d86([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x33b4bf(){return _0x10b150[_0x491d86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x491d86([0x76,0x69,0x65,0x77])][_0x491d86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x491d86([0x61,0x75,0x74,0x6f]);}function _0x34c93a(){_0x10b150[_0x491d86([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x491d86([0x76,0x69,0x65,0x77])][_0x491d86([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x491d86([0x61,0x75,0x74,0x6f]);}}function _0x548148(_0x1c80d1){const _0x142d67=[new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d6f78=>setTimeout(_0x5d6f78,0x4b15f0f2^_0xae1e79)),_0x54f15a[_0x491d86([0x74,0x68,0x65,0x6e])](()=>new window[(_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x91bb33=>{let _0x5bbb0e=0x0;_0x10b150[_0x491d86([0x6d,0x6f,0x64,0x65,0x6c])][_0x491d86([0x6f,0x6e])](_0x491d86([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xe3aa96,_0x4676cd)=>{_0x4676cd[0x0][_0x491d86([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5bbb0e++,_0x5bbb0e==(0x4b1ccfc6^_0xae1e79)&&(_0x91bb33(),_0xe3aa96[_0x491d86([0x6f,0x66,0x66])]());});}))];return window[_0x491d86([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x491d86([0x72,0x61,0x63,0x65])](_0x142d67)[_0x491d86([0x74,0x68,0x65,0x6e])](()=>_0x1c80d1);}async function _0x2d36bf(){await _0x54f15a,_0x10b150[_0x491d86([0x6d,0x6f,0x64,0x65,0x6c])][_0x491d86([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x24b3f8,_0x10b150[_0x491d86([0x6d,0x6f,0x64,0x65,0x6c])][_0x491d86([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x24b3f8,_0x10b150[_0x491d86([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x491d86([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e5268(){return _0x48d07d(_0x491d86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x412cc9(_0x491d86([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x491d86([0x73,0x74,0x61,0x74,0x65])]==_0x491d86([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3eac22(){return _0x48d07d(_0x491d86([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 _0x316f53(){return _0x48d07d(_0x491d86([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x578f2d(_0x233c8b){const _0x29f4a3=_0x11a9e();_0x10b150[_0x29f4a3]=_0x491d86([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x233c8b,_0x233c8b!=_0x491d86([0x56,0x61,0x6c,0x69,0x64])&&_0x2d36bf();}function _0x11a9e(){const _0xca1a9d=window[_0x491d86([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x491d86([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x491d86([0x6e,0x6f,0x77])]())[_0x491d86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x491d86([0x2e]),'');let _0x259777=_0x491d86([0x76]);for(let _0x469a4e=0x0;_0x469a4e<_0xca1a9d[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x469a4e+=0x2){let _0x344524=window[_0x491d86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xca1a9d[_0x491d86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x469a4e,_0x469a4e+0x2));_0x344524>=_0xb6302f[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x344524-=_0xb6302f[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x259777+=_0xb6302f[_0x344524];}return _0x259777;}function _0x2b9428(){const _0x3826ea=_0x50b80b[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e]));if(0x3!=_0x3826ea[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1d655f(_0x3826ea[0x1]);function _0x1d655f(_0x208913){const _0x5254f8=_0x287703(_0x208913);return _0x5254f8&&_0x5283a6()?_0x5254f8:null;function _0x5283a6(){const _0x5b9ea9=_0x5254f8[_0x491d86([0x6a,0x74,0x69])],_0x210522=window[_0x491d86([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b9ea9[_0x491d86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b9ea9[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7470ba={..._0x5254f8,[_0x491d86([0x6a,0x74,0x69])]:_0x5b9ea9[_0x491d86([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b9ea9[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7470ba[_0x491d86([0x76,0x63])],_0xfd99ec(_0x7470ba)==_0x210522;}}}async function _0x173f5f(){let _0x2943a2=!0x0;try{const _0x3cb676=_0x50b80b[_0x491d86([0x73,0x70,0x6c,0x69,0x74])](_0x491d86([0x2e])),[_0x2d3e40,_0x18488a,_0x142aea]=_0x3cb676;return _0x138bec(_0x2d3e40),await _0x385d9a(_0x2d3e40,_0x18488a,_0x142aea),_0x2943a2;}catch{return!0x1;}function _0x138bec(_0x251e22){const _0x3094e6=_0x287703(_0x251e22);_0x3094e6&&_0x3094e6[_0x491d86([0x61,0x6c,0x67])]==_0x491d86([0x45,0x53,0x32,0x35,0x36])||(_0x2943a2=!0x1);}async function _0x385d9a(_0x3157b2,_0x285ca2,_0x5bcad8){const _0x35430a=window[_0x491d86([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x491d86([0x66,0x72,0x6f,0x6d])](_0x44807f(_0x5bcad8),_0x58bfb1=>_0x58bfb1[_0x491d86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x43fb40=new window[(_0x491d86([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x491d86([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3157b2+_0x491d86([0x2e])+_0x285ca2),_0x580a04=window[_0x491d86([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x491d86([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x580a04)return;const _0x3f4974=await _0x580a04[_0x491d86([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x491d86([0x6a,0x77,0x6b]),_0x15fcd5,{[_0x491d86([0x6e,0x61,0x6d,0x65])]:_0x491d86([0x45,0x43,0x44,0x53,0x41]),[_0x491d86([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x491d86([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x491d86([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x580a04[_0x491d86([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x491d86([0x6e,0x61,0x6d,0x65])]:_0x491d86([0x45,0x43,0x44,0x53,0x41]),[_0x491d86([0x68,0x61,0x73,0x68])]:{[_0x491d86([0x6e,0x61,0x6d,0x65])]:_0x491d86([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f4974,_0x35430a,_0x43fb40)||(_0x2943a2=!0x1);}}function _0x287703(_0x36ba7a){return _0x36ba7a[_0x491d86([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x491d86([0x65,0x79]))?JSON[_0x491d86([0x70,0x61,0x72,0x73,0x65])](_0x44807f(_0x36ba7a)):null;}function _0x44807f(_0x54d6f7){return window[_0x491d86([0x61,0x74,0x6f,0x62])](_0x54d6f7[_0x491d86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x491d86([0x2b]))[_0x491d86([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x491d86([0x2f])));}function _0xfd99ec(_0x217f16){let _0x39ccb7=0x1505;function _0xc14302(_0x46c71d){for(let _0x4e24f1=0x0;_0x4e24f1<_0x46c71d[_0x491d86([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e24f1++){const _0x555e51=_0x46c71d[_0x491d86([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e24f1);_0x39ccb7=(_0x39ccb7<<0x5)+_0x39ccb7+_0x555e51,_0x39ccb7&=_0x39ccb7;}}function _0xd9ca37(_0x5152db){Array[_0x491d86([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5152db)?_0x5152db[_0x491d86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xd9ca37):_0x5152db&&typeof _0x5152db==_0x491d86([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x491d86([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5152db)[_0x491d86([0x73,0x6f,0x72,0x74])]()[_0x491d86([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x23d0f4,_0x17103e])=>{_0xc14302(_0x23d0f4),_0xd9ca37(_0x17103e);}):_0xc14302(window[_0x491d86([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5152db));}return _0xd9ca37(_0x217f16),_0x39ccb7>>>0x0;}function _0x31c0d3(_0x10a1f4){return _0x10a1f4[_0x491d86([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x491d86([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x491d86([0x30]));}function _0x578486(_0x206a86){return _0x206a86[_0x491d86([0x73,0x70,0x6c,0x69,0x74])]('')[_0x491d86([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x491d86([0x6a,0x6f,0x69,0x6e])]('');}function _0x48d07d(_0x32c64c){return _0x10b150[_0x491d86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x491d86([0x68,0x61,0x73])](_0x32c64c);}function _0x412cc9(_0x223d6f){return _0x10b150[_0x491d86([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x491d86([0x67,0x65,0x74])](_0x223d6f);}function _0x24b3f8(){}function _0x491d86(_0x1004aa){return _0x1004aa['map'](_0x3d224c=>String['fromCharCode'](_0x3d224c))['join']('');}_0x578f2d(await _0x44c352());}(this);}set['adapter'](_0x136247){if(this['_adapter'])throw new _0x5121be('track-changes-adapter-already-set',this);this['_adapter']=_0x136247;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1c1d33=!0x1,toJSON:_0x2dccf8=!0x1}={}){const _0xba8d63=[];for(const _0x207f88 of this['_suggestions']['values']())_0x1c1d33&&!_0x207f88['isInContent']||_0xba8d63['push'](_0x207f88);return _0x2dccf8?_0xba8d63['map'](_0x55d082=>_0x55d082['toJSON']()):_0xba8d63;}['getSuggestion'](_0x3da3b8){const _0x10efb8=this['_suggestions']['get'](_0x3da3b8);if(!_0x10efb8)throw new _0x5121be('track-changes-suggestion-not-found',this);return _0x10efb8;}['hasSuggestion'](_0x144d7b){return this['_suggestions']['has'](_0x144d7b);}['addSuggestionData'](_0x34b759){const {authorId:_0x1f62ed,id:_0x4fb4ce,originalSuggestionId:_0x45aa9d,attributes:_0x519401}=_0x34b759,[_0x5eb315,_0x3e636b]=_0x34b759['type']['split'](':'),_0x18cb19=this['_suggestions']['get'](_0x4fb4ce)||this['_createSuggestion'](_0x5eb315,_0x3e636b,_0x4fb4ce,_0x1f62ed,_0x519401,_0x45aa9d);if(this['_addThreadToSuggestion'](_0x18cb19),this['_checkSuggestionCorrectness'](_0x18cb19,_0x5eb315,_0x3e636b||null,_0x1f62ed),_0x18cb19['createdAt']=_0x34b759['createdAt'],_0x18cb19['_isDataLoaded']=!0x0,_0x519401&&_0x519401['@external']){const _0x172d18=_0x519401['@external'],_0x405f5c=this['_getExternalAuthor'](_0x172d18['authorName']);_0x18cb19['authoredAt']=_0x172d18['createdAt'],_0x18cb19['author']=_0x405f5c,_0x18cb19['isExternal']=!0x0;}else _0x18cb19['authoredAt']=_0x34b759['createdAt'];switch(_0x34b759['data']&&(_0x18cb19['data']=_0x34b759['data']),_0x34b759['attributes']&&(_0x18cb19['attributes']=_0x34b759['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x18cb19['_saved']=!0x0),this['_suggestionState']['get'](_0x18cb19)){case'notReady':this['_suggestionState']['set'](_0x18cb19,'dataReady');break;case'markerReady':_0x18cb19['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x18cb19])),this['_refreshSuggestionsChain'](new Set([_0x18cb19])),this['_suggestionState']['set'](_0x18cb19,'ready'),this['fire']('suggestionLoaded',_0x18cb19)):this['_suggestionState']['set'](_0x18cb19,'removed');}return _0x18cb19;}['acceptSuggestion'](_0xb214c3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x44d919 of _0xb214c3['getAllAdjacentSuggestions']())_0x44d919['accept']();});});}['discardSuggestion'](_0x451d59){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x42b576 of _0x451d59['getAllAdjacentSuggestions']())_0x42b576['discard']();});});}['enableCommand'](_0x2c4308,_0x3ec7dd){const _0x4158dd=this['editor']['commands']['get'](_0x2c4308);if(!_0x4158dd)throw new _0x5121be('track-changes-command-not-found',this,{'commandName':_0x2c4308});if(this['_enabledCommands']['has'](_0x4158dd))throw new _0x5121be('track-changes-enable-command-twice',this,{'commandName':_0x2c4308});this['_enabledCommands']['add'](_0x4158dd),_0x3ec7dd&&_0x4158dd['on']('execute',(_0x2e9201,_0x5b4dc2)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b4dc2['length']>0x0&&_0x5b4dc2[_0x5b4dc2['length']-0x1]&&_0x5b4dc2[_0x5b4dc2['length']-0x1]['forceDefaultExecution']?_0x5b4dc2['pop']():(_0x2e9201['return']=_0x3ec7dd((..._0x5d882b)=>_0x4158dd['execute'](..._0x5d882b,{'forceDefaultExecution':!0x0}),..._0x5b4dc2),_0x2e9201['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1855bd){let _0x312ead,_0xbf3bea;const _0x4340ab=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x312ead=_0x1855bd();}catch(_0x5bc437){_0xbf3bea=_0x5bc437;}return _0x4340ab||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xbf3bea&&_0x5121be['rethrowUnexpectedError'](_0xbf3bea,this),_0x312ead;}['markInsertion'](_0x12c031,_0x56f3ba=null,_0x96991c={}){if(_0x12c031['isCollapsed'])return null;const _0x7016ed=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x96991c['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x2463c5,meta:_0x55c812}of this['_findSuggestions'](_0x12c031,'insertion'))if(_0x55c812['isOwn']){if(!_0x55c812['isNextTo']){if(_0x55c812['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x2463c5,_0x96991c))continue;return _0x2463c5;}if(Xt(_0x2463c5,_0x96991c))return _0x2463c5;this['_breakSuggestionMarker'](_0x2463c5,_0x12c031['start'],_0x12c031['end']);break;}if(_0x56f3ba==_0x2463c5['subType']&&Xt(_0x2463c5,_0x96991c)){const _0x2cfc3c=_0x2463c5['getFirstRange']();return _0x2cfc3c['start']['isEqual'](_0x12c031['end'])?this['_setSuggestionRange'](_0x2463c5,this['_model']['createRange'](_0x12c031['start'],_0x2cfc3c['end'])):this['_setSuggestionRange'](_0x2463c5,this['_model']['createRange'](_0x2cfc3c['start'],_0x12c031['end'])),_0x2463c5;}}const _0x365f76=_0x34bf97(),_0x3df0ae=_0x7016ed['id'],_0x4a0de1=_0x56f3ba?'insertion:'+_0x56f3ba:'insertion',_0x55a4f0=this['_setSuggestionData']({'id':_0x365f76,'type':_0x4a0de1,'createdAt':new Date(),'authorId':_0x3df0ae,'attributes':_0x96991c});return this['_addSuggestionMarker'](_0x4a0de1,_0x365f76,_0x3df0ae,_0x12c031),_0x55a4f0;}['markMultiRangeInsertion'](_0x222ce4,_0x23342f='multi',_0x2861e2={}){const _0x22cc31=this['editor']['plugins']['get']('Users')['me'],_0x27d2aa=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x23342f,'join');this['_trackingSessionId']&&(_0x2861e2['trackingSessionId']=this['_trackingSessionId']);for(const _0x1c36cb of this['getSuggestions']())if(_0x1c36cb['author']['id']==_0x22cc31['id']&&'insertion'==_0x1c36cb['type']&&_0x1c36cb['subType']==_0x23342f&&Xt(_0x1c36cb,_0x2861e2)&&(_0x27d2aa(_0x1c36cb['getRanges'](),_0x222ce4)||_0x27d2aa(_0x222ce4,_0x1c36cb['getRanges']()))){for(const _0x4530b3 of _0x222ce4)_0x1c36cb['addRange'](_0x4530b3);return _0x1c36cb;}for(const {suggestion:_0x22d1a8,meta:_0x53be05}of this['_findSuggestions'](_0x222ce4,'insertion')){if(!_0x53be05['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x53be05['containsRangeInObject'])continue;if(!Xt(_0x22d1a8,_0x2861e2))continue;let _0x42749b=!0x0;for(const _0x3d4a27 of _0x22d1a8['getRanges']())for(const _0x3c84b9 of _0x222ce4)if(!_0x3d4a27['containsRange'](_0x3c84b9)){_0x42749b=!0x1;break;}if(_0x42749b)return _0x22d1a8;}const _0x3450e4=_0x34bf97(),_0x328af6=_0x22cc31['id'],_0x55b8a3='insertion:'+_0x23342f,_0x301ed3=this['_setSuggestionData']({'id':_0x3450e4,'type':_0x55b8a3,'createdAt':new Date(),'authorId':_0x328af6,'attributes':_0x2861e2});for(const _0x23fd5b of _0x222ce4)this['_addSuggestionMarker'](_0x55b8a3,_0x3450e4,_0x328af6,_0x23fd5b,o['getMultiRangeId']());return _0x301ed3;}['markInlineFormat'](_0x4c98b6,_0xa817cb,_0x1bbb96=null,_0x12b1cb={}){if(_0x1bbb96=_0x1bbb96||Kt(_0xa817cb),_0x4c98b6['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x12b1cb['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x19b71f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bbb96,'accept');return this['forceDefaultExecution'](()=>_0x19b71f([_0x4c98b6],_0xa817cb,_0x12b1cb)),null;}const _0x548186=this['editor']['plugins']['get']('Users')['me'],_0x17dfbb=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xd16562,meta:_0x3350c4}of this['_findSuggestions'](_0x4c98b6,'insertion'))_0x3350c4['isOwn']&&!_0x3350c4['isInsideObject']&&_0x17dfbb['push'](..._0xd16562['getRanges']());}const _0x385c08=function(_0x5aef6c,_0x292804){const _0x535269=[];for(const _0x4c5234 of _0x292804){const _0x453b7a=_0x5aef6c['getIntersection'](_0x4c5234);_0x453b7a&&_0x535269['push'](_0x453b7a);}return _0x535269;}(_0x4c98b6,_0x17dfbb),_0x3cc735=function(_0x2acdf1,_0x36098e){const _0x3d896f=[_0x2acdf1];for(const _0x4e8a83 of _0x36098e){let _0x5d1f67=0x0;for(;_0x5d1f67<_0x3d896f['length'];){const _0xf06b19=_0x3d896f[_0x5d1f67]['getDifference'](_0x4e8a83);_0x3d896f['splice'](_0x5d1f67,0x1,..._0xf06b19),_0x5d1f67+=_0xf06b19['length'];}}return _0x3d896f;}(_0x4c98b6,_0x17dfbb);_0x385c08['length']&&this['_model']['change'](()=>{for(const _0x354945 of _0x385c08){const _0x4368ed=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1bbb96,'accept');this['forceDefaultExecution'](()=>_0x4368ed([_0x354945],_0xa817cb,_0x12b1cb));}});for(const _0x59a4bb of _0x3cc735){let _0x53e535=null,_0x1862c=_0x59a4bb['start'],_0x3b9df9=_0x59a4bb['end'];for(const {suggestion:_0x32ec30,meta:_0x1dc7aa}of this['_findSuggestions'](_0x59a4bb,'formatInline')){if(!_0x1dc7aa['isOwn'])continue;if(_0x32ec30['subType']!=_0x1bbb96)continue;if(!Xt(_0x32ec30,_0x12b1cb))continue;const _0x4a6e94=_0x32ec30['getFirstRange']();if(_0x4a6e94['containsRange'](_0x59a4bb,!0x0))return null;_0x1862c=_0x1862c['isBefore'](_0x4a6e94['start'])?_0x1862c:_0x4a6e94['start'],_0x3b9df9=_0x3b9df9['isAfter'](_0x4a6e94['end'])?_0x3b9df9:_0x4a6e94['end'],_0x53e535?_0x4a6e94['start']['isBefore'](_0x53e535['getFirstRange']()['start'])?(_0x53e535['removeMarkers'](),_0x53e535=_0x32ec30):_0x32ec30['removeMarkers']():_0x53e535=_0x32ec30;}const _0x2ac8e1=this['_model']['createRange'](_0x1862c,_0x3b9df9);if(_0x53e535)this['_setSuggestionRange'](_0x53e535,_0x2ac8e1);else{const _0xdeeeea=_0x34bf97(),_0x3b1b79=_0x548186['id'];this['_setSuggestionData']({'id':_0xdeeeea,'type':'formatInline:'+_0x1bbb96,'data':_0xa817cb,'createdAt':new Date(),'authorId':_0x3b1b79,'attributes':_0x12b1cb}),this['_addSuggestionMarker']('formatInline:'+_0x1bbb96,_0xdeeeea,_0x3b1b79,_0x2ac8e1);}}return null;}['markBlockFormat'](_0x127a54,_0x6626ae,_0x5153a5=[],_0x28172d=null,_0x1e111f={}){_0x6626ae['formatGroupId']||(_0x6626ae['formatGroupId']=_0x6626ae['commandName']),_0x6626ae['multipleBlocks']=_0x127a54['is']('range'),_0x28172d=_0x28172d||Kt(_0x6626ae);const _0x12dce9=_0x5153a5['map'](_0x4c84cd=>zt(_0x4c84cd,this['_model'])),_0x5b81ad=_0x127a54['is']('range')?_0x127a54:zt(_0x127a54,this['_model']);if(this['_trackingSessionId']&&(_0x1e111f['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x16edf8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28172d,'accept');return this['forceDefaultExecution'](()=>_0x16edf8([_0x5b81ad],_0x6626ae,_0x1e111f)),null;}_0x12dce9['push'](_0x5b81ad);let _0x526263=!0x0;for(const _0x1a6696 of _0x12dce9)if(!this['_rangeIsInLocalUserInsertion'](_0x1a6696)){_0x526263=!0x1;break;}if(_0x526263&&'always'!==this['_trackFormatChanges']){const _0x57ac1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x28172d,'accept');return this['forceDefaultExecution'](()=>_0x57ac1d([_0x5b81ad],_0x6626ae,_0x1e111f)),null;}let _0x14f825=null,_0x54995c=_0x5b81ad['start'],_0x58f2df=_0x5b81ad['end'];for(const {suggestion:_0x2ba9ff,meta:_0x428418}of this['_findSuggestions'](_0x5b81ad,'formatBlock')){if(!_0x428418['isOwn'])continue;if(_0x428418['isNextTo']||_0x428418['containsRangeInObject']||_0x428418['isInsideObject'])continue;if(_0x2ba9ff['data']['formatGroupId']!=_0x6626ae['formatGroupId'])continue;if(!Xt(_0x2ba9ff,_0x1e111f))continue;const _0x4f5229=_0x2ba9ff['getFirstRange']();if(_0x2ba9ff['subType']==_0x28172d){if(_0x4f5229['containsRange'](_0x5b81ad,!0x0))return null;_0x54995c=_0x54995c['isBefore'](_0x4f5229['start'])?_0x54995c:_0x4f5229['start'],_0x58f2df=_0x58f2df['isAfter'](_0x4f5229['end'])?_0x58f2df:_0x4f5229['end'],_0x14f825?_0x4f5229['start']['isBefore'](_0x14f825['getFirstRange']()['start'])?(_0x14f825['removeMarkers'](),_0x14f825=_0x2ba9ff):_0x2ba9ff['removeMarkers']():_0x14f825=_0x2ba9ff;}else{const _0x3ab377=_0x5b81ad['getIntersection'](_0x4f5229);this['_cutOutSuggestionMarker'](_0x2ba9ff,_0x3ab377);}}const _0x5ed35d=this['editor']['plugins']['get']('Users')['me'],_0x480c88=_0x34bf97(),_0x2cee7d=_0x5ed35d['id'];if(_0x14f825)return this['_setSuggestionRange'](_0x14f825,this['_model']['createRange'](_0x54995c,_0x58f2df)),_0x14f825;{const _0x2956ab=this['_setSuggestionData']({'id':_0x480c88,'type':'formatBlock:'+_0x28172d,'data':_0x6626ae,'createdAt':new Date(),'authorId':_0x2cee7d,'attributes':_0x1e111f});return this['_addSuggestionMarker']('formatBlock:'+_0x28172d,_0x480c88,_0x2cee7d,this['_model']['createRange'](_0x54995c,_0x58f2df)),_0x2956ab;}}['markMultiRangeBlockFormat'](_0x526990,_0x2c347c,_0x589012=[],_0x5d4ed6=null,_0x17b248={}){_0x2c347c['formatGroupId']||(_0x2c347c['formatGroupId']=_0x2c347c['commandName']);const _0x42e9ce=_0x526990[0x0];_0x2c347c['multipleBlocks']=_0x42e9ce['is']('range'),_0x5d4ed6=_0x5d4ed6||Kt(_0x2c347c);const _0x1864b9=_0x589012['map'](_0x4577ca=>zt(_0x4577ca,this['_model'])),_0x2fdbcc=_0x42e9ce['is']('range')?_0x526990:_0x526990['map'](_0x45d411=>zt(_0x45d411,this['_model']));if(this['_trackingSessionId']&&(_0x17b248['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x140b4a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d4ed6,'accept');return this['forceDefaultExecution'](()=>_0x140b4a(_0x2fdbcc,_0x2c347c,_0x17b248)),null;}_0x1864b9['push'](..._0x2fdbcc);let _0x29b935=!0x0;for(const _0x371aa5 of _0x1864b9)if(!this['_rangeIsInLocalUserInsertion'](_0x371aa5)){_0x29b935=!0x1;break;}if(_0x29b935&&'always'!==this['_trackFormatChanges']){const _0x5e45fe=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d4ed6,'accept');return this['forceDefaultExecution'](()=>_0x5e45fe(_0x2fdbcc,_0x2c347c,_0x17b248)),null;}const _0x56dc38=this['editor']['plugins']['get']('Users')['me'];for(const _0x39e0c7 of this['getSuggestions']()){if(_0x39e0c7['author']['id']!=_0x56dc38['id'])continue;if('formatBlock'!=_0x39e0c7['type']||_0x39e0c7['data']['formatGroupId']!=_0x2c347c['formatGroupId'])continue;if(!Xt(_0x39e0c7,_0x17b248))continue;const _0x4cfac6=_0x39e0c7['subType']==_0x5d4ed6;for(let _0x2a2797=0x0;_0x2a2797<_0x2fdbcc['length'];_0x2a2797++){const _0x1bac0f=_0x2fdbcc[_0x2a2797];for(const _0x1bcb80 of _0x39e0c7['getMarkers']()){const _0x2e4570=_0x1bcb80['getRange']();if(_0x1bac0f['isEqual'](_0x2e4570)){_0x4cfac6?(_0x2fdbcc['splice'](_0x2a2797,0x1),_0x2a2797--):_0x39e0c7['removeMarker'](_0x1bcb80['name']);break;}}}}if(0x0==_0x2fdbcc['length'])return null;const _0x5f0b83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5d4ed6,'join');for(const _0x293d1d of this['getSuggestions']())if(_0x293d1d['author']['id']==_0x56dc38['id']&&'formatBlock'==_0x293d1d['type']&&_0x293d1d['data']['formatGroupId']==_0x2c347c['formatGroupId']&&_0x293d1d['subType']==_0x5d4ed6&&Xt(_0x293d1d,_0x17b248)&&(_0x5f0b83(_0x293d1d['getRanges'](),_0x2fdbcc)||_0x5f0b83(_0x2fdbcc,_0x293d1d['getRanges']()))){for(const _0xa18164 of _0x2fdbcc)_0x293d1d['addRange'](_0xa18164);return _0x293d1d;}const _0x91f08c=_0x34bf97(),_0x2c57b3=_0x56dc38['id'],_0x3f9f9e='formatBlock:'+_0x5d4ed6,_0x1a3868=this['_setSuggestionData']({'id':_0x91f08c,'type':_0x3f9f9e,'data':_0x2c347c,'createdAt':new Date(),'authorId':_0x2c57b3,'attributes':_0x17b248});for(const _0x34d78a of _0x2fdbcc)this['_addSuggestionMarker'](_0x3f9f9e,_0x91f08c,_0x2c57b3,_0x34d78a,o['getMultiRangeId']());return _0x1a3868;}['markDeletion'](_0xc7374d,_0x48a71e=null,_0xdbe16d={}){if(_0xc7374d['isCollapsed'])return null;const _0x574c39=this['editor']['plugins']['get']('Users')['me'],_0x3f1f2c=new _0x275766(_0xc7374d['start'],_0xc7374d['end']);this['_trackingSessionId']&&(_0xdbe16d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x390e56,meta:_0x5a2fbf}of this['_findSuggestions'](_0x3f1f2c,'insertion'))if(_0x5a2fbf['isOwn']&&!_0x5a2fbf['isNextTo']){if(_0x390e56['isMultiRange']){const _0x528d30=_0x390e56['getRanges']()['filter'](_0x12af16=>'$graveyard'!=_0x12af16['root']['rootName']);_0x528d30['every'](_0x28d5b9=>_0x3f1f2c['containsRange'](_0x28d5b9,!0x0))&&_0x390e56['discard']();if(_0x528d30['some'](_0x33ba16=>_0x33ba16['containsRange'](_0x3f1f2c,!0x0))){const _0x44644b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48a71e,'accept');return this['forceDefaultExecution'](()=>_0x44644b([_0x3f1f2c],null,_0xdbe16d)),null;}}else{const _0xaae69f=_0x3f1f2c['getIntersection'](_0x390e56['getFirstRange']());null!==_0xaae69f&&_0x390e56['_onDiscard']([_0xaae69f],null,_0xdbe16d);}}if(_0x3f1f2c['detach'](),_0x3f1f2c['isCollapsed']||'$graveyard'==_0x3f1f2c['root']['rootName'])return null;let _0x32b865=null,_0x4d4ce9=_0x3f1f2c['start'],_0x333966=_0x3f1f2c['end'];const _0x5d5cce=this['_findSuggestions'](_0x3f1f2c,'deletion');for(const {suggestion:_0x461da0,meta:_0x4b3e18}of _0x5d5cce){const _0x3f1759=this['_model']['createRange'](_0x4d4ce9,_0x333966);if(_0x4b3e18['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b3e18['containsRangeInObject']&&!_0x4b3e18['isInsideObject'])){if(_0x461da0['isMultiRange']){if(!Xt(_0x461da0,_0xdbe16d))continue;let _0x4e74fc=!0x0;for(const _0xa67723 of _0x461da0['getRanges']()){if(_0xa67723['containsRange'](_0x3f1759,!0x0))return _0x461da0;_0x3f1759['containsRange'](_0xa67723)||(_0x4e74fc=!0x1);}_0x4e74fc&&_0x461da0['discard']();}else{const _0x265e44=_0x461da0['getFirstRange']();if(_0x265e44['containsRange'](_0x3f1759,!0x0))return _0x461da0;if(!Xt(_0x461da0,_0xdbe16d)){_0x3f1759['containsRange'](_0x265e44)?_0x461da0['removeMarkers']():_0x265e44['containsPosition'](_0x4d4ce9)?_0x4d4ce9=_0x265e44['end']:_0x265e44['containsPosition'](_0x333966)&&(_0x333966=_0x265e44['start']);continue;}_0x4d4ce9=_0x4d4ce9['isBefore'](_0x265e44['start'])?_0x4d4ce9:_0x265e44['start'],_0x333966=_0x333966['isAfter'](_0x265e44['end'])?_0x333966:_0x265e44['end'],_0xdbe16d=Object['assign']({},_0x461da0['attributes']),_0x32b865?_0x265e44['start']['isBefore'](_0x32b865['getFirstRange']()['start'])?(_0x32b865['removeMarkers'](),_0x32b865=_0x461da0):_0x461da0['removeMarkers']():_0x32b865=_0x461da0;}}}if(_0x32b865)return this['_setSuggestionRange'](_0x32b865,this['_model']['createRange'](_0x4d4ce9,_0x333966)),_0x32b865;{const _0xbe064b=_0x34bf97(),_0x220fca=this['_model']['createRange'](_0x4d4ce9,_0x333966),_0x4b35ed=_0x574c39['id'],_0x4a52bc=_0x48a71e?'deletion:'+_0x48a71e:'deletion',_0x1f73b8=this['_setSuggestionData']({'id':_0xbe064b,'type':_0x4a52bc,'createdAt':new Date(),'authorId':_0x4b35ed,'attributes':_0xdbe16d});return this['_addSuggestionMarker'](_0x4a52bc,_0xbe064b,_0x4b35ed,_0x220fca),_0x1f73b8;}}['markMultiRangeDeletion'](_0x123e09,_0x2e1b4c='multi',_0x1aef00={}){const _0x4a375f=this['editor']['plugins']['get']('Users')['me'],_0x468d8d=_0x123e09['map'](_0x482ab7=>new _0x275766(_0x482ab7['start'],_0x482ab7['end'])),_0x1bbf2a=new Set();this['_trackingSessionId']&&(_0x1aef00['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3d4ebb,meta:_0x45fb25}of this['_findSuggestions'](_0x468d8d,'insertion'))_0x45fb25['isOwn']&&!_0x45fb25['isNextTo']&&_0x1bbf2a['add'](_0x3d4ebb);for(const _0x2b9c17 of _0x1bbf2a)if(_0x2b9c17['isMultiRange']){const _0x3987a7=_0x2b9c17['getRanges']();(!_0x2b9c17['attributes']||!_0x2b9c17['attributes']['skipNestingCheck'])&&(_0x3987a7['every'](_0x47562b=>_0x468d8d['some'](_0xede216=>_0xede216['containsRange'](_0x47562b,!0x0)))&&_0x2b9c17['discard']());if(_0x468d8d['every'](_0x4dde70=>_0x3987a7['some'](_0x27b81e=>_0x27b81e['containsRange'](_0x4dde70,!0x0)))){const _0x921770=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1b4c,'accept');return this['forceDefaultExecution'](()=>_0x921770(_0x123e09,null,_0x1aef00)),null;}}else{const _0x1b2598=_0x2b9c17['getFirstRange']();_0x468d8d['some'](_0x2e2f21=>_0x2e2f21['containsRange'](_0x1b2598,!0x0))&&_0x2b9c17['discard']();if(_0x468d8d['every'](_0x2d9e48=>_0x1b2598['containsRange'](_0x2d9e48,!0x0))){const _0x1d7108=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1b4c,'accept');return this['forceDefaultExecution'](()=>_0x1d7108(_0x468d8d,null,_0x1aef00)),null;}}const _0x11214c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2e1b4c,'join');let _0x4af7b7=null;for(const _0x31c206 of this['getSuggestions']())if(_0x31c206['author']['id']==_0x4a375f['id']&&_0x31c206['isInContent']&&'deletion'==_0x31c206['type']&&_0x31c206['subType']==_0x2e1b4c&&Xt(_0x31c206,_0x1aef00)&&(_0x11214c(_0x31c206['getRanges'](),_0x468d8d)||_0x11214c(_0x468d8d,_0x31c206['getRanges']()))){if(_0x4af7b7){if(_0x31c206['commentThread']&&_0x31c206['commentThread']['length'])continue;for(const _0x47e635 of _0x31c206['getRanges']())_0x4af7b7['isIntersectingWithRange'](_0x47e635)||_0x4af7b7['addRange'](_0x47e635);_0x31c206['removeMarkers']();}else{_0x4af7b7=_0x31c206;for(const _0xe7ca3e of _0x468d8d)_0x31c206['isIntersectingWithRange'](_0xe7ca3e)||_0x31c206['addRange'](_0xe7ca3e);}}if(_0x4af7b7)return _0x4af7b7;_0x1bbf2a['clear']();for(const {suggestion:_0x38b9db,meta:_0x4a47b2}of this['_findSuggestions'](_0x468d8d,'deletion'))_0x4a47b2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4a47b2['containsRangeInObject']&&!_0x4a47b2['isInsideObject'])&&Xt(_0x38b9db,_0x1aef00)&&_0x1bbf2a['add'](_0x38b9db);for(const _0x78074a of _0x1bbf2a){const _0x82761d=_0x78074a['getRanges']();if(!_0x1aef00||!_0x1aef00['skipNestingCheck']){if(_0x468d8d['every'](_0x3333ac=>_0x82761d['some'](_0x5ba9af=>_0x5ba9af['containsRange'](_0x3333ac,!0x0))))return _0x78074a;}(!_0x78074a['attributes']||!_0x78074a['attributes']['skipNestingCheck'])&&(_0x82761d['every'](_0xd50fc7=>_0x468d8d['some'](_0x54b13f=>_0x54b13f['containsRange'](_0xd50fc7,!0x0)))&&_0x78074a['discard']());}const _0x39377f=_0x34bf97(),_0x4fa9c1=_0x4a375f['id'],_0x2d131d='deletion:'+_0x2e1b4c,_0xd0fcbf=this['_setSuggestionData']({'id':_0x39377f,'type':_0x2d131d,'createdAt':new Date(),'authorId':_0x4fa9c1,'attributes':_0x1aef00});for(const _0x23a150 of _0x468d8d)_0x23a150['detach'](),_0x23a150['isCollapsed']||'$graveyard'==_0x23a150['root']['rootName']||this['_addSuggestionMarker'](_0x2d131d,_0x39377f,_0x4fa9c1,_0x23a150,o['getMultiRangeId']());return _0xd0fcbf;}['markAttributeChange'](_0x3ef1c4,_0x377cb7,_0x468ef0,_0x1ab694,_0x10933d){if(_0x3ef1c4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1a654a=this['editor']['plugins']['get']('Users')['me']['id'],_0x3f5037=Array['from'](this['_suggestions']['values']())['filter'](_0xcf374a=>'attribute'==_0xcf374a['type']&&_0xcf374a['data']['key']==_0x377cb7&&_0xcf374a['isIntersectingWithRange'](_0x3ef1c4));if(this['_trackingSessionId']&&(_0x10933d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x209564=this['_findSuggestions'](_0x3ef1c4,'insertion')['filter'](({meta:_0x5a90d6})=>_0x5a90d6['isOwn']&&!_0x5a90d6['isInsideObject']&&!_0x5a90d6['isNextTo'])['map'](({suggestion:_0x3e814c})=>_0x3e814c);_0x3f5037['unshift'](..._0x209564);}const _0x2178a1=new Map([[_0x3ef1c4,_0x468ef0]]);for(const _0x3819e0 of _0x3f5037){const _0x428dc6='attribute'==_0x3819e0['type']?_0x3819e0['data']['oldValue']:void 0x0,_0xb2bf8c=_0x3819e0['getFirstRange'](),_0x4a13dc=Array['from'](_0x2178a1['keys']())['find'](_0x5728dc=>_0x5728dc['isIntersecting'](_0xb2bf8c));if(!_0x4a13dc)continue;const _0x249ee7=_0x4a13dc['getDifference'](_0xb2bf8c);this['_isBlockAttribute'](_0x377cb7)&&'insertion'==_0x3819e0['type']&&0x0!=_0x249ee7['length']||(_0x2178a1['delete'](_0x4a13dc),_0x249ee7['forEach'](_0x393fff=>{_0x2178a1['set'](_0x393fff,_0x468ef0);}),'insertion'!=_0x3819e0['type']&&_0x428dc6!=_0x1ab694&&_0x2178a1['set'](_0x4a13dc['getIntersection'](_0xb2bf8c),_0x428dc6));}const _0x36864a=[];for(const [_0x4efaa9,_0x32e0b5]of _0x2178a1){const _0x54288e=_0x34bf97(),_0x4958b6={'key':_0x377cb7,'oldValue':_0x32e0b5,'newValue':_0x1ab694};_0x377cb7['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':_0x377cb7});const _0x56ef3f=('attribute:'+(_0x377cb7+'|'+Kt({'newValue':_0x1ab694})))['substring'](0x0,0x3c),_0x19e456=this['_setSuggestionData']({'id':_0x54288e,'type':_0x56ef3f,'data':_0x4958b6,'createdAt':new Date(),'authorId':_0x1a654a,'attributes':_0x10933d});_0x36864a['push'](_0x19e456),this['_addSuggestionMarker'](_0x56ef3f,_0x54288e,_0x1a654a,_0x4efaa9);}return _0x36864a;}['enableDefaultAttributesIntegration'](_0x1e6179){this['enableCommand'](_0x1e6179,(_0x160f6f,..._0x38d173)=>{this['_recordAttributeChanges'](()=>{_0x160f6f(..._0x38d173);});});}['registerBlockAttribute'](_0x425161){this['_blockAttributeKeys']['add'](_0x425161);}['registerInlineAttribute'](_0x409389){this['_inlineAttributeKeys']['add'](_0x409389);}['startTrackingSession'](_0x4bb0e6){return this['_trackingSessionId']=void 0x0!==_0x4bb0e6?_0x4bb0e6:_0x34bf97(),this['_trackingSessionId'];}['_getAttributeKey'](_0x5db478){return'attribute'==_0x5db478['type']?_0x5db478['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3f2dd1,_0x3757c7){const _0x30210d=_0x3f2dd1['getFirstMarker']();this['_model']['change'](_0x58fc40=>{_0x58fc40['updateMarker'](_0x30210d,{'range':_0x3757c7});});}['_addThreadToSuggestion'](_0x662e70){const _0x45bb71=_0x662e70['id'],_0x3ee514=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45bb71)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ee514,'threadId':_0x45bb71,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1cb3e9=this['_commentsRepository']['getCommentThread'](_0x45bb71);_0x1cb3e9['unbind']('isRemovable'),_0x1cb3e9['isRemovable']=!0x1,_0x662e70['commentThread']=_0x1cb3e9;}['_checkSuggestionCorrectness'](_0x14ee41,_0x522a33,_0x1e77e0,_0x3de306){if(_0x14ee41['type']!=_0x522a33||_0x14ee41['subType']!=_0x1e77e0||_0x14ee41['creator']['id']!=_0x3de306)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5121be('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x453896,_0x16fef6){const _0x758989=_0x453896['getFirstRange']();if(_0x16fef6['isEqual'](_0x758989))_0x453896['removeMarkers']();else{if(_0x758989['containsRange'](_0x16fef6)){const _0x2b71f2=this['_model']['createPositionAt'](_0x16fef6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x453896,this['_model']['createRange'](_0x758989['start'],_0x2b71f2));const _0x414491=_0x34bf97(),_0x3514b5=_0x453896['creator']['id'],_0x29ec3f=_0x453896['type']+':'+_0x453896['subType'];this['_setSuggestionData']({'id':_0x414491,'type':_0x29ec3f,'createdAt':new Date(),'authorId':_0x3514b5,'data':_0x453896['data'],'attributes':_0x453896['attributes']});const _0x3a1e1a=this['_model']['createPositionAt'](_0x16fef6['end']['parent'],'after'),_0x2d6ff1=this['_model']['createRange'](_0x3a1e1a,_0x758989['end']);this['_addSuggestionMarker'](_0x29ec3f,_0x414491,_0x3514b5,_0x2d6ff1);}else{if(_0x758989['containsPosition'](_0x16fef6['start'])){const _0x29bc57=this['_model']['createPositionAt'](_0x16fef6['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x453896,this['_model']['createRange'](_0x758989['start'],_0x29bc57));}else{const _0x4cb013=this['_model']['createPositionAt'](_0x16fef6['end']['parent'],'after');this['_setSuggestionRange'](_0x453896,this['_model']['createRange'](_0x4cb013,_0x758989['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x49be78){for(const {suggestion:_0x326fe6,meta:_0x259a31}of this['_findSuggestions'](_0x49be78,'insertion')){if(!_0x259a31['isOwn'])continue;const _0x48139b=_0x326fe6['getRanges']();for(const _0x125545 of _0x48139b)if(!_0x49be78['getDifference'](_0x125545)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x43ec95){const _0x2e4b39=this['editor']['plugins']['get']('Users')['getUser'](_0x43ec95);if(!_0x2e4b39)throw new _0x5121be('track-changes-user-not-found',this);return _0x2e4b39;}['_getExternalAuthor'](_0x43df16){const _0x5bf67e=this['editor']['plugins']['get']('Users'),_0x750a0e=_0x3d6420('external:'+_0x43df16),_0x5c99fe=_0x5bf67e['getUser'](_0x750a0e);return _0x5c99fe||_0x5bf67e['addUser']({'id':_0x750a0e,'name':_0x43df16});}['_createSuggestion'](_0x450a7f,_0x611303,_0x2b4a89,_0x1124f9,_0x58c504,_0x2e49fd){const _0x5605f0=this['_getAuthorFromId'](_0x1124f9),_0x558cb3=this['_suggestionFactory']['buildSuggestion'](_0x450a7f,_0x611303,_0x2b4a89,_0x5605f0,_0x58c504,_0x895351=>{this['_updateSuggestionData'](_0x2b4a89,{'attributes':_0x895351});const _0x4256bc=this['getSuggestion'](_0x2b4a89);this['_joinWithAdjacentSuggestions'](new Set([_0x4256bc])),this['_refreshSuggestionsChain'](new Set([_0x4256bc]));},_0x2e49fd);return this['listenTo'](_0x558cb3,'accept',()=>{this['_updateSuggestionData'](_0x2b4a89,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x558cb3,'discard',()=>{this['_updateSuggestionData'](_0x2b4a89,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2b4a89,_0x558cb3),this['_suggestionState']['set'](_0x558cb3,'notReady'),_0x558cb3;}['_splitMarkerName'](_0x5dd224){const _0x3ae09d=_0x5dd224['split'](':');return{'group':_0x3ae09d[0x0],'type':_0x3ae09d[0x1],'subType':_0x3ae09d['length']>=0x5?_0x3ae09d[0x2]:null,'id':_0x3ae09d['length']<0x5?_0x3ae09d[0x2]:_0x3ae09d[0x3],'authorId':_0x3ae09d['length']<0x5?_0x3ae09d[0x3]:_0x3ae09d[0x4],'markerCount':0x6==_0x3ae09d['length']?_0x3ae09d[0x5]:null};}['_breakSuggestionMarker'](_0x20563f,_0x3bfd06,_0x384350){const _0x458550=_0x20563f['getFirstRange'](),_0x4d0f65=_0x458550['start'],_0x9f2709=_0x458550['end'];this['_setSuggestionRange'](_0x20563f,this['_model']['createRange'](_0x4d0f65,_0x3bfd06));const _0x4228af=_0x34bf97(),_0xab3a87=_0x20563f['creator']['id'],_0x3012c6=_0x20563f['type']+(_0x20563f['subType']?':'+_0x20563f['subType']:'');this['_setSuggestionData']({'id':_0x4228af,'type':_0x3012c6,'createdAt':new Date(),'authorId':_0xab3a87,'originalSuggestionId':_0x20563f['_originalSuggestionId']||_0x20563f['id'],'attributes':_0x20563f['attributes'],'data':_0x20563f['data']});const _0x23242b=this['_getAttributeKey'](_0x20563f);('formatBlock'==_0x20563f['type']||_0x23242b&&this['_isBlockAttribute'](_0x23242b))&&(_0x384350=this['_model']['createPositionBefore'](_0x384350['parent'])),this['_addSuggestionMarker'](_0x3012c6,_0x4228af,_0xab3a87,this['_model']['createRange'](_0x384350,_0x9f2709));}['_findSuggestions'](_0xb6cdda,_0x454941=null){const _0x369136=[],_0x17d87f=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xb6cdda)||(_0xb6cdda=[_0xb6cdda]);for(const _0x479964 of this['getSuggestions']()){if(!_0x479964['isInContent'])continue;if(_0x454941&&_0x479964['type']!=_0x454941)continue;let _0x338ea9=!0x1;for(const _0x45b661 of _0x479964['getRanges']()){for(const _0x4904b5 of _0xb6cdda){const _0x4888e7=_0x4904b5['start']['isEqual'](_0x45b661['end'])||_0x4904b5['end']['isEqual'](_0x45b661['start']);if(_0x4888e7||_0x4904b5['getIntersection'](_0x45b661)){const _0x1cac4a=_0x4904b5['containsRange'](_0x45b661)&&Gt(this['_model']['schema'],_0x45b661['start'],_0x4904b5),_0x3f96ad=_0x45b661['containsRange'](_0x4904b5)&&Gt(this['_model']['schema'],_0x4904b5['start'],_0x45b661);_0x369136['push']({'suggestion':_0x479964,'meta':{'isOwn':_0x17d87f==_0x479964['author'],'isNextTo':_0x4888e7,'isInsideObject':_0x1cac4a,'containsRangeInObject':_0x3f96ad}}),_0x338ea9=!0x0;break;}}if(_0x338ea9)break;}}return _0x369136;}['_addSuggestionMarker'](_0x1a030a,_0x595300,_0x7a658a,_0x47a24a,_0x4d0356){this['_model']['change'](_0x18d9e6=>{let _0x5916ef='suggestion:'+_0x1a030a+':'+_0x595300+':'+_0x7a658a;_0x4d0356&&(_0x5916ef=_0x5916ef+':'+_0x4d0356),_0x18d9e6['addMarker'](_0x5916ef,{'range':_0x47a24a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x26e1de){const _0x40186b=_0x26e1de['previous'],_0xbbd43d=_0x26e1de['next'];_0x26e1de['previous']=null,_0x26e1de['next']=null,null!=_0x40186b&&_0x40186b['next']==_0x26e1de&&(_0x40186b['next']=_0xbbd43d),null!=_0xbbd43d&&_0xbbd43d['previous']==_0x26e1de&&(_0xbbd43d['previous']=_0x40186b),'ready'==this['_suggestionState']['get'](_0x26e1de)&&(this['_suggestionState']['set'](_0x26e1de,'removed'),this['fire']('suggestionUnloaded',_0x26e1de,_0x40186b,_0xbbd43d));}['_setSuggestionData'](_0x57784d){const _0x27169e=_0x57784d['id'],_0x5db28a=this['addSuggestionData'](_0x57784d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2afad6=this['editor']['plugins']['get']('PendingActions'),_0x2532cb=_0x5db28a['hasComments'],_0x37745c=_0x5db28a['subType']?_0x5db28a['type']+':'+_0x5db28a['subType']:_0x5db28a['type'],_0x3139b1=this['editor']['locale'],_0x5af4d9=_0x2afad6['add'](c(_0x3139b1,'PENDING_ACTION_SUGGESTION')),_0x5d3dfb={'id':_0x27169e,'type':_0x37745c,'hasComments':_0x2532cb,'data':_0x57784d['data']||null,'originalSuggestionId':_0x57784d['originalSuggestionId']||null,'attributes':_0x5db28a['attributes']};this['_adapter']['addSuggestion'](_0x5d3dfb)['then'](_0x5e95e9=>{_0x5db28a['_saved']=!0x0,_0x2afad6['remove'](_0x5af4d9),_0x5e95e9&&_0x5e95e9['createdAt']&&(this['_suggestions']['get'](_0x27169e)['createdAt']=_0x5e95e9['createdAt']);})['catch'](_0x18a501=>{throw _0x507090('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5db28a['discard']();}),_0x5db28a['stopListening'](),this['_suggestions']['delete'](_0x5db28a['id']),this['_suggestionState']['delete'](_0x5db28a),_0x18a501;});}return _0x5db28a;}['_isBlockAttribute'](_0x268b38){return this['_blockAttributeKeys']['has'](_0x268b38);}['_updateSuggestionData'](_0x28df84,_0xe3287c){const _0x26b052=this['editor']['plugins']['get']('PendingActions'),_0x30080f=this['getSuggestion'](_0x28df84);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x30080f['_saved']){const _0x59f92c=_0x26b052['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x28df84,_0xe3287c)['then'](()=>{_0x26b052['remove'](_0x59f92c);});}else _0x30080f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x28df84,_0xe3287c);});}}['_getSuggestionData'](_0x5f059c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5121be('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5f059c);}['_handleNewSuggestionMarker'](_0x270804){const {id:_0x485b9e,type:_0x197151,subType:_0x3a69b3,authorId:_0x3a3eae}=this['_splitMarkerName'](_0x270804),_0x58f11=this['_suggestions']['get'](_0x485b9e)||this['_createSuggestion'](_0x197151,_0x3a69b3,_0x485b9e,_0x3a3eae,{});switch(this['_checkSuggestionCorrectness'](_0x58f11,_0x197151,_0x3a69b3,_0x3a3eae),this['_suggestionState']['get'](_0x58f11)){case'notReady':this['_getSuggestionData'](_0x485b9e)['then'](_0x4f62eb=>{let _0x4526b0=Promise['resolve']();_0x4f62eb['hasComments']&&(_0x4526b0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x485b9e})),_0x4526b0['then'](()=>{this['addSuggestionData'](_0x4f62eb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x58f11,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x485b9e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x58f11,'ready'),this['fire']('suggestionLoaded',_0x58f11);break;case'ready':this['fire']('suggestionChanged',_0x58f11);}return _0x58f11['addMarkerName'](_0x270804),_0x58f11;}['_refreshSuggestionsChain'](_0x26e329){const _0x2b80d9=Array['from'](_0x26e329),_0x30e70f=_0x2b80d9['filter'](_0x266421=>'attribute'==_0x266421['type']);this['_refreshAttributeSuggestionsChain'](_0x30e70f);const _0x68b10d=_0x2b80d9['filter'](_0x4dce36=>!_0x4dce36['isMultiRange']&&'attribute'!=_0x4dce36['type']),_0x2cc441=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x259444=>!_0x259444['isMultiRange']&&'attribute'!=_0x259444['type']),_0x3b6c9d=_0x2cc441['filter'](_0x225e5e=>!_0x26e329['has'](_0x225e5e)),_0x359204=new Map(_0x2cc441['map'](_0x2a5bda=>[_0x2a5bda,this['_suggestionFactory']['getSuggestionCallback'](_0x2a5bda['type'],_0x2a5bda['subType'],'chain')])),_0x13bc2c=new Map(_0x2cc441['map'](_0x422ee1=>[_0x422ee1,_0x422ee1['getFirstRange']()])),_0x3d2e5d=new Set(),_0x7789ee=new Set();for(let _0x5a263d=0x0;_0x5a263d<_0x68b10d['length'];_0x5a263d++)_0x4b6cb6(_0x68b10d[_0x5a263d],_0x68b10d,_0x5a263d+0x1);for(let _0x4f95e7=0x0;_0x4f95e7<_0x68b10d['length'];_0x4f95e7++)_0x4b6cb6(_0x68b10d[_0x4f95e7],_0x3b6c9d,0x0);const _0x308af5=new Set();for(let _0x4a4177=0x0;_0x4a4177<_0x68b10d['length'];_0x4a4177++){const _0x3f45a1=_0x68b10d[_0x4a4177];!_0x7789ee['has'](_0x3f45a1)&&_0x3f45a1['previous']&&(_0x308af5['add'](_0x3f45a1['previous']),_0x3f45a1['previous']['next']===_0x3f45a1&&(_0x3f45a1['previous']['next']=null),_0x3f45a1['previous']=null),!_0x3d2e5d['has'](_0x3f45a1)&&_0x3f45a1['next']&&(_0x308af5['add'](_0x3f45a1['next']),_0x3f45a1['next']['previous']===_0x3f45a1&&(_0x3f45a1['next']['previous']=null),_0x3f45a1['next']=null);}function _0x4b6cb6(_0x56a433,_0x3718d8,_0x55aafd){for(let _0x3fc5b1=_0x55aafd;_0x3fc5b1<_0x3718d8['length'];_0x3fc5b1++){const _0x26337=_0x1b4c43(_0x56a433,_0x3718d8[_0x3fc5b1]);_0x26337&&(_0x26337[0x0]['next']=_0x26337[0x1],_0x26337[0x1]['previous']=_0x26337[0x0],_0x3d2e5d['add'](_0x26337[0x0]),_0x7789ee['add'](_0x26337[0x1]));}}function _0x1b4c43(_0x2ecec9,_0x52a274){if(_0x2ecec9['author']['id']!==_0x52a274['author']['id'])return null;const _0x491c0c=_0x359204['get'](_0x2ecec9)(_0x2ecec9,_0x52a274,_0x13bc2c['get'](_0x2ecec9),_0x13bc2c['get'](_0x52a274));if(!_0x491c0c)return null;return _0x359204['get'](_0x52a274)(_0x2ecec9,_0x52a274,_0x13bc2c['get'](_0x2ecec9),_0x13bc2c['get'](_0x52a274))?_0x491c0c[0x1]['commentThread']&&_0x491c0c[0x1]['commentThread']['length']?null:_0x491c0c:null;}_0x308af5['size']&&this['_refreshSuggestionsChain'](_0x308af5);}['_refreshAttributeSuggestionsChain'](_0x5458ac){if(0x0==_0x5458ac['length'])return;const _0x25d7c0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f5b8c=>'attribute'==_0x4f5b8c['type']&&_0x4f5b8c['_isDataLoaded']),_0x81bece=[],_0x31ae63=new Map();for(const _0x13aae6 of _0x25d7c0){const _0x290ad7=_0x3d6420(_0x13aae6['attributes']);_0x31ae63['has'](_0x290ad7)||(_0x31ae63['set'](_0x290ad7,_0x81bece['length']),_0x81bece['push']([]));const _0xaf1187=_0x31ae63['get'](_0x290ad7);_0x81bece[_0xaf1187]['push'](_0x13aae6);}!(function(){_0x81bece['sort']((_0x5c6631,_0x2ed03e)=>{const _0x56ebd8=_0x5c6631[0x0]['createdAt'],_0x337c3b=_0x2ed03e[0x0]['createdAt'];return _0x56ebd8==_0x337c3b?_0x5c6631[0x0]['attributes']['groupId']<_0x2ed03e[0x0]['attributes']['groupId']?-0x1:0x1:_0x56ebd8<_0x337c3b?-0x1:0x1;});for(const _0x23a600 of _0x81bece)_0x23a600['sort']((_0x30fdf1,_0xf831f8)=>_0x30fdf1['id']<_0xf831f8['id']?-0x1:0x1);}());for(let _0x6c1cce=0x0;_0x6c1cce<_0x81bece['length'];_0x6c1cce++){if(0x0==_0x81bece[_0x6c1cce]['length'])continue;const _0x3527c9=[];for(let _0x16322c=_0x6c1cce+0x1;_0x16322c<_0x81bece['length'];_0x16322c++)0x0!=_0x81bece[_0x16322c]['length']&&_0x6d48bd(_0x81bece[_0x6c1cce],_0x81bece[_0x16322c])&&_0x3527c9['push'](_0x16322c);for(const _0x565fd3 of _0x3527c9)_0x81bece[_0x6c1cce]=_0x81bece[_0x6c1cce]['concat'](_0x81bece[_0x565fd3]),_0x81bece[_0x565fd3]=[];}for(const _0x2ce6e8 of _0x81bece)for(let _0xd4663a=0x0;_0xd4663a<_0x2ce6e8['length'];_0xd4663a++){const _0x5eef03=_0x2ce6e8[_0xd4663a+0x1]||null;_0x2ce6e8[_0xd4663a]['next']!==_0x5eef03&&(_0x2ce6e8[_0xd4663a]['next']=_0x5eef03);}for(const _0x4c623e of _0x81bece)for(let _0x10fc71=0x0;_0x10fc71<_0x4c623e['length'];_0x10fc71++){const _0x1d5038=_0x4c623e[_0x10fc71-0x1]||null;_0x4c623e[_0x10fc71]['previous']!==_0x1d5038&&(_0x4c623e[_0x10fc71]['previous']=_0x1d5038);}function _0x6d48bd(_0x3a58a6,_0xa7e8ec){if(_0x3a58a6[0x0]['attributes']['groupId']!==_0xa7e8ec[0x0]['attributes']['groupId']&&_0x3a58a6[0x0]['author']!==_0xa7e8ec[0x0]['author'])return!0x1;if(!function(_0x325afe,_0x2b65ba){if(!_0x325afe['hasComments']&&!_0x2b65ba['hasComments'])return!0x0;if(_0x325afe['hasComments']&&_0x2b65ba['hasComments'])return!0x1;if(_0x325afe['hasComments']&&_0x2b65ba['createdAt']<_0x325afe['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2b65ba['hasComments']&&_0x325afe['createdAt']<_0x2b65ba['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3a58a6[0x0],_0xa7e8ec[0x0]))return!0x1;const _0x26d622=Ft(_0x3a58a6[0x0]['attributes'],['groupId','trackingSessionId']),_0x2fc017=Ft(_0xa7e8ec[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x439f28(_0x26d622,_0x2fc017))return!0x1;if(_0x3a58a6[0x0]['attributes']['groupId']==_0xa7e8ec[0x0]['attributes']['groupId'])return!0x0;if(_0x3a58a6[0x0]['attributes']['trackingSessionId']!==_0xa7e8ec[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3a58a6['every'](_0x2d7295=>_0xa7e8ec['some'](_0x18df17=>_0x2d7295['getFirstRange']()['isEqual'](_0x18df17['getFirstRange']())))&&_0xa7e8ec['every'](_0xb1ba10=>_0x3a58a6['some'](_0x1c5219=>_0xb1ba10['getFirstRange']()['isEqual'](_0x1c5219['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x56e501){const _0xcf8ae2=Array['from'](_0x56e501),_0x442c63=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2cba64=_0x442c63['filter'](_0x9b7982=>!_0x56e501['has'](_0x9b7982)),_0x4475cc=new Map(_0xcf8ae2['map'](_0x114a19=>[_0x114a19,this['_suggestionFactory']['getSuggestionCallback'](_0x114a19['type'],_0x114a19['subType'],'join')])),_0x4a8b99=new Map(_0x442c63['map'](_0x370b6d=>[_0x370b6d,_0x370b6d['getRanges']()]));for(let _0x3c145c=0x0;_0x3c145c<_0xcf8ae2['length'];_0x3c145c++){if(_0x589678(this,_0xcf8ae2[_0x3c145c],_0xcf8ae2,_0x3c145c+0x1))return!0x0;}for(let _0x237ecf=0x0;_0x237ecf<_0xcf8ae2['length'];_0x237ecf++){if(_0x589678(this,_0xcf8ae2[_0x237ecf],_0x2cba64,0x0))return!0x0;}return!0x1;function _0x589678(_0x4c4dba,_0x2ad8a7,_0x36fef0,_0x3bae41){for(let _0x184638=_0x3bae41;_0x184638<_0x36fef0['length'];_0x184638++){const _0x27d205=_0x36fef0[_0x184638];if(_0x27d205['type']!==_0x2ad8a7['type']||_0x27d205['author']['id']!==_0x2ad8a7['author']['id']||_0x27d205['subType']!==_0x2ad8a7['subType'])continue;if(!Qt(_0x2ad8a7,_0x27d205))continue;if('attribute'==_0x2ad8a7['type']&&_0x2ad8a7['data']['oldValue']!=_0x27d205['data']['oldValue'])continue;if('attribute'==_0x2ad8a7['type']&&_0x4c4dba['_isBlockAttribute'](_0x2ad8a7['data']['key']))continue;if('formatBlock'==_0x2ad8a7['type']){const _0x4294b7=_0x4c4dba['editor']['model'],_0x41dafc=_0x2ad8a7['getContainedElement']();if(_0x41dafc&&(_0x4294b7['schema']['isObject'](_0x41dafc)||_0x4294b7['schema']['isLimit'](_0x41dafc)))continue;}const _0x121615=_0x4475cc['get'](_0x2ad8a7),_0x4c02dd=_0x4a8b99['get'](_0x2ad8a7),_0x266cf0=_0x4a8b99['get'](_0x27d205),_0xcc8651=_0x2ad8a7['commentThread']&&_0x2ad8a7['commentThread']['length'],_0x52817a=_0x27d205['commentThread']&&_0x27d205['commentThread']['length'];if(!_0xcc8651&&_0x121615(_0x266cf0,_0x4c02dd))return _0x4c4dba['_joinSuggestions'](_0x27d205,_0x2ad8a7),_0x4a8b99['delete'](_0x2ad8a7),!0x0;if(!_0x52817a&&_0x121615(_0x4c02dd,_0x266cf0))return _0x4c4dba['_joinSuggestions'](_0x2ad8a7,_0x27d205),_0x4a8b99['delete'](_0x27d205),!0x0;}return!0x1;}}['_joinSuggestions'](_0x32bdb0,_0x2da905){if(_0x32bdb0['isMultiRange']){for(const _0x5ce288 of _0x2da905['getRanges']())_0x32bdb0['addRange'](_0x5ce288);}else{const _0x121775=_0x2da905['getFirstRange']()['end'];this['_setSuggestionRange'](_0x32bdb0,this['_model']['createRange'](_0x32bdb0['getFirstRange']()['start'],_0x121775));}_0x2da905['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3f083f,_0x2e90ee,_0x30e796){const _0x29a63d=_0x3f083f['startsWith']('format')||_0x3f083f['startsWith']('attribute')?'FORMATTING':_0x3f083f['toUpperCase']();return c(this['editor']['locale'],_0x2e90ee+'_'+_0x29a63d+'_SUGGESTION_ANNOUNCEMENT',_0x30e796);}['_initAriaMarkerChangeAnnouncements'](){const _0x36e318=this['editor'];if(!_0x36e318['ui'])return;const {ariaLiveAnnouncer:_0x1d2ac4}=_0x36e318['ui'];_0x252763(this['_model'],({left:_0x57e22f,entered:_0x69b6a9})=>{for(const _0x1d9857 of _0x57e22f){const {group:_0x194420,type:_0x11facc}=this['_splitMarkerName'](_0x1d9857['name']);if('suggestion'===_0x194420){_0x1d2ac4['announce'](this['_getMarkerAnnouncementText'](_0x11facc,'LEAVE'));break;}}for(const _0x5783e5 of _0x69b6a9){const {group:_0x308475,type:_0x53d892}=this['_splitMarkerName'](_0x5783e5['name']);if('suggestion'===_0x308475){_0x1d2ac4['announce'](this['_getMarkerAnnouncementText'](_0x53d892,'ENTER',_0x1b231d(_0x2cee65)));break;}}});}['_processAttributeChanges'](_0x2f9e0c){if(this['_recordAttributeSuggestions'])return!0x1;const _0x347b01=this['editor'],_0x78302c=_0x347b01['model']['document']['differ']['getChanges']();if(0x0==_0x78302c['length'])return!0x1;const _0x5d4de4=[],_0x4ec0f9=_0x78302c['filter'](_0x4d211a=>'attribute'==_0x4d211a['type']),_0x5c1303=_0x78302c['filter'](_0x36d8b9=>'insert'==_0x36d8b9['type']&&'$text'!=_0x36d8b9['name']),_0x105a75=_0x78302c['filter'](_0x5429b8=>'remove'==_0x5429b8['type']&&'$text'!=_0x5429b8['name']);for(const _0x17d3c3 of _0x4ec0f9)_0x5d4de4['push']({'key':_0x17d3c3['attributeKey'],'newValue':_0x17d3c3['attributeNewValue'],'oldValue':_0x17d3c3['attributeOldValue'],'range':qt(_0x17d3c3['range'],_0x347b01['model'])});for(const _0x5d63f1 of _0x5c1303){const _0x4ea7a6=_0x105a75['find'](_0x40f903=>_0x40f903['position']['isEqual'](_0x5d63f1['position']));_0x4ea7a6&&_0x5d4de4['push']({'key':u,'newValue':_0x5d63f1['name'],'oldValue':_0x4ea7a6['name'],'range':_0x347b01['model']['createRangeOn'](_0x5d63f1['position']['nodeAfter'])});}return 0x0!=_0x5d4de4['length']&&this['_reduceExistingSuggestions'](_0x2f9e0c,_0x5d4de4);}['_processAttributeSuggestions'](_0x2829a7){let _0x36b7f3=!0x1;const _0x39b3e5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x10d718=>_0x10d718['data']['newRange']&&_0x10d718['name']['startsWith']('suggestion:attribute:'));for(const _0x1527d of _0x39b3e5){const {subType:_0x211f85,id:_0xcb83ac}=this['_splitMarkerName'](_0x1527d['name']),_0x4bcbe2=_0x211f85['split']('|')[0x0];for(const _0x2d35df of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2d35df['id']!=_0xcb83ac&&'attribute'==_0x2d35df['type']&&_0x2d35df['data']&&_0x2d35df['data']['key']==_0x4bcbe2&&_0x2d35df['getFirstRange']()['isIntersecting'](_0x1527d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2d35df,_0x1527d['data']['newRange'],_0x2829a7),_0x36b7f3=!0x0);}return _0x36b7f3;}['_recordAttributeChanges'](_0x263f25){this['_recordAttributeSuggestions']=!0x0,_0x263f25();}['_isRegisteredAttribute'](_0x376d6a){const _0x4daeaa=this['_isBlockAttribute'](_0x376d6a),_0xe2a460=this['_inlineAttributeKeys']['has'](_0x376d6a);return _0x4daeaa||_0xe2a460;}['_reduceExistingSuggestions'](_0x53e238,_0x22cfc3){if(0x0==_0x22cfc3['length'])return!0x1;let _0x3c688d=!0x1;for(const _0x469ecd of _0x22cfc3){const _0x190ac9=this['_findSuggestions'](_0x469ecd['range'],'attribute')['filter'](_0xc82aac=>!_0xc82aac['meta']['isNextTo'])['map'](_0x55e2e9=>_0x55e2e9['suggestion']),_0x2b4031=_0x3d6420({'newValue':_0x469ecd['newValue']});_0x190ac9['filter'](_0x4b2839=>{const [_0x110903,_0x13a376]=_0x4b2839['subType']['split']('|');return _0x110903==_0x469ecd['key']&&_0x13a376!=_0x2b4031;})['forEach'](_0x53ca48=>{this['_reduceSuggestionAttributeRange'](_0x53ca48,_0x469ecd['range'],_0x53e238),_0x3c688d=!0x0;});}return _0x3c688d;}['_reduceSuggestionAttributeRange'](_0x24f150,_0xf014d4,_0x25b2b2){const _0x37b9cf=_0x24f150['getFirstRange']()['getDifference'](_0xf014d4);0x0!==_0x37b9cf['length']?0x1!==_0x37b9cf['length']?this['_breakSuggestionMarker'](_0x24f150,_0xf014d4['start'],_0xf014d4['end']):this['_setSuggestionRange'](_0x24f150,_0x37b9cf[0x0]):_0x25b2b2['removeMarker'](_0x24f150['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa283d9){this['_editor']=_0xa283d9,this['_model']=_0xa283d9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x179f48,_0x4d587f,_0x47fffc,_0x5b4675,_0x115547,_0x4c1db8,_0x51b82e){return new o(this['_model'],{'type':_0x179f48,'subType':_0x4d587f,'id':_0x47fffc,'originalSuggestionId':_0x51b82e,'author':_0x5b4675,'creator':_0x5b4675,'attributes':_0x115547,'onAttributesChange':_0x4c1db8,'onAccept':(..._0x299147)=>this['getSuggestionCallback'](_0x179f48,_0x4d587f,'accept')(..._0x299147),'onDiscard':(..._0x1dfbe7)=>this['getSuggestionCallback'](_0x179f48,_0x4d587f,'discard')(..._0x1dfbe7)});}['registerCustomCallback'](_0x85025d,_0x8e81d0,_0x128989,_0x2c525a){const _0x583014=_0x85025d+':'+_0x8e81d0+':'+_0x128989;this['_customCallbacks']['set'](_0x583014,_0x2c525a);}['getSuggestionCallback'](_0x9acd4e,_0x173af6,_0x226816){const _0x5e1695=_0x9acd4e+':'+_0x173af6+':'+_0x226816;return this['_customCallbacks']['get'](_0x5e1695)||this['_defaultCallbacks']['get'](_0x9acd4e+':'+_0x226816);}['_registerDefaultCallbacks'](){const _0x381158=()=>!0x1,_0x5b076c=_0x2faec5=>{_0x2faec5['sort']((_0x358910,_0xdac151)=>_0x358910['start']['isBefore'](_0xdac151['start'])?0x1:-0x1),this['_model']['change'](_0xd9c6ca=>{for(const _0x128479 of _0x2faec5){let _0x5829b2;_0x5829b2=_0x128479['end']['isAtEnd']&&_0x128479['end']['parent']==_0x128479['start']['nodeAfter']?_0xd9c6ca['createSelection'](_0x128479['start']['nodeAfter'],'on'):_0xd9c6ca['createSelection'](_0x128479),this['_model']['deleteContent'](_0x5829b2,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x531f0e=(_0x179baa,_0x361357)=>{_0x361357&&this['_model']['change'](_0x54a5e3=>{const {commandName:_0xf18b92,commandParams:_0x5e52ea=[]}=_0x361357,_0x5db3cb=_0x179baa['map'](_0x5565c8=>(Lt(_0x5565c8)&&(_0x5565c8=this['_model']['createRange'](_0x5565c8['end'])),_0x5565c8))['filter'](_0x297db2=>'$graveyard'!==_0x297db2['root']['rootName']);if(_0x5db3cb['length']<0x1)return;const _0x370e15=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x51f973=>_0x275766['fromRange'](_0x51f973));_0x54a5e3['setSelection'](_0x5db3cb);for(const _0x2c8ec6 of this['_editor']['commands']['commands']())_0x2c8ec6['refresh']();_0x5e52ea['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xf18b92,..._0x5e52ea);const _0x5d2ba5=_0x370e15['filter'](_0x2ae1a0=>'$graveyard'!=_0x2ae1a0['root']['rootName']);_0x5d2ba5['length']>0x0&&_0x54a5e3['setSelection'](_0x5d2ba5);for(const _0x2bfe43 of _0x370e15)_0x2bfe43['detach']();});},_0x478542=(_0x5e6484,_0xb30d63)=>0x1==_0x5e6484['length']&&0x1==_0xb30d63['length']&&_0x5e6484[0x0]['end']['isEqual'](_0xb30d63[0x0]['start']),_0x1033a1=(_0x54a31d,_0x11c24c,_0x47e988,_0x2f651d)=>Wt(_0x54a31d,_0x11c24c,_0x47e988,_0x2f651d)?[_0x54a31d,_0x11c24c]:Wt(_0x11c24c,_0x54a31d,_0x2f651d,_0x47e988)?[_0x11c24c,_0x54a31d]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x381158),this['_defaultCallbacks']['set']('insertion:discard',_0x5b076c),this['_defaultCallbacks']['set']('insertion:join',_0x478542),this['_defaultCallbacks']['set']('insertion:chain',_0x1033a1),this['_defaultCallbacks']['set']('deletion:accept',_0x5b076c),this['_defaultCallbacks']['set']('deletion:discard',_0x381158),this['_defaultCallbacks']['set']('deletion:join',_0x478542),this['_defaultCallbacks']['set']('deletion:chain',_0x1033a1),this['_defaultCallbacks']['set']('formatInline:accept',_0x531f0e),this['_defaultCallbacks']['set']('formatInline:discard',_0x381158),this['_defaultCallbacks']['set']('formatInline:join',_0x478542),this['_defaultCallbacks']['set']('formatInline:chain',_0x381158),this['_defaultCallbacks']['set']('formatBlock:accept',_0x531f0e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x381158),this['_defaultCallbacks']['set']('formatBlock:join',_0x478542),this['_defaultCallbacks']['set']('formatBlock:chain',_0x381158),this['_defaultCallbacks']['set']('attribute:accept',_0x381158),this['_defaultCallbacks']['set']('attribute:discard',(_0xb3f2c,_0x3f9da7)=>{if(!_0x3f9da7)return;const _0x21bb0f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3008db=>{if(_0x3f9da7['key']==u)for(const _0x5b5a53 of _0xb3f2c){const _0x347cce=_0x5b5a53['start']['nodeAfter'],_0x46bc08=_0x3f9da7['oldValue'];_0x3008db['rename'](_0x347cce,_0x46bc08);}else{if(_0x21bb0f['_isBlockAttribute'](_0x3f9da7['key'])){for(const _0x5c3da6 of _0xb3f2c)void 0x0!==_0x3f9da7['oldValue']?_0x3008db['setAttribute'](_0x3f9da7['key'],_0x3f9da7['oldValue'],_0x5c3da6['start']['nodeAfter']):_0x3008db['removeAttribute'](_0x3f9da7['key'],_0x5c3da6['start']['nodeAfter']);}else{for(const _0x545f34 of _0xb3f2c)_0x3f9da7['oldValue']?_0x3008db['setAttribute'](_0x3f9da7['key'],_0x3f9da7['oldValue'],_0x545f34):_0x3008db['removeAttribute'](_0x3f9da7['key'],_0x545f34);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x478542);}}function Gt(_0x49eb7c,_0x27c004,_0x80895d){for(const _0x1c546e of _0x27c004['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1c546e['root']==_0x1c546e)return!0x1;if(!_0x80895d['containsItem'](_0x1c546e))return!0x1;if(_0x49eb7c['isObject'](_0x1c546e)||_0x49eb7c['isLimit'](_0x1c546e))return!0x0;}return!0x1;}function Lt(_0x4f530e){return _0x4f530e['end']['parent']==_0x4f530e['start']['nodeAfter']&&_0x4f530e['end']['isAtStart'];}function Jt(_0x37930a,_0x2e9465,_0x1ab0e8,_0x191f95){const _0x42e794=_0x5d3e3d=>!_0x5d3e3d['item']['is']('$textProxy')&&!_0x191f95['isObject'](_0x5d3e3d['item']),_0x441b49=_0x37930a['start']['getLastMatchingPosition'](_0x42e794),_0x530ca6=_0x37930a['end']['getLastMatchingPosition'](_0x42e794,{'direction':'backward'});return(!_0x37930a['start']['isEqual'](_0x441b49)||!_0x37930a['end']['isEqual'](_0x530ca6))&&(_0x441b49['isBefore'](_0x530ca6)?_0x1ab0e8['updateMarker'](_0x2e9465,{'range':_0x1ab0e8['createRange'](_0x441b49,_0x530ca6)}):_0x1ab0e8['removeMarker'](_0x2e9465),!0x0);}function Kt(_0x1d4fc6){return _0x3d6420(_0x1d4fc6);}function Ht(_0x3f5373){const _0x34f7a2=_0x3f5373['start']['nodeAfter'];return _0x34f7a2&&_0x34f7a2['is']('element');}function qt(_0x11e191,_0x1bf3c8){return null==_0x11e191['end']['nodeBefore']&&_0x11e191['end']['parent']==_0x11e191['start']['nodeAfter']?zt(_0x11e191['start']['nodeAfter'],_0x1bf3c8):_0x11e191;}function zt(_0x476680,_0x24dcf2){const _0x545eeb=_0x24dcf2['schema']['isObject'](_0x476680)||_0x24dcf2['schema']['isSelectable'](_0x476680);return _0x24dcf2['createRange'](_0x24dcf2['createPositionAt'](_0x476680,'before'),_0x545eeb?_0x24dcf2['createPositionAfter'](_0x476680):_0x24dcf2['createPositionAt'](_0x476680,'end'));}function Wt(_0x5c7a38,_0x323124,_0x3cae1c,_0x385035){return!!Qt(_0x5c7a38,_0x323124)&&_0x3cae1c['end']['isEqual'](_0x385035['start']);}function Qt(_0x34c9ac,_0xd86420){if(!_0x34c9ac['_isDataLoaded']||!_0xd86420['_isDataLoaded'])return!0x1;const _0x3a17ba=new Set(Object['keys'](_0x34c9ac['attributes'])),_0x4f3fae=new Set(Object['keys'](_0xd86420['attributes']));if(_0x3a17ba['delete']('groupId'),_0x4f3fae['delete']('groupId'),0x0==_0x3a17ba['size']&&0x0==_0x4f3fae['size'])return!0x0;if(_0x3a17ba['size']!=_0x4f3fae['size'])return!0x1;const _0x5ea1a4={..._0x34c9ac['attributes']},_0x4a109e={..._0xd86420['attributes']};return delete _0x5ea1a4['groupId'],delete _0x4a109e['groupId'],JSON['stringify'](_0x5ea1a4)==JSON['stringify'](_0x4a109e);}function Xt(_0x3dc565,_0x34dca8){const _0x1d5073=Yt(_0x3dc565['attributes']),_0x31188e=Yt(_0x34dca8);if(!_0x3dc565['_isDataLoaded'])return!0x1;for(const _0x5d7041 of Object['keys'](_0x31188e))if(!_0x439f28(_0x1d5073[_0x5d7041],_0x31188e[_0x5d7041]))return!0x1;return!0x0;}function Yt(_0x1b932b){const _0x131def=Object['assign']({},_0x1b932b);return delete _0x131def['skipNestingCheck'],delete _0x131def['tablePasteChainId'],_0x131def;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x21885c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x42d50c,_0xe825db,_0x265399,_0x58969a){super(),this['model']=_0xe825db,this['view']=_0x265399,this['commentThreadController']=_0x58969a,this['_editor']=_0x42d50c,this['_acceptCommand']=_0x42d50c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x42d50c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3bdfbf,_0x3ce183)=>_0x3bdfbf||_0x3ce183),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x895eda=>_0x895eda&&this['_editor']['model']['canEditAt'](_0xe825db['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d4961=>_0x5d4961&&this['_editor']['model']['canEditAt'](_0xe825db['getRanges']())),this['_pendingAction']=null,_0x265399['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x265399,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x265399,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x265399,'change:isDirty',()=>{_0x265399['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 _0x279c01=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x279c01);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x254aba{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4d6a40,_0x220759,_0x7d2932,_0x462310){super(_0x4d6a40),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x3fde59(_0x4d6a40,c(_0x4d6a40,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x220759['authoredAt']),this['bind']('authoredAt')['to'](_0x220759),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',_0x220759,'authoredAt',this,'descriptionParts',(_0x2446fd,_0x45b859,_0x2b8ea8)=>{const _0x538937=_0x2b8ea8['map'](_0x4aae13=>ls(_0x4aae13['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2446fd-0x1,_0x220759['author']['name'],_0x45b859?_0x462310['formatDateTime'](_0x45b859):'',new DOMParser()['parseFromString'](_0x538937,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2a4980(),this['focusTracker']=new _0x4ae692(),this['keystrokes']=new _0x2e95d7(),this['focusCycler']=new _0x4a7472({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x13d07c=>_0x13d07c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x220759,this['_localUser']=_0x7d2932,this['_config']=_0x462310,_0x462310['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x210702(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1631b6}=this['_config'];this['commentsListView']=new _0x1631b6(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',_0x151ffe=>_0x151ffe+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x538006,_0x5c6c16)=>_0x538006||!!_0x5c6c16);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x48c2ea}=this['_config'],_0x20ecd2=new _0x48c2ea(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x191cb5=_0x20ecd2['commentInputView'];return _0x20ecd2['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x191cb5,'value',(_0x349873,_0x32d618,_0x4160f7)=>!!_0x4160f7||_0x349873&&!_0x32d618),_0x191cb5['on']('submit',(_0x55fde2,_0xfaa656)=>{this['fire']('addComment',_0xfaa656),_0x191cb5['editor']['setData']('');}),_0x191cb5['on']('cancel',()=>this['focus']()),_0x191cb5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x20ecd2;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x4e940,_0x34de84,_0x3a0fc7,_0x3cfb1a){super(_0x4e940,_0x34de84,_0x3a0fc7,_0x3cfb1a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4e9eaf=>_0x4e9eaf&&_0x4e9eaf[0x0]?_0x4e9eaf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x21e505,_0x5b2e80)=>{let _0x30dfa6='';for(const _0x50eb56 of _0x21e505)_0x30dfa6+='<p>'+ls(_0x50eb56['content'],_0x50eb56['color'])+'</p>';return _0x5b2e80?_0x30dfa6:ti(_0x30dfa6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3cfb1a['SuggestionView'](_0x4e940,_0x34de84,{'formatDateTime':_0x3cfb1a['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 _0x4815bd=this['bindTemplate'],_0x88be3=[this['suggestionView']];return this['commentsListView']&&_0x88be3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x88be3['push'](this['commentThreadInputView']),_0x88be3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4815bd['if']('isActive','ck-suggestion-wrapper--active'),_0x4815bd['to']('type',_0x40bb22=>'ck-suggestion-'+_0x40bb22),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':_0x4815bd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x88be3};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x254aba{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x18fb5c,_0x11008d,_0x1c6fdd){super(_0x18fb5c),this['_model']=_0x11008d,this['_config']=_0x1c6fdd,this['set']('description',''),this['bind']('authoredAt')['to'](_0x11008d),this['acceptButton']=this['_createButton'](c(_0x18fb5c,'Accept\x20suggestion'),_0x252edb,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x18fb5c,'Discard\x20suggestion'),_0x454f62,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1b925e(_0x18fb5c,_0x11008d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2a4980([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4ae692(),this['keystrokes']=new _0x2e95d7(),this['focusCycler']=new _0x4a7472({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x38b5f0=>_0x38b5f0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x175bbe=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x175bbe['innerHTML']=this['description'],this['on']('change:description',(_0xf2c8ee,_0x3b5ee1,_0x2ae9aa)=>{_0x175bbe['innerHTML']=_0x2ae9aa;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x71416e=this['bindTemplate'],_0x55cc1e=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x71416e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x71416e['to']('authoredAt',_0xa65d28=>this['_config']['formatDateTime'](_0xa65d28))}]}]},{'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']&&_0x55cc1e['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':_0x55cc1e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x22eb0c,_0x5f0835,_0x502713,_0x157919,_0x1fc911){const _0x1b4609=new _0x14a78a(this['locale']);return _0x1b4609['set']({'label':_0x22eb0c,'icon':_0x5f0835,'tooltip':!0x0,'tooltipPosition':_0x1fc911}),_0x1b4609['extendTemplate']({'attributes':{'class':_0x502713}}),_0x1b4609['on']('execute',()=>{this['fire'](_0x157919,this['_model']['id']);}),_0x1b4609;}['_setupKeyboardNavigation'](){const _0x3e01f2=this['element'];this['keystrokes']['listenTo'](_0x3e01f2);for(const _0x1661f7 of this['focusables'])this['focusTracker']['add'](_0x1661f7['element']),this['keystrokes']['listenTo'](_0x1661f7['element']);this['keystrokes']['set']('enter',(_0x1c8d18,_0x54d69a)=>{_0x3e01f2===_0x1c8d18['target']&&(this['focusCycler']['focusFirst'](),_0x54d69a());}),this['keystrokes']['set']('esc',(_0x43860b,_0x4dbf48)=>{_0x3e01f2!==_0x43860b['target']&&(this['focus'](),_0x4dbf48());});}}class d extends _0x31a850{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x45c096,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ac685){super(_0x2ac685),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1d3b93=this['editor']['config'];_0x1d3b93['define']('trackChanges.SuggestionThreadView',fe),_0x1d3b93['define']('trackChanges.SuggestionView',we),_0x1d3b93['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1d3b93['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5468c3,_0x4d7178){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x562825,_0x2cd358]of this['_handleControllerBuffer']){const _0x4de653=this['_suggestionToController']['has'](_0x562825);_0x4de653||_0x2cd358?_0x4de653&&_0x2cd358&&this['_destroyController'](_0x562825):this['_initializeController'](_0x562825);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5468c3,_0x4d7178);}['init'](){const _0x219867=this['editor'],_0x329b4a=_0x219867['plugins']['get']('TrackChangesEditing'),_0xe1cd9f=_0x219867['plugins']['get']('Annotations'),_0x3c7cba=_0x219867['plugins']['get']('EditorAnnotations'),_0x6385c8=_0x219867['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3c7cba['addSourceCollector'](()=>{const _0x18e71b=[];for(const [_0x4342f9,_0x20c066]of Array['from'](this['_suggestionToController'])){const _0x21afda=_0x4342f9['getAllAdjacentSuggestions'](),_0x4b40f4=[];for(const _0x2e402d of _0x21afda){if(!_0x2e402d['isInContent'])continue;if(_0x2e402d['isMultiRange']){_0x4b40f4['push'](..._0x2e402d['getRanges']());continue;}const _0x42d826=_0x2e402d['getFirstRange']();if(_0x4b40f4['length']>0x0){const _0x2bd7bb=_0x4b40f4[0x0]['getJoined'](_0x42d826);if(_0x2bd7bb){_0x4b40f4[0x0]=_0x2bd7bb;continue;}}_0x4b40f4['push'](_0x42d826);}_0x18e71b['push']([_0x20c066['view'],_0x4b40f4]);}return _0x18e71b;}),this['listenTo'](_0x329b4a,'suggestionLoaded',(_0x92b2a2,_0x2050b6)=>{this['listenTo'](_0x2050b6,'change:previous',(_0x20a8ba,_0xb5cddc,_0x124559,_0x3dd45f)=>{_0x2050b6['isInContent']&&(null==_0x124559?(this['_updateController'](_0x3dd45f['head']),this['_handleSuggestionControllerDelayed'](_0x2050b6,!0x1)):(this['_updateController'](_0x124559['head']),null==_0x3dd45f&&this['_handleSuggestionControllerDelayed'](_0x2050b6,!0x0)));}),null!==_0x2050b6['previous']?this['_updateController'](_0x2050b6['head']):this['_handleSuggestionControllerDelayed'](_0x2050b6,!0x1);}),this['listenTo'](_0x329b4a,'suggestionUnloaded',(_0x45c76c,_0x1fc912,_0x40654e)=>{this['stopListening'](_0x1fc912,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1fc912),this['_suggestionToController']['has'](_0x1fc912)&&this['_destroyController'](_0x1fc912),_0x40654e&&this['_updateController'](_0x40654e['head']);}),this['listenTo'](_0x329b4a,'suggestionChanged',(_0x57c55b,_0x427f1d)=>{this['_updateController'](_0x427f1d);}),this['listenTo'](_0xe1cd9f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x6385c8,'addComment',(_0xcbc698,{threadId:_0x4682ac,isFromAdapter:_0x4d9963})=>{if(_0x4d9963||!_0x329b4a['hasSuggestion'](_0x4682ac))return;const _0xc6529e=_0x329b4a['getSuggestion'](_0x4682ac);this['_suggestionToController']['get'](_0xc6529e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3784f3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5dc245;for(const _0x494291 in _0x3784f3){const _0x4d8fa9=_0x494291,_0x36776a=_0x3784f3[_0x4d8fa9];if('trackChangesLicenseKeyValid'==_0x36776a||'trackChangesLicenseKeyInvalid'==_0x36776a||'trackChangesLicenseKeyExpired'==_0x36776a||'trackChangesLicenseKeyDomainLimit'==_0x36776a||'trackChangesLicenseKeyNotAllowed'==_0x36776a||'trackChangesLicenseKeyEvaluationLimit'==_0x36776a||'trackChangesLicenseKeyTrialLimit'==_0x36776a||'trackChangesLicenseKeyUsageLimit'==_0x36776a){delete _0x3784f3[_0x4d8fa9],_0x5dc245=_0x36776a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x5dc245&&_0x3784f3['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x5dc245&&_0x3784f3['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x5dc245&&_0x3784f3['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x5dc245&&_0x3784f3['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x18212f=this['editor']['plugins']['get']('Annotations'),_0x5caac2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47e81e=Array['from'](_0x18212f['activeAnnotations'],_0x1a196e=>_0x1a196e['innerView'])['filter'](_0x2e9a32=>this['_viewToController']['has'](_0x2e9a32)),_0x323b5c=[];for(const _0x84853e of _0x47e81e){const _0x19c4c9=this['_viewToController']['get'](_0x84853e)['model']['getAllAdjacentSuggestions']();_0x323b5c['push'](..._0x19c4c9['reduce']((_0x3e28ad,_0x421312)=>[..._0x3e28ad,..._0x421312['getMarkerNames']()],[]));}_0x5caac2['activeMarkers']=_0x323b5c;}['_addUIComponentsToFactory'](){const _0x3bd216=this['editor'],_0x2c3d1d=_0x3bd216['locale'],_0x152c6e=c(_0x2c3d1d,'Track\x20changes'),_0xcf1a88=new _0x2a6a53([{'type':'switchbutton','model':new _0x19c07f({'withText':!0x0,'isToggleable':!0x0,'label':_0x152c6e,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3bd216['plugins']['has']('TrackChangesPreview')&&_0xcf1a88['addMany']([{'type':'separator'},{'type':'button','model':new _0x19c07f({'withText':!0x0,'label':c(_0x2c3d1d,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x3a94f8 of _0xcf1a88)if(ke(_0x3a94f8)){const _0x378a44=_0x3bd216['commands']['get'](_0x3a94f8['model']['commandName']);_0x3a94f8['model']['bind']('isOn','isEnabled')['to'](_0x378a44,'value','isEnabled');}_0x3bd216['ui']['componentFactory']['add']('trackChanges',_0x587203=>this['_createToolbarButton'](_0x587203,_0xcf1a88,_0x152c6e)),_0x3bd216['ui']['componentFactory']['add']('menuBar:trackChanges',_0x44722b=>this['_createMenuBarMenu'](_0x44722b,_0xcf1a88,_0x152c6e));}['_createToolbarButton'](_0x5d2cdb,_0x2cca8d,_0x562b10){const _0x9bb0b=_0x4704a3(_0x5d2cdb,_0x4a4c5d),_0x51b608=this['editor']['commands']['get']('trackChanges');_0x9bb0b['buttonView']['set']({'tooltip':_0x562b10,'label':_0x562b10,'icon':_0x24a931}),_0x9bb0b['buttonView']['bind']('isOn')['to'](_0x51b608,'value'),_0x9bb0b['buttonView']['on']('execute',()=>{_0x51b608['execute'](),this['editor']['editing']['view']['focus']();}),_0x29a0cc(_0x9bb0b,_0x2cca8d,{'role':'menu'});const _0x6405b9=[];for(const _0x10a854 of _0x2cca8d)ke(_0x10a854)&&_0x6405b9['push'](this['editor']['commands']['get'](_0x10a854['model']['commandName']));const _0x5f3a9b=_0x9bb0b['buttonView'];return _0x5f3a9b['actionView']['unbind']('isEnabled'),_0x5f3a9b['arrowView']['unbind']('isEnabled'),_0x5f3a9b['actionView']['bind']('isEnabled')['to'](_0x51b608,'isEnabled'),_0x5f3a9b['arrowView']['bind']('isEnabled')['toMany'](_0x6405b9,'isEnabled',(..._0x1882b0)=>_0x1882b0['some'](_0x529c5d=>_0x529c5d)),_0x9bb0b['on']('execute',_0x5981b8=>{this['editor']['execute'](_0x5981b8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x9bb0b;}['_createMenuBarMenu'](_0x3336d5,_0x80f14e,_0x54d57a){const _0x16f28c=new _0x3eb7ca(_0x3336d5),_0x59eac5=this['editor']['commands']['get']('trackChanges');_0x16f28c['buttonView']['set']({'label':_0x54d57a,'icon':_0x24a931});const _0x54400d=new _0x741bb6(_0x3336d5);for(const _0x284fe6 of _0x80f14e){if('separator'==_0x284fe6['type']){_0x54400d['items']['add'](new _0x280b7c(_0x3336d5));continue;}const _0x5017ec=new _0x4709cb(_0x3336d5,_0x16f28c),_0x2e637d=new _0x2055c7(_0x3336d5),_0x48c8db=_0x284fe6['model'];_0x2e637d['bind'](...Object['keys'](_0x48c8db))['to'](_0x48c8db),_0x2e637d['delegate']('execute')['to'](_0x16f28c),_0x2e637d['on']('execute',()=>{this['editor']['execute'](_0x48c8db['commandName']),this['editor']['editing']['view']['focus']();}),_0x5017ec['children']['add'](_0x2e637d),_0x54400d['items']['add'](_0x5017ec);}return _0x16f28c['bind']('isEnabled')['to'](_0x59eac5,'isEnabled'),_0x16f28c['panelView']['children']['add'](_0x54400d),_0x16f28c;}['_initializeController'](_0x54fee5){const _0x23ccc1=this['editor'],_0x31ccf1=_0x23ccc1['config'],_0x20fe71=_0x23ccc1['plugins']['get']('Annotations'),_0x1c0ed3=_0x23ccc1['plugins']['get']('CommentsRepository'),_0x58a704=_0x23ccc1['plugins']['get']('EditorAnnotations'),_0x1cbc64=_0x23ccc1['plugins']['get'](_0x45c096)['me'],_0x241162=_0x31ccf1['get']('trackChanges')['SuggestionThreadView'],_0x44b65f=_0x31ccf1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4a461c,CommentThreadInputView:_0x2dcf19}=_0x23ccc1['plugins']['get']('CommentsUI');let _0x6d4938,_0x51a06c,_0x318ce8;this['_annotationViews']['has'](_0x54fee5['id'])?(_0x51a06c=this['_annotationViews']['get'](_0x54fee5['id']),_0x6d4938=_0x51a06c['mainView']):(_0x6d4938=new _0x241162(_0x23ccc1['locale'],_0x54fee5,_0x1cbc64,{'disableComments':this['_disableComments'],'editorConfig':{..._0x31ccf1['get']('comments.editorConfig'),'licenseKey':_0x31ccf1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x31ccf1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x31ccf1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x31ccf1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40d165(_0x31ccf1['get']('locale'),_0x23ccc1['locale']),'CommentView':_0x31ccf1['get']('comments')['CommentView'],'CommentsListView':_0x4a461c,'CommentThreadInputView':_0x2dcf19,'SuggestionView':_0x44b65f}),_0x6d4938['suggestionView']['acceptButton']['on']('execute',()=>{_0x23ccc1['editing']['view']['focus']();}),_0x6d4938['suggestionView']['discardButton']['on']('execute',()=>{_0x23ccc1['editing']['view']['focus']();}),_0x51a06c=_0x20fe71['createAnnotationView'](this['editor']['locale'],_0x6d4938),_0x51a06c['bind']('isDirty')['to'](_0x6d4938,'isDirty'),_0x51a06c['bind']('length')['to'](_0x6d4938),_0x51a06c['bind']('type')['to'](_0x6d4938,'type',_0x42bc03=>'suggestion-'+_0x42bc03),_0x6d4938['on']('escape',()=>{_0x318ce8['fire']('escape');}),this['_annotationViews']['set'](_0x54fee5['id'],_0x51a06c));const _0x19948f=_0x1c0ed3['createCommentThreadController'](_0x54fee5['commentThread'],_0x6d4938),_0x50593d=new pe(_0x23ccc1,_0x54fee5,_0x6d4938,_0x19948f),_0x43fbc6=_0x54fee5['getAllAdjacentSuggestions']()['filter'](_0x3f8135=>_0x3f8135['isInContent']);_0x6d4938['descriptionParts']=_0x23ccc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x43fbc6),this['_suggestionToController']['set'](_0x54fee5,_0x50593d),this['_viewToController']['set'](_0x6d4938,_0x50593d),_0x318ce8=_0x20fe71['createAnnotation']({'view':_0x51a06c,'target':()=>{const _0x548e07=[],_0x561436=_0x54fee5['getAllAdjacentSuggestions']()['filter'](_0xe01618=>_0xe01618['isInContent']);for(const _0x38d082 of _0x561436)_0x548e07['push'](..._0x38d082['getMarkers']());return _0x521180(_0x23ccc1['editing'],_0x548e07);},'type':()=>'suggestion-'+_0x50593d['view']['type']}),_0x1c0ed3['_bindAnnotationToEditors'](_0x6d4938,_0x318ce8),_0x20fe71['add'](_0x318ce8),_0x58a704['registerAnnotation'](_0x318ce8);}['_destroyController'](_0xedeaad){const _0x20a99b=this['editor']['plugins']['get']('CommentsRepository'),_0xafe05f=this['editor']['plugins']['get']('Annotations'),_0xdb67be=this['_suggestionToController']['get'](_0xedeaad),_0x12340b=_0xdb67be['view'],_0x200550=_0xafe05f['getByInnerView'](_0x12340b);_0x20a99b['_unbindEditors'](_0x12340b),_0x200550&&_0xafe05f['remove'](_0x200550),this['_suggestionToController']['delete'](_0xedeaad),this['_viewToController']['delete'](_0x12340b),_0xdb67be['destroy']();}['_updateController'](_0x35ca63){if(!_0x35ca63['isInContent']||!this['_suggestionToController']['has'](_0x35ca63))return;const _0x4bd1d3=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac6120=this['_suggestionToController']['get'](_0x35ca63),_0x461717=_0x35ca63['getAllAdjacentSuggestions']();_0xac6120['view']['descriptionParts']=_0x4bd1d3['descriptionFactory']['getDescriptions'](_0x461717);}['destroy'](){for(const _0x505457 of this['_suggestionToController']['keys']())this['_destroyController'](_0x505457);for(const _0x2391c0 of this['_annotationViews']['values']())_0x2391c0['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x4be264){return'model'in _0x4be264;}class k extends _0x31a850{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x37d415){this['editor']['plugins']['get'](p)['adapter']=_0x37d415;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x54aff8){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x54aff8);}['getSuggestions']({skipNotAttached:_0x554a91=!0x1,toJSON:_0x447fcc=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x554a91,'toJSON':_0x447fcc});}['getSuggestion'](_0x1542c1){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1542c1);}}const w=['Pagination'];class T extends _0x31a850{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x11d2a3=this['editor'];if(_0x11d2a3['config']['define']('trackChangesData.editorCreator',_0x751ca5=>{const _0xad622a=_0x11d2a3['model']['document']['getRootNames']()['reduce']((_0x4a7b3d,_0x4c52c6)=>(_0x4a7b3d[_0x4c52c6]='',_0x4a7b3d),{});return _0x11d2a3['constructor']['create'](_0xad622a,_0x751ca5);}),'function'!=typeof _0x11d2a3['config']['get']('trackChangesData')['editorCreator'])throw new _0x5121be('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x507f7b){return N(this['editor'],!0x0,_0x507f7b);}['getDataWithDiscardedSuggestions'](_0x432054){return N(this['editor'],!0x1,_0x432054);}}class D extends _0x31a850{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xbf344a){function _0x1aee6a(_0x2a379e){return _0x2a379e['map'](_0x17f1d2=>String['fromCharCode'](_0x17f1d2))['join']('');}super(_0xbf344a),this['result']='end',_0xbf344a[_0x1aee6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1aee6a([0x76,0x69,0x65,0x77])][_0x1aee6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1aee6a([0x61,0x75,0x74,0x6f]),_0xbf344a[_0x1aee6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1aee6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1aee6a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1aee6a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1aee6a([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Ge(_0x5cb245){return void 0x0!==_0x5cb245['getRootsAttributes'];}async function N(_0x3e89b3,_0x37ea32,_0x3d63e9){const _0x56d566=_0x4987e8(_0x3e89b3,w);_0x56d566['plugins']['push'](p,D),_0x56d566['rootsAttributes']=Ge(_0x3e89b3)?_0x3e89b3['getRootsAttributes']():void 0x0;const _0x3352fc=document['createDocumentFragment'](),_0x1d0e31=_0x3e89b3['config']['get']('trackChangesData')['editorCreator'],_0x4ae5b7=await _0x1d0e31(_0x56d566,()=>function(_0x164eaf){const _0x1cbe0a=document['createElement']('div');return _0x164eaf['appendChild'](_0x1cbe0a),_0x1cbe0a;}(_0x3352fc));!function(_0x3a8c7b,_0x5e3221){const _0x11238b=_0x3a8c7b['model']['document']['getRootNames']()['reduce']((_0x264c80,_0xc8f74c)=>(_0x264c80[_0xc8f74c]=_0x3a8c7b['data']['get']({'rootName':_0xc8f74c}),_0x264c80),{}),_0x1f996c=_0x3a8c7b['plugins']['get']('Users')['users']['map'](_0x3ccbbe=>({'id':_0x3ccbbe['id'],'name':_0x3ccbbe['name']})),_0x5ef1ce=_0x3a8c7b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b3413=_0x3a8c7b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59ffb9=_0x5e3221['plugins']['get']('Users'),_0x609cda=_0x5e3221['plugins']['get']('TrackChangesEditing'),_0x1fa379=_0x5e3221['plugins']['get']('CommentsRepository');for(const _0x163477 of _0x1fa379['getCommentThreads']())_0x163477['remove']();for(const _0x80be53 of _0x1f996c)_0x59ffb9['getUser'](_0x80be53['id'])||_0x59ffb9['addUser'](_0x80be53);_0x59ffb9['me']||_0x59ffb9['useAnonymousUser']();for(const _0xcf7e91 of _0x1b3413)_0x1fa379['addCommentThread'](_0xcf7e91);for(const _0x1fdcdb of _0x5ef1ce)_0x609cda['addSuggestionData'](_0x1fdcdb);_0x5e3221['data']['set'](_0x11238b);}(_0x3e89b3,_0x4ae5b7),_0x4ae5b7['execute'](_0x37ea32?'acceptAllSuggestions':'discardAllSuggestions');const _0x944440=Ge(_0x4ae5b7)?_0x4ae5b7['getFullData'](_0x3d63e9):_0x4ae5b7['data']['get'](_0x3d63e9);return await _0x4ae5b7['destroy'](),_0x944440;}class Me extends _0x254aba{['options'];constructor(_0x1d2012,_0x3fd2ce){super(_0x1d2012),this['options']=_0x3fd2ce,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x285b2b,_0x102744){if(!this['element'])return;const _0x65fb08=[];for(const [_0x318b59,_0xf1e292]of _0x285b2b){const _0x2aef56=document['createElement']('div');_0x2aef56['setAttribute']('data-ck-root-name',_0x318b59),_0x2aef56['className']=_0xf1e292['classes']+'\x20ck-track-changes-preview__root-container',_0x2aef56['innerHTML']=_0xf1e292['content'],_0x65fb08['push'](_0x2aef56);}_0x102744(this['element'],_0x65fb08),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x5136f2{constructor(_0x19b1bd){super(_0x19b1bd),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x99d4f6=this['editor'],_0x52902b=_0x99d4f6['locale'],_0x7621a3=_0x99d4f6['plugins']['get']('Dialog');let _0x12836b;const _0x168786=function(_0x58cbac){const _0x5ef01f={};if('editables'in _0x58cbac['ui']['view']){for(const [_0x511792,_0x24c1c9]of Object['entries'](_0x58cbac['ui']['view']['editables']))_0x5ef01f[_0x511792]=_0x24c1c9['element'];}else _0x5ef01f[_0x58cbac['model']['document']['getRootNames']()[0x0]]=_0x58cbac['ui']['view']['editable']['element'];return _0x5ef01f;}(_0x99d4f6),_0x18ebdc=function(_0x4d8440){let _0x252115=0x0;for(const _0xdea2ba of Object['values'](_0x4d8440))_0x252115=Math['max'](_0x252115,_0xdea2ba['getBoundingClientRect']()['width']);let _0x7d338c=0x0;for(const _0x543e6 of Object['values'](_0x4d8440))_0x7d338c+=_0x543e6['getBoundingClientRect']()['height'];const _0x4b5b26=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3722ee=Math['min'](_0x7d338c,_0x4b5b26);return{'width':_0x252115,'height':_0x3722ee};}(_0x168786);_0x7621a3['show']({'id':'finalContentPreview','title':c(_0x52902b,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x52902b,{'dialogRects':_0x18ebdc}),'onHide':()=>{_0x12836b['detachFromDom']();},'onShow':()=>{_0x99d4f6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x13d8cb=>{const _0x3bb7fc=this['_standarizeRootsData'](_0x13d8cb,_0x99d4f6,_0x168786);_0x7621a3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x3bb7fc,_0x99d4f6['config']['get']('trackChanges.preview.renderFunction'));}),_0x12836b=new _0x5f4960(_0x52902b,[_0x7621a3['view']]),_0x12836b['attachToDom'](),_0x12836b['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x99d4f6['once']('destroy',()=>{_0x12836b['detachFromDom']();});const _0x32863b=_0x7621a3['view']['headerView']['class'];_0x7621a3['view']['headerView']['class']=_0x32863b?_0x32863b+'\x20ck-reset_all':'ck-reset_all',_0x7621a3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x7621a3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1fde02=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3f233e=_0x1fde02['previewMode'],_0x50e68f={};if('$labels'===_0x3f233e){for(const _0xa63b0e of _0x1fde02['getMergeFieldsIds']())_0x50e68f[_0xa63b0e]=_0x1fde02['getLabel'](_0xa63b0e)||_0xa63b0e;}else{const _0x39ca69='$defaultValues'===_0x3f233e?_0x1fde02['getDefaultValues']():_0x1fde02['getDataSetValues'](_0x3f233e,!0x0);for(const _0x5a2b67 of Object['entries'](_0x39ca69)){const [_0x2448dd,_0x1685cd]=_0x5a2b67;_0x50e68f[_0x2448dd]=null!==_0x1685cd?_0x1685cd:_0x1fde02['getLabel'](_0x2448dd)||_0x2448dd;}}return{'mergeFieldsData':_0x50e68f};}['_standarizeRootsData'](_0x55fdee,_0x449e6b,_0x38559d){let _0x3fbf54;if('string'==typeof _0x55fdee){const _0x4f4fba=_0x449e6b['model']['document']['getRootNames']()[0x0];_0x3fbf54={[_0x4f4fba]:_0x55fdee};}else _0x3fbf54=_0x55fdee;const _0x38b97b=this['_fixMediaEmbeds'](_0x3fbf54,_0x449e6b),_0x4b4d20=function(_0x1a32dd,_0x1d3f43){for(const [_0x4231b5,_0x1a96b2]of _0x1a32dd)_0x1a96b2['classes']=_0x1d3f43[_0x4231b5]['classList']['value']['replace']('ck-focused','');return _0x1a32dd;}(this['_sortRoots'](_0x449e6b)['reduce']((_0x2a81d9,_0x1b80e2)=>(_0x2a81d9['push']([_0x1b80e2,{'content':_0x38b97b[_0x1b80e2],'classes':''}]),_0x2a81d9),[]),_0x38559d);return _0x4b4d20;}['_fixMediaEmbeds'](_0x566b74,_0x53911a){if(!_0x53911a['plugins']['has']('MediaEmbedEditing'))return _0x566b74;const _0x15b690=_0x53911a['plugins']['get']('MediaEmbedEditing');for(const [_0x13eb67,_0x532a64]of Object['entries'](_0x566b74)){const _0x257e3f=document['createElement']('div');_0x257e3f['innerHTML']=_0x532a64,(_0x257e3f['querySelectorAll']('figure.media')['forEach'](_0x3586c3=>{const _0x544b86=_0x3586c3['querySelector']('oembed');if(_0x544b86){const _0x8507bb=_0x544b86['getAttribute']('url');if(_0x8507bb){const _0x38e788=_0x15b690['registry']['getMediaViewElement'](new _0x551d30(_0x53911a['editing']['view']['document']),_0x8507bb,{'elementName':'','renderForEditingView':!0x0}),_0x1ac985=document['createElement']('div');_0x1ac985['classList']['add']('ck-media__wrapper'),_0x38e788['render'](_0x1ac985,_0x53911a['editing']['view']['domConverter']),_0x544b86['replaceWith'](_0x1ac985);}}}),_0x566b74[_0x13eb67]=_0x257e3f['innerHTML']);}return _0x566b74;}['_sortRoots'](_0x310b54){if(!function(_0x462408){return void 0x0!==_0x462408['getRootsAttributes'];}(_0x310b54))return _0x310b54['model']['document']['getRootNames']();const _0x97cc7b=[],_0xb81a24=new Map();for(const _0x3de173 of _0x310b54['model']['document']['getRootNames']()){const _0x16881b=_0x310b54['editing']['view']['getDomRoot'](_0x3de173)['getClientRects']()['item'](0x0);_0x97cc7b['push'](_0x3de173),_0xb81a24['set'](_0x3de173,_0x16881b);}return _0x97cc7b['sort']((_0x4aae39,_0xb2c41b)=>{const _0x548625=_0xb81a24['get'](_0x4aae39),_0x502b91=_0xb81a24['get'](_0xb2c41b);return _0x548625['y']-_0x502b91['y']||_0x548625['x']-_0x502b91['x'];}),_0x97cc7b;}}class te extends _0x31a850{static get['requires'](){return[T,_0x4fc00c];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x804f8c){super(_0x804f8c),_0x804f8c['commands']['add']('previewFinalContent',new re(this['editor'])),_0x804f8c['config']['define']('trackChanges.preview.renderFunction',(_0x5ae173,_0x562d5b)=>{for(const _0x4f9586 of _0x562d5b)_0x5ae173['appendChild'](_0x4f9586);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|