@ckeditor/ckeditor5-track-changes 47.7.0-alpha.0 → 47.7.0-alpha.1
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/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x14b986(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x40d644,_0x103fbf){super(),this['id']=_0x103fbf['id'],this['type']=_0x103fbf['type'],this['subType']=_0x103fbf['subType']||null,this['author']=_0x103fbf['author'],this['creator']=_0x103fbf['creator']||_0x103fbf['author'],this['isExternal']=Boolean(_0x103fbf['attributes']&&_0x103fbf['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x103fbf['originalSuggestionId']||null,this['_model']=_0x40d644,this['_onAccept']=_0x103fbf['onAccept'],this['_onDiscard']=_0x103fbf['onDiscard'],this['_onAttributesChange']=_0x103fbf['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x103fbf['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 _0x18c2eb=this;for(;_0x18c2eb['previous'];)_0x18c2eb=_0x18c2eb['previous'];return _0x18c2eb;}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'](_0x590f43){this['_markerNames']['add'](_0x590f43);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5d27cb=>this['_model']['markers']['get'](_0x5d27cb))['filter'](_0xd9976a=>_0xd9976a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4f4a66=>{for(const _0x1b4d00 of this['getMarkers']())_0x4f4a66['removeMarker'](_0x1b4d00);}),this['_markerNames']['clear']();}['removeMarker'](_0x5cb3a9){this['_model']['change'](_0x50fbb3=>{_0x50fbb3['removeMarker'](_0x5cb3a9);}),this['_markerNames']['delete'](_0x5cb3a9);}['addRange'](_0x3c9950){const _0x175e57='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x175e57),this['_model']['change'](_0x443295=>{_0x443295['addMarker'](_0x175e57,{'range':_0x3c9950,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x31e9af){for(const _0x3a3cc2 of this['getRanges']())if(_0x3a3cc2['isIntersecting'](_0x31e9af))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x43d8a7=>_0x43d8a7['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2f5790,_0x1c356d)=>[..._0x2f5790,..._0x1c356d['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xaf3b60=this['getRanges']();if(0x1!=_0xaf3b60['length'])return null;const _0x38c4b7=_0xaf3b60[0x0],_0x1121a5=_0x38c4b7['start']['nodeAfter'],_0x267c9f=_0x38c4b7['end']['nodeBefore'];return _0x1121a5 instanceof _0x5f2319?_0x1121a5!=_0x267c9f?null:_0x1121a5: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 _0x1475cd=[];let _0x16becb=this['head'];for(;_0x16becb;)_0x1475cd['push'](_0x16becb),_0x16becb=_0x16becb['next'];return _0x1475cd;}['setAttribute'](_0x1bdcb4,_0x90fbd6){const _0x1d3478=_0x2972c9(this['attributes']);_0x49376b(_0x1d3478,_0x1bdcb4,_0x90fbd6),_0x3d47c3(_0x1d3478,this['attributes'])||(this['attributes']=_0x1d3478,this['_onAttributesChange'](_0x1d3478));}['removeAttribute'](_0x56e659){const _0x2d09a4=_0x2972c9(this['attributes']);_0x17043a(_0x2d09a4,_0x56e659),_0x3d47c3(_0x2d09a4,this['attributes'])||(this['attributes']=_0x2d09a4,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 _0x58b4bb()['substr'](0x1,0x5);}}function o(_0x4005d3,_0x150262,_0x35416c){const _0x37170a=_0x4005d3['t'],t=_0x4005d3['t'];switch(_0x150262){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',_0x35416c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x35416c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x35416c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x35416c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x35416c);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',_0x35416c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x35416c);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',_0x35416c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x35416c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x35416c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x35416c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x35416c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x35416c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x35416c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x35416c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x35416c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x35416c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x35416c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x35416c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x35416c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x35416c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x35416c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x35416c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x35416c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x35416c);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'},_0x35416c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x35416c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x35416c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x35416c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x35416c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x35416c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x35416c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x35416c);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'},_0x35416c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x35416c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x35416c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x35416c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x35416c);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x35416c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x35416c);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'},_0x35416c);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x35416c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x35416c);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'},_0x35416c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x35416c);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'},_0x35416c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x35416c);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x35416c);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x35416c);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x35416c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x35416c);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'},_0x35416c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x35416c);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 _0x37170a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x35416c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x37170a({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x35416c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x35416c);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'},_0x35416c);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'},_0x35416c);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'},_0x35416c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x150262;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x4bb3e5,_0x5ecef4){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x4bb3e5,this['_locale']=_0x5ecef4;}['getDescriptions'](_0x2b1c12){const _0x985021=[],_0x468b20=new Set(),_0x5331ac=new Set();for(let _0x312081=0x0;_0x312081<_0x2b1c12['length'];_0x312081++){const _0x116e1a=_0x2b1c12[_0x312081];if(!_0x116e1a['isInContent'])continue;const _0x5047eb=this['_handleCustomCallbackDescription'](_0x116e1a);if(_0x5047eb){if(null!=_0x116e1a['subType']){if(_0x468b20['has'](_0x116e1a['subType']))continue;_0x468b20['add'](_0x116e1a['subType']);}_0x985021['push'](_0x5047eb);}else{if('attribute'==_0x116e1a['type']){const _0x1054dc=_0x116e1a['data']['key'];if(_0x5331ac['has'](_0x1054dc))continue;_0x5331ac['add'](_0x116e1a['data']['key']),_0x1054dc==m?this['_handleRenameSuggestionDescription'](_0x985021,_0x116e1a):this['_handleAttributeSuggestionDescription'](_0x985021,_0x116e1a);continue;}'insertion'!=_0x116e1a['type']&&'deletion'!=_0x116e1a['type']||this['_handleInsertRemoveSuggestionDescription'](_0x985021,_0x116e1a,_0x2b1c12[_0x312081+0x1]);}}return this['_resolveDescriptionItems'](_0x985021);}['registerDescriptionCallback'](_0x323e68){this['_customCallbacks']['push'](_0x323e68);}['registerElementLabel'](_0x543327,_0x69d34e,_0x48e696=_0x3377f6['normal']){'function'==typeof _0x543327?_0x3e3042(this['_itemLabelsCallbacks'],{'matchingCallback':_0x543327,'label':_0x69d34e,'priority':_0x48e696}):this['_itemLabels']['set'](_0x543327,_0x69d34e);}['registerAttributeLabel'](_0x1e2fe7,_0x25af42){this['_attributeLabels']['set'](_0x1e2fe7,_0x25af42);}['getItemLabel'](_0x41a906,_0x538128=0x1){let _0x11a4c2;for(const _0xbada67 of this['_itemLabelsCallbacks'])if(_0xbada67['matchingCallback'](_0x41a906)){_0x11a4c2=_0xbada67['label'];break;}return _0x11a4c2||(_0x11a4c2=this['_itemLabels']['get'](_0x41a906['name'])),_0x11a4c2?_0x11a4c2(_0x538128):0x1!==_0x538128?_0x538128+'\x20'+_0x41a906['name']+'s':''+_0x41a906['name'];}['_addDescriptionItems'](_0x5eca97,_0x529ae1){const _0x222891=_0x529ae1['getFirstRange']()['getWalker'](),_0x310255='insertion'==_0x529ae1['type']?'add':'remove';for(const _0x22a3f4 of _0x222891){const _0x295b57=_0x22a3f4['item'],_0x4075f4=_0x5eca97[_0x5eca97['length']-0x1];if(_0x295b57['is']('$textProxy'))_0x4075f4&&_0x4075f4['type']['indexOf']('Container')>-0x1&&_0x5eca97['pop'](),_0x4075f4&&'text'==_0x4075f4['type']?_0x4075f4[_0x310255]+=_0x295b57['data']:_0x5eca97['push']({'type':'text','add':'add'==_0x310255?_0x295b57['data']:'','remove':'remove'==_0x310255?_0x295b57['data']:''});else{if(this['_schema']['isObject'](_0x295b57)){const _0x267194=_0x295b57;if(_0x4075f4&&_0x4075f4['type']['indexOf']('Container')>-0x1&&_0x5eca97['pop'](),'elementEnd'==_0x22a3f4['type'])continue;_0x4075f4&&_0x4075f4['type']==_0x310255+'Object'&&_0x4075f4['element']['name']==_0x267194['name']?_0x4075f4['quantity']++:_0x5eca97['push']({'type':_0x310255+'Object','element':_0x267194,'quantity':0x1}),_0x222891['skip'](_0x14745e=>!('elementEnd'==_0x14745e['type']&&_0x14745e['item']==_0x295b57));}else{if(this['_schema']['checkChild'](_0x295b57,'$text')||_0x295b57['is']('element','softBreak')){const _0x1a386b=_0x295b57;if('add'==_0x310255&&'elementStart'==_0x22a3f4['type']||'remove'==_0x310255&&'elementEnd'==_0x22a3f4['type'])continue;if(_0x4075f4&&-0x1==_0x4075f4['type']['indexOf']('Container')){'text'==_0x4075f4['type']&&(_0x4075f4[_0x310255]+='\x0a');continue;}let _0x2d6bfe;if(_0x2d6bfe='add'==_0x310255?_0x1a386b['nextSibling']&&!this['_schema']['isObject'](_0x1a386b['nextSibling'])?_0x1a386b['nextSibling']:null:_0x1a386b['previousSibling']&&!this['_schema']['isObject'](_0x1a386b['previousSibling'])?_0x1a386b['previousSibling']:null,_0x1a386b['isEmpty']||_0x2d6bfe&&_0x2d6bfe['isEmpty']){const _0xacc5a3=_0x2d6bfe&&_0x2d6bfe['isEmpty']?_0x2d6bfe:_0x1a386b;_0x4075f4&&_0x4075f4['type']==_0x310255+'EmptyContainer'&&_0x4075f4['element']['name']==_0xacc5a3['name']?_0x4075f4['quantity']++:_0x5eca97['push']({'type':_0x310255+'EmptyContainer','element':_0xacc5a3,'quantity':0x1});}else _0x5eca97['push']({'type':_0x310255+'Container','element':_0x1a386b});}}}}}['_resolveDescriptionItems'](_0x2f3697){const _0x472f3c=this['_locale'],_0x324b64=[],_0x59e786=[],_0x59333f=[];for(const _0x1f0fa2 of _0x2f3697)switch(_0x1f0fa2['type']){case'text':if(_0x1f0fa2['add']=_0x1f0fa2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1f0fa2['remove']=_0x1f0fa2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1f0fa2['add']&&''!=_0x1f0fa2['remove']){_0x324b64['push']({'type':'replace','content':o(_0x472f3c,'REPLACE_TEXT',['\x22'+_0x1f0fa2['remove']+'\x22','\x22'+_0x1f0fa2['add']+'\x22'])});continue;}if(null!=_0x1f0fa2['add']['match'](/^ +$/)){_0x324b64['push']({'type':'insertion','content':o(_0x472f3c,'*Insert:*\x20%0',o(_0x472f3c,'ELEMENT_SPACE',_0x1f0fa2['add']['length']))});continue;}if(null!=_0x1f0fa2['remove']['match'](/^ +$/)){_0x324b64['push']({'type':'deletion','content':o(_0x472f3c,'*Remove:*\x20%0',o(_0x472f3c,'ELEMENT_SPACE',_0x1f0fa2['remove']['length']))});continue;}if(''!=_0x1f0fa2['add']){_0x324b64['push']({'type':'insertion','content':o(_0x472f3c,'*Insert:*\x20%0','\x22'+_0x1f0fa2['add']+'\x22')});continue;}_0x324b64['push']({'type':'deletion','content':o(_0x472f3c,'*Remove:*\x20%0','\x22'+_0x1f0fa2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x324b64['push']({'type':'insertion','content':o(_0x472f3c,'*Insert:*\x20%0',this['getItemLabel'](_0x1f0fa2['element'],_0x1f0fa2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x324b64['push']({'type':'deletion','content':o(_0x472f3c,'*Remove:*\x20%0',this['getItemLabel'](_0x1f0fa2['element'],_0x1f0fa2['quantity']))});continue;case'addContainer':_0x324b64['push']({'type':'insertion','content':o(_0x472f3c,'*Split:*\x20%0',this['getItemLabel'](_0x1f0fa2['element'],_0x1f0fa2['quantity']))});continue;case'removeContainer':_0x324b64['push']({'type':'deletion','content':o(_0x472f3c,'*Merge:*\x20%0',this['getItemLabel'](_0x1f0fa2['element'],_0x1f0fa2['quantity']))});continue;case'addFormat':_0x59e786['push'](_0x1f0fa2['key']);continue;case'removeFormat':_0x59333f['push'](_0x1f0fa2['key']);continue;default:_0x324b64['push'](_0x1f0fa2);}if(_0x59e786['length']){const _0x4f7f58=_0x59e786['map'](_0x51f41e=>this['_attributeLabels']['has'](_0x51f41e)?this['_attributeLabels']['get'](_0x51f41e):_0x51f41e)['join'](',\x20');_0x324b64['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4f7f58)});}if(_0x59333f['length']){const _0x15a5d0=_0x59333f['map'](_0x59012c=>this['_attributeLabels']['has'](_0x59012c)?this['_attributeLabels']['get'](_0x59012c):_0x59012c)['join'](',\x20');_0x324b64['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x15a5d0)});}return _0x324b64;}['_handleCustomCallbackDescription'](_0x141d5a){for(const _0x47923a of this['_customCallbacks']){const _0x58553d=_0x47923a(_0x141d5a);if(_0x58553d&&'type'in _0x58553d)return _0x58553d;}}['_handleAttributeSuggestionDescription'](_0x5cf840,_0x35279a){const _0x18b473=_0x35279a['data'],_0x1b4193=void 0x0===_0x18b473['newValue']?'removeFormat':'addFormat';_0x5cf840['push']({'type':_0x1b4193,'key':_0x18b473['key']});}['_handleRenameSuggestionDescription'](_0x2f256c,_0x2cabf5){_0x2f256c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2cabf5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3bde5e,_0x4dac61,_0x542b41){if(this['_addDescriptionItems'](_0x3bde5e,_0x4dac61),_0x542b41&&_0x542b41['getFirstRange']()&&!_0x4dac61['getFirstRange']()['end']['isEqual'](_0x542b41['getFirstRange']()['start'])){const _0x381562=_0x3bde5e[_0x3bde5e['length']-0x1],_0x485ba8='insertion'==_0x4dac61['type']?'add':'remove';_0x381562&&'text'==_0x381562['type']&&(_0x381562[_0x485ba8]+='\x0a');}}}class U extends _0x4f24f5{['afterInit'](){const _0xc65d20=this['editor'],_0x579598=_0xc65d20['plugins']['get']('TrackChangesEditing');_0xc65d20['commands']['get']('showAIAssistant')&&_0x579598['enableCommand']('showAIAssistant');}}class V extends _0x4f24f5{['afterInit'](){const _0xa2f199=this['editor'],_0x268918=_0xa2f199['plugins']['get']('TrackChangesEditing');_0xa2f199['commands']['get']('toggleAi')&&_0x268918['enableCommand']('toggleAi');}}class F extends _0x4f24f5{['afterInit'](){const _0x136e32=this['editor'],_0x26af0f=_0x136e32['plugins']['get']('TrackChangesEditing');_0x136e32['commands']['get']('aiQuickAction')&&_0x26af0f['enableCommand']('aiQuickAction');}}class G extends _0x4f24f5{['afterInit'](){const _0x521450=this['editor'],_0x52c030=_0x521450['locale'];if(!_0x521450['plugins']['has']('AlignmentEditing'))return;const _0x5d2d5e=_0x521450['plugins']['get']('TrackChangesEditing');_0x5d2d5e['enableDefaultAttributesIntegration']('alignment'),_0x5d2d5e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x52c030,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ec6d9=this['editor'],_0x362472=_0x2ec6d9['locale'];_0x2ec6d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c473a=>{if('formatBlock'!=_0x1c473a['type'])return;const {data:_0x18c079}=_0x1c473a;if(_0x18c079&&'alignment'==_0x18c079['commandName']){const _0x343b4b=_0x18c079['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x362472,'*Format:*\x20%0',function(_0x4abdc2){switch(_0x4abdc2){case'left':return o(_0x362472,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x362472,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x362472,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x362472,'FORMAT_JUSTIFY_TEXT');}}(_0x343b4b))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x4f24f5{['afterInit'](){const _0x35aa46=this['editor'],_0x4ee3dd=_0x35aa46['plugins']['get']('TrackChangesEditing'),_0x489305=_0x35aa46['locale'];for(const _0x328aa7 of ti){if(!_0x35aa46['plugins']['has'](_0x328aa7))continue;const _0xb050f4=_0x328aa7['slice'](0x0,-0x7)['toLowerCase'](),_0x3ae4b6='FORMAT_'+_0xb050f4['toUpperCase']();_0x4ee3dd['enableDefaultAttributesIntegration'](_0xb050f4),_0x4ee3dd['descriptionFactory']['registerAttributeLabel'](_0xb050f4,o(_0x489305,_0x3ae4b6));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x274661=this['editor'],_0x6f5003=_0x274661['locale'],_0x40cdfe=_0x274661['plugins']['get']('TrackChangesEditing');function _0xe8d395(_0x28bc61,_0x541c92){_0x40cdfe['descriptionFactory']['registerDescriptionCallback'](_0x12bd76=>{if('formatInline'!=_0x12bd76['type'])return;const {data:_0x88b304}=_0x12bd76;return _0x88b304&&_0x88b304['commandName']===_0x28bc61?_0x88b304['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6f5003,'*Format:*\x20%0',_0x541c92)}:{'type':'format','content':o(_0x6f5003,'*Remove\x20format:*\x20%0',_0x541c92)}:void 0x0;});}_0xe8d395('bold',o(_0x6f5003,'FORMAT_BOLD')),_0xe8d395('italic',o(_0x6f5003,'FORMAT_ITALIC')),_0xe8d395('underline',o(_0x6f5003,'FORMAT_UNDERLINE')),_0xe8d395('code',o(_0x6f5003,'FORMAT_CODE')),_0xe8d395('strikethrough',o(_0x6f5003,'FORMAT_STRIKETHROUGH')),_0xe8d395('subscript',o(_0x6f5003,'FORMAT_SUBSCRIPT')),_0xe8d395('superscript',o(_0x6f5003,'FORMAT_SUPERSCRIPT'));}}class J extends _0x4f24f5{['afterInit'](){const _0x3a6eaa=this['editor'],_0x1144cf=_0x3a6eaa['locale'];if(!_0x3a6eaa['plugins']['has']('BlockQuoteEditing'))return;const _0x374d56=_0x3a6eaa['plugins']['get']('TrackChangesEditing'),_0x12366a=this['editor']['commands']['get']('blockQuote');_0x374d56['enableCommand']('blockQuote',(_0x5181df,_0x25ac4e={})=>{const _0x4a6bf4=this['editor']['model']['document']['selection'],_0x3b1f1a=_0x25ac4e&&void 0x0!==_0x25ac4e['forceValue']?_0x25ac4e['forceValue']:!_0x12366a['value'];let _0x1facc7=[];if(_0x3b1f1a){const _0x16e96f=Array['from'](_0x4a6bf4['getSelectedBlocks']())['filter'](_0x41ad09=>oo(_0x41ad09)||function(_0x5b534d,_0x3f32ea){const _0x5d3c35=_0x3f32ea['checkChild'](_0x5b534d['parent'],'blockQuote'),_0x2fbf3e=_0x3f32ea['checkChild'](['$root','blockQuote'],_0x5b534d);return _0x5d3c35&&_0x2fbf3e;}(_0x41ad09,this['editor']['model']['schema']));_0x1facc7=to(_0x16e96f,_0x3a6eaa['model']);}else{const _0x4a7016=Array['from'](_0x4a6bf4['getSelectedBlocks']())['filter'](_0x464141=>oo(_0x464141));_0x1facc7=to(_0x4a7016,_0x3a6eaa['model']);}_0x3a6eaa['model']['change'](()=>{for(const _0x376245 of _0x1facc7)_0x374d56['markBlockFormat'](_0x376245,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3b1f1a}]});});}),_0x374d56['descriptionFactory']['registerDescriptionCallback'](_0xaa8d59=>{const {data:_0x5aa153}=_0xaa8d59;if(_0x5aa153&&'blockQuote'==_0x5aa153['commandName']){const _0x798f64=o(_0x1144cf,'ELEMENT_BLOCK_QUOTE');return _0x5aa153['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1144cf,'*Set\x20format:*\x20%0',_0x798f64)}:{'type':'format','content':o(_0x1144cf,'*Remove\x20format:*\x20%0',_0x798f64)};}});}}function oo(_0x410ba0){return'blockQuote'==_0x410ba0['parent']['name'];}class q extends _0x4f24f5{['afterInit'](){const _0xef0d7a=this['editor'],_0x2a0ff7=_0xef0d7a['locale'],_0x4f87cb=_0xef0d7a['plugins']['get']('TrackChangesEditing');_0xef0d7a['plugins']['has']('BookmarkEditing')&&(_0x4f87cb['enableCommand']('insertBookmark'),_0x4f87cb['enableDefaultAttributesIntegration']('updateBookmark'),_0x4f87cb['descriptionFactory']['registerDescriptionCallback'](_0x3f087d=>{if('insertion'!=_0x3f087d['type']&&'deletion'!=_0x3f087d['type']&&'attribute'!=_0x3f087d['type'])return;const _0x216284=_0x3f087d['getContainedElement']();if(null==_0x216284)return;if(!_0x216284['is']('element','bookmark'))return;const _0x1fd4fe=_0x216284['getAttribute']('bookmarkId');if('insertion'==_0x3f087d['type'])return{'type':'insertion','content':o(_0x2a0ff7,'*Insert:*\x20%0','\x22'+_0x1fd4fe+'\x22\x20'+o(_0x2a0ff7,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3f087d['type'])return{'type':'deletion','content':o(_0x2a0ff7,'*Remove:*\x20%0','\x22'+_0x1fd4fe+'\x22\x20'+o(_0x2a0ff7,'ELEMENT_BOOKMARK'))};const {data:_0x5d33a6}=_0x3f087d;if(!_0x5d33a6||'bookmarkId'!=_0x5d33a6['key'])return;return{'type':'format','content':o(_0x2a0ff7,'*Set\x20bookmark:*\x20%0','\x22'+_0x5d33a6['newValue']+'\x22')};}));}}class z extends _0x4f24f5{['afterInit'](){const _0x4f840a=this['editor'];_0x4f840a['plugins']['has']('CaseChange')&&(_0x4f840a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x4f840a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x4f840a['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x4f24f5{['afterInit'](){const _0xd47b90=this['editor'];_0xd47b90['commands']['get']('ckbox')&&_0xd47b90['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x4f24f5{['afterInit'](){const _0x34c1ea=this['editor'];if(!_0x34c1ea['plugins']['has']('CodeBlock'))return;const _0x348d0c=_0x34c1ea['plugins']['get']('TrackChangesEditing'),_0x5aac58=_0x34c1ea['locale'],_0x1d19b0=_0x34c1ea['config']['get']('codeBlock')['languages'],_0x300ade=_0x34c1ea['commands']['get']('codeBlock');_0x348d0c['enableCommand']('indentCodeBlock'),_0x348d0c['enableCommand']('outdentCodeBlock'),_0x348d0c['enableCommand']('codeBlock',(_0x30a62b,_0x5db55a={})=>{const _0x38992c=_0x34c1ea['model'],_0x1efb87=_0x34c1ea['model']['document']['selection'],_0x4f5ced=_0x5db55a&&void 0x0!==_0x5db55a['forceValue']?_0x5db55a['forceValue']:!_0x300ade['value'];let _0x553e1a;_0x5db55a['language']||(_0x5db55a['language']=_0x1d19b0[0x0]['language']),_0x553e1a=_0x4f5ced?Array['from'](_0x1efb87['getSelectedBlocks']())['filter'](_0x2b4289=>co(_0x2b4289)||function(_0x34a665,_0x528ce6){if(_0x34a665['is']('rootElement')||_0x528ce6['isLimit'](_0x34a665))return!0x1;return _0x528ce6['checkChild'](_0x34a665['parent'],'codeBlock');}(_0x2b4289,_0x38992c['schema'])):Array['from'](_0x1efb87['getSelectedBlocks']())['filter'](_0x33986d=>co(_0x33986d));const _0x3ef0d1=to(_0x553e1a,_0x38992c);_0x38992c['change'](()=>{for(const _0x554205 of _0x3ef0d1)_0x348d0c['markBlockFormat'](_0x554205,{'commandName':'codeBlock','commandParams':[{..._0x5db55a,'forceValue':_0x4f5ced}],'formatGroupId':'blockName'});});}),(_0x348d0c['descriptionFactory']['registerElementLabel']('codeBlock',_0x44cf6e=>o(_0x5aac58,'ELEMENT_CODE_BLOCK',_0x44cf6e)),_0x348d0c['descriptionFactory']['registerDescriptionCallback'](_0x4d13d0=>{if('formatBlock'!=_0x4d13d0['type'])return;const _0x2d8ef1=_0x5aac58['t'],{data:_0x485acd}=_0x4d13d0;if(!_0x485acd||'codeBlock'!=_0x485acd['commandName'])return;const _0xac7760=_0x485acd['commandParams'][0x0]['language'],_0x2ed5df=_0x2d8ef1(_0x1d19b0['find'](_0x6d512c=>_0x6d512c['language']===_0xac7760)['label'])['toLowerCase']();return _0x485acd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5aac58,'*Set\x20format:*\x20%0',o(_0x5aac58,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2ed5df+')')}:{'type':'format','content':o(_0x5aac58,'*Remove\x20format:*\x20%0',o(_0x5aac58,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x3339b6){return'codeBlock'==_0x3339b6['name'];}class H extends _0x4f24f5{['afterInit'](){const _0x26a6d3=this['editor'];if(!_0x26a6d3['plugins']['has']('CommentsEditing'))return;_0x26a6d3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x4f24f5{static get['requires'](){return[_0x1f71a3];}['init'](){const _0x1d2cc1=this['editor'],_0x2e194b=_0x1d2cc1['plugins']['get']('TrackChangesEditing');_0x2e194b['enableCommand']('delete');const _0x4b8319=_0x1d2cc1['commands']['get']('deleteForward');_0x2e194b['enableCommand']('deleteForward',(_0x5195e9,_0x4d958f={})=>{const _0x4af4b2=_0x1d2cc1['model']['createSelection'](_0x1d2cc1['model']['document']['selection']);_0x4af4b2['isCollapsed']&&_0x1d2cc1['model']['modifySelection'](_0x4af4b2,{'direction':'forward','unit':_0x4d958f['unit']});const _0x58681b=_0x4af4b2['getFirstRange'](),_0x414a91=_0x41285e['fromRange'](_0x58681b);let _0x2c7aba;_0x5195e9(_0x4d958f),_0x2c7aba='$graveyard'==_0x414a91['root']['rootName']?_0x1d2cc1['model']['createRange'](_0x58681b['start']):_0x1d2cc1['model']['createRange'](_0x414a91['start'],_0x414a91['end']),_0x414a91['detach'](),_0x1d2cc1['model']['enqueueChange'](_0x4b8319['buffer']['batch'],_0x3ffd39=>{_0x4b8319['buffer']['lock'](),_0x3ffd39['setSelection'](_0x3ffd39['createRange'](_0x2c7aba['end'])),_0x4b8319['buffer']['unlock']();});});}}class X extends _0x4f24f5{['afterInit'](){const _0x4a7a3d=this['editor'];if(!_0x4a7a3d['plugins']['has']('ListEditing'))return;const _0x49a900=_0x4a7a3d['locale'],_0x252294=_0x4a7a3d['plugins']['get']('TrackChangesEditing'),_0x3e48fe=_0x4a7a3d['plugins']['has']('TodoListEditing'),_0x5e560a=!!_0x4a7a3d['config']['get']('list.multiBlock');function _0x19c6b4(_0x58e763){return{'type':'format','content':''+o(_0x49a900,'*Set\x20format:*\x20%0',_0x58e763)};}function _0x172564(_0x2387dd){return{'type':'format','content':''+o(_0x49a900,'*Remove\x20format:*\x20%0',_0x2387dd)};}_0x252294['enableDefaultAttributesIntegration']('numberedList'),_0x252294['enableDefaultAttributesIntegration']('bulletedList'),_0x252294['enableDefaultAttributesIntegration']('customNumberedList'),_0x252294['enableDefaultAttributesIntegration']('customBulletedList'),_0x252294['enableDefaultAttributesIntegration']('indentList'),_0x252294['enableDefaultAttributesIntegration']('outdentList'),_0x252294['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x252294['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5e560a&&(_0x252294['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x252294['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3e48fe&&(_0x252294['enableDefaultAttributesIntegration']('todoList'),_0x252294['enableDefaultAttributesIntegration']('checkTodoList'),_0x252294['descriptionFactory']['registerDescriptionCallback'](_0x5bc0e5=>{const {data:_0x5b3e1e}=_0x5bc0e5;if(_0x5b3e1e&&'todoListChecked'==_0x5b3e1e['key'])return{'type':'format','content':_0x5b3e1e['newValue']?o(_0x49a900,'*Check\x20item*'):o(_0x49a900,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5f5d62=>{if(_0x5f5d62['batch']['isUndo'])return!0x1;let _0x4f86af=!0x1;const _0x36380e=_0x252294['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x469659=>'todoListChecked'===_0x252294['_getAttributeKey'](_0x469659));for(const _0x382dc9 of _0x36380e){'todo'!=_0x382dc9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x252294['_findSuggestions'](_0x382dc9['getFirstRange'](),'attribute')['find'](_0xad0121=>'listType'===_0x252294['_getAttributeKey'](_0xad0121['suggestion']))||(_0x5f5d62['removeMarker'](_0x382dc9['getFirstMarker']()),_0x4f86af=!0x0));}return _0x4f86af;})),_0x252294['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x49a900,'FORMAT_INDENT'));const _0x508222={'type':'format','content':''};_0x252294['descriptionFactory']['registerDescriptionCallback'](_0x2b69ec=>{const {data:_0x4d59ba}=_0x2b69ec;if(!_0x4d59ba||'listType'!=_0x4d59ba['key'])return;let _0x2f8452=_0x2b69ec['head'];for(;_0x2f8452;){if(_0x2f8452['data']&&(('listStyle'==_0x2f8452['data']['key']||'listMarkerStyle'==_0x2f8452['data']['key'])&&(_0x2f8452['data']['newValue']&&'default'!=_0x2f8452['data']['newValue']||'default'!=_0x2f8452['data']['oldValue']&&!_0x4d59ba['newValue'])||!_0x5e560a&&_0x2f8452['data']['key']==m))return _0x508222;_0x2f8452=_0x2f8452['next'];}if(null==_0x4d59ba['newValue'])switch(_0x4d59ba['oldValue']){case'bulleted':return _0x172564(o(_0x49a900,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x172564(o(_0x49a900,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x172564(o(_0x49a900,'ELEMENT_TODO_LIST'));}switch(_0x4d59ba['newValue']){case'bulleted':return _0x19c6b4(o(_0x49a900,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19c6b4(o(_0x49a900,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19c6b4(o(_0x49a900,'ELEMENT_TODO_LIST'));}}),_0x252294['descriptionFactory']['registerDescriptionCallback'](_0x1fb71e=>{const {data:_0x2f64c9}=_0x1fb71e;if(_0x2f64c9&&'listIndent'==_0x2f64c9['key'])return null==_0x2f64c9['newValue']||null==_0x2f64c9['oldValue']&&0x0==_0x2f64c9['newValue']?_0x508222:void 0x0;}),_0x252294['descriptionFactory']['registerDescriptionCallback'](_0x59fad1=>{if('attribute'!=_0x59fad1['type'])return;const {data:_0x1d6c40}=_0x59fad1;if(!_0x1d6c40||'listItemId'!=_0x1d6c40['key'])return;const _0x556649=Te(_0x59fad1);return'newValue'==_0x556649?{'type':'format','content':o(_0x49a900,'*Merge:*\x20list\x20item')}:'oldValue'==_0x556649?{'type':'format','content':o(_0x49a900,'*Split:*\x20list\x20item')}:_0x508222;}),_0x4a7a3d['model']['document']['registerPostFixer'](_0x9f5b0f=>this['listItemIdFixer'](_0x9f5b0f)),_0x4a7a3d['model']['document']['registerPostFixer'](_0x529653=>this['noTrackChangesFixer'](_0x529653)),_0x4a7a3d['model']['document']['on']('change:data',(_0x2f8fea,_0x270607)=>{if(_0x270607['isUndo']||!_0x270607['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x14307b){if(_0x14307b['batch']['isUndo']||!_0x14307b['batch']['isLocal'])return!0x1;let _0x2b5c0d=!0x1;const _0x4ca829=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30a5a0=>_0x30a5a0['data']&&'listItemId'==_0x30a5a0['data']['key'])['filter'](_0x4b614b=>_0x4b614b['data']['newValue']&&_0x4b614b['data']['oldValue']);for(const _0x3c03b6 of _0x4ca829)Te(_0x3c03b6)||(_0x14307b['removeMarker'](_0x3c03b6['getFirstMarker']()),_0x2b5c0d=!0x0);return _0x2b5c0d;}['noTrackChangesFixer'](_0x5bebd2){if(_0x5bebd2['batch']['isUndo']||!_0x5bebd2['batch']['isLocal'])return!0x1;const _0x2397f4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2397f4['trackChangesCommand']['value'])return!0x1;let _0x4aaeaa=!0x1;const _0x46aa4d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5bd5ae=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x540273=>'attribute'==_0x540273['type'])['filter'](_0x399cfe=>_0x46aa4d['includes'](_0x399cfe['attributeKey']));if(0x0==_0x5bd5ae['length'])return _0x4aaeaa;for(const _0xa4aeda of _0x5bd5ae){const _0x495ead=_0x2397f4['_findSuggestions'](_0xa4aeda['range'],'attribute')['filter'](_0x57edc8=>!_0x57edc8['meta']['isNextTo'])['map'](_0x4166a9=>_0x4166a9['suggestion'])['filter'](_0x4e1605=>{const _0x4b8a96=_0x2397f4['_getAttributeKey'](_0x4e1605);return _0x46aa4d['includes'](_0x4b8a96);});if(_0x495ead['length']){for(const _0x50a3b2 of _0x495ead)_0x5bebd2['removeMarker'](_0x50a3b2['getFirstMarker']());_0x4aaeaa=!0x0;}}return _0x4aaeaa;}['assureChains'](){const _0x4708f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57d855=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x4c6671;const _0x2b6fad=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1aea03=>{if(_0x1aea03['data']['oldRange']||!_0x1aea03['data']['newRange'])return null;if(!_0x1aea03['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2843bd}=_0x4708f4['_splitMarkerName'](_0x1aea03['name']);if(!_0x4708f4['hasSuggestion'](_0x2843bd))return null;const _0x3fe59b=_0x4708f4['getSuggestion'](_0x2843bd);return _0x57d855['includes'](_0x3fe59b['data']['key']);})['map'](_0x4c27d2=>{const {id:_0x1c2578}=_0x4708f4['_splitMarkerName'](_0x4c27d2['name']),_0x32f3ec=_0x4708f4['getSuggestion'](_0x1c2578);return _0x4c6671=_0x32f3ec['attributes']['groupId'],_0x32f3ec['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2b6fad['size'])return;const _0x3d4f80=_0x4708f4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ceeb0=>'attribute'==_0x2ceeb0['type']&&_0x2ceeb0['data']&&_0x57d855['includes'](_0x2ceeb0['data']['key'])&&_0x2ceeb0['attributes']['groupId']!=_0x4c6671)['map'](_0x3c5786=>({'listItem':_0x3c5786['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3c5786['attributes']['groupId']})),_0x3a0aa7=new Set();for(const {groupId:_0x4f293c,listItem:_0x5df26f}of _0x3d4f80)_0x2b6fad['has'](_0x5df26f)&&_0x3a0aa7['add'](_0x4f293c);for(const _0xc7fd93 of _0x4708f4['getSuggestions']())_0x3a0aa7['has'](_0xc7fd93['attributes']['groupId'])&&_0xc7fd93['setAttribute']('groupId',_0x4c6671);}['_supportLegacySuggestions'](){const _0xddcdce=this['editor'],_0x425ef2=_0xddcdce['locale'],_0x50eb13=_0xddcdce['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x50eb13['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xfea0ee,_0x113c3b){const _0x1455e1=[];for(let _0x4ea6cf of _0xfea0ee)_0x4ea6cf['start']['nodeAfter']===_0x4ea6cf['end']['parent']&&(_0x4ea6cf=_0xddcdce['model']['createRange'](_0xddcdce['model']['createPositionAt'](_0x4ea6cf['start']['nodeAfter'],0x0))),_0x1455e1['push'](_0x4ea6cf);_0xddcdce['model']['change'](_0x4018ad=>{const _0x8bd80d=_0xddcdce['model']['document']['selection'],_0x14c77c=Array['from'](_0x8bd80d['getRanges']())['map'](_0x41753e=>_0x41285e['fromRange'](_0x41753e));_0x4018ad['setSelection'](_0x1455e1),_0xddcdce['commands']['get'](_0x113c3b['commandName'])['refresh'](),_0x113c3b['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xddcdce['execute'](_0x113c3b['commandName'],..._0x113c3b['commandParams']),_0x4018ad['setSelection'](_0x14c77c);for(const _0xa07632 of _0x14c77c)_0xa07632['detach']();});}),_0x50eb13['descriptionFactory']['registerElementLabel'](function(_0x3d9113){const _0x233ea1=!_0xddcdce['model']['schema']['isObject'](_0x3d9113),_0x50bddd=_0x3d9113['previousSibling'],_0x2e54e3=_0x3d9113['nextSibling'],_0x5a2486=_0x3d9113['getAttribute']('listItemId'),_0x25ce4b=!_0x50bddd||_0x50bddd['getAttribute']('listItemId')!==_0x5a2486,_0x1c579a=!_0x2e54e3||_0x2e54e3['getAttribute']('listItemId')!==_0x5a2486;return _0x233ea1&&Boolean(_0x5a2486)&&_0x25ce4b&&_0x1c579a;},_0x3aa7e0=>o(_0x425ef2,'ELEMENT_LIST_ITEM',_0x3aa7e0));}['_registerLegacyDescription'](){const _0x2ec77b=this['editor'],_0x286e8a=_0x2ec77b['locale'];function _0x30903d(_0x4b7afa){const _0x5748e0=_0x2ec77b['commands']['get']('bulletedList')['value'],_0x3ed5b5=_0x2ec77b['commands']['get']('numberedList')['value'];return'numberedList'===_0x4b7afa?_0x5748e0:_0x3ed5b5;}_0x2ec77b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x34071f){if('formatBlock'!=_0x34071f['type'])return;const {data:_0x1b4f65}=_0x34071f;if(!_0x1b4f65)return;let _0x5acb6d,_0x43e61b,_0x2c2982,_0x5dad9e;switch(_0x1b4f65['commandName']){case'bulletedList':_0x2c2982=_0x1b4f65['commandParams'][0x0]['forceValue'],_0x5dad9e=_0x30903d(_0x1b4f65['commandName']),_0x5acb6d=_0x2c2982?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5dad9e&&_0x2ec77b['config']['get']('list.multiBlock')||(_0x5acb6d='*Change\x20to:*\x20%0'),_0x43e61b={'type':'format','content':o(_0x286e8a,_0x5acb6d,o(_0x286e8a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x2c2982=_0x1b4f65['commandParams'][0x0]['forceValue'],_0x5dad9e=_0x30903d(_0x1b4f65['commandName']),_0x5acb6d=_0x2c2982?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5dad9e&&_0x2ec77b['config']['get']('list.multiBlock')||(_0x5acb6d='*Change\x20to:*\x20%0'),_0x43e61b={'type':'format','content':o(_0x286e8a,_0x5acb6d,o(_0x286e8a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5acb6d='*Indent:*\x20%0',_0x43e61b={'type':'format','content':o(_0x286e8a,_0x5acb6d,o(_0x286e8a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5acb6d=function(_0x4c6a11){const _0x843050=_0x4c6a11['getFirstRange']();let _0x2f38c3=_0x843050['start']['nodeAfter'];for(;_0x2f38c3&&_0x843050['containsItem'](_0x2f38c3);){if(_0x2f38c3['getAttribute']('listIndent')>0x0)return!0x1;_0x2f38c3=_0x2f38c3['nextSibling'];}return!0x0;}(_0x34071f)?o(_0x286e8a,'*Format:*\x20remove\x20from\x20%0',o(_0x286e8a,function(_0xbc591e){return'ELEMENT_'+_0xbc591e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x34071f))):o(_0x286e8a,'*Outdent:*\x20%0',o(_0x286e8a,'ELEMENT_LIST_ITEM')),_0x43e61b={'type':'format','content':_0x5acb6d};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1b4f65['multipleBlocks']&&(_0x5acb6d='*Merge:*\x20%0',_0x43e61b={'type':'deletion','content':o(_0x286e8a,_0x5acb6d,o(_0x286e8a,'ELEMENT_LIST_ITEM'))});}return _0x43e61b;});}}function Te(_0x23cf12){let _0x34f829=_0x23cf12['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x34f829;){const _0x48ecde=_0x34f829['getAttribute']('listItemId');if(!_0x48ecde)return!0x1;if(_0x48ecde==_0x23cf12['data']['newValue'])return'newValue';if(_0x48ecde==_0x23cf12['data']['oldValue'])return'oldValue';_0x34f829=_0x34f829['previousSibling'];}return!0x1;}class Y extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb20ae9=this['editor']['config']['get']('list.properties'),_0x1e68c7=this['editor']['plugins']['get']('TrackChangesEditing');_0xb20ae9['styles']&&_0x1e68c7['enableDefaultAttributesIntegration']('listStyle'),_0xb20ae9['reversed']&&_0x1e68c7['enableDefaultAttributesIntegration']('listReversed'),_0xb20ae9['startIndex']&&_0x1e68c7['enableDefaultAttributesIntegration']('listStart');const _0x217e2c={'type':'format','content':''};_0x1e68c7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1482a1=this['editor']['locale'];_0x1e68c7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1482a1,'FORMAT_LIST_REVERSED')),_0x1e68c7['descriptionFactory']['registerDescriptionCallback'](_0x54cd4e=>{const {data:_0x413866}=_0x54cd4e;if(_0x413866&&'listReversed'==_0x413866['key'])return null==_0x413866['newValue']||0x0==_0x413866['newValue']&&null==_0x413866['oldValue']?_0x217e2c:void 0x0;}),_0x1e68c7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1482a1,'FORMAT_LIST_START')),_0x1e68c7['descriptionFactory']['registerDescriptionCallback'](_0xefc52a=>{const {data:_0x3f6f95}=_0xefc52a;if(_0x3f6f95&&'listStart'==_0x3f6f95['key'])return null==_0x3f6f95['newValue']||0x1==_0x3f6f95['newValue']&&null==_0x3f6f95['oldValue']?_0x217e2c:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x10fe53=>{if(_0x10fe53['batch']['isUndo'])return!0x1;let _0x45d2c2=!0x1;const _0x1a549c=_0x1e68c7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1cfc8f=>{const _0x56c3b3=_0x1e68c7['_getAttributeKey'](_0x1cfc8f);return'listStart'==_0x56c3b3||'listReversed'==_0x56c3b3;});for(const _0x1890ac of _0x1a549c){const _0x3c19c3=_0x1890ac['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x3c19c3||'customNumbered'==_0x3c19c3)continue;_0x1e68c7['_findSuggestions'](_0x1890ac['getFirstRange'](),'attribute')['find'](_0x342c24=>'listType'==_0x1e68c7['_getAttributeKey'](_0x342c24['suggestion']))||(_0x10fe53['removeMarker'](_0x1890ac['getFirstMarker']()),_0x45d2c2=!0x0);}return _0x45d2c2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x41a840){const _0x30a5cf=this['editor']['locale'],{data:_0x5401a0}=_0x41a840,_0x5d1e97={'type':'format','content':''};if(!_0x5401a0||'listStyle'!=_0x5401a0['key'])return;if(!_0x5401a0['oldValue'])return'default'==_0x5401a0['newValue']?_0x5d1e97:{'type':'format','content':''+o(_0x30a5cf,'*Set\x20format:*\x20%0',o(_0x30a5cf,this['_getTranslationKeyForListStyle'](_0x5401a0['newValue'])))};if(!_0x5401a0['newValue']){if('default'==_0x5401a0['oldValue'])return _0x5d1e97;let _0x30e0a7=_0x41a840['head'];for(;_0x30e0a7;){if(_0x30e0a7['data']&&'listType'==_0x30e0a7['data']['key']&&_0x30e0a7['data']['newValue'])return _0x5d1e97;_0x30e0a7=_0x30e0a7['next'];}return{'type':'format','content':''+o(_0x30a5cf,'*Remove\x20format:*\x20%0',o(_0x30a5cf,this['_getTranslationKeyForListStyle'](_0x5401a0['oldValue'])))};}if('default'!=_0x5401a0['newValue'])return{'type':'format','content':''+o(_0x30a5cf,'*Set\x20format:*\x20%0',o(_0x30a5cf,this['_getTranslationKeyForListStyle'](_0x5401a0['newValue'])))};let _0x137d59=_0x41a840['head'];for(;_0x137d59;){if(_0x137d59['data']&&'listType'==_0x137d59['data']['key']&&_0x137d59['data']['newValue']&&_0x137d59['data']['oldValue'])return _0x5d1e97;_0x137d59=_0x137d59['next'];}return{'type':'format','content':o(_0x30a5cf,'*Set\x20format:*\x20%0',o(_0x30a5cf,'ELEMENT_'+_0x41a840['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1b0361=this['editor'],_0x2b81eb=_0x1b0361['locale'];_0x1b0361['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ace9a=>{if('formatBlock'!=_0x4ace9a['type'])return;const {data:_0x6bf040}=_0x4ace9a;if(!_0x6bf040)return;let _0x5cf268,_0x1c7c69;switch(_0x6bf040['commandName']){case'listStyle':_0x5cf268='*Change\x20to:*\x20%0',_0x1c7c69={'type':'format','content':o(_0x2b81eb,_0x5cf268,o(_0x2b81eb,this['_getTranslationKeyForListStyle'](_0x6bf040['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5cf268=_0x6bf040['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1c7c69={'type':'format','content':o(_0x2b81eb,_0x5cf268)};break;case'listStart':_0x5cf268='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1c7c69={'type':'format','content':o(_0x2b81eb,_0x5cf268,_0x6bf040['commandParams'][0x0]['startIndex'])};}return _0x1c7c69;});}['_getTranslationKeyForListStyle'](_0x1f8601){return'ELEMENT_'+function(_0x50e60b){if(ye['includes'](_0x50e60b))return'bulleted';if(Se['includes'](_0x50e60b))return'numbered';return null;}(_0x1f8601)['toUpperCase']()+'_LIST_'+_0x1f8601['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x4f24f5{['afterInit'](){const _0x12acc4=this['editor'];_0x12acc4['commands']['get']('emoji')&&_0x12acc4['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x4f24f5{static get['requires'](){return[_0x2c424e];}['init'](){const _0x7ff3c0=this['editor'],_0x565261=_0x7ff3c0['plugins']['get']('TrackChangesEditing'),_0x210b28=_0x7ff3c0['commands']['get']('enter');_0x565261['enableCommand']('enter',()=>{_0x7ff3c0['model']['change'](_0x57b2a0=>{const _0x7205cc=_0x7ff3c0['model']['document']['selection'],_0x29cf5a=_0x7205cc['getFirstPosition'](),_0x3df0fc=_0x41285e['fromRange'](_0x7205cc['getFirstRange']());if(_0x210b28['enterBlock'](_0x57b2a0)){const _0x237395=_0x7ff3c0['model']['createPositionAt'](_0x29cf5a['parent']['nextSibling'],0x0),_0x25cb75=_0x57b2a0['createRange'](_0x29cf5a,_0x237395);_0x565261['markInsertion'](_0x25cb75);}else _0x57b2a0['setSelection'](_0x57b2a0['createRange'](_0x3df0fc['end']));_0x3df0fc['detach'](),_0x210b28['fire']('afterExecute',{'writer':_0x57b2a0});});});}}class nt extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x14726e=this['editor']['plugins']['get']('TrackChangesEditing');_0x14726e['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x14726e['enableCommand']('findNext'),_0x14726e['enableCommand']('findPrevious'),_0x14726e['enableCommand']('replace'),_0x14726e['enableCommand']('replaceAll');}['handleFindCommand'](_0x16a8b8,_0x3e86e6,_0x286001={}){const _0x4d3d19=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x16a8b8(_0x4fca95=>{let _0x4bd4f2=('string'==typeof _0x3e86e6?_0x4d3d19['findByTextCallback'](_0x3e86e6,_0x286001):_0x3e86e6)(_0x4fca95);Array['isArray'](_0x4bd4f2)&&(_0x4bd4f2={'results':_0x4bd4f2,'searchText':'string'==typeof _0x3e86e6?_0x3e86e6:''});const _0x1771e9=_0x4bd4f2['results']['filter'](_0x420608=>!0x1===this['_isInDeletionRange'](_0x420608,_0x4fca95['item']));return{..._0x4bd4f2,'results':_0x1771e9};},_0x286001);}['_isInDeletionRange'](_0x3b92c8,_0x3b727d){const _0x5d2fe6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b727d,_0x3b92c8['start']),this['editor']['model']['createPositionAt'](_0x3b727d,_0x3b92c8['end']));for(const _0x1c7fbf of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5d2fe6['getIntersection'](_0x1c7fbf['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x4f24f5{['afterInit'](){const _0x1098e3=this['editor']['locale'],_0x809a5d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xc533b4,commandName:_0x1ad2b9}of eo)this['editor']['plugins']['has'](_0xc533b4)&&_0x809a5d['enableDefaultAttributesIntegration'](_0x1ad2b9);_0x809a5d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1098e3,'FORMAT_FONT_SIZE')),_0x809a5d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1098e3,'FORMAT_FONT_FAMILY')),_0x809a5d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1098e3,'FORMAT_FONT_COLOR')),_0x809a5d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1098e3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15c08a=this['editor'],_0x1e3b2d=_0x15c08a['locale'];_0x15c08a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c487f=>{const _0x187731=_0x1e3b2d['t'];if('formatInline'!=_0x4c487f['type'])return;const {data:_0x175aff}=_0x4c487f;if(null!=_0x175aff){if('fontSize'==_0x175aff['commandName']){const _0x456de7=_0x175aff['commandParams'][0x0]['value'];if(_0x456de7){const _0x588bdc=_0x187731(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1a4534=>_0x1a4534['model']==_0x456de7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1e3b2d,'*Set\x20font\x20size:*\x20%0',_0x588bdc)};}return{'type':'format','content':o(_0x1e3b2d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x175aff['commandName']){const _0x335dae=_0x175aff['commandParams'][0x0]['value'];return _0x335dae?{'type':'format','content':o(_0x1e3b2d,'*Set\x20font\x20family:*\x20%0',_0x335dae)}:{'type':'format','content':o(_0x1e3b2d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x175aff['commandName']){const _0x32dc50=_0x175aff['commandParams'][0x0]['value'];if(_0x32dc50){const _0x3009e7=_0x321151(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e2507=>_0x3e2507['model']==_0x32dc50);let _0xf4cfcf=_0x32dc50,_0x4e3bd2='';return _0x3009e7&&(_0xf4cfcf=_0x3009e7['label'],_0x4e3bd2=_0x187731(_0xf4cfcf)['toLowerCase']()),{'type':'format','content':o(_0x1e3b2d,'*Set\x20font\x20color:*\x20%0',_0x4e3bd2)['trim'](),'color':{'value':_0x32dc50,'title':_0x4e3bd2||_0xf4cfcf}};}return{'type':'format','content':o(_0x1e3b2d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x175aff['commandName']){const _0x3dccc9=_0x175aff['commandParams'][0x0]['value'];if(_0x3dccc9){const _0x303722=_0x321151(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x375f3e=>_0x375f3e['model']==_0x3dccc9);let _0x161fba=_0x3dccc9,_0x549901='';return _0x303722&&(_0x161fba=_0x303722['label'],_0x549901=_0x187731(_0x161fba)['toLowerCase']()),{'type':'format','content':o(_0x1e3b2d,'*Set\x20font\x20background\x20color:*\x20%0',_0x549901)['trim'](),'color':{'value':_0x3dccc9,'title':_0x549901||_0x161fba}};}return{'type':'format','content':o(_0x1e3b2d,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x4f24f5{['afterInit'](){const {plugins:_0x59a11f}=this['editor'];_0x59a11f['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x59a11f['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0xf6f20e,plugins:_0x224f03,commands:_0x3fd7cd}=this['editor'],_0xf92078=_0x224f03['get']('TrackChangesEditing');_0x3fd7cd['get']('footnotesStyle')&&_0xf92078['enableDefaultAttributesIntegration']('footnotesStyle'),_0x3fd7cd['get']('footnotesStart')&&_0xf92078['enableDefaultAttributesIntegration']('footnotesStart'),_0xf92078['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0xf6f20e,'FORMAT_FOOTNOTES_LIST_STYLE')),_0xf92078['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0xf6f20e,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x32b109=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x4a8fb4,commands:_0x20438a}=this['editor'];_0x20438a['get']('insertFootnote')&&_0x32b109['enableCommand']('insertFootnote'),_0x32b109['descriptionFactory']['registerElementLabel']('footnoteRef',_0x411d24=>o(_0x4a8fb4,'ELEMENT_FOOTNOTE_REF',_0x411d24)),_0x32b109['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4429f1=>o(_0x4a8fb4,'ELEMENT_FOOTNOTE_DEFINITION',_0x4429f1)),_0x32b109['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0xba6162=>o(_0x4a8fb4,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0xba6162));}}class st extends _0x4f24f5{['afterInit'](){const _0xfae7ab=this['editor'],_0x45dd28=_0xfae7ab['plugins']['get']('TrackChangesEditing'),_0x1ad8c7=_0xfae7ab['commands']['get']('copyFormat'),_0x18e9f4=_0xfae7ab['commands']['get']('pasteFormat');_0x1ad8c7&&_0x18e9f4&&(_0x45dd28['enableDefaultAttributesIntegration']('pasteFormat'),_0x45dd28['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x7a8401=this['editor'],_0x4fef08=_0x7a8401['locale'];_0x7a8401['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x433c4d=>{if('formatBlock'!=_0x433c4d['type']&&'formatInline'!=_0x433c4d['type'])return;const {data:_0x57ec66}=_0x433c4d;if(_0x57ec66&&'pasteFormat'===_0x57ec66['commandName']){const _0x43b018=[],_0x282e6f=_0x57ec66['commandParams'][0x0];for(const [_0xee127f,_0x233c7d]of Object['entries'](_0x282e6f))_0x43b018['push'](ro(_0x7a8401,_0xee127f,_0x233c7d));return _0x43b018['length']?{'type':'format','content':o(_0x4fef08,'*Set\x20format\x20to:*\x20%0',_0x43b018['join'](',\x20'))}:{'type':'format','content':o(_0x4fef08,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x3328b4,_0xccbdd1,_0x231075){const _0x74019c=_0x3328b4['locale']['t'],_0x321c4b=_0xccbdd1['split'](/(?=[A-Z])/)['join']('\x20'),_0x345f10=_0x74019c(_0x321c4b['charAt'](0x0)['toUpperCase']()+_0x321c4b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x231075)return _0x345f10;if('fontColor'===_0xccbdd1||'fontBackgroundColor'===_0xccbdd1){const _0x2cfb0d=_0x321151(_0x3328b4['config']['get']('fontColor.colors'))['find'](_0x135c62=>_0x135c62['model']==_0x231075);return _0x345f10+'\x20('+(_0x2cfb0d?_0x74019c(_0x2cfb0d['label'])['toLowerCase']():_0x231075)+')';}if('fontSize'===_0xccbdd1&&isNaN(parseFloat(_0x231075))){const _0x38fb39=_0x3328b4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3328b4['config']['get']('fontSize.options'))['find'](_0x23477f=>_0x23477f['model']==_0x231075);return _0x345f10+'\x20('+(_0x38fb39?_0x74019c(_0x38fb39['title'])['toLowerCase']():_0x231075)+')';}return _0x345f10+'\x20('+_0x231075+')';}class ot extends _0x4f24f5{['_headingOptions'];['afterInit'](){const _0xd277a0=this['editor'];if(!_0xd277a0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0xd277a0['config']['get']('heading.options');const _0x37956c=_0xd277a0['locale'],_0x205400=_0xd277a0['plugins']['get']('TrackChangesEditing');_0x205400['enableDefaultAttributesIntegration']('heading');for(const _0x39a515 of this['_headingOptions'])'paragraph'!=_0x39a515['model']&&_0x205400['descriptionFactory']['registerElementLabel'](_0x39a515['model'],_0x55d1bd=>{const _0xfb7cdb=this['_getHeadingLevel'](_0x39a515['model']);return null!==_0xfb7cdb?_0x4cbb9c(_0x55d1bd,_0xfb7cdb):_0x157b3e(_0x55d1bd,_0x39a515['title']);});function _0x4cbb9c(_0x294d1a,_0x5169a5){return o(_0x37956c,'ELEMENT_HEADING',[_0x294d1a,_0x5169a5]);}function _0x157b3e(_0x104a05,_0x5277e8){return o(_0x37956c,'ELEMENT_HEADING_CUSTOM',[_0x104a05,_0x5277e8]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x305842=this['editor'],_0x3493d7=_0x305842['locale'];function _0x54feee(_0x1e4054,_0x2d8352){return o(_0x3493d7,'ELEMENT_HEADING_CUSTOM',[_0x1e4054,_0x2d8352]);}_0x305842['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44d8eb=>{if('formatBlock'!=_0x44d8eb['type'])return;const {data:_0x4a5dd9}=_0x44d8eb;if(_0x4a5dd9&&'heading'==_0x4a5dd9['commandName']){const _0xaef97f=_0x4a5dd9['commandParams'][0x0]['value'],_0x32759d=this['_getHeadingLevel'](_0xaef97f);if(null!==_0x32759d)return{'type':'format','content':o(_0x3493d7,'*Change\x20to:*\x20%0',(_0x1001b5=0x1,_0x10f51f=_0x32759d,o(_0x3493d7,'ELEMENT_HEADING',[_0x1001b5,_0x10f51f])))};const _0x596a07=this['_headingOptions']['find'](_0x5b7cde=>_0x5b7cde['model']===_0xaef97f)['title'];return{'type':'format','content':o(_0x3493d7,'*Change\x20to:*\x20%0',_0x54feee(0x1,_0x596a07))};}var _0x1001b5,_0x10f51f;});}['_getHeadingLevel'](_0x969bf0){const _0x5e563c=_0x969bf0['match'](/^heading(\d+)/);if(_0x5e563c)return _0x5e563c[0x1];const _0x2dbc94=this['_headingOptions']?.['find'](_0x423dd1=>_0x423dd1['model']==_0x969bf0);if(_0x2dbc94&&_0x2dbc94['view']){const _0xaf09f=_0x2dbc94['view'],_0x1cc62b=(_0xaf09f['name']??_0xaf09f)['match'](/^h(\d+)/);if(_0x1cc62b)return _0x1cc62b[0x1];}return null;}}class rt extends _0x4f24f5{['afterInit'](){const _0x289574=this['editor'];if(!_0x289574['plugins']['has']('HighlightEditing'))return;const _0x4df31c=_0x289574['plugins']['get']('TrackChangesEditing'),_0x3057f1=_0x289574['locale'];_0x4df31c['enableDefaultAttributesIntegration']('highlight'),_0x4df31c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3057f1,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x533158=this['editor'],_0x5019cf=_0x533158['locale'];_0x533158['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ea6f=>{if('formatInline'!=_0x41ea6f['type'])return;const {data:_0xa709ef}=_0x41ea6f;if(_0xa709ef&&'highlight'==_0xa709ef['commandName']){const _0x5a1cab=_0x5019cf['t'],_0x233d14=_0xa709ef['commandParams'][0x0]['value'];if(_0x233d14){const _0x292df7=_0x533158['config']['get']('highlight.options')['find'](_0x5d5a7a=>_0x5d5a7a['model']==_0x233d14),_0x459c97=_0x5a1cab(_0x292df7['title'])['toLowerCase']();return{'type':'format','content':o(_0x5019cf,'*Set\x20highlight:*\x20%0',_0x459c97),'color':{'value':_0x292df7['color'],'title':_0x292df7['title']}};}return{'type':'format','content':o(_0x5019cf,'*Remove\x20highlight*',o(_0x5019cf,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x4f24f5{['afterInit'](){const _0x28ac29=this['editor'];if(!_0x28ac29['plugins']['has']('HorizontalLineEditing'))return;_0x28ac29['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x38926b=_0x28ac29['plugins']['get']('TrackChangesEditing'),_0x1bff29=_0x28ac29['locale'];_0x38926b['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3b4bc7=>o(_0x1bff29,'ELEMENT_HORIZONTAL_LINE',_0x3b4bc7));}}class ct extends _0x4f24f5{['afterInit'](){const _0x59010a=this['editor'];if(!_0x59010a['plugins']['has']('HtmlEmbed'))return;const _0x3bccc1=_0x59010a['plugins']['get']('TrackChangesEditing'),_0x4bcb2d=_0x59010a['locale'];_0x3bccc1['descriptionFactory']['registerElementLabel']('rawHtml',_0x1de51a=>o(_0x4bcb2d,'ELEMENT_HTML_EMBED',_0x1de51a)),_0x3bccc1['enableDefaultAttributesIntegration']('htmlEmbed'),_0x3bccc1['descriptionFactory']['registerDescriptionCallback'](_0x1109c0=>{if('attribute'!=_0x1109c0['type'])return;const {data:_0x672614}=_0x1109c0;if(_0x672614&&'value'==_0x672614['key']&&_0x1109c0['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1bdbe4=o(_0x4bcb2d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4bcb2d,'*Change\x20%0\x20content*',_0x1bdbe4)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5b5a6d=this['editor'],_0x38399b=_0x5b5a6d['locale'];_0x5b5a6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf1af37=>{if('formatBlock'!=_0xf1af37['type'])return;const {data:_0x549a0e}=_0xf1af37;if(_0x549a0e&&'htmlEmbed'==_0x549a0e['commandName']){const _0x560322=o(_0x38399b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x38399b,'*Change\x20%0\x20content*',_0x560322)};}});}}class ut extends _0x4f24f5{['afterInit'](){const _0x275a8e=this['editor'];if(!_0x275a8e['plugins']['has']('ImageEditing'))return;const _0x52dd41=_0x275a8e['plugins']['get']('TrackChangesEditing'),_0x1138a5=_0x275a8e['plugins']['get']('ImageUtils'),_0x211ce8=_0x275a8e['locale'];_0x52dd41['enableCommand']('insertImage'),_0x52dd41['descriptionFactory']['registerElementLabel']('imageBlock',_0x5483a9=>o(_0x211ce8,'ELEMENT_IMAGE',_0x5483a9)),_0x52dd41['descriptionFactory']['registerElementLabel']('imageInline',_0x28cd5d=>o(_0x211ce8,'ELEMENT_INLINE_IMAGE',_0x28cd5d)),_0x52dd41['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x211ce8,'ELEMENT_CAPTION')),_0x275a8e['plugins']['has']('ImageUploadEditing')&&_0x52dd41['enableCommand']('uploadImage'),_0x275a8e['plugins']['has']('ImageBlockEditing')&&_0x275a8e['plugins']['has']('ImageInlineEditing')&&(_0x52dd41['enableCommand']('imageTypeInline',(_0x378fda,_0x132654)=>{const _0x4fa153=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']);_0x275a8e['model']['change'](()=>{_0x52dd41['markBlockFormat'](_0x4fa153,{'commandName':'imageTypeInline','commandParams':[_0x132654]},[],'convertBlockImageToInline');});}),_0x52dd41['enableCommand']('imageTypeBlock',(_0x27cf41,_0x4cc079)=>{_0x275a8e['model']['change'](_0x4ceed4=>{let _0x3c9a95=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']),_0xb4e292=_0x4ceed4['createRangeOn'](_0x3c9a95);const _0x4e493c=_0x26759d['fromPosition'](_0xb4e292['start'],'toPrevious'),_0x263a6f=_0x26759d['fromPosition'](_0xb4e292['end'],'toNext');_0x52dd41['forceDefaultExecution'](()=>_0x27cf41(_0x4cc079)),_0x3c9a95=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']),_0xb4e292=_0x4ceed4['createRangeOn'](_0x3c9a95);const _0x3ac9a3=_0x4ceed4['createRange'](_0x4e493c,_0x263a6f);_0x4e493c['detach'](),_0x263a6f['detach'](),_0x52dd41['markBlockFormat'](_0x3c9a95,{'commandName':'imageTypeInline','commandParams':[_0x4cc079]},[],'convertInlineImageToBlock'),_0x3ac9a3['start']['isBefore'](_0xb4e292['start'])&&_0x52dd41['markInsertion'](_0x4ceed4['createRange'](_0x3ac9a3['start'],_0xb4e292['start']),'convertInlineImageToBlock'),_0xb4e292['end']['isBefore'](_0x3ac9a3['end'])&&_0x52dd41['markInsertion'](_0x4ceed4['createRange'](_0xb4e292['end'],_0x3ac9a3['end']),'convertInlineImageToBlock');});}),_0x52dd41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x52dd41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x52dd41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x52dd41['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x52dd41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x52dd41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x5cb6d8])=>{const _0xc00028=_0x52dd41['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x328be4=_0x5cb6d8['start'],_0x194c32=_0x5cb6d8['end'];const _0x4eb42b=_0x275a8e['model']['schema']['getNearestSelectionRange'](_0x328be4,'backward'),_0x2b137b=_0x275a8e['model']['schema']['getNearestSelectionRange'](_0x194c32,'forward');_0x4eb42b['isCollapsed']&&(_0x328be4=_0x4eb42b['start']),_0x2b137b['isCollapsed']&&(_0x194c32=_0x2b137b['end']),_0xc00028([_0x275a8e['model']['createRange'](_0x328be4,_0x194c32)]);}),_0x52dd41['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x250a4d),_0x52dd41['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x250a4d)),_0x275a8e['plugins']['has']('ImageCaptionEditing')&&(_0x52dd41['enableCommand']('toggleImageCaption',(_0x24428a,_0xea34a2)=>{const _0x2bab6f=_0x275a8e['plugins']['get']('ImageCaptionUtils');let _0x4652ef=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']),_0x35d642=_0x2bab6f['getCaptionFromImageModelElement'](_0x4652ef);_0x275a8e['model']['change'](()=>{if(_0x35d642)return void _0x52dd41['markDeletion'](_0x275a8e['model']['createRangeOn'](_0x35d642));const _0x4870db=_0x1138a5['isBlockImage'](_0x4652ef);_0x24428a(_0xea34a2),_0x4652ef=_0x1138a5['getClosestSelectedImageElement'](_0x275a8e['model']['document']['selection']),_0x35d642=_0x2bab6f['getCaptionFromImageModelElement'](_0x4652ef),_0x52dd41['markInsertion'](_0x275a8e['model']['createRangeOn'](_0x35d642),_0x4870db?null:'imageCaption');});}),_0x52dd41['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x250a4d));const _0x393825=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3778a1(_0x327a02,_0x1f8b41){const _0x32a5ef=_0x393825['findIndex'](({type:_0x5efc02,subType:_0xf7a96d})=>_0x327a02['type']==_0x5efc02&&_0x327a02['subType']==_0xf7a96d),_0x30f75f=_0x393825['findIndex'](({type:_0x5a91ff,subType:_0x1ce11b})=>_0x1f8b41['type']==_0x5a91ff&&_0x1f8b41['subType']==_0x1ce11b);if(_0x32a5ef<0x0||_0x30f75f<0x0)return!0x1;const _0x28fc7d=_0x327a02['getFirstRange'](),_0x20774a=_0x1f8b41['getFirstRange']();if((0x0==_0x32a5ef||0x1==_0x32a5ef)&&0x2==_0x30f75f&&_0x28fc7d['isIntersecting'](_0x20774a))return!0x0;if(0x2==_0x32a5ef&&0x3==_0x30f75f){const _0x5105ee=_0x52dd41['_findSuggestions'](_0x28fc7d,'insertion')['filter'](({suggestion:_0x372a5b,meta:_0x17f27e})=>_0x17f27e['isOwn']&&'convertInlineImageToBlock'==_0x372a5b['subType']);if(_0x5105ee['length']>0x1&&_0x20774a['end']['isEqual'](_0x28fc7d['start']))return!0x0;if(0x1==_0x5105ee['length']&&(_0x28fc7d['start']['isEqual'](_0x20774a['end'])||_0x28fc7d['end']['isEqual'](_0x20774a['start'])))return!0x0;}if(0x3==_0x32a5ef&&0x3==_0x30f75f&&_0x28fc7d['start']['isBefore'](_0x20774a['start'])){const _0x1e33f1=_0x28fc7d['end']['nodeAfter'],_0x49c5eb=_0x20774a['start']['nodeBefore'];return _0x1138a5['isBlockImage'](_0x1e33f1)&&_0x1e33f1===_0x49c5eb;}return!0x1;}function _0x250a4d(_0x2efe55,_0x4d689a){return _0x3778a1(_0x2efe55,_0x4d689a)?[_0x2efe55,_0x4d689a]:_0x3778a1(_0x4d689a,_0x2efe55)?[_0x4d689a,_0x2efe55]:null;}_0x275a8e['plugins']['has']('ImageResize')&&(_0x52dd41['enableDefaultAttributesIntegration']('resizeImage'),_0x52dd41['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x211ce8,'FORMAT_IMAGE_SIZE'))),_0x275a8e['plugins']['has']('ImageTextAlternativeEditing')&&_0x52dd41['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x275a8e['plugins']['has']('PictureEditing')&&_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x779c8c=>{if('attribute'!=_0x779c8c['type'])return;const {data:_0x5c484f}=_0x779c8c;return _0x5c484f&&'sources'==_0x5c484f['key']?{'type':'format','content':''}:void 0x0;}),_0x275a8e['plugins']['has']('ImageSizeAttributes')&&_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x457c44=>{if('attribute'!=_0x457c44['type'])return;const {data:_0x537abf}=_0x457c44;return!_0x537abf||'width'!=_0x537abf['key']&&'height'!=_0x537abf['key']?void 0x0:{'type':'format','content':''};}),_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x29f852=>{if(!!_0x393825['find'](({type:_0x4977ac,subType:_0x59b5b1})=>_0x29f852['type']==_0x4977ac&&_0x29f852['subType']==_0x59b5b1))return _0x29f852['previous']?{}:void 0x0;}),_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x147396=>{if('insertion'==_0x147396['type']||'deletion'==_0x147396['type']){const _0x1b0c12=_0x147396['getContainedElement']();if(_0x1b0c12&&_0x1b0c12['is']('element','caption'))return{'type':'insertion'==_0x147396['type']?'addObject':'removeObject','element':_0x1b0c12,'quantity':0x1};}}),_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x40b11e=>'formatBlock'==_0x40b11e['type']&&'convertInlineImageToBlock'==_0x40b11e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x40b11e['type']&&'convertBlockImageToInline'==_0x40b11e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x52dd41['descriptionFactory']['registerDescriptionCallback'](_0x515ae6=>{if('attribute'!=_0x515ae6['type'])return;const {data:_0x57d0f6}=_0x515ae6;if(!_0x57d0f6||'alt'!=_0x57d0f6['key'])return;const _0xbdd471=_0x57d0f6['newValue'];return _0xbdd471?{'type':'format','content':o(_0x211ce8,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xbdd471+'\x22')}:{'type':'format','content':o(_0x211ce8,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cc8c1=this['editor'],_0x41a37b=_0x3cc8c1['locale'];_0x3cc8c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45c5a1=>{if('formatBlock'!=_0x45c5a1['type']&&'formatInline'!=_0x45c5a1['type'])return;const {data:_0x41c1c5}=_0x45c5a1;if(_0x41c1c5){if('imageTextAlternative'==_0x41c1c5['commandName']){const _0x76d23a=_0x41c1c5['commandParams'][0x0]['newValue'];return _0x76d23a?{'type':'format','content':o(_0x41a37b,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x76d23a+'\x22')}:{'type':'format','content':o(_0x41a37b,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41c1c5['commandName']){const _0x5d13ff=_0x41c1c5['commandParams'][0x0]['width'];return _0x5d13ff?{'type':'format','content':o(_0x41a37b,'*Set\x20image\x20width:*\x20%0',_0x5d13ff)}:{'type':'format','content':o(_0x41a37b,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5f0896=this['editor']['locale'],_0x2d431f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2d431f['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2d431f['descriptionFactory']['registerDescriptionCallback'](_0x3d4a44=>{if('attribute'!=_0x3d4a44['type'])return;const {data:_0x5bb2c3}=_0x3d4a44;return _0x5bb2c3&&'src'==_0x5bb2c3['key']?_0x5bb2c3['newValue']&&_0x5bb2c3['oldValue']?{'type':'format','content':o(_0x5f0896,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xff918e=this['editor']['plugins']['get']('TrackChangesEditing');_0xff918e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xff918e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xff918e['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xff918e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b760e=this['editor'],_0x124c77=_0x3b760e['locale'];_0x3b760e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c97e7=>{if('formatBlock'!=_0x4c97e7['type']&&'formatInline'!=_0x4c97e7['type'])return;const {data:_0x40f9a3}=_0x4c97e7;if(!_0x40f9a3||'replaceImageSource'!=_0x40f9a3['commandName'])return;return{'type':'format','content':o(_0x124c77,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x4f24f5{['afterInit'](){const _0x49275f=this['editor'];if(!_0x49275f['plugins']['has']('ImageStyleEditing'))return;const _0x551e5a=_0x49275f['plugins']['get']('TrackChangesEditing'),_0x390cb1=_0x49275f['plugins']['get']('ImageUtils'),_0x23279e={};_0x551e5a['enableCommand']('imageStyle',(_0x35bd72,_0x1d1e23)=>{const _0xe4c5fe=_0x49275f['plugins']['get']('Users')['me'],_0x3550d5=_0x49275f['commands']['get']('imageStyle');let _0x2c2675=_0x390cb1['getClosestSelectedImageElement'](_0x49275f['model']['document']['selection']),_0xb10cb1=_0x49275f['model']['createRangeOn'](_0x2c2675),_0x3b7511=_0x3550d5['value'];if(_0x3b7511==_0x1d1e23['value'])return;const _0x4e34a1={'commandName':'imageStyle','commandParams':[_0x1d1e23],'formatGroupId':_0x58b4bb()};_0x49275f['model']['change'](()=>{if(_0x551e5a['getSuggestions']()['filter'](_0x44ffc6=>_0x44ffc6['isInContent']&&_0xe4c5fe==_0x44ffc6['author']&&('formatBlock'==_0x44ffc6['type']||'formatInline'==_0x44ffc6['type'])&&('imageStylePreApply'==_0x44ffc6['subType']||'imageStylePostApply'==_0x44ffc6['subType'])&&_0x44ffc6['getFirstRange']()['isEqual'](_0xb10cb1))['forEach'](_0x400f2d=>_0x551e5a['discardSuggestion'](_0x400f2d['head'])),_0x2c2675=_0x390cb1['getClosestSelectedImageElement'](_0x49275f['model']['document']['selection']),_0xb10cb1=_0x49275f['model']['createRangeOn'](_0x2c2675),_0x3550d5['refresh'](),_0x49275f['commands']['get']('imageTypeInline')['refresh'](),_0x49275f['commands']['get']('imageTypeBlock')['refresh'](),_0x3b7511=_0x3550d5['value'],_0x3b7511!=_0x1d1e23['value'])return _0x390cb1['isInlineImage'](_0x2c2675)&&_0x3550d5['shouldConvertImageType'](_0x1d1e23['value'],_0x2c2675)?(_0x35bd72({..._0x1d1e23,'setImageSizes':!0x1}),_0x2c2675=_0x390cb1['getClosestSelectedImageElement'](_0x49275f['model']['document']['selection']),void _0x551e5a['markBlockFormat'](_0x2c2675,{..._0x4e34a1,'commandReversedParams':[{'value':_0x3b7511||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x390cb1['isBlockImage'](_0x2c2675)?_0x551e5a['markBlockFormat'](_0x2c2675,_0x4e34a1,[],'imageStylePostApply'):_0x551e5a['markInlineFormat'](_0xb10cb1,_0x4e34a1,'imageStylePostApply'));});});for(const _0xea2228 of _0x49275f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x23279e[_0xea2228['name']]=_0xea2228['title']['toLowerCase']();_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4a44d8])=>{_0x390cb1['setImageNaturalSizeAttributes'](_0x4a44d8['getContainedElement']());}),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x283e2e,_0x520ce1)=>{_0x551e5a['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x283e2e,{'commandName':_0x520ce1['commandName'],'commandParams':_0x520ce1['commandReversedParams']});}),_0x551e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3ff9f5,_0xb6cf6c){if(_0x4ee50d(_0x3ff9f5,_0xb6cf6c))return[_0x3ff9f5,_0xb6cf6c];if(_0x4ee50d(_0xb6cf6c,_0x3ff9f5))return[_0xb6cf6c,_0x3ff9f5];return null;});const _0x8aa7f5=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ee50d(_0x2f4826,_0x2683c1){const _0x21060b=_0x8aa7f5['findIndex'](({type:_0x14ec51,subType:_0x1116e4})=>_0x2f4826['type']==_0x14ec51&&_0x2f4826['subType']==_0x1116e4),_0x596ed8=_0x8aa7f5['findIndex'](({type:_0x32e300,subType:_0x48de05})=>_0x2683c1['type']==_0x32e300&&_0x2683c1['subType']==_0x48de05);if(_0x21060b<0x0||_0x596ed8<0x0)return!0x1;const _0x4941f6=_0x2f4826['getFirstRange'](),_0x393bd1=_0x2683c1['getFirstRange']();if((0x0==_0x21060b||0x1==_0x21060b)&&0x2==_0x596ed8&&_0x4941f6['isIntersecting'](_0x393bd1))return!0x0;if(0x2==_0x21060b&&0x3==_0x596ed8){const _0x4facc5=_0x551e5a['_findSuggestions'](_0x4941f6,'insertion')['filter'](({suggestion:_0x207085,meta:_0x1d3c28})=>_0x1d3c28['isOwn']&&'convertInlineImageToBlock'==_0x207085['subType']);if(_0x4facc5['length']>0x1&&_0x393bd1['end']['isEqual'](_0x4941f6['start']))return!0x0;if(0x1==_0x4facc5['length']&&(_0x4941f6['start']['isEqual'](_0x393bd1['end'])||_0x4941f6['end']['isEqual'](_0x393bd1['start'])))return!0x0;}if(0x3==_0x21060b&&0x3==_0x596ed8&&_0x4941f6['start']['isBefore'](_0x393bd1['start'])){const _0x395b4e=_0x4941f6['end']['nodeAfter'],_0x3bd54b=_0x393bd1['start']['nodeBefore'];return _0x390cb1['isBlockImage'](_0x395b4e)&&_0x395b4e===_0x3bd54b;}return!0x1;}_0x49275f['model']['document']['registerPostFixer'](()=>{let _0x4718da=!0x1;const _0x17a742=Array['from'](_0x49275f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8da75a,data:_0x92e36e}of _0x17a742){const {group:_0x25a363,type:_0x271557,subType:_0x20ae62,id:_0x397c56}=_0x551e5a['_splitMarkerName'](_0x8da75a);if('suggestion'==_0x25a363&&_0x551e5a['hasSuggestion'](_0x397c56)){if('formatBlock'==_0x271557&&('imageStylePreApply'==_0x20ae62||'imageStylePostApply'==_0x20ae62)){const _0x3d0055=_0x551e5a['getSuggestion'](_0x397c56);if(_0x92e36e['newRange']){const _0x3793ee=_0x3d0055['getFirstRange']()['getContainedElement']();if(_0x390cb1['isBlockImage'](_0x3793ee))continue;_0x551e5a['discardSuggestion'](_0x3d0055),_0x4718da=!0x0;}}if('insertion'==_0x271557&&'imageCaption'==_0x20ae62&&!_0x92e36e['newRange']){const _0x19489f=_0x551e5a['getSuggestion'](_0x397c56);_0x19489f['next']&&_0x19489f['next']['isInContent']&&(_0x551e5a['discardSuggestion'](_0x19489f['next']),_0x4718da=!0x0);}}}return _0x4718da;}),this['_registerLegacyDescription'](_0x23279e);}['_registerLegacyDescription'](_0x51e112){const _0x4a24f2=this['editor'],_0x2d03a3=_0x4a24f2['locale'];_0x4a24f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3abdcd=>{if('formatBlock'!=_0x3abdcd['type']&&'formatInline'!=_0x3abdcd['type'])return;const {data:_0x1adf55}=_0x3abdcd;if(!_0x1adf55||'imageStyle'!=_0x1adf55['commandName'])return;const _0x4a74c0=_0x1adf55['commandParams'][0x0]['value'];return _0x59047d('side'===_0x4a74c0?o(_0x2d03a3,'FORMAT_SIDE_IMAGE'):_0x51e112[_0x4a74c0]||_0x4a74c0);function _0x59047d(_0x44ca6e){return{'type':'format','content':o(_0x2d03a3,'*Format:*\x20%0',_0x44ca6e)};}});}}class lt extends _0x4f24f5{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x472954){super(_0x472954),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x38e3bd=this['editor'],_0x25880d=_0x38e3bd['commands']['get']('importWord'),_0x458ddf=_0x38e3bd['commands']['get']('trackChanges');_0x25880d&&(_0x25880d['on']('execute',(_0x4b2106,[,_0x5621c5])=>{this['_trackChangesValueDuringImport']=_0x458ddf['value'],_0x5621c5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x25880d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x25880d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x458ddf['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x38e3bd['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4fca44,_0x4163ce){const {suggestions:_0x2d1477}=_0x4163ce,_0x4a89d8=this['editor']['commands']['get']('trackChanges'),_0x3003cf=_0x4a89d8['value'];this['_trackChangesValueDuringImport']!==_0x3003cf&&(_0x4a89d8['execute'](),this['_trackChangesExecuted']=!0x0),_0x2d1477&&_0x2d1477['forEach'](({id:_0x34aab2,type:_0x4780cd,author:_0x137ab6,created_at:_0x154af7})=>{const _0x3bccbd={'id':_0x34aab2,'type':_0x4780cd,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x137ab6,'createdAt':_0x154af7?new Date(_0x154af7):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3bccbd);});}}class gt extends _0x4f24f5{['afterInit'](){const _0x12aad7=this['editor'],_0x3621c9=_0x12aad7['plugins']['get']('TrackChangesEditing');if(_0x12aad7['plugins']['has']('IndentEditing')&&(_0x3621c9['enableCommand']('indent'),_0x3621c9['enableCommand']('outdent')),_0x12aad7['plugins']['has']('IndentBlock')){for(const _0x6d2cd7 of['indentBlock','outdentBlock'])_0x3621c9['enableDefaultAttributesIntegration'](_0x6d2cd7);if(_0x12aad7['plugins']['has']('ListEditing')){for(const _0x158985 of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0x3621c9['enableDefaultAttributesIntegration'](_0x158985);}}const _0x19f2eb=_0x12aad7['locale'];_0x3621c9['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x19f2eb,'FORMAT_INDENT')),_0x3621c9['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x19f2eb,'FORMAT_INDENT')),_0x3621c9['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x19f2eb,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43491b=this['editor'],_0x121ca0=_0x43491b['locale'],_0x1383f5=_0x43491b['plugins']['get']('TrackChangesEditing');_0x1383f5['descriptionFactory']['registerDescriptionCallback'](_0x761e05=>{if('formatBlock'!=_0x761e05['type'])return;const {data:_0x555c8a}=_0x761e05;if(!_0x555c8a)return;if('indentBlock'!=_0x555c8a['commandName']&&'outdentBlock'!=_0x555c8a['commandName'])return;const _0xb9a566=_0x761e05['getItems']()[0x0],_0x3a922d=_0x1383f5['descriptionFactory']['getItemLabel'](_0xb9a566);return'indentBlock'==_0x555c8a['commandName']?{'type':'format','content':o(_0x121ca0,'*Indent:*\x20%0',_0x3a922d)}:'outdentBlock'==_0x555c8a['commandName']?{'type':'format','content':o(_0x121ca0,'*Outdent:*\x20%0',_0x3a922d)}:void 0x0;});}}class mt extends _0x4f24f5{static get['requires'](){return[_0x15ff96];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x4f24f5{['afterInit'](){const _0x1e7d29=this['editor'];if(!_0x1e7d29['plugins']['has']('LinkEditing'))return;const _0x4e3bf5=_0x1e7d29['plugins']['get']('TrackChangesEditing'),_0x34dec4=_0x1e7d29['commands']['get']('link');_0x4e3bf5['enableDefaultAttributesIntegration']('link'),_0x4e3bf5['enableDefaultAttributesIntegration']('unlink');for(const _0xeb4c33 of _0x34dec4['manualDecorators'])_0x4e3bf5['descriptionFactory']['registerAttributeLabel'](_0xeb4c33['id'],'link\x20('+_0xeb4c33['label']['toLowerCase']()+')');_0x4e3bf5['descriptionFactory']['registerDescriptionCallback'](_0x4e592d=>{if('attribute'!=_0x4e592d['type'])return;const {data:_0x4f4759}=_0x4e592d;if(!_0x4f4759||'linkHref'!=_0x4f4759['key'])return;const _0x149e65=_0x4f4759['newValue'],_0x19567e=_0x1e7d29['locale'];return{'type':'format','content':null==_0x149e65?o(_0x19567e,'*Remove\x20link*'):o(_0x19567e,'*Set\x20link:*\x20%0','\x22'+_0x149e65+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46f970=this['editor'],_0x309aca=_0x46f970['locale'];_0x46f970['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11fbae=>{if('formatInline'!=_0x11fbae['type'])return;const {data:_0x2977ef}=_0x11fbae;if(_0x2977ef){if('link'==_0x2977ef['commandName']){const _0x4d0784=_0x2977ef['commandParams'][0x0];return{'type':'format','content':o(_0x309aca,'*Set\x20link:*\x20%0','\x22'+_0x4d0784+'\x22')};}return'unlink'==_0x2977ef['commandName']?{'type':'format','content':o(_0x309aca,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x4f24f5{['afterInit'](){const _0x5d416d=this['editor'],_0x1788d6=_0x5d416d['locale'];if(!_0x5d416d['plugins']['has']('LegacyListEditing'))return;const _0x551382=_0x5d416d['plugins']['get']('TrackChangesEditing'),_0x2313ed=_0x5d416d['plugins']['has']('LegacyTodoListEditing');function _0x46ec3b(_0x20ea31){return()=>{const _0x5de5b3=_0x5d416d['model']['document']['selection'],_0x4c8eb4=_0x5d416d['commands']['get'](_0x20ea31);if(_0x4c8eb4['value'])return void _0x5d416d['execute']('paragraph',{});const _0x4b5131=_0x20ea31['slice'](0x0,-0x4),_0x3b61f9=function(_0x38ad67,_0x3a2a0a,_0x5b4fc0){let _0x2547a0=Array['from'](_0x38ad67)['filter'](_0x274fb1=>function(_0x5cea1f,_0x227f42){return _0x227f42['checkChild'](_0x5cea1f['parent'],'listItem')&&!_0x227f42['isObject'](_0x5cea1f);}(_0x274fb1,_0x5b4fc0));_0x2547a0=_0x2547a0['filter'](_0x42157b=>!_0x42157b['is']('element','listItem')||_0x42157b['getAttribute']('listType')!=_0x3a2a0a);const _0x1f0792=new Set();for(const _0x2d9fef of _0x2547a0)_0x2d9fef['is']('element','listItem')?_0x1f0792['add'](Le(_0x2d9fef)):_0x1f0792['add'](_0x2d9fef);return Array['from'](_0x1f0792);}(_0x5de5b3['getSelectedBlocks'](),_0x4b5131,_0x5d416d['model']['schema']);_0x5d416d['model']['change'](()=>{for(const _0xb4a9f of _0x3b61f9)_0x551382['markBlockFormat'](_0xb4a9f,{'commandName':_0x20ea31,'commandParams':[{'forceValue':!_0x4c8eb4['value']}],'formatGroupId':'blockName'},Ee(_0xb4a9f));});};}function _0x594126(_0xbbbbf7){return()=>{const _0x4fe926=function(_0x5827bc){let _0x1eb588=Array['from'](_0x5827bc);const _0x42d00e=_0x1eb588['findIndex'](_0x253303=>'listItem'!=_0x253303['name']);return _0x42d00e>-0x1&&(_0x1eb588=_0x1eb588['slice'](0x0,_0x42d00e)),_0x1eb588;}(_0x5d416d['model']['document']['selection']['getSelectedBlocks']()),_0x429873=_0x5d416d['model']['createRange'](_0x5d416d['model']['createPositionAt'](_0x4fe926[0x0],'before'),_0x5d416d['model']['createPositionAt'](_0x4fe926[_0x4fe926['length']-0x1],'end'));_0x5d416d['model']['change'](()=>{_0x551382['markBlockFormat'](_0x429873,{'commandName':_0xbbbbf7,'commandParams':[],'formatGroupId':'listIndent'},function(_0x497852){const _0x30589e=new Set();for(const _0x239eeb of _0x497852){let _0x516889=_0x239eeb['nextSibling'];for(;_0x516889&&_0x516889['getAttribute']('listIndent')>_0x239eeb['getAttribute']('listIndent');)_0x30589e['add'](_0x516889),_0x516889=_0x516889['nextSibling'];}return Array['from'](_0x30589e);}(_0x4fe926));});};}_0x551382['enableCommand']('numberedList',_0x46ec3b('numberedList')),_0x551382['enableCommand']('bulletedList',_0x46ec3b('bulletedList')),_0x2313ed&&_0x551382['enableCommand']('todoList',_0x46ec3b('todoList')),_0x551382['enableCommand']('indentList',_0x594126('indentList')),_0x551382['enableCommand']('outdentList',_0x594126('outdentList')),_0x2313ed&&_0x551382['enableCommand']('checkTodoList',()=>{const _0x44c037=_0x5d416d['commands']['get']('checkTodoList'),_0x3c6123=Array['from'](_0x44c037['_selectedElements']);_0x3c6123['filter'](_0x3df13d=>_0x3df13d['getAttribute']('todoListChecked')!=_0x44c037['value']),_0x5d416d['model']['change'](()=>{for(const _0x1ce04b of _0x3c6123)_0x551382['markBlockFormat'](_0x1ce04b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x44c037['value']}]});});}),_0x551382['descriptionFactory']['registerElementLabel']('listItem',_0x1c690c=>o(_0x1788d6,'ELEMENT_LIST_ITEM',_0x1c690c)),_0x551382['descriptionFactory']['registerDescriptionCallback'](_0xd53230=>{if('formatBlock'!=_0xd53230['type']&&'formatInline'!=_0xd53230['type'])return;const {data:_0x23318a}=_0xd53230;if(_0x23318a){if('numberedList'==_0x23318a['commandName']||'bulletedList'==_0x23318a['commandName']||'todoList'==_0x23318a['commandName'])switch(_0x23318a['commandName']['replace']('List','')){case'bulleted':return _0xc583a3(o(_0x1788d6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc583a3(o(_0x1788d6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc583a3(o(_0x1788d6,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23318a['commandName'])return{'type':'format','content':o(_0x1788d6,'*Indent:*\x20%0',o(_0x1788d6,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23318a['commandName'])return{'type':'format','content':o(_0x1788d6,'*Outdent:*\x20%0',o(_0x1788d6,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23318a['commandName'])return _0x23318a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1788d6,'*Check\x20item*')}:{'type':'format','content':o(_0x1788d6,'*Uncheck\x20item*')};}function _0xc583a3(_0x1af7e6){return{'type':'format','content':o(_0x1788d6,'*Change\x20to:*\x20%0',_0x1af7e6)};}});}}function Le(_0x121c0c){const _0x4289f9=_0x121c0c['getAttribute']('listIndent');if(0x0==_0x4289f9)return _0x121c0c;let _0x3b7a96=_0x121c0c;for(;_0x121c0c['previousSibling']&&_0x121c0c['previousSibling']['is']('element','listItem');){const _0x32ea16=_0x121c0c['previousSibling']['getAttribute']('listIndent');if(_0x32ea16==_0x4289f9)_0x3b7a96=_0x121c0c['previousSibling'];else{if(_0x32ea16<_0x4289f9)break;}_0x121c0c=_0x121c0c['previousSibling'];}return _0x3b7a96;}function Ee(_0x505303){const _0x28faf5=[];if(_0x505303['is']('element','listItem')&&_0x505303['getAttribute']('listIndent')>0x0){let _0x292d81=_0x505303['nextSibling'];for(;_0x292d81&&'listItem'==_0x292d81['name']&&_0x292d81['getAttribute']('listIndent')==_0x505303['getAttribute']('listIndent');)_0x28faf5['push'](_0x292d81),_0x292d81=_0x292d81['nextSibling'];}return _0x28faf5;}class wt extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x53f398=this['editor']['config']['get']('list.properties'),_0x5a9f6e=this['editor']['plugins']['get']('TrackChangesEditing');_0x53f398['styles']&&_0x5a9f6e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x53f398['reversed']&&_0x5a9f6e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x53f398['startIndex']&&_0x5a9f6e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5a9f6e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4fced1,_0x40c72c={}){const _0x520c10=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f4948=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x520c10['markMultiRangeBlockFormat'](_0x5f4948,{'commandName':'listStyle','commandParams':[{'type':_0x40c72c['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xb6cb7e,_0x216e0b={}){const _0x591b24=this['editor']['plugins']['get']('TrackChangesEditing'),_0x402b80=this['_getSuggestionBlocks'](_0x30951c=>_0x30951c['is']('element','listItem')&&'numbered'===_0x30951c['getAttribute']('listType'));if(_0x402b80['length']<0x1)return;const _0x576e2a=_0x402b80['map'](_0x236885=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x236885,'before'),this['editor']['model']['createPositionAt'](_0x236885,0x0)));this['editor']['model']['change'](()=>{_0x591b24['markMultiRangeBlockFormat'](_0x576e2a,{'commandName':'listReversed','commandParams':[{'reversed':_0x216e0b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2dcff7,_0x2ff320={}){const _0x2a98d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42239e=this['_getSuggestionBlocks'](_0x37d44e=>_0x37d44e['is']('element','listItem')&&'numbered'===_0x37d44e['getAttribute']('listType'));if(_0x42239e['length']<0x1)return;const _0x11eb10=_0x42239e['map'](_0x266765=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x266765,'before'),this['editor']['model']['createPositionAt'](_0x266765,0x0)));this['editor']['model']['change'](()=>{_0x2a98d8['markMultiRangeBlockFormat'](_0x11eb10,{'commandName':'listStart','commandParams':[{'startIndex':_0x2ff320['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2445af){if('formatBlock'!=_0x2445af['type']&&'formatInline'!=_0x2445af['type'])return;const _0x1c117b=this['editor']['locale'],{data:_0x52c157}=_0x2445af;if(!_0x52c157)return;let _0x1da998,_0x51552b;switch(_0x52c157['commandName']){case'listStyle':_0x1da998='*Change\x20to:*\x20%0',_0x51552b={'type':'format','content':o(_0x1c117b,_0x1da998,o(_0x1c117b,this['_getTranslationKeyForListStyle'](_0x52c157['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1da998=_0x52c157['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x51552b={'type':'format','content':o(_0x1c117b,_0x1da998)};break;case'listStart':_0x1da998='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x51552b={'type':'format','content':o(_0x1c117b,_0x1da998,_0x52c157['commandParams'][0x0]['startIndex'])};}return _0x51552b;}['_getSuggestionBlocksForListStyle'](){const _0x4dfcac=this['editor']['plugins']['get']('LegacyListUtils');let _0x3aebb8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3aebb8[0x0]?.['is']('element','listItem')&&_0x3aebb8['unshift'](..._0x4dfcac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3aebb8[_0x3aebb8['length']-0x1]?.['is']('element','listItem')&&_0x3aebb8['push'](..._0x4dfcac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3aebb8=[...new Set(_0x3aebb8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3aebb8=_0x3aebb8['filter'](_0x242f53=>_0x242f53['is']('element','listItem'))),_0x3aebb8;}['_getSuggestionBlocks'](_0x11e194){const _0x39110a=this['editor']['plugins']['get']('LegacyListUtils');let _0x572ce8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x11e194)['map'](_0x304684=>{const _0x265a27=this['editor']['model']['createPositionAt'](_0x304684,0x0);return[..._0x39110a['getSiblingNodes'](_0x265a27,'backward'),..._0x39110a['getSiblingNodes'](_0x265a27,'forward')];})['flat']();return _0x572ce8=[...new Set(_0x572ce8)],_0x572ce8;}['_getTranslationKeyForListStyle'](_0x1aa330){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1aa330)||'default')['toUpperCase']()+'_LIST_'+_0x1aa330['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x4f24f5{['afterInit'](){const _0x48d8db=this['editor'];if(!_0x48d8db['plugins']['has']('MediaEmbedEditing'))return;const _0xcd7625=_0x48d8db['plugins']['get']('TrackChangesEditing'),_0x35c025=_0x48d8db['locale'];_0xcd7625['enableCommand']('mediaEmbed'),_0xcd7625['descriptionFactory']['registerElementLabel']('media',_0x3b5cd0=>o(_0x35c025,'ELEMENT_MEDIA',_0x3b5cd0));}}class bt extends _0x4f24f5{['afterInit'](){const _0x175eba=this['editor'];_0x175eba['plugins']['has']('MentionEditing')&&_0x175eba['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x4f24f5{['afterInit'](){const _0x41a8f4=this['editor'];if(!_0x41a8f4['plugins']['has']('MergeFieldsEditing'))return;const _0x3b99d5=_0x41a8f4['plugins']['get']('TrackChangesEditing'),_0x1adbb1=_0x41a8f4['locale'];_0x3b99d5['enableCommand']('insertMergeField'),_0x3b99d5['enableCommand']('insertMergeFieldBlock'),_0x3b99d5['enableCommand']('insertMergeFieldImage'),_0x3b99d5['descriptionFactory']['registerElementLabel']('mergeField',_0x185ac6=>o(_0x1adbb1,'ELEMENT_MERGE_FIELD',_0x185ac6)),_0x3b99d5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xc5ea82=>o(_0x1adbb1,'ELEMENT_MERGE_FIELD',_0xc5ea82)),_0x3b99d5['descriptionFactory']['registerDescriptionCallback'](_0x433731=>{if('insertion'!=_0x433731['type']&&'deletion'!=_0x433731['type'])return;const _0x402a3a=_0x433731['getContainedElement']();if(null==_0x402a3a)return;const _0x5ab753=_0x41a8f4['plugins']['get']('MergeFieldsEditing');let _0x203727;switch(_0x5ab753['getMergeFieldType'](_0x402a3a)){case null:return;case'image':{const _0x308510=_0x5ab753['unwrapAffixes'](_0x402a3a['getAttribute']('src'));_0x203727=_0x5ab753['getLabel'](_0x308510)||_0x308510;break;}default:{const _0x3dc1fd=_0x402a3a['getAttribute']('id');_0x203727=_0x5ab753['getLabel'](_0x3dc1fd)||_0x3dc1fd;break;}}return'insertion'==_0x433731['type']?{'type':'insertion','content':o(_0x1adbb1,'*Insert:*\x20%0','\x22'+_0x203727+'\x22\x20'+o(_0x1adbb1,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1adbb1,'*Remove:*\x20%0','\x22'+_0x203727+'\x22\x20'+o(_0x1adbb1,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x4f24f5{['afterInit'](){const _0x4c89ce=this['editor'],_0x52f36f=_0x4c89ce['plugins']['get']('TrackChangesEditing');_0x4c89ce['plugins']['has']('MultiLevelList')&&(_0x52f36f['enableDefaultAttributesIntegration']('multiLevelList'),_0x52f36f['descriptionFactory']['registerDescriptionCallback'](_0xd6c4c5=>this['handleDescriptions'](_0xd6c4c5)));}['handleDescriptions'](_0xaefcd){const _0x3bb05e=this['editor']['locale'],{data:_0xb2bca}=_0xaefcd,_0xec2436={'type':'format','content':''};if(_0xb2bca&&'listMarkerStyle'==_0xb2bca['key']){if(!_0xb2bca['oldValue'])return{'type':'format','content':o(_0x3bb05e,'*Set\x20format:*\x20%0',o(_0x3bb05e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb2bca['newValue']+')'};if(!_0xb2bca['newValue']){let _0x452723=_0xaefcd['head'];for(;_0x452723;){if(_0x452723['data']&&'listType'==_0x452723['data']['key']&&_0x452723['data']['newValue'])return _0xec2436;_0x452723=_0x452723['next'];}return{'type':'format','content':o(_0x3bb05e,'*Remove\x20format:*\x20%0',o(_0x3bb05e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xb2bca['oldValue']+')'};}}}}class St extends _0x4f24f5{['afterInit'](){const _0x171ebc=this['editor'];if(!_0x171ebc['plugins']['has']('PageBreakEditing'))return;_0x171ebc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x548c3b=_0x171ebc['plugins']['get']('TrackChangesEditing'),_0x49fa46=_0x171ebc['locale'];_0x548c3b['descriptionFactory']['registerElementLabel']('pageBreak',_0x5ab4e6=>o(_0x49fa46,'ELEMENT_PAGE_BREAK',_0x5ab4e6));}}class It extends _0x4f24f5{['afterInit'](){const _0x2c3d9d=this['editor'];if(!_0x2c3d9d['plugins']['has']('Paragraph'))return;const _0x5546c3=_0x2c3d9d['locale'],_0x427f95=_0x2c3d9d['plugins']['get']('TrackChangesEditing');_0x427f95['descriptionFactory']['registerElementLabel']('paragraph',_0x2d4ad7=>o(_0x5546c3,'ELEMENT_PARAGRAPH',_0x2d4ad7)),_0x427f95['enableDefaultAttributesIntegration']('paragraph'),_0x427f95['enableCommand']('insertParagraph');const _0x30231d=_0x427f95['descriptionFactory'];_0x30231d['registerDescriptionCallback'](_0x2bfb99=>{if('insertion'!==_0x2bfb99['type'])return;const {start:_0x4ed1b9,end:_0x4a802a}=_0x2bfb99['getFirstRange']();if(!_0x4ed1b9['isTouching'](_0x4a802a)||!_0x4ed1b9['nodeAfter'])return;const _0x3cb4be=_0x2c3d9d['model']['schema'],_0x3753e5=_0x4ed1b9['nodeAfter'];return _0x3cb4be['isBlock'](_0x3753e5)&&!_0x3cb4be['isLimit'](_0x3753e5)&&_0x3cb4be['checkChild'](_0x3753e5,'$text')?{'type':'insertion','content':o(_0x5546c3,'*Insert:*\x20%0',_0x30231d['getItemLabel'](_0x3753e5,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4302c9=this['editor'],_0x46fe28=_0x4302c9['locale'];_0x4302c9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e9bc8=>{if('formatBlock'!=_0x2e9bc8['type'])return;const {data:_0x395cf5}=_0x2e9bc8;return _0x395cf5&&'paragraph'==_0x395cf5['commandName']?{'type':'format','content':o(_0x46fe28,'*Change\x20to:*\x20%0',o(_0x46fe28,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x4f24f5{['afterInit'](){const _0x10582c=this['editor'];_0x10582c['commands']['get']('replaceSource')&&_0x10582c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x4f24f5{['afterInit'](){const _0x100bc0=this['editor'];if(!_0x100bc0['plugins']['has']('RemoveFormatEditing'))return;_0x100bc0['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x406846=this['editor'];_0x406846['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda9862=>{if('formatBlock'!=_0xda9862['type']&&'formatInline'!=_0xda9862['type'])return;const {data:_0x4f0cb1}=_0xda9862;return _0x4f0cb1&&'removeFormat'==_0x4f0cb1['commandName']?{'type':'format','content':o(_0x406846['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x4f24f5{['afterInit'](){const _0x4df2df=this['editor'];if(!_0x4df2df['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4f0bc9=_0x4df2df['plugins']['get']('TrackChangesEditing');_0x4f0bc9['enableCommand']('goToPreviousRestrictedEditingException'),_0x4f0bc9['enableCommand']('goToNextRestrictedEditingException');const _0x6cda79=_0x4df2df['plugins']['get']('RestrictedEditingModeEditing');_0x6cda79['enableCommand']('trackChanges'),_0x6cda79['enableCommand']('acceptSuggestion'),_0x6cda79['enableCommand']('discardSuggestion'),_0x6cda79['enableCommand']('acceptAllSuggestions'),_0x6cda79['enableCommand']('discardAllSuggestions'),_0x6cda79['enableCommand']('acceptSelectedSuggestions'),_0x6cda79['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x4f24f5{['afterInit'](){const _0x2bb1da=this['editor'];if(!_0x2bb1da['plugins']['has']('ShiftEnter'))return;const _0x225ea3=_0x2bb1da['plugins']['get']('TrackChangesEditing');_0x225ea3['enableCommand']('shiftEnter'),_0x225ea3['descriptionFactory']['registerElementLabel']('softBreak',_0x3f8adf=>o(_0x2bb1da['locale'],'ELEMENT_LINE_BREAK',_0x3f8adf));}}function an(_0x54b558,_0x2d706f,_0x3abf5a){const _0x3958e6=[];for(const _0x2f0307 of _0x2d706f['getItems']())_0x2f0307['hasAttribute'](_0x54b558)&&_0x3958e6['push'](_0x3abf5a['createRangeOn'](_0x2f0307));return _0x3958e6;}class $t extends _0x4f24f5{['afterInit'](){const _0x108cc5=this['editor'],_0x574720=_0x108cc5['plugins']['get']('TrackChangesEditing');_0x108cc5['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x574720['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x339554=this['editor'],_0x3a6eb4=_0x339554['model'],_0x28280e=_0x339554['locale'],_0x2454ba=_0x339554['plugins']['get']('TrackChangesEditing'),_0x7811b='restrictedEditingException',_0x2f15d9=_0x339554['commands']['get'](_0x7811b);_0x2454ba['enableCommand'](_0x7811b,(_0x626606,_0x4db8da={})=>{const _0x1a5f0f=_0x3a6eb4['document']['selection'];if(_0x1a5f0f['isCollapsed'])return void _0x626606(_0x4db8da);const _0x14b68a=void 0x0!==_0x4db8da['forceValue']?_0x4db8da['forceValue']:!_0x2f15d9['value'];_0x3a6eb4['change'](()=>{const _0x593b5d=Array['from'](_0x1a5f0f['getRanges']());for(const _0x149f3b of _0x593b5d){const _0x338c46=_0x14b68a?[_0x149f3b]:an(_0x7811b,_0x149f3b,_0x3a6eb4);for(const _0x4257a7 of _0x338c46)_0x2454ba['markInlineFormat'](_0x4257a7,{'commandName':_0x7811b,'commandParams':[{'forceValue':_0x14b68a}]});}});}),_0x2454ba['descriptionFactory']['registerDescriptionCallback'](_0x3ec811=>{if('formatBlock'!=_0x3ec811['type']&&'formatInline'!=_0x3ec811['type'])return;const {data:_0x3e1360}=_0x3ec811;return _0x3e1360&&_0x3e1360['commandName']==_0x7811b?_0x3e1360['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x28280e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x28280e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x35fd45=this['editor'],_0x4fe230=_0x35fd45['locale'],_0x500403=_0x35fd45['plugins']['get']('TrackChangesEditing'),_0x57f642='restrictedEditingExceptionBlock',_0x47328c=this['editor']['commands']['get'](_0x57f642);_0x500403['enableCommand'](_0x57f642,(_0x2442bc,_0x44f56b={})=>{const _0x280827=this['editor']['model']['document']['selection'],_0x2c9bb3=_0x44f56b&&void 0x0!==_0x44f56b['forceValue']?_0x44f56b['forceValue']:!_0x47328c['value'];let _0x220454=[];if(_0x2c9bb3){const _0x3c2a16=Array['from'](_0x280827['getSelectedBlocks']())['filter'](_0x3e75d5=>function(_0x10c1b9){return!!_0x10c1b9['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x3e75d5)||function(_0x1fe4b3,_0x323574){const _0x5a93ed=_0x323574['createContext'](_0x1fe4b3['parent']);if(!_0x323574['checkChild'](_0x5a93ed,'restrictedEditingException'))return!0x1;if(!_0x323574['checkChild'](_0x5a93ed['push']('restrictedEditingException'),_0x1fe4b3))return!0x1;return!0x0;}(_0x3e75d5,this['editor']['model']['schema']));_0x220454=to(_0x3c2a16,_0x35fd45['model']);}else{const _0x25bb5f=Array['from'](_0x280827['getSelectedBlocks']())['map'](_0x58e4d4=>function(_0x5a6f8f){let _0x35a058=_0x5a6f8f;for(;_0x35a058['parent'];){if('restrictedEditingException'==_0x35a058['parent']['name'])return _0x35a058;_0x35a058=_0x35a058['parent'];}return null;}(_0x58e4d4))['filter'](_0x417d68=>!!_0x417d68);_0x220454=to(_0x25bb5f,_0x35fd45['model']);}_0x35fd45['model']['change'](()=>{for(const _0x51665e of _0x220454)_0x500403['markBlockFormat'](_0x51665e,{'commandName':_0x57f642,'commandParams':[{'forceValue':_0x2c9bb3}]});});}),_0x500403['descriptionFactory']['registerDescriptionCallback'](_0x5af447=>{const {data:_0x27503d}=_0x5af447;if(_0x27503d&&_0x27503d['commandName']==_0x57f642)return _0x27503d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4fe230,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4fe230,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x4f24f5{['afterInit'](){const _0x5061bc=this['editor'];if(!_0x5061bc['plugins']['has']('Style')||!_0x5061bc['plugins']['has']('DataSchema'))return;const _0x39893a=_0x5061bc['plugins']['get']('TrackChangesEditing'),_0x44c815=_0x5061bc['locale'],_0x2295a2=_0x5061bc['config']['get']('style')||{},_0x560868=_0x5061bc['plugins']['get']('GeneralHtmlSupport'),_0x4d9873=_0x5061bc['plugins']['get']('StyleUtils')['normalizeConfig'](_0x5061bc['plugins']['get']('DataSchema'),_0x2295a2['definitions']);_0x39893a['enableDefaultAttributesIntegration']('style');const _0x29eb67=new Set();for(const _0x215959 of _0x4d9873['block']){const _0x498432=_0x560868['getGhsAttributeNameForElement'](_0x215959['element']);_0x29eb67['add'](_0x498432);}const _0x16d99f=new Set();for(const _0x5bc302 of _0x4d9873['inline']){const _0xa1c2f2=_0x560868['getGhsAttributeNameForElement'](_0x5bc302['element']);_0x16d99f['add'](_0xa1c2f2);for(const _0x5054a6 of _0x5bc302['ghsAttributes'])_0x16d99f['add'](_0x5054a6);}for(const _0x179170 of _0x29eb67)_0x39893a['descriptionFactory']['registerAttributeLabel'](_0x179170,o(_0x44c815,'FORMAT_STYLE'));for(const _0xb9139e of _0x16d99f)_0x39893a['descriptionFactory']['registerAttributeLabel'](_0xb9139e,o(_0x44c815,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9108f3=this['editor'],_0x245d48=_0x9108f3['locale'];_0x9108f3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25e576=>{if('formatBlock'!=_0x25e576['type']&&'formatInline'!=_0x25e576['type'])return;const {data:_0x3bd0ae}=_0x25e576;return _0x3bd0ae&&'style'===_0x3bd0ae['commandName']?_0x3bd0ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x245d48,'*Set\x20format:*\x20%0',_0x3bd0ae['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x245d48,'*Remove\x20format:*\x20%0',_0x3bd0ae['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x4f24f5{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x310e30){super(_0x310e30),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5984ca=this['editor'],_0x581abf=_0x5984ca['model']['document']['selection'];if(!_0x5984ca['plugins']['has']('TableEditing'))return;const _0x437bf5=_0x5984ca['locale'],_0x8a011=_0x5984ca['plugins']['get']('TrackChangesEditing'),_0x55e157=_0x5984ca['plugins']['get']('TableUtils');_0x8a011['descriptionFactory']['registerElementLabel']('table',_0x12ea2f=>o(_0x437bf5,'ELEMENT_TABLE',_0x12ea2f)),this['_setupColumnsRowsFixing'](),_0x8a011['enableCommand']('insertTable'),_0x8a011['enableCommand']('selectTableRow'),_0x8a011['enableCommand']('selectTableColumn');for(const _0x243a9a of['insertTableRowAbove','insertTableRowBelow']){const _0x2558f5=_0x5984ca['commands']['get'](_0x243a9a);_0x8a011['enableCommand'](_0x243a9a,_0x15ee7f=>{_0x5984ca['model']['change'](_0x32fc70=>{_0x15ee7f();const _0x3bc3f7='above'===_0x2558f5['order'],_0x4bca19=_0x55e157['getSelectionAffectedTableCells'](_0x581abf),_0x47243d=_0x55e157['getRowIndexes'](_0x4bca19),_0x3e591b=_0x3bc3f7?_0x47243d['first']-0x1:_0x47243d['last']+0x1,_0x3c9fd8=_0x4bca19[0x0]['findAncestor']('table'),_0x2ba035=_0x55e157['createTableWalker'](_0x3c9fd8,{'startRow':_0x3e591b,'endRow':_0x3e591b}),_0x2a3c99=Array['from'](_0x2ba035)['map'](_0x4b9a51=>_0x32fc70['createRangeOn'](_0x4b9a51['cell']));_0x8a011['markMultiRangeInsertion'](_0x2a3c99,'tableRow');});});}for(const _0x3bc133 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4c1986=_0x5984ca['commands']['get'](_0x3bc133);_0x8a011['enableCommand'](_0x3bc133,_0x335a00=>{_0x5984ca['model']['change'](_0x4daa59=>{_0x335a00();const _0x1dc0f8='left'===_0x4c1986['order'],_0x23d587=_0x55e157['getSelectionAffectedTableCells'](_0x581abf),_0x3748f3=_0x55e157['getColumnIndexes'](_0x23d587),_0x1dde9f=_0x1dc0f8?_0x3748f3['first']-0x1:_0x3748f3['last']+0x1,_0x3e4c9c=_0x23d587[0x0]['findAncestor']('table'),_0x473b14=_0x55e157['createTableWalker'](_0x3e4c9c,{'startRow':0x0,'column':_0x1dde9f,'includeAllSlots':!0x1}),_0x1a7858=Array['from'](_0x473b14)['map'](_0x250909=>_0x4daa59['createRangeOn'](_0x250909['cell']));_0x8a011['markMultiRangeInsertion'](_0x1a7858,'tableColumn');});});}for(const _0xf581fd of['removeTableRow','removeTableColumn']){const _0x2521d0=_0xf581fd['substr'](0xb),_0x478495=_0x2521d0['toLowerCase'](),_0x1f6e07=_0x478495['substr'](0x0,0x3)+'span',_0x42ef9f='table'+_0x2521d0,_0x477c59='min'+_0x2521d0,_0x12703b='max'+_0x2521d0;_0x8a011['enableCommand'](_0xf581fd,()=>{_0x5984ca['model']['change'](_0x3500c5=>{const _0x312744=_0x55e157['getSelectionAffectedTableCells'](_0x581abf),_0x20ebd7=_0x312744[0x0]['findAncestor']('table');let _0x40d9d0;if('removeTableRow'==_0xf581fd){const _0x2f1a89=_0x55e157['getRowIndexes'](_0x312744);_0x40d9d0={'startRow':_0x2f1a89['first'],'endRow':_0x2f1a89['last'],'includeAllSlots':!0x0};}else{const _0x397d7e=_0x55e157['getColumnIndexes'](_0x312744);_0x40d9d0={'startColumn':_0x397d7e['first'],'endColumn':_0x397d7e['last'],'includeAllSlots':!0x0};}const _0x5c1fd1=_0x55e157['createTableWalker'](_0x20ebd7,_0x40d9d0),_0x28a651=Array['from'](_0x5c1fd1)['map'](({cell:_0x216089})=>_0x216089),_0x56e9fd=_e(_0x28a651['filter'](_0x33914e=>_0x33914e['hasAttribute'](_0x1f6e07))),_0x32025f=_e(_0x28a651['filter'](_0x597f2f=>!_0x597f2f['hasAttribute'](_0x1f6e07)))['map'](_0x4d3602=>_0x3500c5['createRangeOn'](_0x4d3602)),_0x1dbee3=_0x8a011['markMultiRangeDeletion'](_0x32025f,_0x42ef9f);if(_0x1dbee3&&('tableRow'==_0x1dbee3['subType']||'tableColumn'==_0x1dbee3['subType'])){const _0x2ac953=this['_getSuggestionCoords'](_0x1dbee3);for(const _0x49c86d of _0x56e9fd){const _0x34cba9=_0x3500c5['createRangeOn'](_0x49c86d),_0xaad999=_0x55e157['getCellLocation'](_0x49c86d),_0x56e367=_0x49c86d['getAttribute'](_0x1f6e07)-0x1,_0x1f60b9=_0x2ac953[_0x477c59],_0x893583=_0x2ac953[_0x12703b];_0x1f60b9<=_0xaad999[_0x478495]&&_0xaad999[_0x478495]+_0x56e367<=_0x893583&&_0x1dbee3['addRange'](_0x34cba9);}}});});}function _0x4f4efe(_0xd969a2){const _0x548f36=Array['from'](_0x581abf['getRanges']())['map'](_0x320d7b=>_0x41285e['fromRange'](_0x320d7b));_0x5984ca['model']['change'](_0x20c1bf=>{const _0x3eb3a1=_0x20c1bf['batch'];_0xd969a2=_0xd969a2['filter'](_0x3bf07b=>'$graveyard'!=_0x3bf07b['root']['rootName']),_0x20c1bf['setSelection'](_0xd969a2),_0x5984ca['commands']['get']('removeTableRow')['refresh'](),_0x5984ca['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5984ca['model']['enqueueChange'](()=>{_0x5984ca['model']['enqueueChange'](_0x3eb3a1,_0x2ebe5d=>{const _0x53fed7=_0x548f36['filter'](_0x5a0f8b=>'$graveyard'!=_0x5a0f8b['root']['rootName']);_0x53fed7['length']>0x0&&_0x2ebe5d['setSelection'](_0x53fed7);for(const _0x4b8f07 of _0x548f36)_0x4b8f07['detach']();});});});}function _0x5d7f28(_0x1e1f37){_0x5984ca['model']['change'](_0x3916c7=>{const _0x2a0e3c=Array['from'](_0x581abf['getRanges']())['map'](_0x1f4ac2=>_0x41285e['fromRange'](_0x1f4ac2)),_0xf98d19=[];for(const _0x153593 of _0x1e1f37)for(const _0x44aa19 of _0x153593['getItems']({'shallow':!0x0}))_0xf98d19['push'](_0x44aa19);for(const _0x3be2fb of _0xf98d19)'$graveyard'!=_0x3be2fb['root']['rootName']&&(_0x3916c7['setSelection'](_0x3916c7['createPositionAt'](_0x3be2fb,0x0)),_0x5984ca['commands']['get']('removeTableColumn')['refresh'](),_0x5984ca['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4779ee=_0x2a0e3c['filter'](_0x19e6e0=>'$graveyard'!=_0x19e6e0['root']['rootName']);_0x4779ee['length']>0x0&&_0x3916c7['setSelection'](_0x4779ee);for(const _0x26dafe of _0x2a0e3c)_0x26dafe['detach']();});}function _0x4c88f4(_0x339039,_0x1eb926){return _0x1eb926['every'](_0x1d0968=>_0x339039['some'](_0x74a65=>_0x74a65['end']['isEqual'](_0x1d0968['start'])||_0x1d0968['end']['isEqual'](_0x74a65['start'])));}function _0x2c90c4(_0xbf8c1a,_0x1af297){return!_0xbf8c1a['some'](_0x58e85e=>_0x1af297['some'](_0x5ae9dc=>_0x58e85e['isIntersecting'](_0x5ae9dc)))&&_0xbf8c1a['some'](_0x4e09d8=>_0x1af297['some'](_0x3036ef=>_0x4e09d8['end']['isTouching'](_0x3036ef['start'])));}_0x8a011['descriptionFactory']['registerDescriptionCallback'](_0xf4abdd=>{if('insertion'!=_0xf4abdd['type']&&'deletion'!=_0xf4abdd['type'])return;const _0x880afa=_0xf4abdd['getContainedElement']();if(null!=_0x880afa&&_0x880afa['is']('element','table')){if('insertion'==_0xf4abdd['type']){const _0x1e0a9a=_0xf4abdd['getItems']()['filter'](_0x79daa3=>_0x79daa3['is']('$textProxy'))['map'](_0x5644b1=>_0x5644b1['data']);if(_0x1e0a9a['length'])return{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1e0a9a['join']('\x20')+'\x22'))};}if('deletion'==_0xf4abdd['type']){const _0xfd2f6e=_0xf4abdd['getItems']()['filter'](_0x50a477=>_0x50a477['is']('$textProxy'))['map'](_0x13b6bf=>_0x13b6bf['data']);if(_0xfd2f6e['length'])return{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xfd2f6e['join']('\x20')+'\x22'))};}}}),_0x8a011['descriptionFactory']['registerDescriptionCallback'](_0x434bad=>{if('tableRow'==_0x434bad['subType']){const _0x469809=_0x434bad['getItems']()['filter'](_0x4c8926=>_0x4c8926['is']('$textProxy'))['map'](_0x4a79ee=>_0x4a79ee['data']),_0x4fc5e1=this['_getSuggestionCoords'](_0x434bad),_0x228afa=_0x4fc5e1['maxRow']-_0x4fc5e1['minRow']+0x1;if('insertion'==_0x434bad['type'])return _0x469809['length']?{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x228afa,'\x22'+_0x469809['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_ROW',_0x228afa))};if('deletion'==_0x434bad['type'])return _0x469809['length']?{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x228afa,'\x22'+_0x469809['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_ROW',_0x228afa))};}if('tableColumn'==_0x434bad['subType']){const _0x3e18ee=_0x434bad['getItems']()['filter'](_0x4d2459=>_0x4d2459['is']('$textProxy'))['map'](_0x34ddbe=>_0x34ddbe['data']),_0x41f1ae=this['_getSuggestionCoords'](_0x434bad),_0x3ede7b=_0x41f1ae['maxColumn']-_0x41f1ae['minColumn']+0x1;if('insertion'==_0x434bad['type'])return _0x3e18ee['length']?{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ede7b,'\x22'+_0x3e18ee['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x437bf5,'*Insert:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_COLUMN',_0x3ede7b))};if('deletion'==_0x434bad['type'])return _0x3e18ee['length']?{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ede7b,'\x22'+_0x3e18ee['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x437bf5,'*Remove:*\x20%0',o(_0x437bf5,'ELEMENT_TABLE_COLUMN',_0x3ede7b))};}}),_0x8a011['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4f4efe),_0x8a011['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4f4efe),_0x8a011['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5d7f28),_0x8a011['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5d7f28),_0x8a011['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4c88f4),_0x8a011['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4c88f4),_0x8a011['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2c90c4),_0x8a011['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2c90c4);}['_acceptFormatSuggestionCallbackFactory'](){const _0x470706=this['editor'],_0x3b67a3=_0x470706['model']['document']['selection'];return(_0x6bfebb,_0x3cdb02)=>{_0x470706['model']['change'](_0x5636f0=>{const {commandName:_0x56d649,commandParams:_0x513ca7}=_0x3cdb02;let _0x138a5e=_0x6bfebb[0x0]['end']['nodeBefore'];_0x513ca7&&_0x513ca7[0x0]&&!0x1===_0x513ca7[0x0]['forceValue']&&(_0x138a5e=_0x6bfebb[0x0]['start']['nodeAfter']);const _0x180b6a=_0x5636f0['createRangeIn'](_0x138a5e);if('$graveyard'==_0x180b6a['root']['rootName'])return;const _0x1e632d=Array['from'](_0x3b67a3['getRanges']())['map'](_0x380f45=>_0x41285e['fromRange'](_0x380f45));_0x5636f0['setSelection'](_0x180b6a),_0x470706['commands']['get'](_0x56d649)['refresh'](),_0x513ca7['push']({'forceDefaultExecution':!0x0}),_0x470706['execute'](_0x56d649,..._0x513ca7);const _0x576ecd=_0x1e632d['filter'](_0x5a8c13=>'$graveyard'!=_0x5a8c13['root']['rootName']);_0x576ecd['length']>0x0&&_0x5636f0['setSelection'](_0x576ecd);for(const _0x48f1fd of _0x1e632d)_0x48f1fd['detach']();});};}['_getCoordsForCells'](_0x1d8b87){const _0xc8655b=this['editor']['plugins']['get']('TableUtils');let _0x6134fe=Number['MAX_SAFE_INTEGER'],_0x46726b=Number['MIN_SAFE_INTEGER'],_0xf652fc=Number['MAX_SAFE_INTEGER'],_0x5f45ca=Number['MIN_SAFE_INTEGER'];for(const _0x1ee915 of _0x1d8b87){if('$graveyard'==_0x1ee915['root']['rootName'])continue;const {row:_0x314011,column:_0x45e805}=_0xc8655b['getCellLocation'](_0x1ee915),_0x185c30=_0x1ee915['hasAttribute']('rowspan')?_0x1ee915['getAttribute']('rowspan')-0x1:0x0,_0xe2daf=_0x1ee915['hasAttribute']('colspan')?_0x1ee915['getAttribute']('colspan')-0x1:0x0;_0x6134fe=_0x314011<_0x6134fe?_0x314011:_0x6134fe,_0x46726b=_0x314011+_0x185c30>_0x46726b?_0x314011+_0x185c30:_0x46726b,_0xf652fc=_0x45e805<_0xf652fc?_0x45e805:_0xf652fc,_0x5f45ca=_0x45e805+_0xe2daf>_0x5f45ca?_0x45e805+_0xe2daf:_0x5f45ca;}return{'minRow':_0x6134fe,'maxRow':_0x46726b,'minColumn':_0xf652fc,'maxColumn':_0x5f45ca};}['_setupColumnsRowsFixing'](){const _0x22a14f=this['editor'],_0x2d676c=_0x22a14f['plugins']['get']('TrackChangesEditing'),_0x4608b8=_0x22a14f['plugins']['get']('TableUtils');_0x22a14f['model']['document']['on']('change:data',()=>{const _0x46936c=Array['from'](_0x22a14f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c5d44,data:_0x4281d5}of _0x46936c){const {group:_0x11ac3b,id:_0x485fe3,subType:_0x5ec5a8}=_0x2d676c['_splitMarkerName'](_0x2c5d44);if('suggestion'!=_0x11ac3b)continue;if(null!=_0x4281d5['oldRange'])continue;const _0x4a4e13=_0x2d676c['getSuggestion'](_0x485fe3);this['_tablePostFixingSubtypes']['includes'](_0x5ec5a8)&&this['_tableSuggestions']['add'](_0x4a4e13);}},{'priority':'low'});const _0x80671b=(_0x5ed271,_0x26cde0)=>{let _0x231619=!0x1;const _0x4bfcd4=_0x26cde0['createRangeOn'](_0x5ed271),_0x52578f=_0x5ed271['findAncestor']('table'),_0x5f27de=_0x4608b8['getCellLocation'](_0x5ed271);for(const _0x2ce1d5 of this['_tableSuggestions']){const _0x23ac11=_0x2ce1d5['subType'],_0xea0de2=_0x23ac11['startsWith']('tablePaste'),_0x55acc5=_0x23ac11['substr'](_0xea0de2?0xa:0x5),_0x5089c4=_0x55acc5['toLowerCase'](),_0x451042=_0x5089c4['substr'](0x0,0x3)+'span',_0x5d35f7='min'+_0x55acc5,_0x7f70d9='max'+_0x55acc5;if(!_0x2ce1d5['isInContent'])continue;if(_0x52578f!=_0x2ce1d5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2ce1d5['isIntersectingWithRange'](_0x4bfcd4))continue;const _0x192a37=_0x5ed271['hasAttribute'](_0x451042)?_0x5ed271['getAttribute'](_0x451042)-0x1:0x0,_0x1186a0=this['_getSuggestionCoords'](_0x2ce1d5),_0x11999d=_0x1186a0[_0x5d35f7],_0x31da92=_0x1186a0[_0x7f70d9];_0x11999d<=_0x5f27de[_0x5089c4]&&_0x5f27de[_0x5089c4]+_0x192a37<=_0x31da92&&(_0x2ce1d5['addRange'](_0x4bfcd4),_0x231619=!0x0);}return _0x231619;};_0x22a14f['model']['document']['registerPostFixer'](_0x26d891=>{let _0x4b8ad7=!0x1;for(const _0x2ac411 of _0x22a14f['model']['document']['differ']['getChanges']())if('insert'==_0x2ac411['type']){if('tableRow'==_0x2ac411['name']){for(const _0x5e96e3 of _0x2ac411['position']['nodeAfter']['getChildren']())_0x4b8ad7=_0x4b8ad7||_0x80671b(_0x5e96e3,_0x26d891);}else'tableCell'==_0x2ac411['name']&&(_0x4b8ad7=_0x4b8ad7||_0x80671b(_0x2ac411['position']['nodeAfter'],_0x26d891));}return _0x4b8ad7;});}['_getSuggestionCoords'](_0x13f549){return this['_getCoordsForCells'](_0x13f549['getRanges']()['map'](_0x443356=>_0x443356['start']['nodeAfter']));}}function _e(_0x3d5db4){return Array['from'](new Set(_0x3d5db4)['values']());}class Bt extends _0x4f24f5{static get['requires'](){return[Dt];}['afterInit'](){const _0x58af14=this['editor'],_0x2dafcb=_0x58af14['model']['document']['selection'],_0x374da6=_0x58af14['locale'];if(!_0x58af14['plugins']['has']('TableEditing'))return;const _0x42d3ee=_0x58af14['plugins']['get']('TrackChangesEditing'),_0x5b01cd=_0x58af14['plugins']['get']('TableUtils'),_0x386264=_0x58af14['plugins']['get'](Dt);_0x386264['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x42d3ee['enableCommand']('mergeTableCells',()=>{const _0xa28c7=_0x5b01cd['getSelectionAffectedTableCells'](_0x58af14['model']['document']['selection']);_0x58af14['model']['change'](()=>{_0x42d3ee['markMultiRangeBlockFormat'](_0xa28c7,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x58af14['commands']['get']('mergeTableCells')['on']('execute',(_0x38c059,_0x583345)=>{_0x58af14['commands']['get']('trackChanges')['value']&&(_0x583345['length']>0x0&&_0x583345[_0x583345['length']-0x1]&&_0x583345[_0x583345['length']-0x1]['forceDefaultExecution']||_0x42d3ee['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x38c059['stop']());},{'priority':'highest'});for(const _0x10a9ac of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x104507=_0x58af14['commands']['get'](_0x10a9ac);_0x42d3ee['enableCommand'](_0x10a9ac,()=>{const _0x19183d=_0x58af14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x20dce5=>_0x20dce5['is']('element','tableCell')),_0x12c293=_0x104507['value'];_0x58af14['model']['change'](()=>{_0x42d3ee['markMultiRangeBlockFormat']([_0x19183d,_0x12c293],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2dd18a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4d02da=_0x58af14['commands']['get'](_0x2dd18a);_0x42d3ee['enableCommand'](_0x2dd18a,()=>{const _0x3adf4e=_0x5b01cd['getSelectionAffectedTableCells'](_0x58af14['model']['document']['selection'])[0x0],_0x288afa=_0x3adf4e['findAncestor']('table'),{column:_0x24ed81,row:_0x264771}=_0x5b01cd['getCellLocation'](_0x3adf4e);let _0x47006b=[];if('horizontally'==_0x4d02da['direction']){const _0x1ac7a5=_0x5b01cd['createTableWalker'](_0x288afa,{'startRow':_0x264771,'endRow':_0x264771,'includeAllSlots':!0x0});_0x47006b=Array['from'](_0x1ac7a5)['map'](_0x50e969=>_0x50e969['cell']);}else{const _0x46d6b9=_0x5b01cd['createTableWalker'](_0x288afa,{'column':_0x24ed81,'includeAllSlots':!0x0});_0x47006b=Array['from'](_0x46d6b9)['map'](_0x25990b=>_0x25990b['cell']);}_0x58af14['model']['change'](_0x24b5cd=>{_0x42d3ee['markBlockFormat'](_0x24b5cd['createRangeOn'](_0x3adf4e),{'commandName':_0x2dd18a,'commandParams':[]},_0x47006b,_0x2dd18a);});});}_0x42d3ee['descriptionFactory']['registerDescriptionCallback'](_0x310f7d=>{if('formatBlock'!=_0x310f7d['type']&&'formatInline'!=_0x310f7d['type'])return;const {data:_0xe41d43}=_0x310f7d;return _0xe41d43&&'mergeTableCells'==_0xe41d43['commandName']?{'type':'format','content':o(_0x374da6,'*Merge\x20cells*')}:void 0x0;}),_0x42d3ee['descriptionFactory']['registerDescriptionCallback'](_0x3db7d8=>{if('formatBlock'!=_0x3db7d8['type']&&'formatInline'!=_0x3db7d8['type'])return;const {data:_0x521b85}=_0x3db7d8;return _0x521b85?'splitTableCellVertically'==_0x521b85['commandName']?{'type':'format','content':o(_0x374da6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x521b85['commandName']?{'type':'format','content':o(_0x374da6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x24b690=_0x386264['_acceptFormatSuggestionCallbackFactory']();for(const _0x580a49 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x42d3ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x580a49,'accept',_0x24b690);for(const _0x237ede of['splitTableCellVertically','splitTableCellHorizontally'])_0x42d3ee['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x237ede,'accept',_0x24b690);_0x42d3ee['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x8dc651=>{_0x58af14['model']['change'](_0x270201=>{const _0x2db66f=Array['from'](_0x2dafcb['getRanges']())['map'](_0x26ada3=>_0x41285e['fromRange'](_0x26ada3));_0x270201['setSelection'](_0x8dc651),_0x58af14['commands']['get']('mergeTableCells')['refresh'](),_0x58af14['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3ff6bf=_0x2db66f['filter'](_0x42a01c=>'$graveyard'!=_0x42a01c['root']['rootName']);_0x3ff6bf['length']>0x0&&_0x270201['setSelection'](_0x3ff6bf);for(const _0x5d12dd of _0x2db66f)_0x5d12dd['detach']();});});for(const _0x1cb78a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4bd0b2=_0x58af14['commands']['get'](_0x1cb78a);_0x4bd0b2['on']('set:isEnabled',(_0x5bbeb8,_0x2f0919,_0x25f600)=>{if(_0x25f600){const _0x403cfc=_0x58af14['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2be07f=>_0x2be07f['is']('element','tableCell'));this['_areMergableCells'](_0x4bd0b2['value'],_0x403cfc)||(_0x5bbeb8['return']=!0x1,_0x5bbeb8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3193f6=this['editor']['commands']['get']('mergeTableCells'),_0x4613a2=this['editor']['plugins']['get']('TableUtils');if(!_0x3193f6['isEnabled'])return!0x1;const _0x30600f=_0x4613a2['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3359e8 of _0x30600f)for(const _0x1c3e18 of _0x30600f)if(_0x3359e8!=_0x1c3e18&&!this['_areMergableCells'](_0x3359e8,_0x1c3e18))return!0x1;return!0x0;}['_areMergableCells'](_0x3a0a75,_0x36b52d){const _0x1f40aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x9c5ade=this['editor']['model']['createRangeOn'](_0x3a0a75),_0x1a6eed=this['editor']['model']['createRangeOn'](_0x36b52d),_0x33632f=new Set(),_0x42a15a=new Set();for(const _0x45ae0a of _0x1f40aa['getSuggestions']())if(('insertion'==_0x45ae0a['type']||'deletion'==_0x45ae0a['type']||'mergeTableCells'==_0x45ae0a['subType'])&&_0x45ae0a['isInContent']){for(const _0x227ca4 of _0x45ae0a['getRanges']())_0x227ca4['containsRange'](_0x9c5ade,!0x0)&&_0x33632f['add'](_0x45ae0a['type']+':'+_0x45ae0a['author']['id']),_0x227ca4['containsRange'](_0x1a6eed,!0x0)&&_0x42a15a['add'](_0x45ae0a['type']+':'+_0x45ae0a['author']['id']);}if(_0x33632f['size']!=_0x42a15a['size'])return!0x1;for(const _0x4b0ffa of _0x33632f)if(!_0x42a15a['has'](_0x4b0ffa))return!0x1;return!0x0;}}class Ot extends _0x4f24f5{static get['requires'](){return[Dt];}['afterInit'](){const _0x58d52b=this['editor'];if(!_0x58d52b['plugins']['has']('TableEditing'))return;const _0x382d57=_0x58d52b['locale'],_0x1b14d3=_0x58d52b['plugins']['get']('TrackChangesEditing');_0x1b14d3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1b14d3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1b14d3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x382d57,'FORMAT_HEADER_ROW')),_0x1b14d3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x382d57,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1039cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0xcb50df=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x1039cb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xcb50df),_0x1039cb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xcb50df),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x430762=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31aadd=this['editor']['plugins']['get']('TableUtils');function _0x17639c({showActiveMarker:_0x18da76=!0x0,setDataAttribute:_0xe4fc2c=!0x0}={}){return(_0x11303c,_0x53121f,_0x588377)=>{const {type:_0xa7632e,id:_0x17f43b}=_0x430762['_splitMarkerName'](_0x53121f['markerName']);if(!_0x430762['hasSuggestion'](_0x17f43b))return;const _0xfbff9e=_0x430762['getSuggestion'](_0x17f43b),_0x89f9f2=_0xfbff9e['data'];if('formatBlock'!=_0xfbff9e['type']||!_0x89f9f2||'setTableColumnHeader'!=_0x89f9f2['commandName'])return;if(_0x53121f['item'])return void _0x11303c['stop']();if(!_0x588377['consumable']['consume'](_0x53121f['markerRange'],_0x11303c['name']))return;const _0x4ec410=_0x53121f['markerRange']['start']['nodeAfter'],_0x2e78bf=_0x53121f['markerRange']['end']['nodeBefore'],_0x3be321=_0x4ec410['parent']['parent'],{column:_0x5abcf3}=_0x31aadd['getCellLocation'](_0x4ec410),{column:_0x5ae962}=_0x31aadd['getCellLocation'](_0x2e78bf);for(let _0x1f8f76=_0x5abcf3;_0x1f8f76<=_0x5ae962;_0x1f8f76++){const _0x30d3d0=_0x31aadd['createTableWalker'](_0x3be321,{'column':_0x1f8f76,'includeAllSlots':!0x1});for(const _0x465e6a of _0x30d3d0){const _0x31c2ba=_0x465e6a['cell'],_0x537f62=_0x588377['mapper']['toViewElement'](_0x31c2ba);_0x588377['writer']['addClass']('ck-suggestion-marker-'+_0xa7632e,_0x537f62),_0xe4fc2c&&_0x588377['writer']['setAttribute']('data-suggestion',_0x17f43b,_0x537f62),_0x588377['mapper']['bindElementToMarker'](_0x537f62,_0x53121f['markerName']),_0x18da76&&(_0x430762['activeMarkers']['includes'](_0x53121f['markerName'])?_0x588377['writer']['addClass']('ck-suggestion-marker--active',_0x537f62):_0x588377['writer']['removeClass']('ck-suggestion-marker--active',_0x537f62));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x17639c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x886c2c,_0x5ecab6,_0x59090d)=>{_0x59090d['options']['showSuggestionHighlights']&&_0x17639c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x886c2c,_0x5ecab6,_0x59090d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1d5ac2,_0x22e012,_0x36a1e2)=>{const {type:_0x5a1d6f,id:_0x62840b}=_0x430762['_splitMarkerName'](_0x22e012['markerName']);if(!_0x430762['hasSuggestion'](_0x62840b))return;const _0x4159bd=_0x430762['getSuggestion'](_0x62840b),_0x15d021=_0x4159bd['data'];if('formatBlock'!=_0x4159bd['type']||!_0x15d021||'setTableColumnHeader'!=_0x15d021['commandName'])return;const _0x53c285=_0x36a1e2['mapper']['markerNameToElements'](_0x22e012['markerName']);if(_0x53c285){for(const _0x10b0ef of _0x53c285)_0x36a1e2['writer']['removeClass']('ck-suggestion-marker-'+_0x5a1d6f,_0x10b0ef),_0x36a1e2['writer']['removeClass']('ck-suggestion-marker--active',_0x10b0ef),_0x36a1e2['writer']['removeAttribute']('data-suggestion',_0x10b0ef),_0x36a1e2['mapper']['unbindElementFromMarkerName'](_0x10b0ef,_0x22e012['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x5440eb=this['editor'],_0x9fcca=_0x5440eb['locale'];function _0x21008c(_0x11f07a){return{'type':'format','content':o(_0x9fcca,'*Format:*\x20%0',_0x11f07a)};}_0x5440eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x333a05=>{if('formatBlock'!=_0x333a05['type'])return;const {data:_0x57c0dd}=_0x333a05;if(_0x57c0dd){if('setTableRowHeader'==_0x57c0dd['commandName']){const _0x1c505b=_0x57c0dd['commandParams'][0x0]['forceValue'];return _0x21008c(o(_0x9fcca,_0x1c505b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x57c0dd['commandName']){const _0x5dc206=_0x57c0dd['commandParams'][0x0]['forceValue'];return _0x21008c(o(_0x9fcca,_0x5dc206?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x4f24f5{['afterInit'](){const _0x29f38a=this['editor'],_0x5232bd=_0x29f38a['locale'],_0x431dbe=_0x29f38a['plugins']['get']('TrackChangesEditing');function _0x1f7ec6(_0x104a08){return{'type':'format','content':''+o(_0x5232bd,'*Set\x20table\x20type:*\x20%0',_0x104a08)};}_0x29f38a['plugins']['has']('TableLayout')&&(_0x431dbe['enableCommand']('insertTableLayout'),_0x431dbe['enableDefaultAttributesIntegration']('tableType'),_0x431dbe['descriptionFactory']['registerElementLabel'](_0x50ebc0=>_0x50ebc0['is']('element','table')&&'layout'===_0x50ebc0['getAttribute']('tableType'),_0x3feef8=>o(_0x5232bd,'ELEMENT_LAYOUT_TABLE',_0x3feef8)),_0x431dbe['descriptionFactory']['registerDescriptionCallback'](_0x2d5209=>{const {data:_0x91f4d8}=_0x2d5209;if(_0x91f4d8&&'tableType'==_0x91f4d8['key'])switch(_0x91f4d8['newValue']){case'layout':return _0x1f7ec6(o(_0x5232bd,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1f7ec6(o(_0x5232bd,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x3c93e7=>[_0x3c93e7,null]));class Mt extends _0x4f24f5{static get['requires'](){return[Dt];}['afterInit'](){const _0x4d8b8b=this['editor'];if(!_0x4d8b8b['plugins']['has']('TableClipboard'))return;const _0x1117a8=_0x4d8b8b['plugins']['get']('TrackChangesEditing'),_0x479b12=_0x4d8b8b['plugins']['get']('TableUtils'),_0x3047cb=_0x4d8b8b['plugins']['get'](Dt),_0x3693b4=_0x4d8b8b['plugins']['get']('TableClipboard'),_0x224419=_0x4d8b8b['plugins']['get']('TableSelection'),_0x3b649d=_0x4d8b8b['plugins']['get'](_0x20f0bc);_0x3047cb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4d8b8b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4d8b8b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xb49913=null,_0x460bde=!0x1;_0x3b649d['on']('contentInsertion',(_0x4a2951,_0x1ef1d2)=>{_0x460bde='paste'===_0x1ef1d2['method'];}),_0x4d8b8b['model']['on']('insertContent',(_0x3fe27a,_0x4cda91)=>{if(!_0x460bde&&null===_0x224419['getSelectedTableCells']())return;const [_0xbdb5e3,_0x121a33]=_0x4cda91,_0x1dffa2=_0x4cda91[_0x4cda91['length']-0x1];_0x1dffa2&&_0x1dffa2['forceDefaultExecution']||_0x1117a8['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x257986,_0x268503,_0x300ded,_0x42ad9d,_0x15a148){if(_0x268503&&!_0x268503['is']('documentSelection'))return!0x1;const _0x1688bf=_0x15a148['getTableIfOnlyTableInContent'](_0x257986,_0x300ded);if(!_0x1688bf||!Oe(_0x1688bf,void 0x0,_0x42ad9d))return!0x1;const _0x461cab=_0x42ad9d['getSelectionAffectedTableCells'](_0x300ded['document']['selection']);if(!_0x461cab['length'])return!0x1;const _0x30b4d9=_0x461cab[0x0]['findAncestor']('table'),_0x2e2dbb=_0x42ad9d['getRowIndexes'](_0x461cab),_0x30bc82=_0x42ad9d['getColumnIndexes'](_0x461cab),_0x1128e3={'startRow':_0x2e2dbb['first'],'endRow':_0x2e2dbb['last'],'startColumn':_0x30bc82['first'],'endColumn':_0x30bc82['last']};return 0x1==_0x461cab['length']&&(_0x1128e3['endRow']+=_0x42ad9d['getRows'](_0x1688bf)-0x1,_0x1128e3['endColumn']+=_0x42ad9d['getColumns'](_0x1688bf)-0x1),Oe(_0x30b4d9,_0x1128e3,_0x42ad9d);}(_0xbdb5e3,_0x121a33,_0x4d8b8b['model'],_0x479b12,_0x3693b4)&&(_0x3fe27a['stop'](),_0xb49913={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4d8b8b['model']['change'](()=>{_0x4d8b8b['model']['insertContent'](_0x4cda91[0x0],_0x4cda91[0x1],_0x4cda91[0x2],{'forceDefaultExecution':!0x0});const _0x3ae369=_0x58b4bb(),{rowInsertionRanges:_0x34a524,columnInsertionRanges:_0x2c2ed9,insertionRanges:_0x58e365,deletionRanges:_0x4fce15,cells:_0xd647a2}=_0xb49913;_0x34a524['length']&&_0x1117a8['markMultiRangeInsertion'](_0x34a524,'tablePasteRow',{'tablePasteChainId':_0x3ae369}),_0x2c2ed9['length']&&_0x1117a8['markMultiRangeInsertion'](_0x2c2ed9,'tablePasteColumn',{'tablePasteChainId':_0x3ae369}),_0x58e365['length']&&(_0x1117a8['markMultiRangeInsertion'](_0x58e365,'tablePaste',{'tablePasteChainId':_0x3ae369,'skipNestingCheck':!0x0}),_0x58e365['forEach'](_0x3a4a13=>_0x3a4a13['detach']?.())),_0x4fce15['length']&&(_0x1117a8['markMultiRangeDeletion'](_0x4fce15,'tablePaste',{'tablePasteChainId':_0x3ae369,'skipNestingCheck':!0x0}),_0x4fce15['forEach'](_0x2e5fb7=>_0x2e5fb7['detach']?.()));const _0x2a101b=_0x1117a8['markMultiRangeBlockFormat'](_0xd647a2['map'](({element:_0x59cf69})=>_0x59cf69),{'formatGroupId':_0x58b4bb()},[],'tablePasteCell',{'tablePasteChainId':_0x3ae369});if(_0x2a101b){const _0x33068c=_0x2a101b['getMarkers'](),_0x1a6292=[];for(const {element:_0x170749,attributes:_0x2ddf38}of _0xd647a2){if(!_0x2ddf38)continue;const _0x57f1da=_0x4d8b8b['model']['createRangeOn'](_0x170749),_0x38dfb8=_0x33068c['find'](_0x531168=>_0x531168['getRange']()['isEqual'](_0x57f1da));_0x38dfb8&&_0x1a6292['push']([_0x38dfb8['name'],_0x2ddf38]);}_0x1a6292['length']&&_0x2a101b['setAttribute']('markerAttributes',Object['fromEntries'](_0x1a6292));}_0xb49913=null;}));},{'priority':_0x3377f6['high']+0xa}),_0x3b649d['on']('contentInsertion',()=>{_0x460bde=!0x1;},{'priority':'lowest'}),_0x4d8b8b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24f3b3,_0x50b5e5)=>{const [_0x2853fb,_0x181888,,_0x13ac2f]=_0x50b5e5;if(!_0xb49913)return;_0x24f3b3['stop']();const _0x16baba=_0x2853fb['cell'],_0x45a87c=_0x181888,_0x2a2cf7=Be(_0x16baba),_0x349e87=Be(_0x45a87c);_0x24f3b3['return']=_0x16baba;let _0x36cf0e=null,_0x45330f=null;if(_0x349e87||_0x2a2cf7){if(_0x2a2cf7&&!_0x349e87){_0x13ac2f['remove'](_0x16baba['getChild'](0x0));for(const _0x26ed8b of Array['from'](_0x45a87c['getChildren']()))_0x13ac2f['insert'](_0x26ed8b,_0x16baba,'end');const _0x1f84b1=_0xb49913['rowInsertionIndexes']['includes'](_0x2853fb['row']),_0x216aab=_0xb49913['columnInsertionIndexes']['includes'](_0x2853fb['column']);_0x1f84b1||_0x216aab||(_0x36cf0e=_0x41285e['fromRange'](_0x13ac2f['createRangeIn'](_0x16baba)));}else _0x349e87&&!_0x2a2cf7&&(_0x45330f=_0x13ac2f['createRangeIn'](_0x16baba));}else{const _0x193aa2=_0x13ac2f['createElement']('tableCellSuggestion'),_0x3cbb3d=_0x13ac2f['createElement']('tableCellSuggestion');_0x13ac2f['wrap'](_0x13ac2f['createRangeIn'](_0x16baba),_0x3cbb3d),_0x13ac2f['insert'](_0x193aa2,_0x16baba,0x0);for(const _0x591341 of Array['from'](_0x45a87c['getChildren']()))_0x13ac2f['insert'](_0x591341,_0x193aa2,'end');_0x36cf0e=_0x41285e['fromRange'](_0x13ac2f['createRangeOn'](_0x193aa2)),_0x45330f=_0x41285e['fromRange'](_0x13ac2f['createRangeOn'](_0x3cbb3d));}const _0x54aa84=Array['from'](_0x45a87c['getAttributes']())['filter'](([_0x28d045])=>Re['includes'](_0x28d045));_0xb49913['cells']['push']({'element':_0x16baba,'attributes':_0x54aa84['length']?Object['fromEntries'](_0x54aa84):null}),_0x36cf0e&&_0xb49913['insertionRanges']['push'](_0x36cf0e),_0x45330f&&_0xb49913['deletionRanges']['push'](_0x45330f);},{'priority':'high'}),_0x479b12['on']('insertColumns',(_0x86052b,_0x11349e)=>{const [_0x30fe63,_0x70a1cd={}]=_0x11349e;if(!_0xb49913)return;const _0x43ac69=_0x70a1cd['at']||0x0,_0x31c665=_0x70a1cd['columns']||0x1;_0xb49913['columnInsertionIndexes']=new Array(_0x31c665)['fill'](_0x43ac69)['map']((_0x4e7295,_0x5bbe94)=>_0x4e7295+_0x5bbe94);for(const {cell:_0x3f95c1}of _0x479b12['createTableWalker'](_0x30fe63,{'startColumn':_0x43ac69,'endColumn':_0x43ac69+_0x31c665-0x1}))_0xb49913['columnInsertionRanges']['push'](_0x4d8b8b['model']['createRangeOn'](_0x3f95c1));},{'priority':'low'}),_0x479b12['on']('insertRows',(_0x8ac5fc,_0xe0cafa)=>{const [_0x3f8941,_0x54954e={}]=_0xe0cafa;if(!_0xb49913)return;const _0x5b6e3c=_0x54954e['at']||0x0,_0x28ae7e=_0x54954e['rows']||0x1;_0xb49913['rowInsertionIndexes']=new Array(_0x28ae7e)['fill'](_0x5b6e3c)['map']((_0x1a7603,_0x480d04)=>_0x1a7603+_0x480d04);for(const {cell:_0x3b7714}of _0x479b12['createTableWalker'](_0x3f8941,{'startRow':_0x5b6e3c,'endRow':_0x5b6e3c+_0x28ae7e-0x1}))_0xb49913['rowInsertionRanges']['push'](_0x4d8b8b['model']['createRangeOn'](_0x3b7714));},{'priority':'low'}),_0x1117a8['descriptionFactory']['registerDescriptionCallback'](_0x56690a=>{if(_0x56690a['subType']&&_0x56690a['subType']['startsWith']('tablePaste'))return _0x56690a['previous']?{}:{'type':'insertion','content':o(_0x4d8b8b['locale'],'*Replace\x20table\x20cells*')};});const _0x3d8036=()=>!0x1;for(const _0x2476c1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1117a8['_suggestionFactory']['registerCustomCallback']('insertion',_0x2476c1,'join',_0x3d8036),_0x1117a8['_suggestionFactory']['registerCustomCallback']('deletion',_0x2476c1,'join',_0x3d8036),_0x1117a8['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2476c1,'join',_0x3d8036);_0x1117a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3d8036),_0x1117a8['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x28d715,_0x3a2524,_0x55d47b)=>{const _0xcdcac=_0x28d715['map'](_0x218056=>_0x218056['getContainedElement']())['filter'](_0x5f16ef=>_0x5f16ef),_0x4643a0=new Map(_0xcdcac['map'](_0x4696e6=>[_0x4696e6,null]));if(_0xb49913){for(const {element:_0x34c7ff,attributes:_0x1cea79}of _0xb49913['cells'])_0x1cea79&&_0x4643a0['set'](_0x34c7ff,_0x1cea79);}else{if(_0x55d47b&&_0x55d47b['markerAttributes'])for(const [_0xed4202,_0x24d38d]of Object['entries'](_0x55d47b['markerAttributes'])){const _0x17f322=_0x4d8b8b['model']['markers']['get'](_0xed4202),_0x2d6e9c=_0x17f322?_0x17f322['getRange']()['getContainedElement']():null;_0x2d6e9c&&_0x4643a0['set'](_0x2d6e9c,_0x24d38d);}}_0x4d8b8b['model']['change'](_0x4b992f=>{for(const [_0x3ef6fd,_0x1f0708]of _0x4643a0)_0x4b992f['setAttributes']({...Ae,..._0x1f0708},_0x3ef6fd);});});const _0x497747=(_0x23f5a2,_0x38eca1)=>{_0x1117a8['_suggestionFactory']['registerCustomCallback'](_0x23f5a2,'tablePaste',_0x38eca1,(_0x3303f3,_0x565aaa,_0x2946a3)=>{_0x4d8b8b['model']['change'](_0x597e31=>{const _0x5c5314=[];for(const _0x264474 of _0x3303f3){const _0x438f9d=_0x264474['start']['nodeAfter'];_0x438f9d['is']('element','tableCellSuggestion')&&_0x5c5314['push'](_0x438f9d);}_0x1117a8['_suggestionFactory']['getSuggestionCallback'](_0x23f5a2,null,_0x38eca1)(_0x3303f3,_0x565aaa,_0x2946a3);for(const _0xc91c35 of _0x5c5314)'$graveyard'!=_0xc91c35['root']['rootName']&&_0x597e31['unwrap'](_0xc91c35);});});};_0x497747('insertion','accept'),_0x497747('insertion','discard'),_0x497747('deletion','accept'),_0x497747('deletion','discard'),_0x1117a8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1048c6=>{const _0x4e09e6=_0x1048c6['map'](_0x5d3c95=>_0x5d3c95['getContainedElement']()),_0x42e696=_0x4e09e6[0x0]['findAncestor']('table'),{minRow:_0x3f933c,maxRow:_0x5899bb}=_0x3047cb['_getCoordsForCells'](_0x4e09e6);_0x479b12['removeRows'](_0x42e696,{'at':_0x3f933c,'rows':_0x5899bb-_0x3f933c+0x1});}),_0x1117a8['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x579b57=>{const _0x12c1ee=_0x579b57['map'](_0x58b9e5=>_0x58b9e5['getContainedElement']()),_0x526ae0=_0x12c1ee[0x0]['findAncestor']('table'),{minColumn:_0x3dd7f5,maxColumn:_0x34538d}=_0x3047cb['_getCoordsForCells'](_0x12c1ee);_0x479b12['removeColumns'](_0x526ae0,{'at':_0x3dd7f5,'columns':_0x34538d-_0x3dd7f5+0x1});});const _0x568f8f=(_0x490783,_0x2e8d36)=>{if(!_0x2e8d36['subType']||!_0x2e8d36['subType']['startsWith']('tablePaste'))return;const _0x27fb06=_0x2e8d36['attributes']['tablePasteChainId'],_0x7143e5=_0x1117a8['getSuggestions']()['filter'](_0x1e249c=>_0x1e249c['isInContent']&&_0x1e249c['attributes']&&_0x1e249c['attributes']['tablePasteChainId']==_0x27fb06);_0x7143e5['length']&&_0x2e8d36['getAllAdjacentSuggestions']()['length']!=_0x7143e5['length']&&_0x7143e5['reduce']((_0x302605,_0x11a092)=>(_0x302605['next']=_0x11a092,_0x11a092['previous']=_0x302605,_0x11a092));};function _0x397bfa(_0x3355b2,_0x43f259=!0x0){const {id:_0x109440,authorId:_0x268627}=_0x1117a8['_splitMarkerName'](_0x3355b2['markerName']),_0x13d9e8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x43bf75=_0x1117a8['activeMarkers']['includes'](_0x3355b2['markerName']);return _0x43bf75&&_0x13d9e8['push']('ck-suggestion-marker--active'),{'classes':_0x13d9e8,'attributes':{'data-suggestion':_0x109440,'data-author-id':_0x268627},'priority':_0x43bf75&&_0x43f259?0xbc2:0xbb8};}_0x1117a8['on']('suggestionLoaded',_0x568f8f,{'priority':'high'}),_0x1117a8['on']('suggestionUnloaded',_0x568f8f,{'priority':'high'}),_0x4d8b8b['model']['document']['registerPostFixer'](()=>{let _0x4b9aa1=!0x1;const _0x16c31b=Array['from'](_0x4d8b8b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x266744,data:_0x5a0ee4}of _0x16c31b){const {group:_0x56dc50,type:_0x5c9a83,id:_0x576884}=_0x1117a8['_splitMarkerName'](_0x266744);if('suggestion'!=_0x56dc50||'deletion'!=_0x5c9a83||_0x5a0ee4['oldRange'])continue;if(!_0x1117a8['hasSuggestion'](_0x576884))continue;const _0x47ede8=_0x1117a8['getSuggestion'](_0x576884)['getRanges'](),_0x3ad2dc=_0x4d8b8b['plugins']['get']('Users')['me'];for(const _0x3049d0 of _0x1117a8['getSuggestions']()){if(!_0x3049d0['isInContent']||_0x3049d0['author']!=_0x3ad2dc)continue;if('formatBlock'!=_0x3049d0['type']||'tablePasteCell'!=_0x3049d0['subType'])continue;if(_0x3049d0['getRanges']()['every'](_0x35ae1f=>_0x47ede8['some'](_0x1eef31=>_0x1eef31['containsRange'](_0x35ae1f,!0x0)))){for(const _0x3f7e60 of _0x3049d0['getAllAdjacentSuggestions']())_0x3f7e60['isInContent']&&(_0x3f7e60['discard'](),_0x4b9aa1=!0x0);}}}return _0x4b9aa1;}),_0x4d8b8b['model']['document']['registerPostFixer'](_0x31fd6c=>{const _0x5a3d23=_0x4d8b8b['commands']['get']('redo');if(!_0x5a3d23||!_0x5a3d23['_createdBatches']['has'](_0x31fd6c['batch']))return!0x1;let _0x4471bd=!0x1;const _0x5e4d9b=_0x4d8b8b['plugins']['get']('Users')['me'],_0x3c42b5=_0x4d8b8b['model']['document']['differ']['getChanges'](),_0x3633c7=Array['from'](_0x4d8b8b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x11499c,data:_0x7545bc})=>{const {group:_0x1e5cac,subType:_0x35dc6b,authorId:_0xf2d09a}=_0x1117a8['_splitMarkerName'](_0x11499c);return'suggestion'==_0x1e5cac&&'tablePaste'==_0x35dc6b&&_0xf2d09a==_0x5e4d9b['id']&&!_0x7545bc['oldRange'];});for(const _0x36651f of _0x3c42b5){if('insert'!=_0x36651f['type']||'tableCellSuggestion'!=_0x36651f['name']||0x1!=_0x36651f['length'])continue;const _0x16d7ae=_0x31fd6c['createRange'](_0x36651f['position'],_0x36651f['position']['getShiftedBy'](0x1));if(!_0x3633c7['find'](({data:_0x1d5c23})=>_0x1d5c23['newRange']['isEqual'](_0x16d7ae))){for(const {name:_0xa5d8d7,data:_0x49915e}of _0x3633c7)if(_0x16d7ae['containsRange'](_0x49915e['newRange'])){_0x31fd6c['updateMarker'](_0xa5d8d7,{'range':_0x16d7ae}),_0x4471bd=!0x0;break;}}}return _0x4471bd;}),_0x4d8b8b['model']['document']['registerPostFixer'](_0x5eeb21=>{let _0x42d1b5=!0x1;const _0x3480eb=_0x4d8b8b['plugins']['get']('Users')['me'],_0x347eec=_0x1117a8['getSuggestions']()['filter'](_0x32269b=>_0x32269b['isInContent']&&_0x32269b['author']==_0x3480eb),_0x521439=new Set(),_0x3e5e33=new Set();for(const _0x34e889 of _0x347eec)if('tablePaste'==_0x34e889['subType'])for(const _0x56bf1b of _0x34e889['getMarkers']()){const _0x8439c2=_0x56bf1b['getRange']()['getContainedElement']();if(_0x8439c2){if(_0x8439c2['is']('element','tableCellSuggestion')&&Be(_0x8439c2)){_0x34e889['removeMarker'](_0x56bf1b['name']),_0x521439['add'](_0x8439c2),_0x42d1b5=!0x0;const _0x24adc5=_0x8439c2['nextSibling'],_0x49ecfa=_0x8439c2['previousSibling'],_0x45def9=_0x24adc5&&_0x24adc5['is']('element','tableCellSuggestion'),_0x108f02=_0x49ecfa&&_0x49ecfa['is']('element','tableCellSuggestion');_0x45def9&&!_0x521439['has'](_0x24adc5)&&_0x3e5e33['add'](_0x24adc5),_0x108f02&&!_0x521439['has'](_0x49ecfa)&&_0x3e5e33['add'](_0x49ecfa);}else _0x8439c2['is']('element','paragraph')&&_0x8439c2['isEmpty']&&(_0x34e889['removeMarker'](_0x56bf1b['name']),_0x42d1b5=!0x0);}}else{if('tablePasteCell'==_0x34e889['subType']){if(!_0x34e889['attributes']||!_0x34e889['attributes']['tablePasteChainId'])continue;const _0x679377=_0x34e889['attributes']['markerAttributes'];if(_0x679377&&Object['keys'](_0x679377)['length'])continue;const _0x4902bd=_0x34e889['attributes']['tablePasteChainId'];let _0x58fd8d=!0x0,_0x24f49f=!0x0;for(const _0xf0c5fd of _0x347eec)if(_0xf0c5fd['subType']&&_0xf0c5fd['subType']['startsWith']('tablePaste')){if(!_0xf0c5fd['attributes']['tablePasteChainId']){_0x24f49f=!0x1;break;}if(_0xf0c5fd['id']!=_0x34e889['id']&&_0xf0c5fd['attributes']['tablePasteChainId']==_0x4902bd){_0x58fd8d=!0x1;break;}}_0x24f49f&&_0x58fd8d&&(_0x34e889['removeMarkers'](),_0x42d1b5=!0x0);}}for(const _0x348f19 of _0x521439)_0x5eeb21['remove'](_0x348f19);for(const _0x1bbeda of _0x3e5e33)_0x5eeb21['unwrap'](_0x1bbeda);return _0x42d1b5;}),_0x4d8b8b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4fe602=>_0x397bfa(_0x4fe602),'converterPriority':'high'}),_0x4d8b8b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x10a357,_0x4eaeae)=>_0x4eaeae['options']['showSuggestionHighlights']?_0x397bfa(_0x10a357,!0x1):null,'converterPriority':'high'});const _0x3533e8=_0x4d8b8b['editing']['view'];this['listenTo'](_0x3533e8['document'],'clipboardOutput',(_0x3c248a,_0x2e0fe3)=>{const _0x44a0d1=[];for(const _0x1acb2d of _0x3533e8['createRangeIn'](_0x2e0fe3['content'])['getItems']())_0x1acb2d['is']('element','suggestion-td')&&_0x44a0d1['push'](_0x1acb2d);_0x3533e8['change'](_0x10cf4c=>{for(const _0x69a93f of _0x44a0d1)_0x10cf4c['move'](_0x10cf4c['createRangeIn'](_0x69a93f),_0x10cf4c['createPositionBefore'](_0x69a93f)),_0x10cf4c['remove'](_0x69a93f);});});}}function Be(_0x55fd83){if(_0x55fd83['isEmpty'])return!0x0;const _0x4e3ca7=_0x55fd83['getChild'](0x0);return _0x4e3ca7['is']('element','paragraph')&&_0x4e3ca7['isEmpty'];}function Oe(_0x2405bc,_0x1da035={},_0x5b88fe){for(const {isAnchor:_0x2e46d5,cellHeight:_0x297a43,cellWidth:_0x5acb68}of _0x5b88fe['createTableWalker'](_0x2405bc,{'includeAllSlots':!0x0,..._0x1da035}))if(!_0x2e46d5||0x1!=_0x297a43||0x1!=_0x5acb68)return!0x1;return!0x0;}class Rt extends _0x4f24f5{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1a958e=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a958e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1a958e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1a958e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a958e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1a958e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1a958e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e7d98,_0x5880a4){const _0x36a966=this['editor']['plugins']['get']('TrackChangesEditing'),_0x475a03=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x49aced=_0x5880a4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x972775=_0x475a03['getColumnGroupElement'](_0x49aced);let _0x2dcf5d=_0x972775?_0x475a03['getTableColumnsWidths'](_0x972775):null,_0x606692=_0x49aced['getAttribute']('tableWidth')||null;const _0x50f3e6=_0x5880a4['tableWidth']||_0x606692,_0x1400de=_0x5880a4['columnWidths']||_0x2dcf5d,_0x6a41f3=this['editor']['plugins']['get']('Users')['me'];for(const _0x21b42b of _0x36a966['getSuggestions']()){const _0x168433=_0x21b42b['getContainedElement']();if('resizeTable'===_0x21b42b['subType']&&_0x168433===_0x49aced){_0x21b42b['author']!==_0x6a41f3&&_0x21b42b['discard']();const _0x38231d=_0x21b42b['data']['commandParams'];_0x606692=_0x38231d[0x0]['tableWidth'],_0x2dcf5d=_0x38231d[0x0]['columnWidths'];break;}}_0x1e7d98({'table':_0x49aced,'tableWidth':_0x50f3e6,'columnWidths':_0x1400de}),_0x36a966['markBlockFormat'](_0x49aced,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x606692,'columnWidths':_0x2dcf5d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x982ce2){if('formatBlock'!=_0x982ce2['type']&&'formatInline'!=_0x982ce2['type'])return;const {data:_0x2d792a}=_0x982ce2;if(_0x2d792a&&'resizeTable'===_0x2d792a['formatGroupId']){const _0x3ed204='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3ed204)};}}}class Tt extends _0x4f24f5{['afterInit'](){const _0x36be3d=this['editor'];_0x36be3d['plugins']['has']('Template')&&_0x36be3d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x4f24f5{['afterInit'](){const _0x2058fa=this['editor'];if(!_0x2058fa['commands']['get']('insertTableOfContents'))return;_0x2058fa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x599eb9=_0x2058fa['plugins']['get']('TrackChangesEditing'),_0xf2ba6e=_0x2058fa['locale'];_0x599eb9['descriptionFactory']['registerElementLabel']('tableOfContents',_0x2abe9d=>o(_0xf2ba6e,'ELEMENT_TABLE_OF_CONTENTS',_0x2abe9d));}}class Ut extends _0x4f24f5{['afterInit'](){const _0xc94ad0=this['editor'];if(!_0xc94ad0['plugins']['has']('Title'))return;const _0x5a0f83=_0xc94ad0['plugins']['get']('TrackChangesEditing');_0x5a0f83['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xc94ad0['locale'],'ELEMENT_TITLE')),_0xc94ad0['model']['document']['registerPostFixer'](_0x8e5ee4=>{let _0x5c5214=!0x1;const _0x1c7fc3=Array['from'](_0xc94ad0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c5a3e,data:_0x17a0cb}of _0x1c7fc3){const {group:_0x4248ef}=_0x5a0f83['_splitMarkerName'](_0x2c5a3e);if('suggestion'!==_0x4248ef||!_0x17a0cb['newRange'])continue;const _0x40e223=_0x17a0cb['newRange'],_0x53c274=_0x40e223['end']['nodeBefore'];if(!_0x53c274||!_0x53c274['is']('element','title-content'))continue;if(!_0x40e223['start']['isTouching'](_0x40e223['end']))continue;const _0x2800d1=_0xc94ad0['model']['schema']['getNearestSelectionRange'](_0x40e223['end'],'forward');if(_0x2800d1&&_0x2800d1['isCollapsed']){const _0x3c7490=_0x8e5ee4['createRange'](_0x40e223['start'],_0x2800d1['start']);_0x3c7490['isEqual'](_0x40e223)||(_0x8e5ee4['updateMarker'](_0x2c5a3e,{'range':_0x3c7490}),_0x5c5214=!0x0);}_0x5c5214||(_0x8e5ee4['removeMarker'](_0x2c5a3e),_0x5c5214=!0x0);}return _0x5c5214;});}}class Vt extends _0x4f24f5{['afterInit'](){const _0x520e0e=this['editor'],_0x1b78db=_0x520e0e['plugins']['get']('TrackChangesEditing');_0x520e0e['plugins']['has']('Uploadcare')&&(_0x1b78db['enableCommand']('uploadcare'),_0x520e0e['plugins']['has']('UploadcareImageEdit')&&(_0x1b78db['enableCommand']('uploadcareImageEdit'),_0x1b78db['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x1b78db['descriptionFactory']['registerDescriptionCallback'](_0x3dd9f4=>{if('attribute'!=_0x3dd9f4['type'])return;const {data:_0x129015}=_0x3dd9f4;return _0x129015&&'uploadcareImageId'==_0x129015['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x4f24f5{['afterInit'](){const _0x6ac987=this['editor'],_0x531ad3=_0x6ac987['plugins']['get']('TrackChangesEditing');_0x6ac987['plugins']['has']('UndoEditing')&&(_0x531ad3['enableCommand']('undo'),_0x531ad3['enableCommand']('redo'));}}class Pt extends _0x4f24f5{static get['requires'](){return[Dt];}['afterInit'](){const _0x4c88bf=this['editor'];if(!_0x4c88bf['plugins']['has']('TableCaptionEditing'))return;_0x4c88bf['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x4f24f5{['tableProperties'];['tableCellProperties'];constructor(_0x49c995){super(_0x49c995),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x49c995['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x41a148=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2848d2 of this['tableProperties'])_0x41a148['enableCommand'](_0x2848d2,(_0x266532,_0x578fc9)=>{const _0x47a85a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2848d2,[_0x47a85a],this['tableProperties'],'tableProperties',_0x266532,_0x578fc9);});_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x41a148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1dbab5,_0x32225a)=>this['handleDiscardAction'](this['tableProperties'],_0x1dbab5,_0x32225a)),_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x45916f of this['tableCellProperties'])this['editor']['commands']['get'](_0x45916f)&&_0x41a148['enableCommand'](_0x45916f,(_0x487009,_0x5dfcef)=>{const _0xc7aac5=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x45916f,_0xc7aac5,this['tableCellProperties'],'tableCellProperties',_0x487009,_0x5dfcef);});_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x41a148['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x55683f,_0x3bc032)=>this['handleDiscardAction'](this['tableCellProperties'],_0x55683f,_0x3bc032)),_0x41a148['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x41a148['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x41a148['descriptionFactory']['registerDescriptionCallback'](_0x93ec23=>this['handleSuggestionDescription'](_0x93ec23)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x3ecf8e,_0xf194ca,_0x34caf8,_0x2034ba,_0x46b421,_0x243a2b){const _0x2eb257=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x243a2b['batch'],()=>{for(const _0x2a8106 of _0xf194ca){if(this['_getSuggestion'](_0x2a8106,_0x2034ba))_0x46b421(_0x243a2b);else{const _0x8fc04={};for(const _0x502de3 of _0x34caf8){const _0x35c709=_0x2a8106['getAttribute'](_0x502de3);void 0x0!==_0x35c709&&(_0x8fc04[_0x502de3]=_0x35c709);}_0x46b421(_0x243a2b),_0x2eb257['markBlockFormat'](_0x2a8106,{'commandParams':[_0x8fc04]},[],_0x2034ba);}}});}['handleDiscardAction'](_0x5adc46,_0x448a0a,_0xbad961){const _0x23ad07=_0x448a0a[0x0]['start']['nodeAfter'],_0x132a29=_0xbad961['commandParams'][0x0];this['editor']['model']['change'](_0x5429fa=>{for(const _0x3a339f of _0x5adc46)void 0x0!==_0x132a29[_0x3a339f]?_0x5429fa['setAttribute'](_0x3a339f,_0x132a29[_0x3a339f],_0x23ad07):_0x5429fa['removeAttribute'](_0x3a339f,_0x23ad07);});}['handleSuggestionDescription'](_0x1c4b2c){if(_0x1c4b2c['data'])switch(_0x1c4b2c['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x19ee33,_0x3a3203){const _0x3c4837=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x10a16b of _0x3c4837['getSuggestions']({'skipNotAttached':!0x0})){const _0x4944cd=_0x10a16b['getContainedElement']();if(_0x10a16b['subType']===_0x3a3203&&_0x4944cd===_0x19ee33)return _0x10a16b;}return null;}['_registerTablePropertiesAttributes'](){const _0x3155cf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13ea88=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x1a9cf1 of _0x13ea88){const _0xc60c6d=_0x1a9cf1['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3155cf['descriptionFactory']['registerAttributeLabel'](_0x1a9cf1,o(this['editor']['locale'],'FORMAT_'+_0xc60c6d));}}}class Lt extends _0x4f24f5{['afterInit'](){const _0xa8b190=this['editor'];if(!_0xa8b190['plugins']['has']('LineHeight'))return;const _0x3d230a=_0xa8b190['plugins']['get']('TrackChangesEditing'),_0x24807b=_0xa8b190['locale'];_0x3d230a['enableDefaultAttributesIntegration']('lineHeight'),_0x3d230a['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x24807b,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x4f24f5{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x508c21,_0x3089c7,_0x182933,_0x5aa91f,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2a5f3a){super(_0x2a5f3a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1db13b,_0x2555c5,_0x156b6e,_0x432ac2)=>{this['_model']['change'](()=>{for(const _0x9bdce1 of[..._0x432ac2,..._0x156b6e])this['_model']['markers']['has'](_0x9bdce1)&&_0x2a5f3a['editing']['reconvertMarker'](_0x9bdce1);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2a5f3a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x2a5f3a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2a5f3a['config']['get']('trackChanges.trackFormatChanges'),_0x2a5f3a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2a5f3a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2a5f3a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4992db=this['editor'];_0x4992db['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1fab00,{writer:_0x5e17a6})=>{let _0x2e3a0e='suggestion:'+_0x1fab00['getAttribute']('suggestion-type')+':'+_0x1fab00['getAttribute']('id');return _0x1fab00['getAttribute']('marker-count')&&(_0x2e3a0e+=':'+_0x1fab00['getAttribute']('marker-count')),_0x5e17a6['createElement']('$marker',{'data-name':_0x2e3a0e});}}),_0x4992db['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4992db['model']['document']['registerPostFixer'](_0x3dedbb=>{let _0x4cf2dd=!0x1;const _0x511974=Array['from'](_0x4992db['model']['document']['differ']['getChangedMarkers']()),_0x2d3a89=new Set();for(const {name:_0xf51dc9,data:_0x5bffb3}of _0x511974){const {group:_0x3fca44,type:_0x16df0b,subType:_0x3401ac,id:_0x34c6b2}=this['_splitMarkerName'](_0xf51dc9);if('suggestion'!==_0x3fca44)continue;const _0x279a3f=_0x3401ac?'suggestion:'+_0x16df0b+':'+_0x3401ac+':'+_0x34c6b2:'suggestion:'+_0x16df0b+':'+_0x34c6b2,_0x151d9d=_0x4992db['model']['markers']['getMarkersGroup'](_0x279a3f),_0x1c70ec=_0x4992db['model']['markers']['get'](_0xf51dc9),_0x2a0139=this['_suggestions']['get'](_0x34c6b2);if(null!=_0x5bffb3['newRange']){'formatInline'==_0x16df0b&&(_0x4cf2dd=_0x4cf2dd||Wt(_0x5bffb3['newRange'],_0xf51dc9,_0x3dedbb,_0x4992db['model']['schema']));const _0x2ee5df='attribute'==_0x16df0b&&this['_isBlockAttribute'](_0x3401ac['split']('|')[0x0]),_0x2a8082='attribute'==_0x16df0b&&this['_isInlineAttribute'](_0x3401ac['split']('|')[0x0]);if(_0x5bffb3['newRange']['isCollapsed']||'$graveyard'==_0x5bffb3['newRange']['root']['rootName']||'formatBlock'==_0x16df0b&&!Qt(_0x5bffb3['newRange'])||_0x2ee5df&&!Qt(_0x5bffb3['newRange'])||_0x2a8082&&Xt(_0x5bffb3['newRange'])||'deletion'==_0x16df0b&&Xt(_0x5bffb3['newRange'])||_0x1c70ec&&Yt(_0x1c70ec,_0x151d9d))_0x3dedbb['removeMarker'](_0xf51dc9),_0x4cf2dd=!0x0;else{if(!_0x2a0139||!_0x2a0139['isInContent'])continue;if(_0x5bffb3['newRange']&&_0x5bffb3['oldRange']&&_0x5bffb3['newRange']['isEqual'](_0x5bffb3['oldRange']))continue;_0x2d3a89['add'](_0x2a0139);}}}return _0x2d3a89['size']>0x0&&(_0x4cf2dd=!!this['_joinWithAdjacentSuggestions'](_0x2d3a89)||_0x4cf2dd),_0x4cf2dd;}),_0x4992db['model']['document']['registerPostFixer'](_0xb4a1ce=>{let _0x1dd467=!0x1;for(const _0xde3b5a of _0x4992db['model']['document']['differ']['getChanges']())if('insert'==_0xde3b5a['type'])for(const _0x325cad of this['_suggestions']['values']()){if(_0x325cad['isMultiRange']||!_0x325cad['isInContent'])continue;const _0x759f8a='formatBlock'==_0x325cad['type'],_0x3fe604=this['_getAttributeKey'](_0x325cad),_0x86a23a=_0x3fe604&&this['_isBlockAttribute'](_0x3fe604);if(!_0x759f8a&&!_0x86a23a)continue;const _0x55248b=_0x325cad['getFirstRange']();if(_0x55248b['start']['parent']!=_0x55248b['end']['parent']&&!_0x55248b['end']['isAtEnd']){const _0x261527=_0x4992db['model']['createPositionAt'](_0x55248b['start']['nodeAfter'],'end'),_0x29ef66=_0x4992db['model']['createRange'](_0x55248b['start'],_0x261527);_0xb4a1ce['updateMarker'](_0x325cad['getFirstMarker'](),{'range':_0x29ef66}),_0x1dd467=!0x0;}}return _0x1dd467;}),_0x4992db['model']['document']['registerPostFixer'](_0x559347=>this['_processAttributeChanges'](_0x559347)),_0x4992db['model']['document']['registerPostFixer'](_0xc27edd=>!_0xc27edd['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xc27edd)),_0x4992db['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4992db['model']['document']['on']('change:data',(_0xf9e97e,_0x507e5a)=>{if(!_0x507e5a['isLocal']||_0x507e5a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x39c622=_0x4992db['model']['document']['differ']['getChanges']();if(0x0==_0x39c622['length'])return;const _0x553bd0=[],_0x4172de=_0x39c622['filter'](_0x5de384=>'attribute'==_0x5de384['type']),_0x37e069=_0x39c622['filter'](_0x1ee0bf=>'insert'==_0x1ee0bf['type']&&'$text'!=_0x1ee0bf['name']);for(const _0xac9b78 of _0x4172de)this['_isRegisteredAttribute'](_0xac9b78['attributeKey'])&&_0x553bd0['push']({'key':_0xac9b78['attributeKey'],'newValue':_0xac9b78['attributeNewValue'],'oldValue':_0xac9b78['attributeOldValue'],'range':Zt(_0xac9b78['range'],_0x4992db['model'])});for(const _0xfbbc04 of _0x37e069){if('rename'!=_0xfbbc04['action']&&'refresh'!=_0xfbbc04['action'])continue;const _0x1cfca6=tn(_0xfbbc04['position']['nodeAfter'],_0x4992db['model']),_0x3ba01e=_0xfbbc04['before'];'rename'==_0xfbbc04['action']&&_0x553bd0['push']({'key':m,'newValue':_0xfbbc04['name'],'oldValue':_0x3ba01e['name'],'range':_0x1cfca6});for(const [_0x40d1c3,_0x1bb419]of _0x3ba01e['attributes']){if(!this['_isRegisteredAttribute'](_0x40d1c3))continue;const _0x53022a=_0xfbbc04['attributes']['get'](_0x40d1c3);_0x1bb419!==_0x53022a&&_0x553bd0['push']({'key':_0x40d1c3,'newValue':_0x53022a,'oldValue':_0x1bb419,'range':_0x1cfca6});}for(const [_0x5c5a7c,_0x1b271a]of _0xfbbc04['attributes'])this['_isRegisteredAttribute'](_0x5c5a7c)&&(_0x3ba01e['attributes']['has'](_0x5c5a7c)||_0x553bd0['push']({'key':_0x5c5a7c,'newValue':_0x1b271a,'oldValue':null,'range':_0x1cfca6}));}0x0!=_0x553bd0['length']&&_0x4992db['model']['enqueueChange'](_0x507e5a,_0x4a29ca=>{const _0x4ff09b=_0x58b4bb();for(const {range:_0x120c34,key:_0x4ae8b1,oldValue:_0x53ccbc,newValue:_0x184a06}of _0x553bd0)this['markAttributeChange'](_0x120c34,_0x4ae8b1,_0x53ccbc,_0x184a06,{'groupId':_0x4ff09b});this['_reduceExistingSuggestions'](_0x4a29ca,_0x553bd0);});},{'priority':'lowest'}),_0x4992db['model']['markers']['on']('update:suggestion',(_0x229839,_0x54df84,_0x27646e)=>{if(null==_0x27646e){const {id:_0x465ca8}=this['_splitMarkerName'](_0x54df84['name']),_0x7815fa=this['_suggestions']['get'](_0x465ca8);_0x7815fa&&_0x7815fa['addMarkerName'](_0x54df84['name']);}}),_0x4992db['model']['document']['on']('change:data',()=>{const _0x1c46dc=Array['from'](_0x4992db['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4e4c7c=>'suggestion'===this['_splitMarkerName'](_0x4e4c7c['name'])['group']);if(0x0===_0x1c46dc['length'])return;_0x1c46dc['sort']((_0x4379a3,_0x20e4a3)=>{const _0x2d016d=_0x4379a3['data']['oldRange'],_0xa04f54=_0x20e4a3['data']['oldRange'];return null===_0x2d016d&&null===_0xa04f54?0x0:null===_0x2d016d&&null!==_0xa04f54?-0x1:null!==_0x2d016d&&null===_0xa04f54?0x1:_0x2d016d['start']['isBefore'](_0xa04f54['start'])?-0x1:0x1;});const _0x8ea80a=new Set(),_0x5bcbd1=new Set();for(const {name:_0x39e770,data:_0x34f9a5}of _0x1c46dc){const {id:_0x5b96bf}=this['_splitMarkerName'](_0x39e770);if(null===_0x34f9a5['oldRange']){const _0x4439fe=this['_handleNewSuggestionMarker'](_0x39e770);_0x5bcbd1['add'](_0x4439fe);}else{const _0x480e36=this['_suggestions']['get'](_0x5b96bf);null!==_0x34f9a5['newRange']||_0x480e36['isInContent']?(_0x8ea80a['add'](_0x480e36['head']),_0x5bcbd1['add'](_0x480e36)):this['_removeSuggestion'](_0x480e36);}}_0x5bcbd1['size']>0x0&&this['_refreshSuggestionsChain'](_0x5bcbd1);for(const _0x5efc44 of _0x8ea80a)this['fire']('suggestionChanged',_0x5efc44);}),_0x4992db['model']['on']('applyOperation',(_0xcaac8,_0x4d45fe)=>{const _0x5ba0a9=_0x4d45fe[0x0];if(!this['_suggestions']['size'])return;if(!_0x5ba0a9['isDocumentOperation'])return;if(_0x5ba0a9['batch']['isUndo']||!_0x5ba0a9['batch']['isLocal'])return;let _0x2201b9,_0x2a9ab3;switch(_0x5ba0a9['type']){case'insert':_0x2201b9=_0x4992db['model']['createPositionAt'](_0x5ba0a9['position']),_0x2a9ab3=_0x2201b9['getShiftedBy'](_0x5ba0a9['howMany']);break;case'split':_0x2201b9=_0x4992db['model']['createPositionAt'](_0x5ba0a9['splitPosition']),_0x2a9ab3=_0x4992db['model']['createPositionAt'](_0x5ba0a9['moveTargetPosition']);break;case'move':_0x2201b9=_0x4992db['model']['createPositionAt'](_0x5ba0a9['targetPosition']),_0x2a9ab3=_0x2201b9['getShiftedBy'](_0x5ba0a9['howMany']);break;default:return;}const _0xcaef0a=_0x4992db['model']['createRange'](_0x2201b9,_0x2a9ab3);_0x4992db['model']['change'](()=>{for(const {suggestion:_0xfd6d30,meta:_0x4fe652}of this['_findSuggestions'](_0xcaef0a)){if(_0xfd6d30['isMultiRange'])continue;if('formatInline'==_0xfd6d30['type'])continue;const _0x48168e=this['_getAttributeKey'](_0xfd6d30);if(_0x48168e&&this['_isBlockAttribute'](_0x48168e)&&'split'!=_0x5ba0a9['type'])continue;const _0x305eac=_0xfd6d30['data']&&_0xfd6d30['data']['multipleBlocks'];('formatBlock'!=_0xfd6d30['type']||'split'==_0x5ba0a9['type']&&!_0x305eac)&&(_0x4fe652['containsRangeInObject']||'insertion'==_0xfd6d30['type']&&_0x4fe652['isOwn']||_0xfd6d30['getFirstRange']()['containsRange'](_0xcaef0a)&&this['_breakSuggestionMarker'](_0xfd6d30,_0x2201b9,_0x2a9ab3));}});},{'priority':'lowest'}),_0x4992db['model']['on']('deleteContent',(_0x3fa1da,_0x160b0a)=>{const _0x275327=_0x160b0a[0x0],_0x1886a8=_0x160b0a[0x1];if(_0x1886a8&&_0x1886a8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x275327['isCollapsed'])return;const _0x1eded5=_0x4992db['model']['schema'],{start:_0x1f1673,end:_0x258c65}=_0x275327['getFirstRange'](),_0x4a3947=_0x1f1673['nodeAfter']&&_0x1eded5['isLimit'](_0x1f1673['nodeAfter'])?null:_0x1eded5['getNearestSelectionRange'](_0x1f1673,'forward'),_0x2a427f=_0x258c65['nodeBefore']&&_0x1eded5['isLimit'](_0x258c65['nodeBefore'])?null:_0x1eded5['getNearestSelectionRange'](_0x258c65,'backward'),_0x108ecc=_0x4992db['model']['createRange'](_0x4a3947?_0x4a3947['start']:_0x1f1673,_0x2a427f?_0x2a427f['end']:_0x258c65);_0x4992db['model']['change'](_0x270c92=>{this['markDeletion'](_0x108ecc);const _0x297ddf=_0x4992db['model']['schema']['getNearestSelectionRange'](_0x108ecc['start']);_0x275327['is']('documentSelection')?_0x270c92['setSelection'](_0x297ddf):_0x275327['setTo'](_0x297ddf);}),_0x3fa1da['stop']();},{'priority':_0x3377f6['normal']+0xa}),_0x4992db['model']['on']('insertContent',(_0x5977f1,_0x2a6146)=>{const _0x5a945e=_0x2a6146[_0x2a6146['length']-0x1];_0x5a945e&&_0x5a945e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4992db['model']['change'](()=>{let _0x263110=_0x4992db['model']['insertContent'](_0x2a6146[0x0],_0x2a6146[0x1],_0x2a6146[0x2],{'forceDefaultExecution':!0x0});if(!_0x263110)return;_0x5977f1['return']=_0x263110['clone']();const _0x5b42d8=_0x263110['end']['nodeBefore'],_0x53d213=_0x4992db['model']['schema'];_0x5b42d8&&_0x53d213['isBlock'](_0x5b42d8)&&!_0x53d213['isObject'](_0x5b42d8)&&(_0x263110=_0x4992db['model']['createRange'](_0x263110['start'],_0x4992db['model']['createPositionAt'](_0x5b42d8,'end'))),this['markInsertion'](_0x263110);}),_0x5977f1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x45485b=new O(_0x4992db,this['_suggestions']);_0x4992db['commands']['add']('acceptSuggestion',_0x45485b),this['enableCommand']('acceptSuggestion');const _0x1f65ac=new x(_0x4992db,this['_suggestions']);_0x4992db['commands']['add']('discardSuggestion',_0x1f65ac),this['enableCommand']('discardSuggestion'),_0x4992db['commands']['add']('acceptAllSuggestions',new M(_0x4992db,_0x45485b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4992db['commands']['add']('discardAllSuggestions',new M(_0x4992db,_0x1f65ac,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4992db['commands']['add']('acceptSelectedSuggestions',new R(_0x4992db,_0x45485b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4992db['commands']['add']('discardSelectedSuggestions',new R(_0x4992db,_0x1f65ac,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x530590=_0x4992db['plugins']['get']('CommentsRepository');this['listenTo'](_0x530590,'addComment',(_0x14544f,{threadId:_0x4884c0})=>{const _0x1e5001=this['_suggestions']['get'](_0x4884c0);_0x1e5001&&_0x1e5001['commentThread']&&0x1===_0x1e5001['commentThread']['length']&&this['_updateSuggestionData'](_0x4884c0,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x530590,'removeComment',(_0x22d25a,{threadId:_0x8cdb4c})=>{const _0x372017=this['_suggestions']['get'](_0x8cdb4c);_0x372017&&_0x372017['commentThread']&&!_0x372017['commentThread']['length']&&this['_updateSuggestionData'](_0x8cdb4c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3a2dca){const _0x436dcb=_0x519143([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0xd20468=0x3d8d0df,_0x4c3a20=0x3df5677^_0xd20468,_0xd1bbd=window[_0x519143([0x44,0x61,0x74,0x65])][_0x519143([0x6e,0x6f,0x77])](),_0x5c6bc2=_0x3a2dca[_0x519143([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xc132ee=new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f85a2=>{_0x5c6bc2[_0x519143([0x6f,0x6e,0x63,0x65])](_0x519143([0x72,0x65,0x61,0x64,0x79]),_0x2f85a2);}),_0x171b13={[_0x519143([0x6b,0x74,0x79])]:_0x519143([0x45,0x43]),[_0x519143([0x75,0x73,0x65])]:_0x519143([0x73,0x69,0x67]),[_0x519143([0x63,0x72,0x76])]:_0x519143([0x50,0x2d,0x32,0x35,0x36]),[_0x519143([0x78])]:_0x519143([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]),[_0x519143([0x79])]:_0x519143([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]),[_0x519143([0x61,0x6c,0x67])]:_0x519143([0x45,0x53,0x32,0x35,0x36])},_0x2d903c=_0x5c6bc2[_0x519143([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x519143([0x67,0x65,0x74])](_0x519143([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a5bf8(){let _0x996614,_0x56c5fa=null,_0xd9cda0=null;try{if(_0x2d903c==_0x519143([0x47,0x50,0x4c]))return _0x519143([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x996614=_0x47f4de(),!_0x996614)return _0x519143([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x996614[_0x519143([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xd9cda0=_0x331e45(_0x996614[_0x519143([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x996614[_0x519143([0x6a,0x74,0x69])])),await _0x17e454()?_0x16f328()?_0x179d85()?_0x519143([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x364911()?(_0x996614[_0x519143([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x519143([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x56c5fa=_0x30c428(_0x519143([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa2211b()):_0x519143([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x519143([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x519143([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x519143([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x179d85(){const _0xe01472=[_0x519143([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x519143([0x74,0x72,0x69,0x61,0x6c])][_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x996614[_0x519143([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xd1bbd/0x3e8:0xe10*_0x4c3a20;return _0x996614[_0x519143([0x65,0x78,0x70])]<_0xe01472;}function _0x16f328(){const _0x1ed0b1=_0x996614[_0x519143([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1ed0b1)return!0x1;if(_0x1ed0b1[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x519143([0x2a])))return!0x0;if(_0x1ed0b1[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x519143([0x54,0x43])))return!0x0;if(_0x1ed0b1[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x519143([0x52,0x54,0x43]))){if(_0x543d65())return!0x0;if(_0x4a3c39()||_0xb8d787())return!0x0;}return!0x1;}function _0x364911(){const _0x1e276d=_0x996614[_0x519143([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1e276d||0x0==_0x1e276d[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x24334a}=new URL(window[_0x519143([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1e276d[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24334a))return!0x0;const _0x56c5cb=_0x24334a[_0x519143([0x73,0x70,0x6c,0x69,0x74])](_0x519143([0x2e]));return _0x1e276d[_0x519143([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39f5ab=>_0x39f5ab[_0x519143([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x519143([0x2a])))[_0x519143([0x6d,0x61,0x70])](_0xaae5a0=>_0xaae5a0[_0x519143([0x73,0x70,0x6c,0x69,0x74])](_0x519143([0x2e])))[_0x519143([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x95aff8=>_0x95aff8[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x56c5cb[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x519143([0x6d,0x61,0x70])](_0x3d51fa=>Array(_0x56c5cb[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3d51fa[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x519143([0x66,0x69,0x6c,0x6c])](_0x3d51fa[0x0]===_0x519143([0x2a])?_0x519143([0x2a]):'')[_0x519143([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3d51fa))[_0x519143([0x73,0x6f,0x6d,0x65])](_0x451cca=>_0x56c5cb[_0x519143([0x65,0x76,0x65,0x72,0x79])]((_0x4f376b,_0x463297)=>_0x451cca[_0x463297]===_0x4f376b||_0x451cca[_0x463297]===_0x519143([0x2a])));}function _0xa2211b(){return _0x56c5fa&&_0xd9cda0?new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x19f473,_0x3111f1)=>{_0x56c5fa[_0x519143([0x74,0x68,0x65,0x6e])](_0x19f473,_0x3111f1),_0xd9cda0[_0x519143([0x74,0x68,0x65,0x6e])](_0x4415ce=>{_0x4415ce!=_0x519143([0x56,0x61,0x6c,0x69,0x64])&&_0x19f473(_0x4415ce);},_0x3111f1);}):_0x56c5fa||_0xd9cda0||_0x519143([0x56,0x61,0x6c,0x69,0x64]);}}function _0x331e45(_0x5a5f01,_0x289eb1){return new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x538a0d=>{if(_0x4b2e87())return _0x538a0d(_0x519143([0x56,0x61,0x6c,0x69,0x64]));_0x3171f4(),_0x5c6bc2[_0x519143([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x519143([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f83a9=!0x1;const _0xa8a5f1=_0x58b4bb();function _0x1a6093(_0x193218){return!!_0x193218&&(typeof _0x193218===_0x519143([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x193218===_0x519143([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x193218[_0x519143([0x74,0x68,0x65,0x6e])]===_0x519143([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x193218[_0x519143([0x63,0x61,0x74,0x63,0x68])]===_0x519143([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5750bf(_0x40c505){_0x437d7d(_0x40c505)[_0x519143([0x74,0x68,0x65,0x6e])](_0x3eed39=>{if(!_0x3eed39||_0x3eed39[_0x519143([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x519143([0x6f,0x6b]))return _0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x57d3f5(_0x246c4c(_0xa8a5f1+_0x289eb1))!=_0x3eed39[_0x519143([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x519143([0x56,0x61,0x6c,0x69,0x64]);})[_0x519143([0x74,0x68,0x65,0x6e])](_0x27bff1=>(_0xee7d82(),_0x27bff1),()=>{const _0x282809=_0x2a549b();return null==_0x282809?(_0xee7d82(),_0x519143([0x56,0x61,0x6c,0x69,0x64])):_0x519143(_0xd1bbd-_0x282809>(0x27d454df^_0xd20468)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x519143([0x74,0x68,0x65,0x6e])](_0x538a0d)[_0x519143([0x63,0x61,0x74,0x63,0x68])](()=>{_0x538a0d(_0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x36e15e=0x3ee3e5f^_0xd20468;function _0xee7d82(){const _0xeadfd7=_0x519143([0x6c,0x6c,0x63,0x74,0x2d])+_0x57d3f5(_0x246c4c(_0x5a5f01)),_0x16a579=_0x185ca5(_0x57d3f5(window[_0x519143([0x4d,0x61,0x74,0x68])][_0x519143([0x63,0x65,0x69,0x6c])](_0xd1bbd/_0x36e15e)));window[_0x519143([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x519143([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xeadfd7,_0x16a579);}function _0x2a549b(){const _0x19c496=_0x519143([0x6c,0x6c,0x63,0x74,0x2d])+_0x57d3f5(_0x246c4c(_0x5a5f01)),_0x50e9e7=window[_0x519143([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x519143([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19c496);return _0x50e9e7?window[_0x519143([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x185ca5(_0x50e9e7),0x10)*_0x36e15e:null;}function _0x437d7d(_0x5c43ab){return new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x567578,_0x14c885)=>{_0x5c43ab[_0x519143([0x74,0x68,0x65,0x6e])](_0x567578,_0x14c885),window[_0x519143([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x14c885,0x3d9041f^_0xd20468);});}}_0x5c6bc2[_0x519143([0x6f,0x6e])](_0x519143([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4415e6,_0x57ed62)=>{if(_0x57ed62[0x0]!=_0x5a5f01)return _0x538a0d(_0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x57ed62[0x1]={..._0x57ed62[0x1],[_0x519143([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xa8a5f1};},{[_0x519143([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x519143([0x68,0x69,0x67,0x68])}),_0x5c6bc2[_0x519143([0x6f,0x6e])](_0x519143([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4db177=>{_0x1a6093(_0x4db177[_0x519143([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f83a9=!0x0,_0x5750bf(_0x4db177[_0x519143([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x519143([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x519143([0x6c,0x6f,0x77])}),_0xc132ee[_0x519143([0x74,0x68,0x65,0x6e])](()=>{_0x3f83a9||_0x538a0d(_0x519143([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b2e87(){return _0x5c6bc2[_0x519143([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x519143([0x76,0x69,0x65,0x77])][_0x519143([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x519143([0x61,0x75,0x74,0x6f]);}function _0x3171f4(){_0x5c6bc2[_0x519143([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x519143([0x76,0x69,0x65,0x77])][_0x519143([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x519143([0x61,0x75,0x74,0x6f]);}}function _0x30c428(_0x4735f8){const _0xd0b132=[new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58b302=>setTimeout(_0x58b302,0x3d1ee13^_0xd20468)),_0xc132ee[_0x519143([0x74,0x68,0x65,0x6e])](()=>new window[(_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4109f6=>{let _0x4a38b9=0x0;_0x5c6bc2[_0x519143([0x6d,0x6f,0x64,0x65,0x6c])][_0x519143([0x6f,0x6e])](_0x519143([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x521630,_0x55f456)=>{_0x55f456[0x0][_0x519143([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a38b9++,_0x4a38b9==(0x3d8d537^_0xd20468)&&(_0x4109f6(),_0x521630[_0x519143([0x6f,0x66,0x66])]());});}))];return window[_0x519143([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x519143([0x72,0x61,0x63,0x65])](_0xd0b132)[_0x519143([0x74,0x68,0x65,0x6e])](()=>_0x4735f8);}async function _0x10b646(){await _0xc132ee,_0x5c6bc2[_0x519143([0x6d,0x6f,0x64,0x65,0x6c])][_0x519143([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x206076,_0x5c6bc2[_0x519143([0x6d,0x6f,0x64,0x65,0x6c])][_0x519143([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x206076,_0x5c6bc2[_0x519143([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x519143([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x543d65(){return _0x5eef91(_0x519143([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x383afd(_0x519143([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x519143([0x73,0x74,0x61,0x74,0x65])]==_0x519143([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a3c39(){return _0x5eef91(_0x519143([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 _0xb8d787(){return _0x5eef91(_0x519143([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x24a6d6(_0x1a8ebb){const _0x12604d=_0x59776d();_0x5c6bc2[_0x12604d]=_0x519143([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1a8ebb,_0x1a8ebb!=_0x519143([0x56,0x61,0x6c,0x69,0x64])&&_0x10b646();}function _0x59776d(){const _0x5d042e=window[_0x519143([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x519143([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x519143([0x6e,0x6f,0x77])]())[_0x519143([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x519143([0x2e]),'');let _0x25333a=_0x519143([0x52]);for(let _0x59f29c=0x0;_0x59f29c<_0x5d042e[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x59f29c+=0x2){let _0x1970c9=window[_0x519143([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d042e[_0x519143([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x59f29c,_0x59f29c+0x2));_0x1970c9>=_0x436dcb[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1970c9-=_0x436dcb[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x25333a+=_0x436dcb[_0x1970c9];}return _0x25333a;}function _0x47f4de(){const _0x437529=_0x2d903c[_0x519143([0x73,0x70,0x6c,0x69,0x74])](_0x519143([0x2e]));if(0x3!=_0x437529[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21ccc2(_0x437529[0x1]);function _0x21ccc2(_0x213d60){const _0x2dd6fe=_0x45fffd(_0x213d60);return _0x2dd6fe&&_0x535c61()?_0x2dd6fe:null;function _0x535c61(){const _0x5ed92c=_0x2dd6fe[_0x519143([0x6a,0x74,0x69])],_0x5cc06f=window[_0x519143([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ed92c[_0x519143([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ed92c[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5bf6ea={..._0x2dd6fe,[_0x519143([0x6a,0x74,0x69])]:_0x5ed92c[_0x519143([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ed92c[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5bf6ea[_0x519143([0x76,0x63])],_0x246c4c(_0x5bf6ea)==_0x5cc06f;}}}async function _0x17e454(){let _0x4b8c38=!0x0;try{const _0x4295b6=_0x2d903c[_0x519143([0x73,0x70,0x6c,0x69,0x74])](_0x519143([0x2e])),[_0x4ed2d1,_0x5ab306,_0x15e1ad]=_0x4295b6;return _0x3ce506(_0x4ed2d1),await _0x101f4a(_0x4ed2d1,_0x5ab306,_0x15e1ad),_0x4b8c38;}catch{return!0x1;}function _0x3ce506(_0x416951){const _0x4252b4=_0x45fffd(_0x416951);_0x4252b4&&_0x4252b4[_0x519143([0x61,0x6c,0x67])]==_0x519143([0x45,0x53,0x32,0x35,0x36])||(_0x4b8c38=!0x1);}async function _0x101f4a(_0x1378a5,_0x435018,_0xbe7b1f){const _0x37a89b=window[_0x519143([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x519143([0x66,0x72,0x6f,0x6d])](_0x50444d(_0xbe7b1f),_0xdcb55d=>_0xdcb55d[_0x519143([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1a7887=new window[(_0x519143([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x519143([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1378a5+_0x519143([0x2e])+_0x435018),_0x14f86f=window[_0x519143([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x519143([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x14f86f)return;const _0x4d136f=await _0x14f86f[_0x519143([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x519143([0x6a,0x77,0x6b]),_0x171b13,{[_0x519143([0x6e,0x61,0x6d,0x65])]:_0x519143([0x45,0x43,0x44,0x53,0x41]),[_0x519143([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x519143([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x519143([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x14f86f[_0x519143([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x519143([0x6e,0x61,0x6d,0x65])]:_0x519143([0x45,0x43,0x44,0x53,0x41]),[_0x519143([0x68,0x61,0x73,0x68])]:{[_0x519143([0x6e,0x61,0x6d,0x65])]:_0x519143([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4d136f,_0x37a89b,_0x1a7887)||(_0x4b8c38=!0x1);}}function _0x45fffd(_0x182c39){return _0x182c39[_0x519143([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x519143([0x65,0x79]))?JSON[_0x519143([0x70,0x61,0x72,0x73,0x65])](_0x50444d(_0x182c39)):null;}function _0x50444d(_0x8000cb){return window[_0x519143([0x61,0x74,0x6f,0x62])](_0x8000cb[_0x519143([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x519143([0x2b]))[_0x519143([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x519143([0x2f])));}function _0x246c4c(_0x38257d){let _0x4bb344=0x1505;function _0x3cc484(_0x5dbea8){for(let _0x6fd86e=0x0;_0x6fd86e<_0x5dbea8[_0x519143([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6fd86e++){const _0x4bf99f=_0x5dbea8[_0x519143([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x6fd86e);_0x4bb344=(_0x4bb344<<0x5)+_0x4bb344+_0x4bf99f,_0x4bb344&=_0x4bb344;}}function _0x51b61f(_0x45614a){Array[_0x519143([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x45614a)?_0x45614a[_0x519143([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x51b61f):_0x45614a&&typeof _0x45614a==_0x519143([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x519143([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x45614a)[_0x519143([0x73,0x6f,0x72,0x74])]()[_0x519143([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x57d30d,_0x480d9f])=>{_0x3cc484(_0x57d30d),_0x51b61f(_0x480d9f);}):_0x3cc484(window[_0x519143([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x45614a));}return _0x51b61f(_0x38257d),_0x4bb344>>>0x0;}function _0x57d3f5(_0x593662){return _0x593662[_0x519143([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x519143([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x519143([0x30]));}function _0x185ca5(_0x1cf8f1){return _0x1cf8f1[_0x519143([0x73,0x70,0x6c,0x69,0x74])]('')[_0x519143([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x519143([0x6a,0x6f,0x69,0x6e])]('');}function _0x5eef91(_0x471113){return _0x5c6bc2[_0x519143([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x519143([0x68,0x61,0x73])](_0x471113);}function _0x383afd(_0x5cc5cf){return _0x5c6bc2[_0x519143([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x519143([0x67,0x65,0x74])](_0x5cc5cf);}function _0x206076(){}function _0x519143(_0x4695d5){return _0x4695d5['map'](_0x5c65b0=>String['fromCharCode'](_0x5c65b0))['join']('');}_0x24a6d6(await _0x4a5bf8());}(this);}set['adapter'](_0x287319){if(this['_adapter'])throw new _0x4323ac('track-changes-adapter-already-set',this);this['_adapter']=_0x287319;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x297d8e=!0x1,toJSON:_0x480579=!0x1}={}){const _0x48230f=[];for(const _0x4f7f21 of this['_suggestions']['values']())_0x297d8e&&!_0x4f7f21['isInContent']||_0x48230f['push'](_0x4f7f21);return _0x480579?_0x48230f['map'](_0x44de5c=>_0x44de5c['toJSON']()):_0x48230f;}['getSuggestion'](_0x72562){const _0x5eeb5f=this['_suggestions']['get'](_0x72562);if(!_0x5eeb5f)throw new _0x4323ac('track-changes-suggestion-not-found',this);return _0x5eeb5f;}['hasSuggestion'](_0x5077a1){return this['_suggestions']['has'](_0x5077a1);}['addSuggestionData'](_0x1875ec){const {authorId:_0x462f89,id:_0x39ab4a,originalSuggestionId:_0x2e6107,attributes:_0x4d1579}=_0x1875ec,[_0x2df1f0,_0xc49ab5]=_0x1875ec['type']['split'](':'),_0x21fbb6=this['_suggestions']['get'](_0x39ab4a)||this['_createSuggestion'](_0x2df1f0,_0xc49ab5,_0x39ab4a,_0x462f89,_0x4d1579,_0x2e6107);if(this['_addThreadToSuggestion'](_0x21fbb6),this['_checkSuggestionCorrectness'](_0x21fbb6,_0x2df1f0,_0xc49ab5||null,_0x462f89),_0x21fbb6['createdAt']=_0x1875ec['createdAt'],_0x21fbb6['_isDataLoaded']=!0x0,_0x4d1579&&_0x4d1579['@external']){const _0x362afc=_0x4d1579['@external'],_0x26bea6=this['_getExternalAuthor'](_0x362afc['authorName']);_0x21fbb6['authoredAt']=_0x362afc['createdAt'],_0x21fbb6['author']=_0x26bea6,_0x21fbb6['isExternal']=!0x0;}else _0x21fbb6['authoredAt']=_0x1875ec['createdAt'];switch(_0x1875ec['data']&&(_0x21fbb6['data']=_0x1875ec['data']),_0x1875ec['attributes']&&(_0x21fbb6['attributes']=_0x1875ec['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x21fbb6['_saved']=!0x0),this['_suggestionState']['get'](_0x21fbb6)){case'notReady':this['_suggestionState']['set'](_0x21fbb6,'dataReady');break;case'markerReady':_0x21fbb6['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x21fbb6])),this['_refreshSuggestionsChain'](new Set([_0x21fbb6])),this['_suggestionState']['set'](_0x21fbb6,'ready'),this['fire']('suggestionLoaded',_0x21fbb6)):this['_suggestionState']['set'](_0x21fbb6,'removed');}return _0x21fbb6;}['acceptSuggestion'](_0x2bacc0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x38f305 of _0x2bacc0['getAllAdjacentSuggestions']())_0x38f305['accept']();});});}['discardSuggestion'](_0x5037d7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4f5622 of _0x5037d7['getAllAdjacentSuggestions']())_0x4f5622['discard']();});});}['enableCommand'](_0x228259,_0x9e5301){const _0x5271ee=this['editor']['commands']['get'](_0x228259);if(!_0x5271ee)throw new _0x4323ac('track-changes-command-not-found',this,{'commandName':_0x228259});if(this['_enabledCommands']['has'](_0x5271ee))throw new _0x4323ac('track-changes-enable-command-twice',this,{'commandName':_0x228259});this['_enabledCommands']['add'](_0x5271ee),_0x9e5301&&_0x5271ee['on']('execute',(_0x4ea9f8,_0x11de65)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x11de65['length']>0x0&&_0x11de65[_0x11de65['length']-0x1]&&_0x11de65[_0x11de65['length']-0x1]['forceDefaultExecution']?_0x11de65['pop']():(_0x4ea9f8['return']=_0x9e5301((..._0x2b2ecf)=>_0x5271ee['execute'](..._0x2b2ecf,{'forceDefaultExecution':!0x0}),..._0x11de65),_0x4ea9f8['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x55b084){let _0x5c5605,_0x42b004;const _0x53efd1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5c5605=_0x55b084();}catch(_0x10911e){_0x42b004=_0x10911e;}return _0x53efd1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x42b004&&_0x4323ac['rethrowUnexpectedError'](_0x42b004,this),_0x5c5605;}['markInsertion'](_0x137a04,_0x388f60=null,_0x5479df={}){if(_0x137a04['isCollapsed'])return null;const _0x11de64=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5479df['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xce9707,meta:_0x403d26}of this['_findSuggestions'](_0x137a04,'insertion'))if(_0x403d26['isOwn']){if(!_0x403d26['isNextTo']){if(_0x403d26['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0xce9707,_0x5479df))continue;return _0xce9707;}if(sn(_0xce9707,_0x5479df))return _0xce9707;this['_breakSuggestionMarker'](_0xce9707,_0x137a04['start'],_0x137a04['end']);break;}if(_0x388f60==_0xce9707['subType']&&sn(_0xce9707,_0x5479df)){const _0x29e153=_0xce9707['getFirstRange']();return _0x29e153['start']['isEqual'](_0x137a04['end'])?this['_setSuggestionRange'](_0xce9707,this['_model']['createRange'](_0x137a04['start'],_0x29e153['end'])):this['_setSuggestionRange'](_0xce9707,this['_model']['createRange'](_0x29e153['start'],_0x137a04['end'])),_0xce9707;}}const _0x3bff6a=_0x58b4bb(),_0x460b1a=_0x11de64['id'],_0x11745f=_0x388f60?'insertion:'+_0x388f60:'insertion',_0x37fd09=this['_setSuggestionData']({'id':_0x3bff6a,'type':_0x11745f,'createdAt':new Date(),'authorId':_0x460b1a,'attributes':_0x5479df});return this['_addSuggestionMarker'](_0x11745f,_0x3bff6a,_0x460b1a,_0x137a04),_0x37fd09;}['markMultiRangeInsertion'](_0x1bdb22,_0x1a7d1b='multi',_0x545959={}){const _0x486e56=this['editor']['plugins']['get']('Users')['me'],_0x5940e0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1a7d1b,'join');this['_trackingSessionId']&&(_0x545959['trackingSessionId']=this['_trackingSessionId']);for(const _0x223317 of this['getSuggestions']())if(_0x223317['author']['id']==_0x486e56['id']&&'insertion'==_0x223317['type']&&_0x223317['subType']==_0x1a7d1b&&sn(_0x223317,_0x545959)&&(_0x5940e0(_0x223317['getRanges'](),_0x1bdb22)||_0x5940e0(_0x1bdb22,_0x223317['getRanges']()))){for(const _0x29b9b4 of _0x1bdb22)_0x223317['addRange'](_0x29b9b4);return _0x223317;}for(const {suggestion:_0x1e2720,meta:_0x19a891}of this['_findSuggestions'](_0x1bdb22,'insertion')){if(!_0x19a891['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x19a891['containsRangeInObject'])continue;if(!sn(_0x1e2720,_0x545959))continue;let _0x3fad5f=!0x0;for(const _0x54c0cb of _0x1e2720['getRanges']())for(const _0x2112bf of _0x1bdb22)if(!_0x54c0cb['containsRange'](_0x2112bf)){_0x3fad5f=!0x1;break;}if(_0x3fad5f)return _0x1e2720;}const _0x13e3aa=_0x58b4bb(),_0x173bc6=_0x486e56['id'],_0x55da8b='insertion:'+_0x1a7d1b,_0x4e7100=this['_setSuggestionData']({'id':_0x13e3aa,'type':_0x55da8b,'createdAt':new Date(),'authorId':_0x173bc6,'attributes':_0x545959});for(const _0x1a1453 of _0x1bdb22)this['_addSuggestionMarker'](_0x55da8b,_0x13e3aa,_0x173bc6,_0x1a1453,T['getMultiRangeId']());return _0x4e7100;}['markInlineFormat'](_0x3276e2,_0x499f96,_0x6a0fb3=null,_0x14cf01={}){if(_0x6a0fb3=_0x6a0fb3||Ht(_0x499f96),_0x3276e2['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x14cf01['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x3014d8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6a0fb3,'accept');return this['forceDefaultExecution'](()=>_0x3014d8([_0x3276e2],_0x499f96,_0x14cf01)),null;}const _0x2bacb4=this['editor']['plugins']['get']('Users')['me'],_0x275610=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x59abcb,meta:_0x42703d}of this['_findSuggestions'](_0x3276e2,'insertion'))_0x42703d['isOwn']&&!_0x42703d['isInsideObject']&&_0x275610['push'](..._0x59abcb['getRanges']());}const _0x3aed7b=function(_0x50ac87,_0x13af8e){const _0x476126=[];for(const _0x1eb16a of _0x13af8e){const _0xaf7d56=_0x50ac87['getIntersection'](_0x1eb16a);_0xaf7d56&&_0x476126['push'](_0xaf7d56);}return _0x476126;}(_0x3276e2,_0x275610),_0x243c48=function(_0x3e77f1,_0x1b7f0f){const _0x4ab571=[_0x3e77f1];for(const _0x3b7df6 of _0x1b7f0f){let _0xc9044a=0x0;for(;_0xc9044a<_0x4ab571['length'];){const _0x184022=_0x4ab571[_0xc9044a]['getDifference'](_0x3b7df6);_0x4ab571['splice'](_0xc9044a,0x1,..._0x184022),_0xc9044a+=_0x184022['length'];}}return _0x4ab571;}(_0x3276e2,_0x275610);_0x3aed7b['length']&&this['_model']['change'](()=>{for(const _0xef9b94 of _0x3aed7b){const _0x4619d1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x6a0fb3,'accept');this['forceDefaultExecution'](()=>_0x4619d1([_0xef9b94],_0x499f96,_0x14cf01));}});for(const _0x39b82c of _0x243c48){let _0x5cab02=null,_0x1c5d20=_0x39b82c['start'],_0x4dda52=_0x39b82c['end'];for(const {suggestion:_0x4250a8,meta:_0x388594}of this['_findSuggestions'](_0x39b82c,'formatInline')){if(!_0x388594['isOwn'])continue;if(_0x4250a8['subType']!=_0x6a0fb3)continue;if(!sn(_0x4250a8,_0x14cf01))continue;const _0x375a49=_0x4250a8['getFirstRange']();if(_0x375a49['containsRange'](_0x39b82c,!0x0))return null;_0x1c5d20=_0x1c5d20['isBefore'](_0x375a49['start'])?_0x1c5d20:_0x375a49['start'],_0x4dda52=_0x4dda52['isAfter'](_0x375a49['end'])?_0x4dda52:_0x375a49['end'],_0x5cab02?_0x375a49['start']['isBefore'](_0x5cab02['getFirstRange']()['start'])?(_0x5cab02['removeMarkers'](),_0x5cab02=_0x4250a8):_0x4250a8['removeMarkers']():_0x5cab02=_0x4250a8;}const _0x32db03=this['_model']['createRange'](_0x1c5d20,_0x4dda52);if(_0x5cab02)this['_setSuggestionRange'](_0x5cab02,_0x32db03);else{const _0x25f515=_0x58b4bb(),_0x50ce28=_0x2bacb4['id'];this['_setSuggestionData']({'id':_0x25f515,'type':'formatInline:'+_0x6a0fb3,'data':_0x499f96,'createdAt':new Date(),'authorId':_0x50ce28,'attributes':_0x14cf01}),this['_addSuggestionMarker']('formatInline:'+_0x6a0fb3,_0x25f515,_0x50ce28,_0x32db03);}}return null;}['markBlockFormat'](_0x2972db,_0x1b21a3,_0x47968e=[],_0xfc39c=null,_0x28536e={}){_0x1b21a3['formatGroupId']||(_0x1b21a3['formatGroupId']=_0x1b21a3['commandName']),_0x1b21a3['multipleBlocks']=_0x2972db['is']('range'),_0xfc39c=_0xfc39c||Ht(_0x1b21a3);const _0x5399e7=_0x47968e['map'](_0x155218=>tn(_0x155218,this['_model'])),_0x347ec2=_0x2972db['is']('range')?_0x2972db:tn(_0x2972db,this['_model']);if(this['_trackingSessionId']&&(_0x28536e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xaa9b46=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfc39c,'accept');return this['forceDefaultExecution'](()=>_0xaa9b46([_0x347ec2],_0x1b21a3,_0x28536e)),null;}_0x5399e7['push'](_0x347ec2);let _0x456917=!0x0;for(const _0x24d364 of _0x5399e7)if(!this['_rangeIsInLocalUserInsertion'](_0x24d364)){_0x456917=!0x1;break;}if(_0x456917&&'always'!==this['_trackFormatChanges']){const _0x25e1b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xfc39c,'accept');return this['forceDefaultExecution'](()=>_0x25e1b0([_0x347ec2],_0x1b21a3,_0x28536e)),null;}let _0x4c461d=null,_0x5db11b=_0x347ec2['start'],_0x518324=_0x347ec2['end'];for(const {suggestion:_0x224d51,meta:_0x73010b}of this['_findSuggestions'](_0x347ec2,'formatBlock')){if(!_0x73010b['isOwn'])continue;if(_0x73010b['isNextTo']||_0x73010b['containsRangeInObject']||_0x73010b['isInsideObject'])continue;if(_0x224d51['data']['formatGroupId']!=_0x1b21a3['formatGroupId'])continue;if(!sn(_0x224d51,_0x28536e))continue;const _0x430e76=_0x224d51['getFirstRange']();if(_0x224d51['subType']==_0xfc39c){if(_0x430e76['containsRange'](_0x347ec2,!0x0))return null;_0x5db11b=_0x5db11b['isBefore'](_0x430e76['start'])?_0x5db11b:_0x430e76['start'],_0x518324=_0x518324['isAfter'](_0x430e76['end'])?_0x518324:_0x430e76['end'],_0x4c461d?_0x430e76['start']['isBefore'](_0x4c461d['getFirstRange']()['start'])?(_0x4c461d['removeMarkers'](),_0x4c461d=_0x224d51):_0x224d51['removeMarkers']():_0x4c461d=_0x224d51;}else{const _0x17a937=_0x347ec2['getIntersection'](_0x430e76);this['_cutOutSuggestionMarker'](_0x224d51,_0x17a937);}}const _0x5af1ca=this['editor']['plugins']['get']('Users')['me'],_0x54c772=_0x58b4bb(),_0x2a143a=_0x5af1ca['id'];if(_0x4c461d)return this['_setSuggestionRange'](_0x4c461d,this['_model']['createRange'](_0x5db11b,_0x518324)),_0x4c461d;{const _0x5f3702=this['_setSuggestionData']({'id':_0x54c772,'type':'formatBlock:'+_0xfc39c,'data':_0x1b21a3,'createdAt':new Date(),'authorId':_0x2a143a,'attributes':_0x28536e});return this['_addSuggestionMarker']('formatBlock:'+_0xfc39c,_0x54c772,_0x2a143a,this['_model']['createRange'](_0x5db11b,_0x518324)),_0x5f3702;}}['markMultiRangeBlockFormat'](_0x113fd5,_0x14d180,_0x435e53=[],_0x1313af=null,_0x597df8={}){_0x14d180['formatGroupId']||(_0x14d180['formatGroupId']=_0x14d180['commandName']);const _0x254f45=_0x113fd5[0x0];_0x14d180['multipleBlocks']=_0x254f45['is']('range'),_0x1313af=_0x1313af||Ht(_0x14d180);const _0x1bb964=_0x435e53['map'](_0x10aeab=>tn(_0x10aeab,this['_model'])),_0x333411=_0x254f45['is']('range')?_0x113fd5:_0x113fd5['map'](_0x374e57=>tn(_0x374e57,this['_model']));if(this['_trackingSessionId']&&(_0x597df8['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x5c2e28=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1313af,'accept');return this['forceDefaultExecution'](()=>_0x5c2e28(_0x333411,_0x14d180,_0x597df8)),null;}_0x1bb964['push'](..._0x333411);let _0x55e570=!0x0;for(const _0x513d5f of _0x1bb964)if(!this['_rangeIsInLocalUserInsertion'](_0x513d5f)){_0x55e570=!0x1;break;}if(_0x55e570&&'always'!==this['_trackFormatChanges']){const _0x3362b3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1313af,'accept');return this['forceDefaultExecution'](()=>_0x3362b3(_0x333411,_0x14d180,_0x597df8)),null;}const _0x4c761c=this['editor']['plugins']['get']('Users')['me'];for(const _0x213a14 of this['getSuggestions']()){const _0x5ec1d0=_0x213a14['data'];if(_0x213a14['author']['id']!=_0x4c761c['id'])continue;if('formatBlock'!=_0x213a14['type']||_0x5ec1d0['formatGroupId']!=_0x14d180['formatGroupId'])continue;if(!sn(_0x213a14,_0x597df8))continue;const _0x31293a=_0x213a14['subType']==_0x1313af;for(let _0x59e1ff=0x0;_0x59e1ff<_0x333411['length'];_0x59e1ff++){const _0x12047c=_0x333411[_0x59e1ff];for(const _0x4078d8 of _0x213a14['getMarkers']()){const _0x166d60=_0x4078d8['getRange']();if(_0x12047c['isEqual'](_0x166d60)){_0x31293a?(_0x333411['splice'](_0x59e1ff,0x1),_0x59e1ff--):_0x213a14['removeMarker'](_0x4078d8['name']);break;}}}}if(0x0==_0x333411['length'])return null;const _0x4a091c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1313af,'join');for(const _0x55acf4 of this['getSuggestions']()){const _0x50e895=_0x55acf4['data'];if(_0x55acf4['author']['id']==_0x4c761c['id']&&('formatBlock'==_0x55acf4['type']&&_0x50e895['formatGroupId']==_0x14d180['formatGroupId']&&_0x55acf4['subType']==_0x1313af&&sn(_0x55acf4,_0x597df8)&&(_0x4a091c(_0x55acf4['getRanges'](),_0x333411)||_0x4a091c(_0x333411,_0x55acf4['getRanges']())))){for(const _0x546121 of _0x333411)_0x55acf4['addRange'](_0x546121);return _0x55acf4;}}const _0x325b91=_0x58b4bb(),_0x2a4795=_0x4c761c['id'],_0x590925='formatBlock:'+_0x1313af,_0x1efeb4=this['_setSuggestionData']({'id':_0x325b91,'type':_0x590925,'data':_0x14d180,'createdAt':new Date(),'authorId':_0x2a4795,'attributes':_0x597df8});for(const _0x4af55f of _0x333411)this['_addSuggestionMarker'](_0x590925,_0x325b91,_0x2a4795,_0x4af55f,T['getMultiRangeId']());return _0x1efeb4;}['markDeletion'](_0x2b3680,_0x2fb149=null,_0x4aa50a={}){if(_0x2b3680['isCollapsed'])return null;const _0x45ca3f=this['editor']['plugins']['get']('Users')['me'],_0x1c356b=new _0x41285e(_0x2b3680['start'],_0x2b3680['end']);this['_trackingSessionId']&&(_0x4aa50a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x33b902,meta:_0x1a5696}of this['_findSuggestions'](_0x1c356b,'insertion'))if(_0x1a5696['isOwn']&&!_0x1a5696['isNextTo']){if(_0x33b902['isMultiRange']){const _0x29bbfe=_0x33b902['getRanges']()['filter'](_0x557c17=>'$graveyard'!=_0x557c17['root']['rootName']);_0x29bbfe['every'](_0x1c6b9b=>_0x1c356b['containsRange'](_0x1c6b9b,!0x0))&&_0x33b902['discard']();if(_0x29bbfe['some'](_0x2bcacd=>_0x2bcacd['containsRange'](_0x1c356b,!0x0))){const _0x272dfb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2fb149,'accept');return this['forceDefaultExecution'](()=>_0x272dfb([_0x1c356b],null,_0x4aa50a)),null;}}else{const _0x4eaaf1=_0x1c356b['getIntersection'](_0x33b902['getFirstRange']());null!==_0x4eaaf1&&_0x33b902['_onDiscard']([_0x4eaaf1],null,_0x4aa50a);}}if(_0x1c356b['detach'](),_0x1c356b['isCollapsed']||'$graveyard'==_0x1c356b['root']['rootName'])return null;let _0x2fd84d=null,_0x5bf18a=_0x1c356b['start'],_0x5ee1eb=_0x1c356b['end'];const _0x2dae01=this['_findSuggestions'](_0x1c356b,'deletion');for(const {suggestion:_0xe97c60,meta:_0xd698d8}of _0x2dae01){const _0x22b8d0=this['_model']['createRange'](_0x5bf18a,_0x5ee1eb);if(_0xd698d8['isOwn']&&(this['_mergeNestedSuggestions']||!_0xd698d8['containsRangeInObject']&&!_0xd698d8['isInsideObject'])){if(_0xe97c60['isMultiRange']){if(!sn(_0xe97c60,_0x4aa50a))continue;let _0x27560e=!0x0;for(const _0x25cf98 of _0xe97c60['getRanges']()){if(_0x25cf98['containsRange'](_0x22b8d0,!0x0))return _0xe97c60;_0x22b8d0['containsRange'](_0x25cf98)||(_0x27560e=!0x1);}_0x27560e&&_0xe97c60['discard']();}else{const _0x5ce556=_0xe97c60['getFirstRange']();if(_0x5ce556['containsRange'](_0x22b8d0,!0x0))return _0xe97c60;if(!sn(_0xe97c60,_0x4aa50a)){_0x22b8d0['containsRange'](_0x5ce556)?_0xe97c60['removeMarkers']():_0x5ce556['containsPosition'](_0x5bf18a)?_0x5bf18a=_0x5ce556['end']:_0x5ce556['containsPosition'](_0x5ee1eb)&&(_0x5ee1eb=_0x5ce556['start']);continue;}_0x5bf18a=_0x5bf18a['isBefore'](_0x5ce556['start'])?_0x5bf18a:_0x5ce556['start'],_0x5ee1eb=_0x5ee1eb['isAfter'](_0x5ce556['end'])?_0x5ee1eb:_0x5ce556['end'],_0x4aa50a=Object['assign']({},_0xe97c60['attributes']),_0x2fd84d?_0x5ce556['start']['isBefore'](_0x2fd84d['getFirstRange']()['start'])?(_0x2fd84d['removeMarkers'](),_0x2fd84d=_0xe97c60):_0xe97c60['removeMarkers']():_0x2fd84d=_0xe97c60;}}}if(_0x2fd84d)return this['_setSuggestionRange'](_0x2fd84d,this['_model']['createRange'](_0x5bf18a,_0x5ee1eb)),_0x2fd84d;{const _0x2dd782=_0x58b4bb(),_0x329c74=this['_model']['createRange'](_0x5bf18a,_0x5ee1eb),_0x1c660c=_0x45ca3f['id'],_0x13c939=_0x2fb149?'deletion:'+_0x2fb149:'deletion',_0x4527a1=this['_setSuggestionData']({'id':_0x2dd782,'type':_0x13c939,'createdAt':new Date(),'authorId':_0x1c660c,'attributes':_0x4aa50a});return this['_addSuggestionMarker'](_0x13c939,_0x2dd782,_0x1c660c,_0x329c74),_0x4527a1;}}['markMultiRangeDeletion'](_0x3d2e25,_0x141b05='multi',_0x30bd34={}){const _0x1e9801=this['editor']['plugins']['get']('Users')['me'],_0x259e52=_0x3d2e25['map'](_0x182347=>new _0x41285e(_0x182347['start'],_0x182347['end'])),_0x56abcc=new Set();this['_trackingSessionId']&&(_0x30bd34['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x33a169,meta:_0x56ffeb}of this['_findSuggestions'](_0x259e52,'insertion'))_0x56ffeb['isOwn']&&!_0x56ffeb['isNextTo']&&_0x56abcc['add'](_0x33a169);for(const _0x1fd226 of _0x56abcc)if(_0x1fd226['isMultiRange']){const _0x41cf62=_0x1fd226['getRanges']();(!_0x1fd226['attributes']||!_0x1fd226['attributes']['skipNestingCheck'])&&(_0x41cf62['every'](_0x51e867=>_0x259e52['some'](_0x29f815=>_0x29f815['containsRange'](_0x51e867,!0x0)))&&_0x1fd226['discard']());if(_0x259e52['every'](_0x5b4800=>_0x41cf62['some'](_0x5de38c=>_0x5de38c['containsRange'](_0x5b4800,!0x0)))){const _0x452ac0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x141b05,'accept');return this['forceDefaultExecution'](()=>_0x452ac0(_0x3d2e25,null,_0x30bd34)),null;}}else{const _0x4a91d9=_0x1fd226['getFirstRange']();_0x259e52['some'](_0xe3cc8c=>_0xe3cc8c['containsRange'](_0x4a91d9,!0x0))&&_0x1fd226['discard']();if(_0x259e52['every'](_0x13e519=>_0x4a91d9['containsRange'](_0x13e519,!0x0))){const _0x369818=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x141b05,'accept');return this['forceDefaultExecution'](()=>_0x369818(_0x259e52,null,_0x30bd34)),null;}}const _0xca5e8f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x141b05,'join');let _0x500409=null;for(const _0x5730f7 of this['getSuggestions']())if(_0x5730f7['author']['id']==_0x1e9801['id']&&_0x5730f7['isInContent']&&'deletion'==_0x5730f7['type']&&_0x5730f7['subType']==_0x141b05&&sn(_0x5730f7,_0x30bd34)&&(_0xca5e8f(_0x5730f7['getRanges'](),_0x259e52)||_0xca5e8f(_0x259e52,_0x5730f7['getRanges']()))){if(_0x500409){if(_0x5730f7['commentThread']&&_0x5730f7['commentThread']['length'])continue;for(const _0x23dddc of _0x5730f7['getRanges']())_0x500409['isIntersectingWithRange'](_0x23dddc)||_0x500409['addRange'](_0x23dddc);_0x5730f7['removeMarkers']();}else{_0x500409=_0x5730f7;for(const _0x2f06af of _0x259e52)_0x5730f7['isIntersectingWithRange'](_0x2f06af)||_0x5730f7['addRange'](_0x2f06af);}}if(_0x500409)return _0x500409;_0x56abcc['clear']();for(const {suggestion:_0x777cc8,meta:_0x6eb671}of this['_findSuggestions'](_0x259e52,'deletion'))_0x6eb671['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6eb671['containsRangeInObject']&&!_0x6eb671['isInsideObject'])&&sn(_0x777cc8,_0x30bd34)&&_0x56abcc['add'](_0x777cc8);for(const _0x2c80d9 of _0x56abcc){const _0x17607b=_0x2c80d9['getRanges']();if(!_0x30bd34||!_0x30bd34['skipNestingCheck']){if(_0x259e52['every'](_0x5bf2fc=>_0x17607b['some'](_0x173042=>_0x173042['containsRange'](_0x5bf2fc,!0x0))))return _0x2c80d9;}(!_0x2c80d9['attributes']||!_0x2c80d9['attributes']['skipNestingCheck'])&&(_0x17607b['every'](_0x3d4c81=>_0x259e52['some'](_0xdcec0b=>_0xdcec0b['containsRange'](_0x3d4c81,!0x0)))&&_0x2c80d9['discard']());}const _0x4bc57a=_0x58b4bb(),_0x5d107e=_0x1e9801['id'],_0x3d466a='deletion:'+_0x141b05,_0x3d4546=this['_setSuggestionData']({'id':_0x4bc57a,'type':_0x3d466a,'createdAt':new Date(),'authorId':_0x5d107e,'attributes':_0x30bd34});for(const _0x11c7c5 of _0x259e52)_0x11c7c5['detach'](),_0x11c7c5['isCollapsed']||'$graveyard'==_0x11c7c5['root']['rootName']||this['_addSuggestionMarker'](_0x3d466a,_0x4bc57a,_0x5d107e,_0x11c7c5,T['getMultiRangeId']());return _0x3d4546;}['markAttributeChange'](_0x196af0,_0x2159da,_0x1f54d0,_0x57086d,_0x33947d){if(_0x196af0['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xc43289=this['editor']['plugins']['get']('Users')['me']['id'],_0x9f3308=Array['from'](this['_suggestions']['values']())['filter'](_0x26bb01=>'attribute'==_0x26bb01['type']&&_0x26bb01['data']['key']==_0x2159da&&_0x26bb01['isIntersectingWithRange'](_0x196af0));if(this['_trackingSessionId']&&(_0x33947d['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4c23cf=this['_findSuggestions'](_0x196af0,'insertion')['filter'](({meta:_0x3f5e8d})=>_0x3f5e8d['isOwn']&&!_0x3f5e8d['isInsideObject']&&!_0x3f5e8d['isNextTo'])['map'](({suggestion:_0x2ae3fc})=>_0x2ae3fc);_0x9f3308['unshift'](..._0x4c23cf);}const _0x1dd788=new Map([[_0x196af0,_0x1f54d0]]);for(const _0x5dc439 of _0x9f3308){const _0x36656a='attribute'==_0x5dc439['type']?_0x5dc439['data']['oldValue']:void 0x0,_0x50d68d=_0x5dc439['getFirstRange'](),_0x22a213=Array['from'](_0x1dd788['keys']())['find'](_0x45087c=>_0x45087c['isIntersecting'](_0x50d68d));if(!_0x22a213)continue;const _0x4bb654=_0x22a213['getDifference'](_0x50d68d);this['_isBlockAttribute'](_0x2159da)&&'insertion'==_0x5dc439['type']&&0x0!=_0x4bb654['length']||(_0x1dd788['delete'](_0x22a213),_0x4bb654['forEach'](_0x34bfb4=>{_0x1dd788['set'](_0x34bfb4,_0x1f54d0);}),'insertion'!=_0x5dc439['type']&&_0x36656a!=_0x57086d&&_0x1dd788['set'](_0x22a213['getIntersection'](_0x50d68d),_0x36656a));}const _0x184f8a=[];for(const [_0x1fafa4,_0x45ae8b]of _0x1dd788){const _0x2dcd30=_0x58b4bb(),_0x398e17={'key':_0x2159da,'oldValue':_0x45ae8b,'newValue':_0x57086d};_0x2159da['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':_0x2159da});const _0xf3b467=('attribute:'+(_0x2159da+'|'+Ht({'newValue':_0x57086d})))['substring'](0x0,0x3c),_0x4ebea3=this['_setSuggestionData']({'id':_0x2dcd30,'type':_0xf3b467,'data':_0x398e17,'createdAt':new Date(),'authorId':_0xc43289,'attributes':_0x33947d});_0x184f8a['push'](_0x4ebea3),this['_addSuggestionMarker'](_0xf3b467,_0x2dcd30,_0xc43289,_0x1fafa4);}return _0x184f8a;}['enableDefaultAttributesIntegration'](_0x2736d7){this['enableCommand'](_0x2736d7,(_0x43ad2e,..._0x47406f)=>{this['recordAttributeChanges'](()=>{_0x43ad2e(..._0x47406f);});});}['registerBlockAttribute'](_0x51f8b0){this['editor']['plugins']['get'](_0x508c21)['registerBlockAttribute'](_0x51f8b0);}['registerInlineAttribute'](_0x5c0c46){this['editor']['plugins']['get'](_0x508c21)['registerInlineAttribute'](_0x5c0c46);}['startTrackingSession'](_0x229b19){return this['_trackingSessionId']=void 0x0!==_0x229b19?_0x229b19:_0x58b4bb(),this['_trackingSessionId'];}['_getAttributeKey'](_0x198cb9){return'attribute'==_0x198cb9['type']?_0x198cb9['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x4d5f52){if(0x0==_0x4d5f52['length'])return;const _0x17e7c7=this['editor'],_0x45daed=_0x17e7c7['plugins']['get'](_0x5aa91f),_0x186ce5=[];_0x17e7c7['model']['change'](_0x265478=>{for(let _0x1646a4=0x0;_0x1646a4<_0x4d5f52['length'];_0x1646a4++){const _0x1e9e08=_0x4d5f52[_0x1646a4];if(_0x1e9e08['baseVersion']=_0x17e7c7['model']['document']['version'],_0x1e9e08['isDocumentOperation']=!0x0,_0x45daed['isMarkedRemoveOperation'](_0x1e9e08)){const _0x4b1f65=_0x29aed1(_0x1e9e08['newRange'],_0x17e7c7['model']);_0x186ce5['unshift'](_0x41285e['fromRange'](_0x4b1f65));}else switch(_0x1e9e08['type']){case'rename':{const _0x26b6e7=_0x1e9e08['oldName'],_0x7be6ee=_0x1e9e08['newName'];if(_0x26b6e7==_0x7be6ee)break;_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);const _0xc29a86='$elementName',_0x107b5a=_0x1e9e08['position'],_0xe9dd70=_0x17e7c7['model']['createRange'](_0x107b5a,_0x17e7c7['model']['createPositionAt'](_0x107b5a['nodeAfter'],'end'));this['markAttributeChange'](_0xe9dd70,_0xc29a86,_0x26b6e7,_0x7be6ee,{'groupId':_0x58b4bb()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x30679a=_0x1e9e08['oldValue'],_0x3a2d08=_0x1e9e08['newValue'];if(_0x30679a==_0x3a2d08)break;_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);const _0x127d8e=_0x1e9e08['key'];if(!this['_isRegisteredAttribute'](_0x127d8e))break;const _0x27d958=_0x29aed1(_0x1e9e08['range'],_0x17e7c7['model']);this['markAttributeChange'](_0x27d958,_0x127d8e,_0x30679a,_0x3a2d08,{'groupId':_0x58b4bb()});break;}case'insert':{_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);if(_0x4d5f52[_0x1646a4+0x1]&&'move'==_0x4d5f52[_0x1646a4+0x1]['type'])break;const _0x10a8f3=_0x1e9e08['position'],_0x59ff88=_0x1e9e08['howMany'],_0x481531=_0x29aed1(_0x17e7c7['model']['createRange'](_0x10a8f3,_0x10a8f3['getShiftedBy'](_0x59ff88)),_0x17e7c7['model']);this['markInsertion'](_0x481531);break;}case'split':{_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);const _0x23d74b=_0x1e9e08['splitPosition'],_0xf975fe=_0x1e9e08['moveTargetPosition'];this['markInsertion'](_0x17e7c7['model']['createRange'](_0x23d74b,_0xf975fe));break;}case'move':case'remove':_0x265478['batch']['addOperation'](_0x1e9e08),_0x17e7c7['model']['applyOperation'](_0x1e9e08);}}for(const _0x4a7c35 of _0x186ce5)_0x4a7c35['detach'](),this['markDeletion'](_0x4a7c35);});}['_setSuggestionRange'](_0x43b65e,_0x383591){const _0x5d8719=_0x43b65e['getFirstMarker']();this['_model']['change'](_0x329258=>{_0x329258['updateMarker'](_0x5d8719,{'range':_0x383591});});}['_addThreadToSuggestion'](_0x5e6918){const _0x44e75d=_0x5e6918['id'],_0x5c7733=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x44e75d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5c7733,'threadId':_0x44e75d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3ad2e8=this['_commentsRepository']['getCommentThread'](_0x44e75d);_0x3ad2e8['unbind']('isRemovable'),_0x3ad2e8['isRemovable']=!0x1,_0x5e6918['commentThread']=_0x3ad2e8;}['_checkSuggestionCorrectness'](_0x4d1589,_0x2c82c6,_0x37100f,_0x2ccfc4){if(_0x4d1589['type']!=_0x2c82c6||_0x4d1589['subType']!=_0x37100f||_0x4d1589['creator']['id']!=_0x2ccfc4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4323ac('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x9280c6,_0xb10545){const _0x2f8015=_0x9280c6['getFirstRange']();if(_0xb10545['isEqual'](_0x2f8015))_0x9280c6['removeMarkers']();else{if(_0x2f8015['containsRange'](_0xb10545)){const _0x193c40=this['_model']['createPositionAt'](_0xb10545['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9280c6,this['_model']['createRange'](_0x2f8015['start'],_0x193c40));const _0x543070=_0x58b4bb(),_0x238ce7=_0x9280c6['creator']['id'],_0x52b6f4=_0x9280c6['type']+':'+_0x9280c6['subType'];this['_setSuggestionData']({'id':_0x543070,'type':_0x52b6f4,'createdAt':new Date(),'authorId':_0x238ce7,'data':_0x9280c6['data'],'attributes':_0x9280c6['attributes']});const _0x1ea1d9=this['_model']['createPositionAt'](_0xb10545['end']['parent'],'after'),_0x15ee3a=this['_model']['createRange'](_0x1ea1d9,_0x2f8015['end']);this['_addSuggestionMarker'](_0x52b6f4,_0x543070,_0x238ce7,_0x15ee3a);}else{if(_0x2f8015['containsPosition'](_0xb10545['start'])){const _0x572f8b=this['_model']['createPositionAt'](_0xb10545['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9280c6,this['_model']['createRange'](_0x2f8015['start'],_0x572f8b));}else{const _0x1296b9=this['_model']['createPositionAt'](_0xb10545['end']['parent'],'after');this['_setSuggestionRange'](_0x9280c6,this['_model']['createRange'](_0x1296b9,_0x2f8015['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x25a574){for(const {suggestion:_0x46a270,meta:_0x466bbf}of this['_findSuggestions'](_0x25a574,'insertion')){if(!_0x466bbf['isOwn'])continue;const _0x5259de=_0x46a270['getRanges']();for(const _0x3e7853 of _0x5259de)if(!_0x25a574['getDifference'](_0x3e7853)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x546bc9){return this['editor']['plugins']['get']('Users')['getUser'](_0x546bc9);}['_getExternalAuthor'](_0x2c452d){const _0x307186=this['editor']['plugins']['get']('Users'),_0x9f6551=_0xd0c3f2('external:'+_0x2c452d),_0x298c7c=_0x307186['getUser'](_0x9f6551);return _0x298c7c||_0x307186['addUser']({'id':_0x9f6551,'name':_0x2c452d});}['_createSuggestion'](_0x8cd910,_0x53baa6,_0x1e621f,_0x3a098c,_0x33f233,_0x28b823){const _0x2c57e6=this['_getAuthorFromId'](_0x3a098c);if(!_0x2c57e6)throw new _0x4323ac('track-changes-user-not-found',this,{'authorId':_0x3a098c,'suggestionId':_0x1e621f});const _0x4f0079=this['_suggestionFactory']['buildSuggestion'](_0x8cd910,_0x53baa6,_0x1e621f,_0x2c57e6,_0x33f233,_0x23d6ec=>{this['_updateSuggestionData'](_0x1e621f,{'attributes':_0x23d6ec});const _0x355240=this['getSuggestion'](_0x1e621f);this['_joinWithAdjacentSuggestions'](new Set([_0x355240])),this['_refreshSuggestionsChain'](new Set([_0x355240]));},_0x28b823);return this['listenTo'](_0x4f0079,'accept',()=>{this['_updateSuggestionData'](_0x1e621f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4f0079,'discard',()=>{this['_updateSuggestionData'](_0x1e621f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e621f,_0x4f0079),this['_suggestionState']['set'](_0x4f0079,'notReady'),_0x4f0079;}['_splitMarkerName'](_0x2cf656){return _0x1452e9(_0x2cf656);}['_breakSuggestionMarker'](_0x40e062,_0x52eceb,_0x1d6062){const _0x4c2370=_0x40e062['getFirstRange'](),_0x31bb18=_0x4c2370['start'],_0x6908b=_0x4c2370['end'];this['_setSuggestionRange'](_0x40e062,this['_model']['createRange'](_0x31bb18,_0x52eceb));const _0x404c0e=_0x58b4bb(),_0x13ba9d=_0x40e062['creator']['id'],_0x223c22=_0x40e062['type']+(_0x40e062['subType']?':'+_0x40e062['subType']:'');this['_setSuggestionData']({'id':_0x404c0e,'type':_0x223c22,'createdAt':new Date(),'authorId':_0x13ba9d,'originalSuggestionId':_0x40e062['_originalSuggestionId']||_0x40e062['id'],'attributes':_0x40e062['attributes'],'data':_0x40e062['data']});const _0x5d3545=this['_getAttributeKey'](_0x40e062);('formatBlock'==_0x40e062['type']||_0x5d3545&&this['_isBlockAttribute'](_0x5d3545))&&(_0x1d6062=this['_model']['createPositionBefore'](_0x1d6062['parent'])),this['_addSuggestionMarker'](_0x223c22,_0x404c0e,_0x13ba9d,this['_model']['createRange'](_0x1d6062,_0x6908b));}['_findSuggestions'](_0x22916d,_0x55faf0=null){const _0x52b676=[],_0x4bdd70=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x22916d)||(_0x22916d=[_0x22916d]);for(const _0x3a5ad1 of this['getSuggestions']()){if(!_0x3a5ad1['isInContent'])continue;if(_0x55faf0&&_0x3a5ad1['type']!=_0x55faf0)continue;let _0x28f732=!0x1;for(const _0x11fcb2 of _0x3a5ad1['getRanges']()){for(const _0x1f9764 of _0x22916d){const _0x27f967=_0x1f9764['start']['isEqual'](_0x11fcb2['end'])||_0x1f9764['end']['isEqual'](_0x11fcb2['start']);if(_0x27f967||_0x1f9764['getIntersection'](_0x11fcb2)){const _0x3be20=_0x1f9764['containsRange'](_0x11fcb2)&&zt(this['_model']['schema'],_0x11fcb2['start'],_0x1f9764),_0x3ae771=_0x11fcb2['containsRange'](_0x1f9764)&&zt(this['_model']['schema'],_0x1f9764['start'],_0x11fcb2);_0x52b676['push']({'suggestion':_0x3a5ad1,'meta':{'isOwn':_0x4bdd70==_0x3a5ad1['author'],'isNextTo':_0x27f967,'isInsideObject':_0x3be20,'containsRangeInObject':_0x3ae771}}),_0x28f732=!0x0;break;}}if(_0x28f732)break;}}return _0x52b676;}['_addSuggestionMarker'](_0x4d5708,_0x43b902,_0x489a37,_0x5add69,_0x4428ee){this['_model']['change'](_0x3ea3c5=>{let _0x846f8c='suggestion:'+_0x4d5708+':'+_0x43b902+':'+_0x489a37;_0x4428ee&&(_0x846f8c=_0x846f8c+':'+_0x4428ee),_0x3ea3c5['addMarker'](_0x846f8c,{'range':_0x5add69,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x532f50){const _0x55a1d5=_0x532f50['previous'],_0x15da48=_0x532f50['next'];_0x532f50['previous']=null,_0x532f50['next']=null,null!=_0x55a1d5&&_0x55a1d5['next']==_0x532f50&&(_0x55a1d5['next']=_0x15da48),null!=_0x15da48&&_0x15da48['previous']==_0x532f50&&(_0x15da48['previous']=_0x55a1d5),'ready'==this['_suggestionState']['get'](_0x532f50)&&(this['_suggestionState']['set'](_0x532f50,'removed'),this['fire']('suggestionUnloaded',_0x532f50,_0x55a1d5,_0x15da48));}['_setSuggestionData'](_0x398256){const _0xd14724=_0x398256['id'],_0x43755e=this['addSuggestionData'](_0x398256);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x456f86=this['editor']['plugins']['get']('PendingActions'),_0x2cab31=_0x43755e['hasComments'],_0x4aa499=_0x43755e['subType']?_0x43755e['type']+':'+_0x43755e['subType']:_0x43755e['type'],_0x13ed1c=this['editor']['locale'],_0x2c6472=_0x456f86['add'](o(_0x13ed1c,'PENDING_ACTION_SUGGESTION')),_0x34caee={'id':_0xd14724,'type':_0x4aa499,'hasComments':_0x2cab31,'data':_0x398256['data']||null,'originalSuggestionId':_0x398256['originalSuggestionId']||null,'attributes':_0x43755e['attributes']};this['_adapter']['addSuggestion'](_0x34caee)['then'](_0x8fafc2=>{_0x43755e['_saved']=!0x0,_0x456f86['remove'](_0x2c6472),_0x8fafc2&&_0x8fafc2['createdAt']&&(this['_suggestions']['get'](_0xd14724)['createdAt']=_0x8fafc2['createdAt']);})['catch'](_0x314781=>{throw _0x5e41d9('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x43755e['discard']();}),_0x43755e['stopListening'](),this['_suggestions']['delete'](_0x43755e['id']),this['_suggestionState']['delete'](_0x43755e),_0x314781;});}return _0x43755e;}['_isBlockAttribute'](_0x5400bc){return this['editor']['plugins']['get'](_0x508c21)['isBlockAttribute'](_0x5400bc);}['_isInlineAttribute'](_0x40f09b){return this['editor']['plugins']['get'](_0x508c21)['isInlineAttribute'](_0x40f09b);}['_updateSuggestionData'](_0x4e75d9,_0x13ca27){const _0x2384be=this['editor']['plugins']['get']('PendingActions'),_0x1d0837=this['getSuggestion'](_0x4e75d9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d0837['_saved']){const _0x489e21=_0x2384be['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4e75d9,_0x13ca27)['then'](()=>{_0x2384be['remove'](_0x489e21);});}else _0x1d0837['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4e75d9,_0x13ca27);});}}['_getSuggestionData'](_0x24f14a){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4323ac('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x24f14a);}['_handleNewSuggestionMarker'](_0x406386){const {id:_0x21413d,type:_0x26717a,subType:_0x25e41c,authorId:_0x9fa9d4}=this['_splitMarkerName'](_0x406386),_0xeca6a8=this['_suggestions']['get'](_0x21413d)||this['_createSuggestion'](_0x26717a,_0x25e41c,_0x21413d,_0x9fa9d4,{});switch(this['_checkSuggestionCorrectness'](_0xeca6a8,_0x26717a,_0x25e41c,_0x9fa9d4),this['_suggestionState']['get'](_0xeca6a8)){case'notReady':this['_getSuggestionData'](_0x21413d)['then'](_0x26e352=>{let _0x4aa5c0=Promise['resolve']();_0x26e352['hasComments']&&(_0x4aa5c0=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x21413d})),_0x4aa5c0['then'](()=>{this['addSuggestionData'](_0x26e352)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xeca6a8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x21413d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xeca6a8,'ready'),this['fire']('suggestionLoaded',_0xeca6a8);break;case'ready':this['fire']('suggestionChanged',_0xeca6a8);}return _0xeca6a8['addMarkerName'](_0x406386),_0xeca6a8;}['_refreshSuggestionsChain'](_0x17a8cf){const _0x10cf7e=Array['from'](_0x17a8cf),_0xae77f4=_0x10cf7e['filter'](_0x19e6d7=>'attribute'==_0x19e6d7['type']);this['_refreshAttributeSuggestionsChain'](_0xae77f4);const _0x546a49=_0x10cf7e['filter'](_0x5606c8=>!_0x5606c8['isMultiRange']&&'attribute'!=_0x5606c8['type']),_0x261381=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x522b9e=>!_0x522b9e['isMultiRange']&&'attribute'!=_0x522b9e['type']),_0x51289d=_0x261381['filter'](_0x4479a2=>!_0x17a8cf['has'](_0x4479a2)),_0x61f7e=new Map(_0x261381['map'](_0x5eb995=>[_0x5eb995,this['_suggestionFactory']['getSuggestionCallback'](_0x5eb995['type'],_0x5eb995['subType'],'chain')])),_0x50331a=new Map(_0x261381['map'](_0x4e2130=>[_0x4e2130,_0x4e2130['getFirstRange']()])),_0x12b8f2=new Set(),_0x10b58f=new Set();for(let _0x4a8945=0x0;_0x4a8945<_0x546a49['length'];_0x4a8945++)_0x36f1cb(_0x546a49[_0x4a8945],_0x546a49,_0x4a8945+0x1);for(let _0x1966fa=0x0;_0x1966fa<_0x546a49['length'];_0x1966fa++)_0x36f1cb(_0x546a49[_0x1966fa],_0x51289d,0x0);const _0x3818f8=new Set();for(let _0x3be939=0x0;_0x3be939<_0x546a49['length'];_0x3be939++){const _0xec0de=_0x546a49[_0x3be939];!_0x10b58f['has'](_0xec0de)&&_0xec0de['previous']&&(_0x3818f8['add'](_0xec0de['previous']),_0xec0de['previous']['next']===_0xec0de&&(_0xec0de['previous']['next']=null),_0xec0de['previous']=null),!_0x12b8f2['has'](_0xec0de)&&_0xec0de['next']&&(_0x3818f8['add'](_0xec0de['next']),_0xec0de['next']['previous']===_0xec0de&&(_0xec0de['next']['previous']=null),_0xec0de['next']=null);}function _0x36f1cb(_0x391304,_0x1a19e5,_0x100991){for(let _0x3a2527=_0x100991;_0x3a2527<_0x1a19e5['length'];_0x3a2527++){const _0x3f7b54=_0x4177eb(_0x391304,_0x1a19e5[_0x3a2527]);_0x3f7b54&&(_0x3f7b54[0x0]['next']=_0x3f7b54[0x1],_0x3f7b54[0x1]['previous']=_0x3f7b54[0x0],_0x12b8f2['add'](_0x3f7b54[0x0]),_0x10b58f['add'](_0x3f7b54[0x1]));}}function _0x4177eb(_0x2a103d,_0x49282b){if(_0x2a103d['author']['id']!==_0x49282b['author']['id'])return null;const _0x27e1a3=_0x61f7e['get'](_0x2a103d)(_0x2a103d,_0x49282b,_0x50331a['get'](_0x2a103d),_0x50331a['get'](_0x49282b));if(!_0x27e1a3)return null;return _0x61f7e['get'](_0x49282b)(_0x2a103d,_0x49282b,_0x50331a['get'](_0x2a103d),_0x50331a['get'](_0x49282b))?_0x27e1a3[0x1]['commentThread']&&_0x27e1a3[0x1]['commentThread']['length']?null:_0x27e1a3:null;}_0x3818f8['size']&&this['_refreshSuggestionsChain'](_0x3818f8);}['_refreshAttributeSuggestionsChain'](_0x7c3585){if(0x0==_0x7c3585['length'])return;const _0x4d90db=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x530f94=>'attribute'==_0x530f94['type']&&_0x530f94['_isDataLoaded']),_0x3b4980=[],_0x127d17=new Map();for(const _0x599a23 of _0x4d90db){const _0xf802db=_0xd0c3f2(_0x599a23['attributes']);_0x127d17['has'](_0xf802db)||(_0x127d17['set'](_0xf802db,_0x3b4980['length']),_0x3b4980['push']([]));const _0x60f2c3=_0x127d17['get'](_0xf802db);_0x3b4980[_0x60f2c3]['push'](_0x599a23);}!(function(){_0x3b4980['sort']((_0x343e07,_0x5cb8c6)=>{const _0x39cd55=_0x343e07[0x0]['createdAt'],_0x467a0d=_0x5cb8c6[0x0]['createdAt'];return _0x39cd55==_0x467a0d?_0x343e07[0x0]['attributes']['groupId']<_0x5cb8c6[0x0]['attributes']['groupId']?-0x1:0x1:_0x39cd55<_0x467a0d?-0x1:0x1;});for(const _0x5753cc of _0x3b4980)_0x5753cc['sort']((_0x44976e,_0x4821b6)=>_0x44976e['id']<_0x4821b6['id']?-0x1:0x1);}());for(let _0x157d08=0x0;_0x157d08<_0x3b4980['length'];_0x157d08++){if(0x0==_0x3b4980[_0x157d08]['length'])continue;const _0x49ba54=[];for(let _0x506f74=_0x157d08+0x1;_0x506f74<_0x3b4980['length'];_0x506f74++)0x0!=_0x3b4980[_0x506f74]['length']&&_0x2b8d0d(_0x3b4980[_0x157d08],_0x3b4980[_0x506f74])&&_0x49ba54['push'](_0x506f74);for(const _0x361f16 of _0x49ba54)_0x3b4980[_0x157d08]=_0x3b4980[_0x157d08]['concat'](_0x3b4980[_0x361f16]),_0x3b4980[_0x361f16]=[];}for(const _0x328ec3 of _0x3b4980)for(let _0x324f21=0x0;_0x324f21<_0x328ec3['length'];_0x324f21++){const _0x188663=_0x328ec3[_0x324f21+0x1]||null;_0x328ec3[_0x324f21]['next']!==_0x188663&&(_0x328ec3[_0x324f21]['next']=_0x188663);}for(const _0x302414 of _0x3b4980)for(let _0x30c4da=0x0;_0x30c4da<_0x302414['length'];_0x30c4da++){const _0x468238=_0x302414[_0x30c4da-0x1]||null;_0x302414[_0x30c4da]['previous']!==_0x468238&&(_0x302414[_0x30c4da]['previous']=_0x468238);}function _0x2b8d0d(_0x598045,_0x5df8ca){if(_0x598045[0x0]['attributes']['groupId']!==_0x5df8ca[0x0]['attributes']['groupId']&&_0x598045[0x0]['author']!==_0x5df8ca[0x0]['author'])return!0x1;if(!function(_0xfe3e12,_0x506250){if(!_0xfe3e12['hasComments']&&!_0x506250['hasComments'])return!0x0;if(_0xfe3e12['hasComments']&&_0x506250['hasComments'])return!0x1;if(_0xfe3e12['hasComments']&&_0x506250['createdAt']<_0xfe3e12['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x506250['hasComments']&&_0xfe3e12['createdAt']<_0x506250['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x598045[0x0],_0x5df8ca[0x0]))return!0x1;const _0x5739d9=Jt(_0x598045[0x0]['attributes'],['groupId','trackingSessionId']),_0x3767cc=Jt(_0x5df8ca[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x3d47c3(_0x5739d9,_0x3767cc))return!0x1;if(_0x598045[0x0]['attributes']['groupId']==_0x5df8ca[0x0]['attributes']['groupId'])return!0x0;if(_0x598045[0x0]['attributes']['trackingSessionId']!==_0x5df8ca[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x598045['every'](_0x1a71f2=>_0x5df8ca['some'](_0xd63026=>_0x1a71f2['getFirstRange']()['isEqual'](_0xd63026['getFirstRange']())))&&_0x5df8ca['every'](_0x2edd95=>_0x598045['some'](_0x39d4f2=>_0x2edd95['getFirstRange']()['isEqual'](_0x39d4f2['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x436f1f){const _0x4dbfcc=Array['from'](_0x436f1f),_0x1605f2=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2fa0ff=_0x1605f2['filter'](_0x173a9a=>!_0x436f1f['has'](_0x173a9a)),_0x4462db=new Map(_0x4dbfcc['map'](_0x559743=>[_0x559743,this['_suggestionFactory']['getSuggestionCallback'](_0x559743['type'],_0x559743['subType'],'join')])),_0x2dd9e7=new Map(_0x1605f2['map'](_0xc4207c=>[_0xc4207c,_0xc4207c['getRanges']()]));for(let _0xf437b4=0x0;_0xf437b4<_0x4dbfcc['length'];_0xf437b4++){if(_0x52ca5b(this,_0x4dbfcc[_0xf437b4],_0x4dbfcc,_0xf437b4+0x1))return!0x0;}for(let _0xc9083a=0x0;_0xc9083a<_0x4dbfcc['length'];_0xc9083a++){if(_0x52ca5b(this,_0x4dbfcc[_0xc9083a],_0x2fa0ff,0x0))return!0x0;}return!0x1;function _0x52ca5b(_0x4464a6,_0x534187,_0xd0a913,_0xe83c88){for(let _0x3a923a=_0xe83c88;_0x3a923a<_0xd0a913['length'];_0x3a923a++){const _0x38f1c2=_0xd0a913[_0x3a923a];if(_0x38f1c2['type']!==_0x534187['type']||_0x38f1c2['author']['id']!==_0x534187['author']['id']||_0x38f1c2['subType']!==_0x534187['subType'])continue;if(!en(_0x534187,_0x38f1c2))continue;if('attribute'==_0x534187['type']&&_0x534187['data']['oldValue']!=_0x38f1c2['data']['oldValue'])continue;if('attribute'==_0x534187['type']&&_0x4464a6['_isBlockAttribute'](_0x534187['data']['key']))continue;if('formatBlock'==_0x534187['type']){const _0x324961=_0x4464a6['editor']['model'],_0x5a3727=_0x534187['getContainedElement']();if(_0x5a3727&&(_0x324961['schema']['isObject'](_0x5a3727)||_0x324961['schema']['isLimit'](_0x5a3727)))continue;}const _0x77d7c5=_0x4462db['get'](_0x534187),_0x5daf8e=_0x2dd9e7['get'](_0x534187),_0x56ab8=_0x2dd9e7['get'](_0x38f1c2),_0x192534=_0x534187['commentThread']&&_0x534187['commentThread']['length'],_0x1d49e7=_0x38f1c2['commentThread']&&_0x38f1c2['commentThread']['length'];if(!_0x192534&&_0x77d7c5(_0x56ab8,_0x5daf8e))return _0x4464a6['_joinSuggestions'](_0x38f1c2,_0x534187),_0x2dd9e7['delete'](_0x534187),!0x0;if(!_0x1d49e7&&_0x77d7c5(_0x5daf8e,_0x56ab8))return _0x4464a6['_joinSuggestions'](_0x534187,_0x38f1c2),_0x2dd9e7['delete'](_0x38f1c2),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4778c9,_0x330b93){if(_0x4778c9['isMultiRange']){for(const _0x40a736 of _0x330b93['getRanges']())_0x4778c9['addRange'](_0x40a736);}else{const _0x379d87=_0x330b93['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4778c9,this['_model']['createRange'](_0x4778c9['getFirstRange']()['start'],_0x379d87));}_0x330b93['removeMarkers']();}['_getMarkerAnnouncementText'](_0xd90f53,_0x559c12,_0x32a8fc){const _0xd2844c=_0xd90f53['startsWith']('format')||_0xd90f53['startsWith']('attribute')?'FORMATTING':_0xd90f53['toUpperCase']();return o(this['editor']['locale'],_0x559c12+'_'+_0xd2844c+'_SUGGESTION_ANNOUNCEMENT',_0x32a8fc);}['_initAriaMarkerChangeAnnouncements'](){const _0x5589de=this['editor'];if(!_0x5589de['ui'])return;const {ariaLiveAnnouncer:_0x431fd6}=_0x5589de['ui'];_0x4388fd(this['_model'],({left:_0x1fd2d9,entered:_0x79d496})=>{for(const _0xa2de7e of _0x1fd2d9){const {group:_0x927100,type:_0x12655b}=this['_splitMarkerName'](_0xa2de7e['name']);if('suggestion'===_0x927100){_0x431fd6['announce'](this['_getMarkerAnnouncementText'](_0x12655b,'LEAVE'));break;}}for(const _0xd4230c of _0x79d496){const {group:_0x2a0ac7,type:_0x58b344}=this['_splitMarkerName'](_0xd4230c['name']);if('suggestion'===_0x2a0ac7){_0x431fd6['announce'](this['_getMarkerAnnouncementText'](_0x58b344,'ENTER',_0x487394(_0x44cffa)));break;}}});}['_processAttributeChanges'](_0x2dd2c1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1c0cb6=this['editor'],_0x5b8dbe=_0x1c0cb6['model']['document']['differ']['getChanges']();if(0x0==_0x5b8dbe['length'])return!0x1;const _0x17b32c=[],_0x1a3a7a=_0x5b8dbe['filter'](_0x503267=>'attribute'==_0x503267['type']),_0x7467a8=_0x5b8dbe['filter'](_0x265802=>'insert'==_0x265802['type']&&'$text'!=_0x265802['name']),_0x82b46d=_0x5b8dbe['filter'](_0x22ea42=>'remove'==_0x22ea42['type']&&'$text'!=_0x22ea42['name']);for(const _0x5b8670 of _0x1a3a7a)_0x17b32c['push']({'key':_0x5b8670['attributeKey'],'newValue':_0x5b8670['attributeNewValue'],'oldValue':_0x5b8670['attributeOldValue'],'range':Zt(_0x5b8670['range'],_0x1c0cb6['model'])});for(const _0x41399c of _0x7467a8){const _0x3bf7bc=_0x82b46d['find'](_0x2f610a=>_0x2f610a['position']['isEqual'](_0x41399c['position']));_0x3bf7bc&&_0x17b32c['push']({'key':m,'newValue':_0x41399c['name'],'oldValue':_0x3bf7bc['name'],'range':_0x1c0cb6['model']['createRangeOn'](_0x41399c['position']['nodeAfter'])});}return 0x0!=_0x17b32c['length']&&this['_reduceExistingSuggestions'](_0x2dd2c1,_0x17b32c);}['_processAttributeSuggestions'](_0x3a9d29){let _0x5b6c4e=!0x1;const _0x87a1e5=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x32287a=>_0x32287a['data']['newRange']&&_0x32287a['name']['startsWith']('suggestion:attribute:'));for(const _0x56d4f9 of _0x87a1e5){const {subType:_0x4dcb2a,id:_0x56fbc1}=this['_splitMarkerName'](_0x56d4f9['name']),_0x51b8c6=_0x4dcb2a['split']('|')[0x0];for(const _0x14a572 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x14a572['id']!=_0x56fbc1&&'attribute'==_0x14a572['type']&&_0x14a572['data']&&_0x14a572['data']['key']==_0x51b8c6&&_0x14a572['getFirstRange']()['isIntersecting'](_0x56d4f9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x14a572,_0x56d4f9['data']['newRange'],_0x3a9d29),_0x5b6c4e=!0x0);}return _0x5b6c4e;}['recordAttributeChanges'](_0x3de2b0){this['_recordAttributeSuggestions']=!0x0,_0x3de2b0();}['_isRegisteredAttribute'](_0x4e79c3){return this['editor']['plugins']['get'](_0x508c21)['isRegisteredAttribute'](_0x4e79c3);}['_reduceExistingSuggestions'](_0x4551b4,_0x36b97e){if(0x0==_0x36b97e['length'])return!0x1;let _0x41bd2e=!0x1;for(const _0x158562 of _0x36b97e){const _0x1ea379=this['_findSuggestions'](_0x158562['range'],'attribute')['filter'](_0xcbd67b=>!_0xcbd67b['meta']['isNextTo'])['map'](_0x29ddce=>_0x29ddce['suggestion']),_0x2d6570=_0xd0c3f2({'newValue':_0x158562['newValue']});_0x1ea379['filter'](_0x945b4c=>{const [_0x4a4154,_0x1a282d]=_0x945b4c['subType']['split']('|');return _0x4a4154==_0x158562['key']&&_0x1a282d!=_0x2d6570;})['forEach'](_0x1ec92a=>{this['_reduceSuggestionAttributeRange'](_0x1ec92a,_0x158562['range'],_0x4551b4),_0x41bd2e=!0x0;});}return _0x41bd2e;}['_reduceSuggestionAttributeRange'](_0x23e7f0,_0x1cd724,_0x2c4515){const _0x572044=_0x23e7f0['getFirstRange']()['getDifference'](_0x1cd724);0x0!==_0x572044['length']?0x1!==_0x572044['length']?this['_breakSuggestionMarker'](_0x23e7f0,_0x1cd724['start'],_0x1cd724['end']):this['_setSuggestionRange'](_0x23e7f0,_0x572044[0x0]):_0x2c4515['removeMarker'](_0x23e7f0['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xebdbd7){this['_editor']=_0xebdbd7,this['_model']=_0xebdbd7['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3b85e0,_0x302fd5,_0x511d43,_0x749a5b,_0x328c6f,_0x215b6d,_0x40dd7f){return new T(this['_model'],{'type':_0x3b85e0,'subType':_0x302fd5,'id':_0x511d43,'originalSuggestionId':_0x40dd7f,'author':_0x749a5b,'creator':_0x749a5b,'attributes':_0x328c6f,'onAttributesChange':_0x215b6d,'onAccept':(..._0x50c87f)=>this['getSuggestionCallback'](_0x3b85e0,_0x302fd5,'accept')(..._0x50c87f),'onDiscard':(..._0x23667d)=>this['getSuggestionCallback'](_0x3b85e0,_0x302fd5,'discard')(..._0x23667d)});}['registerCustomCallback'](_0x490e56,_0xa3c503,_0x348422,_0x30cd43){const _0x4c90af=_0x490e56+':'+_0xa3c503+':'+_0x348422;this['_customCallbacks']['set'](_0x4c90af,_0x30cd43);}['getSuggestionCallback'](_0x483ab3,_0x1e6799,_0x3f2295){const _0x276906=_0x483ab3+':'+_0x1e6799+':'+_0x3f2295;return this['_customCallbacks']['get'](_0x276906)||this['_defaultCallbacks']['get'](_0x483ab3+':'+_0x3f2295);}['_registerDefaultCallbacks'](){const _0x1d331=()=>!0x1,_0x31f2ef=_0x1df9c8=>{_0x1df9c8['sort']((_0x265404,_0x13e9ed)=>_0x265404['start']['isBefore'](_0x13e9ed['start'])?0x1:-0x1),this['_model']['change'](_0x300242=>{for(const _0x15abb8 of _0x1df9c8){let _0x878c04;_0x878c04=_0x15abb8['end']['isAtEnd']&&_0x15abb8['end']['parent']==_0x15abb8['start']['nodeAfter']?_0x300242['createSelection'](_0x15abb8['start']['nodeAfter'],'on'):_0x300242['createSelection'](_0x15abb8),this['_model']['deleteContent'](_0x878c04,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x341e5b=(_0x463f28,_0x215061)=>{_0x215061&&this['_model']['change'](_0x100b5e=>{const {commandName:_0x11c8d8,commandParams:_0x4c9508=[]}=_0x215061,_0x16669e=_0x463f28['map'](_0xd33415=>(Kt(_0xd33415)&&(_0xd33415=this['_model']['createRange'](_0xd33415['end'])),_0xd33415))['filter'](_0xc96d94=>'$graveyard'!==_0xc96d94['root']['rootName']);if(_0x16669e['length']<0x1)return;const _0x13a89b=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1cc2c1=>_0x41285e['fromRange'](_0x1cc2c1));_0x100b5e['setSelection'](_0x16669e);for(const _0x155155 of this['_editor']['commands']['commands']())_0x155155['refresh']();_0x4c9508['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x11c8d8,..._0x4c9508);const _0x3b3a68=_0x13a89b['filter'](_0x465cff=>'$graveyard'!=_0x465cff['root']['rootName']);_0x3b3a68['length']>0x0&&_0x100b5e['setSelection'](_0x3b3a68);for(const _0x5fe88e of _0x13a89b)_0x5fe88e['detach']();});},_0x5bfd09=(_0x19fb89,_0x1bb1e2)=>0x1==_0x19fb89['length']&&0x1==_0x1bb1e2['length']&&_0x19fb89[0x0]['end']['isEqual'](_0x1bb1e2[0x0]['start']),_0x298b0a=(_0x4dddf9,_0x4fc232,_0x1b7b84,_0x1883c9)=>nn(_0x4dddf9,_0x4fc232,_0x1b7b84,_0x1883c9)?[_0x4dddf9,_0x4fc232]:nn(_0x4fc232,_0x4dddf9,_0x1883c9,_0x1b7b84)?[_0x4fc232,_0x4dddf9]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1d331),this['_defaultCallbacks']['set']('insertion:discard',_0x31f2ef),this['_defaultCallbacks']['set']('insertion:join',_0x5bfd09),this['_defaultCallbacks']['set']('insertion:chain',_0x298b0a),this['_defaultCallbacks']['set']('deletion:accept',_0x31f2ef),this['_defaultCallbacks']['set']('deletion:discard',_0x1d331),this['_defaultCallbacks']['set']('deletion:join',_0x5bfd09),this['_defaultCallbacks']['set']('deletion:chain',_0x298b0a),this['_defaultCallbacks']['set']('formatInline:accept',_0x341e5b),this['_defaultCallbacks']['set']('formatInline:discard',_0x1d331),this['_defaultCallbacks']['set']('formatInline:join',_0x5bfd09),this['_defaultCallbacks']['set']('formatInline:chain',_0x1d331),this['_defaultCallbacks']['set']('formatBlock:accept',_0x341e5b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1d331),this['_defaultCallbacks']['set']('formatBlock:join',_0x5bfd09),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1d331),this['_defaultCallbacks']['set']('attribute:accept',_0x1d331),this['_defaultCallbacks']['set']('attribute:discard',(_0x4a3f45,_0x125e20)=>{if(!_0x125e20)return;const _0x5cfdd3=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1de2a8=>{if(_0x125e20['key']==m)for(const _0x4b018b of _0x4a3f45){const _0x2ca131=_0x4b018b['start']['nodeAfter'],_0x2dd626=_0x125e20['oldValue'];_0x1de2a8['rename'](_0x2ca131,_0x2dd626);}else{if(_0x5cfdd3['_isBlockAttribute'](_0x125e20['key'])){for(const _0x1b43b5 of _0x4a3f45)void 0x0!==_0x125e20['oldValue']?_0x1de2a8['setAttribute'](_0x125e20['key'],_0x125e20['oldValue'],_0x1b43b5['start']['nodeAfter']):_0x1de2a8['removeAttribute'](_0x125e20['key'],_0x1b43b5['start']['nodeAfter']);}else{for(const _0x2606a4 of _0x4a3f45)_0x125e20['oldValue']?_0x1de2a8['setAttribute'](_0x125e20['key'],_0x125e20['oldValue'],_0x2606a4):_0x1de2a8['removeAttribute'](_0x125e20['key'],_0x2606a4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5bfd09);}}function zt(_0x2a3e66,_0x529618,_0x384c43){for(const _0x37c2ce of _0x529618['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x37c2ce['root']==_0x37c2ce)return!0x1;if(!_0x384c43['containsItem'](_0x37c2ce))return!0x1;if(_0x2a3e66['isObject'](_0x37c2ce)||_0x2a3e66['isLimit'](_0x37c2ce))return!0x0;}return!0x1;}function Kt(_0x3199f6){return _0x3199f6['end']['parent']==_0x3199f6['start']['nodeAfter']&&_0x3199f6['end']['isAtStart'];}function Wt(_0x28ecb2,_0x10da3e,_0xbdc729,_0x43f670){const _0x4d35c7=_0x184f9c=>!_0x184f9c['item']['is']('$textProxy')&&!_0x43f670['isObject'](_0x184f9c['item']),_0x5015a7=_0x28ecb2['start']['getLastMatchingPosition'](_0x4d35c7),_0x3cb731=_0x28ecb2['end']['getLastMatchingPosition'](_0x4d35c7,{'direction':'backward'});return(!_0x28ecb2['start']['isEqual'](_0x5015a7)||!_0x28ecb2['end']['isEqual'](_0x3cb731))&&(_0x5015a7['isBefore'](_0x3cb731)?_0xbdc729['updateMarker'](_0x10da3e,{'range':_0xbdc729['createRange'](_0x5015a7,_0x3cb731)}):_0xbdc729['removeMarker'](_0x10da3e),!0x0);}function Ht(_0x3de8bc){return _0xd0c3f2(_0x3de8bc);}function Qt(_0x314667){const _0x5251d6=_0x314667['start']['nodeAfter'];return _0x5251d6&&_0x5251d6['is']('element');}function Xt(_0x262440){return Kt(_0x262440)||function(_0x19f0d0){return _0x19f0d0['start']['parent']==_0x19f0d0['end']['nodeBefore']&&_0x19f0d0['start']['isAtEnd'];}(_0x262440);}function Yt(_0x25fec8,_0x4a1ea3){try{const _0x28a273=_0x25fec8['getRange']();for(const _0xaf938a of _0x4a1ea3)if(_0x25fec8!==_0xaf938a&&_0x28a273&&_0x28a273['isIntersecting'](_0xaf938a['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x3e45b2,_0x25257e){return null==_0x3e45b2['end']['nodeBefore']&&_0x3e45b2['end']['parent']==_0x3e45b2['start']['nodeAfter']?tn(_0x3e45b2['start']['nodeAfter'],_0x25257e):_0x3e45b2;}function tn(_0x25fddc,_0xfb31dd){const _0x401f5d=_0xfb31dd['schema']['isObject'](_0x25fddc)||_0xfb31dd['schema']['isSelectable'](_0x25fddc);return _0xfb31dd['createRange'](_0xfb31dd['createPositionAt'](_0x25fddc,'before'),_0x401f5d?_0xfb31dd['createPositionAfter'](_0x25fddc):_0xfb31dd['createPositionAt'](_0x25fddc,'end'));}function nn(_0x340ebf,_0x5f83df,_0x48ec01,_0x30991f){return!!en(_0x340ebf,_0x5f83df)&&_0x48ec01['end']['isEqual'](_0x30991f['start']);}function en(_0xf8e7e,_0x4d32c4){if(!_0xf8e7e['_isDataLoaded']||!_0x4d32c4['_isDataLoaded'])return!0x1;const _0x257e23=new Set(Object['keys'](_0xf8e7e['attributes'])),_0x621fef=new Set(Object['keys'](_0x4d32c4['attributes']));if(_0x257e23['delete']('groupId'),_0x621fef['delete']('groupId'),0x0==_0x257e23['size']&&0x0==_0x621fef['size'])return!0x0;if(_0x257e23['size']!=_0x621fef['size'])return!0x1;const _0xe7bd5c={..._0xf8e7e['attributes']},_0x2242a3={..._0x4d32c4['attributes']};return delete _0xe7bd5c['groupId'],delete _0x2242a3['groupId'],JSON['stringify'](_0xe7bd5c)==JSON['stringify'](_0x2242a3);}function sn(_0x796538,_0xf4f488){const _0x1c3179=on(_0x796538['attributes']),_0x1af498=on(_0xf4f488);if(!_0x796538['_isDataLoaded'])return!0x1;for(const _0xc5a3f of Object['keys'](_0x1af498))if(!_0x3d47c3(_0x1c3179[_0xc5a3f],_0x1af498[_0xc5a3f]))return!0x1;return!0x0;}function on(_0x493545){const _0x384347=Object['assign']({},_0x493545);return delete _0x384347['skipNestingCheck'],delete _0x384347['tablePasteChainId'],_0x384347;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x14b986(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1a34a9,_0x429132,_0x2e3600,_0x1ba086){super(),this['model']=_0x429132,this['view']=_0x2e3600,this['commentThreadController']=_0x1ba086,this['_editor']=_0x1a34a9,this['_acceptCommand']=_0x1a34a9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1a34a9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xb642c2,_0x4cb7d2)=>_0xb642c2||_0x4cb7d2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x3efad5=>_0x3efad5&&this['_editor']['model']['canEditAt'](_0x429132['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x171cc0=>_0x171cc0&&this['_editor']['model']['canEditAt'](_0x429132['getRanges']())),this['_pendingAction']=null,_0x2e3600['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2e3600,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2e3600,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2e3600,'change:isDirty',()=>{_0x2e3600['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 _0x3c6c52=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3c6c52);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x1fe705{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x43ac39,_0x22ab8a,_0x2ea4ae,_0x75a960){super(_0x43ac39),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x28f078(_0x43ac39,o(_0x43ac39,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x22ab8a['authoredAt']),this['bind']('authoredAt')['to'](_0x22ab8a),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',_0x22ab8a,'authoredAt',this,'descriptionParts',(_0x3dd24d,_0x26bd86,_0xb30965)=>{const _0x4ba2df=_0xb30965['map'](_0x46cba7=>ls(_0x46cba7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3dd24d-0x1,_0x22ab8a['author']['name'],_0x26bd86?_0x75a960['formatDateTime'](_0x26bd86):'',new DOMParser()['parseFromString'](_0x4ba2df,'text/html')['body']['textContent']]);}),this['focusables']=new _0x9df8f7(),this['focusTracker']=new _0x3b7683(),this['keystrokes']=new _0x2fc584(),this['focusCycler']=new _0xa82aed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x172641=>_0x172641['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x22ab8a,this['_localUser']=_0x2ea4ae,this['_config']=_0x75a960,_0x75a960['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x509464(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x805d97}=this['_config'];this['commentsListView']=new _0x805d97(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',_0x5a8294=>_0x5a8294+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f636e,_0x37c55f)=>_0x2f636e||!!_0x37c55f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xb6d20c}=this['_config'],_0x254156=new _0xb6d20c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x21ab90=_0x254156['commentInputView'];return _0x254156['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x21ab90,'value',(_0x49a090,_0x4ef496,_0x1178b0)=>!!_0x1178b0||_0x49a090&&!_0x4ef496),_0x21ab90['on']('submit',(_0x5adeae,_0x9342ba)=>{this['fire']('addComment',_0x9342ba),_0x21ab90['editor']['setData']('');}),_0x21ab90['on']('cancel',()=>this['focus']()),_0x21ab90['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x254156;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x2617d4,_0x56b8d2,_0x2b9404,_0x5a2edf){super(_0x2617d4,_0x56b8d2,_0x2b9404,_0x5a2edf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x45dab0=>_0x45dab0&&_0x45dab0[0x0]?_0x45dab0[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x46580f,_0x41e74f)=>{let _0x5e26a7='';for(const _0xe79921 of _0x46580f)_0x5e26a7+='<p>'+ls(_0xe79921['content'],_0xe79921['color'])+'</p>';return _0x41e74f?_0x5e26a7:_0x32a20f(_0x5e26a7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x5a2edf['SuggestionView'](_0x2617d4,_0x56b8d2,{'formatDateTime':_0x5a2edf['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 _0x45c101=this['bindTemplate'],_0x5826cc=[this['suggestionView']];return this['commentsListView']&&_0x5826cc['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5826cc['push'](this['commentThreadInputView']),_0x5826cc['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x45c101['if']('isActive','ck-suggestion-wrapper--active'),_0x45c101['to']('type',_0x567506=>'ck-suggestion-'+_0x567506),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':_0x45c101['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5826cc};}['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 _0x1fe705{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x378046,_0x324f75,_0x5e60da){super(_0x378046),this['_model']=_0x324f75,this['_config']=_0x5e60da,this['set']('description',''),this['bind']('authoredAt')['to'](_0x324f75),this['acceptButton']=this['_createButton'](o(_0x378046,'Accept\x20suggestion'),_0x4a3aea,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x378046,'Discard\x20suggestion'),_0x20c60d,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x48f6bc(_0x378046,_0x324f75['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x9df8f7([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b7683(),this['keystrokes']=new _0x2fc584(),this['focusCycler']=new _0xa82aed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3788c2=>_0x3788c2['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2206fc=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2206fc['innerHTML']=this['description'],this['on']('change:description',(_0x23b2f8,_0x51cdee,_0x1ed6c2)=>{_0x2206fc['innerHTML']=_0x1ed6c2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x35e46e=this['bindTemplate'],_0x14a5e4=[{'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':_0x35e46e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x35e46e['to']('authoredAt',_0xd8761a=>this['_config']['formatDateTime'](_0xd8761a))}]}]},{'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']&&_0x14a5e4['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':_0x14a5e4}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0xcb4ccc,_0x33a5b6,_0x46145a,_0x2f1797,_0x1cbbc3){const _0x2def30=new _0x203ca2(this['locale']);return _0x2def30['set']({'label':_0xcb4ccc,'icon':_0x33a5b6,'tooltip':!0x0,'tooltipPosition':_0x1cbbc3}),_0x2def30['extendTemplate']({'attributes':{'class':_0x46145a}}),_0x2def30['on']('execute',()=>{this['fire'](_0x2f1797,this['_model']['id']);}),_0x2def30;}['_setupKeyboardNavigation'](){const _0x274018=this['element'];this['keystrokes']['listenTo'](_0x274018);for(const _0x37e178 of this['focusables'])this['focusTracker']['add'](_0x37e178['element']),this['keystrokes']['listenTo'](_0x37e178['element']);this['keystrokes']['set']('enter',(_0x438563,_0x41a388)=>{_0x274018===_0x438563['target']&&(this['focusCycler']['focusFirst'](),_0x41a388());}),this['keystrokes']['set']('esc',(_0x21196b,_0x362b98)=>{_0x274018!==_0x21196b['target']&&(this['focus'](),_0x362b98());});}}class u extends _0x4f24f5{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x3089c7,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47bf9a){super(_0x47bf9a),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3947ad=this['editor']['config'];_0x3947ad['define']('trackChanges.SuggestionThreadView',fe),_0x3947ad['define']('trackChanges.SuggestionView',we),_0x3947ad['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3947ad['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x68cb3a,_0x505b10){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x855362,_0x88082e]of this['_handleControllerBuffer']){const _0x2ef49e=this['_suggestionToController']['has'](_0x855362);_0x2ef49e||_0x88082e?_0x2ef49e&&_0x88082e&&this['_destroyController'](_0x855362):this['_initializeController'](_0x855362);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x68cb3a,_0x505b10);}['init'](){const _0x1dd8f0=this['editor'],_0x5f53b7=_0x1dd8f0['plugins']['get']('TrackChangesEditing'),_0x2cfb41=_0x1dd8f0['plugins']['get']('Annotations'),_0x4c99ef=_0x1dd8f0['plugins']['get']('EditorAnnotations'),_0xaa2c97=_0x1dd8f0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4c99ef['addSourceCollector'](()=>{const _0x569533=[];for(const [_0x499066,_0x40697c]of Array['from'](this['_suggestionToController'])){const _0x4d8790=_0x499066['getAllAdjacentSuggestions'](),_0x49a0a3=[];for(const _0x4eb3ac of _0x4d8790){if(!_0x4eb3ac['isInContent'])continue;if(_0x4eb3ac['isMultiRange']){_0x49a0a3['push'](..._0x4eb3ac['getRanges']());continue;}const _0x2fe5da=_0x4eb3ac['getFirstRange']();if(_0x49a0a3['length']>0x0){const _0x5e6818=_0x49a0a3[0x0]['getJoined'](_0x2fe5da);if(_0x5e6818){_0x49a0a3[0x0]=_0x5e6818;continue;}}_0x49a0a3['push'](_0x2fe5da);}_0x569533['push']([_0x40697c['view'],_0x49a0a3]);}return _0x569533;}),this['listenTo'](_0x5f53b7,'suggestionLoaded',(_0x1c0022,_0x52e14d)=>{this['listenTo'](_0x52e14d,'change:previous',(_0x1b60a1,_0x535af4,_0x2526c0,_0x13ed95)=>{_0x52e14d['isInContent']&&(null==_0x2526c0?(this['_updateController'](_0x13ed95['head']),this['_handleSuggestionControllerDelayed'](_0x52e14d,!0x1)):(this['_updateController'](_0x2526c0['head']),null==_0x13ed95&&this['_handleSuggestionControllerDelayed'](_0x52e14d,!0x0)));}),null!==_0x52e14d['previous']?this['_updateController'](_0x52e14d['head']):this['_handleSuggestionControllerDelayed'](_0x52e14d,!0x1);}),this['listenTo'](_0x5f53b7,'suggestionUnloaded',(_0x410f55,_0x34cf21,_0x5792e4)=>{this['stopListening'](_0x34cf21,'change:previous'),this['_handleControllerBuffer']['delete'](_0x34cf21),this['_suggestionToController']['has'](_0x34cf21)&&this['_destroyController'](_0x34cf21),_0x5792e4&&this['_updateController'](_0x5792e4['head']);}),this['listenTo'](_0x5f53b7,'suggestionChanged',(_0x433e70,_0x31fd5f)=>{this['_updateController'](_0x31fd5f);}),this['listenTo'](_0x2cfb41,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xaa2c97,'addComment',(_0x17825e,{threadId:_0x5b9038,isFromAdapter:_0x5446b3})=>{if(_0x5446b3||!_0x5f53b7['hasSuggestion'](_0x5b9038))return;const _0x130db9=_0x5f53b7['getSuggestion'](_0x5b9038);this['_suggestionToController']['get'](_0x130db9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x17dfec=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d175;for(const _0x24d8a3 in _0x17dfec){const _0x4f348e=_0x24d8a3,_0x89fcf9=_0x17dfec[_0x4f348e];if('trackChangesLicenseKeyValid'==_0x89fcf9||'trackChangesLicenseKeyInvalid'==_0x89fcf9||'trackChangesLicenseKeyExpired'==_0x89fcf9||'trackChangesLicenseKeyDomainLimit'==_0x89fcf9||'trackChangesLicenseKeyNotAllowed'==_0x89fcf9||'trackChangesLicenseKeyEvaluationLimit'==_0x89fcf9||'trackChangesLicenseKeyUsageLimit'==_0x89fcf9){delete _0x17dfec[_0x4f348e],_0x37d175=_0x89fcf9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x37d175&&_0x17dfec['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x37d175&&_0x17dfec['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x37d175&&_0x17dfec['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x37d175&&_0x17dfec['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x37d175&&_0x17dfec['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x37d175&&_0x17dfec['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x385d9c){const _0x2a0352=this['_suggestionToController']['get'](_0x385d9c);if(!_0x2a0352)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x2a0352['view'])||null;}['getSuggestionForAnnotation'](_0x17091){const _0x26ab18=this['_viewToController']['get'](_0x17091['innerView']);return _0x26ab18?_0x26ab18['model']:null;}['_refreshActiveMarkers'](){const _0x55a55f=this['editor']['plugins']['get']('Annotations'),_0x40ae5f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f7673=Array['from'](_0x55a55f['activeAnnotations'],_0x48c926=>_0x48c926['innerView'])['filter'](_0x574152=>this['_viewToController']['has'](_0x574152)),_0x48f3d8=[];for(const _0x3e52fd of _0x4f7673){const _0x36844e=this['_viewToController']['get'](_0x3e52fd)['model']['getAllAdjacentSuggestions']();_0x48f3d8['push'](..._0x36844e['reduce']((_0x4549f7,_0x530228)=>[..._0x4549f7,..._0x530228['getMarkerNames']()],[]));}_0x40ae5f['activeMarkers']=_0x48f3d8;}['_addUIComponentsToFactory'](){const _0x324e76=this['editor'],_0xe91ed8=_0x324e76['locale'],_0x191352=o(_0xe91ed8,'Track\x20changes'),_0x57f5ad=new _0x37bcfb([{'type':'switchbutton','model':new _0x15bc41({'withText':!0x0,'isToggleable':!0x0,'label':_0x191352,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x324e76['plugins']['has']('TrackChangesPreview')&&_0x57f5ad['addMany']([{'type':'separator'},{'type':'button','model':new _0x15bc41({'withText':!0x0,'label':o(_0xe91ed8,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1f2cb2 of _0x57f5ad)if(ke(_0x1f2cb2)){const _0x2d3266=_0x324e76['commands']['get'](_0x1f2cb2['model']['commandName']);_0x1f2cb2['model']['bind']('isOn','isEnabled')['to'](_0x2d3266,'value','isEnabled');}_0x324e76['ui']['componentFactory']['add']('trackChanges',_0x4e6949=>this['_createToolbarButton'](_0x4e6949,_0x57f5ad,_0x191352)),_0x324e76['ui']['componentFactory']['add']('menuBar:trackChanges',_0x54b12f=>this['_createMenuBarMenu'](_0x54b12f,_0x57f5ad,_0x191352));}['_createToolbarButton'](_0x57b4a5,_0x2cd009,_0x4ca090){const _0x432f41=_0x339ff7(_0x57b4a5,_0x4e70c0),_0x1e7a8f=this['editor']['commands']['get']('trackChanges');_0x432f41['buttonView']['set']({'tooltip':_0x4ca090,'label':_0x4ca090,'icon':_0x16f65c}),_0x432f41['buttonView']['bind']('isOn')['to'](_0x1e7a8f,'value'),_0x432f41['buttonView']['on']('execute',()=>{_0x1e7a8f['execute'](),this['editor']['editing']['view']['focus']();}),_0x34bce8(_0x432f41,_0x2cd009,{'role':'menu'});const _0x2900c6=[];for(const _0x501a57 of _0x2cd009)ke(_0x501a57)&&_0x2900c6['push'](this['editor']['commands']['get'](_0x501a57['model']['commandName']));const _0x4edf11=_0x432f41['buttonView'];return _0x4edf11['actionView']['unbind']('isEnabled'),_0x4edf11['arrowView']['unbind']('isEnabled'),_0x4edf11['actionView']['bind']('isEnabled')['to'](_0x1e7a8f,'isEnabled'),_0x4edf11['arrowView']['bind']('isEnabled')['toMany'](_0x2900c6,'isEnabled',(..._0x56595e)=>_0x56595e['some'](_0x46165d=>_0x46165d)),_0x432f41['on']('execute',_0x6ed3f3=>{this['editor']['execute'](_0x6ed3f3['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x432f41;}['_createMenuBarMenu'](_0x3bdab0,_0x3e75c8,_0x7b005b){const _0x536f92=new _0x5829f1(_0x3bdab0),_0x556b71=this['editor']['commands']['get']('trackChanges');_0x536f92['buttonView']['set']({'label':_0x7b005b,'icon':_0x16f65c});const _0x9229d6=new _0x5ba2a1(_0x3bdab0);for(const _0x56b49f of _0x3e75c8){if('separator'==_0x56b49f['type']){_0x9229d6['items']['add'](new _0x14e71f(_0x3bdab0));continue;}const _0x1531ac=new _0x23c318(_0x3bdab0,_0x536f92),_0x3f8578=new _0x47c1c8(_0x3bdab0),_0x32f4d7=_0x56b49f['model'];_0x3f8578['bind'](...Object['keys'](_0x32f4d7))['to'](_0x32f4d7),_0x3f8578['delegate']('execute')['to'](_0x536f92),_0x3f8578['on']('execute',()=>{this['editor']['execute'](_0x32f4d7['commandName']),this['editor']['editing']['view']['focus']();}),_0x1531ac['children']['add'](_0x3f8578),_0x9229d6['items']['add'](_0x1531ac);}return _0x536f92['bind']('isEnabled')['to'](_0x556b71,'isEnabled'),_0x536f92['panelView']['children']['add'](_0x9229d6),_0x536f92;}['_initializeController'](_0x4cb9f4){const _0x48e3c4=this['editor'],_0x12ac28=_0x48e3c4['config'],_0x119ab5=_0x48e3c4['plugins']['get']('Annotations'),_0x11a6fb=_0x48e3c4['plugins']['get']('CommentsRepository'),_0x48d309=_0x48e3c4['plugins']['get']('EditorAnnotations'),_0x177eeb=_0x48e3c4['plugins']['get'](_0x3089c7)['me'],_0x51abcf=_0x12ac28['get']('trackChanges')['SuggestionThreadView'],_0x5c680d=_0x12ac28['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3fab1a,CommentThreadInputView:_0x5361f4}=_0x48e3c4['plugins']['get']('CommentsUI');let _0x4a886d,_0x2f6cd7,_0x577925;this['_annotationViews']['has'](_0x4cb9f4['id'])?(_0x2f6cd7=this['_annotationViews']['get'](_0x4cb9f4['id']),_0x4a886d=_0x2f6cd7['mainView']):(_0x4a886d=new _0x51abcf(_0x48e3c4['locale'],_0x4cb9f4,_0x177eeb,{'disableComments':this['_disableComments'],'editorConfig':{..._0x12ac28['get']('comments.editorConfig'),'licenseKey':_0x12ac28['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x12ac28['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x12ac28['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x12ac28['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x411be3(_0x12ac28['get']('locale'),_0x48e3c4['locale']),'CommentView':_0x12ac28['get']('comments')['CommentView'],'CommentsListView':_0x3fab1a,'CommentThreadInputView':_0x5361f4,'SuggestionView':_0x5c680d}),_0x4a886d['suggestionView']['acceptButton']['on']('execute',()=>{_0x48e3c4['editing']['view']['focus']();}),_0x4a886d['suggestionView']['discardButton']['on']('execute',()=>{_0x48e3c4['editing']['view']['focus']();}),_0x2f6cd7=_0x119ab5['createAnnotationView'](this['editor']['locale'],_0x4a886d),_0x2f6cd7['bind']('isDirty')['to'](_0x4a886d,'isDirty'),_0x2f6cd7['bind']('length')['to'](_0x4a886d),_0x2f6cd7['bind']('type')['to'](_0x4a886d,'type',_0x3d6025=>'suggestion-'+_0x3d6025),_0x4a886d['on']('escape',()=>{_0x577925['fire']('escape');}),this['_annotationViews']['set'](_0x4cb9f4['id'],_0x2f6cd7));const _0x18d5ab=_0x11a6fb['createCommentThreadController'](_0x4cb9f4['commentThread'],_0x4a886d),_0x4edf52=new pe(_0x48e3c4,_0x4cb9f4,_0x4a886d,_0x18d5ab),_0x24371a=_0x4cb9f4['getAllAdjacentSuggestions']()['filter'](_0x24b8d7=>_0x24b8d7['isInContent']);_0x4a886d['descriptionParts']=_0x48e3c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x24371a),this['_suggestionToController']['set'](_0x4cb9f4,_0x4edf52),this['_viewToController']['set'](_0x4a886d,_0x4edf52);const _0x4357e7=()=>{const _0x2a4db6=[],_0xbf5247=_0x4cb9f4['getAllAdjacentSuggestions']()['filter'](_0x503be2=>_0x503be2['isInContent']);for(const _0x110d97 of _0xbf5247)_0x2a4db6['push'](..._0x110d97['getMarkers']());return _0x2ead08(_0x48e3c4['editing'],_0x2a4db6);};_0x577925=_0x119ab5['createAnnotation']({'view':_0x2f6cd7,'target':_0x4357e7,'type':()=>'suggestion-'+_0x4edf52['view']['type'],'isVisible':!!_0x4357e7()}),_0x11a6fb['_bindAnnotationToEditors'](_0x4a886d,_0x577925),_0x119ab5['add'](_0x577925),_0x48d309['registerAnnotation'](_0x577925);}['_destroyController'](_0x2bf63e){const _0x4b437b=this['editor']['plugins']['get']('CommentsRepository'),_0x1e11a9=this['editor']['plugins']['get']('Annotations'),_0x3df8ee=this['_suggestionToController']['get'](_0x2bf63e),_0x3a103f=_0x3df8ee['view'],_0x403b2b=_0x1e11a9['getByInnerView'](_0x3a103f);_0x4b437b['_unbindEditors'](_0x3a103f),_0x403b2b&&_0x1e11a9['remove'](_0x403b2b),this['_suggestionToController']['delete'](_0x2bf63e),this['_viewToController']['delete'](_0x3a103f),_0x3df8ee['destroy']();}['_updateController'](_0x3f82d2){if(!_0x3f82d2['isInContent']||!this['_suggestionToController']['has'](_0x3f82d2))return;const _0x13ffe3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x175a7a=this['_suggestionToController']['get'](_0x3f82d2),_0x5a98bb=_0x3f82d2['getAllAdjacentSuggestions']();_0x175a7a['view']['descriptionParts']=_0x13ffe3['descriptionFactory']['getDescriptions'](_0x5a98bb);}['destroy'](){for(const _0x2d613c of this['_suggestionToController']['keys']())this['_destroyController'](_0x2d613c);for(const _0x53c845 of this['_annotationViews']['values']())_0x53c845['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x22c513){return'model'in _0x22c513;}class Ne extends _0x4f24f5{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x2d0bcf){this['editor']['plugins']['get'](d)['adapter']=_0x2d0bcf;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x1ba8d1){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x1ba8d1);}['getSuggestions']({skipNotAttached:_0x2476f1=!0x1,toJSON:_0xd23e0d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x2476f1,'toJSON':_0xd23e0d});}['getSuggestion'](_0x15710e){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x15710e);}}const p=['Pagination'];class re extends _0x4f24f5{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3c9225=this['editor'];if(_0x3c9225['config']['define']('trackChangesData.editorCreator',_0x59b480=>{const _0x3cf4ed=_0x3c9225['model']['document']['getRootNames']()['reduce']((_0x159147,_0x284d55)=>(_0x159147[_0x284d55]='',_0x159147),{});return _0x3c9225['constructor']['create'](_0x3cf4ed,_0x59b480);}),'function'!=typeof _0x3c9225['config']['get']('trackChangesData')['editorCreator'])throw new _0x4323ac('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x16f230){return P(this['editor'],!0x0,_0x16f230);}['getDataWithDiscardedSuggestions'](_0x475203){return P(this['editor'],!0x1,_0x475203);}}class Fe extends _0x4f24f5{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4d9b4b){function _0x194552(_0x2c2541){return _0x2c2541['map'](_0x1dd374=>String['fromCharCode'](_0x1dd374))['join']('');}super(_0x4d9b4b),this['result']='end',_0x4d9b4b[_0x194552([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x194552([0x76,0x69,0x65,0x77])][_0x194552([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x194552([0x61,0x75,0x74,0x6f]),_0x4d9b4b[_0x194552([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x194552([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x194552([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x194552([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x194552([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 De(_0x5bb0d6){return void 0x0!==_0x5bb0d6['getRootsAttributes'];}async function P(_0x4500af,_0x4b4fb2,_0x2e578e){const _0x463da8=_0x8d035(_0x4500af,p);_0x463da8['plugins']['push'](d,Fe),_0x463da8['rootsAttributes']=De(_0x4500af)?_0x4500af['getRootsAttributes']():void 0x0;const _0x462eca=document['createDocumentFragment'](),_0x47941a=_0x4500af['config']['get']('trackChangesData')['editorCreator'],_0x212bbd=await _0x47941a(_0x463da8,()=>function(_0x2f444e){const _0x12055a=document['createElement']('div');return _0x2f444e['appendChild'](_0x12055a),_0x12055a;}(_0x462eca));!function(_0xd44a19,_0x4b1e28){const _0x3d522e=_0xd44a19['model']['document']['getRootNames']()['reduce']((_0x4481b2,_0x8bcf25)=>(_0x4481b2[_0x8bcf25]=_0xd44a19['data']['get']({'rootName':_0x8bcf25}),_0x4481b2),{}),_0x9ef93e=_0xd44a19['plugins']['get']('Users')['users']['map'](_0x361a77=>({'id':_0x361a77['id'],'name':_0x361a77['name']})),_0x4076ce=_0xd44a19['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2bf4e4=_0xd44a19['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x836bd3=_0x4b1e28['plugins']['get']('Users'),_0x137a21=_0x4b1e28['plugins']['get']('TrackChangesEditing'),_0x409bd1=_0x4b1e28['plugins']['get']('CommentsRepository');for(const _0x49743f of _0x409bd1['getCommentThreads']())_0x49743f['remove']();for(const _0x5c1932 of _0x9ef93e)_0x836bd3['getUser'](_0x5c1932['id'])||_0x836bd3['addUser'](_0x5c1932);_0x836bd3['me']||_0x836bd3['useAnonymousUser']();for(const _0x237970 of _0x2bf4e4)_0x409bd1['addCommentThread'](_0x237970);for(const _0x516257 of _0x4076ce)_0x137a21['addSuggestionData'](_0x516257);_0x4b1e28['data']['set'](_0x3d522e);}(_0x4500af,_0x212bbd),_0x212bbd['execute'](_0x4b4fb2?'acceptAllSuggestions':'discardAllSuggestions');const _0x3a46f3=De(_0x212bbd)?_0x212bbd['getFullData'](_0x2e578e):_0x212bbd['data']['get'](_0x2e578e);return await _0x212bbd['destroy'](),_0x3a46f3;}class Me extends _0x1fe705{['options'];constructor(_0x2b0de0,_0x1dc39f){super(_0x2b0de0),this['options']=_0x1dc39f,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'](_0xb3fd5e,_0xc84720){if(!this['element'])return;const _0x4b48f3=[];for(const [_0x186f99,_0x36e269]of _0xb3fd5e){const _0x40a03d=document['createElement']('div');_0x40a03d['setAttribute']('data-ck-root-name',_0x186f99),_0x40a03d['className']=_0x36e269['classes']+'\x20ck-track-changes-preview__root-container',_0x40a03d['innerHTML']=_0x36e269['content'],_0x4b48f3['push'](_0x40a03d);}_0xc84720(this['element'],_0x4b48f3),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x23b7b0{constructor(_0x15776d){super(_0x15776d),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0xa86090=this['editor'],_0x488909=_0xa86090['locale'],_0x147eb5=_0xa86090['plugins']['get']('Dialog');let _0x1cbffd;const _0x3f0569=function(_0x57a01a){const _0x346a49={};if('editables'in _0x57a01a['ui']['view']){for(const [_0x3ddff1,_0x1958eb]of Object['entries'](_0x57a01a['ui']['view']['editables']))_0x346a49[_0x3ddff1]=_0x1958eb['element'];}else _0x346a49[_0x57a01a['model']['document']['getRootNames']()[0x0]]=_0x57a01a['ui']['view']['editable']['element'];return _0x346a49;}(_0xa86090),_0x6822cd=function(_0x3b9a02){let _0x1c5634=0x0;for(const _0x46178e of Object['values'](_0x3b9a02))_0x1c5634=Math['max'](_0x1c5634,_0x46178e['getBoundingClientRect']()['width']);let _0x5459c4=0x0;for(const _0x27c755 of Object['values'](_0x3b9a02))_0x5459c4+=_0x27c755['getBoundingClientRect']()['height'];const _0x2ff861=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0xa7f1a9=Math['min'](_0x5459c4,_0x2ff861);return{'width':_0x1c5634,'height':_0xa7f1a9};}(_0x3f0569);_0x147eb5['show']({'id':'finalContentPreview','title':o(_0x488909,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x488909,{'dialogRects':_0x6822cd}),'onHide':()=>{_0x1cbffd['detachFromDom']();},'onShow':()=>{_0xa86090['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x14f428=>{const _0x189236=this['_standarizeRootsData'](_0x14f428,_0xa86090,_0x3f0569);_0x147eb5['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x189236,_0xa86090['config']['get']('trackChanges.preview.renderFunction'));}),_0x1cbffd=new _0x10fa19(_0x488909,[_0x147eb5['view']]),_0x1cbffd['attachToDom'](),_0x1cbffd['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0xa86090['once']('destroy',()=>{_0x1cbffd['detachFromDom']();});const _0x1aab95=_0x147eb5['view']['headerView']['class'];_0x147eb5['view']['headerView']['class']=_0x1aab95?_0x1aab95+'\x20ck-reset_all':'ck-reset_all',_0x147eb5['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x147eb5['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x294452=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x39cda6=_0x294452['previewMode'],_0xf65167={};if('$labels'===_0x39cda6){for(const _0x148035 of _0x294452['getMergeFieldsIds']())_0xf65167[_0x148035]=_0x294452['getLabel'](_0x148035)||_0x148035;}else{const _0x193599='$defaultValues'===_0x39cda6?_0x294452['getDefaultValues']():_0x294452['getDataSetValues'](_0x39cda6,!0x0);for(const _0x2aece9 of Object['entries'](_0x193599)){const [_0x33194f,_0x395dcb]=_0x2aece9;_0xf65167[_0x33194f]=null!==_0x395dcb?_0x395dcb:_0x294452['getLabel'](_0x33194f)||_0x33194f;}}return{'mergeFieldsData':_0xf65167};}['_standarizeRootsData'](_0x42a46d,_0x10d922,_0x4d6a96){let _0x1e2103;if('string'==typeof _0x42a46d){const _0x5afe6f=_0x10d922['model']['document']['getRootNames']()[0x0];_0x1e2103={[_0x5afe6f]:_0x42a46d};}else _0x1e2103=_0x42a46d;const _0x2f53d8=this['_fixMediaEmbeds'](_0x1e2103,_0x10d922),_0x508298=function(_0x36aa5d,_0x594971){for(const [_0x556947,_0x1ad154]of _0x36aa5d)_0x1ad154['classes']=_0x594971[_0x556947]['classList']['value']['replace']('ck-focused','');return _0x36aa5d;}(this['_sortRoots'](_0x10d922)['reduce']((_0x4388de,_0x11daa9)=>(_0x4388de['push']([_0x11daa9,{'content':_0x2f53d8[_0x11daa9],'classes':''}]),_0x4388de),[]),_0x4d6a96);return _0x508298;}['_fixMediaEmbeds'](_0x13ebcf,_0xcbbf9e){if(!_0xcbbf9e['plugins']['has']('MediaEmbedEditing'))return _0x13ebcf;const _0x57a529=_0xcbbf9e['plugins']['get']('MediaEmbedEditing');for(const [_0x3d0ab1,_0x3872c8]of Object['entries'](_0x13ebcf)){const _0x4a1230=document['createElement']('div');_0x4a1230['innerHTML']=_0x3872c8,(_0x4a1230['querySelectorAll']('figure.media')['forEach'](_0x18a31a=>{const _0x5191c5=_0x18a31a['querySelector']('oembed');if(_0x5191c5){const _0x12684e=_0x5191c5['getAttribute']('url');if(_0x12684e){const _0x567a90=_0x57a529['registry']['getMediaViewElement'](new _0x1d6acd(_0xcbbf9e['editing']['view']['document']),_0x12684e,{'elementName':'','renderForEditingView':!0x0}),_0x5ecd7d=document['createElement']('div');_0x5ecd7d['classList']['add']('ck-media__wrapper'),_0x567a90['render'](_0x5ecd7d,_0xcbbf9e['editing']['view']['domConverter']),_0x5191c5['replaceWith'](_0x5ecd7d);}}}),_0x13ebcf[_0x3d0ab1]=_0x4a1230['innerHTML']);}return _0x13ebcf;}['_sortRoots'](_0x409231){if(!function(_0x12cbbb){return void 0x0!==_0x12cbbb['getRootsAttributes'];}(_0x409231))return _0x409231['model']['document']['getRootNames']();const _0x18b48f=[],_0x103652=new Map();for(const _0x80c5b4 of _0x409231['model']['document']['getRootNames']()){const _0x4e9e10=_0x409231['editing']['view']['getDomRoot'](_0x80c5b4)['getClientRects']()['item'](0x0);_0x18b48f['push'](_0x80c5b4),_0x103652['set'](_0x80c5b4,_0x4e9e10);}return _0x18b48f['sort']((_0x5b9b7a,_0x598019)=>{const _0x4d01dd=_0x103652['get'](_0x5b9b7a),_0x2ce596=_0x103652['get'](_0x598019);return _0x4d01dd['y']-_0x2ce596['y']||_0x4d01dd['x']-_0x2ce596['x'];}),_0x18b48f;}}class Ue extends _0x4f24f5{static get['requires'](){return[re,_0x5d6c97];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5dacb5){super(_0x5dacb5),_0x5dacb5['commands']['add']('previewFinalContent',new te(this['editor'])),_0x5dacb5['config']['define']('trackChanges.preview.renderFunction',(_0x5af0b8,_0x59c944)=>{for(const _0x16f7be of _0x59c944)_0x5af0b8['appendChild'](_0x16f7be);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x1c4f35,Plugin as _0x3a4f29,PendingActions as _0x5e0070}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x21039f,ObservableMixin as _0x5a1462,uid as _0x4e95d3,priorities as _0x3bc3f8,insertToPriorityArray as _0x5ead23,logWarning as _0x4c4c7d,getEnvKeystrokeText as _0x4079b0,FocusTracker as _0x10bd90,KeystrokeHandler as _0x5b2bd3,Collection as _0x23da04}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x487776,IconCancel as _0x30b730,IconTrackChanges as _0xbc336}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x54412a,View as _0x233468,ViewCollection as _0xf60e0a,FocusCycler as _0x116081,UIModel as _0x2d29b1,createDropdown as _0x927a40,SplitButtonView as _0x25cc91,addListToDropdown as _0x1a6ba1,MenuBarMenuView as _0x57e6af,MenuBarMenuListView as _0xd793d7,ListSeparatorView as _0x21d5f4,MenuBarMenuListItemView as _0x4d90a1,MenuBarMenuListItemButtonView as _0x413a6b,BodyCollection as _0xc81731,Dialog as _0x464e9d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{SuggestionsConversion as _0x3f5ffa,Users as _0x57f159,DocumentCompare as _0x4867a3,fixElementSuggestionRange as _0x124bae,hashObject as _0x5562e0,splitSuggestionMarkerName as _0x4aeac5,surroundingMarkersDetector as _0x57019d,FOCUS_ANNOTATION_KEYSTROKE as _0x340c32,AriaDescriptionView as _0x153de3,setupThreadKeyboardNavigation as _0x9d51d1,trimHtml as _0xe02527,UserView as _0x533ddd,LateFocusButtonView as _0x2b150b,getDateTimeFormatter as _0x3c4717,getAllMarkersDomElementsSorted as _0xcb0081,sanitizeEditorConfig as _0x4331ee}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x52ed20,ModelLiveRange as _0x1d3f47,ModelLivePosition as _0xab7900,ViewDowncastWriter as _0x11f511}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x264ed5,set as _0x331732,isEqual as _0x154f33,unset as _0x4e9f63,omit as Jt}from'es-toolkit/compat';import{Delete as _0x1e0e14,Input as _0x390b38}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x19af1b}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x14d766}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x1c4f35{['_enabledCommands'];constructor(_0x1b962a,_0x2e74c5){super(_0x1b962a),this['_enabledCommands']=_0x2e74c5,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 _0x3a6545 of this['editor']['commands']['commands']())_0x3a6545['affectsData']&&!this['_enabledCommands']['has'](_0x3a6545)&&_0x3a6545['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x478cc7 of this['editor']['commands']['commands']())_0x478cc7['affectsData']&&!this['_enabledCommands']['has'](_0x478cc7)&&_0x478cc7['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x1c4f35{['_suggestions'];constructor(_0x14d63c,_0x3b5dd3){super(_0x14d63c),this['_suggestions']=_0x3b5dd3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x442253){const _0xecd71c=this['_suggestions']['get'](_0x442253);if(!_0xecd71c)throw new _0x21039f('track-changes-accept-suggestion-not-found',this);const _0x2d946e=_0xecd71c['getRanges']();this['editor']['model']['canEditAt'](_0x2d946e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xecd71c);}}class x extends _0x1c4f35{['_suggestions'];constructor(_0x400b87,_0x202606){super(_0x400b87),this['_suggestions']=_0x202606,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x23c3b6){const _0x20769c=this['_suggestions']['get'](_0x23c3b6);if(!_0x20769c)throw new _0x21039f('track-changes-discard-suggestion-not-found',this);const _0x3f2e77=_0x20769c['getRanges']();this['editor']['model']['canEditAt'](_0x3f2e77)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x20769c);}}function ls(_0x3a5034,_0xba380a){let _0x3581cd='';return _0x3581cd+=_0x3a5034['split']('*')['map']((_0x21fd25,_0x5f05e6)=>_0x5f05e6%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+cn(_0x21fd25)+'</span>':cn(_0x21fd25))['join'](''),_0xba380a&&(_0x3581cd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xba380a['value']+'\x22\x20title=\x22'+_0xba380a['title']+'\x22></span>'),_0x3581cd;}function cn(_0x43715b){const _0x1429f5=document['createElement']('span');return _0x1429f5['innerText']=_0x43715b,_0x1429f5['innerHTML'];}function ts(_0x430f74){return _0x430f74['sort']((_0x4c3893,_0x179cee)=>'attribute'===_0x4c3893['type']&&'attribute'!==_0x179cee['type']?-0x1:'attribute'!==_0x4c3893['type']&&'attribute'===_0x179cee['type']?0x1:'deletion'==_0x4c3893['type']&&'deletion'!=_0x179cee['type']?-0x1:'deletion'!=_0x4c3893['type']&&'deletion'==_0x179cee['type']?0x1:0x0);}function to(_0x885dbf,_0x3d9df9){let _0x113504,_0x57e4ba=0x0;const _0x30f556=[],_0x57f809=_0x3d9df9['schema'];for(;_0x57e4ba<_0x885dbf['length'];){const _0x443c3c=_0x885dbf[_0x57e4ba],_0x231d50=_0x885dbf[_0x57e4ba+0x1];_0x113504||(_0x113504=_0x3d9df9['createPositionBefore'](_0x443c3c)),un(_0x3d9df9,_0x443c3c,_0x231d50)||(_0x30f556['push'](_0x3d9df9['createRange'](_0x113504,_0x57f809['isObject'](_0x443c3c)?_0x3d9df9['createPositionAfter'](_0x443c3c):_0x3d9df9['createPositionAt'](_0x443c3c,'end'))),_0x113504=null),_0x57e4ba++;}return _0x30f556;}function un(_0x3223c6,_0x559ff3,_0x55ddbd){if(!_0x55ddbd)return!0x1;const _0x51803d=_0x3223c6['createPositionAfter'](_0x559ff3),_0x4bdc65=_0x3223c6['createPositionBefore'](_0x55ddbd);return _0x51803d['isTouching'](_0x4bdc65);}function rs(_0x4c2e24,_0x39688e,_0x3e4ce1){for(;_0x3e4ce1['length'];){const _0x59542a=_0x3e4ce1['splice'](0x0,0x64);_0x4c2e24['change'](()=>{for(const _0x2e8761 of _0x59542a)_0x2e8761['isInContent']&&_0x39688e['execute'](_0x2e8761['id']);});}}class M extends _0x1c4f35{['_command'];['_suggestions'];constructor(_0x4b8efa,_0x13b37d,_0x2a22c3){super(_0x4b8efa),this['_command']=_0x13b37d,this['_suggestions']=_0x2a22c3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xc811a1=Array['from'](this['_suggestions']['values']())['some'](_0x4a52a8=>_0x4a52a8['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xc811a1;}['execute'](){const _0x369d33=ts(Array['from'](this['_suggestions']['values']()));for(const _0x2249cb of _0x369d33){const _0x2d3799=_0x2249cb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d3799))return;}rs(this['editor']['model'],this['_command'],_0x369d33);}}class R extends _0x1c4f35{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x549a82,_0x4a3a29,_0x2c480a){super(_0x549a82),this['_command']=_0x4a3a29,this['_suggestions']=_0x2c480a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x37bd6b=this['editor']['model']['document']['selection'],_0x448a0a=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x308f0d,_0x1de0d8){const _0x32fb5d=Array['from'](_0x308f0d['getRanges']()),_0x3d543b=new Set();for(const _0x235a8d of _0x1de0d8)if(_0x235a8d['isInContent']){for(const _0x4e31bc of _0x32fb5d)for(const _0x5140cf of _0x235a8d['getRanges']())(_0x4e31bc['isIntersecting'](_0x5140cf)||_0x308f0d['isCollapsed']&&!_0x235a8d['isMultiRange']&&_0x235a8d['next']&&_0x5140cf['end']['isTouching'](_0x4e31bc['start']))&&_0x3d543b['add'](_0x235a8d);}return _0x3d543b;}(_0x37bd6b,_0x448a0a),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x50f477=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3d617c of _0x50f477){const _0x1e79a4=_0x3d617c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e79a4))return;}rs(this['editor']['model'],this['_command'],_0x50f477);}}class T extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x5a1462(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3b2261,_0x51baaa){super(),this['id']=_0x51baaa['id'],this['type']=_0x51baaa['type'],this['subType']=_0x51baaa['subType']||null,this['author']=_0x51baaa['author'],this['creator']=_0x51baaa['creator']||_0x51baaa['author'],this['isExternal']=Boolean(_0x51baaa['attributes']&&_0x51baaa['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x51baaa['originalSuggestionId']||null,this['_model']=_0x3b2261,this['_onAccept']=_0x51baaa['onAccept'],this['_onDiscard']=_0x51baaa['onDiscard'],this['_onAttributesChange']=_0x51baaa['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x51baaa['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 _0x5d958d=this;for(;_0x5d958d['previous'];)_0x5d958d=_0x5d958d['previous'];return _0x5d958d;}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'](_0x2f3ce1){this['_markerNames']['add'](_0x2f3ce1);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1b8e76=>this['_model']['markers']['get'](_0x1b8e76))['filter'](_0x5a5e08=>_0x5a5e08);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x14d86c=>{for(const _0x31aa30 of this['getMarkers']())_0x14d86c['removeMarker'](_0x31aa30);}),this['_markerNames']['clear']();}['removeMarker'](_0x76cade){this['_model']['change'](_0x4d9937=>{_0x4d9937['removeMarker'](_0x76cade);}),this['_markerNames']['delete'](_0x76cade);}['addRange'](_0xfd68fb){const _0x4344ba='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x4344ba),this['_model']['change'](_0x1c5205=>{_0x1c5205['addMarker'](_0x4344ba,{'range':_0xfd68fb,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1ac60b){for(const _0x5733e3 of this['getRanges']())if(_0x5733e3['isIntersecting'](_0x1ac60b))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x280f9a=>_0x280f9a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4396fe,_0x88049c)=>[..._0x4396fe,..._0x88049c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x8e40cb=this['getRanges']();if(0x1!=_0x8e40cb['length'])return null;const _0x208388=_0x8e40cb[0x0],_0x147066=_0x208388['start']['nodeAfter'],_0x500fa8=_0x208388['end']['nodeBefore'];return _0x147066 instanceof _0x52ed20?_0x147066!=_0x500fa8?null:_0x147066: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 _0x2ec9a2=[];let _0x1c0809=this['head'];for(;_0x1c0809;)_0x2ec9a2['push'](_0x1c0809),_0x1c0809=_0x1c0809['next'];return _0x2ec9a2;}['setAttribute'](_0x2f2f75,_0x4a74a2){const _0x44448a=_0x264ed5(this['attributes']);_0x331732(_0x44448a,_0x2f2f75,_0x4a74a2),_0x154f33(_0x44448a,this['attributes'])||(this['attributes']=_0x44448a,this['_onAttributesChange'](_0x44448a));}['removeAttribute'](_0x54911b){const _0x37adb7=_0x264ed5(this['attributes']);_0x4e9f63(_0x37adb7,_0x54911b),_0x154f33(_0x37adb7,this['attributes'])||(this['attributes']=_0x37adb7,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 _0x4e95d3()['substr'](0x1,0x5);}}function o(_0x945ce4,_0x1ea8f5,_0x20cbb7){const _0x3a02d2=_0x945ce4['t'],t=_0x945ce4['t'];switch(_0x1ea8f5){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',_0x20cbb7);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x20cbb7);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x20cbb7);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x20cbb7);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x20cbb7);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',_0x20cbb7);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x20cbb7);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',_0x20cbb7);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x20cbb7);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x20cbb7);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x20cbb7);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x20cbb7);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x20cbb7);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x20cbb7);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x20cbb7);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x20cbb7);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x20cbb7);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x20cbb7);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x20cbb7);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x20cbb7);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x20cbb7);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x20cbb7);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x20cbb7);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x20cbb7);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x20cbb7);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'},_0x20cbb7);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x20cbb7);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x20cbb7);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x20cbb7);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x20cbb7);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x20cbb7);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x20cbb7);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x20cbb7);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'},_0x20cbb7);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x20cbb7);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x20cbb7);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x20cbb7);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x20cbb7);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x20cbb7);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x20cbb7);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'},_0x20cbb7);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x20cbb7);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x20cbb7);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'},_0x20cbb7);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x20cbb7);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'},_0x20cbb7);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x20cbb7);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x20cbb7);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x20cbb7);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x20cbb7);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x20cbb7);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'},_0x20cbb7);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x20cbb7);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 _0x3a02d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x20cbb7);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x3a02d2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x20cbb7);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x20cbb7);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'},_0x20cbb7);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'},_0x20cbb7);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'},_0x20cbb7);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1ea8f5;}}class E{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x46d678,_0x1e9940){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x46d678,this['_locale']=_0x1e9940;}['getDescriptions'](_0x32a893){const _0x200754=[],_0x3b6b8d=new Set(),_0x3610e9=new Set();for(let _0x12afe5=0x0;_0x12afe5<_0x32a893['length'];_0x12afe5++){const _0x4aa413=_0x32a893[_0x12afe5];if(!_0x4aa413['isInContent'])continue;const _0x5ad79f=this['_handleCustomCallbackDescription'](_0x4aa413);if(_0x5ad79f){if(null!=_0x4aa413['subType']){if(_0x3b6b8d['has'](_0x4aa413['subType']))continue;_0x3b6b8d['add'](_0x4aa413['subType']);}_0x200754['push'](_0x5ad79f);}else{if('attribute'==_0x4aa413['type']){const _0x180e52=_0x4aa413['data']['key'];if(_0x3610e9['has'](_0x180e52))continue;_0x3610e9['add'](_0x4aa413['data']['key']),_0x180e52==m?this['_handleRenameSuggestionDescription'](_0x200754,_0x4aa413):this['_handleAttributeSuggestionDescription'](_0x200754,_0x4aa413);continue;}'insertion'!=_0x4aa413['type']&&'deletion'!=_0x4aa413['type']||this['_handleInsertRemoveSuggestionDescription'](_0x200754,_0x4aa413,_0x32a893[_0x12afe5+0x1]);}}return this['_resolveDescriptionItems'](_0x200754);}['registerDescriptionCallback'](_0x1869ae){this['_customCallbacks']['push'](_0x1869ae);}['registerElementLabel'](_0x5c63a1,_0x1c3efb,_0x53e101=_0x3bc3f8['normal']){'function'==typeof _0x5c63a1?_0x5ead23(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5c63a1,'label':_0x1c3efb,'priority':_0x53e101}):this['_itemLabels']['set'](_0x5c63a1,_0x1c3efb);}['registerAttributeLabel'](_0x5aadd8,_0x2204e1){this['_attributeLabels']['set'](_0x5aadd8,_0x2204e1);}['getItemLabel'](_0x346527,_0x2e8729=0x1){let _0x403201;for(const _0x32debb of this['_itemLabelsCallbacks'])if(_0x32debb['matchingCallback'](_0x346527)){_0x403201=_0x32debb['label'];break;}return _0x403201||(_0x403201=this['_itemLabels']['get'](_0x346527['name'])),_0x403201?_0x403201(_0x2e8729):0x1!==_0x2e8729?_0x2e8729+'\x20'+_0x346527['name']+'s':''+_0x346527['name'];}['_addDescriptionItems'](_0x4f2c8d,_0x50a733){const _0x3562e9=_0x50a733['getFirstRange']()['getWalker'](),_0x55f806='insertion'==_0x50a733['type']?'add':'remove';for(const _0x142d61 of _0x3562e9){const _0x26a1ef=_0x142d61['item'],_0x1642cf=_0x4f2c8d[_0x4f2c8d['length']-0x1];if(_0x26a1ef['is']('$textProxy'))_0x1642cf&&_0x1642cf['type']['indexOf']('Container')>-0x1&&_0x4f2c8d['pop'](),_0x1642cf&&'text'==_0x1642cf['type']?_0x1642cf[_0x55f806]+=_0x26a1ef['data']:_0x4f2c8d['push']({'type':'text','add':'add'==_0x55f806?_0x26a1ef['data']:'','remove':'remove'==_0x55f806?_0x26a1ef['data']:''});else{if(this['_schema']['isObject'](_0x26a1ef)){const _0x8d0ca6=_0x26a1ef;if(_0x1642cf&&_0x1642cf['type']['indexOf']('Container')>-0x1&&_0x4f2c8d['pop'](),'elementEnd'==_0x142d61['type'])continue;_0x1642cf&&_0x1642cf['type']==_0x55f806+'Object'&&_0x1642cf['element']['name']==_0x8d0ca6['name']?_0x1642cf['quantity']++:_0x4f2c8d['push']({'type':_0x55f806+'Object','element':_0x8d0ca6,'quantity':0x1}),_0x3562e9['skip'](_0x5da7c5=>!('elementEnd'==_0x5da7c5['type']&&_0x5da7c5['item']==_0x26a1ef));}else{if(this['_schema']['checkChild'](_0x26a1ef,'$text')||_0x26a1ef['is']('element','softBreak')){const _0x3e3a94=_0x26a1ef;if('add'==_0x55f806&&'elementStart'==_0x142d61['type']||'remove'==_0x55f806&&'elementEnd'==_0x142d61['type'])continue;if(_0x1642cf&&-0x1==_0x1642cf['type']['indexOf']('Container')){'text'==_0x1642cf['type']&&(_0x1642cf[_0x55f806]+='\x0a');continue;}let _0x5b6d61;if(_0x5b6d61='add'==_0x55f806?_0x3e3a94['nextSibling']&&!this['_schema']['isObject'](_0x3e3a94['nextSibling'])?_0x3e3a94['nextSibling']:null:_0x3e3a94['previousSibling']&&!this['_schema']['isObject'](_0x3e3a94['previousSibling'])?_0x3e3a94['previousSibling']:null,_0x3e3a94['isEmpty']||_0x5b6d61&&_0x5b6d61['isEmpty']){const _0x40dcf5=_0x5b6d61&&_0x5b6d61['isEmpty']?_0x5b6d61:_0x3e3a94;_0x1642cf&&_0x1642cf['type']==_0x55f806+'EmptyContainer'&&_0x1642cf['element']['name']==_0x40dcf5['name']?_0x1642cf['quantity']++:_0x4f2c8d['push']({'type':_0x55f806+'EmptyContainer','element':_0x40dcf5,'quantity':0x1});}else _0x4f2c8d['push']({'type':_0x55f806+'Container','element':_0x3e3a94});}}}}}['_resolveDescriptionItems'](_0x130e56){const _0x90a9f3=this['_locale'],_0x2adf94=[],_0x490dbb=[],_0x1cc0ff=[];for(const _0x323a3b of _0x130e56)switch(_0x323a3b['type']){case'text':if(_0x323a3b['add']=_0x323a3b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x323a3b['remove']=_0x323a3b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x323a3b['add']&&''!=_0x323a3b['remove']){_0x2adf94['push']({'type':'replace','content':o(_0x90a9f3,'REPLACE_TEXT',['\x22'+_0x323a3b['remove']+'\x22','\x22'+_0x323a3b['add']+'\x22'])});continue;}if(null!=_0x323a3b['add']['match'](/^ +$/)){_0x2adf94['push']({'type':'insertion','content':o(_0x90a9f3,'*Insert:*\x20%0',o(_0x90a9f3,'ELEMENT_SPACE',_0x323a3b['add']['length']))});continue;}if(null!=_0x323a3b['remove']['match'](/^ +$/)){_0x2adf94['push']({'type':'deletion','content':o(_0x90a9f3,'*Remove:*\x20%0',o(_0x90a9f3,'ELEMENT_SPACE',_0x323a3b['remove']['length']))});continue;}if(''!=_0x323a3b['add']){_0x2adf94['push']({'type':'insertion','content':o(_0x90a9f3,'*Insert:*\x20%0','\x22'+_0x323a3b['add']+'\x22')});continue;}_0x2adf94['push']({'type':'deletion','content':o(_0x90a9f3,'*Remove:*\x20%0','\x22'+_0x323a3b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2adf94['push']({'type':'insertion','content':o(_0x90a9f3,'*Insert:*\x20%0',this['getItemLabel'](_0x323a3b['element'],_0x323a3b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2adf94['push']({'type':'deletion','content':o(_0x90a9f3,'*Remove:*\x20%0',this['getItemLabel'](_0x323a3b['element'],_0x323a3b['quantity']))});continue;case'addContainer':_0x2adf94['push']({'type':'insertion','content':o(_0x90a9f3,'*Split:*\x20%0',this['getItemLabel'](_0x323a3b['element'],_0x323a3b['quantity']))});continue;case'removeContainer':_0x2adf94['push']({'type':'deletion','content':o(_0x90a9f3,'*Merge:*\x20%0',this['getItemLabel'](_0x323a3b['element'],_0x323a3b['quantity']))});continue;case'addFormat':_0x490dbb['push'](_0x323a3b['key']);continue;case'removeFormat':_0x1cc0ff['push'](_0x323a3b['key']);continue;default:_0x2adf94['push'](_0x323a3b);}if(_0x490dbb['length']){const _0x2a28bd=_0x490dbb['map'](_0x327358=>this['_attributeLabels']['has'](_0x327358)?this['_attributeLabels']['get'](_0x327358):_0x327358)['join'](',\x20');_0x2adf94['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2a28bd)});}if(_0x1cc0ff['length']){const _0x292789=_0x1cc0ff['map'](_0x2832eb=>this['_attributeLabels']['has'](_0x2832eb)?this['_attributeLabels']['get'](_0x2832eb):_0x2832eb)['join'](',\x20');_0x2adf94['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x292789)});}return _0x2adf94;}['_handleCustomCallbackDescription'](_0x46f0b8){for(const _0x45464e of this['_customCallbacks']){const _0x51412a=_0x45464e(_0x46f0b8);if(_0x51412a&&'type'in _0x51412a)return _0x51412a;}}['_handleAttributeSuggestionDescription'](_0x4ad1c4,_0x59402f){const _0x53a5d2=_0x59402f['data'],_0x396968=void 0x0===_0x53a5d2['newValue']?'removeFormat':'addFormat';_0x4ad1c4['push']({'type':_0x396968,'key':_0x53a5d2['key']});}['_handleRenameSuggestionDescription'](_0x309ed1,_0x3570c6){_0x309ed1['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3570c6['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xa82afd,_0x3e503a,_0xaf49e9){if(this['_addDescriptionItems'](_0xa82afd,_0x3e503a),_0xaf49e9&&_0xaf49e9['getFirstRange']()&&!_0x3e503a['getFirstRange']()['end']['isEqual'](_0xaf49e9['getFirstRange']()['start'])){const _0x9d8170=_0xa82afd[_0xa82afd['length']-0x1],_0x2e4443='insertion'==_0x3e503a['type']?'add':'remove';_0x9d8170&&'text'==_0x9d8170['type']&&(_0x9d8170[_0x2e4443]+='\x0a');}}}class U extends _0x3a4f29{['afterInit'](){const _0x311ba6=this['editor'],_0x1b195e=_0x311ba6['plugins']['get']('TrackChangesEditing');_0x311ba6['commands']['get']('showAIAssistant')&&_0x1b195e['enableCommand']('showAIAssistant');}}class V extends _0x3a4f29{['afterInit'](){const _0xa502a8=this['editor'],_0x1a9bdf=_0xa502a8['plugins']['get']('TrackChangesEditing');_0xa502a8['commands']['get']('toggleAi')&&_0x1a9bdf['enableCommand']('toggleAi');}}class F extends _0x3a4f29{['afterInit'](){const _0xc0caf8=this['editor'],_0x57285b=_0xc0caf8['plugins']['get']('TrackChangesEditing');_0xc0caf8['commands']['get']('aiQuickAction')&&_0x57285b['enableCommand']('aiQuickAction');}}class G extends _0x3a4f29{['afterInit'](){const _0x33ba31=this['editor'],_0x3fbce3=_0x33ba31['locale'];if(!_0x33ba31['plugins']['has']('AlignmentEditing'))return;const _0x3f1c8a=_0x33ba31['plugins']['get']('TrackChangesEditing');_0x3f1c8a['enableDefaultAttributesIntegration']('alignment'),_0x3f1c8a['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3fbce3,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26eebf=this['editor'],_0x2414ef=_0x26eebf['locale'];_0x26eebf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15cd25=>{if('formatBlock'!=_0x15cd25['type'])return;const {data:_0x3797ba}=_0x15cd25;if(_0x3797ba&&'alignment'==_0x3797ba['commandName']){const _0x5d73b4=_0x3797ba['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2414ef,'*Format:*\x20%0',function(_0x53e42f){switch(_0x53e42f){case'left':return o(_0x2414ef,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2414ef,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2414ef,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2414ef,'FORMAT_JUSTIFY_TEXT');}}(_0x5d73b4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class L extends _0x3a4f29{['afterInit'](){const _0x1a969c=this['editor'],_0x37faf3=_0x1a969c['plugins']['get']('TrackChangesEditing'),_0x188120=_0x1a969c['locale'];for(const _0x3f9d15 of ti){if(!_0x1a969c['plugins']['has'](_0x3f9d15))continue;const _0xa9c3ea=_0x3f9d15['slice'](0x0,-0x7)['toLowerCase'](),_0x29053c='FORMAT_'+_0xa9c3ea['toUpperCase']();_0x37faf3['enableDefaultAttributesIntegration'](_0xa9c3ea),_0x37faf3['descriptionFactory']['registerAttributeLabel'](_0xa9c3ea,o(_0x188120,_0x29053c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf390cb=this['editor'],_0x5750b6=_0xf390cb['locale'],_0x5ccfdb=_0xf390cb['plugins']['get']('TrackChangesEditing');function _0x11b905(_0x47a0aa,_0x2fe610){_0x5ccfdb['descriptionFactory']['registerDescriptionCallback'](_0x4e5bc2=>{if('formatInline'!=_0x4e5bc2['type'])return;const {data:_0x3096ce}=_0x4e5bc2;return _0x3096ce&&_0x3096ce['commandName']===_0x47a0aa?_0x3096ce['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5750b6,'*Format:*\x20%0',_0x2fe610)}:{'type':'format','content':o(_0x5750b6,'*Remove\x20format:*\x20%0',_0x2fe610)}:void 0x0;});}_0x11b905('bold',o(_0x5750b6,'FORMAT_BOLD')),_0x11b905('italic',o(_0x5750b6,'FORMAT_ITALIC')),_0x11b905('underline',o(_0x5750b6,'FORMAT_UNDERLINE')),_0x11b905('code',o(_0x5750b6,'FORMAT_CODE')),_0x11b905('strikethrough',o(_0x5750b6,'FORMAT_STRIKETHROUGH')),_0x11b905('subscript',o(_0x5750b6,'FORMAT_SUBSCRIPT')),_0x11b905('superscript',o(_0x5750b6,'FORMAT_SUPERSCRIPT'));}}class J extends _0x3a4f29{['afterInit'](){const _0x3bb8e9=this['editor'],_0x342a0a=_0x3bb8e9['locale'];if(!_0x3bb8e9['plugins']['has']('BlockQuoteEditing'))return;const _0x521874=_0x3bb8e9['plugins']['get']('TrackChangesEditing'),_0x3547b1=this['editor']['commands']['get']('blockQuote');_0x521874['enableCommand']('blockQuote',(_0x5cdbaa,_0x26f2d7={})=>{const _0x347d06=this['editor']['model']['document']['selection'],_0x390a17=_0x26f2d7&&void 0x0!==_0x26f2d7['forceValue']?_0x26f2d7['forceValue']:!_0x3547b1['value'];let _0x4c5118=[];if(_0x390a17){const _0xd5100a=Array['from'](_0x347d06['getSelectedBlocks']())['filter'](_0xbb04c3=>oo(_0xbb04c3)||function(_0x46e481,_0x1c084a){const _0x5d09a8=_0x1c084a['checkChild'](_0x46e481['parent'],'blockQuote'),_0xc4514f=_0x1c084a['checkChild'](['$root','blockQuote'],_0x46e481);return _0x5d09a8&&_0xc4514f;}(_0xbb04c3,this['editor']['model']['schema']));_0x4c5118=to(_0xd5100a,_0x3bb8e9['model']);}else{const _0x4e1df4=Array['from'](_0x347d06['getSelectedBlocks']())['filter'](_0x77bc29=>oo(_0x77bc29));_0x4c5118=to(_0x4e1df4,_0x3bb8e9['model']);}_0x3bb8e9['model']['change'](()=>{for(const _0x259b0b of _0x4c5118)_0x521874['markBlockFormat'](_0x259b0b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x390a17}]});});}),_0x521874['descriptionFactory']['registerDescriptionCallback'](_0x1f5e55=>{const {data:_0x185395}=_0x1f5e55;if(_0x185395&&'blockQuote'==_0x185395['commandName']){const _0x5f4a83=o(_0x342a0a,'ELEMENT_BLOCK_QUOTE');return _0x185395['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x342a0a,'*Set\x20format:*\x20%0',_0x5f4a83)}:{'type':'format','content':o(_0x342a0a,'*Remove\x20format:*\x20%0',_0x5f4a83)};}});}}function oo(_0x32567f){return'blockQuote'==_0x32567f['parent']['name'];}class q extends _0x3a4f29{['afterInit'](){const _0x403258=this['editor'],_0xf73991=_0x403258['locale'],_0x34e4ce=_0x403258['plugins']['get']('TrackChangesEditing');_0x403258['plugins']['has']('BookmarkEditing')&&(_0x34e4ce['enableCommand']('insertBookmark'),_0x34e4ce['enableDefaultAttributesIntegration']('updateBookmark'),_0x34e4ce['descriptionFactory']['registerDescriptionCallback'](_0x4af26c=>{if('insertion'!=_0x4af26c['type']&&'deletion'!=_0x4af26c['type']&&'attribute'!=_0x4af26c['type'])return;const _0xe82b3d=_0x4af26c['getContainedElement']();if(null==_0xe82b3d)return;if(!_0xe82b3d['is']('element','bookmark'))return;const _0x3f11f6=_0xe82b3d['getAttribute']('bookmarkId');if('insertion'==_0x4af26c['type'])return{'type':'insertion','content':o(_0xf73991,'*Insert:*\x20%0','\x22'+_0x3f11f6+'\x22\x20'+o(_0xf73991,'ELEMENT_BOOKMARK'))};if('deletion'==_0x4af26c['type'])return{'type':'deletion','content':o(_0xf73991,'*Remove:*\x20%0','\x22'+_0x3f11f6+'\x22\x20'+o(_0xf73991,'ELEMENT_BOOKMARK'))};const {data:_0x361f1f}=_0x4af26c;if(!_0x361f1f||'bookmarkId'!=_0x361f1f['key'])return;return{'type':'format','content':o(_0xf73991,'*Set\x20bookmark:*\x20%0','\x22'+_0x361f1f['newValue']+'\x22')};}));}}class z extends _0x3a4f29{['afterInit'](){const _0x1b79e2=this['editor'];_0x1b79e2['plugins']['has']('CaseChange')&&(_0x1b79e2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1b79e2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1b79e2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x3a4f29{['afterInit'](){const _0x1cf96b=this['editor'];_0x1cf96b['commands']['get']('ckbox')&&_0x1cf96b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class W extends _0x3a4f29{['afterInit'](){const _0x1cff0b=this['editor'];if(!_0x1cff0b['plugins']['has']('CodeBlock'))return;const _0x385722=_0x1cff0b['plugins']['get']('TrackChangesEditing'),_0x10d06f=_0x1cff0b['locale'],_0x5b0c36=_0x1cff0b['config']['get']('codeBlock')['languages'],_0x218c5f=_0x1cff0b['commands']['get']('codeBlock');_0x385722['enableCommand']('indentCodeBlock'),_0x385722['enableCommand']('outdentCodeBlock'),_0x385722['enableCommand']('codeBlock',(_0xf1f271,_0x35a1e3={})=>{const _0x1559ea=_0x1cff0b['model'],_0x26f8b4=_0x1cff0b['model']['document']['selection'],_0x2c01dd=_0x35a1e3&&void 0x0!==_0x35a1e3['forceValue']?_0x35a1e3['forceValue']:!_0x218c5f['value'];let _0x47bdb0;_0x35a1e3['language']||(_0x35a1e3['language']=_0x5b0c36[0x0]['language']),_0x47bdb0=_0x2c01dd?Array['from'](_0x26f8b4['getSelectedBlocks']())['filter'](_0x3b7a17=>co(_0x3b7a17)||function(_0x4d915b,_0x2b4e5c){if(_0x4d915b['is']('rootElement')||_0x2b4e5c['isLimit'](_0x4d915b))return!0x1;return _0x2b4e5c['checkChild'](_0x4d915b['parent'],'codeBlock');}(_0x3b7a17,_0x1559ea['schema'])):Array['from'](_0x26f8b4['getSelectedBlocks']())['filter'](_0xd4317=>co(_0xd4317));const _0x510433=to(_0x47bdb0,_0x1559ea);_0x1559ea['change'](()=>{for(const _0xb7440d of _0x510433)_0x385722['markBlockFormat'](_0xb7440d,{'commandName':'codeBlock','commandParams':[{..._0x35a1e3,'forceValue':_0x2c01dd}],'formatGroupId':'blockName'});});}),(_0x385722['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d7295=>o(_0x10d06f,'ELEMENT_CODE_BLOCK',_0x4d7295)),_0x385722['descriptionFactory']['registerDescriptionCallback'](_0x534c3f=>{if('formatBlock'!=_0x534c3f['type'])return;const _0x2b4386=_0x10d06f['t'],{data:_0x205180}=_0x534c3f;if(!_0x205180||'codeBlock'!=_0x205180['commandName'])return;const _0x131964=_0x205180['commandParams'][0x0]['language'],_0xfbbae5=_0x2b4386(_0x5b0c36['find'](_0x487467=>_0x487467['language']===_0x131964)['label'])['toLowerCase']();return _0x205180['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x10d06f,'*Set\x20format:*\x20%0',o(_0x10d06f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xfbbae5+')')}:{'type':'format','content':o(_0x10d06f,'*Remove\x20format:*\x20%0',o(_0x10d06f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x1b6fff){return'codeBlock'==_0x1b6fff['name'];}class H extends _0x3a4f29{['afterInit'](){const _0x3a9221=this['editor'];if(!_0x3a9221['plugins']['has']('CommentsEditing'))return;_0x3a9221['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class Q extends _0x3a4f29{static get['requires'](){return[_0x1e0e14];}['init'](){const _0x4da68c=this['editor'],_0x5b339d=_0x4da68c['plugins']['get']('TrackChangesEditing');_0x5b339d['enableCommand']('delete');const _0x58c7e9=_0x4da68c['commands']['get']('deleteForward');_0x5b339d['enableCommand']('deleteForward',(_0x591ba2,_0x91334f={})=>{const _0x3fd6f2=_0x4da68c['model']['createSelection'](_0x4da68c['model']['document']['selection']);_0x3fd6f2['isCollapsed']&&_0x4da68c['model']['modifySelection'](_0x3fd6f2,{'direction':'forward','unit':_0x91334f['unit']});const _0x5ac11f=_0x3fd6f2['getFirstRange'](),_0x1e7ee5=_0x1d3f47['fromRange'](_0x5ac11f);let _0x151fe2;_0x591ba2(_0x91334f),_0x151fe2='$graveyard'==_0x1e7ee5['root']['rootName']?_0x4da68c['model']['createRange'](_0x5ac11f['start']):_0x4da68c['model']['createRange'](_0x1e7ee5['start'],_0x1e7ee5['end']),_0x1e7ee5['detach'](),_0x4da68c['model']['enqueueChange'](_0x58c7e9['buffer']['batch'],_0x455656=>{_0x58c7e9['buffer']['lock'](),_0x455656['setSelection'](_0x455656['createRange'](_0x151fe2['end'])),_0x58c7e9['buffer']['unlock']();});});}}class X extends _0x3a4f29{['afterInit'](){const _0x22829f=this['editor'];if(!_0x22829f['plugins']['has']('ListEditing'))return;const _0x2563e4=_0x22829f['locale'],_0x525358=_0x22829f['plugins']['get']('TrackChangesEditing'),_0x389975=_0x22829f['plugins']['has']('TodoListEditing'),_0x166f82=!!_0x22829f['config']['get']('list.multiBlock');function _0x2129de(_0xf08b19){return{'type':'format','content':''+o(_0x2563e4,'*Set\x20format:*\x20%0',_0xf08b19)};}function _0x2c7a65(_0x39fdea){return{'type':'format','content':''+o(_0x2563e4,'*Remove\x20format:*\x20%0',_0x39fdea)};}_0x525358['enableDefaultAttributesIntegration']('numberedList'),_0x525358['enableDefaultAttributesIntegration']('bulletedList'),_0x525358['enableDefaultAttributesIntegration']('customNumberedList'),_0x525358['enableDefaultAttributesIntegration']('customBulletedList'),_0x525358['enableDefaultAttributesIntegration']('indentList'),_0x525358['enableDefaultAttributesIntegration']('outdentList'),_0x525358['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x525358['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x166f82&&(_0x525358['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x525358['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x389975&&(_0x525358['enableDefaultAttributesIntegration']('todoList'),_0x525358['enableDefaultAttributesIntegration']('checkTodoList'),_0x525358['descriptionFactory']['registerDescriptionCallback'](_0x3d49ae=>{const {data:_0x219e45}=_0x3d49ae;if(_0x219e45&&'todoListChecked'==_0x219e45['key'])return{'type':'format','content':_0x219e45['newValue']?o(_0x2563e4,'*Check\x20item*'):o(_0x2563e4,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3cb111=>{if(_0x3cb111['batch']['isUndo'])return!0x1;let _0xa07453=!0x1;const _0x31295d=_0x525358['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x586250=>'todoListChecked'===_0x525358['_getAttributeKey'](_0x586250));for(const _0x2d019d of _0x31295d){'todo'!=_0x2d019d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x525358['_findSuggestions'](_0x2d019d['getFirstRange'](),'attribute')['find'](_0x3b159d=>'listType'===_0x525358['_getAttributeKey'](_0x3b159d['suggestion']))||(_0x3cb111['removeMarker'](_0x2d019d['getFirstMarker']()),_0xa07453=!0x0));}return _0xa07453;})),_0x525358['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2563e4,'FORMAT_INDENT'));const _0x4a3c2d={'type':'format','content':''};_0x525358['descriptionFactory']['registerDescriptionCallback'](_0x257a47=>{const {data:_0x279fcd}=_0x257a47;if(!_0x279fcd||'listType'!=_0x279fcd['key'])return;let _0x2eb27d=_0x257a47['head'];for(;_0x2eb27d;){if(_0x2eb27d['data']&&(('listStyle'==_0x2eb27d['data']['key']||'listMarkerStyle'==_0x2eb27d['data']['key'])&&(_0x2eb27d['data']['newValue']&&'default'!=_0x2eb27d['data']['newValue']||'default'!=_0x2eb27d['data']['oldValue']&&!_0x279fcd['newValue'])||!_0x166f82&&_0x2eb27d['data']['key']==m))return _0x4a3c2d;_0x2eb27d=_0x2eb27d['next'];}if(null==_0x279fcd['newValue'])switch(_0x279fcd['oldValue']){case'bulleted':return _0x2c7a65(o(_0x2563e4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c7a65(o(_0x2563e4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c7a65(o(_0x2563e4,'ELEMENT_TODO_LIST'));}switch(_0x279fcd['newValue']){case'bulleted':return _0x2129de(o(_0x2563e4,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2129de(o(_0x2563e4,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2129de(o(_0x2563e4,'ELEMENT_TODO_LIST'));}}),_0x525358['descriptionFactory']['registerDescriptionCallback'](_0x54bbd9=>{const {data:_0x62a541}=_0x54bbd9;if(_0x62a541&&'listIndent'==_0x62a541['key'])return null==_0x62a541['newValue']||null==_0x62a541['oldValue']&&0x0==_0x62a541['newValue']?_0x4a3c2d:void 0x0;}),_0x525358['descriptionFactory']['registerDescriptionCallback'](_0x37af0e=>{if('attribute'!=_0x37af0e['type'])return;const {data:_0x1ca554}=_0x37af0e;if(!_0x1ca554||'listItemId'!=_0x1ca554['key'])return;const _0x526d79=Te(_0x37af0e);return'newValue'==_0x526d79?{'type':'format','content':o(_0x2563e4,'*Merge:*\x20list\x20item')}:'oldValue'==_0x526d79?{'type':'format','content':o(_0x2563e4,'*Split:*\x20list\x20item')}:_0x4a3c2d;}),_0x22829f['model']['document']['registerPostFixer'](_0x3777a1=>this['listItemIdFixer'](_0x3777a1)),_0x22829f['model']['document']['registerPostFixer'](_0x27a22d=>this['noTrackChangesFixer'](_0x27a22d)),_0x22829f['model']['document']['on']('change:data',(_0x5c4790,_0x33d1f4)=>{if(_0x33d1f4['isUndo']||!_0x33d1f4['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2e9432){if(_0x2e9432['batch']['isUndo']||!_0x2e9432['batch']['isLocal'])return!0x1;let _0x23ac45=!0x1;const _0x50bd09=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ea7e8=>_0x5ea7e8['data']&&'listItemId'==_0x5ea7e8['data']['key'])['filter'](_0x351531=>_0x351531['data']['newValue']&&_0x351531['data']['oldValue']);for(const _0x93a199 of _0x50bd09)Te(_0x93a199)||(_0x2e9432['removeMarker'](_0x93a199['getFirstMarker']()),_0x23ac45=!0x0);return _0x23ac45;}['noTrackChangesFixer'](_0x406b7b){if(_0x406b7b['batch']['isUndo']||!_0x406b7b['batch']['isLocal'])return!0x1;const _0x37559a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x37559a['trackChangesCommand']['value'])return!0x1;let _0xd730a8=!0x1;const _0x506376=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x568830=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x48423f=>'attribute'==_0x48423f['type'])['filter'](_0x11ef69=>_0x506376['includes'](_0x11ef69['attributeKey']));if(0x0==_0x568830['length'])return _0xd730a8;for(const _0x3a54c7 of _0x568830){const _0x44d33b=_0x37559a['_findSuggestions'](_0x3a54c7['range'],'attribute')['filter'](_0x4990e9=>!_0x4990e9['meta']['isNextTo'])['map'](_0x465ac2=>_0x465ac2['suggestion'])['filter'](_0x38fea2=>{const _0x5d840d=_0x37559a['_getAttributeKey'](_0x38fea2);return _0x506376['includes'](_0x5d840d);});if(_0x44d33b['length']){for(const _0x34ab3a of _0x44d33b)_0x406b7b['removeMarker'](_0x34ab3a['getFirstMarker']());_0xd730a8=!0x0;}}return _0xd730a8;}['assureChains'](){const _0x23627d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1790e2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2cb5f3;const _0x9f23f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x23cf94=>{if(_0x23cf94['data']['oldRange']||!_0x23cf94['data']['newRange'])return null;if(!_0x23cf94['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x11b12c}=_0x23627d['_splitMarkerName'](_0x23cf94['name']);if(!_0x23627d['hasSuggestion'](_0x11b12c))return null;const _0x2fa279=_0x23627d['getSuggestion'](_0x11b12c);return _0x1790e2['includes'](_0x2fa279['data']['key']);})['map'](_0x3bff6c=>{const {id:_0x1e8035}=_0x23627d['_splitMarkerName'](_0x3bff6c['name']),_0x3a5812=_0x23627d['getSuggestion'](_0x1e8035);return _0x2cb5f3=_0x3a5812['attributes']['groupId'],_0x3a5812['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x9f23f['size'])return;const _0x3d0691=_0x23627d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe0d28c=>'attribute'==_0xe0d28c['type']&&_0xe0d28c['data']&&_0x1790e2['includes'](_0xe0d28c['data']['key'])&&_0xe0d28c['attributes']['groupId']!=_0x2cb5f3)['map'](_0x2b55f5=>({'listItem':_0x2b55f5['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2b55f5['attributes']['groupId']})),_0xe9b576=new Set();for(const {groupId:_0x21ef0e,listItem:_0x418260}of _0x3d0691)_0x9f23f['has'](_0x418260)&&_0xe9b576['add'](_0x21ef0e);for(const _0x25fc92 of _0x23627d['getSuggestions']())_0xe9b576['has'](_0x25fc92['attributes']['groupId'])&&_0x25fc92['setAttribute']('groupId',_0x2cb5f3);}['_supportLegacySuggestions'](){const _0x1c2b21=this['editor'],_0x1727ed=_0x1c2b21['locale'],_0x5146b2=_0x1c2b21['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5146b2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0xdb6a5f,_0x193a05){const _0x51d1f1=[];for(let _0x3b0c87 of _0xdb6a5f)_0x3b0c87['start']['nodeAfter']===_0x3b0c87['end']['parent']&&(_0x3b0c87=_0x1c2b21['model']['createRange'](_0x1c2b21['model']['createPositionAt'](_0x3b0c87['start']['nodeAfter'],0x0))),_0x51d1f1['push'](_0x3b0c87);_0x1c2b21['model']['change'](_0x521cd3=>{const _0x4e0b36=_0x1c2b21['model']['document']['selection'],_0x33b795=Array['from'](_0x4e0b36['getRanges']())['map'](_0x1e685e=>_0x1d3f47['fromRange'](_0x1e685e));_0x521cd3['setSelection'](_0x51d1f1),_0x1c2b21['commands']['get'](_0x193a05['commandName'])['refresh'](),_0x193a05['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1c2b21['execute'](_0x193a05['commandName'],..._0x193a05['commandParams']),_0x521cd3['setSelection'](_0x33b795);for(const _0x37a6ea of _0x33b795)_0x37a6ea['detach']();});}),_0x5146b2['descriptionFactory']['registerElementLabel'](function(_0x2e5380){const _0x2a27d9=!_0x1c2b21['model']['schema']['isObject'](_0x2e5380),_0x2ebe5d=_0x2e5380['previousSibling'],_0x164c4b=_0x2e5380['nextSibling'],_0x52f9f1=_0x2e5380['getAttribute']('listItemId'),_0x1c4443=!_0x2ebe5d||_0x2ebe5d['getAttribute']('listItemId')!==_0x52f9f1,_0x22ad45=!_0x164c4b||_0x164c4b['getAttribute']('listItemId')!==_0x52f9f1;return _0x2a27d9&&Boolean(_0x52f9f1)&&_0x1c4443&&_0x22ad45;},_0x5daaa=>o(_0x1727ed,'ELEMENT_LIST_ITEM',_0x5daaa));}['_registerLegacyDescription'](){const _0x392608=this['editor'],_0x261a40=_0x392608['locale'];function _0x4e62a9(_0x4d6c3c){const _0x1730d0=_0x392608['commands']['get']('bulletedList')['value'],_0x5ce2b0=_0x392608['commands']['get']('numberedList')['value'];return'numberedList'===_0x4d6c3c?_0x1730d0:_0x5ce2b0;}_0x392608['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1271c3){if('formatBlock'!=_0x1271c3['type'])return;const {data:_0x510c43}=_0x1271c3;if(!_0x510c43)return;let _0x5383b0,_0x3927a6,_0x18041e,_0x4ede61;switch(_0x510c43['commandName']){case'bulletedList':_0x18041e=_0x510c43['commandParams'][0x0]['forceValue'],_0x4ede61=_0x4e62a9(_0x510c43['commandName']),_0x5383b0=_0x18041e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ede61&&_0x392608['config']['get']('list.multiBlock')||(_0x5383b0='*Change\x20to:*\x20%0'),_0x3927a6={'type':'format','content':o(_0x261a40,_0x5383b0,o(_0x261a40,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x18041e=_0x510c43['commandParams'][0x0]['forceValue'],_0x4ede61=_0x4e62a9(_0x510c43['commandName']),_0x5383b0=_0x18041e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4ede61&&_0x392608['config']['get']('list.multiBlock')||(_0x5383b0='*Change\x20to:*\x20%0'),_0x3927a6={'type':'format','content':o(_0x261a40,_0x5383b0,o(_0x261a40,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5383b0='*Indent:*\x20%0',_0x3927a6={'type':'format','content':o(_0x261a40,_0x5383b0,o(_0x261a40,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5383b0=function(_0x45c63f){const _0x7e3085=_0x45c63f['getFirstRange']();let _0x1f0475=_0x7e3085['start']['nodeAfter'];for(;_0x1f0475&&_0x7e3085['containsItem'](_0x1f0475);){if(_0x1f0475['getAttribute']('listIndent')>0x0)return!0x1;_0x1f0475=_0x1f0475['nextSibling'];}return!0x0;}(_0x1271c3)?o(_0x261a40,'*Format:*\x20remove\x20from\x20%0',o(_0x261a40,function(_0x4fe713){return'ELEMENT_'+_0x4fe713['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1271c3))):o(_0x261a40,'*Outdent:*\x20%0',o(_0x261a40,'ELEMENT_LIST_ITEM')),_0x3927a6={'type':'format','content':_0x5383b0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x510c43['multipleBlocks']&&(_0x5383b0='*Merge:*\x20%0',_0x3927a6={'type':'deletion','content':o(_0x261a40,_0x5383b0,o(_0x261a40,'ELEMENT_LIST_ITEM'))});}return _0x3927a6;});}}function Te(_0x11725e){let _0x5c5a7e=_0x11725e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5c5a7e;){const _0xa109ec=_0x5c5a7e['getAttribute']('listItemId');if(!_0xa109ec)return!0x1;if(_0xa109ec==_0x11725e['data']['newValue'])return'newValue';if(_0xa109ec==_0x11725e['data']['oldValue'])return'oldValue';_0x5c5a7e=_0x5c5a7e['previousSibling'];}return!0x1;}class Y extends _0x3a4f29{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3d88fe=this['editor']['config']['get']('list.properties'),_0x508418=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d88fe['styles']&&_0x508418['enableDefaultAttributesIntegration']('listStyle'),_0x3d88fe['reversed']&&_0x508418['enableDefaultAttributesIntegration']('listReversed'),_0x3d88fe['startIndex']&&_0x508418['enableDefaultAttributesIntegration']('listStart');const _0x16e86d={'type':'format','content':''};_0x508418['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x188189=this['editor']['locale'];_0x508418['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x188189,'FORMAT_LIST_REVERSED')),_0x508418['descriptionFactory']['registerDescriptionCallback'](_0x4deca6=>{const {data:_0x33db41}=_0x4deca6;if(_0x33db41&&'listReversed'==_0x33db41['key'])return null==_0x33db41['newValue']||0x0==_0x33db41['newValue']&&null==_0x33db41['oldValue']?_0x16e86d:void 0x0;}),_0x508418['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x188189,'FORMAT_LIST_START')),_0x508418['descriptionFactory']['registerDescriptionCallback'](_0x15cd0f=>{const {data:_0x494d1e}=_0x15cd0f;if(_0x494d1e&&'listStart'==_0x494d1e['key'])return null==_0x494d1e['newValue']||0x1==_0x494d1e['newValue']&&null==_0x494d1e['oldValue']?_0x16e86d:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0xdb055e=>{if(_0xdb055e['batch']['isUndo'])return!0x1;let _0x15904f=!0x1;const _0x378cda=_0x508418['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x51dc11=>{const _0x51295b=_0x508418['_getAttributeKey'](_0x51dc11);return'listStart'==_0x51295b||'listReversed'==_0x51295b;});for(const _0x3576d9 of _0x378cda){const _0x42abd3=_0x3576d9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42abd3||'customNumbered'==_0x42abd3)continue;_0x508418['_findSuggestions'](_0x3576d9['getFirstRange'](),'attribute')['find'](_0x2694fd=>'listType'==_0x508418['_getAttributeKey'](_0x2694fd['suggestion']))||(_0xdb055e['removeMarker'](_0x3576d9['getFirstMarker']()),_0x15904f=!0x0);}return _0x15904f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x577b74){const _0x30c76f=this['editor']['locale'],{data:_0x2c5c22}=_0x577b74,_0x4adea4={'type':'format','content':''};if(!_0x2c5c22||'listStyle'!=_0x2c5c22['key'])return;if(!_0x2c5c22['oldValue'])return'default'==_0x2c5c22['newValue']?_0x4adea4:{'type':'format','content':''+o(_0x30c76f,'*Set\x20format:*\x20%0',o(_0x30c76f,this['_getTranslationKeyForListStyle'](_0x2c5c22['newValue'])))};if(!_0x2c5c22['newValue']){if('default'==_0x2c5c22['oldValue'])return _0x4adea4;let _0x145d46=_0x577b74['head'];for(;_0x145d46;){if(_0x145d46['data']&&'listType'==_0x145d46['data']['key']&&_0x145d46['data']['newValue'])return _0x4adea4;_0x145d46=_0x145d46['next'];}return{'type':'format','content':''+o(_0x30c76f,'*Remove\x20format:*\x20%0',o(_0x30c76f,this['_getTranslationKeyForListStyle'](_0x2c5c22['oldValue'])))};}if('default'!=_0x2c5c22['newValue'])return{'type':'format','content':''+o(_0x30c76f,'*Set\x20format:*\x20%0',o(_0x30c76f,this['_getTranslationKeyForListStyle'](_0x2c5c22['newValue'])))};let _0x5c9935=_0x577b74['head'];for(;_0x5c9935;){if(_0x5c9935['data']&&'listType'==_0x5c9935['data']['key']&&_0x5c9935['data']['newValue']&&_0x5c9935['data']['oldValue'])return _0x4adea4;_0x5c9935=_0x5c9935['next'];}return{'type':'format','content':o(_0x30c76f,'*Set\x20format:*\x20%0',o(_0x30c76f,'ELEMENT_'+_0x577b74['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3cc9ec=this['editor'],_0xfb1b19=_0x3cc9ec['locale'];_0x3cc9ec['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ff795=>{if('formatBlock'!=_0x1ff795['type'])return;const {data:_0x5b5f45}=_0x1ff795;if(!_0x5b5f45)return;let _0x2b563a,_0x56f83e;switch(_0x5b5f45['commandName']){case'listStyle':_0x2b563a='*Change\x20to:*\x20%0',_0x56f83e={'type':'format','content':o(_0xfb1b19,_0x2b563a,o(_0xfb1b19,this['_getTranslationKeyForListStyle'](_0x5b5f45['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2b563a=_0x5b5f45['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x56f83e={'type':'format','content':o(_0xfb1b19,_0x2b563a)};break;case'listStart':_0x2b563a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x56f83e={'type':'format','content':o(_0xfb1b19,_0x2b563a,_0x5b5f45['commandParams'][0x0]['startIndex'])};}return _0x56f83e;});}['_getTranslationKeyForListStyle'](_0x6285a3){return'ELEMENT_'+function(_0x2d6bef){if(ye['includes'](_0x2d6bef))return'bulleted';if(Se['includes'](_0x2d6bef))return'numbered';return null;}(_0x6285a3)['toUpperCase']()+'_LIST_'+_0x6285a3['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin','arabic-indic'];class Z extends _0x3a4f29{['afterInit'](){const _0xcb2a54=this['editor'];_0xcb2a54['commands']['get']('emoji')&&_0xcb2a54['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class tt extends _0x3a4f29{static get['requires'](){return[_0x19af1b];}['init'](){const _0x347d15=this['editor'],_0x507937=_0x347d15['plugins']['get']('TrackChangesEditing'),_0x423150=_0x347d15['commands']['get']('enter');_0x507937['enableCommand']('enter',()=>{_0x347d15['model']['change'](_0x4fc6e3=>{const _0x39e5b5=_0x347d15['model']['document']['selection'],_0x33c897=_0x39e5b5['getFirstPosition'](),_0x38b600=_0x1d3f47['fromRange'](_0x39e5b5['getFirstRange']());if(_0x423150['enterBlock'](_0x4fc6e3)){const _0x236341=_0x347d15['model']['createPositionAt'](_0x33c897['parent']['nextSibling'],0x0),_0x347d02=_0x4fc6e3['createRange'](_0x33c897,_0x236341);_0x507937['markInsertion'](_0x347d02);}else _0x4fc6e3['setSelection'](_0x4fc6e3['createRange'](_0x38b600['end']));_0x38b600['detach'](),_0x423150['fire']('afterExecute',{'writer':_0x4fc6e3});});});}}class nt extends _0x3a4f29{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x529bb6=this['editor']['plugins']['get']('TrackChangesEditing');_0x529bb6['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x529bb6['enableCommand']('findNext'),_0x529bb6['enableCommand']('findPrevious'),_0x529bb6['enableCommand']('replace'),_0x529bb6['enableCommand']('replaceAll');}['handleFindCommand'](_0x27c72b,_0x51ccb6,_0x38231b={}){const _0x438537=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x27c72b(_0x192b7d=>{let _0x4a36fb=('string'==typeof _0x51ccb6?_0x438537['findByTextCallback'](_0x51ccb6,_0x38231b):_0x51ccb6)(_0x192b7d);Array['isArray'](_0x4a36fb)&&(_0x4a36fb={'results':_0x4a36fb,'searchText':'string'==typeof _0x51ccb6?_0x51ccb6:''});const _0x4b9c09=_0x4a36fb['results']['filter'](_0x305263=>!0x1===this['_isInDeletionRange'](_0x305263,_0x192b7d['item']));return{..._0x4a36fb,'results':_0x4b9c09};},_0x38231b);}['_isInDeletionRange'](_0x8d1098,_0x2133ea){const _0x322b43=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2133ea,_0x8d1098['start']),this['editor']['model']['createPositionAt'](_0x2133ea,_0x8d1098['end']));for(const _0x2314ee of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x322b43['getIntersection'](_0x2314ee['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class it extends _0x3a4f29{['afterInit'](){const _0x2ddabb=this['editor']['locale'],_0x2c6eb4=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1459c1,commandName:_0x5ab3a7}of eo)this['editor']['plugins']['has'](_0x1459c1)&&_0x2c6eb4['enableDefaultAttributesIntegration'](_0x5ab3a7);_0x2c6eb4['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2ddabb,'FORMAT_FONT_SIZE')),_0x2c6eb4['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2ddabb,'FORMAT_FONT_FAMILY')),_0x2c6eb4['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2ddabb,'FORMAT_FONT_COLOR')),_0x2c6eb4['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2ddabb,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x244057=this['editor'],_0x375024=_0x244057['locale'];_0x244057['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c8446=>{const _0x2b9a8b=_0x375024['t'];if('formatInline'!=_0x4c8446['type'])return;const {data:_0x34ed42}=_0x4c8446;if(null!=_0x34ed42){if('fontSize'==_0x34ed42['commandName']){const _0x373753=_0x34ed42['commandParams'][0x0]['value'];if(_0x373753){const _0x2da6e1=_0x2b9a8b(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5c8120=>_0x5c8120['model']==_0x373753)['title'])['toLowerCase']();return{'type':'format','content':o(_0x375024,'*Set\x20font\x20size:*\x20%0',_0x2da6e1)};}return{'type':'format','content':o(_0x375024,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x34ed42['commandName']){const _0x32baeb=_0x34ed42['commandParams'][0x0]['value'];return _0x32baeb?{'type':'format','content':o(_0x375024,'*Set\x20font\x20family:*\x20%0',_0x32baeb)}:{'type':'format','content':o(_0x375024,'*Reset\x20font\x20family*')};}if('fontColor'==_0x34ed42['commandName']){const _0x3db464=_0x34ed42['commandParams'][0x0]['value'];if(_0x3db464){const _0x56e5e1=_0x54412a(this['editor']['config']['get']('fontColor.colors'))['find'](_0x6b94d7=>_0x6b94d7['model']==_0x3db464);let _0x30b226=_0x3db464,_0x276862='';return _0x56e5e1&&(_0x30b226=_0x56e5e1['label'],_0x276862=_0x2b9a8b(_0x30b226)['toLowerCase']()),{'type':'format','content':o(_0x375024,'*Set\x20font\x20color:*\x20%0',_0x276862)['trim'](),'color':{'value':_0x3db464,'title':_0x276862||_0x30b226}};}return{'type':'format','content':o(_0x375024,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x34ed42['commandName']){const _0x117c4e=_0x34ed42['commandParams'][0x0]['value'];if(_0x117c4e){const _0x3cbf0a=_0x54412a(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5d7f87=>_0x5d7f87['model']==_0x117c4e);let _0x4a0f88=_0x117c4e,_0x34e185='';return _0x3cbf0a&&(_0x4a0f88=_0x3cbf0a['label'],_0x34e185=_0x2b9a8b(_0x4a0f88)['toLowerCase']()),{'type':'format','content':o(_0x375024,'*Set\x20font\x20background\x20color:*\x20%0',_0x34e185)['trim'](),'color':{'value':_0x117c4e,'title':_0x34e185||_0x4a0f88}};}return{'type':'format','content':o(_0x375024,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x3a4f29{['afterInit'](){const {plugins:_0x4978fd}=this['editor'];_0x4978fd['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x4978fd['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x43e398,plugins:_0xed1f0c,commands:_0x517620}=this['editor'],_0x4bffe8=_0xed1f0c['get']('TrackChangesEditing');_0x517620['get']('footnotesStyle')&&_0x4bffe8['enableDefaultAttributesIntegration']('footnotesStyle'),_0x517620['get']('footnotesStart')&&_0x4bffe8['enableDefaultAttributesIntegration']('footnotesStart'),_0x4bffe8['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x43e398,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x4bffe8['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x43e398,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x8907dd=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x403377,commands:_0x87a275}=this['editor'];_0x87a275['get']('insertFootnote')&&_0x8907dd['enableCommand']('insertFootnote'),_0x8907dd['descriptionFactory']['registerElementLabel']('footnoteRef',_0x7b0a2d=>o(_0x403377,'ELEMENT_FOOTNOTE_REF',_0x7b0a2d)),_0x8907dd['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x4274e8=>o(_0x403377,'ELEMENT_FOOTNOTE_DEFINITION',_0x4274e8)),_0x8907dd['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x3b667b=>o(_0x403377,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x3b667b));}}class st extends _0x3a4f29{['afterInit'](){const _0x2d9981=this['editor'],_0x9d63aa=_0x2d9981['plugins']['get']('TrackChangesEditing'),_0x613f85=_0x2d9981['commands']['get']('copyFormat'),_0x5ac965=_0x2d9981['commands']['get']('pasteFormat');_0x613f85&&_0x5ac965&&(_0x9d63aa['enableDefaultAttributesIntegration']('pasteFormat'),_0x9d63aa['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x27374c=this['editor'],_0x4c972b=_0x27374c['locale'];_0x27374c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34265e=>{if('formatBlock'!=_0x34265e['type']&&'formatInline'!=_0x34265e['type'])return;const {data:_0x39ca7a}=_0x34265e;if(_0x39ca7a&&'pasteFormat'===_0x39ca7a['commandName']){const _0x19465f=[],_0x1dcb03=_0x39ca7a['commandParams'][0x0];for(const [_0x1379a2,_0x33d93b]of Object['entries'](_0x1dcb03))_0x19465f['push'](ro(_0x27374c,_0x1379a2,_0x33d93b));return _0x19465f['length']?{'type':'format','content':o(_0x4c972b,'*Set\x20format\x20to:*\x20%0',_0x19465f['join'](',\x20'))}:{'type':'format','content':o(_0x4c972b,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1d6c69,_0x36be83,_0x557f07){const _0x2b9eee=_0x1d6c69['locale']['t'],_0x448cda=_0x36be83['split'](/(?=[A-Z])/)['join']('\x20'),_0x4e434a=_0x2b9eee(_0x448cda['charAt'](0x0)['toUpperCase']()+_0x448cda['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x557f07)return _0x4e434a;if('fontColor'===_0x36be83||'fontBackgroundColor'===_0x36be83){const _0x25360c=_0x54412a(_0x1d6c69['config']['get']('fontColor.colors'))['find'](_0x3100ec=>_0x3100ec['model']==_0x557f07);return _0x4e434a+'\x20('+(_0x25360c?_0x2b9eee(_0x25360c['label'])['toLowerCase']():_0x557f07)+')';}if('fontSize'===_0x36be83&&isNaN(parseFloat(_0x557f07))){const _0x201951=_0x1d6c69['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1d6c69['config']['get']('fontSize.options'))['find'](_0x1d38bf=>_0x1d38bf['model']==_0x557f07);return _0x4e434a+'\x20('+(_0x201951?_0x2b9eee(_0x201951['title'])['toLowerCase']():_0x557f07)+')';}return _0x4e434a+'\x20('+_0x557f07+')';}class ot extends _0x3a4f29{['_headingOptions'];['afterInit'](){const _0x500418=this['editor'];if(!_0x500418['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x500418['config']['get']('heading.options');const _0x4c9e40=_0x500418['locale'],_0x5e1ab7=_0x500418['plugins']['get']('TrackChangesEditing');_0x5e1ab7['enableDefaultAttributesIntegration']('heading');for(const _0x142513 of this['_headingOptions'])'paragraph'!=_0x142513['model']&&_0x5e1ab7['descriptionFactory']['registerElementLabel'](_0x142513['model'],_0x42af35=>{const _0x2fe1fe=this['_getHeadingLevel'](_0x142513['model']);return null!==_0x2fe1fe?_0x5814cc(_0x42af35,_0x2fe1fe):_0x23343f(_0x42af35,_0x142513['title']);});function _0x5814cc(_0x22ca32,_0x3cee0f){return o(_0x4c9e40,'ELEMENT_HEADING',[_0x22ca32,_0x3cee0f]);}function _0x23343f(_0x57dfbe,_0x347a3e){return o(_0x4c9e40,'ELEMENT_HEADING_CUSTOM',[_0x57dfbe,_0x347a3e]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b965b=this['editor'],_0x5f1269=_0x2b965b['locale'];function _0x1b9201(_0x1b6316,_0x4cfe7b){return o(_0x5f1269,'ELEMENT_HEADING_CUSTOM',[_0x1b6316,_0x4cfe7b]);}_0x2b965b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dcb63=>{if('formatBlock'!=_0x2dcb63['type'])return;const {data:_0x33ef44}=_0x2dcb63;if(_0x33ef44&&'heading'==_0x33ef44['commandName']){const _0x10a891=_0x33ef44['commandParams'][0x0]['value'],_0x356ac1=this['_getHeadingLevel'](_0x10a891);if(null!==_0x356ac1)return{'type':'format','content':o(_0x5f1269,'*Change\x20to:*\x20%0',(_0x20f3a7=0x1,_0x332bf7=_0x356ac1,o(_0x5f1269,'ELEMENT_HEADING',[_0x20f3a7,_0x332bf7])))};const _0xe408ac=this['_headingOptions']['find'](_0x10e889=>_0x10e889['model']===_0x10a891)['title'];return{'type':'format','content':o(_0x5f1269,'*Change\x20to:*\x20%0',_0x1b9201(0x1,_0xe408ac))};}var _0x20f3a7,_0x332bf7;});}['_getHeadingLevel'](_0x4e0833){const _0x46da66=_0x4e0833['match'](/^heading(\d+)/);if(_0x46da66)return _0x46da66[0x1];const _0x13bf3f=this['_headingOptions']?.['find'](_0x6c3ae6=>_0x6c3ae6['model']==_0x4e0833);if(_0x13bf3f&&_0x13bf3f['view']){const _0x3e2a5e=_0x13bf3f['view'],_0x4460b0=(_0x3e2a5e['name']??_0x3e2a5e)['match'](/^h(\d+)/);if(_0x4460b0)return _0x4460b0[0x1];}return null;}}class rt extends _0x3a4f29{['afterInit'](){const _0x48e71a=this['editor'];if(!_0x48e71a['plugins']['has']('HighlightEditing'))return;const _0x281b48=_0x48e71a['plugins']['get']('TrackChangesEditing'),_0x5149ef=_0x48e71a['locale'];_0x281b48['enableDefaultAttributesIntegration']('highlight'),_0x281b48['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5149ef,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f85b0=this['editor'],_0x21469e=_0x4f85b0['locale'];_0x4f85b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x188dee=>{if('formatInline'!=_0x188dee['type'])return;const {data:_0x3f2bba}=_0x188dee;if(_0x3f2bba&&'highlight'==_0x3f2bba['commandName']){const _0x36387c=_0x21469e['t'],_0x8ca970=_0x3f2bba['commandParams'][0x0]['value'];if(_0x8ca970){const _0x2ccc8b=_0x4f85b0['config']['get']('highlight.options')['find'](_0x4b99df=>_0x4b99df['model']==_0x8ca970),_0x54688f=_0x36387c(_0x2ccc8b['title'])['toLowerCase']();return{'type':'format','content':o(_0x21469e,'*Set\x20highlight:*\x20%0',_0x54688f),'color':{'value':_0x2ccc8b['color'],'title':_0x2ccc8b['title']}};}return{'type':'format','content':o(_0x21469e,'*Remove\x20highlight*',o(_0x21469e,'FORMAT_HIGHLIGHT'))};}});}}class at extends _0x3a4f29{['afterInit'](){const _0x4163b4=this['editor'];if(!_0x4163b4['plugins']['has']('HorizontalLineEditing'))return;_0x4163b4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x57e191=_0x4163b4['plugins']['get']('TrackChangesEditing'),_0x172650=_0x4163b4['locale'];_0x57e191['descriptionFactory']['registerElementLabel']('horizontalLine',_0x127c33=>o(_0x172650,'ELEMENT_HORIZONTAL_LINE',_0x127c33));}}class ct extends _0x3a4f29{['afterInit'](){const _0x5efdd0=this['editor'];if(!_0x5efdd0['plugins']['has']('HtmlEmbed'))return;const _0x57f739=_0x5efdd0['plugins']['get']('TrackChangesEditing'),_0x5f5b79=_0x5efdd0['locale'];_0x57f739['descriptionFactory']['registerElementLabel']('rawHtml',_0x1470d2=>o(_0x5f5b79,'ELEMENT_HTML_EMBED',_0x1470d2)),_0x57f739['enableDefaultAttributesIntegration']('htmlEmbed'),_0x57f739['descriptionFactory']['registerDescriptionCallback'](_0x5ef359=>{if('attribute'!=_0x5ef359['type'])return;const {data:_0x306599}=_0x5ef359;if(_0x306599&&'value'==_0x306599['key']&&_0x5ef359['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2b874b=o(_0x5f5b79,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5f5b79,'*Change\x20%0\x20content*',_0x2b874b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a5311=this['editor'],_0x3e69ee=_0x2a5311['locale'];_0x2a5311['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38da66=>{if('formatBlock'!=_0x38da66['type'])return;const {data:_0x476dcf}=_0x38da66;if(_0x476dcf&&'htmlEmbed'==_0x476dcf['commandName']){const _0x4d223e=o(_0x3e69ee,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3e69ee,'*Change\x20%0\x20content*',_0x4d223e)};}});}}class ut extends _0x3a4f29{['afterInit'](){const _0x840353=this['editor'];if(!_0x840353['plugins']['has']('ImageEditing'))return;const _0xc5dcc4=_0x840353['plugins']['get']('TrackChangesEditing'),_0x35db2a=_0x840353['plugins']['get']('ImageUtils'),_0x24dcad=_0x840353['locale'];_0xc5dcc4['enableCommand']('insertImage'),_0xc5dcc4['descriptionFactory']['registerElementLabel']('imageBlock',_0x4f60bc=>o(_0x24dcad,'ELEMENT_IMAGE',_0x4f60bc)),_0xc5dcc4['descriptionFactory']['registerElementLabel']('imageInline',_0x5275c1=>o(_0x24dcad,'ELEMENT_INLINE_IMAGE',_0x5275c1)),_0xc5dcc4['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x24dcad,'ELEMENT_CAPTION')),_0x840353['plugins']['has']('ImageUploadEditing')&&_0xc5dcc4['enableCommand']('uploadImage'),_0x840353['plugins']['has']('ImageBlockEditing')&&_0x840353['plugins']['has']('ImageInlineEditing')&&(_0xc5dcc4['enableCommand']('imageTypeInline',(_0x42aabb,_0x1c76fd)=>{const _0x10bf87=_0x35db2a['getClosestSelectedImageElement'](_0x840353['model']['document']['selection']);_0x840353['model']['change'](()=>{_0xc5dcc4['markBlockFormat'](_0x10bf87,{'commandName':'imageTypeInline','commandParams':[_0x1c76fd]},[],'convertBlockImageToInline');});}),_0xc5dcc4['enableCommand']('imageTypeBlock',(_0x5c5c2b,_0x4bc677)=>{_0x840353['model']['change'](_0x2aa433=>{let _0x5c50f9=_0x35db2a['getClosestSelectedImageElement'](_0x840353['model']['document']['selection']),_0x2b9549=_0x2aa433['createRangeOn'](_0x5c50f9);const _0x9f987c=_0xab7900['fromPosition'](_0x2b9549['start'],'toPrevious'),_0x574369=_0xab7900['fromPosition'](_0x2b9549['end'],'toNext');_0xc5dcc4['forceDefaultExecution'](()=>_0x5c5c2b(_0x4bc677)),_0x5c50f9=_0x35db2a['getClosestSelectedImageElement'](_0x840353['model']['document']['selection']),_0x2b9549=_0x2aa433['createRangeOn'](_0x5c50f9);const _0x2bcc72=_0x2aa433['createRange'](_0x9f987c,_0x574369);_0x9f987c['detach'](),_0x574369['detach'](),_0xc5dcc4['markBlockFormat'](_0x5c50f9,{'commandName':'imageTypeInline','commandParams':[_0x4bc677]},[],'convertInlineImageToBlock'),_0x2bcc72['start']['isBefore'](_0x2b9549['start'])&&_0xc5dcc4['markInsertion'](_0x2aa433['createRange'](_0x2bcc72['start'],_0x2b9549['start']),'convertInlineImageToBlock'),_0x2b9549['end']['isBefore'](_0x2bcc72['end'])&&_0xc5dcc4['markInsertion'](_0x2aa433['createRange'](_0x2b9549['end'],_0x2bcc72['end']),'convertInlineImageToBlock');});}),_0xc5dcc4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xc5dcc4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xc5dcc4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xc5dcc4['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xc5dcc4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xc5dcc4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x9224c])=>{const _0x5b6bf3=_0xc5dcc4['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x56aa6a=_0x9224c['start'],_0x2d3b5a=_0x9224c['end'];const _0x11e0db=_0x840353['model']['schema']['getNearestSelectionRange'](_0x56aa6a,'backward'),_0x175401=_0x840353['model']['schema']['getNearestSelectionRange'](_0x2d3b5a,'forward');_0x11e0db['isCollapsed']&&(_0x56aa6a=_0x11e0db['start']),_0x175401['isCollapsed']&&(_0x2d3b5a=_0x175401['end']),_0x5b6bf3([_0x840353['model']['createRange'](_0x56aa6a,_0x2d3b5a)]);}),_0xc5dcc4['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x31d5aa),_0xc5dcc4['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x31d5aa)),_0x840353['plugins']['has']('ImageCaptionEditing')&&(_0xc5dcc4['enableCommand']('toggleImageCaption',(_0x4f427e,_0x502593)=>{const _0x1b075d=_0x840353['plugins']['get']('ImageCaptionUtils');let _0x2e37e7=_0x35db2a['getClosestSelectedImageElement'](_0x840353['model']['document']['selection']),_0x2fd0a0=_0x1b075d['getCaptionFromImageModelElement'](_0x2e37e7);_0x840353['model']['change'](()=>{if(_0x2fd0a0)return void _0xc5dcc4['markDeletion'](_0x840353['model']['createRangeOn'](_0x2fd0a0));const _0x1f23c0=_0x35db2a['isBlockImage'](_0x2e37e7);_0x4f427e(_0x502593),_0x2e37e7=_0x35db2a['getClosestSelectedImageElement'](_0x840353['model']['document']['selection']),_0x2fd0a0=_0x1b075d['getCaptionFromImageModelElement'](_0x2e37e7),_0xc5dcc4['markInsertion'](_0x840353['model']['createRangeOn'](_0x2fd0a0),_0x1f23c0?null:'imageCaption');});}),_0xc5dcc4['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x31d5aa));const _0x11b175=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x127ebe(_0x278fb0,_0x38957f){const _0x38bad0=_0x11b175['findIndex'](({type:_0x5d52b9,subType:_0x39c4f7})=>_0x278fb0['type']==_0x5d52b9&&_0x278fb0['subType']==_0x39c4f7),_0x3be0a9=_0x11b175['findIndex'](({type:_0xa486a7,subType:_0xea494e})=>_0x38957f['type']==_0xa486a7&&_0x38957f['subType']==_0xea494e);if(_0x38bad0<0x0||_0x3be0a9<0x0)return!0x1;const _0x1db28b=_0x278fb0['getFirstRange'](),_0xc4b168=_0x38957f['getFirstRange']();if((0x0==_0x38bad0||0x1==_0x38bad0)&&0x2==_0x3be0a9&&_0x1db28b['isIntersecting'](_0xc4b168))return!0x0;if(0x2==_0x38bad0&&0x3==_0x3be0a9){const _0x13ec21=_0xc5dcc4['_findSuggestions'](_0x1db28b,'insertion')['filter'](({suggestion:_0x5fe02,meta:_0x324df7})=>_0x324df7['isOwn']&&'convertInlineImageToBlock'==_0x5fe02['subType']);if(_0x13ec21['length']>0x1&&_0xc4b168['end']['isEqual'](_0x1db28b['start']))return!0x0;if(0x1==_0x13ec21['length']&&(_0x1db28b['start']['isEqual'](_0xc4b168['end'])||_0x1db28b['end']['isEqual'](_0xc4b168['start'])))return!0x0;}if(0x3==_0x38bad0&&0x3==_0x3be0a9&&_0x1db28b['start']['isBefore'](_0xc4b168['start'])){const _0x59d796=_0x1db28b['end']['nodeAfter'],_0x2a820c=_0xc4b168['start']['nodeBefore'];return _0x35db2a['isBlockImage'](_0x59d796)&&_0x59d796===_0x2a820c;}return!0x1;}function _0x31d5aa(_0x57157a,_0x17ac44){return _0x127ebe(_0x57157a,_0x17ac44)?[_0x57157a,_0x17ac44]:_0x127ebe(_0x17ac44,_0x57157a)?[_0x17ac44,_0x57157a]:null;}_0x840353['plugins']['has']('ImageResize')&&(_0xc5dcc4['enableDefaultAttributesIntegration']('resizeImage'),_0xc5dcc4['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x24dcad,'FORMAT_IMAGE_SIZE'))),_0x840353['plugins']['has']('ImageTextAlternativeEditing')&&_0xc5dcc4['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x840353['plugins']['has']('PictureEditing')&&_0xc5dcc4['descriptionFactory']['registerDescriptionCallback'](_0x51842a=>{if('attribute'!=_0x51842a['type'])return;const {data:_0x1970ec}=_0x51842a;return _0x1970ec&&'sources'==_0x1970ec['key']?{'type':'format','content':''}:void 0x0;}),_0x840353['plugins']['has']('ImageSizeAttributes')&&_0xc5dcc4['descriptionFactory']['registerDescriptionCallback'](_0x526ad0=>{if('attribute'!=_0x526ad0['type'])return;const {data:_0x44b6b1}=_0x526ad0;return!_0x44b6b1||'width'!=_0x44b6b1['key']&&'height'!=_0x44b6b1['key']?void 0x0:{'type':'format','content':''};}),_0xc5dcc4['descriptionFactory']['registerDescriptionCallback'](_0x3e39f9=>{if(!!_0x11b175['find'](({type:_0xdb07cd,subType:_0x1321ed})=>_0x3e39f9['type']==_0xdb07cd&&_0x3e39f9['subType']==_0x1321ed))return _0x3e39f9['previous']?{}:void 0x0;}),_0xc5dcc4['descriptionFactory']['registerDescriptionCallback'](_0x138873=>{if('insertion'==_0x138873['type']||'deletion'==_0x138873['type']){const _0x411382=_0x138873['getContainedElement']();if(_0x411382&&_0x411382['is']('element','caption'))return{'type':'insertion'==_0x138873['type']?'addObject':'removeObject','element':_0x411382,'quantity':0x1};}}),_0xc5dcc4['descriptionFactory']['registerDescriptionCallback'](_0x44ac1f=>'formatBlock'==_0x44ac1f['type']&&'convertInlineImageToBlock'==_0x44ac1f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x44ac1f['type']&&'convertBlockImageToInline'==_0x44ac1f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xc5dcc4['descriptionFactory']['registerDescriptionCallback'](_0x1039fd=>{if('attribute'!=_0x1039fd['type'])return;const {data:_0x52c735}=_0x1039fd;if(!_0x52c735||'alt'!=_0x52c735['key'])return;const _0xde797a=_0x52c735['newValue'];return _0xde797a?{'type':'format','content':o(_0x24dcad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xde797a+'\x22')}:{'type':'format','content':o(_0x24dcad,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b4dc1=this['editor'],_0x4fd938=_0x4b4dc1['locale'];_0x4b4dc1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x86fc35=>{if('formatBlock'!=_0x86fc35['type']&&'formatInline'!=_0x86fc35['type'])return;const {data:_0x489f2a}=_0x86fc35;if(_0x489f2a){if('imageTextAlternative'==_0x489f2a['commandName']){const _0xf23e5f=_0x489f2a['commandParams'][0x0]['newValue'];return _0xf23e5f?{'type':'format','content':o(_0x4fd938,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xf23e5f+'\x22')}:{'type':'format','content':o(_0x4fd938,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x489f2a['commandName']){const _0x402f33=_0x489f2a['commandParams'][0x0]['width'];return _0x402f33?{'type':'format','content':o(_0x4fd938,'*Set\x20image\x20width:*\x20%0',_0x402f33)}:{'type':'format','content':o(_0x4fd938,'*Reset\x20image\x20width*')};}}});}}class ft extends _0x3a4f29{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1d41a3=this['editor']['locale'],_0x133e29=this['editor']['plugins']['get']('TrackChangesEditing');_0x133e29['enableDefaultAttributesIntegration']('replaceImageSource'),_0x133e29['descriptionFactory']['registerDescriptionCallback'](_0x1dc5b9=>{if('attribute'!=_0x1dc5b9['type'])return;const {data:_0x51e214}=_0x1dc5b9;return _0x51e214&&'src'==_0x51e214['key']?_0x51e214['newValue']&&_0x51e214['oldValue']?{'type':'format','content':o(_0x1d41a3,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x25cf86=this['editor']['plugins']['get']('TrackChangesEditing');_0x25cf86['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x25cf86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25cf86['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x25cf86['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x269391=this['editor'],_0x7d1ce3=_0x269391['locale'];_0x269391['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1793b1=>{if('formatBlock'!=_0x1793b1['type']&&'formatInline'!=_0x1793b1['type'])return;const {data:_0x557332}=_0x1793b1;if(!_0x557332||'replaceImageSource'!=_0x557332['commandName'])return;return{'type':'format','content':o(_0x7d1ce3,'*Format:*\x20replace\x20image\x20URL')};});}}class ht extends _0x3a4f29{['afterInit'](){const _0x189aba=this['editor'];if(!_0x189aba['plugins']['has']('ImageStyleEditing'))return;const _0xc4a52d=_0x189aba['plugins']['get']('TrackChangesEditing'),_0x26fe5a=_0x189aba['plugins']['get']('ImageUtils'),_0x388dbf={};_0xc4a52d['enableCommand']('imageStyle',(_0x325782,_0xa0299f)=>{const _0x42fddc=_0x189aba['plugins']['get']('Users')['me'],_0x1137e7=_0x189aba['commands']['get']('imageStyle');let _0x28c57a=_0x26fe5a['getClosestSelectedImageElement'](_0x189aba['model']['document']['selection']),_0x4a6d99=_0x189aba['model']['createRangeOn'](_0x28c57a),_0x54a45d=_0x1137e7['value'];if(_0x54a45d==_0xa0299f['value'])return;const _0x37b079={'commandName':'imageStyle','commandParams':[_0xa0299f],'formatGroupId':_0x4e95d3()};_0x189aba['model']['change'](()=>{if(_0xc4a52d['getSuggestions']()['filter'](_0x12f4f8=>_0x12f4f8['isInContent']&&_0x42fddc==_0x12f4f8['author']&&('formatBlock'==_0x12f4f8['type']||'formatInline'==_0x12f4f8['type'])&&('imageStylePreApply'==_0x12f4f8['subType']||'imageStylePostApply'==_0x12f4f8['subType'])&&_0x12f4f8['getFirstRange']()['isEqual'](_0x4a6d99))['forEach'](_0x34f3e3=>_0xc4a52d['discardSuggestion'](_0x34f3e3['head'])),_0x28c57a=_0x26fe5a['getClosestSelectedImageElement'](_0x189aba['model']['document']['selection']),_0x4a6d99=_0x189aba['model']['createRangeOn'](_0x28c57a),_0x1137e7['refresh'](),_0x189aba['commands']['get']('imageTypeInline')['refresh'](),_0x189aba['commands']['get']('imageTypeBlock')['refresh'](),_0x54a45d=_0x1137e7['value'],_0x54a45d!=_0xa0299f['value'])return _0x26fe5a['isInlineImage'](_0x28c57a)&&_0x1137e7['shouldConvertImageType'](_0xa0299f['value'],_0x28c57a)?(_0x325782({..._0xa0299f,'setImageSizes':!0x1}),_0x28c57a=_0x26fe5a['getClosestSelectedImageElement'](_0x189aba['model']['document']['selection']),void _0xc4a52d['markBlockFormat'](_0x28c57a,{..._0x37b079,'commandReversedParams':[{'value':_0x54a45d||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x26fe5a['isBlockImage'](_0x28c57a)?_0xc4a52d['markBlockFormat'](_0x28c57a,_0x37b079,[],'imageStylePostApply'):_0xc4a52d['markInlineFormat'](_0x4a6d99,_0x37b079,'imageStylePostApply'));});});for(const _0x35f3c5 of _0x189aba['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x388dbf[_0x35f3c5['name']]=_0x35f3c5['title']['toLowerCase']();_0xc4a52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xc4a52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xc4a52d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xc4a52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x549bca])=>{_0x26fe5a['setImageNaturalSizeAttributes'](_0x549bca['getContainedElement']());}),_0xc4a52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x461fa5,_0x57da82)=>{_0xc4a52d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x461fa5,{'commandName':_0x57da82['commandName'],'commandParams':_0x57da82['commandReversedParams']});}),_0xc4a52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4c509c,_0xaeff93){if(_0x5bc1e9(_0x4c509c,_0xaeff93))return[_0x4c509c,_0xaeff93];if(_0x5bc1e9(_0xaeff93,_0x4c509c))return[_0xaeff93,_0x4c509c];return null;});const _0x193e05=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5bc1e9(_0x626f17,_0x5849bc){const _0x5a5d02=_0x193e05['findIndex'](({type:_0xe8f308,subType:_0x1c5372})=>_0x626f17['type']==_0xe8f308&&_0x626f17['subType']==_0x1c5372),_0x16ce9d=_0x193e05['findIndex'](({type:_0x1d2fd0,subType:_0x1f1624})=>_0x5849bc['type']==_0x1d2fd0&&_0x5849bc['subType']==_0x1f1624);if(_0x5a5d02<0x0||_0x16ce9d<0x0)return!0x1;const _0x4a82f4=_0x626f17['getFirstRange'](),_0x2d0219=_0x5849bc['getFirstRange']();if((0x0==_0x5a5d02||0x1==_0x5a5d02)&&0x2==_0x16ce9d&&_0x4a82f4['isIntersecting'](_0x2d0219))return!0x0;if(0x2==_0x5a5d02&&0x3==_0x16ce9d){const _0x242c50=_0xc4a52d['_findSuggestions'](_0x4a82f4,'insertion')['filter'](({suggestion:_0x54b735,meta:_0x25841b})=>_0x25841b['isOwn']&&'convertInlineImageToBlock'==_0x54b735['subType']);if(_0x242c50['length']>0x1&&_0x2d0219['end']['isEqual'](_0x4a82f4['start']))return!0x0;if(0x1==_0x242c50['length']&&(_0x4a82f4['start']['isEqual'](_0x2d0219['end'])||_0x4a82f4['end']['isEqual'](_0x2d0219['start'])))return!0x0;}if(0x3==_0x5a5d02&&0x3==_0x16ce9d&&_0x4a82f4['start']['isBefore'](_0x2d0219['start'])){const _0x120c5e=_0x4a82f4['end']['nodeAfter'],_0x35f7b8=_0x2d0219['start']['nodeBefore'];return _0x26fe5a['isBlockImage'](_0x120c5e)&&_0x120c5e===_0x35f7b8;}return!0x1;}_0x189aba['model']['document']['registerPostFixer'](()=>{let _0x267d3d=!0x1;const _0xcebc4f=Array['from'](_0x189aba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4f0779,data:_0x57e7e3}of _0xcebc4f){const {group:_0x41a8a1,type:_0x97c0,subType:_0x5b7651,id:_0xd59fd3}=_0xc4a52d['_splitMarkerName'](_0x4f0779);if('suggestion'==_0x41a8a1&&_0xc4a52d['hasSuggestion'](_0xd59fd3)){if('formatBlock'==_0x97c0&&('imageStylePreApply'==_0x5b7651||'imageStylePostApply'==_0x5b7651)){const _0x413492=_0xc4a52d['getSuggestion'](_0xd59fd3);if(_0x57e7e3['newRange']){const _0x45cfd7=_0x413492['getFirstRange']()['getContainedElement']();if(_0x26fe5a['isBlockImage'](_0x45cfd7))continue;_0xc4a52d['discardSuggestion'](_0x413492),_0x267d3d=!0x0;}}if('insertion'==_0x97c0&&'imageCaption'==_0x5b7651&&!_0x57e7e3['newRange']){const _0x17ae4c=_0xc4a52d['getSuggestion'](_0xd59fd3);_0x17ae4c['next']&&_0x17ae4c['next']['isInContent']&&(_0xc4a52d['discardSuggestion'](_0x17ae4c['next']),_0x267d3d=!0x0);}}}return _0x267d3d;}),this['_registerLegacyDescription'](_0x388dbf);}['_registerLegacyDescription'](_0x5aca30){const _0x3542e7=this['editor'],_0x4debe6=_0x3542e7['locale'];_0x3542e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a15c8=>{if('formatBlock'!=_0x5a15c8['type']&&'formatInline'!=_0x5a15c8['type'])return;const {data:_0x129819}=_0x5a15c8;if(!_0x129819||'imageStyle'!=_0x129819['commandName'])return;const _0x156d83=_0x129819['commandParams'][0x0]['value'];return _0x3f364e('side'===_0x156d83?o(_0x4debe6,'FORMAT_SIDE_IMAGE'):_0x5aca30[_0x156d83]||_0x156d83);function _0x3f364e(_0x5b7f4b){return{'type':'format','content':o(_0x4debe6,'*Format:*\x20%0',_0x5b7f4b)};}});}}class lt extends _0x3a4f29{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xf85fc6){super(_0xf85fc6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4460e6=this['editor'],_0x1569d6=_0x4460e6['commands']['get']('importWord'),_0x238732=_0x4460e6['commands']['get']('trackChanges');_0x1569d6&&(_0x1569d6['on']('execute',(_0x42f4a9,[,_0x242403])=>{this['_trackChangesValueDuringImport']=_0x238732['value'],_0x242403['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x1569d6,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x1569d6,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x238732['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4460e6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4faa19,_0x217ef7){const {suggestions:_0x2cf7b3}=_0x217ef7,_0x4e9fee=this['editor']['commands']['get']('trackChanges'),_0x5c839c=_0x4e9fee['value'];this['_trackChangesValueDuringImport']!==_0x5c839c&&(_0x4e9fee['execute'](),this['_trackChangesExecuted']=!0x0),_0x2cf7b3&&_0x2cf7b3['forEach'](({id:_0x2b5aa7,type:_0x545b69,author:_0x344564,created_at:_0xea49fd})=>{const _0x1e1943={'id':_0x2b5aa7,'type':_0x545b69,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x344564,'createdAt':_0xea49fd?new Date(_0xea49fd):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1e1943);});}}class gt extends _0x3a4f29{['afterInit'](){const _0x32842e=this['editor'],_0xa607b0=_0x32842e['plugins']['get']('TrackChangesEditing');if(_0x32842e['plugins']['has']('IndentEditing')&&(_0xa607b0['enableCommand']('indent'),_0xa607b0['enableCommand']('outdent')),_0x32842e['plugins']['has']('IndentBlock')){for(const _0x3b29cb of['indentBlock','outdentBlock'])_0xa607b0['enableDefaultAttributesIntegration'](_0x3b29cb);if(_0x32842e['plugins']['has']('ListEditing')){for(const _0x10b55f of['indentBlockList','indentBlockListItem','outdentBlockList','outdentBlockListItem'])_0xa607b0['enableDefaultAttributesIntegration'](_0x10b55f);}}const _0x5416dc=_0x32842e['locale'];_0xa607b0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5416dc,'FORMAT_INDENT')),_0xa607b0['descriptionFactory']['registerAttributeLabel']('blockIndentList',o(_0x5416dc,'FORMAT_INDENT')),_0xa607b0['descriptionFactory']['registerAttributeLabel']('blockIndentListItem',o(_0x5416dc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b9564=this['editor'],_0x106a97=_0x4b9564['locale'],_0x4a38b4=_0x4b9564['plugins']['get']('TrackChangesEditing');_0x4a38b4['descriptionFactory']['registerDescriptionCallback'](_0x2156b3=>{if('formatBlock'!=_0x2156b3['type'])return;const {data:_0x5e98a4}=_0x2156b3;if(!_0x5e98a4)return;if('indentBlock'!=_0x5e98a4['commandName']&&'outdentBlock'!=_0x5e98a4['commandName'])return;const _0x424f36=_0x2156b3['getItems']()[0x0],_0x1c53c2=_0x4a38b4['descriptionFactory']['getItemLabel'](_0x424f36);return'indentBlock'==_0x5e98a4['commandName']?{'type':'format','content':o(_0x106a97,'*Indent:*\x20%0',_0x1c53c2)}:'outdentBlock'==_0x5e98a4['commandName']?{'type':'format','content':o(_0x106a97,'*Outdent:*\x20%0',_0x1c53c2)}:void 0x0;});}}class mt extends _0x3a4f29{static get['requires'](){return[_0x390b38];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class dt extends _0x3a4f29{['afterInit'](){const _0x1d5fe9=this['editor'];if(!_0x1d5fe9['plugins']['has']('LinkEditing'))return;const _0x3f5150=_0x1d5fe9['plugins']['get']('TrackChangesEditing'),_0xcc4bc3=_0x1d5fe9['commands']['get']('link');_0x3f5150['enableDefaultAttributesIntegration']('link'),_0x3f5150['enableDefaultAttributesIntegration']('unlink');for(const _0x5e57f9 of _0xcc4bc3['manualDecorators'])_0x3f5150['descriptionFactory']['registerAttributeLabel'](_0x5e57f9['id'],'link\x20('+_0x5e57f9['label']['toLowerCase']()+')');_0x3f5150['descriptionFactory']['registerDescriptionCallback'](_0x3c6777=>{if('attribute'!=_0x3c6777['type'])return;const {data:_0x4be568}=_0x3c6777;if(!_0x4be568||'linkHref'!=_0x4be568['key'])return;const _0x1f1a77=_0x4be568['newValue'],_0x524d34=_0x1d5fe9['locale'];return{'type':'format','content':null==_0x1f1a77?o(_0x524d34,'*Remove\x20link*'):o(_0x524d34,'*Set\x20link:*\x20%0','\x22'+_0x1f1a77+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e7343=this['editor'],_0x470177=_0x2e7343['locale'];_0x2e7343['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x16737e=>{if('formatInline'!=_0x16737e['type'])return;const {data:_0x4efd12}=_0x16737e;if(_0x4efd12){if('link'==_0x4efd12['commandName']){const _0x5b930f=_0x4efd12['commandParams'][0x0];return{'type':'format','content':o(_0x470177,'*Set\x20link:*\x20%0','\x22'+_0x5b930f+'\x22')};}return'unlink'==_0x4efd12['commandName']?{'type':'format','content':o(_0x470177,'*Remove\x20link*')}:void 0x0;}});}}class pt extends _0x3a4f29{['afterInit'](){const _0x16e264=this['editor'],_0x4a8f3e=_0x16e264['locale'];if(!_0x16e264['plugins']['has']('LegacyListEditing'))return;const _0x474b60=_0x16e264['plugins']['get']('TrackChangesEditing'),_0x1f6250=_0x16e264['plugins']['has']('LegacyTodoListEditing');function _0x39cc4f(_0x3d96a3){return()=>{const _0x2cfb72=_0x16e264['model']['document']['selection'],_0x19fb83=_0x16e264['commands']['get'](_0x3d96a3);if(_0x19fb83['value'])return void _0x16e264['execute']('paragraph',{});const _0x39a0d0=_0x3d96a3['slice'](0x0,-0x4),_0x2e44d5=function(_0x253d30,_0xf91f83,_0x4dff03){let _0x504d8a=Array['from'](_0x253d30)['filter'](_0x119616=>function(_0x54ddad,_0x3fef11){return _0x3fef11['checkChild'](_0x54ddad['parent'],'listItem')&&!_0x3fef11['isObject'](_0x54ddad);}(_0x119616,_0x4dff03));_0x504d8a=_0x504d8a['filter'](_0x449775=>!_0x449775['is']('element','listItem')||_0x449775['getAttribute']('listType')!=_0xf91f83);const _0x50106c=new Set();for(const _0x12327c of _0x504d8a)_0x12327c['is']('element','listItem')?_0x50106c['add'](Le(_0x12327c)):_0x50106c['add'](_0x12327c);return Array['from'](_0x50106c);}(_0x2cfb72['getSelectedBlocks'](),_0x39a0d0,_0x16e264['model']['schema']);_0x16e264['model']['change'](()=>{for(const _0x52ca97 of _0x2e44d5)_0x474b60['markBlockFormat'](_0x52ca97,{'commandName':_0x3d96a3,'commandParams':[{'forceValue':!_0x19fb83['value']}],'formatGroupId':'blockName'},Ee(_0x52ca97));});};}function _0x313a4e(_0x4213da){return()=>{const _0xf7d28e=function(_0x57d4cb){let _0x3f3cca=Array['from'](_0x57d4cb);const _0xc16ac9=_0x3f3cca['findIndex'](_0x49e339=>'listItem'!=_0x49e339['name']);return _0xc16ac9>-0x1&&(_0x3f3cca=_0x3f3cca['slice'](0x0,_0xc16ac9)),_0x3f3cca;}(_0x16e264['model']['document']['selection']['getSelectedBlocks']()),_0xf9ae9f=_0x16e264['model']['createRange'](_0x16e264['model']['createPositionAt'](_0xf7d28e[0x0],'before'),_0x16e264['model']['createPositionAt'](_0xf7d28e[_0xf7d28e['length']-0x1],'end'));_0x16e264['model']['change'](()=>{_0x474b60['markBlockFormat'](_0xf9ae9f,{'commandName':_0x4213da,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5f44e4){const _0x3a8ca6=new Set();for(const _0x4322cc of _0x5f44e4){let _0x23a8eb=_0x4322cc['nextSibling'];for(;_0x23a8eb&&_0x23a8eb['getAttribute']('listIndent')>_0x4322cc['getAttribute']('listIndent');)_0x3a8ca6['add'](_0x23a8eb),_0x23a8eb=_0x23a8eb['nextSibling'];}return Array['from'](_0x3a8ca6);}(_0xf7d28e));});};}_0x474b60['enableCommand']('numberedList',_0x39cc4f('numberedList')),_0x474b60['enableCommand']('bulletedList',_0x39cc4f('bulletedList')),_0x1f6250&&_0x474b60['enableCommand']('todoList',_0x39cc4f('todoList')),_0x474b60['enableCommand']('indentList',_0x313a4e('indentList')),_0x474b60['enableCommand']('outdentList',_0x313a4e('outdentList')),_0x1f6250&&_0x474b60['enableCommand']('checkTodoList',()=>{const _0x378b66=_0x16e264['commands']['get']('checkTodoList'),_0x57421c=Array['from'](_0x378b66['_selectedElements']);_0x57421c['filter'](_0x42a382=>_0x42a382['getAttribute']('todoListChecked')!=_0x378b66['value']),_0x16e264['model']['change'](()=>{for(const _0x470e8f of _0x57421c)_0x474b60['markBlockFormat'](_0x470e8f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x378b66['value']}]});});}),_0x474b60['descriptionFactory']['registerElementLabel']('listItem',_0xa0c6aa=>o(_0x4a8f3e,'ELEMENT_LIST_ITEM',_0xa0c6aa)),_0x474b60['descriptionFactory']['registerDescriptionCallback'](_0x381a44=>{if('formatBlock'!=_0x381a44['type']&&'formatInline'!=_0x381a44['type'])return;const {data:_0x13c39f}=_0x381a44;if(_0x13c39f){if('numberedList'==_0x13c39f['commandName']||'bulletedList'==_0x13c39f['commandName']||'todoList'==_0x13c39f['commandName'])switch(_0x13c39f['commandName']['replace']('List','')){case'bulleted':return _0x22007e(o(_0x4a8f3e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22007e(o(_0x4a8f3e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22007e(o(_0x4a8f3e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x13c39f['commandName'])return{'type':'format','content':o(_0x4a8f3e,'*Indent:*\x20%0',o(_0x4a8f3e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x13c39f['commandName'])return{'type':'format','content':o(_0x4a8f3e,'*Outdent:*\x20%0',o(_0x4a8f3e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x13c39f['commandName'])return _0x13c39f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4a8f3e,'*Check\x20item*')}:{'type':'format','content':o(_0x4a8f3e,'*Uncheck\x20item*')};}function _0x22007e(_0x49d2f4){return{'type':'format','content':o(_0x4a8f3e,'*Change\x20to:*\x20%0',_0x49d2f4)};}});}}function Le(_0xa4fbb4){const _0x5a95e5=_0xa4fbb4['getAttribute']('listIndent');if(0x0==_0x5a95e5)return _0xa4fbb4;let _0x2ca145=_0xa4fbb4;for(;_0xa4fbb4['previousSibling']&&_0xa4fbb4['previousSibling']['is']('element','listItem');){const _0x1d356c=_0xa4fbb4['previousSibling']['getAttribute']('listIndent');if(_0x1d356c==_0x5a95e5)_0x2ca145=_0xa4fbb4['previousSibling'];else{if(_0x1d356c<_0x5a95e5)break;}_0xa4fbb4=_0xa4fbb4['previousSibling'];}return _0x2ca145;}function Ee(_0x2aa179){const _0xb00f2d=[];if(_0x2aa179['is']('element','listItem')&&_0x2aa179['getAttribute']('listIndent')>0x0){let _0x427ccc=_0x2aa179['nextSibling'];for(;_0x427ccc&&'listItem'==_0x427ccc['name']&&_0x427ccc['getAttribute']('listIndent')==_0x2aa179['getAttribute']('listIndent');)_0xb00f2d['push'](_0x427ccc),_0x427ccc=_0x427ccc['nextSibling'];}return _0xb00f2d;}class wt extends _0x3a4f29{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x151655=this['editor']['config']['get']('list.properties'),_0x3f88dd=this['editor']['plugins']['get']('TrackChangesEditing');_0x151655['styles']&&_0x3f88dd['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x151655['reversed']&&_0x3f88dd['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x151655['startIndex']&&_0x3f88dd['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3f88dd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3e22cd,_0x20335a={}){const _0x5be5f8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b6f64=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5be5f8['markMultiRangeBlockFormat'](_0x2b6f64,{'commandName':'listStyle','commandParams':[{'type':_0x20335a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x2e253d,_0x56ab78={}){const _0x2c5125=this['editor']['plugins']['get']('TrackChangesEditing'),_0xbb9fc0=this['_getSuggestionBlocks'](_0x17c639=>_0x17c639['is']('element','listItem')&&'numbered'===_0x17c639['getAttribute']('listType'));if(_0xbb9fc0['length']<0x1)return;const _0x16c01f=_0xbb9fc0['map'](_0x55a829=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x55a829,'before'),this['editor']['model']['createPositionAt'](_0x55a829,0x0)));this['editor']['model']['change'](()=>{_0x2c5125['markMultiRangeBlockFormat'](_0x16c01f,{'commandName':'listReversed','commandParams':[{'reversed':_0x56ab78['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x234ff1,_0x21c85c={}){const _0xab1aec=this['editor']['plugins']['get']('TrackChangesEditing'),_0x46f679=this['_getSuggestionBlocks'](_0x4e7acc=>_0x4e7acc['is']('element','listItem')&&'numbered'===_0x4e7acc['getAttribute']('listType'));if(_0x46f679['length']<0x1)return;const _0x30dc00=_0x46f679['map'](_0xadaa66=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xadaa66,'before'),this['editor']['model']['createPositionAt'](_0xadaa66,0x0)));this['editor']['model']['change'](()=>{_0xab1aec['markMultiRangeBlockFormat'](_0x30dc00,{'commandName':'listStart','commandParams':[{'startIndex':_0x21c85c['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3db56e){if('formatBlock'!=_0x3db56e['type']&&'formatInline'!=_0x3db56e['type'])return;const _0x3be04c=this['editor']['locale'],{data:_0x26f091}=_0x3db56e;if(!_0x26f091)return;let _0x7df924,_0x300e6a;switch(_0x26f091['commandName']){case'listStyle':_0x7df924='*Change\x20to:*\x20%0',_0x300e6a={'type':'format','content':o(_0x3be04c,_0x7df924,o(_0x3be04c,this['_getTranslationKeyForListStyle'](_0x26f091['commandParams'][0x0]['type'])))};break;case'listReversed':_0x7df924=_0x26f091['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x300e6a={'type':'format','content':o(_0x3be04c,_0x7df924)};break;case'listStart':_0x7df924='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x300e6a={'type':'format','content':o(_0x3be04c,_0x7df924,_0x26f091['commandParams'][0x0]['startIndex'])};}return _0x300e6a;}['_getSuggestionBlocksForListStyle'](){const _0xdad9c6=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a8141=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a8141[0x0]?.['is']('element','listItem')&&_0x5a8141['unshift'](..._0xdad9c6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a8141[_0x5a8141['length']-0x1]?.['is']('element','listItem')&&_0x5a8141['push'](..._0xdad9c6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a8141=[...new Set(_0x5a8141)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a8141=_0x5a8141['filter'](_0x53c9f1=>_0x53c9f1['is']('element','listItem'))),_0x5a8141;}['_getSuggestionBlocks'](_0x1737fc){const _0x1bf980=this['editor']['plugins']['get']('LegacyListUtils');let _0x2d58aa=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1737fc)['map'](_0x36685c=>{const _0x2a99e0=this['editor']['model']['createPositionAt'](_0x36685c,0x0);return[..._0x1bf980['getSiblingNodes'](_0x2a99e0,'backward'),..._0x1bf980['getSiblingNodes'](_0x2a99e0,'forward')];})['flat']();return _0x2d58aa=[...new Set(_0x2d58aa)],_0x2d58aa;}['_getTranslationKeyForListStyle'](_0x37af3b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x37af3b)||'default')['toUpperCase']()+'_LIST_'+_0x37af3b['toUpperCase']()['replace'](/-/g,'_');}}class kt extends _0x3a4f29{['afterInit'](){const _0x338f27=this['editor'];if(!_0x338f27['plugins']['has']('MediaEmbedEditing'))return;const _0xf94d7a=_0x338f27['plugins']['get']('TrackChangesEditing'),_0x11e523=_0x338f27['locale'];_0xf94d7a['enableCommand']('mediaEmbed'),_0xf94d7a['descriptionFactory']['registerElementLabel']('media',_0x473c6c=>o(_0x11e523,'ELEMENT_MEDIA',_0x473c6c));}}class bt extends _0x3a4f29{['afterInit'](){const _0x480fff=this['editor'];_0x480fff['plugins']['has']('MentionEditing')&&_0x480fff['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class yt extends _0x3a4f29{['afterInit'](){const _0x95239f=this['editor'];if(!_0x95239f['plugins']['has']('MergeFieldsEditing'))return;const _0x168aad=_0x95239f['plugins']['get']('TrackChangesEditing'),_0x26c769=_0x95239f['locale'];_0x168aad['enableCommand']('insertMergeField'),_0x168aad['enableCommand']('insertMergeFieldBlock'),_0x168aad['enableCommand']('insertMergeFieldImage'),_0x168aad['descriptionFactory']['registerElementLabel']('mergeField',_0x4da663=>o(_0x26c769,'ELEMENT_MERGE_FIELD',_0x4da663)),_0x168aad['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x352e46=>o(_0x26c769,'ELEMENT_MERGE_FIELD',_0x352e46)),_0x168aad['descriptionFactory']['registerDescriptionCallback'](_0x4be788=>{if('insertion'!=_0x4be788['type']&&'deletion'!=_0x4be788['type'])return;const _0x376b3f=_0x4be788['getContainedElement']();if(null==_0x376b3f)return;const _0x1622c7=_0x95239f['plugins']['get']('MergeFieldsEditing');let _0x38a61d;switch(_0x1622c7['getMergeFieldType'](_0x376b3f)){case null:return;case'image':{const _0x58f741=_0x1622c7['unwrapAffixes'](_0x376b3f['getAttribute']('src'));_0x38a61d=_0x1622c7['getLabel'](_0x58f741)||_0x58f741;break;}default:{const _0x3343b1=_0x376b3f['getAttribute']('id');_0x38a61d=_0x1622c7['getLabel'](_0x3343b1)||_0x3343b1;break;}}return'insertion'==_0x4be788['type']?{'type':'insertion','content':o(_0x26c769,'*Insert:*\x20%0','\x22'+_0x38a61d+'\x22\x20'+o(_0x26c769,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x26c769,'*Remove:*\x20%0','\x22'+_0x38a61d+'\x22\x20'+o(_0x26c769,'ELEMENT_MERGE_FIELD'))};});}}class jt extends _0x3a4f29{['afterInit'](){const _0x2a592f=this['editor'],_0x1f9fa7=_0x2a592f['plugins']['get']('TrackChangesEditing');_0x2a592f['plugins']['has']('MultiLevelList')&&(_0x1f9fa7['enableDefaultAttributesIntegration']('multiLevelList'),_0x1f9fa7['descriptionFactory']['registerDescriptionCallback'](_0x5a5b9c=>this['handleDescriptions'](_0x5a5b9c)));}['handleDescriptions'](_0x4c0a16){const _0x16c32c=this['editor']['locale'],{data:_0xc20b2d}=_0x4c0a16,_0x25d28f={'type':'format','content':''};if(_0xc20b2d&&'listMarkerStyle'==_0xc20b2d['key']){if(!_0xc20b2d['oldValue'])return{'type':'format','content':o(_0x16c32c,'*Set\x20format:*\x20%0',o(_0x16c32c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc20b2d['newValue']+')'};if(!_0xc20b2d['newValue']){let _0xa972b7=_0x4c0a16['head'];for(;_0xa972b7;){if(_0xa972b7['data']&&'listType'==_0xa972b7['data']['key']&&_0xa972b7['data']['newValue'])return _0x25d28f;_0xa972b7=_0xa972b7['next'];}return{'type':'format','content':o(_0x16c32c,'*Remove\x20format:*\x20%0',o(_0x16c32c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xc20b2d['oldValue']+')'};}}}}class St extends _0x3a4f29{['afterInit'](){const _0xed1c1f=this['editor'];if(!_0xed1c1f['plugins']['has']('PageBreakEditing'))return;_0xed1c1f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4f2545=_0xed1c1f['plugins']['get']('TrackChangesEditing'),_0x37c3c5=_0xed1c1f['locale'];_0x4f2545['descriptionFactory']['registerElementLabel']('pageBreak',_0x116b18=>o(_0x37c3c5,'ELEMENT_PAGE_BREAK',_0x116b18));}}class It extends _0x3a4f29{['afterInit'](){const _0x42790a=this['editor'];if(!_0x42790a['plugins']['has']('Paragraph'))return;const _0x28eccd=_0x42790a['locale'],_0x239119=_0x42790a['plugins']['get']('TrackChangesEditing');_0x239119['descriptionFactory']['registerElementLabel']('paragraph',_0x2d666d=>o(_0x28eccd,'ELEMENT_PARAGRAPH',_0x2d666d)),_0x239119['enableDefaultAttributesIntegration']('paragraph'),_0x239119['enableCommand']('insertParagraph');const _0x4bc865=_0x239119['descriptionFactory'];_0x4bc865['registerDescriptionCallback'](_0x3542c4=>{if('insertion'!==_0x3542c4['type'])return;const {start:_0x40f6a0,end:_0x40a947}=_0x3542c4['getFirstRange']();if(!_0x40f6a0['isTouching'](_0x40a947)||!_0x40f6a0['nodeAfter'])return;const _0x3fb3d4=_0x42790a['model']['schema'],_0x566bc3=_0x40f6a0['nodeAfter'];return _0x3fb3d4['isBlock'](_0x566bc3)&&!_0x3fb3d4['isLimit'](_0x566bc3)&&_0x3fb3d4['checkChild'](_0x566bc3,'$text')?{'type':'insertion','content':o(_0x28eccd,'*Insert:*\x20%0',_0x4bc865['getItemLabel'](_0x566bc3,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1dd8a7=this['editor'],_0x289025=_0x1dd8a7['locale'];_0x1dd8a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a786a=>{if('formatBlock'!=_0x5a786a['type'])return;const {data:_0x1d3ea4}=_0x5a786a;return _0x1d3ea4&&'paragraph'==_0x1d3ea4['commandName']?{'type':'format','content':o(_0x289025,'*Change\x20to:*\x20%0',o(_0x289025,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class At extends _0x3a4f29{['afterInit'](){const _0x4b1eff=this['editor'];_0x4b1eff['commands']['get']('replaceSource')&&_0x4b1eff['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class _t extends _0x3a4f29{['afterInit'](){const _0xfc725c=this['editor'];if(!_0xfc725c['plugins']['has']('RemoveFormatEditing'))return;_0xfc725c['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16aa99=this['editor'];_0x16aa99['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32f320=>{if('formatBlock'!=_0x32f320['type']&&'formatInline'!=_0x32f320['type'])return;const {data:_0x5e5521}=_0x32f320;return _0x5e5521&&'removeFormat'==_0x5e5521['commandName']?{'type':'format','content':o(_0x16aa99['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class Ct extends _0x3a4f29{['afterInit'](){const _0x3c009a=this['editor'];if(!_0x3c009a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x40431e=_0x3c009a['plugins']['get']('TrackChangesEditing');_0x40431e['enableCommand']('goToPreviousRestrictedEditingException'),_0x40431e['enableCommand']('goToNextRestrictedEditingException');const _0x25e8ea=_0x3c009a['plugins']['get']('RestrictedEditingModeEditing');_0x25e8ea['enableCommand']('trackChanges'),_0x25e8ea['enableCommand']('acceptSuggestion'),_0x25e8ea['enableCommand']('discardSuggestion'),_0x25e8ea['enableCommand']('acceptAllSuggestions'),_0x25e8ea['enableCommand']('discardAllSuggestions'),_0x25e8ea['enableCommand']('acceptSelectedSuggestions'),_0x25e8ea['enableCommand']('discardSelectedSuggestions');}}class Nt extends _0x3a4f29{['afterInit'](){const _0x2bee64=this['editor'];if(!_0x2bee64['plugins']['has']('ShiftEnter'))return;const _0x220f58=_0x2bee64['plugins']['get']('TrackChangesEditing');_0x220f58['enableCommand']('shiftEnter'),_0x220f58['descriptionFactory']['registerElementLabel']('softBreak',_0xb95283=>o(_0x2bee64['locale'],'ELEMENT_LINE_BREAK',_0xb95283));}}function rn(_0x30e373,_0x5e9d13,_0x910cba){const _0x5bbe3b=[];for(const _0x3fa4dc of _0x5e9d13['getItems']())_0x3fa4dc['hasAttribute'](_0x30e373)&&_0x5bbe3b['push'](_0x910cba['createRangeOn'](_0x3fa4dc));return _0x5bbe3b;}class $t extends _0x3a4f29{['afterInit'](){const _0x594232=this['editor'],_0xe3bc62=_0x594232['plugins']['get']('TrackChangesEditing');_0x594232['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0xe3bc62['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x9447fe=this['editor'],_0x248a25=_0x9447fe['model'],_0x24e78a=_0x9447fe['locale'],_0x2dc4fc=_0x9447fe['plugins']['get']('TrackChangesEditing'),_0x3dc213='restrictedEditingException',_0x51021f=_0x9447fe['commands']['get'](_0x3dc213);_0x2dc4fc['enableCommand'](_0x3dc213,(_0x135706,_0x5d4bc1={})=>{const _0x5906ad=_0x248a25['document']['selection'];if(_0x5906ad['isCollapsed'])return void _0x135706(_0x5d4bc1);const _0x3f9072=void 0x0!==_0x5d4bc1['forceValue']?_0x5d4bc1['forceValue']:!_0x51021f['value'];_0x248a25['change'](()=>{const _0x3b9a8e=Array['from'](_0x5906ad['getRanges']());for(const _0x155f7c of _0x3b9a8e){const _0x1aff11=_0x3f9072?[_0x155f7c]:rn(_0x3dc213,_0x155f7c,_0x248a25);for(const _0xf48324 of _0x1aff11)_0x2dc4fc['markInlineFormat'](_0xf48324,{'commandName':_0x3dc213,'commandParams':[{'forceValue':_0x3f9072}]});}});}),_0x2dc4fc['descriptionFactory']['registerDescriptionCallback'](_0x34741e=>{if('formatBlock'!=_0x34741e['type']&&'formatInline'!=_0x34741e['type'])return;const {data:_0x550a6b}=_0x34741e;return _0x550a6b&&_0x550a6b['commandName']==_0x3dc213?_0x550a6b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24e78a,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x24e78a,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0xe71e9=this['editor'],_0x3754a3=_0xe71e9['locale'],_0x13ca14=_0xe71e9['plugins']['get']('TrackChangesEditing'),_0x2e0b83='restrictedEditingExceptionBlock',_0x1a2666=this['editor']['commands']['get'](_0x2e0b83);_0x13ca14['enableCommand'](_0x2e0b83,(_0xf8d2ce,_0x2d8e5c={})=>{const _0x10d92f=this['editor']['model']['document']['selection'],_0x56155a=_0x2d8e5c&&void 0x0!==_0x2d8e5c['forceValue']?_0x2d8e5c['forceValue']:!_0x1a2666['value'];let _0x151b92=[];if(_0x56155a){const _0x1a31b9=Array['from'](_0x10d92f['getSelectedBlocks']())['filter'](_0x12b389=>function(_0x386378){return!!_0x386378['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x12b389)||function(_0x31d8ee,_0x4e3371){const _0x39f04b=_0x4e3371['createContext'](_0x31d8ee['parent']);if(!_0x4e3371['checkChild'](_0x39f04b,'restrictedEditingException'))return!0x1;if(!_0x4e3371['checkChild'](_0x39f04b['push']('restrictedEditingException'),_0x31d8ee))return!0x1;return!0x0;}(_0x12b389,this['editor']['model']['schema']));_0x151b92=to(_0x1a31b9,_0xe71e9['model']);}else{const _0x46caf9=Array['from'](_0x10d92f['getSelectedBlocks']())['map'](_0x5893f0=>function(_0x400d16){let _0x105048=_0x400d16;for(;_0x105048['parent'];){if('restrictedEditingException'==_0x105048['parent']['name'])return _0x105048;_0x105048=_0x105048['parent'];}return null;}(_0x5893f0))['filter'](_0x4969dc=>!!_0x4969dc);_0x151b92=to(_0x46caf9,_0xe71e9['model']);}_0xe71e9['model']['change'](()=>{for(const _0x18d9d6 of _0x151b92)_0x13ca14['markBlockFormat'](_0x18d9d6,{'commandName':_0x2e0b83,'commandParams':[{'forceValue':_0x56155a}]});});}),_0x13ca14['descriptionFactory']['registerDescriptionCallback'](_0x558908=>{const {data:_0x5de908}=_0x558908;if(_0x5de908&&_0x5de908['commandName']==_0x2e0b83)return _0x5de908['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3754a3,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3754a3,'FORMAT_RESTRICTED_DISABLED')};});}}class vt extends _0x3a4f29{['afterInit'](){const _0x763510=this['editor'];if(!_0x763510['plugins']['has']('Style')||!_0x763510['plugins']['has']('DataSchema'))return;const _0x43ba2b=_0x763510['plugins']['get']('TrackChangesEditing'),_0x5d7b87=_0x763510['locale'],_0x1535ed=_0x763510['config']['get']('style')||{},_0x2879ba=_0x763510['plugins']['get']('GeneralHtmlSupport'),_0xb4aef8=_0x763510['plugins']['get']('StyleUtils')['normalizeConfig'](_0x763510['plugins']['get']('DataSchema'),_0x1535ed['definitions']);_0x43ba2b['enableDefaultAttributesIntegration']('style');const _0x276b51=new Set();for(const _0x522c4e of _0xb4aef8['block']){const _0x831c4=_0x2879ba['getGhsAttributeNameForElement'](_0x522c4e['element']);_0x276b51['add'](_0x831c4);}const _0x3c594f=new Set();for(const _0x393d52 of _0xb4aef8['inline']){const _0x408256=_0x2879ba['getGhsAttributeNameForElement'](_0x393d52['element']);_0x3c594f['add'](_0x408256);for(const _0x33a31d of _0x393d52['ghsAttributes'])_0x3c594f['add'](_0x33a31d);}for(const _0x59da23 of _0x276b51)_0x43ba2b['descriptionFactory']['registerAttributeLabel'](_0x59da23,o(_0x5d7b87,'FORMAT_STYLE'));for(const _0x186ce5 of _0x3c594f)_0x43ba2b['descriptionFactory']['registerAttributeLabel'](_0x186ce5,o(_0x5d7b87,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5938b0=this['editor'],_0x331eba=_0x5938b0['locale'];_0x5938b0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f5a33=>{if('formatBlock'!=_0x3f5a33['type']&&'formatInline'!=_0x3f5a33['type'])return;const {data:_0x34d6c4}=_0x3f5a33;return _0x34d6c4&&'style'===_0x34d6c4['commandName']?_0x34d6c4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x331eba,'*Set\x20format:*\x20%0',_0x34d6c4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x331eba,'*Remove\x20format:*\x20%0',_0x34d6c4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Dt extends _0x3a4f29{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x23c2be){super(_0x23c2be),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4113a3=this['editor'],_0x172438=_0x4113a3['model']['document']['selection'];if(!_0x4113a3['plugins']['has']('TableEditing'))return;const _0x2554ed=_0x4113a3['locale'],_0x122226=_0x4113a3['plugins']['get']('TrackChangesEditing'),_0x28b3ba=_0x4113a3['plugins']['get']('TableUtils');_0x122226['descriptionFactory']['registerElementLabel']('table',_0x4534ec=>o(_0x2554ed,'ELEMENT_TABLE',_0x4534ec)),this['_setupColumnsRowsFixing'](),_0x122226['enableCommand']('insertTable'),_0x122226['enableCommand']('selectTableRow'),_0x122226['enableCommand']('selectTableColumn');for(const _0x3d986b of['insertTableRowAbove','insertTableRowBelow']){const _0x641069=_0x4113a3['commands']['get'](_0x3d986b);_0x122226['enableCommand'](_0x3d986b,_0x2e0525=>{_0x4113a3['model']['change'](_0x1d4800=>{_0x2e0525();const _0xca4a12='above'===_0x641069['order'],_0x1488b6=_0x28b3ba['getSelectionAffectedTableCells'](_0x172438),_0x2ad984=_0x28b3ba['getRowIndexes'](_0x1488b6),_0x32cd07=_0xca4a12?_0x2ad984['first']-0x1:_0x2ad984['last']+0x1,_0x2fcb9f=_0x1488b6[0x0]['findAncestor']('table'),_0x3c186d=_0x28b3ba['createTableWalker'](_0x2fcb9f,{'startRow':_0x32cd07,'endRow':_0x32cd07}),_0x127a2c=Array['from'](_0x3c186d)['map'](_0x35ac1b=>_0x1d4800['createRangeOn'](_0x35ac1b['cell']));_0x122226['markMultiRangeInsertion'](_0x127a2c,'tableRow');});});}for(const _0x3271c3 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1b7f5d=_0x4113a3['commands']['get'](_0x3271c3);_0x122226['enableCommand'](_0x3271c3,_0xf538f5=>{_0x4113a3['model']['change'](_0x4a334e=>{_0xf538f5();const _0x3f5140='left'===_0x1b7f5d['order'],_0xf4d1b6=_0x28b3ba['getSelectionAffectedTableCells'](_0x172438),_0x4490a8=_0x28b3ba['getColumnIndexes'](_0xf4d1b6),_0x421a9c=_0x3f5140?_0x4490a8['first']-0x1:_0x4490a8['last']+0x1,_0x4c2e8c=_0xf4d1b6[0x0]['findAncestor']('table'),_0x4aaa56=_0x28b3ba['createTableWalker'](_0x4c2e8c,{'startRow':0x0,'column':_0x421a9c,'includeAllSlots':!0x1}),_0x4413da=Array['from'](_0x4aaa56)['map'](_0x58a90e=>_0x4a334e['createRangeOn'](_0x58a90e['cell']));_0x122226['markMultiRangeInsertion'](_0x4413da,'tableColumn');});});}for(const _0xfe544c of['removeTableRow','removeTableColumn']){const _0x799a0a=_0xfe544c['substr'](0xb),_0x23a28a=_0x799a0a['toLowerCase'](),_0x4b532e=_0x23a28a['substr'](0x0,0x3)+'span',_0x47206e='table'+_0x799a0a,_0x32c03c='min'+_0x799a0a,_0x53ca8a='max'+_0x799a0a;_0x122226['enableCommand'](_0xfe544c,()=>{_0x4113a3['model']['change'](_0x16fe91=>{const _0x4ebd11=_0x28b3ba['getSelectionAffectedTableCells'](_0x172438),_0x96b31d=_0x4ebd11[0x0]['findAncestor']('table');let _0x567929;if('removeTableRow'==_0xfe544c){const _0x169d28=_0x28b3ba['getRowIndexes'](_0x4ebd11);_0x567929={'startRow':_0x169d28['first'],'endRow':_0x169d28['last'],'includeAllSlots':!0x0};}else{const _0x1961aa=_0x28b3ba['getColumnIndexes'](_0x4ebd11);_0x567929={'startColumn':_0x1961aa['first'],'endColumn':_0x1961aa['last'],'includeAllSlots':!0x0};}const _0x3859ca=_0x28b3ba['createTableWalker'](_0x96b31d,_0x567929),_0x4c6001=Array['from'](_0x3859ca)['map'](({cell:_0x432d4d})=>_0x432d4d),_0x5742ca=_e(_0x4c6001['filter'](_0x4197be=>_0x4197be['hasAttribute'](_0x4b532e))),_0x39b208=_e(_0x4c6001['filter'](_0x448dc9=>!_0x448dc9['hasAttribute'](_0x4b532e)))['map'](_0x5d10e6=>_0x16fe91['createRangeOn'](_0x5d10e6)),_0x4948db=_0x122226['markMultiRangeDeletion'](_0x39b208,_0x47206e);if(_0x4948db&&('tableRow'==_0x4948db['subType']||'tableColumn'==_0x4948db['subType'])){const _0x1cff60=this['_getSuggestionCoords'](_0x4948db);for(const _0x21efeb of _0x5742ca){const _0x3fe57f=_0x16fe91['createRangeOn'](_0x21efeb),_0x1f408c=_0x28b3ba['getCellLocation'](_0x21efeb),_0x19e500=_0x21efeb['getAttribute'](_0x4b532e)-0x1,_0x380450=_0x1cff60[_0x32c03c],_0x266f06=_0x1cff60[_0x53ca8a];_0x380450<=_0x1f408c[_0x23a28a]&&_0x1f408c[_0x23a28a]+_0x19e500<=_0x266f06&&_0x4948db['addRange'](_0x3fe57f);}}});});}function _0xf6b3b4(_0x54532d){const _0x280c81=Array['from'](_0x172438['getRanges']())['map'](_0x252329=>_0x1d3f47['fromRange'](_0x252329));_0x4113a3['model']['change'](_0x5e65f3=>{const _0x5ae6fa=_0x5e65f3['batch'];_0x54532d=_0x54532d['filter'](_0x70aae3=>'$graveyard'!=_0x70aae3['root']['rootName']),_0x5e65f3['setSelection'](_0x54532d),_0x4113a3['commands']['get']('removeTableRow')['refresh'](),_0x4113a3['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4113a3['model']['enqueueChange'](()=>{_0x4113a3['model']['enqueueChange'](_0x5ae6fa,_0x27631d=>{const _0x21ce21=_0x280c81['filter'](_0x1ac239=>'$graveyard'!=_0x1ac239['root']['rootName']);_0x21ce21['length']>0x0&&_0x27631d['setSelection'](_0x21ce21);for(const _0x1cd6e8 of _0x280c81)_0x1cd6e8['detach']();});});});}function _0x13dbe9(_0x1a81be){_0x4113a3['model']['change'](_0x1e15e8=>{const _0xcdb260=Array['from'](_0x172438['getRanges']())['map'](_0x316588=>_0x1d3f47['fromRange'](_0x316588)),_0x43308e=[];for(const _0x4187d3 of _0x1a81be)for(const _0x317001 of _0x4187d3['getItems']({'shallow':!0x0}))_0x43308e['push'](_0x317001);for(const _0x599be4 of _0x43308e)'$graveyard'!=_0x599be4['root']['rootName']&&(_0x1e15e8['setSelection'](_0x1e15e8['createPositionAt'](_0x599be4,0x0)),_0x4113a3['commands']['get']('removeTableColumn')['refresh'](),_0x4113a3['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3ffd4e=_0xcdb260['filter'](_0x5aa855=>'$graveyard'!=_0x5aa855['root']['rootName']);_0x3ffd4e['length']>0x0&&_0x1e15e8['setSelection'](_0x3ffd4e);for(const _0x2f11f0 of _0xcdb260)_0x2f11f0['detach']();});}function _0x84cf1e(_0x48fefd,_0x2e8520){return _0x2e8520['every'](_0x2e80db=>_0x48fefd['some'](_0x522c65=>_0x522c65['end']['isEqual'](_0x2e80db['start'])||_0x2e80db['end']['isEqual'](_0x522c65['start'])));}function _0x4d9dff(_0x5198d8,_0x19f3f0){return!_0x5198d8['some'](_0xaa5962=>_0x19f3f0['some'](_0x30a1d7=>_0xaa5962['isIntersecting'](_0x30a1d7)))&&_0x5198d8['some'](_0x11e811=>_0x19f3f0['some'](_0x1463ec=>_0x11e811['end']['isTouching'](_0x1463ec['start'])));}_0x122226['descriptionFactory']['registerDescriptionCallback'](_0x50b66c=>{if('insertion'!=_0x50b66c['type']&&'deletion'!=_0x50b66c['type'])return;const _0x12d240=_0x50b66c['getContainedElement']();if(null!=_0x12d240&&_0x12d240['is']('element','table')){if('insertion'==_0x50b66c['type']){const _0x473a0c=_0x50b66c['getItems']()['filter'](_0x16b534=>_0x16b534['is']('$textProxy'))['map'](_0x4e1997=>_0x4e1997['data']);if(_0x473a0c['length'])return{'type':'insertion','content':o(_0x2554ed,'*Insert:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x473a0c['join']('\x20')+'\x22'))};}if('deletion'==_0x50b66c['type']){const _0x5cd8f5=_0x50b66c['getItems']()['filter'](_0x2a45f2=>_0x2a45f2['is']('$textProxy'))['map'](_0x584182=>_0x584182['data']);if(_0x5cd8f5['length'])return{'type':'deletion','content':o(_0x2554ed,'*Remove:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5cd8f5['join']('\x20')+'\x22'))};}}}),_0x122226['descriptionFactory']['registerDescriptionCallback'](_0x19fff4=>{if('tableRow'==_0x19fff4['subType']){const _0x3dea6e=_0x19fff4['getItems']()['filter'](_0x1a065d=>_0x1a065d['is']('$textProxy'))['map'](_0x53dc17=>_0x53dc17['data']),_0x180f41=this['_getSuggestionCoords'](_0x19fff4),_0x393684=_0x180f41['maxRow']-_0x180f41['minRow']+0x1;if('insertion'==_0x19fff4['type'])return _0x3dea6e['length']?{'type':'insertion','content':o(_0x2554ed,'*Insert:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x393684,'\x22'+_0x3dea6e['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2554ed,'*Insert:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_ROW',_0x393684))};if('deletion'==_0x19fff4['type'])return _0x3dea6e['length']?{'type':'deletion','content':o(_0x2554ed,'*Remove:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x393684,'\x22'+_0x3dea6e['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2554ed,'*Remove:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_ROW',_0x393684))};}if('tableColumn'==_0x19fff4['subType']){const _0x3d1443=_0x19fff4['getItems']()['filter'](_0x2bb7ba=>_0x2bb7ba['is']('$textProxy'))['map'](_0xebc15a=>_0xebc15a['data']),_0x461d02=this['_getSuggestionCoords'](_0x19fff4),_0x45ea05=_0x461d02['maxColumn']-_0x461d02['minColumn']+0x1;if('insertion'==_0x19fff4['type'])return _0x3d1443['length']?{'type':'insertion','content':o(_0x2554ed,'*Insert:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x45ea05,'\x22'+_0x3d1443['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2554ed,'*Insert:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_COLUMN',_0x45ea05))};if('deletion'==_0x19fff4['type'])return _0x3d1443['length']?{'type':'deletion','content':o(_0x2554ed,'*Remove:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x45ea05,'\x22'+_0x3d1443['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2554ed,'*Remove:*\x20%0',o(_0x2554ed,'ELEMENT_TABLE_COLUMN',_0x45ea05))};}}),_0x122226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xf6b3b4),_0x122226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xf6b3b4),_0x122226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13dbe9),_0x122226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13dbe9),_0x122226['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x84cf1e),_0x122226['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x84cf1e),_0x122226['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4d9dff),_0x122226['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4d9dff);}['_acceptFormatSuggestionCallbackFactory'](){const _0x251a42=this['editor'],_0x36d961=_0x251a42['model']['document']['selection'];return(_0x2c9140,_0x4e4718)=>{_0x251a42['model']['change'](_0x44c176=>{const {commandName:_0x3b507f,commandParams:_0x695c0a}=_0x4e4718;let _0x38177e=_0x2c9140[0x0]['end']['nodeBefore'];_0x695c0a&&_0x695c0a[0x0]&&!0x1===_0x695c0a[0x0]['forceValue']&&(_0x38177e=_0x2c9140[0x0]['start']['nodeAfter']);const _0x347abf=_0x44c176['createRangeIn'](_0x38177e);if('$graveyard'==_0x347abf['root']['rootName'])return;const _0x554890=Array['from'](_0x36d961['getRanges']())['map'](_0x22dd93=>_0x1d3f47['fromRange'](_0x22dd93));_0x44c176['setSelection'](_0x347abf),_0x251a42['commands']['get'](_0x3b507f)['refresh'](),_0x695c0a['push']({'forceDefaultExecution':!0x0}),_0x251a42['execute'](_0x3b507f,..._0x695c0a);const _0x2c104c=_0x554890['filter'](_0x145a97=>'$graveyard'!=_0x145a97['root']['rootName']);_0x2c104c['length']>0x0&&_0x44c176['setSelection'](_0x2c104c);for(const _0x5d21d2 of _0x554890)_0x5d21d2['detach']();});};}['_getCoordsForCells'](_0x4e5db0){const _0x536873=this['editor']['plugins']['get']('TableUtils');let _0x212017=Number['MAX_SAFE_INTEGER'],_0x498e67=Number['MIN_SAFE_INTEGER'],_0x175e05=Number['MAX_SAFE_INTEGER'],_0x52b638=Number['MIN_SAFE_INTEGER'];for(const _0x247946 of _0x4e5db0){if('$graveyard'==_0x247946['root']['rootName'])continue;const {row:_0x21f3d6,column:_0x1e220a}=_0x536873['getCellLocation'](_0x247946),_0x3baa4c=_0x247946['hasAttribute']('rowspan')?_0x247946['getAttribute']('rowspan')-0x1:0x0,_0xf4fe82=_0x247946['hasAttribute']('colspan')?_0x247946['getAttribute']('colspan')-0x1:0x0;_0x212017=_0x21f3d6<_0x212017?_0x21f3d6:_0x212017,_0x498e67=_0x21f3d6+_0x3baa4c>_0x498e67?_0x21f3d6+_0x3baa4c:_0x498e67,_0x175e05=_0x1e220a<_0x175e05?_0x1e220a:_0x175e05,_0x52b638=_0x1e220a+_0xf4fe82>_0x52b638?_0x1e220a+_0xf4fe82:_0x52b638;}return{'minRow':_0x212017,'maxRow':_0x498e67,'minColumn':_0x175e05,'maxColumn':_0x52b638};}['_setupColumnsRowsFixing'](){const _0x43408f=this['editor'],_0x701714=_0x43408f['plugins']['get']('TrackChangesEditing'),_0x5443f0=_0x43408f['plugins']['get']('TableUtils');_0x43408f['model']['document']['on']('change:data',()=>{const _0x28a942=Array['from'](_0x43408f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2bb9f5,data:_0xed0086}of _0x28a942){const {group:_0x297306,id:_0x488566,subType:_0x31698e}=_0x701714['_splitMarkerName'](_0x2bb9f5);if('suggestion'!=_0x297306)continue;if(null!=_0xed0086['oldRange'])continue;const _0x51da8a=_0x701714['getSuggestion'](_0x488566);this['_tablePostFixingSubtypes']['includes'](_0x31698e)&&this['_tableSuggestions']['add'](_0x51da8a);}},{'priority':'low'});const _0x5a1b59=(_0x736aa8,_0x57620a)=>{let _0x373dc5=!0x1;const _0x13a115=_0x57620a['createRangeOn'](_0x736aa8),_0x10b944=_0x736aa8['findAncestor']('table'),_0x324af3=_0x5443f0['getCellLocation'](_0x736aa8);for(const _0xb2431b of this['_tableSuggestions']){const _0x437a58=_0xb2431b['subType'],_0x164f0b=_0x437a58['startsWith']('tablePaste'),_0x42c411=_0x437a58['substr'](_0x164f0b?0xa:0x5),_0xf4ab2=_0x42c411['toLowerCase'](),_0x4d0d29=_0xf4ab2['substr'](0x0,0x3)+'span',_0x432a9b='min'+_0x42c411,_0x383699='max'+_0x42c411;if(!_0xb2431b['isInContent'])continue;if(_0x10b944!=_0xb2431b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb2431b['isIntersectingWithRange'](_0x13a115))continue;const _0x10c1f3=_0x736aa8['hasAttribute'](_0x4d0d29)?_0x736aa8['getAttribute'](_0x4d0d29)-0x1:0x0,_0x3d7dc3=this['_getSuggestionCoords'](_0xb2431b),_0x2fbe14=_0x3d7dc3[_0x432a9b],_0x3f8cbb=_0x3d7dc3[_0x383699];_0x2fbe14<=_0x324af3[_0xf4ab2]&&_0x324af3[_0xf4ab2]+_0x10c1f3<=_0x3f8cbb&&(_0xb2431b['addRange'](_0x13a115),_0x373dc5=!0x0);}return _0x373dc5;};_0x43408f['model']['document']['registerPostFixer'](_0x160b4a=>{let _0x19422d=!0x1;for(const _0x1c4d9d of _0x43408f['model']['document']['differ']['getChanges']())if('insert'==_0x1c4d9d['type']){if('tableRow'==_0x1c4d9d['name']){for(const _0x449805 of _0x1c4d9d['position']['nodeAfter']['getChildren']())_0x19422d=_0x19422d||_0x5a1b59(_0x449805,_0x160b4a);}else'tableCell'==_0x1c4d9d['name']&&(_0x19422d=_0x19422d||_0x5a1b59(_0x1c4d9d['position']['nodeAfter'],_0x160b4a));}return _0x19422d;});}['_getSuggestionCoords'](_0x2694ab){return this['_getCoordsForCells'](_0x2694ab['getRanges']()['map'](_0x3697df=>_0x3697df['start']['nodeAfter']));}}function _e(_0x1bde1b){return Array['from'](new Set(_0x1bde1b)['values']());}class Bt extends _0x3a4f29{static get['requires'](){return[Dt];}['afterInit'](){const _0x385c1b=this['editor'],_0x46c462=_0x385c1b['model']['document']['selection'],_0x23f565=_0x385c1b['locale'];if(!_0x385c1b['plugins']['has']('TableEditing'))return;const _0x9ad9dd=_0x385c1b['plugins']['get']('TrackChangesEditing'),_0x1e8ad3=_0x385c1b['plugins']['get']('TableUtils'),_0x16e3ce=_0x385c1b['plugins']['get'](Dt);_0x16e3ce['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x9ad9dd['enableCommand']('mergeTableCells',()=>{const _0x1b5f72=_0x1e8ad3['getSelectionAffectedTableCells'](_0x385c1b['model']['document']['selection']);_0x385c1b['model']['change'](()=>{_0x9ad9dd['markMultiRangeBlockFormat'](_0x1b5f72,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x385c1b['commands']['get']('mergeTableCells')['on']('execute',(_0x2cd209,_0x446c3c)=>{_0x385c1b['commands']['get']('trackChanges')['value']&&(_0x446c3c['length']>0x0&&_0x446c3c[_0x446c3c['length']-0x1]&&_0x446c3c[_0x446c3c['length']-0x1]['forceDefaultExecution']||_0x9ad9dd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2cd209['stop']());},{'priority':'highest'});for(const _0xd76238 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2d749e=_0x385c1b['commands']['get'](_0xd76238);_0x9ad9dd['enableCommand'](_0xd76238,()=>{const _0x49d758=_0x385c1b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5c61c4=>_0x5c61c4['is']('element','tableCell')),_0xa27c4e=_0x2d749e['value'];_0x385c1b['model']['change'](()=>{_0x9ad9dd['markMultiRangeBlockFormat']([_0x49d758,_0xa27c4e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x4c2700 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x19a092=_0x385c1b['commands']['get'](_0x4c2700);_0x9ad9dd['enableCommand'](_0x4c2700,()=>{const _0x5c48af=_0x1e8ad3['getSelectionAffectedTableCells'](_0x385c1b['model']['document']['selection'])[0x0],_0x3b0ff8=_0x5c48af['findAncestor']('table'),{column:_0x4dcea1,row:_0x230cfe}=_0x1e8ad3['getCellLocation'](_0x5c48af);let _0x5d2d53=[];if('horizontally'==_0x19a092['direction']){const _0x5b8081=_0x1e8ad3['createTableWalker'](_0x3b0ff8,{'startRow':_0x230cfe,'endRow':_0x230cfe,'includeAllSlots':!0x0});_0x5d2d53=Array['from'](_0x5b8081)['map'](_0x4ec3e1=>_0x4ec3e1['cell']);}else{const _0x369856=_0x1e8ad3['createTableWalker'](_0x3b0ff8,{'column':_0x4dcea1,'includeAllSlots':!0x0});_0x5d2d53=Array['from'](_0x369856)['map'](_0x16c628=>_0x16c628['cell']);}_0x385c1b['model']['change'](_0x1522bf=>{_0x9ad9dd['markBlockFormat'](_0x1522bf['createRangeOn'](_0x5c48af),{'commandName':_0x4c2700,'commandParams':[]},_0x5d2d53,_0x4c2700);});});}_0x9ad9dd['descriptionFactory']['registerDescriptionCallback'](_0x2fb132=>{if('formatBlock'!=_0x2fb132['type']&&'formatInline'!=_0x2fb132['type'])return;const {data:_0x24e7cb}=_0x2fb132;return _0x24e7cb&&'mergeTableCells'==_0x24e7cb['commandName']?{'type':'format','content':o(_0x23f565,'*Merge\x20cells*')}:void 0x0;}),_0x9ad9dd['descriptionFactory']['registerDescriptionCallback'](_0x3dc18f=>{if('formatBlock'!=_0x3dc18f['type']&&'formatInline'!=_0x3dc18f['type'])return;const {data:_0x2d8217}=_0x3dc18f;return _0x2d8217?'splitTableCellVertically'==_0x2d8217['commandName']?{'type':'format','content':o(_0x23f565,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2d8217['commandName']?{'type':'format','content':o(_0x23f565,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x313c1d=_0x16e3ce['_acceptFormatSuggestionCallbackFactory']();for(const _0x2b7780 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x9ad9dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2b7780,'accept',_0x313c1d);for(const _0x19c8f8 of['splitTableCellVertically','splitTableCellHorizontally'])_0x9ad9dd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x19c8f8,'accept',_0x313c1d);_0x9ad9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x77b94e=>{_0x385c1b['model']['change'](_0x11c11a=>{const _0x168725=Array['from'](_0x46c462['getRanges']())['map'](_0x233735=>_0x1d3f47['fromRange'](_0x233735));_0x11c11a['setSelection'](_0x77b94e),_0x385c1b['commands']['get']('mergeTableCells')['refresh'](),_0x385c1b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5cbe13=_0x168725['filter'](_0x442d79=>'$graveyard'!=_0x442d79['root']['rootName']);_0x5cbe13['length']>0x0&&_0x11c11a['setSelection'](_0x5cbe13);for(const _0x4e870e of _0x168725)_0x4e870e['detach']();});});for(const _0x2992ca of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2de110=_0x385c1b['commands']['get'](_0x2992ca);_0x2de110['on']('set:isEnabled',(_0x1a33f1,_0xd76c60,_0x165e4a)=>{if(_0x165e4a){const _0x31bcfb=_0x385c1b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xc258d7=>_0xc258d7['is']('element','tableCell'));this['_areMergableCells'](_0x2de110['value'],_0x31bcfb)||(_0x1a33f1['return']=!0x1,_0x1a33f1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x536fcb=this['editor']['commands']['get']('mergeTableCells'),_0x1914c7=this['editor']['plugins']['get']('TableUtils');if(!_0x536fcb['isEnabled'])return!0x1;const _0x51ff68=_0x1914c7['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x88fbcc of _0x51ff68)for(const _0x3a6722 of _0x51ff68)if(_0x88fbcc!=_0x3a6722&&!this['_areMergableCells'](_0x88fbcc,_0x3a6722))return!0x1;return!0x0;}['_areMergableCells'](_0x14bfed,_0x3308f5){const _0x4641ac=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5e99ef=this['editor']['model']['createRangeOn'](_0x14bfed),_0x52b3fa=this['editor']['model']['createRangeOn'](_0x3308f5),_0x4d3746=new Set(),_0x34bacb=new Set();for(const _0x37f635 of _0x4641ac['getSuggestions']())if(('insertion'==_0x37f635['type']||'deletion'==_0x37f635['type']||'mergeTableCells'==_0x37f635['subType'])&&_0x37f635['isInContent']){for(const _0x200075 of _0x37f635['getRanges']())_0x200075['containsRange'](_0x5e99ef,!0x0)&&_0x4d3746['add'](_0x37f635['type']+':'+_0x37f635['author']['id']),_0x200075['containsRange'](_0x52b3fa,!0x0)&&_0x34bacb['add'](_0x37f635['type']+':'+_0x37f635['author']['id']);}if(_0x4d3746['size']!=_0x34bacb['size'])return!0x1;for(const _0x2b65ea of _0x4d3746)if(!_0x34bacb['has'](_0x2b65ea))return!0x1;return!0x0;}}class Ot extends _0x3a4f29{static get['requires'](){return[Dt];}['afterInit'](){const _0x532f13=this['editor'];if(!_0x532f13['plugins']['has']('TableEditing'))return;const _0xcacc5d=_0x532f13['locale'],_0x5c39a7=_0x532f13['plugins']['get']('TrackChangesEditing');_0x5c39a7['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5c39a7['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5c39a7['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xcacc5d,'FORMAT_HEADER_ROW')),_0x5c39a7['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xcacc5d,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x128f5c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x479053=this['editor']['plugins']['get'](Dt)['_acceptFormatSuggestionCallbackFactory']();_0x128f5c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x479053),_0x128f5c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x479053),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x372cb5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d33ad=this['editor']['plugins']['get']('TableUtils');function _0x3f79aa({showActiveMarker:_0x17d2b0=!0x0,setDataAttribute:_0x59a272=!0x0}={}){return(_0x2082ba,_0x4cebe2,_0x107b08)=>{const {type:_0x5a74c3,id:_0x552f62}=_0x372cb5['_splitMarkerName'](_0x4cebe2['markerName']);if(!_0x372cb5['hasSuggestion'](_0x552f62))return;const _0x29f6bc=_0x372cb5['getSuggestion'](_0x552f62),_0x23c0d3=_0x29f6bc['data'];if('formatBlock'!=_0x29f6bc['type']||!_0x23c0d3||'setTableColumnHeader'!=_0x23c0d3['commandName'])return;if(_0x4cebe2['item'])return void _0x2082ba['stop']();if(!_0x107b08['consumable']['consume'](_0x4cebe2['markerRange'],_0x2082ba['name']))return;const _0x3ba68a=_0x4cebe2['markerRange']['start']['nodeAfter'],_0xcdf22c=_0x4cebe2['markerRange']['end']['nodeBefore'],_0x5eb8ef=_0x3ba68a['parent']['parent'],{column:_0x26cddf}=_0x4d33ad['getCellLocation'](_0x3ba68a),{column:_0x4db8b9}=_0x4d33ad['getCellLocation'](_0xcdf22c);for(let _0x593670=_0x26cddf;_0x593670<=_0x4db8b9;_0x593670++){const _0x3a27d9=_0x4d33ad['createTableWalker'](_0x5eb8ef,{'column':_0x593670,'includeAllSlots':!0x1});for(const _0x334283 of _0x3a27d9){const _0x2866a2=_0x334283['cell'],_0x266221=_0x107b08['mapper']['toViewElement'](_0x2866a2);_0x107b08['writer']['addClass']('ck-suggestion-marker-'+_0x5a74c3,_0x266221),_0x59a272&&_0x107b08['writer']['setAttribute']('data-suggestion',_0x552f62,_0x266221),_0x107b08['mapper']['bindElementToMarker'](_0x266221,_0x4cebe2['markerName']),_0x17d2b0&&(_0x372cb5['activeMarkers']['includes'](_0x4cebe2['markerName'])?_0x107b08['writer']['addClass']('ck-suggestion-marker--active',_0x266221):_0x107b08['writer']['removeClass']('ck-suggestion-marker--active',_0x266221));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x3f79aa(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x26c871,_0x25fe25,_0x2415b1)=>{_0x2415b1['options']['showSuggestionHighlights']&&_0x3f79aa({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x26c871,_0x25fe25,_0x2415b1);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x12a2c4,_0x4e036c,_0x441918)=>{const {type:_0x43fee5,id:_0x2d40c2}=_0x372cb5['_splitMarkerName'](_0x4e036c['markerName']);if(!_0x372cb5['hasSuggestion'](_0x2d40c2))return;const _0x4f1b50=_0x372cb5['getSuggestion'](_0x2d40c2),_0x596a65=_0x4f1b50['data'];if('formatBlock'!=_0x4f1b50['type']||!_0x596a65||'setTableColumnHeader'!=_0x596a65['commandName'])return;const _0x2ff283=_0x441918['mapper']['markerNameToElements'](_0x4e036c['markerName']);if(_0x2ff283){for(const _0x287e30 of _0x2ff283)_0x441918['writer']['removeClass']('ck-suggestion-marker-'+_0x43fee5,_0x287e30),_0x441918['writer']['removeClass']('ck-suggestion-marker--active',_0x287e30),_0x441918['writer']['removeAttribute']('data-suggestion',_0x287e30),_0x441918['mapper']['unbindElementFromMarkerName'](_0x287e30,_0x4e036c['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x362a5c=this['editor'],_0x2cd112=_0x362a5c['locale'];function _0x702478(_0x12fc7d){return{'type':'format','content':o(_0x2cd112,'*Format:*\x20%0',_0x12fc7d)};}_0x362a5c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x169d3b=>{if('formatBlock'!=_0x169d3b['type'])return;const {data:_0x37f8ff}=_0x169d3b;if(_0x37f8ff){if('setTableRowHeader'==_0x37f8ff['commandName']){const _0x49207b=_0x37f8ff['commandParams'][0x0]['forceValue'];return _0x702478(o(_0x2cd112,_0x49207b?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x37f8ff['commandName']){const _0x16f60a=_0x37f8ff['commandParams'][0x0]['forceValue'];return _0x702478(o(_0x2cd112,_0x16f60a?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class xt extends _0x3a4f29{['afterInit'](){const _0x52b8d7=this['editor'],_0x30e413=_0x52b8d7['locale'],_0x2f6334=_0x52b8d7['plugins']['get']('TrackChangesEditing');function _0x5b74a5(_0x4c38ae){return{'type':'format','content':''+o(_0x30e413,'*Set\x20table\x20type:*\x20%0',_0x4c38ae)};}_0x52b8d7['plugins']['has']('TableLayout')&&(_0x2f6334['enableCommand']('insertTableLayout'),_0x2f6334['enableDefaultAttributesIntegration']('tableType'),_0x2f6334['descriptionFactory']['registerElementLabel'](_0x38d100=>_0x38d100['is']('element','table')&&'layout'===_0x38d100['getAttribute']('tableType'),_0x25024e=>o(_0x30e413,'ELEMENT_LAYOUT_TABLE',_0x25024e)),_0x2f6334['descriptionFactory']['registerDescriptionCallback'](_0xd5a9bb=>{const {data:_0x58f369}=_0xd5a9bb;if(_0x58f369&&'tableType'==_0x58f369['key'])switch(_0x58f369['newValue']){case'layout':return _0x5b74a5(o(_0x30e413,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5b74a5(o(_0x30e413,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0xea031f=>[_0xea031f,null]));class Mt extends _0x3a4f29{static get['requires'](){return[Dt];}['afterInit'](){const _0xbae002=this['editor'];if(!_0xbae002['plugins']['has']('TableClipboard'))return;const _0x4bfdd9=_0xbae002['plugins']['get']('TrackChangesEditing'),_0x113fc5=_0xbae002['plugins']['get']('TableUtils'),_0x2bb3e2=_0xbae002['plugins']['get'](Dt),_0x46c181=_0xbae002['plugins']['get']('TableClipboard'),_0xe7d825=_0xbae002['plugins']['get']('TableSelection'),_0x256d27=_0xbae002['plugins']['get'](_0x14d766);_0x2bb3e2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xbae002['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xbae002['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x11ae92=null,_0x39061a=!0x1;_0x256d27['on']('contentInsertion',(_0x567cfe,_0xc7663c)=>{_0x39061a='paste'===_0xc7663c['method'];}),_0xbae002['model']['on']('insertContent',(_0x5bbcfe,_0x4194f9)=>{if(!_0x39061a&&null===_0xe7d825['getSelectedTableCells']())return;const [_0x4d25d0,_0x57e8be]=_0x4194f9,_0x3bea5d=_0x4194f9[_0x4194f9['length']-0x1];_0x3bea5d&&_0x3bea5d['forceDefaultExecution']||_0x4bfdd9['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x5f8f46,_0x5d094b,_0x39a947,_0x2878df,_0xf7d634){if(_0x5d094b&&!_0x5d094b['is']('documentSelection'))return!0x1;const _0x25f7c7=_0xf7d634['getTableIfOnlyTableInContent'](_0x5f8f46,_0x39a947);if(!_0x25f7c7||!Oe(_0x25f7c7,void 0x0,_0x2878df))return!0x1;const _0x384b3b=_0x2878df['getSelectionAffectedTableCells'](_0x39a947['document']['selection']);if(!_0x384b3b['length'])return!0x1;const _0x14d3b9=_0x384b3b[0x0]['findAncestor']('table'),_0x14ec37=_0x2878df['getRowIndexes'](_0x384b3b),_0xf8362d=_0x2878df['getColumnIndexes'](_0x384b3b),_0x3c6429={'startRow':_0x14ec37['first'],'endRow':_0x14ec37['last'],'startColumn':_0xf8362d['first'],'endColumn':_0xf8362d['last']};return 0x1==_0x384b3b['length']&&(_0x3c6429['endRow']+=_0x2878df['getRows'](_0x25f7c7)-0x1,_0x3c6429['endColumn']+=_0x2878df['getColumns'](_0x25f7c7)-0x1),Oe(_0x14d3b9,_0x3c6429,_0x2878df);}(_0x4d25d0,_0x57e8be,_0xbae002['model'],_0x113fc5,_0x46c181)&&(_0x5bbcfe['stop'](),_0x11ae92={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xbae002['model']['change'](()=>{_0xbae002['model']['insertContent'](_0x4194f9[0x0],_0x4194f9[0x1],_0x4194f9[0x2],{'forceDefaultExecution':!0x0});const _0x889969=_0x4e95d3(),{rowInsertionRanges:_0x561876,columnInsertionRanges:_0x1744d5,insertionRanges:_0x15a9b6,deletionRanges:_0x49e60f,cells:_0x177d1b}=_0x11ae92;_0x561876['length']&&_0x4bfdd9['markMultiRangeInsertion'](_0x561876,'tablePasteRow',{'tablePasteChainId':_0x889969}),_0x1744d5['length']&&_0x4bfdd9['markMultiRangeInsertion'](_0x1744d5,'tablePasteColumn',{'tablePasteChainId':_0x889969}),_0x15a9b6['length']&&(_0x4bfdd9['markMultiRangeInsertion'](_0x15a9b6,'tablePaste',{'tablePasteChainId':_0x889969,'skipNestingCheck':!0x0}),_0x15a9b6['forEach'](_0x1b3dbc=>_0x1b3dbc['detach']?.())),_0x49e60f['length']&&(_0x4bfdd9['markMultiRangeDeletion'](_0x49e60f,'tablePaste',{'tablePasteChainId':_0x889969,'skipNestingCheck':!0x0}),_0x49e60f['forEach'](_0x4b807a=>_0x4b807a['detach']?.()));const _0x366251=_0x4bfdd9['markMultiRangeBlockFormat'](_0x177d1b['map'](({element:_0x2b2742})=>_0x2b2742),{'formatGroupId':_0x4e95d3()},[],'tablePasteCell',{'tablePasteChainId':_0x889969});if(_0x366251){const _0x2270e9=_0x366251['getMarkers'](),_0x54097e=[];for(const {element:_0x3dbca9,attributes:_0x5c6eb2}of _0x177d1b){if(!_0x5c6eb2)continue;const _0x581489=_0xbae002['model']['createRangeOn'](_0x3dbca9),_0x3a3db0=_0x2270e9['find'](_0x9a33af=>_0x9a33af['getRange']()['isEqual'](_0x581489));_0x3a3db0&&_0x54097e['push']([_0x3a3db0['name'],_0x5c6eb2]);}_0x54097e['length']&&_0x366251['setAttribute']('markerAttributes',Object['fromEntries'](_0x54097e));}_0x11ae92=null;}));},{'priority':_0x3bc3f8['high']+0xa}),_0x256d27['on']('contentInsertion',()=>{_0x39061a=!0x1;},{'priority':'lowest'}),_0xbae002['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x11156f,_0x1b26d5)=>{const [_0x5775d8,_0xe55766,,_0x100dac]=_0x1b26d5;if(!_0x11ae92)return;_0x11156f['stop']();const _0x4d9c79=_0x5775d8['cell'],_0x2f0931=_0xe55766,_0x455909=Be(_0x4d9c79),_0x5bc986=Be(_0x2f0931);_0x11156f['return']=_0x4d9c79;let _0x511dd8=null,_0x385724=null;if(_0x5bc986||_0x455909){if(_0x455909&&!_0x5bc986){_0x100dac['remove'](_0x4d9c79['getChild'](0x0));for(const _0x4551d6 of Array['from'](_0x2f0931['getChildren']()))_0x100dac['insert'](_0x4551d6,_0x4d9c79,'end');const _0x226520=_0x11ae92['rowInsertionIndexes']['includes'](_0x5775d8['row']),_0x3e5ff9=_0x11ae92['columnInsertionIndexes']['includes'](_0x5775d8['column']);_0x226520||_0x3e5ff9||(_0x511dd8=_0x1d3f47['fromRange'](_0x100dac['createRangeIn'](_0x4d9c79)));}else _0x5bc986&&!_0x455909&&(_0x385724=_0x100dac['createRangeIn'](_0x4d9c79));}else{const _0x380f7d=_0x100dac['createElement']('tableCellSuggestion'),_0x1f5378=_0x100dac['createElement']('tableCellSuggestion');_0x100dac['wrap'](_0x100dac['createRangeIn'](_0x4d9c79),_0x1f5378),_0x100dac['insert'](_0x380f7d,_0x4d9c79,0x0);for(const _0x56d937 of Array['from'](_0x2f0931['getChildren']()))_0x100dac['insert'](_0x56d937,_0x380f7d,'end');_0x511dd8=_0x1d3f47['fromRange'](_0x100dac['createRangeOn'](_0x380f7d)),_0x385724=_0x1d3f47['fromRange'](_0x100dac['createRangeOn'](_0x1f5378));}const _0x4f8452=Array['from'](_0x2f0931['getAttributes']())['filter'](([_0x58d47f])=>Re['includes'](_0x58d47f));_0x11ae92['cells']['push']({'element':_0x4d9c79,'attributes':_0x4f8452['length']?Object['fromEntries'](_0x4f8452):null}),_0x511dd8&&_0x11ae92['insertionRanges']['push'](_0x511dd8),_0x385724&&_0x11ae92['deletionRanges']['push'](_0x385724);},{'priority':'high'}),_0x113fc5['on']('insertColumns',(_0x143bcd,_0x3917d1)=>{const [_0x1e2251,_0x1b667a={}]=_0x3917d1;if(!_0x11ae92)return;const _0x3c1ffe=_0x1b667a['at']||0x0,_0x408c53=_0x1b667a['columns']||0x1;_0x11ae92['columnInsertionIndexes']=new Array(_0x408c53)['fill'](_0x3c1ffe)['map']((_0x5c2b51,_0x531e6f)=>_0x5c2b51+_0x531e6f);for(const {cell:_0x1ac863}of _0x113fc5['createTableWalker'](_0x1e2251,{'startColumn':_0x3c1ffe,'endColumn':_0x3c1ffe+_0x408c53-0x1}))_0x11ae92['columnInsertionRanges']['push'](_0xbae002['model']['createRangeOn'](_0x1ac863));},{'priority':'low'}),_0x113fc5['on']('insertRows',(_0x18d25e,_0x24838c)=>{const [_0x2635ec,_0x62c9e3={}]=_0x24838c;if(!_0x11ae92)return;const _0x5a27fa=_0x62c9e3['at']||0x0,_0x455a12=_0x62c9e3['rows']||0x1;_0x11ae92['rowInsertionIndexes']=new Array(_0x455a12)['fill'](_0x5a27fa)['map']((_0x344413,_0x7bf4b)=>_0x344413+_0x7bf4b);for(const {cell:_0x931d94}of _0x113fc5['createTableWalker'](_0x2635ec,{'startRow':_0x5a27fa,'endRow':_0x5a27fa+_0x455a12-0x1}))_0x11ae92['rowInsertionRanges']['push'](_0xbae002['model']['createRangeOn'](_0x931d94));},{'priority':'low'}),_0x4bfdd9['descriptionFactory']['registerDescriptionCallback'](_0x394de7=>{if(_0x394de7['subType']&&_0x394de7['subType']['startsWith']('tablePaste'))return _0x394de7['previous']?{}:{'type':'insertion','content':o(_0xbae002['locale'],'*Replace\x20table\x20cells*')};});const _0x554a0a=()=>!0x1;for(const _0x752753 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4bfdd9['_suggestionFactory']['registerCustomCallback']('insertion',_0x752753,'join',_0x554a0a),_0x4bfdd9['_suggestionFactory']['registerCustomCallback']('deletion',_0x752753,'join',_0x554a0a),_0x4bfdd9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x752753,'join',_0x554a0a);_0x4bfdd9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x554a0a),_0x4bfdd9['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1d61db,_0x7a8d46,_0x2c5512)=>{const _0x4d9c12=_0x1d61db['map'](_0x4b6582=>_0x4b6582['getContainedElement']())['filter'](_0x3d2d4e=>_0x3d2d4e),_0x490a20=new Map(_0x4d9c12['map'](_0x21e1f5=>[_0x21e1f5,null]));if(_0x11ae92){for(const {element:_0x5d47bc,attributes:_0x560212}of _0x11ae92['cells'])_0x560212&&_0x490a20['set'](_0x5d47bc,_0x560212);}else{if(_0x2c5512&&_0x2c5512['markerAttributes'])for(const [_0x15995c,_0x28f88d]of Object['entries'](_0x2c5512['markerAttributes'])){const _0x33dd57=_0xbae002['model']['markers']['get'](_0x15995c),_0x3edf01=_0x33dd57?_0x33dd57['getRange']()['getContainedElement']():null;_0x3edf01&&_0x490a20['set'](_0x3edf01,_0x28f88d);}}_0xbae002['model']['change'](_0x276d86=>{for(const [_0x2f50a1,_0x3be6b7]of _0x490a20)_0x276d86['setAttributes']({...Ae,..._0x3be6b7},_0x2f50a1);});});const _0x48fad3=(_0x337134,_0x1c0b7d)=>{_0x4bfdd9['_suggestionFactory']['registerCustomCallback'](_0x337134,'tablePaste',_0x1c0b7d,(_0x3335bb,_0x240c9c,_0x5c5026)=>{_0xbae002['model']['change'](_0xcee4cc=>{const _0x18e2df=[];for(const _0x2b6aca of _0x3335bb){const _0x48f1d2=_0x2b6aca['start']['nodeAfter'];_0x48f1d2['is']('element','tableCellSuggestion')&&_0x18e2df['push'](_0x48f1d2);}_0x4bfdd9['_suggestionFactory']['getSuggestionCallback'](_0x337134,null,_0x1c0b7d)(_0x3335bb,_0x240c9c,_0x5c5026);for(const _0x145aed of _0x18e2df)'$graveyard'!=_0x145aed['root']['rootName']&&_0xcee4cc['unwrap'](_0x145aed);});});};_0x48fad3('insertion','accept'),_0x48fad3('insertion','discard'),_0x48fad3('deletion','accept'),_0x48fad3('deletion','discard'),_0x4bfdd9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3b5c2d=>{const _0x57f3b8=_0x3b5c2d['map'](_0x411f7a=>_0x411f7a['getContainedElement']()),_0x1b3b00=_0x57f3b8[0x0]['findAncestor']('table'),{minRow:_0x52a606,maxRow:_0x343d85}=_0x2bb3e2['_getCoordsForCells'](_0x57f3b8);_0x113fc5['removeRows'](_0x1b3b00,{'at':_0x52a606,'rows':_0x343d85-_0x52a606+0x1});}),_0x4bfdd9['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x140105=>{const _0x4da7cf=_0x140105['map'](_0x54ee78=>_0x54ee78['getContainedElement']()),_0x3b13ce=_0x4da7cf[0x0]['findAncestor']('table'),{minColumn:_0x43dbaa,maxColumn:_0x832670}=_0x2bb3e2['_getCoordsForCells'](_0x4da7cf);_0x113fc5['removeColumns'](_0x3b13ce,{'at':_0x43dbaa,'columns':_0x832670-_0x43dbaa+0x1});});const _0x419a68=(_0x40ee27,_0x330764)=>{if(!_0x330764['subType']||!_0x330764['subType']['startsWith']('tablePaste'))return;const _0x1805b1=_0x330764['attributes']['tablePasteChainId'],_0x1c5aa1=_0x4bfdd9['getSuggestions']()['filter'](_0x2f604b=>_0x2f604b['isInContent']&&_0x2f604b['attributes']&&_0x2f604b['attributes']['tablePasteChainId']==_0x1805b1);_0x1c5aa1['length']&&_0x330764['getAllAdjacentSuggestions']()['length']!=_0x1c5aa1['length']&&_0x1c5aa1['reduce']((_0x1fd347,_0x51dc3a)=>(_0x1fd347['next']=_0x51dc3a,_0x51dc3a['previous']=_0x1fd347,_0x51dc3a));};function _0x574caa(_0x4983fb,_0x16536b=!0x0){const {id:_0x308283,authorId:_0x2af2f4}=_0x4bfdd9['_splitMarkerName'](_0x4983fb['markerName']),_0x52fcf4=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x38fcca=_0x4bfdd9['activeMarkers']['includes'](_0x4983fb['markerName']);return _0x38fcca&&_0x52fcf4['push']('ck-suggestion-marker--active'),{'classes':_0x52fcf4,'attributes':{'data-suggestion':_0x308283,'data-author-id':_0x2af2f4},'priority':_0x38fcca&&_0x16536b?0xbc2:0xbb8};}_0x4bfdd9['on']('suggestionLoaded',_0x419a68,{'priority':'high'}),_0x4bfdd9['on']('suggestionUnloaded',_0x419a68,{'priority':'high'}),_0xbae002['model']['document']['registerPostFixer'](()=>{let _0x35e568=!0x1;const _0x14b69f=Array['from'](_0xbae002['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ea727,data:_0xdde0ae}of _0x14b69f){const {group:_0x44d366,type:_0x242ee8,id:_0x127411}=_0x4bfdd9['_splitMarkerName'](_0x2ea727);if('suggestion'!=_0x44d366||'deletion'!=_0x242ee8||_0xdde0ae['oldRange'])continue;if(!_0x4bfdd9['hasSuggestion'](_0x127411))continue;const _0x4293c9=_0x4bfdd9['getSuggestion'](_0x127411)['getRanges'](),_0x3ccbeb=_0xbae002['plugins']['get']('Users')['me'];for(const _0x1fc8d5 of _0x4bfdd9['getSuggestions']()){if(!_0x1fc8d5['isInContent']||_0x1fc8d5['author']!=_0x3ccbeb)continue;if('formatBlock'!=_0x1fc8d5['type']||'tablePasteCell'!=_0x1fc8d5['subType'])continue;if(_0x1fc8d5['getRanges']()['every'](_0x341230=>_0x4293c9['some'](_0x8ca2f3=>_0x8ca2f3['containsRange'](_0x341230,!0x0)))){for(const _0x1eaf6f of _0x1fc8d5['getAllAdjacentSuggestions']())_0x1eaf6f['isInContent']&&(_0x1eaf6f['discard'](),_0x35e568=!0x0);}}}return _0x35e568;}),_0xbae002['model']['document']['registerPostFixer'](_0x4d64ee=>{const _0x50d72a=_0xbae002['commands']['get']('redo');if(!_0x50d72a||!_0x50d72a['_createdBatches']['has'](_0x4d64ee['batch']))return!0x1;let _0x1f5b80=!0x1;const _0x128249=_0xbae002['plugins']['get']('Users')['me'],_0x3d30e8=_0xbae002['model']['document']['differ']['getChanges'](),_0x345fed=Array['from'](_0xbae002['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x57c6ac,data:_0x52b8c9})=>{const {group:_0x161151,subType:_0x31fc75,authorId:_0x3503c9}=_0x4bfdd9['_splitMarkerName'](_0x57c6ac);return'suggestion'==_0x161151&&'tablePaste'==_0x31fc75&&_0x3503c9==_0x128249['id']&&!_0x52b8c9['oldRange'];});for(const _0x32f692 of _0x3d30e8){if('insert'!=_0x32f692['type']||'tableCellSuggestion'!=_0x32f692['name']||0x1!=_0x32f692['length'])continue;const _0x538c34=_0x4d64ee['createRange'](_0x32f692['position'],_0x32f692['position']['getShiftedBy'](0x1));if(!_0x345fed['find'](({data:_0x4b2669})=>_0x4b2669['newRange']['isEqual'](_0x538c34))){for(const {name:_0xdc9f94,data:_0x24c5b4}of _0x345fed)if(_0x538c34['containsRange'](_0x24c5b4['newRange'])){_0x4d64ee['updateMarker'](_0xdc9f94,{'range':_0x538c34}),_0x1f5b80=!0x0;break;}}}return _0x1f5b80;}),_0xbae002['model']['document']['registerPostFixer'](_0x1c24a3=>{let _0x3f8671=!0x1;const _0x3f6f84=_0xbae002['plugins']['get']('Users')['me'],_0x58b339=_0x4bfdd9['getSuggestions']()['filter'](_0x275108=>_0x275108['isInContent']&&_0x275108['author']==_0x3f6f84),_0x470d22=new Set(),_0x4d1472=new Set();for(const _0x2dd497 of _0x58b339)if('tablePaste'==_0x2dd497['subType'])for(const _0x2e80ee of _0x2dd497['getMarkers']()){const _0x4cc25d=_0x2e80ee['getRange']()['getContainedElement']();if(_0x4cc25d){if(_0x4cc25d['is']('element','tableCellSuggestion')&&Be(_0x4cc25d)){_0x2dd497['removeMarker'](_0x2e80ee['name']),_0x470d22['add'](_0x4cc25d),_0x3f8671=!0x0;const _0x3421a6=_0x4cc25d['nextSibling'],_0x103c28=_0x4cc25d['previousSibling'],_0x2ea515=_0x3421a6&&_0x3421a6['is']('element','tableCellSuggestion'),_0xb77c02=_0x103c28&&_0x103c28['is']('element','tableCellSuggestion');_0x2ea515&&!_0x470d22['has'](_0x3421a6)&&_0x4d1472['add'](_0x3421a6),_0xb77c02&&!_0x470d22['has'](_0x103c28)&&_0x4d1472['add'](_0x103c28);}else _0x4cc25d['is']('element','paragraph')&&_0x4cc25d['isEmpty']&&(_0x2dd497['removeMarker'](_0x2e80ee['name']),_0x3f8671=!0x0);}}else{if('tablePasteCell'==_0x2dd497['subType']){if(!_0x2dd497['attributes']||!_0x2dd497['attributes']['tablePasteChainId'])continue;const _0x14207b=_0x2dd497['attributes']['markerAttributes'];if(_0x14207b&&Object['keys'](_0x14207b)['length'])continue;const _0x67bc5a=_0x2dd497['attributes']['tablePasteChainId'];let _0x4e3e76=!0x0,_0x3c6b00=!0x0;for(const _0x3e4840 of _0x58b339)if(_0x3e4840['subType']&&_0x3e4840['subType']['startsWith']('tablePaste')){if(!_0x3e4840['attributes']['tablePasteChainId']){_0x3c6b00=!0x1;break;}if(_0x3e4840['id']!=_0x2dd497['id']&&_0x3e4840['attributes']['tablePasteChainId']==_0x67bc5a){_0x4e3e76=!0x1;break;}}_0x3c6b00&&_0x4e3e76&&(_0x2dd497['removeMarkers'](),_0x3f8671=!0x0);}}for(const _0x279475 of _0x470d22)_0x1c24a3['remove'](_0x279475);for(const _0x5354ac of _0x4d1472)_0x1c24a3['unwrap'](_0x5354ac);return _0x3f8671;}),_0xbae002['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x42bfa6=>_0x574caa(_0x42bfa6),'converterPriority':'high'}),_0xbae002['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x29f560,_0x42d907)=>_0x42d907['options']['showSuggestionHighlights']?_0x574caa(_0x29f560,!0x1):null,'converterPriority':'high'});const _0x5d3ffd=_0xbae002['editing']['view'];this['listenTo'](_0x5d3ffd['document'],'clipboardOutput',(_0x4dbcef,_0x118361)=>{const _0x573084=[];for(const _0x2bd897 of _0x5d3ffd['createRangeIn'](_0x118361['content'])['getItems']())_0x2bd897['is']('element','suggestion-td')&&_0x573084['push'](_0x2bd897);_0x5d3ffd['change'](_0x9f89f0=>{for(const _0x3210e8 of _0x573084)_0x9f89f0['move'](_0x9f89f0['createRangeIn'](_0x3210e8),_0x9f89f0['createPositionBefore'](_0x3210e8)),_0x9f89f0['remove'](_0x3210e8);});});}}function Be(_0x2a19bd){if(_0x2a19bd['isEmpty'])return!0x0;const _0x573577=_0x2a19bd['getChild'](0x0);return _0x573577['is']('element','paragraph')&&_0x573577['isEmpty'];}function Oe(_0x1cc861,_0x58ada3={},_0x1c47e3){for(const {isAnchor:_0x2b8a6e,cellHeight:_0xf26daf,cellWidth:_0x171706}of _0x1c47e3['createTableWalker'](_0x1cc861,{'includeAllSlots':!0x0,..._0x58ada3}))if(!_0x2b8a6e||0x1!=_0xf26daf||0x1!=_0x171706)return!0x1;return!0x0;}class Rt extends _0x3a4f29{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x209605=this['editor']['plugins']['get']('TrackChangesEditing');_0x209605['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x209605['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x209605['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x209605['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x209605['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x209605['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x288c03,_0x33a04e){const _0x1e1073=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4a63ec=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x58ab61=_0x33a04e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2ada0d=_0x4a63ec['getColumnGroupElement'](_0x58ab61);let _0x2927b9=_0x2ada0d?_0x4a63ec['getTableColumnsWidths'](_0x2ada0d):null,_0x3757f3=_0x58ab61['getAttribute']('tableWidth')||null;const _0x1352f6=_0x33a04e['tableWidth']||_0x3757f3,_0x4fe528=_0x33a04e['columnWidths']||_0x2927b9,_0x21e30d=this['editor']['plugins']['get']('Users')['me'];for(const _0x15d4a2 of _0x1e1073['getSuggestions']()){const _0x26b454=_0x15d4a2['getContainedElement']();if('resizeTable'===_0x15d4a2['subType']&&_0x26b454===_0x58ab61){_0x15d4a2['author']!==_0x21e30d&&_0x15d4a2['discard']();const _0x20da7c=_0x15d4a2['data']['commandParams'];_0x3757f3=_0x20da7c[0x0]['tableWidth'],_0x2927b9=_0x20da7c[0x0]['columnWidths'];break;}}_0x288c03({'table':_0x58ab61,'tableWidth':_0x1352f6,'columnWidths':_0x4fe528}),_0x1e1073['markBlockFormat'](_0x58ab61,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3757f3,'columnWidths':_0x2927b9}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xbbf5c9){if('formatBlock'!=_0xbbf5c9['type']&&'formatInline'!=_0xbbf5c9['type'])return;const {data:_0x2a116f}=_0xbbf5c9;if(_0x2a116f&&'resizeTable'===_0x2a116f['formatGroupId']){const _0x3b4282='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3b4282)};}}}class Tt extends _0x3a4f29{['afterInit'](){const _0x21ce05=this['editor'];_0x21ce05['plugins']['has']('Template')&&_0x21ce05['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Et extends _0x3a4f29{['afterInit'](){const _0x1461e8=this['editor'];if(!_0x1461e8['commands']['get']('insertTableOfContents'))return;_0x1461e8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x94599e=_0x1461e8['plugins']['get']('TrackChangesEditing'),_0x360163=_0x1461e8['locale'];_0x94599e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1e72eb=>o(_0x360163,'ELEMENT_TABLE_OF_CONTENTS',_0x1e72eb));}}class Ut extends _0x3a4f29{['afterInit'](){const _0x7e07df=this['editor'];if(!_0x7e07df['plugins']['has']('Title'))return;const _0x5bf8d1=_0x7e07df['plugins']['get']('TrackChangesEditing');_0x5bf8d1['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x7e07df['locale'],'ELEMENT_TITLE')),_0x7e07df['model']['document']['registerPostFixer'](_0x5c2930=>{let _0x17ddac=!0x1;const _0x3c0b45=Array['from'](_0x7e07df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xff6394,data:_0x50b74c}of _0x3c0b45){const {group:_0x3eb1c6}=_0x5bf8d1['_splitMarkerName'](_0xff6394);if('suggestion'!==_0x3eb1c6||!_0x50b74c['newRange'])continue;const _0x9d8600=_0x50b74c['newRange'],_0x1d9365=_0x9d8600['end']['nodeBefore'];if(!_0x1d9365||!_0x1d9365['is']('element','title-content'))continue;if(!_0x9d8600['start']['isTouching'](_0x9d8600['end']))continue;const _0x297940=_0x7e07df['model']['schema']['getNearestSelectionRange'](_0x9d8600['end'],'forward');if(_0x297940&&_0x297940['isCollapsed']){const _0x3aa5f3=_0x5c2930['createRange'](_0x9d8600['start'],_0x297940['start']);_0x3aa5f3['isEqual'](_0x9d8600)||(_0x5c2930['updateMarker'](_0xff6394,{'range':_0x3aa5f3}),_0x17ddac=!0x0);}_0x17ddac||(_0x5c2930['removeMarker'](_0xff6394),_0x17ddac=!0x0);}return _0x17ddac;});}}class Vt extends _0x3a4f29{['afterInit'](){const _0x3a0335=this['editor'],_0x4d59d0=_0x3a0335['plugins']['get']('TrackChangesEditing');_0x3a0335['plugins']['has']('Uploadcare')&&(_0x4d59d0['enableCommand']('uploadcare'),_0x3a0335['plugins']['has']('UploadcareImageEdit')&&(_0x4d59d0['enableCommand']('uploadcareImageEdit'),_0x4d59d0['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4d59d0['descriptionFactory']['registerDescriptionCallback'](_0x545fbd=>{if('attribute'!=_0x545fbd['type'])return;const {data:_0x12fe7f}=_0x545fbd;return _0x12fe7f&&'uploadcareImageId'==_0x12fe7f['key']?{'type':'format','content':''}:void 0x0;})));}}class Ft extends _0x3a4f29{['afterInit'](){const _0x59afc5=this['editor'],_0x3041c3=_0x59afc5['plugins']['get']('TrackChangesEditing');_0x59afc5['plugins']['has']('UndoEditing')&&(_0x3041c3['enableCommand']('undo'),_0x3041c3['enableCommand']('redo'));}}class Pt extends _0x3a4f29{static get['requires'](){return[Dt];}['afterInit'](){const _0x25a9c8=this['editor'];if(!_0x25a9c8['plugins']['has']('TableCaptionEditing'))return;_0x25a9c8['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Gt extends _0x3a4f29{['tableProperties'];['tableCellProperties'];constructor(_0x243549){super(_0x243549),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x243549['config']['get']('experimentalFlags.tableCellTypeSupport')&&this['tableCellProperties']['push']('tableCellType');}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x53bc7f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x9a380 of this['tableProperties'])_0x53bc7f['enableCommand'](_0x9a380,(_0x81b733,_0x10fcf6)=>{const _0x492e69=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x9a380,[_0x492e69],this['tableProperties'],'tableProperties',_0x81b733,_0x10fcf6);});_0x53bc7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x53bc7f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53bc7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5427e5,_0x50cab6)=>this['handleDiscardAction'](this['tableProperties'],_0x5427e5,_0x50cab6)),_0x53bc7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2e5c17 of this['tableCellProperties'])this['editor']['commands']['get'](_0x2e5c17)&&_0x53bc7f['enableCommand'](_0x2e5c17,(_0x2c91ac,_0x41d263)=>{const _0x4baa5a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2e5c17,_0x4baa5a,this['tableCellProperties'],'tableCellProperties',_0x2c91ac,_0x41d263);});_0x53bc7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x53bc7f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x53bc7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5a6fae,_0x107d90)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5a6fae,_0x107d90)),_0x53bc7f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&_0x53bc7f['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE'));}_0x53bc7f['descriptionFactory']['registerDescriptionCallback'](_0x26548a=>this['handleSuggestionDescription'](_0x26548a)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0xae92a9,_0x10a624,_0x4c8e03,_0x5f472f,_0x56f932,_0x234abc){const _0x3d896d=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x234abc['batch'],()=>{for(const _0x1a463d of _0x10a624){if(this['_getSuggestion'](_0x1a463d,_0x5f472f))_0x56f932(_0x234abc);else{const _0x5c334b={};for(const _0xaa2abc of _0x4c8e03){const _0x419ef0=_0x1a463d['getAttribute'](_0xaa2abc);void 0x0!==_0x419ef0&&(_0x5c334b[_0xaa2abc]=_0x419ef0);}_0x56f932(_0x234abc),_0x3d896d['markBlockFormat'](_0x1a463d,{'commandParams':[_0x5c334b]},[],_0x5f472f);}}});}['handleDiscardAction'](_0x454781,_0x8f5e49,_0x69d715){const _0x576a0d=_0x8f5e49[0x0]['start']['nodeAfter'],_0x2d716d=_0x69d715['commandParams'][0x0];this['editor']['model']['change'](_0x432063=>{for(const _0x59a752 of _0x454781)void 0x0!==_0x2d716d[_0x59a752]?_0x432063['setAttribute'](_0x59a752,_0x2d716d[_0x59a752],_0x576a0d):_0x432063['removeAttribute'](_0x59a752,_0x576a0d);});}['handleSuggestionDescription'](_0x5a7b0a){if(_0x5a7b0a['data'])switch(_0x5a7b0a['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x10cd5f,_0x252e27){const _0x178447=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x123414 of _0x178447['getSuggestions']({'skipNotAttached':!0x0})){const _0x52e5cb=_0x123414['getContainedElement']();if(_0x123414['subType']===_0x252e27&&_0x52e5cb===_0x10cd5f)return _0x123414;}return null;}['_registerTablePropertiesAttributes'](){const _0x20a998=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dd771=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x54f822 of _0x1dd771){const _0x2d90fd=_0x54f822['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x20a998['descriptionFactory']['registerAttributeLabel'](_0x54f822,o(this['editor']['locale'],'FORMAT_'+_0x2d90fd));}}}class Lt extends _0x3a4f29{['afterInit'](){const _0x2f803e=this['editor'];if(!_0x2f803e['plugins']['has']('LineHeight'))return;const _0x33c8f0=_0x2f803e['plugins']['get']('TrackChangesEditing'),_0x3f1e1e=_0x2f803e['locale'];_0x33c8f0['enableDefaultAttributesIntegration']('lineHeight'),_0x33c8f0['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x3f1e1e,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3a4f29{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x3f5ffa,_0x57f159,_0x5e0070,_0x4867a3,U,V,F,G,L,J,q,K,z,W,H,Q,Z,tt,nt,it,et,st,ot,rt,at,ct,ut,ht,ft,lt,gt,mt,pt,wt,jt,dt,X,Lt,Y,kt,bt,yt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Bt,Ot,xt,Pt,Mt,Rt,Et,Gt,Tt,Ut,Vt,Ft];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf0e612){super(_0xf0e612),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1b20ef,_0x151392,_0x3a7dde,_0x325076)=>{this['_model']['change'](()=>{for(const _0x548bd6 of[..._0x325076,..._0x3a7dde])this['_model']['markers']['has'](_0x548bd6)&&_0xf0e612['editing']['reconvertMarker'](_0x548bd6);});}),this['descriptionFactory']=new E(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xf0e612['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0xf0e612['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xf0e612['config']['get']('trackChanges.trackFormatChanges'),_0xf0e612['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xf0e612['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xf0e612,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x13ac81=this['editor'];_0x13ac81['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x20f074,{writer:_0x2177c4})=>{let _0x94e9d2='suggestion:'+_0x20f074['getAttribute']('suggestion-type')+':'+_0x20f074['getAttribute']('id');return _0x20f074['getAttribute']('marker-count')&&(_0x94e9d2+=':'+_0x20f074['getAttribute']('marker-count')),_0x2177c4['createElement']('$marker',{'data-name':_0x94e9d2});}}),_0x13ac81['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x13ac81['model']['document']['registerPostFixer'](_0x17bacc=>{let _0x1f6673=!0x1;const _0x1d776b=Array['from'](_0x13ac81['model']['document']['differ']['getChangedMarkers']()),_0x50bc03=new Set();for(const {name:_0x1fa9e2,data:_0x458405}of _0x1d776b){const {group:_0x5dc230,type:_0x4d651f,subType:_0x182025,id:_0x28e4d9}=this['_splitMarkerName'](_0x1fa9e2);if('suggestion'!==_0x5dc230)continue;const _0x55a953=_0x182025?'suggestion:'+_0x4d651f+':'+_0x182025+':'+_0x28e4d9:'suggestion:'+_0x4d651f+':'+_0x28e4d9,_0x428636=_0x13ac81['model']['markers']['getMarkersGroup'](_0x55a953),_0x2c6393=_0x13ac81['model']['markers']['get'](_0x1fa9e2),_0x1e51bf=this['_suggestions']['get'](_0x28e4d9);if(null!=_0x458405['newRange']){'formatInline'==_0x4d651f&&(_0x1f6673=_0x1f6673||Wt(_0x458405['newRange'],_0x1fa9e2,_0x17bacc,_0x13ac81['model']['schema']));const _0x34f601='attribute'==_0x4d651f&&this['_isBlockAttribute'](_0x182025['split']('|')[0x0]),_0x5cad17='attribute'==_0x4d651f&&this['_isInlineAttribute'](_0x182025['split']('|')[0x0]);if(_0x458405['newRange']['isCollapsed']||'$graveyard'==_0x458405['newRange']['root']['rootName']||'formatBlock'==_0x4d651f&&!Qt(_0x458405['newRange'])||_0x34f601&&!Qt(_0x458405['newRange'])||_0x5cad17&&Xt(_0x458405['newRange'])||'deletion'==_0x4d651f&&Xt(_0x458405['newRange'])||_0x2c6393&&Yt(_0x2c6393,_0x428636))_0x17bacc['removeMarker'](_0x1fa9e2),_0x1f6673=!0x0;else{if(!_0x1e51bf||!_0x1e51bf['isInContent'])continue;if(_0x458405['newRange']&&_0x458405['oldRange']&&_0x458405['newRange']['isEqual'](_0x458405['oldRange']))continue;_0x50bc03['add'](_0x1e51bf);}}}return _0x50bc03['size']>0x0&&(_0x1f6673=!!this['_joinWithAdjacentSuggestions'](_0x50bc03)||_0x1f6673),_0x1f6673;}),_0x13ac81['model']['document']['registerPostFixer'](_0x2b46d1=>{let _0x3ca20c=!0x1;for(const _0x2eed96 of _0x13ac81['model']['document']['differ']['getChanges']())if('insert'==_0x2eed96['type'])for(const _0x374a05 of this['_suggestions']['values']()){if(_0x374a05['isMultiRange']||!_0x374a05['isInContent'])continue;const _0xa44705='formatBlock'==_0x374a05['type'],_0x19250c=this['_getAttributeKey'](_0x374a05),_0x259e2e=_0x19250c&&this['_isBlockAttribute'](_0x19250c);if(!_0xa44705&&!_0x259e2e)continue;const _0x260f88=_0x374a05['getFirstRange']();if(_0x260f88['start']['parent']!=_0x260f88['end']['parent']&&!_0x260f88['end']['isAtEnd']){const _0x52fbdb=_0x13ac81['model']['createPositionAt'](_0x260f88['start']['nodeAfter'],'end'),_0x1392a0=_0x13ac81['model']['createRange'](_0x260f88['start'],_0x52fbdb);_0x2b46d1['updateMarker'](_0x374a05['getFirstMarker'](),{'range':_0x1392a0}),_0x3ca20c=!0x0;}}return _0x3ca20c;}),_0x13ac81['model']['document']['registerPostFixer'](_0x4f3e13=>this['_processAttributeChanges'](_0x4f3e13)),_0x13ac81['model']['document']['registerPostFixer'](_0x5ac9c1=>!_0x5ac9c1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5ac9c1)),_0x13ac81['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x13ac81['model']['document']['on']('change:data',(_0x4161e5,_0x11b0b7)=>{if(!_0x11b0b7['isLocal']||_0x11b0b7['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2284c2=_0x13ac81['model']['document']['differ']['getChanges']();if(0x0==_0x2284c2['length'])return;const _0x2ef615=[],_0x2fc831=_0x2284c2['filter'](_0x19e7d3=>'attribute'==_0x19e7d3['type']),_0x2f1e9f=_0x2284c2['filter'](_0x1c1aef=>'insert'==_0x1c1aef['type']&&'$text'!=_0x1c1aef['name']);for(const _0x26c1e0 of _0x2fc831)this['_isRegisteredAttribute'](_0x26c1e0['attributeKey'])&&_0x2ef615['push']({'key':_0x26c1e0['attributeKey'],'newValue':_0x26c1e0['attributeNewValue'],'oldValue':_0x26c1e0['attributeOldValue'],'range':Zt(_0x26c1e0['range'],_0x13ac81['model'])});for(const _0x5accc4 of _0x2f1e9f){if('rename'!=_0x5accc4['action']&&'refresh'!=_0x5accc4['action'])continue;const _0x499610=tn(_0x5accc4['position']['nodeAfter'],_0x13ac81['model']),_0x9fd1d8=_0x5accc4['before'];'rename'==_0x5accc4['action']&&_0x2ef615['push']({'key':m,'newValue':_0x5accc4['name'],'oldValue':_0x9fd1d8['name'],'range':_0x499610});for(const [_0x1d5343,_0x343853]of _0x9fd1d8['attributes']){if(!this['_isRegisteredAttribute'](_0x1d5343))continue;const _0x484b84=_0x5accc4['attributes']['get'](_0x1d5343);_0x343853!==_0x484b84&&_0x2ef615['push']({'key':_0x1d5343,'newValue':_0x484b84,'oldValue':_0x343853,'range':_0x499610});}for(const [_0x5e9cf3,_0x4d4466]of _0x5accc4['attributes'])this['_isRegisteredAttribute'](_0x5e9cf3)&&(_0x9fd1d8['attributes']['has'](_0x5e9cf3)||_0x2ef615['push']({'key':_0x5e9cf3,'newValue':_0x4d4466,'oldValue':null,'range':_0x499610}));}0x0!=_0x2ef615['length']&&_0x13ac81['model']['enqueueChange'](_0x11b0b7,_0x37fc84=>{const _0x13f1c3=_0x4e95d3();for(const {range:_0x3cca2b,key:_0x481166,oldValue:_0xf5e396,newValue:_0x1a3fb6}of _0x2ef615)this['markAttributeChange'](_0x3cca2b,_0x481166,_0xf5e396,_0x1a3fb6,{'groupId':_0x13f1c3});this['_reduceExistingSuggestions'](_0x37fc84,_0x2ef615);});},{'priority':'lowest'}),_0x13ac81['model']['markers']['on']('update:suggestion',(_0x4647be,_0x5dfb19,_0x335eae)=>{if(null==_0x335eae){const {id:_0x2d970d}=this['_splitMarkerName'](_0x5dfb19['name']),_0x3899fa=this['_suggestions']['get'](_0x2d970d);_0x3899fa&&_0x3899fa['addMarkerName'](_0x5dfb19['name']);}}),_0x13ac81['model']['document']['on']('change:data',()=>{const _0x1e5901=Array['from'](_0x13ac81['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4b3d4b=>'suggestion'===this['_splitMarkerName'](_0x4b3d4b['name'])['group']);if(0x0===_0x1e5901['length'])return;_0x1e5901['sort']((_0x32734b,_0x3a761b)=>{const _0x3640b3=_0x32734b['data']['oldRange'],_0x23806a=_0x3a761b['data']['oldRange'];return null===_0x3640b3&&null===_0x23806a?0x0:null===_0x3640b3&&null!==_0x23806a?-0x1:null!==_0x3640b3&&null===_0x23806a?0x1:_0x3640b3['start']['isBefore'](_0x23806a['start'])?-0x1:0x1;});const _0x332001=new Set(),_0x41b5df=new Set();for(const {name:_0x503518,data:_0x1deeda}of _0x1e5901){const {id:_0xa2308f}=this['_splitMarkerName'](_0x503518);if(null===_0x1deeda['oldRange']){const _0xf00809=this['_handleNewSuggestionMarker'](_0x503518);_0x41b5df['add'](_0xf00809);}else{const _0x582c58=this['_suggestions']['get'](_0xa2308f);null!==_0x1deeda['newRange']||_0x582c58['isInContent']?(_0x332001['add'](_0x582c58['head']),_0x41b5df['add'](_0x582c58)):this['_removeSuggestion'](_0x582c58);}}_0x41b5df['size']>0x0&&this['_refreshSuggestionsChain'](_0x41b5df);for(const _0x5e51c7 of _0x332001)this['fire']('suggestionChanged',_0x5e51c7);}),_0x13ac81['model']['on']('applyOperation',(_0x14f7d9,_0x2b7d3a)=>{const _0x33af02=_0x2b7d3a[0x0];if(!this['_suggestions']['size'])return;if(!_0x33af02['isDocumentOperation'])return;if(_0x33af02['batch']['isUndo']||!_0x33af02['batch']['isLocal'])return;let _0x5299f6,_0x6f09ea;switch(_0x33af02['type']){case'insert':_0x5299f6=_0x13ac81['model']['createPositionAt'](_0x33af02['position']),_0x6f09ea=_0x5299f6['getShiftedBy'](_0x33af02['howMany']);break;case'split':_0x5299f6=_0x13ac81['model']['createPositionAt'](_0x33af02['splitPosition']),_0x6f09ea=_0x13ac81['model']['createPositionAt'](_0x33af02['moveTargetPosition']);break;case'move':_0x5299f6=_0x13ac81['model']['createPositionAt'](_0x33af02['targetPosition']),_0x6f09ea=_0x5299f6['getShiftedBy'](_0x33af02['howMany']);break;default:return;}const _0x45c8e9=_0x13ac81['model']['createRange'](_0x5299f6,_0x6f09ea);_0x13ac81['model']['change'](()=>{for(const {suggestion:_0x3ac7e6,meta:_0x2f9074}of this['_findSuggestions'](_0x45c8e9)){if(_0x3ac7e6['isMultiRange'])continue;if('formatInline'==_0x3ac7e6['type'])continue;const _0x336aa0=this['_getAttributeKey'](_0x3ac7e6);if(_0x336aa0&&this['_isBlockAttribute'](_0x336aa0)&&'split'!=_0x33af02['type'])continue;const _0x43248d=_0x3ac7e6['data']&&_0x3ac7e6['data']['multipleBlocks'];('formatBlock'!=_0x3ac7e6['type']||'split'==_0x33af02['type']&&!_0x43248d)&&(_0x2f9074['containsRangeInObject']||'insertion'==_0x3ac7e6['type']&&_0x2f9074['isOwn']||_0x3ac7e6['getFirstRange']()['containsRange'](_0x45c8e9)&&this['_breakSuggestionMarker'](_0x3ac7e6,_0x5299f6,_0x6f09ea));}});},{'priority':'lowest'}),_0x13ac81['model']['on']('deleteContent',(_0x455699,_0x16ab9c)=>{const _0x30a855=_0x16ab9c[0x0],_0xa7d1a=_0x16ab9c[0x1];if(_0xa7d1a&&_0xa7d1a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x30a855['isCollapsed'])return;const _0x318ae0=_0x13ac81['model']['schema'],{start:_0x42c0bb,end:_0x1719e5}=_0x30a855['getFirstRange'](),_0x4ee061=_0x42c0bb['nodeAfter']&&_0x318ae0['isLimit'](_0x42c0bb['nodeAfter'])?null:_0x318ae0['getNearestSelectionRange'](_0x42c0bb,'forward'),_0x495637=_0x1719e5['nodeBefore']&&_0x318ae0['isLimit'](_0x1719e5['nodeBefore'])?null:_0x318ae0['getNearestSelectionRange'](_0x1719e5,'backward'),_0x5b3e3d=_0x13ac81['model']['createRange'](_0x4ee061?_0x4ee061['start']:_0x42c0bb,_0x495637?_0x495637['end']:_0x1719e5);_0x13ac81['model']['change'](_0x3fbec5=>{this['markDeletion'](_0x5b3e3d);const _0x323b63=_0x13ac81['model']['schema']['getNearestSelectionRange'](_0x5b3e3d['start']);_0x30a855['is']('documentSelection')?_0x3fbec5['setSelection'](_0x323b63):_0x30a855['setTo'](_0x323b63);}),_0x455699['stop']();},{'priority':_0x3bc3f8['normal']+0xa}),_0x13ac81['model']['on']('insertContent',(_0x12a3eb,_0x4a3a67)=>{const _0x20babf=_0x4a3a67[_0x4a3a67['length']-0x1];_0x20babf&&_0x20babf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x13ac81['model']['change'](()=>{let _0x3c991c=_0x13ac81['model']['insertContent'](_0x4a3a67[0x0],_0x4a3a67[0x1],_0x4a3a67[0x2],{'forceDefaultExecution':!0x0});if(!_0x3c991c)return;_0x12a3eb['return']=_0x3c991c['clone']();const _0x16ecb3=_0x3c991c['end']['nodeBefore'],_0x139d5a=_0x13ac81['model']['schema'];_0x16ecb3&&_0x139d5a['isBlock'](_0x16ecb3)&&!_0x139d5a['isObject'](_0x16ecb3)&&(_0x3c991c=_0x13ac81['model']['createRange'](_0x3c991c['start'],_0x13ac81['model']['createPositionAt'](_0x16ecb3,'end'))),this['markInsertion'](_0x3c991c);}),_0x12a3eb['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x12604f=new O(_0x13ac81,this['_suggestions']);_0x13ac81['commands']['add']('acceptSuggestion',_0x12604f),this['enableCommand']('acceptSuggestion');const _0x37cf42=new x(_0x13ac81,this['_suggestions']);_0x13ac81['commands']['add']('discardSuggestion',_0x37cf42),this['enableCommand']('discardSuggestion'),_0x13ac81['commands']['add']('acceptAllSuggestions',new M(_0x13ac81,_0x12604f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x13ac81['commands']['add']('discardAllSuggestions',new M(_0x13ac81,_0x37cf42,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x13ac81['commands']['add']('acceptSelectedSuggestions',new R(_0x13ac81,_0x12604f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x13ac81['commands']['add']('discardSelectedSuggestions',new R(_0x13ac81,_0x37cf42,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x3936d2=_0x13ac81['plugins']['get']('CommentsRepository');this['listenTo'](_0x3936d2,'addComment',(_0x169dad,{threadId:_0x3123ef})=>{const _0x475da8=this['_suggestions']['get'](_0x3123ef);_0x475da8&&_0x475da8['commentThread']&&0x1===_0x475da8['commentThread']['length']&&this['_updateSuggestionData'](_0x3123ef,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x3936d2,'removeComment',(_0x3d6552,{threadId:_0xdcdd0e})=>{const _0x5ebea0=this['_suggestions']['get'](_0xdcdd0e);_0x5ebea0&&_0x5ebea0['commentThread']&&!_0x5ebea0['commentThread']['length']&&this['_updateSuggestionData'](_0xdcdd0e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4a034b){const _0x2cabf5=_0x32a80d([0x52,0x42,0x63,0x58,0x64,0x47,0x66,0x35,0x36,0x37,0x6d,0x4e,0x6a,0x4b,0x39,0x44,0x54,0x70,0x50,0x30,0x49,0x79,0x69,0x33,0x67,0x65,0x61,0x38,0x5a,0x76,0x7a,0x6c,0x45,0x34,0x62,0x46,0x75,0x57,0x72,0x77,0x73,0x48,0x31,0x68,0x6e,0x4f,0x53,0x4c,0x71,0x6b,0x59,0x32,0x4d,0x51,0x4a,0x78,0x6f,0x56,0x41,0x55,0x74,0x43]),_0x560e3e=0x3d8d0df,_0x13320f=0x3df57ff^_0x560e3e,_0x4e17e7=window[_0x32a80d([0x44,0x61,0x74,0x65])][_0x32a80d([0x6e,0x6f,0x77])](),_0x3ed8b7=_0x4a034b[_0x32a80d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x360b48=new window[(_0x32a80d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22f5a0=>{_0x3ed8b7[_0x32a80d([0x6f,0x6e,0x63,0x65])](_0x32a80d([0x72,0x65,0x61,0x64,0x79]),_0x22f5a0);}),_0x58845b={[_0x32a80d([0x6b,0x74,0x79])]:_0x32a80d([0x45,0x43]),[_0x32a80d([0x75,0x73,0x65])]:_0x32a80d([0x73,0x69,0x67]),[_0x32a80d([0x63,0x72,0x76])]:_0x32a80d([0x50,0x2d,0x32,0x35,0x36]),[_0x32a80d([0x78])]:_0x32a80d([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]),[_0x32a80d([0x79])]:_0x32a80d([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]),[_0x32a80d([0x61,0x6c,0x67])]:_0x32a80d([0x45,0x53,0x32,0x35,0x36])},_0x16dd22=_0x3ed8b7[_0x32a80d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32a80d([0x67,0x65,0x74])](_0x32a80d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4610f2(){let _0x5df7e3,_0x1e9088=null,_0x1eb97c=null;try{if(_0x16dd22==_0x32a80d([0x47,0x50,0x4c]))return _0x32a80d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5df7e3=_0x2de57c(),!_0x5df7e3)return _0x32a80d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5df7e3[_0x32a80d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1eb97c=_0x386933(_0x5df7e3[_0x32a80d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5df7e3[_0x32a80d([0x6a,0x74,0x69])])),await _0x529c8b()?_0x12d432()?_0x344187()?_0x32a80d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x17595a()?(_0x5df7e3[_0x32a80d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32a80d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1e9088=_0x5e1b38(_0x32a80d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x431b3c()):_0x32a80d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32a80d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32a80d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32a80d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x344187(){const _0x50017c=[_0x32a80d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32a80d([0x74,0x72,0x69,0x61,0x6c])][_0x32a80d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5df7e3[_0x32a80d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e17e7/0x3e8:0xe10*_0x13320f;return _0x5df7e3[_0x32a80d([0x65,0x78,0x70])]<_0x50017c;}function _0x12d432(){const _0x14b3f7=_0x5df7e3[_0x32a80d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x14b3f7)return!0x1;if(_0x14b3f7[_0x32a80d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32a80d([0x2a])))return!0x0;if(_0x14b3f7[_0x32a80d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32a80d([0x54,0x43])))return!0x0;if(_0x14b3f7[_0x32a80d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32a80d([0x52,0x54,0x43]))){if(_0x2a2332())return!0x0;if(_0xa7a624()||_0xb87931())return!0x0;}return!0x1;}function _0x17595a(){const _0x4e8bd9=_0x5df7e3[_0x32a80d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e8bd9||0x0==_0x4e8bd9[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3782da}=new URL(window[_0x32a80d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e8bd9[_0x32a80d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3782da))return!0x0;const _0x36fc46=_0x3782da[_0x32a80d([0x73,0x70,0x6c,0x69,0x74])](_0x32a80d([0x2e]));return _0x4e8bd9[_0x32a80d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45bcf5=>_0x45bcf5[_0x32a80d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32a80d([0x2a])))[_0x32a80d([0x6d,0x61,0x70])](_0x7b8bc=>_0x7b8bc[_0x32a80d([0x73,0x70,0x6c,0x69,0x74])](_0x32a80d([0x2e])))[_0x32a80d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1df912=>_0x1df912[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x36fc46[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32a80d([0x6d,0x61,0x70])](_0x564316=>Array(_0x36fc46[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x564316[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32a80d([0x66,0x69,0x6c,0x6c])](_0x564316[0x0]===_0x32a80d([0x2a])?_0x32a80d([0x2a]):'')[_0x32a80d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x564316))[_0x32a80d([0x73,0x6f,0x6d,0x65])](_0x42f15b=>_0x36fc46[_0x32a80d([0x65,0x76,0x65,0x72,0x79])]((_0x2c7a9e,_0x13c058)=>_0x42f15b[_0x13c058]===_0x2c7a9e||_0x42f15b[_0x13c058]===_0x32a80d([0x2a])));}function _0x431b3c(){return _0x1e9088&&_0x1eb97c?new window[(_0x32a80d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ed77b,_0x328c7a)=>{_0x1e9088[_0x32a80d([0x74,0x68,0x65,0x6e])](_0x3ed77b,_0x328c7a),_0x1eb97c[_0x32a80d([0x74,0x68,0x65,0x6e])](_0x38efdd=>{_0x38efdd!=_0x32a80d([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed77b(_0x38efdd);},_0x328c7a);}):_0x1e9088||_0x1eb97c||_0x32a80d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x386933(_0x59b7b4,_0x42c012){return new window[(_0x32a80d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x455fc8=>{if(_0x376cf0())return _0x455fc8(_0x32a80d([0x56,0x61,0x6c,0x69,0x64]));_0x14c91f(),_0x3ed8b7[_0x32a80d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32a80d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3f8fc7=!0x1;const _0x598594=_0x4e95d3();function _0x5db368(_0x4b635e){return!!_0x4b635e&&(typeof _0x4b635e===_0x32a80d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b635e===_0x32a80d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b635e[_0x32a80d([0x74,0x68,0x65,0x6e])]===_0x32a80d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b635e[_0x32a80d([0x63,0x61,0x74,0x63,0x68])]===_0x32a80d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3fe756(_0x27c5c4){_0xf572e3(_0x27c5c4)[_0x32a80d([0x74,0x68,0x65,0x6e])](_0x51193a=>{if(!_0x51193a||_0x51193a[_0x32a80d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32a80d([0x6f,0x6b]))return _0x32a80d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f164b(_0x557912(_0x598594+_0x42c012))!=_0x51193a[_0x32a80d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32a80d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32a80d([0x56,0x61,0x6c,0x69,0x64]);})[_0x32a80d([0x74,0x68,0x65,0x6e])](_0x159439=>(_0x4ff5a1(),_0x159439),()=>{const _0xd73718=_0x136f70();return null==_0xd73718?(_0x4ff5a1(),_0x32a80d([0x56,0x61,0x6c,0x69,0x64])):_0x32a80d(_0x4e17e7-_0xd73718>(0x27d454df^_0x560e3e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32a80d([0x74,0x68,0x65,0x6e])](_0x455fc8)[_0x32a80d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x455fc8(_0x32a80d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x578b8e=0x3ee3e5f^_0x560e3e;function _0x4ff5a1(){const _0xf2bcba=_0x32a80d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f164b(_0x557912(_0x59b7b4)),_0x1ed81e=_0x3aa9a5(_0x1f164b(window[_0x32a80d([0x4d,0x61,0x74,0x68])][_0x32a80d([0x63,0x65,0x69,0x6c])](_0x4e17e7/_0x578b8e)));window[_0x32a80d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32a80d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xf2bcba,_0x1ed81e);}function _0x136f70(){const _0x4079c6=_0x32a80d([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f164b(_0x557912(_0x59b7b4)),_0x266336=window[_0x32a80d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32a80d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4079c6);return _0x266336?window[_0x32a80d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3aa9a5(_0x266336),0x10)*_0x578b8e:null;}function _0xf572e3(_0x486611){return new window[(_0x32a80d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c25b9,_0x4a6ccd)=>{_0x486611[_0x32a80d([0x74,0x68,0x65,0x6e])](_0x1c25b9,_0x4a6ccd),window[_0x32a80d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4a6ccd,0x3d9041f^_0x560e3e);});}}_0x3ed8b7[_0x32a80d([0x6f,0x6e])](_0x32a80d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x389e21,_0x32cc2f)=>{if(_0x32cc2f[0x0]!=_0x59b7b4)return _0x455fc8(_0x32a80d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x32cc2f[0x1]={..._0x32cc2f[0x1],[_0x32a80d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x598594};},{[_0x32a80d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32a80d([0x68,0x69,0x67,0x68])}),_0x3ed8b7[_0x32a80d([0x6f,0x6e])](_0x32a80d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f4b37=>{_0x5db368(_0x5f4b37[_0x32a80d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3f8fc7=!0x0,_0x3fe756(_0x5f4b37[_0x32a80d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32a80d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32a80d([0x6c,0x6f,0x77])}),_0x360b48[_0x32a80d([0x74,0x68,0x65,0x6e])](()=>{_0x3f8fc7||_0x455fc8(_0x32a80d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x376cf0(){return _0x3ed8b7[_0x32a80d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32a80d([0x76,0x69,0x65,0x77])][_0x32a80d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32a80d([0x61,0x75,0x74,0x6f]);}function _0x14c91f(){_0x3ed8b7[_0x32a80d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32a80d([0x76,0x69,0x65,0x77])][_0x32a80d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32a80d([0x61,0x75,0x74,0x6f]);}}function _0x5e1b38(_0x136b1b){const _0x27f859=[new window[(_0x32a80d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1fb374=>setTimeout(_0x1fb374,0x3d1ee13^_0x560e3e)),_0x360b48[_0x32a80d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32a80d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59832b=>{let _0x21bdf7=0x0;_0x3ed8b7[_0x32a80d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32a80d([0x6f,0x6e])](_0x32a80d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4991be,_0x998eb9)=>{_0x998eb9[0x0][_0x32a80d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x21bdf7++,_0x21bdf7==(0x3d8d537^_0x560e3e)&&(_0x59832b(),_0x4991be[_0x32a80d([0x6f,0x66,0x66])]());});}))];return window[_0x32a80d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32a80d([0x72,0x61,0x63,0x65])](_0x27f859)[_0x32a80d([0x74,0x68,0x65,0x6e])](()=>_0x136b1b);}async function _0x160f1f(){await _0x360b48,_0x3ed8b7[_0x32a80d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32a80d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23cff8,_0x3ed8b7[_0x32a80d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32a80d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23cff8,_0x3ed8b7[_0x32a80d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32a80d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a2332(){return _0xdc2846(_0x32a80d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2ba0e6(_0x32a80d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x32a80d([0x73,0x74,0x61,0x74,0x65])]==_0x32a80d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa7a624(){return _0xdc2846(_0x32a80d([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 _0xb87931(){return _0xdc2846(_0x32a80d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2d784a(_0x13a33f){const _0x142921=_0x471154();_0x3ed8b7[_0x142921]=_0x32a80d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x13a33f,_0x13a33f!=_0x32a80d([0x56,0x61,0x6c,0x69,0x64])&&_0x160f1f();}function _0x471154(){const _0xf74cdf=window[_0x32a80d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32a80d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32a80d([0x6e,0x6f,0x77])]())[_0x32a80d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32a80d([0x2e]),'');let _0x41e1c=_0x32a80d([0x52]);for(let _0xc213e4=0x0;_0xc213e4<_0xf74cdf[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc213e4+=0x2){let _0x35efc7=window[_0x32a80d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf74cdf[_0x32a80d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc213e4,_0xc213e4+0x2));_0x35efc7>=_0x2cabf5[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35efc7-=_0x2cabf5[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41e1c+=_0x2cabf5[_0x35efc7];}return _0x41e1c;}function _0x2de57c(){const _0x47e051=_0x16dd22[_0x32a80d([0x73,0x70,0x6c,0x69,0x74])](_0x32a80d([0x2e]));if(0x3!=_0x47e051[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe4ca(_0x47e051[0x1]);function _0xe4ca(_0x6b0944){const _0x2b62f2=_0x5961ea(_0x6b0944);return _0x2b62f2&&_0x5e4301()?_0x2b62f2:null;function _0x5e4301(){const _0x38cd67=_0x2b62f2[_0x32a80d([0x6a,0x74,0x69])],_0x39f1bd=window[_0x32a80d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38cd67[_0x32a80d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38cd67[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x528b6b={..._0x2b62f2,[_0x32a80d([0x6a,0x74,0x69])]:_0x38cd67[_0x32a80d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x38cd67[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x528b6b[_0x32a80d([0x76,0x63])],_0x557912(_0x528b6b)==_0x39f1bd;}}}async function _0x529c8b(){let _0x5391a3=!0x0;try{const _0x4468f5=_0x16dd22[_0x32a80d([0x73,0x70,0x6c,0x69,0x74])](_0x32a80d([0x2e])),[_0x147680,_0x477c48,_0xebaafa]=_0x4468f5;return _0x17303d(_0x147680),await _0x51b246(_0x147680,_0x477c48,_0xebaafa),_0x5391a3;}catch{return!0x1;}function _0x17303d(_0x40289d){const _0x2db76f=_0x5961ea(_0x40289d);_0x2db76f&&_0x2db76f[_0x32a80d([0x61,0x6c,0x67])]==_0x32a80d([0x45,0x53,0x32,0x35,0x36])||(_0x5391a3=!0x1);}async function _0x51b246(_0x1e869a,_0x2106d9,_0x26009e){const _0x55f51a=window[_0x32a80d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32a80d([0x66,0x72,0x6f,0x6d])](_0x46a30a(_0x26009e),_0x3b92e7=>_0x3b92e7[_0x32a80d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x25261e=new window[(_0x32a80d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32a80d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e869a+_0x32a80d([0x2e])+_0x2106d9),_0x20e890=window[_0x32a80d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32a80d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x20e890)return;const _0x38073f=await _0x20e890[_0x32a80d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32a80d([0x6a,0x77,0x6b]),_0x58845b,{[_0x32a80d([0x6e,0x61,0x6d,0x65])]:_0x32a80d([0x45,0x43,0x44,0x53,0x41]),[_0x32a80d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32a80d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32a80d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x20e890[_0x32a80d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32a80d([0x6e,0x61,0x6d,0x65])]:_0x32a80d([0x45,0x43,0x44,0x53,0x41]),[_0x32a80d([0x68,0x61,0x73,0x68])]:{[_0x32a80d([0x6e,0x61,0x6d,0x65])]:_0x32a80d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38073f,_0x55f51a,_0x25261e)||(_0x5391a3=!0x1);}}function _0x5961ea(_0x372e23){return _0x372e23[_0x32a80d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32a80d([0x65,0x79]))?JSON[_0x32a80d([0x70,0x61,0x72,0x73,0x65])](_0x46a30a(_0x372e23)):null;}function _0x46a30a(_0x32ae61){return window[_0x32a80d([0x61,0x74,0x6f,0x62])](_0x32ae61[_0x32a80d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32a80d([0x2b]))[_0x32a80d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32a80d([0x2f])));}function _0x557912(_0x280089){let _0xf8ea41=0x1505;function _0x1ef078(_0x2d2335){for(let _0x576b43=0x0;_0x576b43<_0x2d2335[_0x32a80d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x576b43++){const _0x2dcac3=_0x2d2335[_0x32a80d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x576b43);_0xf8ea41=(_0xf8ea41<<0x5)+_0xf8ea41+_0x2dcac3,_0xf8ea41&=_0xf8ea41;}}function _0x211ca7(_0x1a17c8){Array[_0x32a80d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a17c8)?_0x1a17c8[_0x32a80d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x211ca7):_0x1a17c8&&typeof _0x1a17c8==_0x32a80d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32a80d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a17c8)[_0x32a80d([0x73,0x6f,0x72,0x74])]()[_0x32a80d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x330f40,_0x66c3eb])=>{_0x1ef078(_0x330f40),_0x211ca7(_0x66c3eb);}):_0x1ef078(window[_0x32a80d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a17c8));}return _0x211ca7(_0x280089),_0xf8ea41>>>0x0;}function _0x1f164b(_0xb5c2ae){return _0xb5c2ae[_0x32a80d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32a80d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32a80d([0x30]));}function _0x3aa9a5(_0x32e755){return _0x32e755[_0x32a80d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32a80d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32a80d([0x6a,0x6f,0x69,0x6e])]('');}function _0xdc2846(_0xcc6e6a){return _0x3ed8b7[_0x32a80d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32a80d([0x68,0x61,0x73])](_0xcc6e6a);}function _0x2ba0e6(_0x4ee083){return _0x3ed8b7[_0x32a80d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x32a80d([0x67,0x65,0x74])](_0x4ee083);}function _0x23cff8(){}function _0x32a80d(_0x18d1bd){return _0x18d1bd['map'](_0x49cfe6=>String['fromCharCode'](_0x49cfe6))['join']('');}_0x2d784a(await _0x4610f2());}(this);}set['adapter'](_0x2fd091){if(this['_adapter'])throw new _0x21039f('track-changes-adapter-already-set',this);this['_adapter']=_0x2fd091;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x137a65=!0x1,toJSON:_0x329b07=!0x1}={}){const _0x4e50a1=[];for(const _0xd19a9b of this['_suggestions']['values']())_0x137a65&&!_0xd19a9b['isInContent']||_0x4e50a1['push'](_0xd19a9b);return _0x329b07?_0x4e50a1['map'](_0x49d289=>_0x49d289['toJSON']()):_0x4e50a1;}['getSuggestion'](_0x33edb4){const _0x1068e5=this['_suggestions']['get'](_0x33edb4);if(!_0x1068e5)throw new _0x21039f('track-changes-suggestion-not-found',this);return _0x1068e5;}['hasSuggestion'](_0x2bb153){return this['_suggestions']['has'](_0x2bb153);}['addSuggestionData'](_0x402598){const {authorId:_0x210fb4,id:_0x12bfa2,originalSuggestionId:_0x3364a7,attributes:_0x4eecb8}=_0x402598,[_0x5e5ab5,_0x5e4ff9]=_0x402598['type']['split'](':'),_0x240e9e=this['_suggestions']['get'](_0x12bfa2)||this['_createSuggestion'](_0x5e5ab5,_0x5e4ff9,_0x12bfa2,_0x210fb4,_0x4eecb8,_0x3364a7);if(this['_addThreadToSuggestion'](_0x240e9e),this['_checkSuggestionCorrectness'](_0x240e9e,_0x5e5ab5,_0x5e4ff9||null,_0x210fb4),_0x240e9e['createdAt']=_0x402598['createdAt'],_0x240e9e['_isDataLoaded']=!0x0,_0x4eecb8&&_0x4eecb8['@external']){const _0x11c385=_0x4eecb8['@external'],_0x15e56c=this['_getExternalAuthor'](_0x11c385['authorName']);_0x240e9e['authoredAt']=_0x11c385['createdAt'],_0x240e9e['author']=_0x15e56c,_0x240e9e['isExternal']=!0x0;}else _0x240e9e['authoredAt']=_0x402598['createdAt'];switch(_0x402598['data']&&(_0x240e9e['data']=_0x402598['data']),_0x402598['attributes']&&(_0x240e9e['attributes']=_0x402598['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x240e9e['_saved']=!0x0),this['_suggestionState']['get'](_0x240e9e)){case'notReady':this['_suggestionState']['set'](_0x240e9e,'dataReady');break;case'markerReady':_0x240e9e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x240e9e])),this['_refreshSuggestionsChain'](new Set([_0x240e9e])),this['_suggestionState']['set'](_0x240e9e,'ready'),this['fire']('suggestionLoaded',_0x240e9e)):this['_suggestionState']['set'](_0x240e9e,'removed');}return _0x240e9e;}['acceptSuggestion'](_0x23cca6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x39dec4 of _0x23cca6['getAllAdjacentSuggestions']())_0x39dec4['accept']();});});}['discardSuggestion'](_0x42bf9d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x49c97d of _0x42bf9d['getAllAdjacentSuggestions']())_0x49c97d['discard']();});});}['enableCommand'](_0x152ea7,_0x35e7f5){const _0x56584e=this['editor']['commands']['get'](_0x152ea7);if(!_0x56584e)throw new _0x21039f('track-changes-command-not-found',this,{'commandName':_0x152ea7});if(this['_enabledCommands']['has'](_0x56584e))throw new _0x21039f('track-changes-enable-command-twice',this,{'commandName':_0x152ea7});this['_enabledCommands']['add'](_0x56584e),_0x35e7f5&&_0x56584e['on']('execute',(_0xeb2f82,_0x49128c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x49128c['length']>0x0&&_0x49128c[_0x49128c['length']-0x1]&&_0x49128c[_0x49128c['length']-0x1]['forceDefaultExecution']?_0x49128c['pop']():(_0xeb2f82['return']=_0x35e7f5((..._0x4bf4c8)=>_0x56584e['execute'](..._0x4bf4c8,{'forceDefaultExecution':!0x0}),..._0x49128c),_0xeb2f82['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4e11f3){let _0x4f51b7,_0x4bca59;const _0x52b0c5=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4f51b7=_0x4e11f3();}catch(_0x55a749){_0x4bca59=_0x55a749;}return _0x52b0c5||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4bca59&&_0x21039f['rethrowUnexpectedError'](_0x4bca59,this),_0x4f51b7;}['markInsertion'](_0x1e7575,_0x174f42=null,_0x5a7109={}){if(_0x1e7575['isCollapsed'])return null;const _0x4ce810=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5a7109['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b1578,meta:_0x3b7c03}of this['_findSuggestions'](_0x1e7575,'insertion'))if(_0x3b7c03['isOwn']){if(!_0x3b7c03['isNextTo']){if(_0x3b7c03['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x3b1578,_0x5a7109))continue;return _0x3b1578;}if(sn(_0x3b1578,_0x5a7109))return _0x3b1578;this['_breakSuggestionMarker'](_0x3b1578,_0x1e7575['start'],_0x1e7575['end']);break;}if(_0x174f42==_0x3b1578['subType']&&sn(_0x3b1578,_0x5a7109)){const _0x4e8428=_0x3b1578['getFirstRange']();return _0x4e8428['start']['isEqual'](_0x1e7575['end'])?this['_setSuggestionRange'](_0x3b1578,this['_model']['createRange'](_0x1e7575['start'],_0x4e8428['end'])):this['_setSuggestionRange'](_0x3b1578,this['_model']['createRange'](_0x4e8428['start'],_0x1e7575['end'])),_0x3b1578;}}const _0x733830=_0x4e95d3(),_0xe6bd3d=_0x4ce810['id'],_0x3e0bb1=_0x174f42?'insertion:'+_0x174f42:'insertion',_0x1236ed=this['_setSuggestionData']({'id':_0x733830,'type':_0x3e0bb1,'createdAt':new Date(),'authorId':_0xe6bd3d,'attributes':_0x5a7109});return this['_addSuggestionMarker'](_0x3e0bb1,_0x733830,_0xe6bd3d,_0x1e7575),_0x1236ed;}['markMultiRangeInsertion'](_0x470efd,_0x245f17='multi',_0x9ebfc3={}){const _0x5a95cb=this['editor']['plugins']['get']('Users')['me'],_0x464b6b=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x245f17,'join');this['_trackingSessionId']&&(_0x9ebfc3['trackingSessionId']=this['_trackingSessionId']);for(const _0x1638c6 of this['getSuggestions']())if(_0x1638c6['author']['id']==_0x5a95cb['id']&&'insertion'==_0x1638c6['type']&&_0x1638c6['subType']==_0x245f17&&sn(_0x1638c6,_0x9ebfc3)&&(_0x464b6b(_0x1638c6['getRanges'](),_0x470efd)||_0x464b6b(_0x470efd,_0x1638c6['getRanges']()))){for(const _0x55c8cd of _0x470efd)_0x1638c6['addRange'](_0x55c8cd);return _0x1638c6;}for(const {suggestion:_0x33cf97,meta:_0x2104f5}of this['_findSuggestions'](_0x470efd,'insertion')){if(!_0x2104f5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2104f5['containsRangeInObject'])continue;if(!sn(_0x33cf97,_0x9ebfc3))continue;let _0x3ff21d=!0x0;for(const _0x49c799 of _0x33cf97['getRanges']())for(const _0x1e4959 of _0x470efd)if(!_0x49c799['containsRange'](_0x1e4959)){_0x3ff21d=!0x1;break;}if(_0x3ff21d)return _0x33cf97;}const _0x3e6d26=_0x4e95d3(),_0x95da2=_0x5a95cb['id'],_0x2b83e6='insertion:'+_0x245f17,_0x587b5a=this['_setSuggestionData']({'id':_0x3e6d26,'type':_0x2b83e6,'createdAt':new Date(),'authorId':_0x95da2,'attributes':_0x9ebfc3});for(const _0xfd184e of _0x470efd)this['_addSuggestionMarker'](_0x2b83e6,_0x3e6d26,_0x95da2,_0xfd184e,T['getMultiRangeId']());return _0x587b5a;}['markInlineFormat'](_0x32bc8f,_0x2306f6,_0x3be6ee=null,_0x4bc4f2={}){if(_0x3be6ee=_0x3be6ee||Ht(_0x2306f6),_0x32bc8f['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x4bc4f2['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x511aa0=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3be6ee,'accept');return this['forceDefaultExecution'](()=>_0x511aa0([_0x32bc8f],_0x2306f6,_0x4bc4f2)),null;}const _0xb2cdc5=this['editor']['plugins']['get']('Users')['me'],_0x1f448b=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1cc855,meta:_0x33a11a}of this['_findSuggestions'](_0x32bc8f,'insertion'))_0x33a11a['isOwn']&&!_0x33a11a['isInsideObject']&&_0x1f448b['push'](..._0x1cc855['getRanges']());}const _0x3ba1a7=function(_0x8abf9c,_0x3f835e){const _0x2ad985=[];for(const _0x3c13e0 of _0x3f835e){const _0x29235c=_0x8abf9c['getIntersection'](_0x3c13e0);_0x29235c&&_0x2ad985['push'](_0x29235c);}return _0x2ad985;}(_0x32bc8f,_0x1f448b),_0x28a759=function(_0x2d2847,_0x209ae2){const _0x2dd55f=[_0x2d2847];for(const _0x11a364 of _0x209ae2){let _0x29d9b8=0x0;for(;_0x29d9b8<_0x2dd55f['length'];){const _0x3682a8=_0x2dd55f[_0x29d9b8]['getDifference'](_0x11a364);_0x2dd55f['splice'](_0x29d9b8,0x1,..._0x3682a8),_0x29d9b8+=_0x3682a8['length'];}}return _0x2dd55f;}(_0x32bc8f,_0x1f448b);_0x3ba1a7['length']&&this['_model']['change'](()=>{for(const _0x365dae of _0x3ba1a7){const _0x2c0bf4=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3be6ee,'accept');this['forceDefaultExecution'](()=>_0x2c0bf4([_0x365dae],_0x2306f6,_0x4bc4f2));}});for(const _0x76a648 of _0x28a759){let _0x58081a=null,_0x598bba=_0x76a648['start'],_0x5bdce9=_0x76a648['end'];for(const {suggestion:_0x49703b,meta:_0x3959ac}of this['_findSuggestions'](_0x76a648,'formatInline')){if(!_0x3959ac['isOwn'])continue;if(_0x49703b['subType']!=_0x3be6ee)continue;if(!sn(_0x49703b,_0x4bc4f2))continue;const _0x3a895b=_0x49703b['getFirstRange']();if(_0x3a895b['containsRange'](_0x76a648,!0x0))return null;_0x598bba=_0x598bba['isBefore'](_0x3a895b['start'])?_0x598bba:_0x3a895b['start'],_0x5bdce9=_0x5bdce9['isAfter'](_0x3a895b['end'])?_0x5bdce9:_0x3a895b['end'],_0x58081a?_0x3a895b['start']['isBefore'](_0x58081a['getFirstRange']()['start'])?(_0x58081a['removeMarkers'](),_0x58081a=_0x49703b):_0x49703b['removeMarkers']():_0x58081a=_0x49703b;}const _0x2e54b2=this['_model']['createRange'](_0x598bba,_0x5bdce9);if(_0x58081a)this['_setSuggestionRange'](_0x58081a,_0x2e54b2);else{const _0x2a829d=_0x4e95d3(),_0x2815ba=_0xb2cdc5['id'];this['_setSuggestionData']({'id':_0x2a829d,'type':'formatInline:'+_0x3be6ee,'data':_0x2306f6,'createdAt':new Date(),'authorId':_0x2815ba,'attributes':_0x4bc4f2}),this['_addSuggestionMarker']('formatInline:'+_0x3be6ee,_0x2a829d,_0x2815ba,_0x2e54b2);}}return null;}['markBlockFormat'](_0x310001,_0x21efce,_0x4dbcb7=[],_0x32fd2c=null,_0x2978f4={}){_0x21efce['formatGroupId']||(_0x21efce['formatGroupId']=_0x21efce['commandName']),_0x21efce['multipleBlocks']=_0x310001['is']('range'),_0x32fd2c=_0x32fd2c||Ht(_0x21efce);const _0x54e93d=_0x4dbcb7['map'](_0x2cecda=>tn(_0x2cecda,this['_model'])),_0x5b8d2c=_0x310001['is']('range')?_0x310001:tn(_0x310001,this['_model']);if(this['_trackingSessionId']&&(_0x2978f4['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x2637bc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32fd2c,'accept');return this['forceDefaultExecution'](()=>_0x2637bc([_0x5b8d2c],_0x21efce,_0x2978f4)),null;}_0x54e93d['push'](_0x5b8d2c);let _0x4f9f94=!0x0;for(const _0x3d2a86 of _0x54e93d)if(!this['_rangeIsInLocalUserInsertion'](_0x3d2a86)){_0x4f9f94=!0x1;break;}if(_0x4f9f94&&'always'!==this['_trackFormatChanges']){const _0x5da061=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32fd2c,'accept');return this['forceDefaultExecution'](()=>_0x5da061([_0x5b8d2c],_0x21efce,_0x2978f4)),null;}let _0x55b711=null,_0x2528d0=_0x5b8d2c['start'],_0x4e96d5=_0x5b8d2c['end'];for(const {suggestion:_0x460393,meta:_0x5ae2fb}of this['_findSuggestions'](_0x5b8d2c,'formatBlock')){if(!_0x5ae2fb['isOwn'])continue;if(_0x5ae2fb['isNextTo']||_0x5ae2fb['containsRangeInObject']||_0x5ae2fb['isInsideObject'])continue;if(_0x460393['data']['formatGroupId']!=_0x21efce['formatGroupId'])continue;if(!sn(_0x460393,_0x2978f4))continue;const _0x3fc82e=_0x460393['getFirstRange']();if(_0x460393['subType']==_0x32fd2c){if(_0x3fc82e['containsRange'](_0x5b8d2c,!0x0))return null;_0x2528d0=_0x2528d0['isBefore'](_0x3fc82e['start'])?_0x2528d0:_0x3fc82e['start'],_0x4e96d5=_0x4e96d5['isAfter'](_0x3fc82e['end'])?_0x4e96d5:_0x3fc82e['end'],_0x55b711?_0x3fc82e['start']['isBefore'](_0x55b711['getFirstRange']()['start'])?(_0x55b711['removeMarkers'](),_0x55b711=_0x460393):_0x460393['removeMarkers']():_0x55b711=_0x460393;}else{const _0xc00688=_0x5b8d2c['getIntersection'](_0x3fc82e);this['_cutOutSuggestionMarker'](_0x460393,_0xc00688);}}const _0x284cda=this['editor']['plugins']['get']('Users')['me'],_0x19cd26=_0x4e95d3(),_0x1020dd=_0x284cda['id'];if(_0x55b711)return this['_setSuggestionRange'](_0x55b711,this['_model']['createRange'](_0x2528d0,_0x4e96d5)),_0x55b711;{const _0x56e897=this['_setSuggestionData']({'id':_0x19cd26,'type':'formatBlock:'+_0x32fd2c,'data':_0x21efce,'createdAt':new Date(),'authorId':_0x1020dd,'attributes':_0x2978f4});return this['_addSuggestionMarker']('formatBlock:'+_0x32fd2c,_0x19cd26,_0x1020dd,this['_model']['createRange'](_0x2528d0,_0x4e96d5)),_0x56e897;}}['markMultiRangeBlockFormat'](_0x31b76e,_0x13f5ae,_0x9809e7=[],_0x5975cd=null,_0x123c26={}){_0x13f5ae['formatGroupId']||(_0x13f5ae['formatGroupId']=_0x13f5ae['commandName']);const _0x3135ed=_0x31b76e[0x0];_0x13f5ae['multipleBlocks']=_0x3135ed['is']('range'),_0x5975cd=_0x5975cd||Ht(_0x13f5ae);const _0x51b61c=_0x9809e7['map'](_0x488a43=>tn(_0x488a43,this['_model'])),_0x951d96=_0x3135ed['is']('range')?_0x31b76e:_0x31b76e['map'](_0x5a249d=>tn(_0x5a249d,this['_model']));if(this['_trackingSessionId']&&(_0x123c26['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x105f8b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5975cd,'accept');return this['forceDefaultExecution'](()=>_0x105f8b(_0x951d96,_0x13f5ae,_0x123c26)),null;}_0x51b61c['push'](..._0x951d96);let _0x2c6861=!0x0;for(const _0x12322e of _0x51b61c)if(!this['_rangeIsInLocalUserInsertion'](_0x12322e)){_0x2c6861=!0x1;break;}if(_0x2c6861&&'always'!==this['_trackFormatChanges']){const _0x270c1d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5975cd,'accept');return this['forceDefaultExecution'](()=>_0x270c1d(_0x951d96,_0x13f5ae,_0x123c26)),null;}const _0x463686=this['editor']['plugins']['get']('Users')['me'];for(const _0x45a76e of this['getSuggestions']()){const _0x5f0d54=_0x45a76e['data'];if(_0x45a76e['author']['id']!=_0x463686['id'])continue;if('formatBlock'!=_0x45a76e['type']||_0x5f0d54['formatGroupId']!=_0x13f5ae['formatGroupId'])continue;if(!sn(_0x45a76e,_0x123c26))continue;const _0x29118e=_0x45a76e['subType']==_0x5975cd;for(let _0x1b75fe=0x0;_0x1b75fe<_0x951d96['length'];_0x1b75fe++){const _0x1a3a49=_0x951d96[_0x1b75fe];for(const _0x4ebdf4 of _0x45a76e['getMarkers']()){const _0x3f51b6=_0x4ebdf4['getRange']();if(_0x1a3a49['isEqual'](_0x3f51b6)){_0x29118e?(_0x951d96['splice'](_0x1b75fe,0x1),_0x1b75fe--):_0x45a76e['removeMarker'](_0x4ebdf4['name']);break;}}}}if(0x0==_0x951d96['length'])return null;const _0x228781=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5975cd,'join');for(const _0x362f64 of this['getSuggestions']()){const _0xfcebd9=_0x362f64['data'];if(_0x362f64['author']['id']==_0x463686['id']&&('formatBlock'==_0x362f64['type']&&_0xfcebd9['formatGroupId']==_0x13f5ae['formatGroupId']&&_0x362f64['subType']==_0x5975cd&&sn(_0x362f64,_0x123c26)&&(_0x228781(_0x362f64['getRanges'](),_0x951d96)||_0x228781(_0x951d96,_0x362f64['getRanges']())))){for(const _0x4e73c3 of _0x951d96)_0x362f64['addRange'](_0x4e73c3);return _0x362f64;}}const _0x30a522=_0x4e95d3(),_0x2ef8d0=_0x463686['id'],_0x226599='formatBlock:'+_0x5975cd,_0x23a5e7=this['_setSuggestionData']({'id':_0x30a522,'type':_0x226599,'data':_0x13f5ae,'createdAt':new Date(),'authorId':_0x2ef8d0,'attributes':_0x123c26});for(const _0x17d612 of _0x951d96)this['_addSuggestionMarker'](_0x226599,_0x30a522,_0x2ef8d0,_0x17d612,T['getMultiRangeId']());return _0x23a5e7;}['markDeletion'](_0x484890,_0x3f8c64=null,_0xfe086a={}){if(_0x484890['isCollapsed'])return null;const _0x4ccf50=this['editor']['plugins']['get']('Users')['me'],_0x11c47f=new _0x1d3f47(_0x484890['start'],_0x484890['end']);this['_trackingSessionId']&&(_0xfe086a['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0xc20897,meta:_0x3880ef}of this['_findSuggestions'](_0x11c47f,'insertion'))if(_0x3880ef['isOwn']&&!_0x3880ef['isNextTo']){if(_0xc20897['isMultiRange']){const _0x17f9f1=_0xc20897['getRanges']()['filter'](_0xb9df9a=>'$graveyard'!=_0xb9df9a['root']['rootName']);_0x17f9f1['every'](_0x2684a8=>_0x11c47f['containsRange'](_0x2684a8,!0x0))&&_0xc20897['discard']();if(_0x17f9f1['some'](_0x525c74=>_0x525c74['containsRange'](_0x11c47f,!0x0))){const _0x32e95b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3f8c64,'accept');return this['forceDefaultExecution'](()=>_0x32e95b([_0x11c47f],null,_0xfe086a)),null;}}else{const _0x5cc462=_0x11c47f['getIntersection'](_0xc20897['getFirstRange']());null!==_0x5cc462&&_0xc20897['_onDiscard']([_0x5cc462],null,_0xfe086a);}}if(_0x11c47f['detach'](),_0x11c47f['isCollapsed']||'$graveyard'==_0x11c47f['root']['rootName'])return null;let _0x385af2=null,_0xc24f78=_0x11c47f['start'],_0x4bf12f=_0x11c47f['end'];const _0xe14751=this['_findSuggestions'](_0x11c47f,'deletion');for(const {suggestion:_0x1f844c,meta:_0x309599}of _0xe14751){const _0xe48abf=this['_model']['createRange'](_0xc24f78,_0x4bf12f);if(_0x309599['isOwn']&&(this['_mergeNestedSuggestions']||!_0x309599['containsRangeInObject']&&!_0x309599['isInsideObject'])){if(_0x1f844c['isMultiRange']){if(!sn(_0x1f844c,_0xfe086a))continue;let _0x557c13=!0x0;for(const _0x1345d4 of _0x1f844c['getRanges']()){if(_0x1345d4['containsRange'](_0xe48abf,!0x0))return _0x1f844c;_0xe48abf['containsRange'](_0x1345d4)||(_0x557c13=!0x1);}_0x557c13&&_0x1f844c['discard']();}else{const _0x37c4f7=_0x1f844c['getFirstRange']();if(_0x37c4f7['containsRange'](_0xe48abf,!0x0))return _0x1f844c;if(!sn(_0x1f844c,_0xfe086a)){_0xe48abf['containsRange'](_0x37c4f7)?_0x1f844c['removeMarkers']():_0x37c4f7['containsPosition'](_0xc24f78)?_0xc24f78=_0x37c4f7['end']:_0x37c4f7['containsPosition'](_0x4bf12f)&&(_0x4bf12f=_0x37c4f7['start']);continue;}_0xc24f78=_0xc24f78['isBefore'](_0x37c4f7['start'])?_0xc24f78:_0x37c4f7['start'],_0x4bf12f=_0x4bf12f['isAfter'](_0x37c4f7['end'])?_0x4bf12f:_0x37c4f7['end'],_0xfe086a=Object['assign']({},_0x1f844c['attributes']),_0x385af2?_0x37c4f7['start']['isBefore'](_0x385af2['getFirstRange']()['start'])?(_0x385af2['removeMarkers'](),_0x385af2=_0x1f844c):_0x1f844c['removeMarkers']():_0x385af2=_0x1f844c;}}}if(_0x385af2)return this['_setSuggestionRange'](_0x385af2,this['_model']['createRange'](_0xc24f78,_0x4bf12f)),_0x385af2;{const _0x3793f4=_0x4e95d3(),_0x37e55f=this['_model']['createRange'](_0xc24f78,_0x4bf12f),_0xffbc88=_0x4ccf50['id'],_0x5e3216=_0x3f8c64?'deletion:'+_0x3f8c64:'deletion',_0x260603=this['_setSuggestionData']({'id':_0x3793f4,'type':_0x5e3216,'createdAt':new Date(),'authorId':_0xffbc88,'attributes':_0xfe086a});return this['_addSuggestionMarker'](_0x5e3216,_0x3793f4,_0xffbc88,_0x37e55f),_0x260603;}}['markMultiRangeDeletion'](_0x2d4517,_0x1c9688='multi',_0xfa1f5b={}){const _0xf307b1=this['editor']['plugins']['get']('Users')['me'],_0x5e64d0=_0x2d4517['map'](_0x197125=>new _0x1d3f47(_0x197125['start'],_0x197125['end'])),_0x5a7e65=new Set();this['_trackingSessionId']&&(_0xfa1f5b['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x42122a,meta:_0x2a0f79}of this['_findSuggestions'](_0x5e64d0,'insertion'))_0x2a0f79['isOwn']&&!_0x2a0f79['isNextTo']&&_0x5a7e65['add'](_0x42122a);for(const _0x22ca08 of _0x5a7e65)if(_0x22ca08['isMultiRange']){const _0x25442f=_0x22ca08['getRanges']();(!_0x22ca08['attributes']||!_0x22ca08['attributes']['skipNestingCheck'])&&(_0x25442f['every'](_0x28ab5a=>_0x5e64d0['some'](_0x144e11=>_0x144e11['containsRange'](_0x28ab5a,!0x0)))&&_0x22ca08['discard']());if(_0x5e64d0['every'](_0x4762eb=>_0x25442f['some'](_0x220caf=>_0x220caf['containsRange'](_0x4762eb,!0x0)))){const _0x397158=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c9688,'accept');return this['forceDefaultExecution'](()=>_0x397158(_0x2d4517,null,_0xfa1f5b)),null;}}else{const _0x4e5ce8=_0x22ca08['getFirstRange']();_0x5e64d0['some'](_0xa3f232=>_0xa3f232['containsRange'](_0x4e5ce8,!0x0))&&_0x22ca08['discard']();if(_0x5e64d0['every'](_0x1c8b2a=>_0x4e5ce8['containsRange'](_0x1c8b2a,!0x0))){const _0x21a218=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c9688,'accept');return this['forceDefaultExecution'](()=>_0x21a218(_0x5e64d0,null,_0xfa1f5b)),null;}}const _0x93e90b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1c9688,'join');let _0x508b11=null;for(const _0x4f5baa of this['getSuggestions']())if(_0x4f5baa['author']['id']==_0xf307b1['id']&&_0x4f5baa['isInContent']&&'deletion'==_0x4f5baa['type']&&_0x4f5baa['subType']==_0x1c9688&&sn(_0x4f5baa,_0xfa1f5b)&&(_0x93e90b(_0x4f5baa['getRanges'](),_0x5e64d0)||_0x93e90b(_0x5e64d0,_0x4f5baa['getRanges']()))){if(_0x508b11){if(_0x4f5baa['commentThread']&&_0x4f5baa['commentThread']['length'])continue;for(const _0x4aa0f7 of _0x4f5baa['getRanges']())_0x508b11['isIntersectingWithRange'](_0x4aa0f7)||_0x508b11['addRange'](_0x4aa0f7);_0x4f5baa['removeMarkers']();}else{_0x508b11=_0x4f5baa;for(const _0x13181a of _0x5e64d0)_0x4f5baa['isIntersectingWithRange'](_0x13181a)||_0x4f5baa['addRange'](_0x13181a);}}if(_0x508b11)return _0x508b11;_0x5a7e65['clear']();for(const {suggestion:_0x101aea,meta:_0xc2ff6c}of this['_findSuggestions'](_0x5e64d0,'deletion'))_0xc2ff6c['isOwn']&&(this['_mergeNestedSuggestions']||!_0xc2ff6c['containsRangeInObject']&&!_0xc2ff6c['isInsideObject'])&&sn(_0x101aea,_0xfa1f5b)&&_0x5a7e65['add'](_0x101aea);for(const _0x232aeb of _0x5a7e65){const _0x2d28af=_0x232aeb['getRanges']();if(!_0xfa1f5b||!_0xfa1f5b['skipNestingCheck']){if(_0x5e64d0['every'](_0x3a7e08=>_0x2d28af['some'](_0x5308da=>_0x5308da['containsRange'](_0x3a7e08,!0x0))))return _0x232aeb;}(!_0x232aeb['attributes']||!_0x232aeb['attributes']['skipNestingCheck'])&&(_0x2d28af['every'](_0x2b56cd=>_0x5e64d0['some'](_0x40fd39=>_0x40fd39['containsRange'](_0x2b56cd,!0x0)))&&_0x232aeb['discard']());}const _0x1dbcdc=_0x4e95d3(),_0x1434fa=_0xf307b1['id'],_0x481976='deletion:'+_0x1c9688,_0x5676cd=this['_setSuggestionData']({'id':_0x1dbcdc,'type':_0x481976,'createdAt':new Date(),'authorId':_0x1434fa,'attributes':_0xfa1f5b});for(const _0x36551d of _0x5e64d0)_0x36551d['detach'](),_0x36551d['isCollapsed']||'$graveyard'==_0x36551d['root']['rootName']||this['_addSuggestionMarker'](_0x481976,_0x1dbcdc,_0x1434fa,_0x36551d,T['getMultiRangeId']());return _0x5676cd;}['markAttributeChange'](_0x3a4a66,_0x1002d6,_0x5ce1bf,_0x18b746,_0x59d7de){if(_0x3a4a66['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4c43bd=this['editor']['plugins']['get']('Users')['me']['id'],_0x5b9127=Array['from'](this['_suggestions']['values']())['filter'](_0x3f98c7=>'attribute'==_0x3f98c7['type']&&_0x3f98c7['data']['key']==_0x1002d6&&_0x3f98c7['isIntersectingWithRange'](_0x3a4a66));if(this['_trackingSessionId']&&(_0x59d7de['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x1fdab7=this['_findSuggestions'](_0x3a4a66,'insertion')['filter'](({meta:_0x3b72ec})=>_0x3b72ec['isOwn']&&!_0x3b72ec['isInsideObject']&&!_0x3b72ec['isNextTo'])['map'](({suggestion:_0x2f2c15})=>_0x2f2c15);_0x5b9127['unshift'](..._0x1fdab7);}const _0x4c4a2e=new Map([[_0x3a4a66,_0x5ce1bf]]);for(const _0x250040 of _0x5b9127){const _0x1643a1='attribute'==_0x250040['type']?_0x250040['data']['oldValue']:void 0x0,_0x30f8b8=_0x250040['getFirstRange'](),_0x44d23c=Array['from'](_0x4c4a2e['keys']())['find'](_0x4ba1a8=>_0x4ba1a8['isIntersecting'](_0x30f8b8));if(!_0x44d23c)continue;const _0x1fe1d6=_0x44d23c['getDifference'](_0x30f8b8);this['_isBlockAttribute'](_0x1002d6)&&'insertion'==_0x250040['type']&&0x0!=_0x1fe1d6['length']||(_0x4c4a2e['delete'](_0x44d23c),_0x1fe1d6['forEach'](_0x2707d2=>{_0x4c4a2e['set'](_0x2707d2,_0x5ce1bf);}),'insertion'!=_0x250040['type']&&_0x1643a1!=_0x18b746&&_0x4c4a2e['set'](_0x44d23c['getIntersection'](_0x30f8b8),_0x1643a1));}const _0x580a5f=[];for(const [_0x1779c2,_0x1fe24a]of _0x4c4a2e){const _0x3fbf6c=_0x4e95d3(),_0x5374ed={'key':_0x1002d6,'oldValue':_0x1fe24a,'newValue':_0x18b746};_0x1002d6['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':_0x1002d6});const _0x1a1262=('attribute:'+(_0x1002d6+'|'+Ht({'newValue':_0x18b746})))['substring'](0x0,0x3c),_0x302042=this['_setSuggestionData']({'id':_0x3fbf6c,'type':_0x1a1262,'data':_0x5374ed,'createdAt':new Date(),'authorId':_0x4c43bd,'attributes':_0x59d7de});_0x580a5f['push'](_0x302042),this['_addSuggestionMarker'](_0x1a1262,_0x3fbf6c,_0x4c43bd,_0x1779c2);}return _0x580a5f;}['enableDefaultAttributesIntegration'](_0x3d34d7){this['enableCommand'](_0x3d34d7,(_0x2befcc,..._0x427ad9)=>{this['recordAttributeChanges'](()=>{_0x2befcc(..._0x427ad9);});});}['registerBlockAttribute'](_0x20dd70){this['editor']['plugins']['get'](_0x3f5ffa)['registerBlockAttribute'](_0x20dd70);}['registerInlineAttribute'](_0x4f9f1f){this['editor']['plugins']['get'](_0x3f5ffa)['registerInlineAttribute'](_0x4f9f1f);}['startTrackingSession'](_0x2465ae){return this['_trackingSessionId']=void 0x0!==_0x2465ae?_0x2465ae:_0x4e95d3(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1819a8){return'attribute'==_0x1819a8['type']?_0x1819a8['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x187e07){if(0x0==_0x187e07['length'])return;const _0x4ba9a5=this['editor'],_0xd6453f=_0x4ba9a5['plugins']['get'](_0x4867a3),_0x57fa8e=[];_0x4ba9a5['model']['change'](_0x27f4c4=>{for(let _0x3d62b4=0x0;_0x3d62b4<_0x187e07['length'];_0x3d62b4++){const _0x563726=_0x187e07[_0x3d62b4];if(_0x563726['baseVersion']=_0x4ba9a5['model']['document']['version'],_0x563726['isDocumentOperation']=!0x0,_0xd6453f['isMarkedRemoveOperation'](_0x563726)){const _0x3fc5b8=_0x124bae(_0x563726['newRange'],_0x4ba9a5['model']);_0x57fa8e['unshift'](_0x1d3f47['fromRange'](_0x3fc5b8));}else switch(_0x563726['type']){case'rename':{const _0x243e76=_0x563726['oldName'],_0x1e3d94=_0x563726['newName'];if(_0x243e76==_0x1e3d94)break;_0x27f4c4['batch']['addOperation'](_0x563726),_0x4ba9a5['model']['applyOperation'](_0x563726);const _0x19cb05='$elementName',_0x37a9f7=_0x563726['position'],_0x30e352=_0x4ba9a5['model']['createRange'](_0x37a9f7,_0x4ba9a5['model']['createPositionAt'](_0x37a9f7['nodeAfter'],'end'));this['markAttributeChange'](_0x30e352,_0x19cb05,_0x243e76,_0x1e3d94,{'groupId':_0x4e95d3()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x221e90=_0x563726['oldValue'],_0x147f0d=_0x563726['newValue'];if(_0x221e90==_0x147f0d)break;_0x27f4c4['batch']['addOperation'](_0x563726),_0x4ba9a5['model']['applyOperation'](_0x563726);const _0x1cb6dd=_0x563726['key'];if(!this['_isRegisteredAttribute'](_0x1cb6dd))break;const _0x317f14=_0x124bae(_0x563726['range'],_0x4ba9a5['model']);this['markAttributeChange'](_0x317f14,_0x1cb6dd,_0x221e90,_0x147f0d,{'groupId':_0x4e95d3()});break;}case'insert':{_0x27f4c4['batch']['addOperation'](_0x563726),_0x4ba9a5['model']['applyOperation'](_0x563726);if(_0x187e07[_0x3d62b4+0x1]&&'move'==_0x187e07[_0x3d62b4+0x1]['type'])break;const _0x393d0d=_0x563726['position'],_0x4b2270=_0x563726['howMany'],_0x410b86=_0x124bae(_0x4ba9a5['model']['createRange'](_0x393d0d,_0x393d0d['getShiftedBy'](_0x4b2270)),_0x4ba9a5['model']);this['markInsertion'](_0x410b86);break;}case'split':{_0x27f4c4['batch']['addOperation'](_0x563726),_0x4ba9a5['model']['applyOperation'](_0x563726);const _0x18d4e0=_0x563726['splitPosition'],_0x1c52e0=_0x563726['moveTargetPosition'];this['markInsertion'](_0x4ba9a5['model']['createRange'](_0x18d4e0,_0x1c52e0));break;}case'move':case'remove':_0x27f4c4['batch']['addOperation'](_0x563726),_0x4ba9a5['model']['applyOperation'](_0x563726);}}for(const _0x5c0f5e of _0x57fa8e)_0x5c0f5e['detach'](),this['markDeletion'](_0x5c0f5e);});}['_setSuggestionRange'](_0x325e63,_0x42299a){const _0x5ca6b5=_0x325e63['getFirstMarker']();this['_model']['change'](_0x5117cd=>{_0x5117cd['updateMarker'](_0x5ca6b5,{'range':_0x42299a});});}['_addThreadToSuggestion'](_0xf97f4f){const _0x45ff08=_0xf97f4f['id'],_0x3a59bd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x45ff08)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3a59bd,'threadId':_0x45ff08,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1393c7=this['_commentsRepository']['getCommentThread'](_0x45ff08);_0x1393c7['unbind']('isRemovable'),_0x1393c7['isRemovable']=!0x1,_0xf97f4f['commentThread']=_0x1393c7;}['_checkSuggestionCorrectness'](_0x44169b,_0x32bcc1,_0x3b2758,_0x3ef054){if(_0x44169b['type']!=_0x32bcc1||_0x44169b['subType']!=_0x3b2758||_0x44169b['creator']['id']!=_0x3ef054)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x21039f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x22cbbd,_0xdedf0e){const _0x35b85a=_0x22cbbd['getFirstRange']();if(_0xdedf0e['isEqual'](_0x35b85a))_0x22cbbd['removeMarkers']();else{if(_0x35b85a['containsRange'](_0xdedf0e)){const _0x487e1f=this['_model']['createPositionAt'](_0xdedf0e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x22cbbd,this['_model']['createRange'](_0x35b85a['start'],_0x487e1f));const _0x46d278=_0x4e95d3(),_0x315073=_0x22cbbd['creator']['id'],_0x4de819=_0x22cbbd['type']+':'+_0x22cbbd['subType'];this['_setSuggestionData']({'id':_0x46d278,'type':_0x4de819,'createdAt':new Date(),'authorId':_0x315073,'data':_0x22cbbd['data'],'attributes':_0x22cbbd['attributes']});const _0x3389f4=this['_model']['createPositionAt'](_0xdedf0e['end']['parent'],'after'),_0x4e8ffa=this['_model']['createRange'](_0x3389f4,_0x35b85a['end']);this['_addSuggestionMarker'](_0x4de819,_0x46d278,_0x315073,_0x4e8ffa);}else{if(_0x35b85a['containsPosition'](_0xdedf0e['start'])){const _0x69a4db=this['_model']['createPositionAt'](_0xdedf0e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x22cbbd,this['_model']['createRange'](_0x35b85a['start'],_0x69a4db));}else{const _0x309eb7=this['_model']['createPositionAt'](_0xdedf0e['end']['parent'],'after');this['_setSuggestionRange'](_0x22cbbd,this['_model']['createRange'](_0x309eb7,_0x35b85a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x52f885){for(const {suggestion:_0x29677e,meta:_0x274b00}of this['_findSuggestions'](_0x52f885,'insertion')){if(!_0x274b00['isOwn'])continue;const _0x55e9cd=_0x29677e['getRanges']();for(const _0x577882 of _0x55e9cd)if(!_0x52f885['getDifference'](_0x577882)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3cbb79){return this['editor']['plugins']['get']('Users')['getUser'](_0x3cbb79);}['_getExternalAuthor'](_0x149caf){const _0x26fea4=this['editor']['plugins']['get']('Users'),_0x42726f=_0x5562e0('external:'+_0x149caf),_0x5ec2f2=_0x26fea4['getUser'](_0x42726f);return _0x5ec2f2||_0x26fea4['addUser']({'id':_0x42726f,'name':_0x149caf});}['_createSuggestion'](_0x807f4f,_0x3f7d6a,_0x7f0a8c,_0x276180,_0x55a0eb,_0x421ea1){const _0x12e2ba=this['_getAuthorFromId'](_0x276180);if(!_0x12e2ba)throw new _0x21039f('track-changes-user-not-found',this,{'authorId':_0x276180,'suggestionId':_0x7f0a8c});const _0x36c373=this['_suggestionFactory']['buildSuggestion'](_0x807f4f,_0x3f7d6a,_0x7f0a8c,_0x12e2ba,_0x55a0eb,_0x413ee3=>{this['_updateSuggestionData'](_0x7f0a8c,{'attributes':_0x413ee3});const _0x2b870e=this['getSuggestion'](_0x7f0a8c);this['_joinWithAdjacentSuggestions'](new Set([_0x2b870e])),this['_refreshSuggestionsChain'](new Set([_0x2b870e]));},_0x421ea1);return this['listenTo'](_0x36c373,'accept',()=>{this['_updateSuggestionData'](_0x7f0a8c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x36c373,'discard',()=>{this['_updateSuggestionData'](_0x7f0a8c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x7f0a8c,_0x36c373),this['_suggestionState']['set'](_0x36c373,'notReady'),_0x36c373;}['_splitMarkerName'](_0x7d670d){return _0x4aeac5(_0x7d670d);}['_breakSuggestionMarker'](_0x3cee9a,_0x56308c,_0x5e79c8){const _0x4e1ef2=_0x3cee9a['getFirstRange'](),_0x370bf0=_0x4e1ef2['start'],_0x3f40a4=_0x4e1ef2['end'];this['_setSuggestionRange'](_0x3cee9a,this['_model']['createRange'](_0x370bf0,_0x56308c));const _0x258726=_0x4e95d3(),_0xa8fab8=_0x3cee9a['creator']['id'],_0x4377ba=_0x3cee9a['type']+(_0x3cee9a['subType']?':'+_0x3cee9a['subType']:'');this['_setSuggestionData']({'id':_0x258726,'type':_0x4377ba,'createdAt':new Date(),'authorId':_0xa8fab8,'originalSuggestionId':_0x3cee9a['_originalSuggestionId']||_0x3cee9a['id'],'attributes':_0x3cee9a['attributes'],'data':_0x3cee9a['data']});const _0x28960b=this['_getAttributeKey'](_0x3cee9a);('formatBlock'==_0x3cee9a['type']||_0x28960b&&this['_isBlockAttribute'](_0x28960b))&&(_0x5e79c8=this['_model']['createPositionBefore'](_0x5e79c8['parent'])),this['_addSuggestionMarker'](_0x4377ba,_0x258726,_0xa8fab8,this['_model']['createRange'](_0x5e79c8,_0x3f40a4));}['_findSuggestions'](_0x7181,_0x3e24be=null){const _0x4c6089=[],_0x449330=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x7181)||(_0x7181=[_0x7181]);for(const _0xf182ca of this['getSuggestions']()){if(!_0xf182ca['isInContent'])continue;if(_0x3e24be&&_0xf182ca['type']!=_0x3e24be)continue;let _0x217975=!0x1;for(const _0x1187ef of _0xf182ca['getRanges']()){for(const _0x3d4211 of _0x7181){const _0x3f735f=_0x3d4211['start']['isEqual'](_0x1187ef['end'])||_0x3d4211['end']['isEqual'](_0x1187ef['start']);if(_0x3f735f||_0x3d4211['getIntersection'](_0x1187ef)){const _0x54f5a1=_0x3d4211['containsRange'](_0x1187ef)&&zt(this['_model']['schema'],_0x1187ef['start'],_0x3d4211),_0x142e05=_0x1187ef['containsRange'](_0x3d4211)&&zt(this['_model']['schema'],_0x3d4211['start'],_0x1187ef);_0x4c6089['push']({'suggestion':_0xf182ca,'meta':{'isOwn':_0x449330==_0xf182ca['author'],'isNextTo':_0x3f735f,'isInsideObject':_0x54f5a1,'containsRangeInObject':_0x142e05}}),_0x217975=!0x0;break;}}if(_0x217975)break;}}return _0x4c6089;}['_addSuggestionMarker'](_0x1dc57f,_0x276abd,_0x152875,_0x4577a6,_0x5a98fb){this['_model']['change'](_0x25d83c=>{let _0xc346fe='suggestion:'+_0x1dc57f+':'+_0x276abd+':'+_0x152875;_0x5a98fb&&(_0xc346fe=_0xc346fe+':'+_0x5a98fb),_0x25d83c['addMarker'](_0xc346fe,{'range':_0x4577a6,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x182fcb){const _0x53e8f3=_0x182fcb['previous'],_0x57f14c=_0x182fcb['next'];_0x182fcb['previous']=null,_0x182fcb['next']=null,null!=_0x53e8f3&&_0x53e8f3['next']==_0x182fcb&&(_0x53e8f3['next']=_0x57f14c),null!=_0x57f14c&&_0x57f14c['previous']==_0x182fcb&&(_0x57f14c['previous']=_0x53e8f3),'ready'==this['_suggestionState']['get'](_0x182fcb)&&(this['_suggestionState']['set'](_0x182fcb,'removed'),this['fire']('suggestionUnloaded',_0x182fcb,_0x53e8f3,_0x57f14c));}['_setSuggestionData'](_0x1be93f){const _0x14d8f0=_0x1be93f['id'],_0x1a157d=this['addSuggestionData'](_0x1be93f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x37a165=this['editor']['plugins']['get']('PendingActions'),_0x241e14=_0x1a157d['hasComments'],_0x52287e=_0x1a157d['subType']?_0x1a157d['type']+':'+_0x1a157d['subType']:_0x1a157d['type'],_0x10b3ae=this['editor']['locale'],_0x35dcbc=_0x37a165['add'](o(_0x10b3ae,'PENDING_ACTION_SUGGESTION')),_0x308b54={'id':_0x14d8f0,'type':_0x52287e,'hasComments':_0x241e14,'data':_0x1be93f['data']||null,'originalSuggestionId':_0x1be93f['originalSuggestionId']||null,'attributes':_0x1a157d['attributes']};this['_adapter']['addSuggestion'](_0x308b54)['then'](_0x5e90ac=>{_0x1a157d['_saved']=!0x0,_0x37a165['remove'](_0x35dcbc),_0x5e90ac&&_0x5e90ac['createdAt']&&(this['_suggestions']['get'](_0x14d8f0)['createdAt']=_0x5e90ac['createdAt']);})['catch'](_0x1b7ccc=>{throw _0x4c4c7d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1a157d['discard']();}),_0x1a157d['stopListening'](),this['_suggestions']['delete'](_0x1a157d['id']),this['_suggestionState']['delete'](_0x1a157d),_0x1b7ccc;});}return _0x1a157d;}['_isBlockAttribute'](_0x2eac11){return this['editor']['plugins']['get'](_0x3f5ffa)['isBlockAttribute'](_0x2eac11);}['_isInlineAttribute'](_0x1c49c5){return this['editor']['plugins']['get'](_0x3f5ffa)['isInlineAttribute'](_0x1c49c5);}['_updateSuggestionData'](_0x272d40,_0x1c44e0){const _0x5c67d6=this['editor']['plugins']['get']('PendingActions'),_0x949286=this['getSuggestion'](_0x272d40);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x949286['_saved']){const _0x1f1db9=_0x5c67d6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x272d40,_0x1c44e0)['then'](()=>{_0x5c67d6['remove'](_0x1f1db9);});}else _0x949286['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x272d40,_0x1c44e0);});}}['_getSuggestionData'](_0x6f6f28){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x21039f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x6f6f28);}['_handleNewSuggestionMarker'](_0x33300){const {id:_0x5a1d60,type:_0x45093f,subType:_0x4c8fdd,authorId:_0x1c156e}=this['_splitMarkerName'](_0x33300),_0x158023=this['_suggestions']['get'](_0x5a1d60)||this['_createSuggestion'](_0x45093f,_0x4c8fdd,_0x5a1d60,_0x1c156e,{});switch(this['_checkSuggestionCorrectness'](_0x158023,_0x45093f,_0x4c8fdd,_0x1c156e),this['_suggestionState']['get'](_0x158023)){case'notReady':this['_getSuggestionData'](_0x5a1d60)['then'](_0x22e774=>{let _0x45c1ee=Promise['resolve']();_0x22e774['hasComments']&&(_0x45c1ee=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5a1d60})),_0x45c1ee['then'](()=>{this['addSuggestionData'](_0x22e774)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x158023,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5a1d60,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x158023,'ready'),this['fire']('suggestionLoaded',_0x158023);break;case'ready':this['fire']('suggestionChanged',_0x158023);}return _0x158023['addMarkerName'](_0x33300),_0x158023;}['_refreshSuggestionsChain'](_0x1e3332){const _0x24e43d=Array['from'](_0x1e3332),_0x3ef16d=_0x24e43d['filter'](_0x180ae0=>'attribute'==_0x180ae0['type']);this['_refreshAttributeSuggestionsChain'](_0x3ef16d);const _0x1b1850=_0x24e43d['filter'](_0x6b66ec=>!_0x6b66ec['isMultiRange']&&'attribute'!=_0x6b66ec['type']),_0x1280c2=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1f5fed=>!_0x1f5fed['isMultiRange']&&'attribute'!=_0x1f5fed['type']),_0xd772c2=_0x1280c2['filter'](_0x98d23f=>!_0x1e3332['has'](_0x98d23f)),_0x5cc2f7=new Map(_0x1280c2['map'](_0x215cc2=>[_0x215cc2,this['_suggestionFactory']['getSuggestionCallback'](_0x215cc2['type'],_0x215cc2['subType'],'chain')])),_0x41629a=new Map(_0x1280c2['map'](_0x538ab6=>[_0x538ab6,_0x538ab6['getFirstRange']()])),_0x1e2530=new Set(),_0x423535=new Set();for(let _0x490b9d=0x0;_0x490b9d<_0x1b1850['length'];_0x490b9d++)_0x103fab(_0x1b1850[_0x490b9d],_0x1b1850,_0x490b9d+0x1);for(let _0x29ab0a=0x0;_0x29ab0a<_0x1b1850['length'];_0x29ab0a++)_0x103fab(_0x1b1850[_0x29ab0a],_0xd772c2,0x0);const _0x37a8a2=new Set();for(let _0x219748=0x0;_0x219748<_0x1b1850['length'];_0x219748++){const _0x60d8d3=_0x1b1850[_0x219748];!_0x423535['has'](_0x60d8d3)&&_0x60d8d3['previous']&&(_0x37a8a2['add'](_0x60d8d3['previous']),_0x60d8d3['previous']['next']===_0x60d8d3&&(_0x60d8d3['previous']['next']=null),_0x60d8d3['previous']=null),!_0x1e2530['has'](_0x60d8d3)&&_0x60d8d3['next']&&(_0x37a8a2['add'](_0x60d8d3['next']),_0x60d8d3['next']['previous']===_0x60d8d3&&(_0x60d8d3['next']['previous']=null),_0x60d8d3['next']=null);}function _0x103fab(_0x20e460,_0x494370,_0x4ab6f5){for(let _0x133216=_0x4ab6f5;_0x133216<_0x494370['length'];_0x133216++){const _0x434189=_0x19da62(_0x20e460,_0x494370[_0x133216]);_0x434189&&(_0x434189[0x0]['next']=_0x434189[0x1],_0x434189[0x1]['previous']=_0x434189[0x0],_0x1e2530['add'](_0x434189[0x0]),_0x423535['add'](_0x434189[0x1]));}}function _0x19da62(_0x42199e,_0x167802){if(_0x42199e['author']['id']!==_0x167802['author']['id'])return null;const _0x4f73f9=_0x5cc2f7['get'](_0x42199e)(_0x42199e,_0x167802,_0x41629a['get'](_0x42199e),_0x41629a['get'](_0x167802));if(!_0x4f73f9)return null;return _0x5cc2f7['get'](_0x167802)(_0x42199e,_0x167802,_0x41629a['get'](_0x42199e),_0x41629a['get'](_0x167802))?_0x4f73f9[0x1]['commentThread']&&_0x4f73f9[0x1]['commentThread']['length']?null:_0x4f73f9:null;}_0x37a8a2['size']&&this['_refreshSuggestionsChain'](_0x37a8a2);}['_refreshAttributeSuggestionsChain'](_0x2dc693){if(0x0==_0x2dc693['length'])return;const _0x51d94e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x339d77=>'attribute'==_0x339d77['type']&&_0x339d77['_isDataLoaded']),_0x253879=[],_0x5a0236=new Map();for(const _0x54edf8 of _0x51d94e){const _0x52fe00=_0x5562e0(_0x54edf8['attributes']);_0x5a0236['has'](_0x52fe00)||(_0x5a0236['set'](_0x52fe00,_0x253879['length']),_0x253879['push']([]));const _0x3e83ad=_0x5a0236['get'](_0x52fe00);_0x253879[_0x3e83ad]['push'](_0x54edf8);}!(function(){_0x253879['sort']((_0x5a886f,_0x1e3e2b)=>{const _0x5e844a=_0x5a886f[0x0]['createdAt'],_0x1139c9=_0x1e3e2b[0x0]['createdAt'];return _0x5e844a==_0x1139c9?_0x5a886f[0x0]['attributes']['groupId']<_0x1e3e2b[0x0]['attributes']['groupId']?-0x1:0x1:_0x5e844a<_0x1139c9?-0x1:0x1;});for(const _0x4b4b62 of _0x253879)_0x4b4b62['sort']((_0xb0db83,_0x1a4931)=>_0xb0db83['id']<_0x1a4931['id']?-0x1:0x1);}());for(let _0x34fb2b=0x0;_0x34fb2b<_0x253879['length'];_0x34fb2b++){if(0x0==_0x253879[_0x34fb2b]['length'])continue;const _0x5c43f7=[];for(let _0xa9bb1d=_0x34fb2b+0x1;_0xa9bb1d<_0x253879['length'];_0xa9bb1d++)0x0!=_0x253879[_0xa9bb1d]['length']&&_0x102e8b(_0x253879[_0x34fb2b],_0x253879[_0xa9bb1d])&&_0x5c43f7['push'](_0xa9bb1d);for(const _0x1386dd of _0x5c43f7)_0x253879[_0x34fb2b]=_0x253879[_0x34fb2b]['concat'](_0x253879[_0x1386dd]),_0x253879[_0x1386dd]=[];}for(const _0x4b6d64 of _0x253879)for(let _0x9baa18=0x0;_0x9baa18<_0x4b6d64['length'];_0x9baa18++){const _0x2989aa=_0x4b6d64[_0x9baa18+0x1]||null;_0x4b6d64[_0x9baa18]['next']!==_0x2989aa&&(_0x4b6d64[_0x9baa18]['next']=_0x2989aa);}for(const _0x14153c of _0x253879)for(let _0x27fc0f=0x0;_0x27fc0f<_0x14153c['length'];_0x27fc0f++){const _0x3b3386=_0x14153c[_0x27fc0f-0x1]||null;_0x14153c[_0x27fc0f]['previous']!==_0x3b3386&&(_0x14153c[_0x27fc0f]['previous']=_0x3b3386);}function _0x102e8b(_0x4246ee,_0x3af337){if(_0x4246ee[0x0]['attributes']['groupId']!==_0x3af337[0x0]['attributes']['groupId']&&_0x4246ee[0x0]['author']!==_0x3af337[0x0]['author'])return!0x1;if(!function(_0x5ce740,_0x58fd71){if(!_0x5ce740['hasComments']&&!_0x58fd71['hasComments'])return!0x0;if(_0x5ce740['hasComments']&&_0x58fd71['hasComments'])return!0x1;if(_0x5ce740['hasComments']&&_0x58fd71['createdAt']<_0x5ce740['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x58fd71['hasComments']&&_0x5ce740['createdAt']<_0x58fd71['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4246ee[0x0],_0x3af337[0x0]))return!0x1;const _0x105234=Jt(_0x4246ee[0x0]['attributes'],['groupId','trackingSessionId']),_0x506818=Jt(_0x3af337[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x154f33(_0x105234,_0x506818))return!0x1;if(_0x4246ee[0x0]['attributes']['groupId']==_0x3af337[0x0]['attributes']['groupId'])return!0x0;if(_0x4246ee[0x0]['attributes']['trackingSessionId']!==_0x3af337[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x4246ee['every'](_0x1f2d23=>_0x3af337['some'](_0x1558b6=>_0x1f2d23['getFirstRange']()['isEqual'](_0x1558b6['getFirstRange']())))&&_0x3af337['every'](_0x401793=>_0x4246ee['some'](_0x370d38=>_0x401793['getFirstRange']()['isEqual'](_0x370d38['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2da180){const _0x9c294a=Array['from'](_0x2da180),_0x2ea53d=this['getSuggestions']({'skipNotAttached':!0x0}),_0x564850=_0x2ea53d['filter'](_0x478480=>!_0x2da180['has'](_0x478480)),_0x418c55=new Map(_0x9c294a['map'](_0x589d4c=>[_0x589d4c,this['_suggestionFactory']['getSuggestionCallback'](_0x589d4c['type'],_0x589d4c['subType'],'join')])),_0x6d3996=new Map(_0x2ea53d['map'](_0x4d46d4=>[_0x4d46d4,_0x4d46d4['getRanges']()]));for(let _0x48b7eb=0x0;_0x48b7eb<_0x9c294a['length'];_0x48b7eb++){if(_0x46cb77(this,_0x9c294a[_0x48b7eb],_0x9c294a,_0x48b7eb+0x1))return!0x0;}for(let _0x131aba=0x0;_0x131aba<_0x9c294a['length'];_0x131aba++){if(_0x46cb77(this,_0x9c294a[_0x131aba],_0x564850,0x0))return!0x0;}return!0x1;function _0x46cb77(_0x838635,_0x5b4d42,_0x474508,_0x2eafe1){for(let _0x5126a5=_0x2eafe1;_0x5126a5<_0x474508['length'];_0x5126a5++){const _0x232309=_0x474508[_0x5126a5];if(_0x232309['type']!==_0x5b4d42['type']||_0x232309['author']['id']!==_0x5b4d42['author']['id']||_0x232309['subType']!==_0x5b4d42['subType'])continue;if(!en(_0x5b4d42,_0x232309))continue;if('attribute'==_0x5b4d42['type']&&_0x5b4d42['data']['oldValue']!=_0x232309['data']['oldValue'])continue;if('attribute'==_0x5b4d42['type']&&_0x838635['_isBlockAttribute'](_0x5b4d42['data']['key']))continue;if('formatBlock'==_0x5b4d42['type']){const _0x42ef69=_0x838635['editor']['model'],_0x28d6dc=_0x5b4d42['getContainedElement']();if(_0x28d6dc&&(_0x42ef69['schema']['isObject'](_0x28d6dc)||_0x42ef69['schema']['isLimit'](_0x28d6dc)))continue;}const _0x5afbbd=_0x418c55['get'](_0x5b4d42),_0x4cc910=_0x6d3996['get'](_0x5b4d42),_0x948599=_0x6d3996['get'](_0x232309),_0x50d6e2=_0x5b4d42['commentThread']&&_0x5b4d42['commentThread']['length'],_0x5d7c96=_0x232309['commentThread']&&_0x232309['commentThread']['length'];if(!_0x50d6e2&&_0x5afbbd(_0x948599,_0x4cc910))return _0x838635['_joinSuggestions'](_0x232309,_0x5b4d42),_0x6d3996['delete'](_0x5b4d42),!0x0;if(!_0x5d7c96&&_0x5afbbd(_0x4cc910,_0x948599))return _0x838635['_joinSuggestions'](_0x5b4d42,_0x232309),_0x6d3996['delete'](_0x232309),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1bfa4f,_0x2cac8f){if(_0x1bfa4f['isMultiRange']){for(const _0xbc440c of _0x2cac8f['getRanges']())_0x1bfa4f['addRange'](_0xbc440c);}else{const _0xe501d=_0x2cac8f['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1bfa4f,this['_model']['createRange'](_0x1bfa4f['getFirstRange']()['start'],_0xe501d));}_0x2cac8f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x55aa45,_0x4306c8,_0x13ae38){const _0x589e47=_0x55aa45['startsWith']('format')||_0x55aa45['startsWith']('attribute')?'FORMATTING':_0x55aa45['toUpperCase']();return o(this['editor']['locale'],_0x4306c8+'_'+_0x589e47+'_SUGGESTION_ANNOUNCEMENT',_0x13ae38);}['_initAriaMarkerChangeAnnouncements'](){const _0x515d4a=this['editor'];if(!_0x515d4a['ui'])return;const {ariaLiveAnnouncer:_0x1efe53}=_0x515d4a['ui'];_0x57019d(this['_model'],({left:_0xd96a26,entered:_0x5cee36})=>{for(const _0x22b420 of _0xd96a26){const {group:_0x5741dc,type:_0x524055}=this['_splitMarkerName'](_0x22b420['name']);if('suggestion'===_0x5741dc){_0x1efe53['announce'](this['_getMarkerAnnouncementText'](_0x524055,'LEAVE'));break;}}for(const _0x126620 of _0x5cee36){const {group:_0x3effb9,type:_0x189e88}=this['_splitMarkerName'](_0x126620['name']);if('suggestion'===_0x3effb9){_0x1efe53['announce'](this['_getMarkerAnnouncementText'](_0x189e88,'ENTER',_0x4079b0(_0x340c32)));break;}}});}['_processAttributeChanges'](_0x9c3775){if(this['_recordAttributeSuggestions'])return!0x1;const _0x404ed0=this['editor'],_0x2a9aed=_0x404ed0['model']['document']['differ']['getChanges']();if(0x0==_0x2a9aed['length'])return!0x1;const _0x1344ae=[],_0x5d290d=_0x2a9aed['filter'](_0x1d44c8=>'attribute'==_0x1d44c8['type']),_0x28ce59=_0x2a9aed['filter'](_0x4ad47f=>'insert'==_0x4ad47f['type']&&'$text'!=_0x4ad47f['name']),_0x353393=_0x2a9aed['filter'](_0x1e8b01=>'remove'==_0x1e8b01['type']&&'$text'!=_0x1e8b01['name']);for(const _0x5220b4 of _0x5d290d)_0x1344ae['push']({'key':_0x5220b4['attributeKey'],'newValue':_0x5220b4['attributeNewValue'],'oldValue':_0x5220b4['attributeOldValue'],'range':Zt(_0x5220b4['range'],_0x404ed0['model'])});for(const _0x151292 of _0x28ce59){const _0x4f36c7=_0x353393['find'](_0x3094f9=>_0x3094f9['position']['isEqual'](_0x151292['position']));_0x4f36c7&&_0x1344ae['push']({'key':m,'newValue':_0x151292['name'],'oldValue':_0x4f36c7['name'],'range':_0x404ed0['model']['createRangeOn'](_0x151292['position']['nodeAfter'])});}return 0x0!=_0x1344ae['length']&&this['_reduceExistingSuggestions'](_0x9c3775,_0x1344ae);}['_processAttributeSuggestions'](_0x24a1b7){let _0x2c13bc=!0x1;const _0x30e75a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2c39b4=>_0x2c39b4['data']['newRange']&&_0x2c39b4['name']['startsWith']('suggestion:attribute:'));for(const _0xf0383a of _0x30e75a){const {subType:_0x5ccc81,id:_0x41144e}=this['_splitMarkerName'](_0xf0383a['name']),_0x292c4c=_0x5ccc81['split']('|')[0x0];for(const _0x45d2e1 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x45d2e1['id']!=_0x41144e&&'attribute'==_0x45d2e1['type']&&_0x45d2e1['data']&&_0x45d2e1['data']['key']==_0x292c4c&&_0x45d2e1['getFirstRange']()['isIntersecting'](_0xf0383a['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x45d2e1,_0xf0383a['data']['newRange'],_0x24a1b7),_0x2c13bc=!0x0);}return _0x2c13bc;}['recordAttributeChanges'](_0x2cce34){this['_recordAttributeSuggestions']=!0x0,_0x2cce34();}['_isRegisteredAttribute'](_0x39e1cd){return this['editor']['plugins']['get'](_0x3f5ffa)['isRegisteredAttribute'](_0x39e1cd);}['_reduceExistingSuggestions'](_0x260d39,_0x313b98){if(0x0==_0x313b98['length'])return!0x1;let _0x3ef38b=!0x1;for(const _0x43a2f1 of _0x313b98){const _0x1321bc=this['_findSuggestions'](_0x43a2f1['range'],'attribute')['filter'](_0x44a433=>!_0x44a433['meta']['isNextTo'])['map'](_0x7ac75b=>_0x7ac75b['suggestion']),_0x5afcb2=_0x5562e0({'newValue':_0x43a2f1['newValue']});_0x1321bc['filter'](_0x5d5b44=>{const [_0x5c30ec,_0x93e67a]=_0x5d5b44['subType']['split']('|');return _0x5c30ec==_0x43a2f1['key']&&_0x93e67a!=_0x5afcb2;})['forEach'](_0x5e662e=>{this['_reduceSuggestionAttributeRange'](_0x5e662e,_0x43a2f1['range'],_0x260d39),_0x3ef38b=!0x0;});}return _0x3ef38b;}['_reduceSuggestionAttributeRange'](_0x12a422,_0x3f1cf8,_0x2dcfe1){const _0x2b1861=_0x12a422['getFirstRange']()['getDifference'](_0x3f1cf8);0x0!==_0x2b1861['length']?0x1!==_0x2b1861['length']?this['_breakSuggestionMarker'](_0x12a422,_0x3f1cf8['start'],_0x3f1cf8['end']):this['_setSuggestionRange'](_0x12a422,_0x2b1861[0x0]):_0x2dcfe1['removeMarker'](_0x12a422['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5ad30e){this['_editor']=_0x5ad30e,this['_model']=_0x5ad30e['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x409d75,_0x141c46,_0xcc06af,_0x8b98b9,_0x836b6,_0xdb7b52,_0x1b0d06){return new T(this['_model'],{'type':_0x409d75,'subType':_0x141c46,'id':_0xcc06af,'originalSuggestionId':_0x1b0d06,'author':_0x8b98b9,'creator':_0x8b98b9,'attributes':_0x836b6,'onAttributesChange':_0xdb7b52,'onAccept':(..._0x43e8f2)=>this['getSuggestionCallback'](_0x409d75,_0x141c46,'accept')(..._0x43e8f2),'onDiscard':(..._0x54f444)=>this['getSuggestionCallback'](_0x409d75,_0x141c46,'discard')(..._0x54f444)});}['registerCustomCallback'](_0x29852a,_0x257df5,_0x323d20,_0x429797){const _0x174063=_0x29852a+':'+_0x257df5+':'+_0x323d20;this['_customCallbacks']['set'](_0x174063,_0x429797);}['getSuggestionCallback'](_0x543567,_0x2f4ef7,_0x45b52a){const _0x4604ca=_0x543567+':'+_0x2f4ef7+':'+_0x45b52a;return this['_customCallbacks']['get'](_0x4604ca)||this['_defaultCallbacks']['get'](_0x543567+':'+_0x45b52a);}['_registerDefaultCallbacks'](){const _0x341a0b=()=>!0x1,_0x47d7e6=_0x163838=>{_0x163838['sort']((_0x1053e6,_0x2c70b4)=>_0x1053e6['start']['isBefore'](_0x2c70b4['start'])?0x1:-0x1),this['_model']['change'](_0x5401b6=>{for(const _0x2f4ebd of _0x163838){let _0x879507;_0x879507=_0x2f4ebd['end']['isAtEnd']&&_0x2f4ebd['end']['parent']==_0x2f4ebd['start']['nodeAfter']?_0x5401b6['createSelection'](_0x2f4ebd['start']['nodeAfter'],'on'):_0x5401b6['createSelection'](_0x2f4ebd),this['_model']['deleteContent'](_0x879507,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x4f9d1b=(_0x355720,_0x31c999)=>{_0x31c999&&this['_model']['change'](_0x47273d=>{const {commandName:_0x1bb50e,commandParams:_0x3b062e=[]}=_0x31c999,_0x315112=_0x355720['map'](_0x2b8463=>(Kt(_0x2b8463)&&(_0x2b8463=this['_model']['createRange'](_0x2b8463['end'])),_0x2b8463))['filter'](_0x210215=>'$graveyard'!==_0x210215['root']['rootName']);if(_0x315112['length']<0x1)return;const _0x3c1826=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5dbf86=>_0x1d3f47['fromRange'](_0x5dbf86));_0x47273d['setSelection'](_0x315112);for(const _0x24d1a6 of this['_editor']['commands']['commands']())_0x24d1a6['refresh']();_0x3b062e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1bb50e,..._0x3b062e);const _0x461ebd=_0x3c1826['filter'](_0x552ffb=>'$graveyard'!=_0x552ffb['root']['rootName']);_0x461ebd['length']>0x0&&_0x47273d['setSelection'](_0x461ebd);for(const _0x136d5a of _0x3c1826)_0x136d5a['detach']();});},_0x21f5bb=(_0x53a326,_0x1e81f9)=>0x1==_0x53a326['length']&&0x1==_0x1e81f9['length']&&_0x53a326[0x0]['end']['isEqual'](_0x1e81f9[0x0]['start']),_0x3225b9=(_0x5c2184,_0x1de73c,_0x5ecea0,_0x259910)=>nn(_0x5c2184,_0x1de73c,_0x5ecea0,_0x259910)?[_0x5c2184,_0x1de73c]:nn(_0x1de73c,_0x5c2184,_0x259910,_0x5ecea0)?[_0x1de73c,_0x5c2184]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x341a0b),this['_defaultCallbacks']['set']('insertion:discard',_0x47d7e6),this['_defaultCallbacks']['set']('insertion:join',_0x21f5bb),this['_defaultCallbacks']['set']('insertion:chain',_0x3225b9),this['_defaultCallbacks']['set']('deletion:accept',_0x47d7e6),this['_defaultCallbacks']['set']('deletion:discard',_0x341a0b),this['_defaultCallbacks']['set']('deletion:join',_0x21f5bb),this['_defaultCallbacks']['set']('deletion:chain',_0x3225b9),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f9d1b),this['_defaultCallbacks']['set']('formatInline:discard',_0x341a0b),this['_defaultCallbacks']['set']('formatInline:join',_0x21f5bb),this['_defaultCallbacks']['set']('formatInline:chain',_0x341a0b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f9d1b),this['_defaultCallbacks']['set']('formatBlock:discard',_0x341a0b),this['_defaultCallbacks']['set']('formatBlock:join',_0x21f5bb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x341a0b),this['_defaultCallbacks']['set']('attribute:accept',_0x341a0b),this['_defaultCallbacks']['set']('attribute:discard',(_0x160bdc,_0x5edc8a)=>{if(!_0x5edc8a)return;const _0x35357d=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1dd5a7=>{if(_0x5edc8a['key']==m)for(const _0x10f391 of _0x160bdc){const _0x247458=_0x10f391['start']['nodeAfter'],_0x5bc110=_0x5edc8a['oldValue'];_0x1dd5a7['rename'](_0x247458,_0x5bc110);}else{if(_0x35357d['_isBlockAttribute'](_0x5edc8a['key'])){for(const _0x3169ba of _0x160bdc)void 0x0!==_0x5edc8a['oldValue']?_0x1dd5a7['setAttribute'](_0x5edc8a['key'],_0x5edc8a['oldValue'],_0x3169ba['start']['nodeAfter']):_0x1dd5a7['removeAttribute'](_0x5edc8a['key'],_0x3169ba['start']['nodeAfter']);}else{for(const _0x280322 of _0x160bdc)_0x5edc8a['oldValue']?_0x1dd5a7['setAttribute'](_0x5edc8a['key'],_0x5edc8a['oldValue'],_0x280322):_0x1dd5a7['removeAttribute'](_0x5edc8a['key'],_0x280322);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x21f5bb);}}function zt(_0xce1ee5,_0x6986c2,_0x5eb29d){for(const _0x2c04d0 of _0x6986c2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2c04d0['root']==_0x2c04d0)return!0x1;if(!_0x5eb29d['containsItem'](_0x2c04d0))return!0x1;if(_0xce1ee5['isObject'](_0x2c04d0)||_0xce1ee5['isLimit'](_0x2c04d0))return!0x0;}return!0x1;}function Kt(_0x436fb4){return _0x436fb4['end']['parent']==_0x436fb4['start']['nodeAfter']&&_0x436fb4['end']['isAtStart'];}function Wt(_0x1798a2,_0x3de729,_0x5dee49,_0xe4b4f2){const _0x741e0a=_0x4f1114=>!_0x4f1114['item']['is']('$textProxy')&&!_0xe4b4f2['isObject'](_0x4f1114['item']),_0x27fadf=_0x1798a2['start']['getLastMatchingPosition'](_0x741e0a),_0x363891=_0x1798a2['end']['getLastMatchingPosition'](_0x741e0a,{'direction':'backward'});return(!_0x1798a2['start']['isEqual'](_0x27fadf)||!_0x1798a2['end']['isEqual'](_0x363891))&&(_0x27fadf['isBefore'](_0x363891)?_0x5dee49['updateMarker'](_0x3de729,{'range':_0x5dee49['createRange'](_0x27fadf,_0x363891)}):_0x5dee49['removeMarker'](_0x3de729),!0x0);}function Ht(_0x405775){return _0x5562e0(_0x405775);}function Qt(_0x153e5e){const _0x203eb6=_0x153e5e['start']['nodeAfter'];return _0x203eb6&&_0x203eb6['is']('element');}function Xt(_0x513470){return Kt(_0x513470)||function(_0x547077){return _0x547077['start']['parent']==_0x547077['end']['nodeBefore']&&_0x547077['start']['isAtEnd'];}(_0x513470);}function Yt(_0x1b5990,_0x4b841f){try{const _0x2b28b9=_0x1b5990['getRange']();for(const _0x349fcb of _0x4b841f)if(_0x1b5990!==_0x349fcb&&_0x2b28b9&&_0x2b28b9['isIntersecting'](_0x349fcb['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1453ed,_0x82076d){return null==_0x1453ed['end']['nodeBefore']&&_0x1453ed['end']['parent']==_0x1453ed['start']['nodeAfter']?tn(_0x1453ed['start']['nodeAfter'],_0x82076d):_0x1453ed;}function tn(_0x39d21b,_0x168e7e){const _0x5bca04=_0x168e7e['schema']['isObject'](_0x39d21b)||_0x168e7e['schema']['isSelectable'](_0x39d21b);return _0x168e7e['createRange'](_0x168e7e['createPositionAt'](_0x39d21b,'before'),_0x5bca04?_0x168e7e['createPositionAfter'](_0x39d21b):_0x168e7e['createPositionAt'](_0x39d21b,'end'));}function nn(_0x583c3e,_0x37c10a,_0x59abf2,_0x520222){return!!en(_0x583c3e,_0x37c10a)&&_0x59abf2['end']['isEqual'](_0x520222['start']);}function en(_0x4260d5,_0x256f23){if(!_0x4260d5['_isDataLoaded']||!_0x256f23['_isDataLoaded'])return!0x1;const _0x4db036=new Set(Object['keys'](_0x4260d5['attributes'])),_0x31d6c1=new Set(Object['keys'](_0x256f23['attributes']));if(_0x4db036['delete']('groupId'),_0x31d6c1['delete']('groupId'),0x0==_0x4db036['size']&&0x0==_0x31d6c1['size'])return!0x0;if(_0x4db036['size']!=_0x31d6c1['size'])return!0x1;const _0x1f6888={..._0x4260d5['attributes']},_0x416b74={..._0x256f23['attributes']};return delete _0x1f6888['groupId'],delete _0x416b74['groupId'],JSON['stringify'](_0x1f6888)==JSON['stringify'](_0x416b74);}function sn(_0x4d8e7a,_0x41df89){const _0x5a0b9f=on(_0x4d8e7a['attributes']),_0x3d7348=on(_0x41df89);if(!_0x4d8e7a['_isDataLoaded'])return!0x1;for(const _0x38808c of Object['keys'](_0x3d7348))if(!_0x154f33(_0x5a0b9f[_0x38808c],_0x3d7348[_0x38808c]))return!0x1;return!0x0;}function on(_0x46fd91){const _0x415194=Object['assign']({},_0x46fd91);return delete _0x415194['skipNestingCheck'],delete _0x415194['tablePasteChainId'],_0x415194;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x5a1462(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x329fb6,_0x2839e6,_0x560812,_0x1d81d9){super(),this['model']=_0x2839e6,this['view']=_0x560812,this['commentThreadController']=_0x1d81d9,this['_editor']=_0x329fb6,this['_acceptCommand']=_0x329fb6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x329fb6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3d65bc,_0x32f31e)=>_0x3d65bc||_0x32f31e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x25d127=>_0x25d127&&this['_editor']['model']['canEditAt'](_0x2839e6['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3e98b3=>_0x3e98b3&&this['_editor']['model']['canEditAt'](_0x2839e6['getRanges']())),this['_pendingAction']=null,_0x560812['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x560812,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x560812,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x560812,'change:isDirty',()=>{_0x560812['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 _0xb0cf4c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xb0cf4c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x233468{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4120af,_0x56467f,_0x118c0e,_0x470e8c){super(_0x4120af),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x153de3(_0x4120af,o(_0x4120af,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x56467f['authoredAt']),this['bind']('authoredAt')['to'](_0x56467f),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',_0x56467f,'authoredAt',this,'descriptionParts',(_0x18f66e,_0x269524,_0x2f4a3f)=>{const _0x3fdcc6=_0x2f4a3f['map'](_0x33555c=>ls(_0x33555c['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x18f66e-0x1,_0x56467f['author']['name'],_0x269524?_0x470e8c['formatDateTime'](_0x269524):'',new DOMParser()['parseFromString'](_0x3fdcc6,'text/html')['body']['textContent']]);}),this['focusables']=new _0xf60e0a(),this['focusTracker']=new _0x10bd90(),this['keystrokes']=new _0x5b2bd3(),this['focusCycler']=new _0x116081({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x3967a5=>_0x3967a5['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x56467f,this['_localUser']=_0x118c0e,this['_config']=_0x470e8c,_0x470e8c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x9d51d1(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4200cb}=this['_config'];this['commentsListView']=new _0x4200cb(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',_0x46534a=>_0x46534a+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1962b4,_0xe4f7e8)=>_0x1962b4||!!_0xe4f7e8);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xe36d8b}=this['_config'],_0x229221=new _0xe36d8b(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2986c9=_0x229221['commentInputView'];return _0x229221['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2986c9,'value',(_0x3f8c0f,_0x66a137,_0x5dd52b)=>!!_0x5dd52b||_0x3f8c0f&&!_0x66a137),_0x2986c9['on']('submit',(_0x239a1a,_0x4ea38b)=>{this['fire']('addComment',_0x4ea38b),_0x2986c9['editor']['setData']('');}),_0x2986c9['on']('cancel',()=>this['focus']()),_0x2986c9['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x229221;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x3b4029,_0x197307,_0x3abd27,_0x4f88d5){super(_0x3b4029,_0x197307,_0x3abd27,_0x4f88d5),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x41b73f=>_0x41b73f&&_0x41b73f[0x0]?_0x41b73f[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5b751f,_0x3b9595)=>{let _0x1caf8b='';for(const _0x263a23 of _0x5b751f)_0x1caf8b+='<p>'+ls(_0x263a23['content'],_0x263a23['color'])+'</p>';return _0x3b9595?_0x1caf8b:_0xe02527(_0x1caf8b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4f88d5['SuggestionView'](_0x3b4029,_0x197307,{'formatDateTime':_0x4f88d5['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 _0xbb3cfd=this['bindTemplate'],_0x4b186b=[this['suggestionView']];return this['commentsListView']&&_0x4b186b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4b186b['push'](this['commentThreadInputView']),_0x4b186b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0xbb3cfd['if']('isActive','ck-suggestion-wrapper--active'),_0xbb3cfd['to']('type',_0x259048=>'ck-suggestion-'+_0x259048),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':_0xbb3cfd['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4b186b};}['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 _0x233468{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x1790af,_0x283bd1,_0x71818a){super(_0x1790af),this['_model']=_0x283bd1,this['_config']=_0x71818a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x283bd1),this['acceptButton']=this['_createButton'](o(_0x1790af,'Accept\x20suggestion'),_0x487776,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x1790af,'Discard\x20suggestion'),_0x30b730,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x533ddd(_0x1790af,_0x283bd1['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xf60e0a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x10bd90(),this['keystrokes']=new _0x5b2bd3(),this['focusCycler']=new _0x116081({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2e620b=>_0x2e620b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5368c3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5368c3['innerHTML']=this['description'],this['on']('change:description',(_0x18f991,_0x50322c,_0x39afa8)=>{_0x5368c3['innerHTML']=_0x39afa8;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x39f17c=this['bindTemplate'],_0x37c790=[{'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':_0x39f17c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x39f17c['to']('authoredAt',_0x163c6b=>this['_config']['formatDateTime'](_0x163c6b))}]}]},{'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']&&_0x37c790['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':_0x37c790}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3cc749,_0x33ed05,_0x170e21,_0x282aeb,_0x2237ab){const _0x2c58f5=new _0x2b150b(this['locale']);return _0x2c58f5['set']({'label':_0x3cc749,'icon':_0x33ed05,'tooltip':!0x0,'tooltipPosition':_0x2237ab}),_0x2c58f5['extendTemplate']({'attributes':{'class':_0x170e21}}),_0x2c58f5['on']('execute',()=>{this['fire'](_0x282aeb,this['_model']['id']);}),_0x2c58f5;}['_setupKeyboardNavigation'](){const _0x2dd720=this['element'];this['keystrokes']['listenTo'](_0x2dd720);for(const _0x105d68 of this['focusables'])this['focusTracker']['add'](_0x105d68['element']),this['keystrokes']['listenTo'](_0x105d68['element']);this['keystrokes']['set']('enter',(_0x2b8ace,_0xf9b243)=>{_0x2dd720===_0x2b8ace['target']&&(this['focusCycler']['focusFirst'](),_0xf9b243());}),this['keystrokes']['set']('esc',(_0x50c6a1,_0x27288d)=>{_0x2dd720!==_0x50c6a1['target']&&(this['focus'](),_0x27288d());});}}class u extends _0x3a4f29{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x57f159,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c7013){super(_0x1c7013),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f3e5a=this['editor']['config'];_0x3f3e5a['define']('trackChanges.SuggestionThreadView',fe),_0x3f3e5a['define']('trackChanges.SuggestionView',we),_0x3f3e5a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f3e5a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x508534,_0x5b9ec9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x54def7,_0x3ea1b2]of this['_handleControllerBuffer']){const _0x1f1120=this['_suggestionToController']['has'](_0x54def7);_0x1f1120||_0x3ea1b2?_0x1f1120&&_0x3ea1b2&&this['_destroyController'](_0x54def7):this['_initializeController'](_0x54def7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x508534,_0x5b9ec9);}['init'](){const _0x389e62=this['editor'],_0x59fda1=_0x389e62['plugins']['get']('TrackChangesEditing'),_0x3abd89=_0x389e62['plugins']['get']('Annotations'),_0x125942=_0x389e62['plugins']['get']('EditorAnnotations'),_0xdb9ee0=_0x389e62['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x125942['addSourceCollector'](()=>{const _0x4a397a=[];for(const [_0x271ccd,_0x135ea3]of Array['from'](this['_suggestionToController'])){const _0x3c6c40=_0x271ccd['getAllAdjacentSuggestions'](),_0x51a270=[];for(const _0xfa09fe of _0x3c6c40){if(!_0xfa09fe['isInContent'])continue;if(_0xfa09fe['isMultiRange']){_0x51a270['push'](..._0xfa09fe['getRanges']());continue;}const _0x12e162=_0xfa09fe['getFirstRange']();if(_0x51a270['length']>0x0){const _0x3fd44a=_0x51a270[0x0]['getJoined'](_0x12e162);if(_0x3fd44a){_0x51a270[0x0]=_0x3fd44a;continue;}}_0x51a270['push'](_0x12e162);}_0x4a397a['push']([_0x135ea3['view'],_0x51a270]);}return _0x4a397a;}),this['listenTo'](_0x59fda1,'suggestionLoaded',(_0x1551ca,_0x2a49bb)=>{this['listenTo'](_0x2a49bb,'change:previous',(_0x2461be,_0x1963ed,_0x371eac,_0x32b2d5)=>{_0x2a49bb['isInContent']&&(null==_0x371eac?(this['_updateController'](_0x32b2d5['head']),this['_handleSuggestionControllerDelayed'](_0x2a49bb,!0x1)):(this['_updateController'](_0x371eac['head']),null==_0x32b2d5&&this['_handleSuggestionControllerDelayed'](_0x2a49bb,!0x0)));}),null!==_0x2a49bb['previous']?this['_updateController'](_0x2a49bb['head']):this['_handleSuggestionControllerDelayed'](_0x2a49bb,!0x1);}),this['listenTo'](_0x59fda1,'suggestionUnloaded',(_0x422f2,_0x63ab9c,_0x18f5de)=>{this['stopListening'](_0x63ab9c,'change:previous'),this['_handleControllerBuffer']['delete'](_0x63ab9c),this['_suggestionToController']['has'](_0x63ab9c)&&this['_destroyController'](_0x63ab9c),_0x18f5de&&this['_updateController'](_0x18f5de['head']);}),this['listenTo'](_0x59fda1,'suggestionChanged',(_0x41c5eb,_0x1d208a)=>{this['_updateController'](_0x1d208a);}),this['listenTo'](_0x3abd89,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xdb9ee0,'addComment',(_0x492197,{threadId:_0x10ce88,isFromAdapter:_0x330d5b})=>{if(_0x330d5b||!_0x59fda1['hasSuggestion'](_0x10ce88))return;const _0x4a172f=_0x59fda1['getSuggestion'](_0x10ce88);this['_suggestionToController']['get'](_0x4a172f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x56312e=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x346ce9;for(const _0x3d4b1c in _0x56312e){const _0x18c618=_0x3d4b1c,_0x5243f8=_0x56312e[_0x18c618];if('trackChangesLicenseKeyValid'==_0x5243f8||'trackChangesLicenseKeyInvalid'==_0x5243f8||'trackChangesLicenseKeyExpired'==_0x5243f8||'trackChangesLicenseKeyDomainLimit'==_0x5243f8||'trackChangesLicenseKeyNotAllowed'==_0x5243f8||'trackChangesLicenseKeyEvaluationLimit'==_0x5243f8||'trackChangesLicenseKeyUsageLimit'==_0x5243f8){delete _0x56312e[_0x18c618],_0x346ce9=_0x5243f8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x346ce9&&_0x56312e['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x346ce9&&_0x56312e['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x346ce9&&_0x56312e['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x346ce9&&_0x56312e['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x346ce9&&_0x56312e['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x346ce9&&_0x56312e['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x2d1d45){const _0x594e19=this['_suggestionToController']['get'](_0x2d1d45);if(!_0x594e19)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x594e19['view'])||null;}['getSuggestionForAnnotation'](_0x109a9f){const _0x52c8dd=this['_viewToController']['get'](_0x109a9f['innerView']);return _0x52c8dd?_0x52c8dd['model']:null;}['_refreshActiveMarkers'](){const _0x3b916b=this['editor']['plugins']['get']('Annotations'),_0x34fe4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1ed1fe=Array['from'](_0x3b916b['activeAnnotations'],_0xfc2676=>_0xfc2676['innerView'])['filter'](_0x29d3de=>this['_viewToController']['has'](_0x29d3de)),_0x5cfb3f=[];for(const _0x3ccae2 of _0x1ed1fe){const _0x4af828=this['_viewToController']['get'](_0x3ccae2)['model']['getAllAdjacentSuggestions']();_0x5cfb3f['push'](..._0x4af828['reduce']((_0x5c33d1,_0x42b04e)=>[..._0x5c33d1,..._0x42b04e['getMarkerNames']()],[]));}_0x34fe4d['activeMarkers']=_0x5cfb3f;}['_addUIComponentsToFactory'](){const _0x5209dc=this['editor'],_0x370a66=_0x5209dc['locale'],_0x228ddb=o(_0x370a66,'Track\x20changes'),_0x56fc9a=new _0x23da04([{'type':'switchbutton','model':new _0x2d29b1({'withText':!0x0,'isToggleable':!0x0,'label':_0x228ddb,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2d29b1({'withText':!0x0,'label':o(_0x370a66,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d29b1({'withText':!0x0,'label':o(_0x370a66,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d29b1({'withText':!0x0,'label':o(_0x370a66,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2d29b1({'withText':!0x0,'label':o(_0x370a66,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5209dc['plugins']['has']('TrackChangesPreview')&&_0x56fc9a['addMany']([{'type':'separator'},{'type':'button','model':new _0x2d29b1({'withText':!0x0,'label':o(_0x370a66,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xf856ab of _0x56fc9a)if(ke(_0xf856ab)){const _0x10289a=_0x5209dc['commands']['get'](_0xf856ab['model']['commandName']);_0xf856ab['model']['bind']('isOn','isEnabled')['to'](_0x10289a,'value','isEnabled');}_0x5209dc['ui']['componentFactory']['add']('trackChanges',_0x8071a=>this['_createToolbarButton'](_0x8071a,_0x56fc9a,_0x228ddb)),_0x5209dc['ui']['componentFactory']['add']('menuBar:trackChanges',_0x21662c=>this['_createMenuBarMenu'](_0x21662c,_0x56fc9a,_0x228ddb));}['_createToolbarButton'](_0x3e0df4,_0x4e724c,_0x3cd5a9){const _0x407afb=_0x927a40(_0x3e0df4,_0x25cc91),_0x3596c=this['editor']['commands']['get']('trackChanges');_0x407afb['buttonView']['set']({'tooltip':_0x3cd5a9,'label':_0x3cd5a9,'icon':_0xbc336}),_0x407afb['buttonView']['bind']('isOn')['to'](_0x3596c,'value'),_0x407afb['buttonView']['on']('execute',()=>{_0x3596c['execute'](),this['editor']['editing']['view']['focus']();}),_0x1a6ba1(_0x407afb,_0x4e724c,{'role':'menu'});const _0x4197a3=[];for(const _0x181e2f of _0x4e724c)ke(_0x181e2f)&&_0x4197a3['push'](this['editor']['commands']['get'](_0x181e2f['model']['commandName']));const _0x17fa8f=_0x407afb['buttonView'];return _0x17fa8f['actionView']['unbind']('isEnabled'),_0x17fa8f['arrowView']['unbind']('isEnabled'),_0x17fa8f['actionView']['bind']('isEnabled')['to'](_0x3596c,'isEnabled'),_0x17fa8f['arrowView']['bind']('isEnabled')['toMany'](_0x4197a3,'isEnabled',(..._0x41dad9)=>_0x41dad9['some'](_0xe6e68c=>_0xe6e68c)),_0x407afb['on']('execute',_0x44e75d=>{this['editor']['execute'](_0x44e75d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x407afb;}['_createMenuBarMenu'](_0x5d6237,_0x5ca2bf,_0x1acd69){const _0x3f7b1e=new _0x57e6af(_0x5d6237),_0x945eab=this['editor']['commands']['get']('trackChanges');_0x3f7b1e['buttonView']['set']({'label':_0x1acd69,'icon':_0xbc336});const _0x2f80a3=new _0xd793d7(_0x5d6237);for(const _0x1dae15 of _0x5ca2bf){if('separator'==_0x1dae15['type']){_0x2f80a3['items']['add'](new _0x21d5f4(_0x5d6237));continue;}const _0x87e776=new _0x4d90a1(_0x5d6237,_0x3f7b1e),_0x328d76=new _0x413a6b(_0x5d6237),_0x56c79d=_0x1dae15['model'];_0x328d76['bind'](...Object['keys'](_0x56c79d))['to'](_0x56c79d),_0x328d76['delegate']('execute')['to'](_0x3f7b1e),_0x328d76['on']('execute',()=>{this['editor']['execute'](_0x56c79d['commandName']),this['editor']['editing']['view']['focus']();}),_0x87e776['children']['add'](_0x328d76),_0x2f80a3['items']['add'](_0x87e776);}return _0x3f7b1e['bind']('isEnabled')['to'](_0x945eab,'isEnabled'),_0x3f7b1e['panelView']['children']['add'](_0x2f80a3),_0x3f7b1e;}['_initializeController'](_0x31d1a6){const _0x25b58d=this['editor'],_0x28d358=_0x25b58d['config'],_0x9a6584=_0x25b58d['plugins']['get']('Annotations'),_0x638de=_0x25b58d['plugins']['get']('CommentsRepository'),_0xba8a10=_0x25b58d['plugins']['get']('EditorAnnotations'),_0x31798b=_0x25b58d['plugins']['get'](_0x57f159)['me'],_0x49a181=_0x28d358['get']('trackChanges')['SuggestionThreadView'],_0x169443=_0x28d358['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x472cf3,CommentThreadInputView:_0x3087b1}=_0x25b58d['plugins']['get']('CommentsUI');let _0x567de3,_0x11c650,_0x4223f4;this['_annotationViews']['has'](_0x31d1a6['id'])?(_0x11c650=this['_annotationViews']['get'](_0x31d1a6['id']),_0x567de3=_0x11c650['mainView']):(_0x567de3=new _0x49a181(_0x25b58d['locale'],_0x31d1a6,_0x31798b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x28d358['get']('comments.editorConfig'),'licenseKey':_0x28d358['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x28d358['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x28d358['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x28d358['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3c4717(_0x28d358['get']('locale'),_0x25b58d['locale']),'CommentView':_0x28d358['get']('comments')['CommentView'],'CommentsListView':_0x472cf3,'CommentThreadInputView':_0x3087b1,'SuggestionView':_0x169443}),_0x567de3['suggestionView']['acceptButton']['on']('execute',()=>{_0x25b58d['editing']['view']['focus']();}),_0x567de3['suggestionView']['discardButton']['on']('execute',()=>{_0x25b58d['editing']['view']['focus']();}),_0x11c650=_0x9a6584['createAnnotationView'](this['editor']['locale'],_0x567de3),_0x11c650['bind']('isDirty')['to'](_0x567de3,'isDirty'),_0x11c650['bind']('length')['to'](_0x567de3),_0x11c650['bind']('type')['to'](_0x567de3,'type',_0x346d51=>'suggestion-'+_0x346d51),_0x567de3['on']('escape',()=>{_0x4223f4['fire']('escape');}),this['_annotationViews']['set'](_0x31d1a6['id'],_0x11c650));const _0x139c2b=_0x638de['createCommentThreadController'](_0x31d1a6['commentThread'],_0x567de3),_0xaca8b3=new pe(_0x25b58d,_0x31d1a6,_0x567de3,_0x139c2b),_0x5da5ba=_0x31d1a6['getAllAdjacentSuggestions']()['filter'](_0x2eb45c=>_0x2eb45c['isInContent']);_0x567de3['descriptionParts']=_0x25b58d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5da5ba),this['_suggestionToController']['set'](_0x31d1a6,_0xaca8b3),this['_viewToController']['set'](_0x567de3,_0xaca8b3);const _0x5930f9=()=>{const _0x42d8c4=[],_0x24fb77=_0x31d1a6['getAllAdjacentSuggestions']()['filter'](_0x3a9541=>_0x3a9541['isInContent']);for(const _0x15c2af of _0x24fb77)_0x42d8c4['push'](..._0x15c2af['getMarkers']());return _0xcb0081(_0x25b58d['editing'],_0x42d8c4);};_0x4223f4=_0x9a6584['createAnnotation']({'view':_0x11c650,'target':_0x5930f9,'type':()=>'suggestion-'+_0xaca8b3['view']['type'],'isVisible':!!_0x5930f9()}),_0x638de['_bindAnnotationToEditors'](_0x567de3,_0x4223f4),_0x9a6584['add'](_0x4223f4),_0xba8a10['registerAnnotation'](_0x4223f4);}['_destroyController'](_0x3dba30){const _0x57de49=this['editor']['plugins']['get']('CommentsRepository'),_0x24d2fd=this['editor']['plugins']['get']('Annotations'),_0x28aa23=this['_suggestionToController']['get'](_0x3dba30),_0x20311b=_0x28aa23['view'],_0x558f75=_0x24d2fd['getByInnerView'](_0x20311b);_0x57de49['_unbindEditors'](_0x20311b),_0x558f75&&_0x24d2fd['remove'](_0x558f75),this['_suggestionToController']['delete'](_0x3dba30),this['_viewToController']['delete'](_0x20311b),_0x28aa23['destroy']();}['_updateController'](_0x3fce63){if(!_0x3fce63['isInContent']||!this['_suggestionToController']['has'](_0x3fce63))return;const _0x155057=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13c9df=this['_suggestionToController']['get'](_0x3fce63),_0x309deb=_0x3fce63['getAllAdjacentSuggestions']();_0x13c9df['view']['descriptionParts']=_0x155057['descriptionFactory']['getDescriptions'](_0x309deb);}['destroy'](){for(const _0x5b1d80 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5b1d80);for(const _0x4e8602 of this['_annotationViews']['values']())_0x4e8602['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x44da12){return'model'in _0x44da12;}class Ne extends _0x3a4f29{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x26f554){this['editor']['plugins']['get'](d)['adapter']=_0x26f554;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x350a56){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x350a56);}['getSuggestions']({skipNotAttached:_0x454d5c=!0x1,toJSON:_0x32ad8d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x454d5c,'toJSON':_0x32ad8d});}['getSuggestion'](_0x52ee8f){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x52ee8f);}}const p=['Pagination'];class re extends _0x3a4f29{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x341eae=this['editor'];if(_0x341eae['config']['define']('trackChangesData.editorCreator',_0x2428a3=>{const _0x3ae024=_0x341eae['model']['document']['getRootNames']()['reduce']((_0x3ca583,_0x339c9a)=>(_0x3ca583[_0x339c9a]='',_0x3ca583),{});return _0x341eae['constructor']['create'](_0x3ae024,_0x2428a3);}),'function'!=typeof _0x341eae['config']['get']('trackChangesData')['editorCreator'])throw new _0x21039f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2cd587){return P(this['editor'],!0x0,_0x2cd587);}['getDataWithDiscardedSuggestions'](_0x50f424){return P(this['editor'],!0x1,_0x50f424);}}class Fe extends _0x3a4f29{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xe7ba5d){function _0x5da4a9(_0x3a409a){return _0x3a409a['map'](_0xc18b5e=>String['fromCharCode'](_0xc18b5e))['join']('');}super(_0xe7ba5d),this['result']='end',_0xe7ba5d[_0x5da4a9([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5da4a9([0x76,0x69,0x65,0x77])][_0x5da4a9([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5da4a9([0x61,0x75,0x74,0x6f]),_0xe7ba5d[_0x5da4a9([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5da4a9([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5da4a9([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5da4a9([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5da4a9([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 De(_0x118c9e){return void 0x0!==_0x118c9e['getRootsAttributes'];}async function P(_0x5e524e,_0x336813,_0x6f6551){const _0x34f3f3=_0x4331ee(_0x5e524e,p);_0x34f3f3['plugins']['push'](d,Fe),_0x34f3f3['rootsAttributes']=De(_0x5e524e)?_0x5e524e['getRootsAttributes']():void 0x0;const _0x4ba7e0=document['createDocumentFragment'](),_0xf66496=_0x5e524e['config']['get']('trackChangesData')['editorCreator'],_0x5eaf1e=await _0xf66496(_0x34f3f3,()=>function(_0x192e0b){const _0x4a144b=document['createElement']('div');return _0x192e0b['appendChild'](_0x4a144b),_0x4a144b;}(_0x4ba7e0));!function(_0x5497d3,_0x257454){const _0x22a4b7=_0x5497d3['model']['document']['getRootNames']()['reduce']((_0x381bfd,_0xc1b7a1)=>(_0x381bfd[_0xc1b7a1]=_0x5497d3['data']['get']({'rootName':_0xc1b7a1}),_0x381bfd),{}),_0x59984e=_0x5497d3['plugins']['get']('Users')['users']['map'](_0x1443b6=>({'id':_0x1443b6['id'],'name':_0x1443b6['name']})),_0x44e933=_0x5497d3['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xae04ba=_0x5497d3['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x481316=_0x257454['plugins']['get']('Users'),_0x37e66e=_0x257454['plugins']['get']('TrackChangesEditing'),_0x349073=_0x257454['plugins']['get']('CommentsRepository');for(const _0x39111e of _0x349073['getCommentThreads']())_0x39111e['remove']();for(const _0x4af025 of _0x59984e)_0x481316['getUser'](_0x4af025['id'])||_0x481316['addUser'](_0x4af025);_0x481316['me']||_0x481316['useAnonymousUser']();for(const _0x37e628 of _0xae04ba)_0x349073['addCommentThread'](_0x37e628);for(const _0x397ea6 of _0x44e933)_0x37e66e['addSuggestionData'](_0x397ea6);_0x257454['data']['set'](_0x22a4b7);}(_0x5e524e,_0x5eaf1e),_0x5eaf1e['execute'](_0x336813?'acceptAllSuggestions':'discardAllSuggestions');const _0x36a4aa=De(_0x5eaf1e)?_0x5eaf1e['getFullData'](_0x6f6551):_0x5eaf1e['data']['get'](_0x6f6551);return await _0x5eaf1e['destroy'](),_0x36a4aa;}class Me extends _0x233468{['options'];constructor(_0x506cb8,_0x3a3e51){super(_0x506cb8),this['options']=_0x3a3e51,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'](_0x4709c5,_0x1d3d4d){if(!this['element'])return;const _0x5e9c48=[];for(const [_0x451fc7,_0x25a21d]of _0x4709c5){const _0x38ca72=document['createElement']('div');_0x38ca72['setAttribute']('data-ck-root-name',_0x451fc7),_0x38ca72['className']=_0x25a21d['classes']+'\x20ck-track-changes-preview__root-container',_0x38ca72['innerHTML']=_0x25a21d['content'],_0x5e9c48['push'](_0x38ca72);}_0x1d3d4d(this['element'],_0x5e9c48),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1c4f35{constructor(_0xde598c){super(_0xde598c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x337dcb=this['editor'],_0x542a2c=_0x337dcb['locale'],_0x2864f3=_0x337dcb['plugins']['get']('Dialog');let _0x3c7c32;const _0xbbe86d=function(_0x4edacc){const _0x20e917={};if('editables'in _0x4edacc['ui']['view']){for(const [_0x5d5cf3,_0x4c1b1e]of Object['entries'](_0x4edacc['ui']['view']['editables']))_0x20e917[_0x5d5cf3]=_0x4c1b1e['element'];}else _0x20e917[_0x4edacc['model']['document']['getRootNames']()[0x0]]=_0x4edacc['ui']['view']['editable']['element'];return _0x20e917;}(_0x337dcb),_0x14ade0=function(_0x5dc38f){let _0x4e9b68=0x0;for(const _0x47c251 of Object['values'](_0x5dc38f))_0x4e9b68=Math['max'](_0x4e9b68,_0x47c251['getBoundingClientRect']()['width']);let _0x279815=0x0;for(const _0x29d6a3 of Object['values'](_0x5dc38f))_0x279815+=_0x29d6a3['getBoundingClientRect']()['height'];const _0x10bbb9=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x142390=Math['min'](_0x279815,_0x10bbb9);return{'width':_0x4e9b68,'height':_0x142390};}(_0xbbe86d);_0x2864f3['show']({'id':'finalContentPreview','title':o(_0x542a2c,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x542a2c,{'dialogRects':_0x14ade0}),'onHide':()=>{_0x3c7c32['detachFromDom']();},'onShow':()=>{_0x337dcb['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x398a29=>{const _0x232c90=this['_standarizeRootsData'](_0x398a29,_0x337dcb,_0xbbe86d);_0x2864f3['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x232c90,_0x337dcb['config']['get']('trackChanges.preview.renderFunction'));}),_0x3c7c32=new _0xc81731(_0x542a2c,[_0x2864f3['view']]),_0x3c7c32['attachToDom'](),_0x3c7c32['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x337dcb['once']('destroy',()=>{_0x3c7c32['detachFromDom']();});const _0x3375bb=_0x2864f3['view']['headerView']['class'];_0x2864f3['view']['headerView']['class']=_0x3375bb?_0x3375bb+'\x20ck-reset_all':'ck-reset_all',_0x2864f3['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2864f3['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x200a04=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x203877=_0x200a04['previewMode'],_0x1d85a3={};if('$labels'===_0x203877){for(const _0x35e590 of _0x200a04['getMergeFieldsIds']())_0x1d85a3[_0x35e590]=_0x200a04['getLabel'](_0x35e590)||_0x35e590;}else{const _0x1cafee='$defaultValues'===_0x203877?_0x200a04['getDefaultValues']():_0x200a04['getDataSetValues'](_0x203877,!0x0);for(const _0x5b6c76 of Object['entries'](_0x1cafee)){const [_0x29d681,_0x5ad214]=_0x5b6c76;_0x1d85a3[_0x29d681]=null!==_0x5ad214?_0x5ad214:_0x200a04['getLabel'](_0x29d681)||_0x29d681;}}return{'mergeFieldsData':_0x1d85a3};}['_standarizeRootsData'](_0x2b72a6,_0x219de4,_0x411109){let _0xf3eee2;if('string'==typeof _0x2b72a6){const _0xd6288=_0x219de4['model']['document']['getRootNames']()[0x0];_0xf3eee2={[_0xd6288]:_0x2b72a6};}else _0xf3eee2=_0x2b72a6;const _0x42e008=this['_fixMediaEmbeds'](_0xf3eee2,_0x219de4),_0x5f3a32=function(_0x4844e9,_0x5344ff){for(const [_0xea0bb0,_0x4f3d9f]of _0x4844e9)_0x4f3d9f['classes']=_0x5344ff[_0xea0bb0]['classList']['value']['replace']('ck-focused','');return _0x4844e9;}(this['_sortRoots'](_0x219de4)['reduce']((_0x4e67dd,_0x372b50)=>(_0x4e67dd['push']([_0x372b50,{'content':_0x42e008[_0x372b50],'classes':''}]),_0x4e67dd),[]),_0x411109);return _0x5f3a32;}['_fixMediaEmbeds'](_0x57e8af,_0x1d38e1){if(!_0x1d38e1['plugins']['has']('MediaEmbedEditing'))return _0x57e8af;const _0x50e4c7=_0x1d38e1['plugins']['get']('MediaEmbedEditing');for(const [_0x50bd44,_0x2a1df2]of Object['entries'](_0x57e8af)){const _0x122df0=document['createElement']('div');_0x122df0['innerHTML']=_0x2a1df2,(_0x122df0['querySelectorAll']('figure.media')['forEach'](_0x5da9bc=>{const _0x4b4536=_0x5da9bc['querySelector']('oembed');if(_0x4b4536){const _0x5d9a61=_0x4b4536['getAttribute']('url');if(_0x5d9a61){const _0x47ac14=_0x50e4c7['registry']['getMediaViewElement'](new _0x11f511(_0x1d38e1['editing']['view']['document']),_0x5d9a61,{'elementName':'','renderForEditingView':!0x0}),_0x520755=document['createElement']('div');_0x520755['classList']['add']('ck-media__wrapper'),_0x47ac14['render'](_0x520755,_0x1d38e1['editing']['view']['domConverter']),_0x4b4536['replaceWith'](_0x520755);}}}),_0x57e8af[_0x50bd44]=_0x122df0['innerHTML']);}return _0x57e8af;}['_sortRoots'](_0x140289){if(!function(_0x2120f4){return void 0x0!==_0x2120f4['getRootsAttributes'];}(_0x140289))return _0x140289['model']['document']['getRootNames']();const _0x391288=[],_0x543d95=new Map();for(const _0xa9f3d3 of _0x140289['model']['document']['getRootNames']()){const _0x43cf41=_0x140289['editing']['view']['getDomRoot'](_0xa9f3d3)['getClientRects']()['item'](0x0);_0x391288['push'](_0xa9f3d3),_0x543d95['set'](_0xa9f3d3,_0x43cf41);}return _0x391288['sort']((_0x5c33ed,_0x462158)=>{const _0x4a6d2a=_0x543d95['get'](_0x5c33ed),_0x33b63f=_0x543d95['get'](_0x462158);return _0x4a6d2a['y']-_0x33b63f['y']||_0x4a6d2a['x']-_0x33b63f['x'];}),_0x391288;}}class Ue extends _0x3a4f29{static get['requires'](){return[re,_0x464e9d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x387bd2){super(_0x387bd2),_0x387bd2['commands']['add']('previewFinalContent',new te(this['editor'])),_0x387bd2['config']['define']('trackChanges.preview.renderFunction',(_0x425928,_0x319077)=>{for(const _0x40b950 of _0x319077)_0x425928['appendChild'](_0x40b950);});}}export{O as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,x as DiscardSuggestionCommand,M as ExecuteOnAllSuggestionsCommand,R as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,E as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,B as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|