@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20260117.0 → 0.0.0-nightly-20260118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
24
|
-
_0x37b356(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x388239,_0x59b92e){super(),this['id']=_0x59b92e['id'],this['type']=_0x59b92e['type'],this['subType']=_0x59b92e['subType']||null,this['author']=_0x59b92e['author'],this['creator']=_0x59b92e['creator']||_0x59b92e['author'],this['isExternal']=Boolean(_0x59b92e['attributes']&&_0x59b92e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x59b92e['originalSuggestionId']||null,this['_model']=_0x388239,this['_onAccept']=_0x59b92e['onAccept'],this['_onDiscard']=_0x59b92e['onDiscard'],this['_onAttributesChange']=_0x59b92e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x59b92e['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 _0x552d22=this;for(;_0x552d22['previous'];)_0x552d22=_0x552d22['previous'];return _0x552d22;}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'](_0x35631c){this['_markerNames']['add'](_0x35631c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x4e86f8=>this['_model']['markers']['get'](_0x4e86f8))['filter'](_0x448b41=>_0x448b41);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x49127b=>{for(const _0x216170 of this['getMarkers']())_0x49127b['removeMarker'](_0x216170);}),this['_markerNames']['clear']();}['removeMarker'](_0x413776){this['_model']['change'](_0x1502c5=>{_0x1502c5['removeMarker'](_0x413776);}),this['_markerNames']['delete'](_0x413776);}['addRange'](_0x1d440d){const _0x2e46af='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x2e46af),this['_model']['change'](_0x29799f=>{_0x29799f['addMarker'](_0x2e46af,{'range':_0x1d440d,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x22b659){for(const _0x23c58e of this['getRanges']())if(_0x23c58e['isIntersecting'](_0x22b659))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x275bd4=>_0x275bd4['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x472689,_0x115d77)=>[..._0x472689,..._0x115d77['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xc38c99=this['getRanges']();if(0x1!=_0xc38c99['length'])return null;const _0x461425=_0xc38c99[0x0],_0x5d6a36=_0x461425['start']['nodeAfter'],_0x12184e=_0x461425['end']['nodeBefore'];return _0x5d6a36 instanceof _0x4c2e29?_0x5d6a36!=_0x12184e?null:_0x5d6a36: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 _0x5097e5=[];let _0x2dd4fa=this['head'];for(;_0x2dd4fa;)_0x5097e5['push'](_0x2dd4fa),_0x2dd4fa=_0x2dd4fa['next'];return _0x5097e5;}['setAttribute'](_0x2847f2,_0x1acdb4){const _0xfc676c=_0x182341(this['attributes']);_0x2a8a89(_0xfc676c,_0x2847f2,_0x1acdb4),_0x478de4(_0xfc676c,this['attributes'])||(this['attributes']=_0xfc676c,this['_onAttributesChange'](_0xfc676c));}['removeAttribute'](_0x3433c6){const _0x44e71f=_0x182341(this['attributes']);_0x10d5fe(_0x44e71f,_0x3433c6),_0x478de4(_0x44e71f,this['attributes'])||(this['attributes']=_0x44e71f,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 _0x2aca75()['substr'](0x1,0x5);}}function o(_0x430880,_0x5b61bf,_0xba97b4){const _0x2fc540=_0x430880['t'],t=_0x430880['t'];switch(_0x5b61bf){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',_0xba97b4);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xba97b4);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xba97b4);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xba97b4);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xba97b4);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',_0xba97b4);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xba97b4);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',_0xba97b4);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xba97b4);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xba97b4);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xba97b4);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xba97b4);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xba97b4);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xba97b4);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xba97b4);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xba97b4);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xba97b4);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xba97b4);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xba97b4);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xba97b4);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xba97b4);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xba97b4);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xba97b4);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xba97b4);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xba97b4);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'},_0xba97b4);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xba97b4);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xba97b4);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xba97b4);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xba97b4);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xba97b4);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xba97b4);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xba97b4);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'},_0xba97b4);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xba97b4);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xba97b4);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xba97b4);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xba97b4);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0xba97b4);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xba97b4);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'},_0xba97b4);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'},_0xba97b4);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xba97b4);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'},_0xba97b4);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xba97b4);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'},_0xba97b4);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xba97b4);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0xba97b4);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0xba97b4);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0xba97b4);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xba97b4);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'},_0xba97b4);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xba97b4);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 _0x2fc540({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xba97b4);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2fc540({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xba97b4);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xba97b4);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'},_0xba97b4);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'},_0xba97b4);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'},_0xba97b4);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5b61bf;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x49fae6,_0x32f406){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x49fae6,this['_locale']=_0x32f406;}['getDescriptions'](_0x1d0070){const _0xd3d457=[],_0x243288=new Set(),_0x23e6a3=new Set();for(let _0x48b30c=0x0;_0x48b30c<_0x1d0070['length'];_0x48b30c++){const _0x4b84e5=_0x1d0070[_0x48b30c];if(!_0x4b84e5['isInContent'])continue;const _0x19c6d8=this['_handleCustomCallbackDescription'](_0x4b84e5);if(_0x19c6d8){if(null!=_0x4b84e5['subType']){if(_0x243288['has'](_0x4b84e5['subType']))continue;_0x243288['add'](_0x4b84e5['subType']);}_0xd3d457['push'](_0x19c6d8);}else{if('attribute'==_0x4b84e5['type']){const _0x4ba8c2=_0x4b84e5['data']['key'];if(_0x23e6a3['has'](_0x4ba8c2))continue;_0x23e6a3['add'](_0x4b84e5['data']['key']),_0x4ba8c2==m?this['_handleRenameSuggestionDescription'](_0xd3d457,_0x4b84e5):this['_handleAttributeSuggestionDescription'](_0xd3d457,_0x4b84e5);continue;}'insertion'!=_0x4b84e5['type']&&'deletion'!=_0x4b84e5['type']||this['_handleInsertRemoveSuggestionDescription'](_0xd3d457,_0x4b84e5,_0x1d0070[_0x48b30c+0x1]);}}return this['_resolveDescriptionItems'](_0xd3d457);}['registerDescriptionCallback'](_0x281468){this['_customCallbacks']['push'](_0x281468);}['registerElementLabel'](_0xcf5afa,_0x31acc2,_0x47f971=_0x481aea['normal']){'function'==typeof _0xcf5afa?_0x2f1ac4(this['_itemLabelsCallbacks'],{'matchingCallback':_0xcf5afa,'label':_0x31acc2,'priority':_0x47f971}):this['_itemLabels']['set'](_0xcf5afa,_0x31acc2);}['registerAttributeLabel'](_0x368fca,_0x30960f){this['_attributeLabels']['set'](_0x368fca,_0x30960f);}['getItemLabel'](_0x26e3f7,_0x3219a4=0x1){let _0x2fab64;for(const _0x576849 of this['_itemLabelsCallbacks'])if(_0x576849['matchingCallback'](_0x26e3f7)){_0x2fab64=_0x576849['label'];break;}return _0x2fab64||(_0x2fab64=this['_itemLabels']['get'](_0x26e3f7['name'])),_0x2fab64?_0x2fab64(_0x3219a4):0x1!==_0x3219a4?_0x3219a4+'\x20'+_0x26e3f7['name']+'s':''+_0x26e3f7['name'];}['_addDescriptionItems'](_0x487ce1,_0x4eb3f0){const _0x7cada3=_0x4eb3f0['getFirstRange']()['getWalker'](),_0x37ada7='insertion'==_0x4eb3f0['type']?'add':'remove';for(const _0x4be029 of _0x7cada3){const _0x3982f8=_0x4be029['item'],_0x24d68a=_0x487ce1[_0x487ce1['length']-0x1];if(_0x3982f8['is']('$textProxy'))_0x24d68a&&_0x24d68a['type']['indexOf']('Container')>-0x1&&_0x487ce1['pop'](),_0x24d68a&&'text'==_0x24d68a['type']?_0x24d68a[_0x37ada7]+=_0x3982f8['data']:_0x487ce1['push']({'type':'text','add':'add'==_0x37ada7?_0x3982f8['data']:'','remove':'remove'==_0x37ada7?_0x3982f8['data']:''});else{if(this['_schema']['isObject'](_0x3982f8)){const _0x412a48=_0x3982f8;if(_0x24d68a&&_0x24d68a['type']['indexOf']('Container')>-0x1&&_0x487ce1['pop'](),'elementEnd'==_0x4be029['type'])continue;_0x24d68a&&_0x24d68a['type']==_0x37ada7+'Object'&&_0x24d68a['element']['name']==_0x412a48['name']?_0x24d68a['quantity']++:_0x487ce1['push']({'type':_0x37ada7+'Object','element':_0x412a48,'quantity':0x1}),_0x7cada3['skip'](_0x205e7e=>!('elementEnd'==_0x205e7e['type']&&_0x205e7e['item']==_0x3982f8));}else{if(this['_schema']['checkChild'](_0x3982f8,'$text')||_0x3982f8['is']('element','softBreak')){const _0x3392d4=_0x3982f8;if('add'==_0x37ada7&&'elementStart'==_0x4be029['type']||'remove'==_0x37ada7&&'elementEnd'==_0x4be029['type'])continue;if(_0x24d68a&&-0x1==_0x24d68a['type']['indexOf']('Container')){'text'==_0x24d68a['type']&&(_0x24d68a[_0x37ada7]+='\x0a');continue;}let _0x5a365f;if(_0x5a365f='add'==_0x37ada7?_0x3392d4['nextSibling']&&!this['_schema']['isObject'](_0x3392d4['nextSibling'])?_0x3392d4['nextSibling']:null:_0x3392d4['previousSibling']&&!this['_schema']['isObject'](_0x3392d4['previousSibling'])?_0x3392d4['previousSibling']:null,_0x3392d4['isEmpty']||_0x5a365f&&_0x5a365f['isEmpty']){const _0x2be50e=_0x5a365f&&_0x5a365f['isEmpty']?_0x5a365f:_0x3392d4;_0x24d68a&&_0x24d68a['type']==_0x37ada7+'EmptyContainer'&&_0x24d68a['element']['name']==_0x2be50e['name']?_0x24d68a['quantity']++:_0x487ce1['push']({'type':_0x37ada7+'EmptyContainer','element':_0x2be50e,'quantity':0x1});}else _0x487ce1['push']({'type':_0x37ada7+'Container','element':_0x3392d4});}}}}}['_resolveDescriptionItems'](_0x50d5ca){const _0x3ad38c=this['_locale'],_0x430bb2=[],_0x1aa765=[],_0x295191=[];for(const _0x52bd2d of _0x50d5ca)switch(_0x52bd2d['type']){case'text':if(_0x52bd2d['add']=_0x52bd2d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x52bd2d['remove']=_0x52bd2d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x52bd2d['add']&&''!=_0x52bd2d['remove']){_0x430bb2['push']({'type':'replace','content':o(_0x3ad38c,'REPLACE_TEXT',['\x22'+_0x52bd2d['remove']+'\x22','\x22'+_0x52bd2d['add']+'\x22'])});continue;}if(null!=_0x52bd2d['add']['match'](/^ +$/)){_0x430bb2['push']({'type':'insertion','content':o(_0x3ad38c,'*Insert:*\x20%0',o(_0x3ad38c,'ELEMENT_SPACE',_0x52bd2d['add']['length']))});continue;}if(null!=_0x52bd2d['remove']['match'](/^ +$/)){_0x430bb2['push']({'type':'deletion','content':o(_0x3ad38c,'*Remove:*\x20%0',o(_0x3ad38c,'ELEMENT_SPACE',_0x52bd2d['remove']['length']))});continue;}if(''!=_0x52bd2d['add']){_0x430bb2['push']({'type':'insertion','content':o(_0x3ad38c,'*Insert:*\x20%0','\x22'+_0x52bd2d['add']+'\x22')});continue;}_0x430bb2['push']({'type':'deletion','content':o(_0x3ad38c,'*Remove:*\x20%0','\x22'+_0x52bd2d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x430bb2['push']({'type':'insertion','content':o(_0x3ad38c,'*Insert:*\x20%0',this['getItemLabel'](_0x52bd2d['element'],_0x52bd2d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x430bb2['push']({'type':'deletion','content':o(_0x3ad38c,'*Remove:*\x20%0',this['getItemLabel'](_0x52bd2d['element'],_0x52bd2d['quantity']))});continue;case'addContainer':_0x430bb2['push']({'type':'insertion','content':o(_0x3ad38c,'*Split:*\x20%0',this['getItemLabel'](_0x52bd2d['element'],_0x52bd2d['quantity']))});continue;case'removeContainer':_0x430bb2['push']({'type':'deletion','content':o(_0x3ad38c,'*Merge:*\x20%0',this['getItemLabel'](_0x52bd2d['element'],_0x52bd2d['quantity']))});continue;case'addFormat':_0x1aa765['push'](_0x52bd2d['key']);continue;case'removeFormat':_0x295191['push'](_0x52bd2d['key']);continue;default:_0x430bb2['push'](_0x52bd2d);}if(_0x1aa765['length']){const _0x3271c9=_0x1aa765['map'](_0x3ec780=>this['_attributeLabels']['has'](_0x3ec780)?this['_attributeLabels']['get'](_0x3ec780):_0x3ec780)['join'](',\x20');_0x430bb2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3271c9)});}if(_0x295191['length']){const _0x3e51e6=_0x295191['map'](_0x57a617=>this['_attributeLabels']['has'](_0x57a617)?this['_attributeLabels']['get'](_0x57a617):_0x57a617)['join'](',\x20');_0x430bb2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3e51e6)});}return _0x430bb2;}['_handleCustomCallbackDescription'](_0x4ae8fa){for(const _0x924791 of this['_customCallbacks']){const _0x1af943=_0x924791(_0x4ae8fa);if(_0x1af943&&'type'in _0x1af943)return _0x1af943;}}['_handleAttributeSuggestionDescription'](_0x1ac2de,_0x1fd958){const _0x7c9820=_0x1fd958['data'],_0x3724be=void 0x0===_0x7c9820['newValue']?'removeFormat':'addFormat';_0x1ac2de['push']({'type':_0x3724be,'key':_0x7c9820['key']});}['_handleRenameSuggestionDescription'](_0x212e20,_0x4de980){_0x212e20['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4de980['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x6d63dc,_0x2b04e6,_0x1a59cc){if(this['_addDescriptionItems'](_0x6d63dc,_0x2b04e6),_0x1a59cc&&_0x1a59cc['getFirstRange']()&&!_0x2b04e6['getFirstRange']()['end']['isEqual'](_0x1a59cc['getFirstRange']()['start'])){const _0x1b4119=_0x6d63dc[_0x6d63dc['length']-0x1],_0x2c2d71='insertion'==_0x2b04e6['type']?'add':'remove';_0x1b4119&&'text'==_0x1b4119['type']&&(_0x1b4119[_0x2c2d71]+='\x0a');}}}class R extends _0x2c25bf{['afterInit'](){const _0x4154ab=this['editor'],_0x101671=_0x4154ab['plugins']['get']('TrackChangesEditing');_0x4154ab['commands']['get']('showAIAssistant')&&_0x101671['enableCommand']('showAIAssistant');}}class T extends _0x2c25bf{['afterInit'](){const _0x5eebd5=this['editor'],_0xf7c84=_0x5eebd5['plugins']['get']('TrackChangesEditing');_0x5eebd5['commands']['get']('toggleAi')&&_0xf7c84['enableCommand']('toggleAi');}}class E extends _0x2c25bf{['afterInit'](){const _0xcc3479=this['editor'],_0x24f9d5=_0xcc3479['plugins']['get']('TrackChangesEditing');_0xcc3479['commands']['get']('aiQuickAction')&&_0x24f9d5['enableCommand']('aiQuickAction');}}class U extends _0x2c25bf{['afterInit'](){const _0x71913e=this['editor'],_0x119e17=_0x71913e['locale'];if(!_0x71913e['plugins']['has']('AlignmentEditing'))return;const _0x2ceb63=_0x71913e['plugins']['get']('TrackChangesEditing');_0x2ceb63['enableDefaultAttributesIntegration']('alignment'),_0x2ceb63['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x119e17,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16ef35=this['editor'],_0x3a0a42=_0x16ef35['locale'];_0x16ef35['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x103f6=>{if('formatBlock'!=_0x103f6['type'])return;const {data:_0x1c14cc}=_0x103f6;if(_0x1c14cc&&'alignment'==_0x1c14cc['commandName']){const _0x422449=_0x1c14cc['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3a0a42,'*Format:*\x20%0',function(_0x436169){switch(_0x436169){case'left':return o(_0x3a0a42,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3a0a42,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3a0a42,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3a0a42,'FORMAT_JUSTIFY_TEXT');}}(_0x422449))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x2c25bf{['afterInit'](){const _0x4745d5=this['editor'],_0x519293=_0x4745d5['plugins']['get']('TrackChangesEditing'),_0x294f0d=_0x4745d5['locale'];for(const _0x3964fe of ti){if(!_0x4745d5['plugins']['has'](_0x3964fe))continue;const _0x15aa63=_0x3964fe['slice'](0x0,-0x7)['toLowerCase'](),_0x34bdfc='FORMAT_'+_0x15aa63['toUpperCase']();_0x519293['enableDefaultAttributesIntegration'](_0x15aa63),_0x519293['descriptionFactory']['registerAttributeLabel'](_0x15aa63,o(_0x294f0d,_0x34bdfc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x597d7f=this['editor'],_0x497c64=_0x597d7f['locale'],_0x19760b=_0x597d7f['plugins']['get']('TrackChangesEditing');function _0x5ea3cf(_0x1548f6,_0x209179){_0x19760b['descriptionFactory']['registerDescriptionCallback'](_0x80f958=>{if('formatInline'!=_0x80f958['type'])return;const {data:_0x39951c}=_0x80f958;return _0x39951c&&_0x39951c['commandName']===_0x1548f6?_0x39951c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x497c64,'*Format:*\x20%0',_0x209179)}:{'type':'format','content':o(_0x497c64,'*Remove\x20format:*\x20%0',_0x209179)}:void 0x0;});}_0x5ea3cf('bold',o(_0x497c64,'FORMAT_BOLD')),_0x5ea3cf('italic',o(_0x497c64,'FORMAT_ITALIC')),_0x5ea3cf('underline',o(_0x497c64,'FORMAT_UNDERLINE')),_0x5ea3cf('code',o(_0x497c64,'FORMAT_CODE')),_0x5ea3cf('strikethrough',o(_0x497c64,'FORMAT_STRIKETHROUGH')),_0x5ea3cf('subscript',o(_0x497c64,'FORMAT_SUBSCRIPT')),_0x5ea3cf('superscript',o(_0x497c64,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2c25bf{['afterInit'](){const _0x21dc15=this['editor'],_0x4013cc=_0x21dc15['locale'];if(!_0x21dc15['plugins']['has']('BlockQuoteEditing'))return;const _0x3e4a3f=_0x21dc15['plugins']['get']('TrackChangesEditing'),_0x56ced2=this['editor']['commands']['get']('blockQuote');_0x3e4a3f['enableCommand']('blockQuote',(_0x1e6c08,_0x1215ad={})=>{const _0x3a1802=this['editor']['model']['document']['selection'],_0x46807a=_0x1215ad&&void 0x0!==_0x1215ad['forceValue']?_0x1215ad['forceValue']:!_0x56ced2['value'];let _0x152ff7=[];if(_0x46807a){const _0xd7fc6d=Array['from'](_0x3a1802['getSelectedBlocks']())['filter'](_0x113ba7=>oo(_0x113ba7)||function(_0x4d8e11,_0x36cf51){const _0x24ae3b=_0x36cf51['checkChild'](_0x4d8e11['parent'],'blockQuote'),_0x5614cb=_0x36cf51['checkChild'](['$root','blockQuote'],_0x4d8e11);return _0x24ae3b&&_0x5614cb;}(_0x113ba7,this['editor']['model']['schema']));_0x152ff7=to(_0xd7fc6d,_0x21dc15['model']);}else{const _0x1666db=Array['from'](_0x3a1802['getSelectedBlocks']())['filter'](_0x3e36c1=>oo(_0x3e36c1));_0x152ff7=to(_0x1666db,_0x21dc15['model']);}_0x21dc15['model']['change'](()=>{for(const _0x8e1995 of _0x152ff7)_0x3e4a3f['markBlockFormat'](_0x8e1995,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x46807a}]});});}),_0x3e4a3f['descriptionFactory']['registerDescriptionCallback'](_0x4cba9d=>{const {data:_0x4799bd}=_0x4cba9d;if(_0x4799bd&&'blockQuote'==_0x4799bd['commandName']){const _0x1fd5bd=o(_0x4013cc,'ELEMENT_BLOCK_QUOTE');return _0x4799bd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4013cc,'*Set\x20format:*\x20%0',_0x1fd5bd)}:{'type':'format','content':o(_0x4013cc,'*Remove\x20format:*\x20%0',_0x1fd5bd)};}});}}function oo(_0x2e8929){return'blockQuote'==_0x2e8929['parent']['name'];}class G extends _0x2c25bf{['afterInit'](){const _0x1fa365=this['editor'],_0x2d09c4=_0x1fa365['locale'],_0x9eecca=_0x1fa365['plugins']['get']('TrackChangesEditing');_0x1fa365['plugins']['has']('BookmarkEditing')&&(_0x9eecca['enableCommand']('insertBookmark'),_0x9eecca['enableDefaultAttributesIntegration']('updateBookmark'),_0x9eecca['descriptionFactory']['registerDescriptionCallback'](_0x101093=>{if('insertion'!=_0x101093['type']&&'deletion'!=_0x101093['type']&&'attribute'!=_0x101093['type'])return;const _0x20f634=_0x101093['getContainedElement']();if(null==_0x20f634)return;if(!_0x20f634['is']('element','bookmark'))return;const _0xe5356e=_0x20f634['getAttribute']('bookmarkId');if('insertion'==_0x101093['type'])return{'type':'insertion','content':o(_0x2d09c4,'*Insert:*\x20%0','\x22'+_0xe5356e+'\x22\x20'+o(_0x2d09c4,'ELEMENT_BOOKMARK'))};if('deletion'==_0x101093['type'])return{'type':'deletion','content':o(_0x2d09c4,'*Remove:*\x20%0','\x22'+_0xe5356e+'\x22\x20'+o(_0x2d09c4,'ELEMENT_BOOKMARK'))};const {data:_0x2dc77f}=_0x101093;if(!_0x2dc77f||'bookmarkId'!=_0x2dc77f['key'])return;return{'type':'format','content':o(_0x2d09c4,'*Set\x20bookmark:*\x20%0','\x22'+_0x2dc77f['newValue']+'\x22')};}));}}class L extends _0x2c25bf{['afterInit'](){const _0x1346bb=this['editor'];_0x1346bb['plugins']['has']('CaseChange')&&(_0x1346bb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1346bb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1346bb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x2c25bf{['afterInit'](){const _0x4312be=this['editor'];_0x4312be['commands']['get']('ckbox')&&_0x4312be['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x2c25bf{['afterInit'](){const _0x430ab5=this['editor'];if(!_0x430ab5['plugins']['has']('CodeBlock'))return;const _0x233dba=_0x430ab5['plugins']['get']('TrackChangesEditing'),_0x326880=_0x430ab5['locale'],_0x47ed96=_0x430ab5['config']['get']('codeBlock')['languages'],_0x2566a1=_0x430ab5['commands']['get']('codeBlock');_0x233dba['enableCommand']('indentCodeBlock'),_0x233dba['enableCommand']('outdentCodeBlock'),_0x233dba['enableCommand']('codeBlock',(_0xa37fae,_0x1c97f6={})=>{const _0x7c5bb3=_0x430ab5['model'],_0x50f108=_0x430ab5['model']['document']['selection'],_0x22d044=_0x1c97f6&&void 0x0!==_0x1c97f6['forceValue']?_0x1c97f6['forceValue']:!_0x2566a1['value'];let _0x2890a0;_0x1c97f6['language']||(_0x1c97f6['language']=_0x47ed96[0x0]['language']),_0x2890a0=_0x22d044?Array['from'](_0x50f108['getSelectedBlocks']())['filter'](_0xc59f87=>co(_0xc59f87)||function(_0x5077a7,_0x5e02e1){if(_0x5077a7['is']('rootElement')||_0x5e02e1['isLimit'](_0x5077a7))return!0x1;return _0x5e02e1['checkChild'](_0x5077a7['parent'],'codeBlock');}(_0xc59f87,_0x7c5bb3['schema'])):Array['from'](_0x50f108['getSelectedBlocks']())['filter'](_0x12e809=>co(_0x12e809));const _0x179b3b=to(_0x2890a0,_0x7c5bb3);_0x7c5bb3['change'](()=>{for(const _0xd6fd6e of _0x179b3b)_0x233dba['markBlockFormat'](_0xd6fd6e,{'commandName':'codeBlock','commandParams':[{..._0x1c97f6,'forceValue':_0x22d044}],'formatGroupId':'blockName'});});}),(_0x233dba['descriptionFactory']['registerElementLabel']('codeBlock',_0x4d9f1f=>o(_0x326880,'ELEMENT_CODE_BLOCK',_0x4d9f1f)),_0x233dba['descriptionFactory']['registerDescriptionCallback'](_0x10e476=>{if('formatBlock'!=_0x10e476['type'])return;const _0xc4a435=_0x326880['t'],{data:_0x25c96c}=_0x10e476;if(!_0x25c96c||'codeBlock'!=_0x25c96c['commandName'])return;const _0x47ad1d=_0x25c96c['commandParams'][0x0]['language'],_0x2cb02c=_0xc4a435(_0x47ed96['find'](_0x3af81d=>_0x3af81d['language']===_0x47ad1d)['label'])['toLowerCase']();return _0x25c96c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x326880,'*Set\x20format:*\x20%0',o(_0x326880,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2cb02c+')')}:{'type':'format','content':o(_0x326880,'*Remove\x20format:*\x20%0',o(_0x326880,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x299b02){return'codeBlock'==_0x299b02['name'];}class z extends _0x2c25bf{['afterInit'](){const _0x35b70d=this['editor'];if(!_0x35b70d['plugins']['has']('CommentsEditing'))return;_0x35b70d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x2c25bf{static get['requires'](){return[_0x21ac69];}['init'](){const _0x4d3d95=this['editor'],_0x54a5be=_0x4d3d95['plugins']['get']('TrackChangesEditing');_0x54a5be['enableCommand']('delete');const _0x194f1f=_0x4d3d95['commands']['get']('deleteForward');_0x54a5be['enableCommand']('deleteForward',(_0x2b7cb7,_0x1a6b91={})=>{const _0x12a934=_0x4d3d95['model']['createSelection'](_0x4d3d95['model']['document']['selection']);_0x12a934['isCollapsed']&&_0x4d3d95['model']['modifySelection'](_0x12a934,{'direction':'forward','unit':_0x1a6b91['unit']});const _0x1b5382=_0x12a934['getFirstRange'](),_0x1de296=_0x151ab6['fromRange'](_0x1b5382);let _0x4f9c77;_0x2b7cb7(_0x1a6b91),_0x4f9c77='$graveyard'==_0x1de296['root']['rootName']?_0x4d3d95['model']['createRange'](_0x1b5382['start']):_0x4d3d95['model']['createRange'](_0x1de296['start'],_0x1de296['end']),_0x1de296['detach'](),_0x4d3d95['model']['enqueueChange'](_0x194f1f['buffer']['batch'],_0x56c15c=>{_0x194f1f['buffer']['lock'](),_0x56c15c['setSelection'](_0x56c15c['createRange'](_0x4f9c77['end'])),_0x194f1f['buffer']['unlock']();});});}}class W extends _0x2c25bf{['afterInit'](){const _0x2b9cdc=this['editor'];if(!_0x2b9cdc['plugins']['has']('ListEditing'))return;const _0x37351a=_0x2b9cdc['locale'],_0x139511=_0x2b9cdc['plugins']['get']('TrackChangesEditing'),_0x2a7667=_0x2b9cdc['plugins']['has']('TodoListEditing'),_0x3b8f62=!!_0x2b9cdc['config']['get']('list.multiBlock');function _0x2b9ea8(_0x1b9fa1){return{'type':'format','content':''+o(_0x37351a,'*Set\x20format:*\x20%0',_0x1b9fa1)};}function _0x13266b(_0x461f4e){return{'type':'format','content':''+o(_0x37351a,'*Remove\x20format:*\x20%0',_0x461f4e)};}_0x139511['enableDefaultAttributesIntegration']('numberedList'),_0x139511['enableDefaultAttributesIntegration']('bulletedList'),_0x139511['enableDefaultAttributesIntegration']('customNumberedList'),_0x139511['enableDefaultAttributesIntegration']('customBulletedList'),_0x139511['enableDefaultAttributesIntegration']('indentList'),_0x139511['enableDefaultAttributesIntegration']('outdentList'),_0x139511['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x139511['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3b8f62&&(_0x139511['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x139511['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2a7667&&(_0x139511['enableDefaultAttributesIntegration']('todoList'),_0x139511['enableDefaultAttributesIntegration']('checkTodoList'),_0x139511['descriptionFactory']['registerDescriptionCallback'](_0x301ddc=>{const {data:_0x210e7f}=_0x301ddc;if(_0x210e7f&&'todoListChecked'==_0x210e7f['key'])return{'type':'format','content':_0x210e7f['newValue']?o(_0x37351a,'*Check\x20item*'):o(_0x37351a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x2f9aef=>{if(_0x2f9aef['batch']['isUndo'])return!0x1;let _0x5e3ca2=!0x1;const _0x5576e3=_0x139511['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x423048=>'todoListChecked'===_0x139511['_getAttributeKey'](_0x423048));for(const _0x21d854 of _0x5576e3){'todo'!=_0x21d854['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x139511['_findSuggestions'](_0x21d854['getFirstRange'](),'attribute')['find'](_0x13578b=>'listType'===_0x139511['_getAttributeKey'](_0x13578b['suggestion']))||(_0x2f9aef['removeMarker'](_0x21d854['getFirstMarker']()),_0x5e3ca2=!0x0));}return _0x5e3ca2;})),_0x139511['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x37351a,'FORMAT_INDENT'));const _0x2fbf7e={'type':'format','content':''};_0x139511['descriptionFactory']['registerDescriptionCallback'](_0x5e252e=>{const {data:_0x59ffa6}=_0x5e252e;if(!_0x59ffa6||'listType'!=_0x59ffa6['key'])return;let _0x310af4=_0x5e252e['head'];for(;_0x310af4;){if(_0x310af4['data']&&(('listStyle'==_0x310af4['data']['key']||'listMarkerStyle'==_0x310af4['data']['key'])&&(_0x310af4['data']['newValue']&&'default'!=_0x310af4['data']['newValue']||'default'!=_0x310af4['data']['oldValue']&&!_0x59ffa6['newValue'])||!_0x3b8f62&&_0x310af4['data']['key']==m))return _0x2fbf7e;_0x310af4=_0x310af4['next'];}if(null==_0x59ffa6['newValue'])switch(_0x59ffa6['oldValue']){case'bulleted':return _0x13266b(o(_0x37351a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13266b(o(_0x37351a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13266b(o(_0x37351a,'ELEMENT_TODO_LIST'));}switch(_0x59ffa6['newValue']){case'bulleted':return _0x2b9ea8(o(_0x37351a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b9ea8(o(_0x37351a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b9ea8(o(_0x37351a,'ELEMENT_TODO_LIST'));}}),_0x139511['descriptionFactory']['registerDescriptionCallback'](_0x28cda8=>{const {data:_0x6f80f5}=_0x28cda8;if(_0x6f80f5&&'listIndent'==_0x6f80f5['key'])return null==_0x6f80f5['newValue']||null==_0x6f80f5['oldValue']&&0x0==_0x6f80f5['newValue']?_0x2fbf7e:void 0x0;}),_0x139511['descriptionFactory']['registerDescriptionCallback'](_0xcd5418=>{if('attribute'!=_0xcd5418['type'])return;const {data:_0x3773e2}=_0xcd5418;if(!_0x3773e2||'listItemId'!=_0x3773e2['key'])return;const _0x3c1e58=Te(_0xcd5418);return'newValue'==_0x3c1e58?{'type':'format','content':o(_0x37351a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3c1e58?{'type':'format','content':o(_0x37351a,'*Split:*\x20list\x20item')}:_0x2fbf7e;}),_0x2b9cdc['model']['document']['registerPostFixer'](_0x23c9c5=>this['listItemIdFixer'](_0x23c9c5)),_0x2b9cdc['model']['document']['registerPostFixer'](_0x30237d=>this['noTrackChangesFixer'](_0x30237d)),_0x2b9cdc['model']['document']['on']('change:data',(_0x5b44b9,_0x2d606f)=>{if(_0x2d606f['isUndo']||!_0x2d606f['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x495a95){if(_0x495a95['batch']['isUndo']||!_0x495a95['batch']['isLocal'])return!0x1;let _0x4c6fb5=!0x1;const _0x21433a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x104492=>_0x104492['data']&&'listItemId'==_0x104492['data']['key'])['filter'](_0x532f22=>_0x532f22['data']['newValue']&&_0x532f22['data']['oldValue']);for(const _0x5accd8 of _0x21433a)Te(_0x5accd8)||(_0x495a95['removeMarker'](_0x5accd8['getFirstMarker']()),_0x4c6fb5=!0x0);return _0x4c6fb5;}['noTrackChangesFixer'](_0x226b65){if(_0x226b65['batch']['isUndo']||!_0x226b65['batch']['isLocal'])return!0x1;const _0x10dfc0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x10dfc0['trackChangesCommand']['value'])return!0x1;let _0x536f66=!0x1;const _0x18b428=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2040c5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x11a049=>'attribute'==_0x11a049['type'])['filter'](_0x3077a6=>_0x18b428['includes'](_0x3077a6['attributeKey']));if(0x0==_0x2040c5['length'])return _0x536f66;for(const _0x88001b of _0x2040c5){const _0x5158c5=_0x10dfc0['_findSuggestions'](_0x88001b['range'],'attribute')['filter'](_0x1fe0ee=>!_0x1fe0ee['meta']['isNextTo'])['map'](_0x3b67ec=>_0x3b67ec['suggestion'])['filter'](_0x463096=>{const _0x2bf955=_0x10dfc0['_getAttributeKey'](_0x463096);return _0x18b428['includes'](_0x2bf955);});if(_0x5158c5['length']){for(const _0x41154e of _0x5158c5)_0x226b65['removeMarker'](_0x41154e['getFirstMarker']());_0x536f66=!0x0;}}return _0x536f66;}['assureChains'](){const _0x4d7be9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x539994=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x946b4a;const _0x424962=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xeba4cf=>{if(_0xeba4cf['data']['oldRange']||!_0xeba4cf['data']['newRange'])return null;if(!_0xeba4cf['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x9ec145}=_0x4d7be9['_splitMarkerName'](_0xeba4cf['name']);if(!_0x4d7be9['hasSuggestion'](_0x9ec145))return null;const _0x3907d8=_0x4d7be9['getSuggestion'](_0x9ec145);return _0x539994['includes'](_0x3907d8['data']['key']);})['map'](_0x3cc65d=>{const {id:_0x1c4d8b}=_0x4d7be9['_splitMarkerName'](_0x3cc65d['name']),_0x3e3fd1=_0x4d7be9['getSuggestion'](_0x1c4d8b);return _0x946b4a=_0x3e3fd1['attributes']['groupId'],_0x3e3fd1['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x424962['size'])return;const _0x4cce12=_0x4d7be9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x234fad=>'attribute'==_0x234fad['type']&&_0x234fad['data']&&_0x539994['includes'](_0x234fad['data']['key'])&&_0x234fad['attributes']['groupId']!=_0x946b4a)['map'](_0x4202d4=>({'listItem':_0x4202d4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4202d4['attributes']['groupId']})),_0x2f65c0=new Set();for(const {groupId:_0x49c8db,listItem:_0x2cf5a7}of _0x4cce12)_0x424962['has'](_0x2cf5a7)&&_0x2f65c0['add'](_0x49c8db);for(const _0x54ec1d of _0x4d7be9['getSuggestions']())_0x2f65c0['has'](_0x54ec1d['attributes']['groupId'])&&_0x54ec1d['setAttribute']('groupId',_0x946b4a);}['_supportLegacySuggestions'](){const _0x5dba5f=this['editor'],_0x11cd55=_0x5dba5f['locale'],_0x40d865=_0x5dba5f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x40d865['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x473d3e,_0x1d9a64){const _0x278b79=[];for(let _0xe940fb of _0x473d3e)_0xe940fb['start']['nodeAfter']===_0xe940fb['end']['parent']&&(_0xe940fb=_0x5dba5f['model']['createRange'](_0x5dba5f['model']['createPositionAt'](_0xe940fb['start']['nodeAfter'],0x0))),_0x278b79['push'](_0xe940fb);_0x5dba5f['model']['change'](_0xa9bc76=>{const _0x51e397=_0x5dba5f['model']['document']['selection'],_0x1b8b05=Array['from'](_0x51e397['getRanges']())['map'](_0x571c60=>_0x151ab6['fromRange'](_0x571c60));_0xa9bc76['setSelection'](_0x278b79),_0x5dba5f['commands']['get'](_0x1d9a64['commandName'])['refresh'](),_0x1d9a64['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5dba5f['execute'](_0x1d9a64['commandName'],..._0x1d9a64['commandParams']),_0xa9bc76['setSelection'](_0x1b8b05);for(const _0x54702f of _0x1b8b05)_0x54702f['detach']();});}),_0x40d865['descriptionFactory']['registerElementLabel'](function(_0x3e5c6f){const _0x183461=!_0x5dba5f['model']['schema']['isObject'](_0x3e5c6f),_0x29f999=_0x3e5c6f['previousSibling'],_0xbf4cb=_0x3e5c6f['nextSibling'],_0x14e1da=_0x3e5c6f['getAttribute']('listItemId'),_0x39e342=!_0x29f999||_0x29f999['getAttribute']('listItemId')!==_0x14e1da,_0x41d54f=!_0xbf4cb||_0xbf4cb['getAttribute']('listItemId')!==_0x14e1da;return _0x183461&&Boolean(_0x14e1da)&&_0x39e342&&_0x41d54f;},_0x55944c=>o(_0x11cd55,'ELEMENT_LIST_ITEM',_0x55944c));}['_registerLegacyDescription'](){const _0x33f6e6=this['editor'],_0x179d6f=_0x33f6e6['locale'];function _0x1fb6b5(_0x8738ca){const _0x797470=_0x33f6e6['commands']['get']('bulletedList')['value'],_0x43da69=_0x33f6e6['commands']['get']('numberedList')['value'];return'numberedList'===_0x8738ca?_0x797470:_0x43da69;}_0x33f6e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xac68ed){if('formatBlock'!=_0xac68ed['type'])return;const {data:_0x3d44aa}=_0xac68ed;if(!_0x3d44aa)return;let _0xabab8f,_0x2910fe,_0x23b5ba,_0x1779c5;switch(_0x3d44aa['commandName']){case'bulletedList':_0x23b5ba=_0x3d44aa['commandParams'][0x0]['forceValue'],_0x1779c5=_0x1fb6b5(_0x3d44aa['commandName']),_0xabab8f=_0x23b5ba?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1779c5&&_0x33f6e6['config']['get']('list.multiBlock')||(_0xabab8f='*Change\x20to:*\x20%0'),_0x2910fe={'type':'format','content':o(_0x179d6f,_0xabab8f,o(_0x179d6f,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x23b5ba=_0x3d44aa['commandParams'][0x0]['forceValue'],_0x1779c5=_0x1fb6b5(_0x3d44aa['commandName']),_0xabab8f=_0x23b5ba?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1779c5&&_0x33f6e6['config']['get']('list.multiBlock')||(_0xabab8f='*Change\x20to:*\x20%0'),_0x2910fe={'type':'format','content':o(_0x179d6f,_0xabab8f,o(_0x179d6f,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xabab8f='*Indent:*\x20%0',_0x2910fe={'type':'format','content':o(_0x179d6f,_0xabab8f,o(_0x179d6f,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xabab8f=function(_0x3b9ff1){const _0x5d6b42=_0x3b9ff1['getFirstRange']();let _0x2890fb=_0x5d6b42['start']['nodeAfter'];for(;_0x2890fb&&_0x5d6b42['containsItem'](_0x2890fb);){if(_0x2890fb['getAttribute']('listIndent')>0x0)return!0x1;_0x2890fb=_0x2890fb['nextSibling'];}return!0x0;}(_0xac68ed)?o(_0x179d6f,'*Format:*\x20remove\x20from\x20%0',o(_0x179d6f,function(_0x28bd1d){return'ELEMENT_'+_0x28bd1d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xac68ed))):o(_0x179d6f,'*Outdent:*\x20%0',o(_0x179d6f,'ELEMENT_LIST_ITEM')),_0x2910fe={'type':'format','content':_0xabab8f};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d44aa['multipleBlocks']&&(_0xabab8f='*Merge:*\x20%0',_0x2910fe={'type':'deletion','content':o(_0x179d6f,_0xabab8f,o(_0x179d6f,'ELEMENT_LIST_ITEM'))});}return _0x2910fe;});}}function Te(_0x1b1a16){let _0x12b74b=_0x1b1a16['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x12b74b;){const _0x1c5ab1=_0x12b74b['getAttribute']('listItemId');if(!_0x1c5ab1)return!0x1;if(_0x1c5ab1==_0x1b1a16['data']['newValue'])return'newValue';if(_0x1c5ab1==_0x1b1a16['data']['oldValue'])return'oldValue';_0x12b74b=_0x12b74b['previousSibling'];}return!0x1;}class H extends _0x2c25bf{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x543d3a=this['editor']['config']['get']('list.properties'),_0x45481b=this['editor']['plugins']['get']('TrackChangesEditing');_0x543d3a['styles']&&_0x45481b['enableDefaultAttributesIntegration']('listStyle'),_0x543d3a['reversed']&&_0x45481b['enableDefaultAttributesIntegration']('listReversed'),_0x543d3a['startIndex']&&_0x45481b['enableDefaultAttributesIntegration']('listStart');const _0x3135e7={'type':'format','content':''};_0x45481b['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x132bc9=this['editor']['locale'];_0x45481b['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x132bc9,'FORMAT_LIST_REVERSED')),_0x45481b['descriptionFactory']['registerDescriptionCallback'](_0x5c61a2=>{const {data:_0x4c673c}=_0x5c61a2;if(_0x4c673c&&'listReversed'==_0x4c673c['key'])return null==_0x4c673c['newValue']||0x0==_0x4c673c['newValue']&&null==_0x4c673c['oldValue']?_0x3135e7:void 0x0;}),_0x45481b['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x132bc9,'FORMAT_LIST_START')),_0x45481b['descriptionFactory']['registerDescriptionCallback'](_0x5878e8=>{const {data:_0x168a23}=_0x5878e8;if(_0x168a23&&'listStart'==_0x168a23['key'])return null==_0x168a23['newValue']||0x1==_0x168a23['newValue']&&null==_0x168a23['oldValue']?_0x3135e7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5d04d9=>{if(_0x5d04d9['batch']['isUndo'])return!0x1;let _0x57cf41=!0x1;const _0x36a3c2=_0x45481b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ea95c=>{const _0x2d8006=_0x45481b['_getAttributeKey'](_0x2ea95c);return'listStart'==_0x2d8006||'listReversed'==_0x2d8006;});for(const _0x2ff209 of _0x36a3c2){const _0x4b9f17=_0x2ff209['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4b9f17||'customNumbered'==_0x4b9f17)continue;_0x45481b['_findSuggestions'](_0x2ff209['getFirstRange'](),'attribute')['find'](_0x690ff2=>'listType'==_0x45481b['_getAttributeKey'](_0x690ff2['suggestion']))||(_0x5d04d9['removeMarker'](_0x2ff209['getFirstMarker']()),_0x57cf41=!0x0);}return _0x57cf41;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x270940){const _0x3064b9=this['editor']['locale'],{data:_0x2bfac2}=_0x270940,_0x173744={'type':'format','content':''};if(!_0x2bfac2||'listStyle'!=_0x2bfac2['key'])return;if(!_0x2bfac2['oldValue'])return'default'==_0x2bfac2['newValue']?_0x173744:{'type':'format','content':''+o(_0x3064b9,'*Set\x20format:*\x20%0',o(_0x3064b9,this['_getTranslationKeyForListStyle'](_0x2bfac2['newValue'])))};if(!_0x2bfac2['newValue']){if('default'==_0x2bfac2['oldValue'])return _0x173744;let _0x3175a4=_0x270940['head'];for(;_0x3175a4;){if(_0x3175a4['data']&&'listType'==_0x3175a4['data']['key']&&_0x3175a4['data']['newValue'])return _0x173744;_0x3175a4=_0x3175a4['next'];}return{'type':'format','content':''+o(_0x3064b9,'*Remove\x20format:*\x20%0',o(_0x3064b9,this['_getTranslationKeyForListStyle'](_0x2bfac2['oldValue'])))};}if('default'!=_0x2bfac2['newValue'])return{'type':'format','content':''+o(_0x3064b9,'*Set\x20format:*\x20%0',o(_0x3064b9,this['_getTranslationKeyForListStyle'](_0x2bfac2['newValue'])))};let _0x324b9d=_0x270940['head'];for(;_0x324b9d;){if(_0x324b9d['data']&&'listType'==_0x324b9d['data']['key']&&_0x324b9d['data']['newValue']&&_0x324b9d['data']['oldValue'])return _0x173744;_0x324b9d=_0x324b9d['next'];}return{'type':'format','content':o(_0x3064b9,'*Set\x20format:*\x20%0',o(_0x3064b9,'ELEMENT_'+_0x270940['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x22cc28=this['editor'],_0x5eb5c1=_0x22cc28['locale'];_0x22cc28['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43ac96=>{if('formatBlock'!=_0x43ac96['type'])return;const {data:_0x224093}=_0x43ac96;if(!_0x224093)return;let _0x5395a8,_0xded783;switch(_0x224093['commandName']){case'listStyle':_0x5395a8='*Change\x20to:*\x20%0',_0xded783={'type':'format','content':o(_0x5eb5c1,_0x5395a8,o(_0x5eb5c1,this['_getTranslationKeyForListStyle'](_0x224093['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5395a8=_0x224093['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xded783={'type':'format','content':o(_0x5eb5c1,_0x5395a8)};break;case'listStart':_0x5395a8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xded783={'type':'format','content':o(_0x5eb5c1,_0x5395a8,_0x224093['commandParams'][0x0]['startIndex'])};}return _0xded783;});}['_getTranslationKeyForListStyle'](_0x452bbe){return'ELEMENT_'+function(_0x53edf1){if(ye['includes'](_0x53edf1))return'bulleted';if(Se['includes'](_0x53edf1))return'numbered';return null;}(_0x452bbe)['toUpperCase']()+'_LIST_'+_0x452bbe['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2c25bf{['afterInit'](){const _0x5c4311=this['editor'];_0x5c4311['commands']['get']('emoji')&&_0x5c4311['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x2c25bf{static get['requires'](){return[_0x7d4c38];}['init'](){const _0x57e067=this['editor'],_0x50f2d3=_0x57e067['plugins']['get']('TrackChangesEditing'),_0x33df1e=_0x57e067['commands']['get']('enter');_0x50f2d3['enableCommand']('enter',()=>{_0x57e067['model']['change'](_0x19c206=>{const _0x24ad75=_0x57e067['model']['document']['selection'],_0x28d3f8=_0x24ad75['getFirstPosition'](),_0x31a889=_0x151ab6['fromRange'](_0x24ad75['getFirstRange']());if(_0x33df1e['enterBlock'](_0x19c206)){const _0x25eecf=_0x57e067['model']['createPositionAt'](_0x28d3f8['parent']['nextSibling'],0x0),_0x5c0ed9=_0x19c206['createRange'](_0x28d3f8,_0x25eecf);_0x50f2d3['markInsertion'](_0x5c0ed9);}else _0x19c206['setSelection'](_0x19c206['createRange'](_0x31a889['end']));_0x31a889['detach'](),_0x33df1e['fire']('afterExecute',{'writer':_0x19c206});});});}}class Y extends _0x2c25bf{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3163f8=this['editor']['plugins']['get']('TrackChangesEditing');_0x3163f8['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3163f8['enableCommand']('findNext'),_0x3163f8['enableCommand']('findPrevious'),_0x3163f8['enableCommand']('replace'),_0x3163f8['enableCommand']('replaceAll');}['handleFindCommand'](_0x383081,_0x3b2f6e,_0x15621e={}){const _0x2ddaf=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x383081(_0x468df7=>{let _0x410c6c=('string'==typeof _0x3b2f6e?_0x2ddaf['findByTextCallback'](_0x3b2f6e,_0x15621e):_0x3b2f6e)(_0x468df7);Array['isArray'](_0x410c6c)&&(_0x410c6c={'results':_0x410c6c,'searchText':'string'==typeof _0x3b2f6e?_0x3b2f6e:''});const _0x37e70d=_0x410c6c['results']['filter'](_0x4ff5d2=>!0x1===this['_isInDeletionRange'](_0x4ff5d2,_0x468df7['item']));return{..._0x410c6c,'results':_0x37e70d};},_0x15621e);}['_isInDeletionRange'](_0x335ebe,_0x341e04){const _0x387af9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x341e04,_0x335ebe['start']),this['editor']['model']['createPositionAt'](_0x341e04,_0x335ebe['end']));for(const _0x409480 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x387af9['getIntersection'](_0x409480['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x2c25bf{['afterInit'](){const _0x483c32=this['editor']['locale'],_0x378eca=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x23409d,commandName:_0x278b9a}of eo)this['editor']['plugins']['has'](_0x23409d)&&_0x378eca['enableDefaultAttributesIntegration'](_0x278b9a);_0x378eca['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x483c32,'FORMAT_FONT_SIZE')),_0x378eca['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x483c32,'FORMAT_FONT_FAMILY')),_0x378eca['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x483c32,'FORMAT_FONT_COLOR')),_0x378eca['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x483c32,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2857f4=this['editor'],_0x4d0ce7=_0x2857f4['locale'];_0x2857f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26bf1b=>{const _0x4e01a3=_0x4d0ce7['t'];if('formatInline'!=_0x26bf1b['type'])return;const {data:_0x595907}=_0x26bf1b;if(null!=_0x595907){if('fontSize'==_0x595907['commandName']){const _0x3d9d01=_0x595907['commandParams'][0x0]['value'];if(_0x3d9d01){const _0xf574ee=_0x4e01a3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1f06c1=>_0x1f06c1['model']==_0x3d9d01)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d0ce7,'*Set\x20font\x20size:*\x20%0',_0xf574ee)};}return{'type':'format','content':o(_0x4d0ce7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x595907['commandName']){const _0x5595cf=_0x595907['commandParams'][0x0]['value'];return _0x5595cf?{'type':'format','content':o(_0x4d0ce7,'*Set\x20font\x20family:*\x20%0',_0x5595cf)}:{'type':'format','content':o(_0x4d0ce7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x595907['commandName']){const _0xecc87a=_0x595907['commandParams'][0x0]['value'];if(_0xecc87a){const _0x46e1e0=_0x564d02(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5d87e3=>_0x5d87e3['model']==_0xecc87a);let _0x1d5329=_0xecc87a,_0x5a3c48='';return _0x46e1e0&&(_0x1d5329=_0x46e1e0['label'],_0x5a3c48=_0x4e01a3(_0x1d5329)['toLowerCase']()),{'type':'format','content':o(_0x4d0ce7,'*Set\x20font\x20color:*\x20%0',_0x5a3c48)['trim'](),'color':{'value':_0xecc87a,'title':_0x5a3c48||_0x1d5329}};}return{'type':'format','content':o(_0x4d0ce7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x595907['commandName']){const _0x208a88=_0x595907['commandParams'][0x0]['value'];if(_0x208a88){const _0x3cc1d3=_0x564d02(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2bfcd6=>_0x2bfcd6['model']==_0x208a88);let _0x34694b=_0x208a88,_0x51cd47='';return _0x3cc1d3&&(_0x34694b=_0x3cc1d3['label'],_0x51cd47=_0x4e01a3(_0x34694b)['toLowerCase']()),{'type':'format','content':o(_0x4d0ce7,'*Set\x20font\x20background\x20color:*\x20%0',_0x51cd47)['trim'](),'color':{'value':_0x208a88,'title':_0x51cd47||_0x34694b}};}return{'type':'format','content':o(_0x4d0ce7,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x2c25bf{['afterInit'](){const {plugins:_0x12e681}=this['editor'];_0x12e681['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x12e681['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x1d4346,plugins:_0x539c4e,commands:_0x47eb00}=this['editor'],_0x2e27ad=_0x539c4e['get']('TrackChangesEditing');_0x47eb00['get']('footnotesStyle')&&_0x2e27ad['enableDefaultAttributesIntegration']('footnotesStyle'),_0x47eb00['get']('footnotesStart')&&_0x2e27ad['enableDefaultAttributesIntegration']('footnotesStart'),_0x2e27ad['registerBlockAttribute']('footnotesListStyle'),_0x2e27ad['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x1d4346,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x2e27ad['registerBlockAttribute']('footnotesListStart'),_0x2e27ad['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x1d4346,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0x20d60a=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0xa69b34,commands:_0x4a94b1}=this['editor'];_0x4a94b1['get']('insertFootnote')&&_0x20d60a['enableCommand']('insertFootnote'),_0x20d60a['descriptionFactory']['registerElementLabel']('footnoteRef',_0x3b42cd=>o(_0xa69b34,'ELEMENT_FOOTNOTE_REF',_0x3b42cd)),_0x20d60a['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x1cc39e=>o(_0xa69b34,'ELEMENT_FOOTNOTE_DEFINITION',_0x1cc39e)),_0x20d60a['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x416c4b=>o(_0xa69b34,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x416c4b));}}class nt extends _0x2c25bf{['afterInit'](){const _0x5d6614=this['editor'],_0x5930a7=_0x5d6614['plugins']['get']('TrackChangesEditing'),_0x7a393b=_0x5d6614['commands']['get']('copyFormat'),_0x5bdd86=_0x5d6614['commands']['get']('pasteFormat');_0x7a393b&&_0x5bdd86&&(_0x5930a7['enableDefaultAttributesIntegration']('pasteFormat'),_0x5930a7['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2ac06f=this['editor'],_0x2e3f8d=_0x2ac06f['locale'];_0x2ac06f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x30477b=>{if('formatBlock'!=_0x30477b['type']&&'formatInline'!=_0x30477b['type'])return;const {data:_0x59af5e}=_0x30477b;if(_0x59af5e&&'pasteFormat'===_0x59af5e['commandName']){const _0x37a253=[],_0xbad08b=_0x59af5e['commandParams'][0x0];for(const [_0x546309,_0x45c783]of Object['entries'](_0xbad08b))_0x37a253['push'](ro(_0x2ac06f,_0x546309,_0x45c783));return _0x37a253['length']?{'type':'format','content':o(_0x2e3f8d,'*Set\x20format\x20to:*\x20%0',_0x37a253['join'](',\x20'))}:{'type':'format','content':o(_0x2e3f8d,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2be706,_0x5f10bb,_0x57595a){const _0x3614c4=_0x2be706['locale']['t'],_0x1f9878=_0x5f10bb['split'](/(?=[A-Z])/)['join']('\x20'),_0x3a9fee=_0x3614c4(_0x1f9878['charAt'](0x0)['toUpperCase']()+_0x1f9878['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x57595a)return _0x3a9fee;if('fontColor'===_0x5f10bb||'fontBackgroundColor'===_0x5f10bb){const _0x22b1e9=_0x564d02(_0x2be706['config']['get']('fontColor.colors'))['find'](_0x2ef34f=>_0x2ef34f['model']==_0x57595a);return _0x3a9fee+'\x20('+(_0x22b1e9?_0x3614c4(_0x22b1e9['label'])['toLowerCase']():_0x57595a)+')';}if('fontSize'===_0x5f10bb&&isNaN(parseFloat(_0x57595a))){const _0x49ee58=_0x2be706['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2be706['config']['get']('fontSize.options'))['find'](_0x2f3bab=>_0x2f3bab['model']==_0x57595a);return _0x3a9fee+'\x20('+(_0x49ee58?_0x3614c4(_0x49ee58['title'])['toLowerCase']():_0x57595a)+')';}return _0x3a9fee+'\x20('+_0x57595a+')';}class it extends _0x2c25bf{['_headingOptions'];['afterInit'](){const _0x573b0b=this['editor'];if(!_0x573b0b['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x573b0b['config']['get']('heading.options');const _0xc8e624=_0x573b0b['locale'],_0x31200d=_0x573b0b['plugins']['get']('TrackChangesEditing');_0x31200d['enableDefaultAttributesIntegration']('heading');for(const _0x319d78 of this['_headingOptions'])'paragraph'!=_0x319d78['model']&&_0x31200d['descriptionFactory']['registerElementLabel'](_0x319d78['model'],_0x46cfa7=>{const _0x880ca6=this['_getHeadingLevel'](_0x319d78['model']);return null!==_0x880ca6?_0x93dee8(_0x46cfa7,_0x880ca6):_0x3a91d6(_0x46cfa7,_0x319d78['title']);});function _0x93dee8(_0x1246e1,_0x2cf21e){return o(_0xc8e624,'ELEMENT_HEADING',[_0x1246e1,_0x2cf21e]);}function _0x3a91d6(_0x1abe0d,_0x3d97e0){return o(_0xc8e624,'ELEMENT_HEADING_CUSTOM',[_0x1abe0d,_0x3d97e0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2af07c=this['editor'],_0x3d4b0f=_0x2af07c['locale'];function _0x4eae22(_0x457251,_0x4ac852){return o(_0x3d4b0f,'ELEMENT_HEADING_CUSTOM',[_0x457251,_0x4ac852]);}_0x2af07c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x13c577=>{if('formatBlock'!=_0x13c577['type'])return;const {data:_0x3f6a2b}=_0x13c577;if(_0x3f6a2b&&'heading'==_0x3f6a2b['commandName']){const _0x1c4d55=_0x3f6a2b['commandParams'][0x0]['value'],_0x5c1e52=this['_getHeadingLevel'](_0x1c4d55);if(null!==_0x5c1e52)return{'type':'format','content':o(_0x3d4b0f,'*Change\x20to:*\x20%0',(_0x3c863f=0x1,_0xebe6ab=_0x5c1e52,o(_0x3d4b0f,'ELEMENT_HEADING',[_0x3c863f,_0xebe6ab])))};const _0x27eaa2=this['_headingOptions']['find'](_0x45685e=>_0x45685e['model']===_0x1c4d55)['title'];return{'type':'format','content':o(_0x3d4b0f,'*Change\x20to:*\x20%0',_0x4eae22(0x1,_0x27eaa2))};}var _0x3c863f,_0xebe6ab;});}['_getHeadingLevel'](_0x56fa10){const _0x286f15=_0x56fa10['match'](/^heading(\d+)/);if(_0x286f15)return _0x286f15[0x1];const _0x423174=this['_headingOptions']?.['find'](_0x37234f=>_0x37234f['model']==_0x56fa10);if(_0x423174&&_0x423174['view']){const _0x245cd6=_0x423174['view'],_0x291306=(_0x245cd6['name']??_0x245cd6)['match'](/^h(\d+)/);if(_0x291306)return _0x291306[0x1];}return null;}}class et extends _0x2c25bf{['afterInit'](){const _0x264f9e=this['editor'];if(!_0x264f9e['plugins']['has']('HighlightEditing'))return;const _0x4cab8f=_0x264f9e['plugins']['get']('TrackChangesEditing'),_0x2d7494=_0x264f9e['locale'];_0x4cab8f['enableDefaultAttributesIntegration']('highlight'),_0x4cab8f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x2d7494,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b37de=this['editor'],_0x447d25=_0x2b37de['locale'];_0x2b37de['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x469040=>{if('formatInline'!=_0x469040['type'])return;const {data:_0x49fe15}=_0x469040;if(_0x49fe15&&'highlight'==_0x49fe15['commandName']){const _0x83e56b=_0x447d25['t'],_0x3cd37c=_0x49fe15['commandParams'][0x0]['value'];if(_0x3cd37c){const _0x16c5f4=_0x2b37de['config']['get']('highlight.options')['find'](_0x989b2c=>_0x989b2c['model']==_0x3cd37c),_0x637b47=_0x83e56b(_0x16c5f4['title'])['toLowerCase']();return{'type':'format','content':o(_0x447d25,'*Set\x20highlight:*\x20%0',_0x637b47),'color':{'value':_0x16c5f4['color'],'title':_0x16c5f4['title']}};}return{'type':'format','content':o(_0x447d25,'*Remove\x20highlight*',o(_0x447d25,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x2c25bf{['afterInit'](){const _0x483a13=this['editor'];if(!_0x483a13['plugins']['has']('HorizontalLineEditing'))return;_0x483a13['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2401b3=_0x483a13['plugins']['get']('TrackChangesEditing'),_0x2d5bfc=_0x483a13['locale'];_0x2401b3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x29b78f=>o(_0x2d5bfc,'ELEMENT_HORIZONTAL_LINE',_0x29b78f));}}class ot extends _0x2c25bf{['afterInit'](){const _0x4ec919=this['editor'];if(!_0x4ec919['plugins']['has']('HtmlEmbed'))return;const _0x108ebd=_0x4ec919['plugins']['get']('TrackChangesEditing'),_0xbc9396=_0x4ec919['locale'];_0x108ebd['descriptionFactory']['registerElementLabel']('rawHtml',_0x473e8b=>o(_0xbc9396,'ELEMENT_HTML_EMBED',_0x473e8b)),_0x108ebd['enableDefaultAttributesIntegration']('htmlEmbed'),_0x108ebd['descriptionFactory']['registerDescriptionCallback'](_0x4932cf=>{if('attribute'!=_0x4932cf['type'])return;const {data:_0x346aa7}=_0x4932cf;if(_0x346aa7&&'value'==_0x346aa7['key']&&_0x4932cf['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x414270=o(_0xbc9396,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xbc9396,'*Change\x20%0\x20content*',_0x414270)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9e60=this['editor'],_0x33edc3=_0x3c9e60['locale'];_0x3c9e60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf23024=>{if('formatBlock'!=_0xf23024['type'])return;const {data:_0x5a80da}=_0xf23024;if(_0x5a80da&&'htmlEmbed'==_0x5a80da['commandName']){const _0x53be62=o(_0x33edc3,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x33edc3,'*Change\x20%0\x20content*',_0x53be62)};}});}}class rt extends _0x2c25bf{['afterInit'](){const _0x1a39f0=this['editor'];if(!_0x1a39f0['plugins']['has']('ImageEditing'))return;const _0x418e12=_0x1a39f0['plugins']['get']('TrackChangesEditing'),_0x355d55=_0x1a39f0['plugins']['get']('ImageUtils'),_0x4ab334=_0x1a39f0['locale'];_0x418e12['enableCommand']('insertImage'),_0x418e12['descriptionFactory']['registerElementLabel']('imageBlock',_0xd30592=>o(_0x4ab334,'ELEMENT_IMAGE',_0xd30592)),_0x418e12['descriptionFactory']['registerElementLabel']('imageInline',_0x1fe6e7=>o(_0x4ab334,'ELEMENT_INLINE_IMAGE',_0x1fe6e7)),_0x418e12['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ab334,'ELEMENT_CAPTION')),_0x1a39f0['plugins']['has']('ImageUploadEditing')&&_0x418e12['enableCommand']('uploadImage'),_0x1a39f0['plugins']['has']('ImageBlockEditing')&&_0x1a39f0['plugins']['has']('ImageInlineEditing')&&(_0x418e12['enableCommand']('imageTypeInline',(_0x4ca9ed,_0x580754)=>{const _0x52afd6=_0x355d55['getClosestSelectedImageElement'](_0x1a39f0['model']['document']['selection']);_0x1a39f0['model']['change'](()=>{_0x418e12['markBlockFormat'](_0x52afd6,{'commandName':'imageTypeInline','commandParams':[_0x580754]},[],'convertBlockImageToInline');});}),_0x418e12['enableCommand']('imageTypeBlock',(_0xf9a9c3,_0x277d05)=>{_0x1a39f0['model']['change'](_0x19adec=>{let _0x1e91b5=_0x355d55['getClosestSelectedImageElement'](_0x1a39f0['model']['document']['selection']),_0x55308e=_0x19adec['createRangeOn'](_0x1e91b5);const _0x285926=_0x10633a['fromPosition'](_0x55308e['start'],'toPrevious'),_0x2fa0ff=_0x10633a['fromPosition'](_0x55308e['end'],'toNext');_0x418e12['forceDefaultExecution'](()=>_0xf9a9c3(_0x277d05)),_0x1e91b5=_0x355d55['getClosestSelectedImageElement'](_0x1a39f0['model']['document']['selection']),_0x55308e=_0x19adec['createRangeOn'](_0x1e91b5);const _0xf7f716=_0x19adec['createRange'](_0x285926,_0x2fa0ff);_0x285926['detach'](),_0x2fa0ff['detach'](),_0x418e12['markBlockFormat'](_0x1e91b5,{'commandName':'imageTypeInline','commandParams':[_0x277d05]},[],'convertInlineImageToBlock'),_0xf7f716['start']['isBefore'](_0x55308e['start'])&&_0x418e12['markInsertion'](_0x19adec['createRange'](_0xf7f716['start'],_0x55308e['start']),'convertInlineImageToBlock'),_0x55308e['end']['isBefore'](_0xf7f716['end'])&&_0x418e12['markInsertion'](_0x19adec['createRange'](_0x55308e['end'],_0xf7f716['end']),'convertInlineImageToBlock');});}),_0x418e12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x418e12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x418e12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x418e12['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x418e12['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x418e12['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1623f3])=>{const _0x45163e=_0x418e12['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x129b9f=_0x1623f3['start'],_0x15e823=_0x1623f3['end'];const _0x5d7e1e=_0x1a39f0['model']['schema']['getNearestSelectionRange'](_0x129b9f,'backward'),_0x51e653=_0x1a39f0['model']['schema']['getNearestSelectionRange'](_0x15e823,'forward');_0x5d7e1e['isCollapsed']&&(_0x129b9f=_0x5d7e1e['start']),_0x51e653['isCollapsed']&&(_0x15e823=_0x51e653['end']),_0x45163e([_0x1a39f0['model']['createRange'](_0x129b9f,_0x15e823)]);}),_0x418e12['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5b2ef2),_0x418e12['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5b2ef2)),_0x1a39f0['plugins']['has']('ImageCaptionEditing')&&(_0x418e12['enableCommand']('toggleImageCaption',(_0x6795cf,_0x479c75)=>{const _0x278889=_0x1a39f0['plugins']['get']('ImageCaptionUtils');let _0x683087=_0x355d55['getClosestSelectedImageElement'](_0x1a39f0['model']['document']['selection']),_0x564c50=_0x278889['getCaptionFromImageModelElement'](_0x683087);_0x1a39f0['model']['change'](()=>{if(_0x564c50)return void _0x418e12['markDeletion'](_0x1a39f0['model']['createRangeOn'](_0x564c50));const _0x2fe86b=_0x355d55['isBlockImage'](_0x683087);_0x6795cf(_0x479c75),_0x683087=_0x355d55['getClosestSelectedImageElement'](_0x1a39f0['model']['document']['selection']),_0x564c50=_0x278889['getCaptionFromImageModelElement'](_0x683087),_0x418e12['markInsertion'](_0x1a39f0['model']['createRangeOn'](_0x564c50),_0x2fe86b?null:'imageCaption');});}),_0x418e12['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5b2ef2));const _0x1f3a44=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x288656(_0x332dd4,_0x241600){const _0x4df6fe=_0x1f3a44['findIndex'](({type:_0x4e915d,subType:_0x477eaf})=>_0x332dd4['type']==_0x4e915d&&_0x332dd4['subType']==_0x477eaf),_0x164703=_0x1f3a44['findIndex'](({type:_0x222f41,subType:_0x3d4ce0})=>_0x241600['type']==_0x222f41&&_0x241600['subType']==_0x3d4ce0);if(_0x4df6fe<0x0||_0x164703<0x0)return!0x1;const _0x1173eb=_0x332dd4['getFirstRange'](),_0x274ccc=_0x241600['getFirstRange']();if((0x0==_0x4df6fe||0x1==_0x4df6fe)&&0x2==_0x164703&&_0x1173eb['isIntersecting'](_0x274ccc))return!0x0;if(0x2==_0x4df6fe&&0x3==_0x164703){const _0x86698e=_0x418e12['_findSuggestions'](_0x1173eb,'insertion')['filter'](({suggestion:_0x10ec57,meta:_0x23c62d})=>_0x23c62d['isOwn']&&'convertInlineImageToBlock'==_0x10ec57['subType']);if(_0x86698e['length']>0x1&&_0x274ccc['end']['isEqual'](_0x1173eb['start']))return!0x0;if(0x1==_0x86698e['length']&&(_0x1173eb['start']['isEqual'](_0x274ccc['end'])||_0x1173eb['end']['isEqual'](_0x274ccc['start'])))return!0x0;}if(0x3==_0x4df6fe&&0x3==_0x164703&&_0x1173eb['start']['isBefore'](_0x274ccc['start'])){const _0x3ac787=_0x1173eb['end']['nodeAfter'],_0x11645b=_0x274ccc['start']['nodeBefore'];return _0x355d55['isBlockImage'](_0x3ac787)&&_0x3ac787===_0x11645b;}return!0x1;}function _0x5b2ef2(_0x49bb22,_0x45e4d1){return _0x288656(_0x49bb22,_0x45e4d1)?[_0x49bb22,_0x45e4d1]:_0x288656(_0x45e4d1,_0x49bb22)?[_0x45e4d1,_0x49bb22]:null;}_0x1a39f0['plugins']['has']('ImageResize')&&(_0x418e12['enableDefaultAttributesIntegration']('resizeImage'),_0x418e12['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ab334,'FORMAT_IMAGE_SIZE'))),_0x1a39f0['plugins']['has']('ImageTextAlternativeEditing')&&_0x418e12['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1a39f0['plugins']['has']('PictureEditing')&&_0x418e12['descriptionFactory']['registerDescriptionCallback'](_0x1d36c2=>{if('attribute'!=_0x1d36c2['type'])return;const {data:_0x3af8bb}=_0x1d36c2;return _0x3af8bb&&'sources'==_0x3af8bb['key']?{'type':'format','content':''}:void 0x0;}),_0x1a39f0['plugins']['has']('ImageSizeAttributes')&&_0x418e12['descriptionFactory']['registerDescriptionCallback'](_0x99e7d1=>{if('attribute'!=_0x99e7d1['type'])return;const {data:_0x1cf95b}=_0x99e7d1;return!_0x1cf95b||'width'!=_0x1cf95b['key']&&'height'!=_0x1cf95b['key']?void 0x0:{'type':'format','content':''};}),_0x418e12['descriptionFactory']['registerDescriptionCallback'](_0x3d60d5=>{if(!!_0x1f3a44['find'](({type:_0x5b114c,subType:_0x5d9170})=>_0x3d60d5['type']==_0x5b114c&&_0x3d60d5['subType']==_0x5d9170))return _0x3d60d5['previous']?{}:void 0x0;}),_0x418e12['descriptionFactory']['registerDescriptionCallback'](_0x1a00bd=>{if('insertion'==_0x1a00bd['type']||'deletion'==_0x1a00bd['type']){const _0x42b4bf=_0x1a00bd['getContainedElement']();if(_0x42b4bf&&_0x42b4bf['is']('element','caption'))return{'type':'insertion'==_0x1a00bd['type']?'addObject':'removeObject','element':_0x42b4bf,'quantity':0x1};}}),_0x418e12['descriptionFactory']['registerDescriptionCallback'](_0x3fe07f=>'formatBlock'==_0x3fe07f['type']&&'convertInlineImageToBlock'==_0x3fe07f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3fe07f['type']&&'convertBlockImageToInline'==_0x3fe07f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x418e12['descriptionFactory']['registerDescriptionCallback'](_0x4c7e29=>{if('attribute'!=_0x4c7e29['type'])return;const {data:_0x38462b}=_0x4c7e29;if(!_0x38462b||'alt'!=_0x38462b['key'])return;const _0xe59127=_0x38462b['newValue'];return _0xe59127?{'type':'format','content':o(_0x4ab334,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xe59127+'\x22')}:{'type':'format','content':o(_0x4ab334,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x154f05=this['editor'],_0x4feac3=_0x154f05['locale'];_0x154f05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ba33e=>{if('formatBlock'!=_0x2ba33e['type']&&'formatInline'!=_0x2ba33e['type'])return;const {data:_0x5da22e}=_0x2ba33e;if(_0x5da22e){if('imageTextAlternative'==_0x5da22e['commandName']){const _0x48bb19=_0x5da22e['commandParams'][0x0]['newValue'];return _0x48bb19?{'type':'format','content':o(_0x4feac3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x48bb19+'\x22')}:{'type':'format','content':o(_0x4feac3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5da22e['commandName']){const _0x152ed0=_0x5da22e['commandParams'][0x0]['width'];return _0x152ed0?{'type':'format','content':o(_0x4feac3,'*Set\x20image\x20width:*\x20%0',_0x152ed0)}:{'type':'format','content':o(_0x4feac3,'*Reset\x20image\x20width*')};}}});}}class at extends _0x2c25bf{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1816cb=this['editor']['locale'],_0x243b7a=this['editor']['plugins']['get']('TrackChangesEditing');_0x243b7a['enableDefaultAttributesIntegration']('replaceImageSource'),_0x243b7a['descriptionFactory']['registerDescriptionCallback'](_0x5e7e03=>{if('attribute'!=_0x5e7e03['type'])return;const {data:_0x6e4e27}=_0x5e7e03;return _0x6e4e27&&'src'==_0x6e4e27['key']?_0x6e4e27['newValue']&&_0x6e4e27['oldValue']?{'type':'format','content':o(_0x1816cb,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x427601=this['editor']['plugins']['get']('TrackChangesEditing');_0x427601['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x427601['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x427601['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x427601['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dce8a=this['editor'],_0x1bf7ca=_0x5dce8a['locale'];_0x5dce8a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x84b5ac=>{if('formatBlock'!=_0x84b5ac['type']&&'formatInline'!=_0x84b5ac['type'])return;const {data:_0x4b23ed}=_0x84b5ac;if(!_0x4b23ed||'replaceImageSource'!=_0x4b23ed['commandName'])return;return{'type':'format','content':o(_0x1bf7ca,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x2c25bf{['afterInit'](){const _0x328cfe=this['editor'];if(!_0x328cfe['plugins']['has']('ImageStyleEditing'))return;const _0xe22f16=_0x328cfe['plugins']['get']('TrackChangesEditing'),_0x28103f=_0x328cfe['plugins']['get']('ImageUtils'),_0x25b688={};_0xe22f16['enableCommand']('imageStyle',(_0x16232e,_0x588d4e)=>{const _0x3343dc=_0x328cfe['plugins']['get']('Users')['me'],_0x539b48=_0x328cfe['commands']['get']('imageStyle');let _0x231979=_0x28103f['getClosestSelectedImageElement'](_0x328cfe['model']['document']['selection']),_0x375859=_0x328cfe['model']['createRangeOn'](_0x231979),_0x28c4ed=_0x539b48['value'];if(_0x28c4ed==_0x588d4e['value'])return;const _0x69a0e2={'commandName':'imageStyle','commandParams':[_0x588d4e],'formatGroupId':_0x2aca75()};_0x328cfe['model']['change'](()=>{if(_0xe22f16['getSuggestions']()['filter'](_0x12e941=>_0x12e941['isInContent']&&_0x3343dc==_0x12e941['author']&&('formatBlock'==_0x12e941['type']||'formatInline'==_0x12e941['type'])&&('imageStylePreApply'==_0x12e941['subType']||'imageStylePostApply'==_0x12e941['subType'])&&_0x12e941['getFirstRange']()['isEqual'](_0x375859))['forEach'](_0x25c042=>_0xe22f16['discardSuggestion'](_0x25c042['head'])),_0x231979=_0x28103f['getClosestSelectedImageElement'](_0x328cfe['model']['document']['selection']),_0x375859=_0x328cfe['model']['createRangeOn'](_0x231979),_0x539b48['refresh'](),_0x328cfe['commands']['get']('imageTypeInline')['refresh'](),_0x328cfe['commands']['get']('imageTypeBlock')['refresh'](),_0x28c4ed=_0x539b48['value'],_0x28c4ed!=_0x588d4e['value'])return _0x28103f['isInlineImage'](_0x231979)&&_0x539b48['shouldConvertImageType'](_0x588d4e['value'],_0x231979)?(_0x16232e({..._0x588d4e,'setImageSizes':!0x1}),_0x231979=_0x28103f['getClosestSelectedImageElement'](_0x328cfe['model']['document']['selection']),void _0xe22f16['markBlockFormat'](_0x231979,{..._0x69a0e2,'commandReversedParams':[{'value':_0x28c4ed||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x28103f['isBlockImage'](_0x231979)?_0xe22f16['markBlockFormat'](_0x231979,_0x69a0e2,[],'imageStylePostApply'):_0xe22f16['markInlineFormat'](_0x375859,_0x69a0e2,'imageStylePostApply'));});});for(const _0x2475b4 of _0x328cfe['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x25b688[_0x2475b4['name']]=_0x2475b4['title']['toLowerCase']();_0xe22f16['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xe22f16['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xe22f16['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xe22f16['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x372ebd])=>{_0x28103f['setImageNaturalSizeAttributes'](_0x372ebd['getContainedElement']());}),_0xe22f16['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x414804,_0x4c3867)=>{_0xe22f16['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x414804,{'commandName':_0x4c3867['commandName'],'commandParams':_0x4c3867['commandReversedParams']});}),_0xe22f16['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x21df17,_0x4e6758){if(_0x3a8e31(_0x21df17,_0x4e6758))return[_0x21df17,_0x4e6758];if(_0x3a8e31(_0x4e6758,_0x21df17))return[_0x4e6758,_0x21df17];return null;});const _0x4f5883=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3a8e31(_0x4df060,_0x18c59b){const _0x1bc8be=_0x4f5883['findIndex'](({type:_0x45eed5,subType:_0x57490c})=>_0x4df060['type']==_0x45eed5&&_0x4df060['subType']==_0x57490c),_0x588109=_0x4f5883['findIndex'](({type:_0x59c463,subType:_0x21bce8})=>_0x18c59b['type']==_0x59c463&&_0x18c59b['subType']==_0x21bce8);if(_0x1bc8be<0x0||_0x588109<0x0)return!0x1;const _0x5b1121=_0x4df060['getFirstRange'](),_0x465719=_0x18c59b['getFirstRange']();if((0x0==_0x1bc8be||0x1==_0x1bc8be)&&0x2==_0x588109&&_0x5b1121['isIntersecting'](_0x465719))return!0x0;if(0x2==_0x1bc8be&&0x3==_0x588109){const _0xa6cc66=_0xe22f16['_findSuggestions'](_0x5b1121,'insertion')['filter'](({suggestion:_0x5383c6,meta:_0x998028})=>_0x998028['isOwn']&&'convertInlineImageToBlock'==_0x5383c6['subType']);if(_0xa6cc66['length']>0x1&&_0x465719['end']['isEqual'](_0x5b1121['start']))return!0x0;if(0x1==_0xa6cc66['length']&&(_0x5b1121['start']['isEqual'](_0x465719['end'])||_0x5b1121['end']['isEqual'](_0x465719['start'])))return!0x0;}if(0x3==_0x1bc8be&&0x3==_0x588109&&_0x5b1121['start']['isBefore'](_0x465719['start'])){const _0x17c494=_0x5b1121['end']['nodeAfter'],_0x3b0294=_0x465719['start']['nodeBefore'];return _0x28103f['isBlockImage'](_0x17c494)&&_0x17c494===_0x3b0294;}return!0x1;}_0x328cfe['model']['document']['registerPostFixer'](()=>{let _0x39650c=!0x1;const _0x17cd69=Array['from'](_0x328cfe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x9ad735,data:_0x48b97c}of _0x17cd69){const {group:_0x3a0183,type:_0x412f22,subType:_0x51a553,id:_0x3b780d}=_0xe22f16['_splitMarkerName'](_0x9ad735);if('suggestion'==_0x3a0183&&_0xe22f16['hasSuggestion'](_0x3b780d)){if('formatBlock'==_0x412f22&&('imageStylePreApply'==_0x51a553||'imageStylePostApply'==_0x51a553)){const _0x1712b0=_0xe22f16['getSuggestion'](_0x3b780d);if(_0x48b97c['newRange']){const _0x590de0=_0x1712b0['getFirstRange']()['getContainedElement']();if(_0x28103f['isBlockImage'](_0x590de0))continue;_0xe22f16['discardSuggestion'](_0x1712b0),_0x39650c=!0x0;}}if('insertion'==_0x412f22&&'imageCaption'==_0x51a553&&!_0x48b97c['newRange']){const _0x5ae6b5=_0xe22f16['getSuggestion'](_0x3b780d);_0x5ae6b5['next']&&_0x5ae6b5['next']['isInContent']&&(_0xe22f16['discardSuggestion'](_0x5ae6b5['next']),_0x39650c=!0x0);}}}return _0x39650c;}),this['_registerLegacyDescription'](_0x25b688);}['_registerLegacyDescription'](_0x489a47){const _0x30c405=this['editor'],_0x191759=_0x30c405['locale'];_0x30c405['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5891c0=>{if('formatBlock'!=_0x5891c0['type']&&'formatInline'!=_0x5891c0['type'])return;const {data:_0x2cc3b2}=_0x5891c0;if(!_0x2cc3b2||'imageStyle'!=_0x2cc3b2['commandName'])return;const _0x4e4a6b=_0x2cc3b2['commandParams'][0x0]['value'];return _0x279656('side'===_0x4e4a6b?o(_0x191759,'FORMAT_SIDE_IMAGE'):_0x489a47[_0x4e4a6b]||_0x4e4a6b);function _0x279656(_0x80ae30){return{'type':'format','content':o(_0x191759,'*Format:*\x20%0',_0x80ae30)};}});}}class ut extends _0x2c25bf{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xaf8272){super(_0xaf8272),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x74b8d9=this['editor'],_0x509dd4=_0x74b8d9['commands']['get']('importWord'),_0x372685=_0x74b8d9['commands']['get']('trackChanges');_0x509dd4&&(_0x509dd4['on']('execute',(_0xabfb01,[,_0x1258c5])=>{this['_trackChangesValueDuringImport']=_0x372685['value'],_0x1258c5['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x509dd4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x509dd4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x372685['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x74b8d9['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5c10a9,_0x13965c){const {suggestions:_0x45a718}=_0x13965c,_0x3e00b7=this['editor']['commands']['get']('trackChanges'),_0x2f1e3a=_0x3e00b7['value'];this['_trackChangesValueDuringImport']!==_0x2f1e3a&&(_0x3e00b7['execute'](),this['_trackChangesExecuted']=!0x0),_0x45a718&&_0x45a718['forEach'](({id:_0x29ac40,type:_0xe97fff,author:_0xb89bda,created_at:_0x2a5dc8})=>{const _0xd5e3b7={'id':_0x29ac40,'type':_0xe97fff,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xb89bda,'createdAt':_0x2a5dc8?new Date(_0x2a5dc8):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xd5e3b7);});}}class ft extends _0x2c25bf{['afterInit'](){const _0x102438=this['editor'],_0x5e9fe6=_0x102438['plugins']['get']('TrackChangesEditing');if(_0x102438['plugins']['has']('IndentEditing')&&(_0x5e9fe6['enableCommand']('indent'),_0x5e9fe6['enableCommand']('outdent')),_0x102438['plugins']['has']('IndentBlock')){for(const _0x27f0b7 of['indentBlock','outdentBlock'])_0x5e9fe6['enableDefaultAttributesIntegration'](_0x27f0b7);}const _0x4006da=_0x102438['locale'];_0x5e9fe6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4006da,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2cc6=this['editor'],_0x4ebab9=_0x3a2cc6['locale'],_0x2a8cfb=_0x3a2cc6['plugins']['get']('TrackChangesEditing');_0x2a8cfb['descriptionFactory']['registerDescriptionCallback'](_0x19cfbe=>{if('formatBlock'!=_0x19cfbe['type'])return;const {data:_0x25c856}=_0x19cfbe;if(!_0x25c856)return;if('indentBlock'!=_0x25c856['commandName']&&'outdentBlock'!=_0x25c856['commandName'])return;const _0x504d28=_0x19cfbe['getItems']()[0x0],_0x1f594b=_0x2a8cfb['descriptionFactory']['getItemLabel'](_0x504d28);return'indentBlock'==_0x25c856['commandName']?{'type':'format','content':o(_0x4ebab9,'*Indent:*\x20%0',_0x1f594b)}:'outdentBlock'==_0x25c856['commandName']?{'type':'format','content':o(_0x4ebab9,'*Outdent:*\x20%0',_0x1f594b)}:void 0x0;});}}class ht extends _0x2c25bf{static get['requires'](){return[_0x45f379];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x2c25bf{['afterInit'](){const _0x4a2008=this['editor'];if(!_0x4a2008['plugins']['has']('LinkEditing'))return;const _0x37a18f=_0x4a2008['plugins']['get']('TrackChangesEditing'),_0x857a12=_0x4a2008['commands']['get']('link');_0x37a18f['enableDefaultAttributesIntegration']('link'),_0x37a18f['enableDefaultAttributesIntegration']('unlink');for(const _0x1cfc59 of _0x857a12['manualDecorators'])_0x37a18f['descriptionFactory']['registerAttributeLabel'](_0x1cfc59['id'],'link\x20('+_0x1cfc59['label']['toLowerCase']()+')');_0x37a18f['descriptionFactory']['registerDescriptionCallback'](_0x3eedf7=>{if('attribute'!=_0x3eedf7['type'])return;const {data:_0x53dc69}=_0x3eedf7;if(!_0x53dc69||'linkHref'!=_0x53dc69['key'])return;const _0x3f4f55=_0x53dc69['newValue'],_0x29b81d=_0x4a2008['locale'];return{'type':'format','content':null==_0x3f4f55?o(_0x29b81d,'*Remove\x20link*'):o(_0x29b81d,'*Set\x20link:*\x20%0','\x22'+_0x3f4f55+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30851d=this['editor'],_0x62ee9c=_0x30851d['locale'];_0x30851d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f752c=>{if('formatInline'!=_0x2f752c['type'])return;const {data:_0x5b2ac8}=_0x2f752c;if(_0x5b2ac8){if('link'==_0x5b2ac8['commandName']){const _0x47f04b=_0x5b2ac8['commandParams'][0x0];return{'type':'format','content':o(_0x62ee9c,'*Set\x20link:*\x20%0','\x22'+_0x47f04b+'\x22')};}return'unlink'==_0x5b2ac8['commandName']?{'type':'format','content':o(_0x62ee9c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x2c25bf{['afterInit'](){const _0x751b9a=this['editor'],_0x287f2d=_0x751b9a['locale'];if(!_0x751b9a['plugins']['has']('LegacyListEditing'))return;const _0x2aed3d=_0x751b9a['plugins']['get']('TrackChangesEditing'),_0x4fd794=_0x751b9a['plugins']['has']('LegacyTodoListEditing');function _0x445d13(_0x1624b4){return()=>{const _0x10373f=_0x751b9a['model']['document']['selection'],_0x4b1332=_0x751b9a['commands']['get'](_0x1624b4);if(_0x4b1332['value'])return void _0x751b9a['execute']('paragraph',{});const _0x5cc4fb=_0x1624b4['slice'](0x0,-0x4),_0x1120ef=function(_0x50e5cd,_0x4d6ae9,_0x3b985a){let _0xcbc603=Array['from'](_0x50e5cd)['filter'](_0x4430e6=>function(_0x4d5077,_0x1ff599){return _0x1ff599['checkChild'](_0x4d5077['parent'],'listItem')&&!_0x1ff599['isObject'](_0x4d5077);}(_0x4430e6,_0x3b985a));_0xcbc603=_0xcbc603['filter'](_0x514021=>!_0x514021['is']('element','listItem')||_0x514021['getAttribute']('listType')!=_0x4d6ae9);const _0x6cbd9=new Set();for(const _0x58fd45 of _0xcbc603)_0x58fd45['is']('element','listItem')?_0x6cbd9['add'](Le(_0x58fd45)):_0x6cbd9['add'](_0x58fd45);return Array['from'](_0x6cbd9);}(_0x10373f['getSelectedBlocks'](),_0x5cc4fb,_0x751b9a['model']['schema']);_0x751b9a['model']['change'](()=>{for(const _0xe05097 of _0x1120ef)_0x2aed3d['markBlockFormat'](_0xe05097,{'commandName':_0x1624b4,'commandParams':[{'forceValue':!_0x4b1332['value']}],'formatGroupId':'blockName'},Ee(_0xe05097));});};}function _0x75737d(_0x671931){return()=>{const _0x5668ec=function(_0x3079d7){let _0x1322d0=Array['from'](_0x3079d7);const _0x49e12f=_0x1322d0['findIndex'](_0x21c82d=>'listItem'!=_0x21c82d['name']);return _0x49e12f>-0x1&&(_0x1322d0=_0x1322d0['slice'](0x0,_0x49e12f)),_0x1322d0;}(_0x751b9a['model']['document']['selection']['getSelectedBlocks']()),_0x15c2f6=_0x751b9a['model']['createRange'](_0x751b9a['model']['createPositionAt'](_0x5668ec[0x0],'before'),_0x751b9a['model']['createPositionAt'](_0x5668ec[_0x5668ec['length']-0x1],'end'));_0x751b9a['model']['change'](()=>{_0x2aed3d['markBlockFormat'](_0x15c2f6,{'commandName':_0x671931,'commandParams':[],'formatGroupId':'listIndent'},function(_0x557d2e){const _0x55a15d=new Set();for(const _0x1d0015 of _0x557d2e){let _0x320d3b=_0x1d0015['nextSibling'];for(;_0x320d3b&&_0x320d3b['getAttribute']('listIndent')>_0x1d0015['getAttribute']('listIndent');)_0x55a15d['add'](_0x320d3b),_0x320d3b=_0x320d3b['nextSibling'];}return Array['from'](_0x55a15d);}(_0x5668ec));});};}_0x2aed3d['enableCommand']('numberedList',_0x445d13('numberedList')),_0x2aed3d['enableCommand']('bulletedList',_0x445d13('bulletedList')),_0x4fd794&&_0x2aed3d['enableCommand']('todoList',_0x445d13('todoList')),_0x2aed3d['enableCommand']('indentList',_0x75737d('indentList')),_0x2aed3d['enableCommand']('outdentList',_0x75737d('outdentList')),_0x4fd794&&_0x2aed3d['enableCommand']('checkTodoList',()=>{const _0x572cb5=_0x751b9a['commands']['get']('checkTodoList'),_0x1bff18=Array['from'](_0x572cb5['_selectedElements']);_0x1bff18['filter'](_0x431daa=>_0x431daa['getAttribute']('todoListChecked')!=_0x572cb5['value']),_0x751b9a['model']['change'](()=>{for(const _0x3ac852 of _0x1bff18)_0x2aed3d['markBlockFormat'](_0x3ac852,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x572cb5['value']}]});});}),_0x2aed3d['descriptionFactory']['registerElementLabel']('listItem',_0xdcb413=>o(_0x287f2d,'ELEMENT_LIST_ITEM',_0xdcb413)),_0x2aed3d['descriptionFactory']['registerDescriptionCallback'](_0x2ba562=>{if('formatBlock'!=_0x2ba562['type']&&'formatInline'!=_0x2ba562['type'])return;const {data:_0x25d0dc}=_0x2ba562;if(_0x25d0dc){if('numberedList'==_0x25d0dc['commandName']||'bulletedList'==_0x25d0dc['commandName']||'todoList'==_0x25d0dc['commandName'])switch(_0x25d0dc['commandName']['replace']('List','')){case'bulleted':return _0x208abc(o(_0x287f2d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x208abc(o(_0x287f2d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x208abc(o(_0x287f2d,'ELEMENT_TODO_LIST'));}if('indentList'==_0x25d0dc['commandName'])return{'type':'format','content':o(_0x287f2d,'*Indent:*\x20%0',o(_0x287f2d,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x25d0dc['commandName'])return{'type':'format','content':o(_0x287f2d,'*Outdent:*\x20%0',o(_0x287f2d,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x25d0dc['commandName'])return _0x25d0dc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x287f2d,'*Check\x20item*')}:{'type':'format','content':o(_0x287f2d,'*Uncheck\x20item*')};}function _0x208abc(_0x5c674f){return{'type':'format','content':o(_0x287f2d,'*Change\x20to:*\x20%0',_0x5c674f)};}});}}function Le(_0x58561d){const _0x4781cb=_0x58561d['getAttribute']('listIndent');if(0x0==_0x4781cb)return _0x58561d;let _0x5e6798=_0x58561d;for(;_0x58561d['previousSibling']&&_0x58561d['previousSibling']['is']('element','listItem');){const _0x3dbd14=_0x58561d['previousSibling']['getAttribute']('listIndent');if(_0x3dbd14==_0x4781cb)_0x5e6798=_0x58561d['previousSibling'];else{if(_0x3dbd14<_0x4781cb)break;}_0x58561d=_0x58561d['previousSibling'];}return _0x5e6798;}function Ee(_0x16b829){const _0x491486=[];if(_0x16b829['is']('element','listItem')&&_0x16b829['getAttribute']('listIndent')>0x0){let _0x234b9e=_0x16b829['nextSibling'];for(;_0x234b9e&&'listItem'==_0x234b9e['name']&&_0x234b9e['getAttribute']('listIndent')==_0x16b829['getAttribute']('listIndent');)_0x491486['push'](_0x234b9e),_0x234b9e=_0x234b9e['nextSibling'];}return _0x491486;}class mt extends _0x2c25bf{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x32cf11=this['editor']['config']['get']('list.properties'),_0x4d709e=this['editor']['plugins']['get']('TrackChangesEditing');_0x32cf11['styles']&&_0x4d709e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x32cf11['reversed']&&_0x4d709e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x32cf11['startIndex']&&_0x4d709e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4d709e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2a32cc,_0x5cbb20={}){const _0x1e9f93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ac4a2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1e9f93['markMultiRangeBlockFormat'](_0x3ac4a2,{'commandName':'listStyle','commandParams':[{'type':_0x5cbb20['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xd395a8,_0x827af6={}){const _0x5c7083=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3a11fa=this['_getSuggestionBlocks'](_0x5aab52=>_0x5aab52['is']('element','listItem')&&'numbered'===_0x5aab52['getAttribute']('listType'));if(_0x3a11fa['length']<0x1)return;const _0x18b510=_0x3a11fa['map'](_0x3be7c5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3be7c5,'before'),this['editor']['model']['createPositionAt'](_0x3be7c5,0x0)));this['editor']['model']['change'](()=>{_0x5c7083['markMultiRangeBlockFormat'](_0x18b510,{'commandName':'listReversed','commandParams':[{'reversed':_0x827af6['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x74da13,_0x254d37={}){const _0x354b65=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d323e=this['_getSuggestionBlocks'](_0x21090b=>_0x21090b['is']('element','listItem')&&'numbered'===_0x21090b['getAttribute']('listType'));if(_0x2d323e['length']<0x1)return;const _0x3860df=_0x2d323e['map'](_0x57300e=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x57300e,'before'),this['editor']['model']['createPositionAt'](_0x57300e,0x0)));this['editor']['model']['change'](()=>{_0x354b65['markMultiRangeBlockFormat'](_0x3860df,{'commandName':'listStart','commandParams':[{'startIndex':_0x254d37['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x561eb6){if('formatBlock'!=_0x561eb6['type']&&'formatInline'!=_0x561eb6['type'])return;const _0x6ceb04=this['editor']['locale'],{data:_0x3fe451}=_0x561eb6;if(!_0x3fe451)return;let _0xe35858,_0x3aa7b7;switch(_0x3fe451['commandName']){case'listStyle':_0xe35858='*Change\x20to:*\x20%0',_0x3aa7b7={'type':'format','content':o(_0x6ceb04,_0xe35858,o(_0x6ceb04,this['_getTranslationKeyForListStyle'](_0x3fe451['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe35858=_0x3fe451['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3aa7b7={'type':'format','content':o(_0x6ceb04,_0xe35858)};break;case'listStart':_0xe35858='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3aa7b7={'type':'format','content':o(_0x6ceb04,_0xe35858,_0x3fe451['commandParams'][0x0]['startIndex'])};}return _0x3aa7b7;}['_getSuggestionBlocksForListStyle'](){const _0x5353ee=this['editor']['plugins']['get']('LegacyListUtils');let _0x392b0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x392b0b[0x0]?.['is']('element','listItem')&&_0x392b0b['unshift'](..._0x5353ee['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x392b0b[_0x392b0b['length']-0x1]?.['is']('element','listItem')&&_0x392b0b['push'](..._0x5353ee['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x392b0b=[...new Set(_0x392b0b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x392b0b=_0x392b0b['filter'](_0x52caad=>_0x52caad['is']('element','listItem'))),_0x392b0b;}['_getSuggestionBlocks'](_0x4da7ef){const _0x1aab52=this['editor']['plugins']['get']('LegacyListUtils');let _0x51a810=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4da7ef)['map'](_0x30f6a5=>{const _0x3a6495=this['editor']['model']['createPositionAt'](_0x30f6a5,0x0);return[..._0x1aab52['getSiblingNodes'](_0x3a6495,'backward'),..._0x1aab52['getSiblingNodes'](_0x3a6495,'forward')];})['flat']();return _0x51a810=[...new Set(_0x51a810)],_0x51a810;}['_getTranslationKeyForListStyle'](_0x5f0d2b){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5f0d2b)||'default')['toUpperCase']()+'_LIST_'+_0x5f0d2b['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x2c25bf{['afterInit'](){const _0x12923c=this['editor'];if(!_0x12923c['plugins']['has']('MediaEmbedEditing'))return;const _0x5b3de2=_0x12923c['plugins']['get']('TrackChangesEditing'),_0x453c55=_0x12923c['locale'];_0x5b3de2['enableCommand']('mediaEmbed'),_0x5b3de2['descriptionFactory']['registerElementLabel']('media',_0x4b7284=>o(_0x453c55,'ELEMENT_MEDIA',_0x4b7284));}}class pt extends _0x2c25bf{['afterInit'](){const _0x1b7203=this['editor'];_0x1b7203['plugins']['has']('MentionEditing')&&_0x1b7203['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x2c25bf{['afterInit'](){const _0x56b090=this['editor'];if(!_0x56b090['plugins']['has']('MergeFieldsEditing'))return;const _0x1d764c=_0x56b090['plugins']['get']('TrackChangesEditing'),_0x152f54=_0x56b090['locale'];_0x1d764c['enableCommand']('insertMergeField'),_0x1d764c['enableCommand']('insertMergeFieldBlock'),_0x1d764c['enableCommand']('insertMergeFieldImage'),_0x1d764c['descriptionFactory']['registerElementLabel']('mergeField',_0x456654=>o(_0x152f54,'ELEMENT_MERGE_FIELD',_0x456654)),_0x1d764c['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x5318f5=>o(_0x152f54,'ELEMENT_MERGE_FIELD',_0x5318f5)),_0x1d764c['descriptionFactory']['registerDescriptionCallback'](_0x77629d=>{if('insertion'!=_0x77629d['type']&&'deletion'!=_0x77629d['type'])return;const _0x732366=_0x77629d['getContainedElement']();if(null==_0x732366)return;const _0x226bd0=_0x56b090['plugins']['get']('MergeFieldsEditing');let _0x2f2603;switch(_0x226bd0['getMergeFieldType'](_0x732366)){case null:return;case'image':{const _0x13d14a=_0x226bd0['unwrapAffixes'](_0x732366['getAttribute']('src'));_0x2f2603=_0x226bd0['getLabel'](_0x13d14a)||_0x13d14a;break;}default:{const _0x4e2ac6=_0x732366['getAttribute']('id');_0x2f2603=_0x226bd0['getLabel'](_0x4e2ac6)||_0x4e2ac6;break;}}return'insertion'==_0x77629d['type']?{'type':'insertion','content':o(_0x152f54,'*Insert:*\x20%0','\x22'+_0x2f2603+'\x22\x20'+o(_0x152f54,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x152f54,'*Remove:*\x20%0','\x22'+_0x2f2603+'\x22\x20'+o(_0x152f54,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x2c25bf{['afterInit'](){const _0x1d2b75=this['editor'],_0x2af17f=_0x1d2b75['plugins']['get']('TrackChangesEditing');_0x1d2b75['plugins']['has']('MultiLevelList')&&(_0x2af17f['enableDefaultAttributesIntegration']('multiLevelList'),_0x2af17f['descriptionFactory']['registerDescriptionCallback'](_0x4a15a2=>this['handleDescriptions'](_0x4a15a2)));}['handleDescriptions'](_0x1a30bb){const _0x1c1259=this['editor']['locale'],{data:_0x408bbd}=_0x1a30bb,_0x50448d={'type':'format','content':''};if(_0x408bbd&&'listMarkerStyle'==_0x408bbd['key']){if(!_0x408bbd['oldValue'])return{'type':'format','content':o(_0x1c1259,'*Set\x20format:*\x20%0',o(_0x1c1259,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x408bbd['newValue']+')'};if(!_0x408bbd['newValue']){let _0x4b052d=_0x1a30bb['head'];for(;_0x4b052d;){if(_0x4b052d['data']&&'listType'==_0x4b052d['data']['key']&&_0x4b052d['data']['newValue'])return _0x50448d;_0x4b052d=_0x4b052d['next'];}return{'type':'format','content':o(_0x1c1259,'*Remove\x20format:*\x20%0',o(_0x1c1259,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x408bbd['oldValue']+')'};}}}}class bt extends _0x2c25bf{['afterInit'](){const _0xb95df2=this['editor'];if(!_0xb95df2['plugins']['has']('PageBreakEditing'))return;_0xb95df2['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x32e23a=_0xb95df2['plugins']['get']('TrackChangesEditing'),_0x525ded=_0xb95df2['locale'];_0x32e23a['descriptionFactory']['registerElementLabel']('pageBreak',_0x76e836=>o(_0x525ded,'ELEMENT_PAGE_BREAK',_0x76e836));}}class yt extends _0x2c25bf{['afterInit'](){const _0x427fad=this['editor'];if(!_0x427fad['plugins']['has']('Paragraph'))return;const _0x51c4f3=_0x427fad['locale'],_0x3ddfc2=_0x427fad['plugins']['get']('TrackChangesEditing');_0x3ddfc2['descriptionFactory']['registerElementLabel']('paragraph',_0x2bee3f=>o(_0x51c4f3,'ELEMENT_PARAGRAPH',_0x2bee3f)),_0x3ddfc2['enableDefaultAttributesIntegration']('paragraph'),_0x3ddfc2['enableCommand']('insertParagraph');const _0x4908c2=_0x3ddfc2['descriptionFactory'];_0x4908c2['registerDescriptionCallback'](_0x591564=>{if('insertion'!==_0x591564['type'])return;const {start:_0x2d1de2,end:_0x45f97f}=_0x591564['getFirstRange']();if(!_0x2d1de2['isTouching'](_0x45f97f)||!_0x2d1de2['nodeAfter'])return;const _0xaa6e51=_0x427fad['model']['schema'],_0x3ff751=_0x2d1de2['nodeAfter'];return _0xaa6e51['isBlock'](_0x3ff751)&&!_0xaa6e51['isLimit'](_0x3ff751)&&_0xaa6e51['checkChild'](_0x3ff751,'$text')?{'type':'insertion','content':o(_0x51c4f3,'*Insert:*\x20%0',_0x4908c2['getItemLabel'](_0x3ff751,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8c75d7=this['editor'],_0x4a931d=_0x8c75d7['locale'];_0x8c75d7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15ffc0=>{if('formatBlock'!=_0x15ffc0['type'])return;const {data:_0x1cc45c}=_0x15ffc0;return _0x1cc45c&&'paragraph'==_0x1cc45c['commandName']?{'type':'format','content':o(_0x4a931d,'*Change\x20to:*\x20%0',o(_0x4a931d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x2c25bf{['afterInit'](){const _0x42db04=this['editor'];_0x42db04['commands']['get']('replaceSource')&&_0x42db04['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x2c25bf{['afterInit'](){const _0x6795bc=this['editor'];if(!_0x6795bc['plugins']['has']('RemoveFormatEditing'))return;_0x6795bc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59e96e=this['editor'];_0x59e96e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4fa487=>{if('formatBlock'!=_0x4fa487['type']&&'formatInline'!=_0x4fa487['type'])return;const {data:_0x19fc0e}=_0x4fa487;return _0x19fc0e&&'removeFormat'==_0x19fc0e['commandName']?{'type':'format','content':o(_0x59e96e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x2c25bf{['afterInit'](){const _0x45f4c9=this['editor'];if(!_0x45f4c9['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x16ff43=_0x45f4c9['plugins']['get']('TrackChangesEditing');_0x16ff43['enableCommand']('goToPreviousRestrictedEditingException'),_0x16ff43['enableCommand']('goToNextRestrictedEditingException');const _0xe9ddc0=_0x45f4c9['plugins']['get']('RestrictedEditingModeEditing');_0xe9ddc0['enableCommand']('trackChanges'),_0xe9ddc0['enableCommand']('acceptSuggestion'),_0xe9ddc0['enableCommand']('discardSuggestion'),_0xe9ddc0['enableCommand']('acceptAllSuggestions'),_0xe9ddc0['enableCommand']('discardAllSuggestions'),_0xe9ddc0['enableCommand']('acceptSelectedSuggestions'),_0xe9ddc0['enableCommand']('discardSelectedSuggestions');}}class At extends _0x2c25bf{['afterInit'](){const _0x44d608=this['editor'];if(!_0x44d608['plugins']['has']('ShiftEnter'))return;const _0x45224e=_0x44d608['plugins']['get']('TrackChangesEditing');_0x45224e['enableCommand']('shiftEnter'),_0x45224e['descriptionFactory']['registerElementLabel']('softBreak',_0x258141=>o(_0x44d608['locale'],'ELEMENT_LINE_BREAK',_0x258141));}}function an(_0x40567a,_0x357eda,_0x3d4cd7){const _0x49e0ca=[];for(const _0x3b64bf of _0x357eda['getItems']())_0x3b64bf['hasAttribute'](_0x40567a)&&_0x49e0ca['push'](_0x3d4cd7['createRangeOn'](_0x3b64bf));return _0x49e0ca;}class _t extends _0x2c25bf{['afterInit'](){const _0x24a9c2=this['editor'],_0x19ea4a=_0x24a9c2['plugins']['get']('TrackChangesEditing');_0x24a9c2['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x19ea4a['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x26f13a=this['editor'],_0x23d874=_0x26f13a['model'],_0x77bf7b=_0x26f13a['locale'],_0x4bddbe=_0x26f13a['plugins']['get']('TrackChangesEditing'),_0x401e2d='restrictedEditingException',_0x2a245e=_0x26f13a['commands']['get'](_0x401e2d);_0x4bddbe['enableCommand'](_0x401e2d,(_0x1f76bd,_0x54c761={})=>{const _0x34e337=_0x23d874['document']['selection'];if(_0x34e337['isCollapsed'])return void _0x1f76bd(_0x54c761);const _0x478cd4=void 0x0!==_0x54c761['forceValue']?_0x54c761['forceValue']:!_0x2a245e['value'];_0x23d874['change'](()=>{const _0x1efe2e=Array['from'](_0x34e337['getRanges']());for(const _0xfd7ca7 of _0x1efe2e){const _0x1a4559=_0x478cd4?[_0xfd7ca7]:an(_0x401e2d,_0xfd7ca7,_0x23d874);for(const _0xa4747e of _0x1a4559)_0x4bddbe['markInlineFormat'](_0xa4747e,{'commandName':_0x401e2d,'commandParams':[{'forceValue':_0x478cd4}]});}});}),_0x4bddbe['descriptionFactory']['registerDescriptionCallback'](_0x2948e0=>{if('formatBlock'!=_0x2948e0['type']&&'formatInline'!=_0x2948e0['type'])return;const {data:_0xb48f47}=_0x2948e0;return _0xb48f47&&_0xb48f47['commandName']==_0x401e2d?_0xb48f47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x77bf7b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x77bf7b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x2307bf=this['editor'],_0x16bb3d=_0x2307bf['locale'],_0x518d3f=_0x2307bf['plugins']['get']('TrackChangesEditing'),_0x15b29f='restrictedEditingExceptionBlock',_0x994ca6=this['editor']['commands']['get'](_0x15b29f);_0x518d3f['enableCommand'](_0x15b29f,(_0x1aa350,_0x4a5a41={})=>{const _0x411682=this['editor']['model']['document']['selection'],_0x798c88=_0x4a5a41&&void 0x0!==_0x4a5a41['forceValue']?_0x4a5a41['forceValue']:!_0x994ca6['value'];let _0x4a1c03=[];if(_0x798c88){const _0x131958=Array['from'](_0x411682['getSelectedBlocks']())['filter'](_0x1c5be5=>function(_0x484e61){return!!_0x484e61['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x1c5be5)||function(_0x4cb94f,_0x2755e5){const _0x5f003d=_0x2755e5['createContext'](_0x4cb94f['parent']);if(!_0x2755e5['checkChild'](_0x5f003d,'restrictedEditingException'))return!0x1;if(!_0x2755e5['checkChild'](_0x5f003d['push']('restrictedEditingException'),_0x4cb94f))return!0x1;return!0x0;}(_0x1c5be5,this['editor']['model']['schema']));_0x4a1c03=to(_0x131958,_0x2307bf['model']);}else{const _0x5abd73=Array['from'](_0x411682['getSelectedBlocks']())['map'](_0x19cff6=>function(_0xee43a4){let _0xb800d0=_0xee43a4;for(;_0xb800d0['parent'];){if('restrictedEditingException'==_0xb800d0['parent']['name'])return _0xb800d0;_0xb800d0=_0xb800d0['parent'];}return null;}(_0x19cff6))['filter'](_0x280336=>!!_0x280336);_0x4a1c03=to(_0x5abd73,_0x2307bf['model']);}_0x2307bf['model']['change'](()=>{for(const _0x29ea31 of _0x4a1c03)_0x518d3f['markBlockFormat'](_0x29ea31,{'commandName':_0x15b29f,'commandParams':[{'forceValue':_0x798c88}]});});}),_0x518d3f['descriptionFactory']['registerDescriptionCallback'](_0xdcbedd=>{const {data:_0x85fa75}=_0xdcbedd;if(_0x85fa75&&_0x85fa75['commandName']==_0x15b29f)return _0x85fa75['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x16bb3d,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x16bb3d,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x2c25bf{['afterInit'](){const _0x4692d5=this['editor'];if(!_0x4692d5['plugins']['has']('Style')||!_0x4692d5['plugins']['has']('DataSchema'))return;const _0x2b3ab9=_0x4692d5['plugins']['get']('TrackChangesEditing'),_0x3ad25d=_0x4692d5['locale'],_0x507fb8=_0x4692d5['config']['get']('style')||{},_0x2ce28f=_0x4692d5['plugins']['get']('GeneralHtmlSupport'),_0x3e1331=_0x4692d5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4692d5['plugins']['get']('DataSchema'),_0x507fb8['definitions']);_0x2b3ab9['enableDefaultAttributesIntegration']('style');const _0x127d61=new Set();for(const _0x18b2e2 of _0x3e1331['block']){const _0x4637fb=_0x2ce28f['getGhsAttributeNameForElement'](_0x18b2e2['element']);_0x127d61['add'](_0x4637fb);}const _0x9e6d6c=new Set();for(const _0x386fbc of _0x3e1331['inline']){const _0x5a833c=_0x2ce28f['getGhsAttributeNameForElement'](_0x386fbc['element']);_0x9e6d6c['add'](_0x5a833c);for(const _0x49264d of _0x386fbc['ghsAttributes'])_0x9e6d6c['add'](_0x49264d);}for(const _0x143af5 of _0x127d61)_0x2b3ab9['descriptionFactory']['registerAttributeLabel'](_0x143af5,o(_0x3ad25d,'FORMAT_STYLE'));for(const _0x447d9f of _0x9e6d6c)_0x2b3ab9['descriptionFactory']['registerAttributeLabel'](_0x447d9f,o(_0x3ad25d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17db71=this['editor'],_0x394a0d=_0x17db71['locale'];_0x17db71['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e4d2f=>{if('formatBlock'!=_0x1e4d2f['type']&&'formatInline'!=_0x1e4d2f['type'])return;const {data:_0x56577f}=_0x1e4d2f;return _0x56577f&&'style'===_0x56577f['commandName']?_0x56577f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x394a0d,'*Set\x20format:*\x20%0',_0x56577f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x394a0d,'*Remove\x20format:*\x20%0',_0x56577f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x2c25bf{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2d2cd1){super(_0x2d2cd1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x2df8e2=this['editor'],_0x48dbb3=_0x2df8e2['model']['document']['selection'];if(!_0x2df8e2['plugins']['has']('TableEditing'))return;const _0x3b2d23=_0x2df8e2['locale'],_0x11c8b8=_0x2df8e2['plugins']['get']('TrackChangesEditing'),_0x205c6d=_0x2df8e2['plugins']['get']('TableUtils');_0x11c8b8['descriptionFactory']['registerElementLabel']('table',_0x2e1ae8=>o(_0x3b2d23,'ELEMENT_TABLE',_0x2e1ae8)),this['_setupColumnsRowsFixing'](),_0x11c8b8['enableCommand']('insertTable'),_0x11c8b8['enableCommand']('selectTableRow'),_0x11c8b8['enableCommand']('selectTableColumn');for(const _0x39855a of['insertTableRowAbove','insertTableRowBelow']){const _0x90b83a=_0x2df8e2['commands']['get'](_0x39855a);_0x11c8b8['enableCommand'](_0x39855a,_0x7c9906=>{_0x2df8e2['model']['change'](_0x4c3d0d=>{_0x7c9906();const _0x368ef0='above'===_0x90b83a['order'],_0x27bd9b=_0x205c6d['getSelectionAffectedTableCells'](_0x48dbb3),_0x495152=_0x205c6d['getRowIndexes'](_0x27bd9b),_0x459d15=_0x368ef0?_0x495152['first']-0x1:_0x495152['last']+0x1,_0x2436ee=_0x27bd9b[0x0]['findAncestor']('table'),_0x572b8c=_0x205c6d['createTableWalker'](_0x2436ee,{'startRow':_0x459d15,'endRow':_0x459d15}),_0x29046f=Array['from'](_0x572b8c)['map'](_0x1d0b17=>_0x4c3d0d['createRangeOn'](_0x1d0b17['cell']));_0x11c8b8['markMultiRangeInsertion'](_0x29046f,'tableRow');});});}for(const _0x42f034 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1a2e76=_0x2df8e2['commands']['get'](_0x42f034);_0x11c8b8['enableCommand'](_0x42f034,_0x597c2e=>{_0x2df8e2['model']['change'](_0x7deff9=>{_0x597c2e();const _0x44d468='left'===_0x1a2e76['order'],_0x5227c9=_0x205c6d['getSelectionAffectedTableCells'](_0x48dbb3),_0xd204f=_0x205c6d['getColumnIndexes'](_0x5227c9),_0x400499=_0x44d468?_0xd204f['first']-0x1:_0xd204f['last']+0x1,_0x245a32=_0x5227c9[0x0]['findAncestor']('table'),_0x3bad11=_0x205c6d['createTableWalker'](_0x245a32,{'startRow':0x0,'column':_0x400499,'includeAllSlots':!0x1}),_0x4a5b6a=Array['from'](_0x3bad11)['map'](_0x504887=>_0x7deff9['createRangeOn'](_0x504887['cell']));_0x11c8b8['markMultiRangeInsertion'](_0x4a5b6a,'tableColumn');});});}for(const _0x3862a4 of['removeTableRow','removeTableColumn']){const _0x19bf2e=_0x3862a4['substr'](0xb),_0x3cbb29=_0x19bf2e['toLowerCase'](),_0x237a02=_0x3cbb29['substr'](0x0,0x3)+'span',_0x3470b2='table'+_0x19bf2e,_0x603c19='min'+_0x19bf2e,_0x4b61ca='max'+_0x19bf2e;_0x11c8b8['enableCommand'](_0x3862a4,()=>{_0x2df8e2['model']['change'](_0x536e9b=>{const _0x20e36d=_0x205c6d['getSelectionAffectedTableCells'](_0x48dbb3),_0x47602d=_0x20e36d[0x0]['findAncestor']('table');let _0x157c9d;if('removeTableRow'==_0x3862a4){const _0x3889cb=_0x205c6d['getRowIndexes'](_0x20e36d);_0x157c9d={'startRow':_0x3889cb['first'],'endRow':_0x3889cb['last'],'includeAllSlots':!0x0};}else{const _0x591aa5=_0x205c6d['getColumnIndexes'](_0x20e36d);_0x157c9d={'startColumn':_0x591aa5['first'],'endColumn':_0x591aa5['last'],'includeAllSlots':!0x0};}const _0x1c447b=_0x205c6d['createTableWalker'](_0x47602d,_0x157c9d),_0x5bcb67=Array['from'](_0x1c447b)['map'](({cell:_0x1e551a})=>_0x1e551a),_0x2cb25c=_e(_0x5bcb67['filter'](_0x39d006=>_0x39d006['hasAttribute'](_0x237a02))),_0x360cfa=_e(_0x5bcb67['filter'](_0x9b5219=>!_0x9b5219['hasAttribute'](_0x237a02)))['map'](_0x2c887d=>_0x536e9b['createRangeOn'](_0x2c887d)),_0x57f5b2=_0x11c8b8['markMultiRangeDeletion'](_0x360cfa,_0x3470b2);if(_0x57f5b2&&('tableRow'==_0x57f5b2['subType']||'tableColumn'==_0x57f5b2['subType'])){const _0x19822f=this['_getSuggestionCoords'](_0x57f5b2);for(const _0x5c87e9 of _0x2cb25c){const _0x53701e=_0x536e9b['createRangeOn'](_0x5c87e9),_0x8073c9=_0x205c6d['getCellLocation'](_0x5c87e9),_0x103389=_0x5c87e9['getAttribute'](_0x237a02)-0x1,_0x3344e8=_0x19822f[_0x603c19],_0x526f28=_0x19822f[_0x4b61ca];_0x3344e8<=_0x8073c9[_0x3cbb29]&&_0x8073c9[_0x3cbb29]+_0x103389<=_0x526f28&&_0x57f5b2['addRange'](_0x53701e);}}});});}function _0x44cff2(_0x30b308){const _0x4430ef=Array['from'](_0x48dbb3['getRanges']())['map'](_0x3cfbbf=>_0x151ab6['fromRange'](_0x3cfbbf));_0x2df8e2['model']['change'](_0x296ffb=>{const _0x2974f9=_0x296ffb['batch'];_0x30b308=_0x30b308['filter'](_0x2906c4=>'$graveyard'!=_0x2906c4['root']['rootName']),_0x296ffb['setSelection'](_0x30b308),_0x2df8e2['commands']['get']('removeTableRow')['refresh'](),_0x2df8e2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2df8e2['model']['enqueueChange'](()=>{_0x2df8e2['model']['enqueueChange'](_0x2974f9,_0x22503b=>{const _0x904d2e=_0x4430ef['filter'](_0x706609=>'$graveyard'!=_0x706609['root']['rootName']);_0x904d2e['length']>0x0&&_0x22503b['setSelection'](_0x904d2e);for(const _0x29d654 of _0x4430ef)_0x29d654['detach']();});});});}function _0x207bc7(_0x17df84){_0x2df8e2['model']['change'](_0x474c5e=>{const _0xb85ccd=Array['from'](_0x48dbb3['getRanges']())['map'](_0x5bb790=>_0x151ab6['fromRange'](_0x5bb790)),_0x47d1cb=[];for(const _0x2fc31a of _0x17df84)for(const _0x4dd1da of _0x2fc31a['getItems']({'shallow':!0x0}))_0x47d1cb['push'](_0x4dd1da);for(const _0x98e4a1 of _0x47d1cb)'$graveyard'!=_0x98e4a1['root']['rootName']&&(_0x474c5e['setSelection'](_0x474c5e['createPositionAt'](_0x98e4a1,0x0)),_0x2df8e2['commands']['get']('removeTableColumn')['refresh'](),_0x2df8e2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2044c4=_0xb85ccd['filter'](_0x539ec5=>'$graveyard'!=_0x539ec5['root']['rootName']);_0x2044c4['length']>0x0&&_0x474c5e['setSelection'](_0x2044c4);for(const _0x5ccb96 of _0xb85ccd)_0x5ccb96['detach']();});}function _0x262354(_0x1be299,_0x1f4277){return _0x1f4277['every'](_0x4dbd8a=>_0x1be299['some'](_0x4a7fa6=>_0x4a7fa6['end']['isEqual'](_0x4dbd8a['start'])||_0x4dbd8a['end']['isEqual'](_0x4a7fa6['start'])));}function _0x22de6(_0x5d100e,_0x440464){return!_0x5d100e['some'](_0x47ea41=>_0x440464['some'](_0x3e3787=>_0x47ea41['isIntersecting'](_0x3e3787)))&&_0x5d100e['some'](_0x4e35a3=>_0x440464['some'](_0x4b5a25=>_0x4e35a3['end']['isTouching'](_0x4b5a25['start'])));}_0x11c8b8['descriptionFactory']['registerDescriptionCallback'](_0x19f118=>{if('insertion'!=_0x19f118['type']&&'deletion'!=_0x19f118['type'])return;const _0x5f43e6=_0x19f118['getContainedElement']();if(null!=_0x5f43e6&&_0x5f43e6['is']('element','table')){if('insertion'==_0x19f118['type']){const _0x2a4c69=_0x19f118['getItems']()['filter'](_0x1f39d6=>_0x1f39d6['is']('$textProxy'))['map'](_0x284555=>_0x284555['data']);if(_0x2a4c69['length'])return{'type':'insertion','content':o(_0x3b2d23,'*Insert:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2a4c69['join']('\x20')+'\x22'))};}if('deletion'==_0x19f118['type']){const _0x3288c6=_0x19f118['getItems']()['filter'](_0x4c1e3d=>_0x4c1e3d['is']('$textProxy'))['map'](_0x403527=>_0x403527['data']);if(_0x3288c6['length'])return{'type':'deletion','content':o(_0x3b2d23,'*Remove:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3288c6['join']('\x20')+'\x22'))};}}}),_0x11c8b8['descriptionFactory']['registerDescriptionCallback'](_0x373546=>{if('tableRow'==_0x373546['subType']){const _0x314f51=_0x373546['getItems']()['filter'](_0x4f056a=>_0x4f056a['is']('$textProxy'))['map'](_0x5bddfc=>_0x5bddfc['data']),_0x5ecda3=this['_getSuggestionCoords'](_0x373546),_0x20d1a5=_0x5ecda3['maxRow']-_0x5ecda3['minRow']+0x1;if('insertion'==_0x373546['type'])return _0x314f51['length']?{'type':'insertion','content':o(_0x3b2d23,'*Insert:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20d1a5,'\x22'+_0x314f51['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3b2d23,'*Insert:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_ROW',_0x20d1a5))};if('deletion'==_0x373546['type'])return _0x314f51['length']?{'type':'deletion','content':o(_0x3b2d23,'*Remove:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20d1a5,'\x22'+_0x314f51['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3b2d23,'*Remove:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_ROW',_0x20d1a5))};}if('tableColumn'==_0x373546['subType']){const _0x459ba2=_0x373546['getItems']()['filter'](_0xdb9637=>_0xdb9637['is']('$textProxy'))['map'](_0x14cfb7=>_0x14cfb7['data']),_0x2ab5cb=this['_getSuggestionCoords'](_0x373546),_0x36fa21=_0x2ab5cb['maxColumn']-_0x2ab5cb['minColumn']+0x1;if('insertion'==_0x373546['type'])return _0x459ba2['length']?{'type':'insertion','content':o(_0x3b2d23,'*Insert:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x36fa21,'\x22'+_0x459ba2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3b2d23,'*Insert:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_COLUMN',_0x36fa21))};if('deletion'==_0x373546['type'])return _0x459ba2['length']?{'type':'deletion','content':o(_0x3b2d23,'*Remove:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x36fa21,'\x22'+_0x459ba2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3b2d23,'*Remove:*\x20%0',o(_0x3b2d23,'ELEMENT_TABLE_COLUMN',_0x36fa21))};}}),_0x11c8b8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x44cff2),_0x11c8b8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x44cff2),_0x11c8b8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x207bc7),_0x11c8b8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x207bc7),_0x11c8b8['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x262354),_0x11c8b8['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x262354),_0x11c8b8['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x22de6),_0x11c8b8['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x22de6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x526969=this['editor'],_0x291d8d=_0x526969['model']['document']['selection'];return(_0x40a6fe,_0x152895)=>{_0x526969['model']['change'](_0x5ba8ab=>{const {commandName:_0x5c71d3,commandParams:_0x30271a}=_0x152895;let _0x1d2f80=_0x40a6fe[0x0]['end']['nodeBefore'];_0x30271a&&_0x30271a[0x0]&&!0x1===_0x30271a[0x0]['forceValue']&&(_0x1d2f80=_0x40a6fe[0x0]['start']['nodeAfter']);const _0x537f79=_0x5ba8ab['createRangeIn'](_0x1d2f80);if('$graveyard'==_0x537f79['root']['rootName'])return;const _0x1aee88=Array['from'](_0x291d8d['getRanges']())['map'](_0x1cac0e=>_0x151ab6['fromRange'](_0x1cac0e));_0x5ba8ab['setSelection'](_0x537f79),_0x526969['commands']['get'](_0x5c71d3)['refresh'](),_0x30271a['push']({'forceDefaultExecution':!0x0}),_0x526969['execute'](_0x5c71d3,..._0x30271a);const _0x4a0427=_0x1aee88['filter'](_0x3844ff=>'$graveyard'!=_0x3844ff['root']['rootName']);_0x4a0427['length']>0x0&&_0x5ba8ab['setSelection'](_0x4a0427);for(const _0x40dc01 of _0x1aee88)_0x40dc01['detach']();});};}['_getCoordsForCells'](_0x4c0ed4){const _0xc1fa46=this['editor']['plugins']['get']('TableUtils');let _0x2fe102=Number['MAX_SAFE_INTEGER'],_0x41c023=Number['MIN_SAFE_INTEGER'],_0x2790a1=Number['MAX_SAFE_INTEGER'],_0x24bcdc=Number['MIN_SAFE_INTEGER'];for(const _0xb14735 of _0x4c0ed4){if('$graveyard'==_0xb14735['root']['rootName'])continue;const {row:_0x1ecbb3,column:_0x430d76}=_0xc1fa46['getCellLocation'](_0xb14735),_0x36c581=_0xb14735['hasAttribute']('rowspan')?_0xb14735['getAttribute']('rowspan')-0x1:0x0,_0x4e437c=_0xb14735['hasAttribute']('colspan')?_0xb14735['getAttribute']('colspan')-0x1:0x0;_0x2fe102=_0x1ecbb3<_0x2fe102?_0x1ecbb3:_0x2fe102,_0x41c023=_0x1ecbb3+_0x36c581>_0x41c023?_0x1ecbb3+_0x36c581:_0x41c023,_0x2790a1=_0x430d76<_0x2790a1?_0x430d76:_0x2790a1,_0x24bcdc=_0x430d76+_0x4e437c>_0x24bcdc?_0x430d76+_0x4e437c:_0x24bcdc;}return{'minRow':_0x2fe102,'maxRow':_0x41c023,'minColumn':_0x2790a1,'maxColumn':_0x24bcdc};}['_setupColumnsRowsFixing'](){const _0x56d6a8=this['editor'],_0x326177=_0x56d6a8['plugins']['get']('TrackChangesEditing'),_0x42156a=_0x56d6a8['plugins']['get']('TableUtils');_0x56d6a8['model']['document']['on']('change:data',()=>{const _0x2d6392=Array['from'](_0x56d6a8['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b7b22,data:_0x78d46a}of _0x2d6392){const {group:_0x46f3eb,id:_0x165cde,subType:_0x274ded}=_0x326177['_splitMarkerName'](_0x5b7b22);if('suggestion'!=_0x46f3eb)continue;if(null!=_0x78d46a['oldRange'])continue;const _0x37b8e3=_0x326177['getSuggestion'](_0x165cde);this['_tablePostFixingSubtypes']['includes'](_0x274ded)&&this['_tableSuggestions']['add'](_0x37b8e3);}},{'priority':'low'});const _0x5550c7=(_0x15793f,_0x510c78)=>{let _0x1330ea=!0x1;const _0x4db1cf=_0x510c78['createRangeOn'](_0x15793f),_0x129c2c=_0x15793f['findAncestor']('table'),_0x235075=_0x42156a['getCellLocation'](_0x15793f);for(const _0xf1c078 of this['_tableSuggestions']){const _0x369ede=_0xf1c078['subType'],_0x2eddb7=_0x369ede['startsWith']('tablePaste'),_0x16d792=_0x369ede['substr'](_0x2eddb7?0xa:0x5),_0x22a60e=_0x16d792['toLowerCase'](),_0x3956c2=_0x22a60e['substr'](0x0,0x3)+'span',_0x441247='min'+_0x16d792,_0x5e5746='max'+_0x16d792;if(!_0xf1c078['isInContent'])continue;if(_0x129c2c!=_0xf1c078['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xf1c078['isIntersectingWithRange'](_0x4db1cf))continue;const _0x1006d2=_0x15793f['hasAttribute'](_0x3956c2)?_0x15793f['getAttribute'](_0x3956c2)-0x1:0x0,_0x43d567=this['_getSuggestionCoords'](_0xf1c078),_0x4d3e12=_0x43d567[_0x441247],_0x4996e1=_0x43d567[_0x5e5746];_0x4d3e12<=_0x235075[_0x22a60e]&&_0x235075[_0x22a60e]+_0x1006d2<=_0x4996e1&&(_0xf1c078['addRange'](_0x4db1cf),_0x1330ea=!0x0);}return _0x1330ea;};_0x56d6a8['model']['document']['registerPostFixer'](_0x21cb12=>{let _0x3c10a1=!0x1;for(const _0x25469a of _0x56d6a8['model']['document']['differ']['getChanges']())if('insert'==_0x25469a['type']){if('tableRow'==_0x25469a['name']){for(const _0x39e97d of _0x25469a['position']['nodeAfter']['getChildren']())_0x3c10a1=_0x3c10a1||_0x5550c7(_0x39e97d,_0x21cb12);}else'tableCell'==_0x25469a['name']&&(_0x3c10a1=_0x3c10a1||_0x5550c7(_0x25469a['position']['nodeAfter'],_0x21cb12));}return _0x3c10a1;});}['_getSuggestionCoords'](_0x24190a){return this['_getCoordsForCells'](_0x24190a['getRanges']()['map'](_0x277927=>_0x277927['start']['nodeAfter']));}}function _e(_0x5d4106){return Array['from'](new Set(_0x5d4106)['values']());}class $t extends _0x2c25bf{static get['requires'](){return[Nt];}['afterInit'](){const _0x196cb8=this['editor'],_0x45667c=_0x196cb8['model']['document']['selection'],_0x219899=_0x196cb8['locale'];if(!_0x196cb8['plugins']['has']('TableEditing'))return;const _0x5359b2=_0x196cb8['plugins']['get']('TrackChangesEditing'),_0x51e99c=_0x196cb8['plugins']['get']('TableUtils'),_0x463577=_0x196cb8['plugins']['get'](Nt);_0x463577['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5359b2['enableCommand']('mergeTableCells',()=>{const _0x5646b2=_0x51e99c['getSelectionAffectedTableCells'](_0x196cb8['model']['document']['selection']);_0x196cb8['model']['change'](()=>{_0x5359b2['markMultiRangeBlockFormat'](_0x5646b2,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x196cb8['commands']['get']('mergeTableCells')['on']('execute',(_0x1763f9,_0x3cc4c5)=>{_0x196cb8['commands']['get']('trackChanges')['value']&&(_0x3cc4c5['length']>0x0&&_0x3cc4c5[_0x3cc4c5['length']-0x1]&&_0x3cc4c5[_0x3cc4c5['length']-0x1]['forceDefaultExecution']||_0x5359b2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x1763f9['stop']());},{'priority':'highest'});for(const _0x36ddd9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x3b85b9=_0x196cb8['commands']['get'](_0x36ddd9);_0x5359b2['enableCommand'](_0x36ddd9,()=>{const _0x4512f3=_0x196cb8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1de9bc=>_0x1de9bc['is']('element','tableCell')),_0x5e6bc2=_0x3b85b9['value'];_0x196cb8['model']['change'](()=>{_0x5359b2['markMultiRangeBlockFormat']([_0x4512f3,_0x5e6bc2],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x377518 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1ed24b=_0x196cb8['commands']['get'](_0x377518);_0x5359b2['enableCommand'](_0x377518,()=>{const _0x396582=_0x51e99c['getSelectionAffectedTableCells'](_0x196cb8['model']['document']['selection'])[0x0],_0x12e113=_0x396582['findAncestor']('table'),{column:_0x32f94c,row:_0x5a4294}=_0x51e99c['getCellLocation'](_0x396582);let _0x50cbe0=[];if('horizontally'==_0x1ed24b['direction']){const _0x57e4c7=_0x51e99c['createTableWalker'](_0x12e113,{'startRow':_0x5a4294,'endRow':_0x5a4294,'includeAllSlots':!0x0});_0x50cbe0=Array['from'](_0x57e4c7)['map'](_0x35e50b=>_0x35e50b['cell']);}else{const _0x525dca=_0x51e99c['createTableWalker'](_0x12e113,{'column':_0x32f94c,'includeAllSlots':!0x0});_0x50cbe0=Array['from'](_0x525dca)['map'](_0x590dce=>_0x590dce['cell']);}_0x196cb8['model']['change'](_0x1f7ecc=>{_0x5359b2['markBlockFormat'](_0x1f7ecc['createRangeOn'](_0x396582),{'commandName':_0x377518,'commandParams':[]},_0x50cbe0,_0x377518);});});}_0x5359b2['descriptionFactory']['registerDescriptionCallback'](_0x3f3b4f=>{if('formatBlock'!=_0x3f3b4f['type']&&'formatInline'!=_0x3f3b4f['type'])return;const {data:_0x2685fc}=_0x3f3b4f;return _0x2685fc&&'mergeTableCells'==_0x2685fc['commandName']?{'type':'format','content':o(_0x219899,'*Merge\x20cells*')}:void 0x0;}),_0x5359b2['descriptionFactory']['registerDescriptionCallback'](_0x15124a=>{if('formatBlock'!=_0x15124a['type']&&'formatInline'!=_0x15124a['type'])return;const {data:_0x564d52}=_0x15124a;return _0x564d52?'splitTableCellVertically'==_0x564d52['commandName']?{'type':'format','content':o(_0x219899,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x564d52['commandName']?{'type':'format','content':o(_0x219899,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x39ea89=_0x463577['_acceptFormatSuggestionCallbackFactory']();for(const _0x1548af of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5359b2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1548af,'accept',_0x39ea89);for(const _0x5934f7 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5359b2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5934f7,'accept',_0x39ea89);_0x5359b2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xae425d=>{_0x196cb8['model']['change'](_0x4efc92=>{const _0x2fc048=Array['from'](_0x45667c['getRanges']())['map'](_0x338bc1=>_0x151ab6['fromRange'](_0x338bc1));_0x4efc92['setSelection'](_0xae425d),_0x196cb8['commands']['get']('mergeTableCells')['refresh'](),_0x196cb8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x580a83=_0x2fc048['filter'](_0x506c7f=>'$graveyard'!=_0x506c7f['root']['rootName']);_0x580a83['length']>0x0&&_0x4efc92['setSelection'](_0x580a83);for(const _0x10d1ae of _0x2fc048)_0x10d1ae['detach']();});});for(const _0x3a1161 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x2d1ca3=_0x196cb8['commands']['get'](_0x3a1161);_0x2d1ca3['on']('set:isEnabled',(_0x3221ad,_0x4560d8,_0x1609a3)=>{if(_0x1609a3){const _0x1412d2=_0x196cb8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x182690=>_0x182690['is']('element','tableCell'));this['_areMergableCells'](_0x2d1ca3['value'],_0x1412d2)||(_0x3221ad['return']=!0x1,_0x3221ad['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x34caa0=this['editor']['commands']['get']('mergeTableCells'),_0x4a534e=this['editor']['plugins']['get']('TableUtils');if(!_0x34caa0['isEnabled'])return!0x1;const _0x5dce93=_0x4a534e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x23a111 of _0x5dce93)for(const _0x5633b4 of _0x5dce93)if(_0x23a111!=_0x5633b4&&!this['_areMergableCells'](_0x23a111,_0x5633b4))return!0x1;return!0x0;}['_areMergableCells'](_0x4676fe,_0x2f1aa0){const _0x5e566c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4cdb5f=this['editor']['model']['createRangeOn'](_0x4676fe),_0x48e850=this['editor']['model']['createRangeOn'](_0x2f1aa0),_0x28b86b=new Set(),_0x303ad9=new Set();for(const _0x3976f9 of _0x5e566c['getSuggestions']())if(('insertion'==_0x3976f9['type']||'deletion'==_0x3976f9['type']||'mergeTableCells'==_0x3976f9['subType'])&&_0x3976f9['isInContent']){for(const _0x1c1183 of _0x3976f9['getRanges']())_0x1c1183['containsRange'](_0x4cdb5f,!0x0)&&_0x28b86b['add'](_0x3976f9['type']+':'+_0x3976f9['author']['id']),_0x1c1183['containsRange'](_0x48e850,!0x0)&&_0x303ad9['add'](_0x3976f9['type']+':'+_0x3976f9['author']['id']);}if(_0x28b86b['size']!=_0x303ad9['size'])return!0x1;for(const _0x3365a9 of _0x28b86b)if(!_0x303ad9['has'](_0x3365a9))return!0x1;return!0x0;}}class vt extends _0x2c25bf{static get['requires'](){return[Nt];}['afterInit'](){const _0x595d08=this['editor'];if(!_0x595d08['plugins']['has']('TableEditing'))return;const _0xf445a2=_0x595d08['locale'],_0x51da73=_0x595d08['plugins']['get']('TrackChangesEditing');_0x51da73['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x51da73['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x51da73['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xf445a2,'FORMAT_HEADER_ROW')),_0x51da73['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xf445a2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x458964=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e783e=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0x458964['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1e783e),_0x458964['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1e783e),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x403a5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x52933e=this['editor']['plugins']['get']('TableUtils');function _0x5dc72a({showActiveMarker:_0x1ade78=!0x0,setDataAttribute:_0x138743=!0x0}={}){return(_0x13bbf3,_0x33547c,_0x14e319)=>{const {type:_0x1c3805,id:_0x833486}=_0x403a5a['_splitMarkerName'](_0x33547c['markerName']);if(!_0x403a5a['hasSuggestion'](_0x833486))return;const _0x3d8081=_0x403a5a['getSuggestion'](_0x833486),_0x5e271f=_0x3d8081['data'];if('formatBlock'!=_0x3d8081['type']||!_0x5e271f||'setTableColumnHeader'!=_0x5e271f['commandName'])return;if(_0x33547c['item'])return void _0x13bbf3['stop']();if(!_0x14e319['consumable']['consume'](_0x33547c['markerRange'],_0x13bbf3['name']))return;const _0x3dc1fc=_0x33547c['markerRange']['start']['nodeAfter'],_0x40a650=_0x33547c['markerRange']['end']['nodeBefore'],_0x353e56=_0x3dc1fc['parent']['parent'],{column:_0x4e41b7}=_0x52933e['getCellLocation'](_0x3dc1fc),{column:_0x3da758}=_0x52933e['getCellLocation'](_0x40a650);for(let _0x3794e1=_0x4e41b7;_0x3794e1<=_0x3da758;_0x3794e1++){const _0x381307=_0x52933e['createTableWalker'](_0x353e56,{'column':_0x3794e1,'includeAllSlots':!0x1});for(const _0x556396 of _0x381307){const _0x8ad9e2=_0x556396['cell'],_0x38d9a1=_0x14e319['mapper']['toViewElement'](_0x8ad9e2);_0x14e319['writer']['addClass']('ck-suggestion-marker-'+_0x1c3805,_0x38d9a1),_0x138743&&_0x14e319['writer']['setAttribute']('data-suggestion',_0x833486,_0x38d9a1),_0x14e319['mapper']['bindElementToMarker'](_0x38d9a1,_0x33547c['markerName']),_0x1ade78&&(_0x403a5a['activeMarkers']['includes'](_0x33547c['markerName'])?_0x14e319['writer']['addClass']('ck-suggestion-marker--active',_0x38d9a1):_0x14e319['writer']['removeClass']('ck-suggestion-marker--active',_0x38d9a1));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5dc72a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x558442,_0x454252,_0xaabd4b)=>{_0xaabd4b['options']['showSuggestionHighlights']&&_0x5dc72a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x558442,_0x454252,_0xaabd4b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4e8ab6,_0xa3e7ea,_0x3d4d51)=>{const {type:_0xd000be,id:_0x5de5ce}=_0x403a5a['_splitMarkerName'](_0xa3e7ea['markerName']);if(!_0x403a5a['hasSuggestion'](_0x5de5ce))return;const _0xb7b7b9=_0x403a5a['getSuggestion'](_0x5de5ce),_0x15e586=_0xb7b7b9['data'];if('formatBlock'!=_0xb7b7b9['type']||!_0x15e586||'setTableColumnHeader'!=_0x15e586['commandName'])return;const _0xdc1a39=_0x3d4d51['mapper']['markerNameToElements'](_0xa3e7ea['markerName']);if(_0xdc1a39){for(const _0xf394ed of _0xdc1a39)_0x3d4d51['writer']['removeClass']('ck-suggestion-marker-'+_0xd000be,_0xf394ed),_0x3d4d51['writer']['removeClass']('ck-suggestion-marker--active',_0xf394ed),_0x3d4d51['writer']['removeAttribute']('data-suggestion',_0xf394ed),_0x3d4d51['mapper']['unbindElementFromMarkerName'](_0xf394ed,_0xa3e7ea['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x2a50b7=this['editor'],_0x34ffb7=_0x2a50b7['locale'];function _0x2d2da0(_0x4e6e0e){return{'type':'format','content':o(_0x34ffb7,'*Format:*\x20%0',_0x4e6e0e)};}_0x2a50b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c90a2=>{if('formatBlock'!=_0x2c90a2['type'])return;const {data:_0x4742ae}=_0x2c90a2;if(_0x4742ae){if('setTableRowHeader'==_0x4742ae['commandName']){const _0x34f60a=_0x4742ae['commandParams'][0x0]['forceValue'];return _0x2d2da0(o(_0x34ffb7,_0x34f60a?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4742ae['commandName']){const _0x4077c4=_0x4742ae['commandParams'][0x0]['forceValue'];return _0x2d2da0(o(_0x34ffb7,_0x4077c4?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x2c25bf{['afterInit'](){const _0x2a647e=this['editor'],_0x41a9e5=_0x2a647e['locale'],_0x211d93=_0x2a647e['plugins']['get']('TrackChangesEditing');function _0x45aad5(_0x3170cc){return{'type':'format','content':''+o(_0x41a9e5,'*Set\x20table\x20type:*\x20%0',_0x3170cc)};}_0x2a647e['plugins']['has']('TableLayout')&&(_0x211d93['enableCommand']('insertTableLayout'),_0x211d93['enableDefaultAttributesIntegration']('tableType'),_0x211d93['descriptionFactory']['registerElementLabel'](_0x1b811f=>_0x1b811f['is']('element','table')&&'layout'===_0x1b811f['getAttribute']('tableType'),_0x38d453=>o(_0x41a9e5,'ELEMENT_LAYOUT_TABLE',_0x38d453)),_0x211d93['descriptionFactory']['registerDescriptionCallback'](_0x5a9307=>{const {data:_0x2bef39}=_0x5a9307;if(_0x2bef39&&'tableType'==_0x2bef39['key'])switch(_0x2bef39['newValue']){case'layout':return _0x45aad5(o(_0x41a9e5,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x45aad5(o(_0x41a9e5,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
-
Object['fromEntries'](Re['map'](_0x11965b=>[_0x11965b,null]));class Bt extends _0x2c25bf{static get['requires'](){return[Nt];}['afterInit'](){const _0x418cf0=this['editor'];if(!_0x418cf0['plugins']['has']('TableClipboard'))return;const _0x361459=_0x418cf0['plugins']['get']('TrackChangesEditing'),_0x1a17b0=_0x418cf0['plugins']['get']('TableUtils'),_0x330c8d=_0x418cf0['plugins']['get'](Nt),_0x1292d5=_0x418cf0['plugins']['get']('TableClipboard'),_0x2f2710=_0x418cf0['plugins']['get']('TableSelection'),_0x4bef04=_0x418cf0['plugins']['get'](_0x2aa9b8);_0x330c8d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x418cf0['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x418cf0['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3a2086=null,_0x3175ee=!0x1;_0x4bef04['on']('contentInsertion',(_0x5c374d,_0x4b9990)=>{_0x3175ee='paste'===_0x4b9990['method'];}),_0x418cf0['model']['on']('insertContent',(_0x1fa6a2,_0x489f64)=>{if(!_0x3175ee&&null===_0x2f2710['getSelectedTableCells']())return;const [_0x335970,_0x3facab]=_0x489f64,_0x1867d9=_0x489f64[_0x489f64['length']-0x1];_0x1867d9&&_0x1867d9['forceDefaultExecution']||_0x361459['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x36de3b,_0x465cdc,_0x12314e,_0x4d2151,_0x111e55){if(_0x465cdc&&!_0x465cdc['is']('documentSelection'))return!0x1;const _0x351e14=_0x111e55['getTableIfOnlyTableInContent'](_0x36de3b,_0x12314e);if(!_0x351e14||!Oe(_0x351e14,void 0x0,_0x4d2151))return!0x1;const _0x1a75eb=_0x4d2151['getSelectionAffectedTableCells'](_0x12314e['document']['selection']);if(!_0x1a75eb['length'])return!0x1;const _0x69647e=_0x1a75eb[0x0]['findAncestor']('table'),_0x101827=_0x4d2151['getRowIndexes'](_0x1a75eb),_0x155d31=_0x4d2151['getColumnIndexes'](_0x1a75eb),_0x51e60a={'startRow':_0x101827['first'],'endRow':_0x101827['last'],'startColumn':_0x155d31['first'],'endColumn':_0x155d31['last']};return 0x1==_0x1a75eb['length']&&(_0x51e60a['endRow']+=_0x4d2151['getRows'](_0x351e14)-0x1,_0x51e60a['endColumn']+=_0x4d2151['getColumns'](_0x351e14)-0x1),Oe(_0x69647e,_0x51e60a,_0x4d2151);}(_0x335970,_0x3facab,_0x418cf0['model'],_0x1a17b0,_0x1292d5)&&(_0x1fa6a2['stop'](),_0x3a2086={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x418cf0['model']['change'](()=>{_0x418cf0['model']['insertContent'](_0x489f64[0x0],_0x489f64[0x1],_0x489f64[0x2],{'forceDefaultExecution':!0x0});const _0x362fb1=_0x2aca75(),{rowInsertionRanges:_0x568ace,columnInsertionRanges:_0x1ace33,insertionRanges:_0x341ffa,deletionRanges:_0x1fd4f7,cells:_0x2cc446}=_0x3a2086;_0x568ace['length']&&_0x361459['markMultiRangeInsertion'](_0x568ace,'tablePasteRow',{'tablePasteChainId':_0x362fb1}),_0x1ace33['length']&&_0x361459['markMultiRangeInsertion'](_0x1ace33,'tablePasteColumn',{'tablePasteChainId':_0x362fb1}),_0x341ffa['length']&&(_0x361459['markMultiRangeInsertion'](_0x341ffa,'tablePaste',{'tablePasteChainId':_0x362fb1,'skipNestingCheck':!0x0}),_0x341ffa['forEach'](_0x1ff128=>_0x1ff128['detach']?.())),_0x1fd4f7['length']&&(_0x361459['markMultiRangeDeletion'](_0x1fd4f7,'tablePaste',{'tablePasteChainId':_0x362fb1,'skipNestingCheck':!0x0}),_0x1fd4f7['forEach'](_0x4fea13=>_0x4fea13['detach']?.()));const _0x1e754b=_0x361459['markMultiRangeBlockFormat'](_0x2cc446['map'](({element:_0x1fd75f})=>_0x1fd75f),{'formatGroupId':_0x2aca75()},[],'tablePasteCell',{'tablePasteChainId':_0x362fb1});if(_0x1e754b){const _0x10f99c=_0x1e754b['getMarkers'](),_0x221098=[];for(const {element:_0x159b66,attributes:_0x5ed49d}of _0x2cc446){if(!_0x5ed49d)continue;const _0x4b20d2=_0x418cf0['model']['createRangeOn'](_0x159b66),_0x5217d2=_0x10f99c['find'](_0x24688c=>_0x24688c['getRange']()['isEqual'](_0x4b20d2));_0x5217d2&&_0x221098['push']([_0x5217d2['name'],_0x5ed49d]);}_0x221098['length']&&_0x1e754b['setAttribute']('markerAttributes',Object['fromEntries'](_0x221098));}_0x3a2086=null;}));},{'priority':_0x481aea['high']+0xa}),_0x4bef04['on']('contentInsertion',()=>{_0x3175ee=!0x1;},{'priority':'lowest'}),_0x418cf0['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2f616d,_0x3b4e3e)=>{const [_0x29885f,_0x55d908,,_0x10b56e]=_0x3b4e3e;if(!_0x3a2086)return;_0x2f616d['stop']();const _0x37efa6=_0x29885f['cell'],_0x2a4aca=_0x55d908,_0x4af30c=Be(_0x37efa6),_0x193d97=Be(_0x2a4aca);_0x2f616d['return']=_0x37efa6;let _0x351afb=null,_0x1588d5=null;if(_0x193d97||_0x4af30c){if(_0x4af30c&&!_0x193d97){_0x10b56e['remove'](_0x37efa6['getChild'](0x0));for(const _0x1983fd of Array['from'](_0x2a4aca['getChildren']()))_0x10b56e['insert'](_0x1983fd,_0x37efa6,'end');const _0x46d248=_0x3a2086['rowInsertionIndexes']['includes'](_0x29885f['row']),_0x2914f2=_0x3a2086['columnInsertionIndexes']['includes'](_0x29885f['column']);_0x46d248||_0x2914f2||(_0x351afb=_0x151ab6['fromRange'](_0x10b56e['createRangeIn'](_0x37efa6)));}else _0x193d97&&!_0x4af30c&&(_0x1588d5=_0x10b56e['createRangeIn'](_0x37efa6));}else{const _0x41a6ce=_0x10b56e['createElement']('tableCellSuggestion'),_0x1bdf2e=_0x10b56e['createElement']('tableCellSuggestion');_0x10b56e['wrap'](_0x10b56e['createRangeIn'](_0x37efa6),_0x1bdf2e),_0x10b56e['insert'](_0x41a6ce,_0x37efa6,0x0);for(const _0x3e75ed of Array['from'](_0x2a4aca['getChildren']()))_0x10b56e['insert'](_0x3e75ed,_0x41a6ce,'end');_0x351afb=_0x151ab6['fromRange'](_0x10b56e['createRangeOn'](_0x41a6ce)),_0x1588d5=_0x151ab6['fromRange'](_0x10b56e['createRangeOn'](_0x1bdf2e));}const _0x55580a=Array['from'](_0x2a4aca['getAttributes']())['filter'](([_0x304a45])=>Re['includes'](_0x304a45));_0x3a2086['cells']['push']({'element':_0x37efa6,'attributes':_0x55580a['length']?Object['fromEntries'](_0x55580a):null}),_0x351afb&&_0x3a2086['insertionRanges']['push'](_0x351afb),_0x1588d5&&_0x3a2086['deletionRanges']['push'](_0x1588d5);},{'priority':'high'}),_0x1a17b0['on']('insertColumns',(_0x4e368e,_0x174f22)=>{const [_0x8b263e,_0x1a9eac={}]=_0x174f22;if(!_0x3a2086)return;const _0x36d31d=_0x1a9eac['at']||0x0,_0x4d24c1=_0x1a9eac['columns']||0x1;_0x3a2086['columnInsertionIndexes']=new Array(_0x4d24c1)['fill'](_0x36d31d)['map']((_0x28e270,_0x1633e4)=>_0x28e270+_0x1633e4);for(const {cell:_0x4e1f1d}of _0x1a17b0['createTableWalker'](_0x8b263e,{'startColumn':_0x36d31d,'endColumn':_0x36d31d+_0x4d24c1-0x1}))_0x3a2086['columnInsertionRanges']['push'](_0x418cf0['model']['createRangeOn'](_0x4e1f1d));},{'priority':'low'}),_0x1a17b0['on']('insertRows',(_0x1ddfff,_0x36bb4f)=>{const [_0xd6b650,_0x5b375d={}]=_0x36bb4f;if(!_0x3a2086)return;const _0x5d412c=_0x5b375d['at']||0x0,_0x492fef=_0x5b375d['rows']||0x1;_0x3a2086['rowInsertionIndexes']=new Array(_0x492fef)['fill'](_0x5d412c)['map']((_0x11af79,_0x59c523)=>_0x11af79+_0x59c523);for(const {cell:_0x2b5f55}of _0x1a17b0['createTableWalker'](_0xd6b650,{'startRow':_0x5d412c,'endRow':_0x5d412c+_0x492fef-0x1}))_0x3a2086['rowInsertionRanges']['push'](_0x418cf0['model']['createRangeOn'](_0x2b5f55));},{'priority':'low'}),_0x361459['descriptionFactory']['registerDescriptionCallback'](_0x3b0026=>{if(_0x3b0026['subType']&&_0x3b0026['subType']['startsWith']('tablePaste'))return _0x3b0026['previous']?{}:{'type':'insertion','content':o(_0x418cf0['locale'],'*Replace\x20table\x20cells*')};});const _0xeb8375=()=>!0x1;for(const _0x41b3ce of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x361459['_suggestionFactory']['registerCustomCallback']('insertion',_0x41b3ce,'join',_0xeb8375),_0x361459['_suggestionFactory']['registerCustomCallback']('deletion',_0x41b3ce,'join',_0xeb8375),_0x361459['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x41b3ce,'join',_0xeb8375);_0x361459['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xeb8375),_0x361459['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3f5512,_0x4c1e99,_0x10797d)=>{const _0xc6047f=_0x3f5512['map'](_0x19c9dd=>_0x19c9dd['getContainedElement']())['filter'](_0x579874=>_0x579874),_0x11cc94=new Map(_0xc6047f['map'](_0x3c0dfd=>[_0x3c0dfd,null]));if(_0x3a2086){for(const {element:_0x4bb8b0,attributes:_0x5086ae}of _0x3a2086['cells'])_0x5086ae&&_0x11cc94['set'](_0x4bb8b0,_0x5086ae);}else{if(_0x10797d&&_0x10797d['markerAttributes'])for(const [_0x41ff52,_0x47333a]of Object['entries'](_0x10797d['markerAttributes'])){const _0x40ef21=_0x418cf0['model']['markers']['get'](_0x41ff52),_0x46ebcb=_0x40ef21?_0x40ef21['getRange']()['getContainedElement']():null;_0x46ebcb&&_0x11cc94['set'](_0x46ebcb,_0x47333a);}}_0x418cf0['model']['change'](_0x30bd85=>{for(const [_0x2ed55f,_0x477447]of _0x11cc94)_0x30bd85['setAttributes']({...Ae,..._0x477447},_0x2ed55f);});});const _0x4294f8=(_0x3f626a,_0x17376d)=>{_0x361459['_suggestionFactory']['registerCustomCallback'](_0x3f626a,'tablePaste',_0x17376d,(_0xa5e16a,_0x1f4fbf,_0x8a5a33)=>{_0x418cf0['model']['change'](_0x5d66a7=>{const _0x5f0aef=[];for(const _0x3e2651 of _0xa5e16a){const _0x4d78e1=_0x3e2651['start']['nodeAfter'];_0x4d78e1['is']('element','tableCellSuggestion')&&_0x5f0aef['push'](_0x4d78e1);}_0x361459['_suggestionFactory']['getSuggestionCallback'](_0x3f626a,null,_0x17376d)(_0xa5e16a,_0x1f4fbf,_0x8a5a33);for(const _0x5f27c7 of _0x5f0aef)'$graveyard'!=_0x5f27c7['root']['rootName']&&_0x5d66a7['unwrap'](_0x5f27c7);});});};_0x4294f8('insertion','accept'),_0x4294f8('insertion','discard'),_0x4294f8('deletion','accept'),_0x4294f8('deletion','discard'),_0x361459['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x33e958=>{const _0x4427b9=_0x33e958['map'](_0x267ff9=>_0x267ff9['getContainedElement']()),_0x1c39dd=_0x4427b9[0x0]['findAncestor']('table'),{minRow:_0x349001,maxRow:_0x185659}=_0x330c8d['_getCoordsForCells'](_0x4427b9);_0x1a17b0['removeRows'](_0x1c39dd,{'at':_0x349001,'rows':_0x185659-_0x349001+0x1});}),_0x361459['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2657db=>{const _0x28e53a=_0x2657db['map'](_0x49aa83=>_0x49aa83['getContainedElement']()),_0x3860cf=_0x28e53a[0x0]['findAncestor']('table'),{minColumn:_0x157613,maxColumn:_0x1756e1}=_0x330c8d['_getCoordsForCells'](_0x28e53a);_0x1a17b0['removeColumns'](_0x3860cf,{'at':_0x157613,'columns':_0x1756e1-_0x157613+0x1});});const _0x5e3546=(_0x4affbd,_0x4efac8)=>{if(!_0x4efac8['subType']||!_0x4efac8['subType']['startsWith']('tablePaste'))return;const _0x1a8584=_0x4efac8['attributes']['tablePasteChainId'],_0x49fd6f=_0x361459['getSuggestions']()['filter'](_0x46e1f8=>_0x46e1f8['isInContent']&&_0x46e1f8['attributes']&&_0x46e1f8['attributes']['tablePasteChainId']==_0x1a8584);_0x49fd6f['length']&&_0x4efac8['getAllAdjacentSuggestions']()['length']!=_0x49fd6f['length']&&_0x49fd6f['reduce']((_0x104d4f,_0x458f05)=>(_0x104d4f['next']=_0x458f05,_0x458f05['previous']=_0x104d4f,_0x458f05));};function _0x3b221c(_0x4385eb,_0xaf1656=!0x0){const {id:_0x2555a2,authorId:_0x2fca56}=_0x361459['_splitMarkerName'](_0x4385eb['markerName']),_0x4915a8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3def90=_0x361459['activeMarkers']['includes'](_0x4385eb['markerName']);return _0x3def90&&_0x4915a8['push']('ck-suggestion-marker--active'),{'classes':_0x4915a8,'attributes':{'data-suggestion':_0x2555a2,'data-author-id':_0x2fca56},'priority':_0x3def90&&_0xaf1656?0xbc2:0xbb8};}_0x361459['on']('suggestionLoaded',_0x5e3546,{'priority':'high'}),_0x361459['on']('suggestionUnloaded',_0x5e3546,{'priority':'high'}),_0x418cf0['model']['document']['registerPostFixer'](()=>{let _0xd22e63=!0x1;const _0xa8afbf=Array['from'](_0x418cf0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2e8a59,data:_0x322496}of _0xa8afbf){const {group:_0x474561,type:_0x2f5ab2,id:_0x9ac47c}=_0x361459['_splitMarkerName'](_0x2e8a59);if('suggestion'!=_0x474561||'deletion'!=_0x2f5ab2||_0x322496['oldRange'])continue;if(!_0x361459['hasSuggestion'](_0x9ac47c))continue;const _0x2851c5=_0x361459['getSuggestion'](_0x9ac47c)['getRanges'](),_0x23613d=_0x418cf0['plugins']['get']('Users')['me'];for(const _0x55eab2 of _0x361459['getSuggestions']()){if(!_0x55eab2['isInContent']||_0x55eab2['author']!=_0x23613d)continue;if('formatBlock'!=_0x55eab2['type']||'tablePasteCell'!=_0x55eab2['subType'])continue;if(_0x55eab2['getRanges']()['every'](_0x3506a0=>_0x2851c5['some'](_0x3e4275=>_0x3e4275['containsRange'](_0x3506a0,!0x0)))){for(const _0x42c71d of _0x55eab2['getAllAdjacentSuggestions']())_0x42c71d['isInContent']&&(_0x42c71d['discard'](),_0xd22e63=!0x0);}}}return _0xd22e63;}),_0x418cf0['model']['document']['registerPostFixer'](_0x2a45a4=>{const _0x119441=_0x418cf0['commands']['get']('redo');if(!_0x119441||!_0x119441['_createdBatches']['has'](_0x2a45a4['batch']))return!0x1;let _0x4d3d45=!0x1;const _0xf3f7fa=_0x418cf0['plugins']['get']('Users')['me'],_0x4c7b50=_0x418cf0['model']['document']['differ']['getChanges'](),_0x15da8a=Array['from'](_0x418cf0['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x21884e,data:_0x5723ad})=>{const {group:_0x30b8b7,subType:_0x389764,authorId:_0x2f7aec}=_0x361459['_splitMarkerName'](_0x21884e);return'suggestion'==_0x30b8b7&&'tablePaste'==_0x389764&&_0x2f7aec==_0xf3f7fa['id']&&!_0x5723ad['oldRange'];});for(const _0x2790df of _0x4c7b50){if('insert'!=_0x2790df['type']||'tableCellSuggestion'!=_0x2790df['name']||0x1!=_0x2790df['length'])continue;const _0x30d8db=_0x2a45a4['createRange'](_0x2790df['position'],_0x2790df['position']['getShiftedBy'](0x1));if(!_0x15da8a['find'](({data:_0x2c88b9})=>_0x2c88b9['newRange']['isEqual'](_0x30d8db))){for(const {name:_0x4f7c85,data:_0x285626}of _0x15da8a)if(_0x30d8db['containsRange'](_0x285626['newRange'])){_0x2a45a4['updateMarker'](_0x4f7c85,{'range':_0x30d8db}),_0x4d3d45=!0x0;break;}}}return _0x4d3d45;}),_0x418cf0['model']['document']['registerPostFixer'](_0x5e2234=>{let _0x5776af=!0x1;const _0x1f040c=_0x418cf0['plugins']['get']('Users')['me'],_0x14daa3=_0x361459['getSuggestions']()['filter'](_0x170f0d=>_0x170f0d['isInContent']&&_0x170f0d['author']==_0x1f040c),_0x2d2c11=new Set(),_0x1b1dd8=new Set();for(const _0x17291e of _0x14daa3)if('tablePaste'==_0x17291e['subType'])for(const _0x339c84 of _0x17291e['getMarkers']()){const _0x51ae40=_0x339c84['getRange']()['getContainedElement']();if(_0x51ae40){if(_0x51ae40['is']('element','tableCellSuggestion')&&Be(_0x51ae40)){_0x17291e['removeMarker'](_0x339c84['name']),_0x2d2c11['add'](_0x51ae40),_0x5776af=!0x0;const _0x2f2dfb=_0x51ae40['nextSibling'],_0x4d181d=_0x51ae40['previousSibling'],_0x535bd4=_0x2f2dfb&&_0x2f2dfb['is']('element','tableCellSuggestion'),_0x43cad4=_0x4d181d&&_0x4d181d['is']('element','tableCellSuggestion');_0x535bd4&&!_0x2d2c11['has'](_0x2f2dfb)&&_0x1b1dd8['add'](_0x2f2dfb),_0x43cad4&&!_0x2d2c11['has'](_0x4d181d)&&_0x1b1dd8['add'](_0x4d181d);}else _0x51ae40['is']('element','paragraph')&&_0x51ae40['isEmpty']&&(_0x17291e['removeMarker'](_0x339c84['name']),_0x5776af=!0x0);}}else{if('tablePasteCell'==_0x17291e['subType']){if(!_0x17291e['attributes']||!_0x17291e['attributes']['tablePasteChainId'])continue;const _0x1816d5=_0x17291e['attributes']['markerAttributes'];if(_0x1816d5&&Object['keys'](_0x1816d5)['length'])continue;const _0x55690a=_0x17291e['attributes']['tablePasteChainId'];let _0x4fc6ae=!0x0,_0x507d22=!0x0;for(const _0x3f8cd0 of _0x14daa3)if(_0x3f8cd0['subType']&&_0x3f8cd0['subType']['startsWith']('tablePaste')){if(!_0x3f8cd0['attributes']['tablePasteChainId']){_0x507d22=!0x1;break;}if(_0x3f8cd0['id']!=_0x17291e['id']&&_0x3f8cd0['attributes']['tablePasteChainId']==_0x55690a){_0x4fc6ae=!0x1;break;}}_0x507d22&&_0x4fc6ae&&(_0x17291e['removeMarkers'](),_0x5776af=!0x0);}}for(const _0x156274 of _0x2d2c11)_0x5e2234['remove'](_0x156274);for(const _0x253ae6 of _0x1b1dd8)_0x5e2234['unwrap'](_0x253ae6);return _0x5776af;}),_0x418cf0['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2dc7ac=>_0x3b221c(_0x2dc7ac),'converterPriority':'high'}),_0x418cf0['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x17f1be,_0x291a27)=>_0x291a27['options']['showSuggestionHighlights']?_0x3b221c(_0x17f1be,!0x1):null,'converterPriority':'high'});const _0x9a1503=_0x418cf0['editing']['view'];this['listenTo'](_0x9a1503['document'],'clipboardOutput',(_0x10c5f9,_0x4e85bb)=>{const _0x4b1fe0=[];for(const _0x2def6a of _0x9a1503['createRangeIn'](_0x4e85bb['content'])['getItems']())_0x2def6a['is']('element','suggestion-td')&&_0x4b1fe0['push'](_0x2def6a);_0x9a1503['change'](_0x1145ba=>{for(const _0x16d254 of _0x4b1fe0)_0x1145ba['move'](_0x1145ba['createRangeIn'](_0x16d254),_0x1145ba['createPositionBefore'](_0x16d254)),_0x1145ba['remove'](_0x16d254);});});}}function Be(_0x1fc00a){if(_0x1fc00a['isEmpty'])return!0x0;const _0x36869a=_0x1fc00a['getChild'](0x0);return _0x36869a['is']('element','paragraph')&&_0x36869a['isEmpty'];}function Oe(_0x1efb45,_0x148346={},_0x1bce44){for(const {isAnchor:_0x506d52,cellHeight:_0x4e4f0c,cellWidth:_0x1a40e3}of _0x1bce44['createTableWalker'](_0x1efb45,{'includeAllSlots':!0x0,..._0x148346}))if(!_0x506d52||0x1!=_0x4e4f0c||0x1!=_0x1a40e3)return!0x1;return!0x0;}class Ot extends _0x2c25bf{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xc637eb=this['editor']['plugins']['get']('TrackChangesEditing');_0xc637eb['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xc637eb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xc637eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xc637eb['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xc637eb['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xc637eb['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xa31037,_0x16a9a9){const _0x53a323=this['editor']['plugins']['get']('TrackChangesEditing'),_0x317fa8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5ce13c=_0x16a9a9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5ce370=_0x317fa8['getColumnGroupElement'](_0x5ce13c);let _0x22d2fc=_0x5ce370?_0x317fa8['getTableColumnsWidths'](_0x5ce370):null,_0x56c927=_0x5ce13c['getAttribute']('tableWidth')||null;const _0x5c9c59=_0x16a9a9['tableWidth']||_0x56c927,_0x2a9b42=_0x16a9a9['columnWidths']||_0x22d2fc,_0x1d459a=this['editor']['plugins']['get']('Users')['me'];for(const _0x338b52 of _0x53a323['getSuggestions']()){const _0x21d160=_0x338b52['getContainedElement']();if('resizeTable'===_0x338b52['subType']&&_0x21d160===_0x5ce13c){_0x338b52['author']!==_0x1d459a&&_0x338b52['discard']();const _0xffb3f2=_0x338b52['data']['commandParams'];_0x56c927=_0xffb3f2[0x0]['tableWidth'],_0x22d2fc=_0xffb3f2[0x0]['columnWidths'];break;}}_0xa31037({'table':_0x5ce13c,'tableWidth':_0x5c9c59,'columnWidths':_0x2a9b42}),_0x53a323['markBlockFormat'](_0x5ce13c,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x56c927,'columnWidths':_0x22d2fc}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x2f2d7a){if('formatBlock'!=_0x2f2d7a['type']&&'formatInline'!=_0x2f2d7a['type'])return;const {data:_0x28e9b1}=_0x2f2d7a;if(_0x28e9b1&&'resizeTable'===_0x28e9b1['formatGroupId']){const _0x4006c0='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4006c0)};}}}class xt extends _0x2c25bf{['afterInit'](){const _0x29bb8b=this['editor'];_0x29bb8b['plugins']['has']('Template')&&_0x29bb8b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2c25bf{['afterInit'](){const _0x525c16=this['editor'];if(!_0x525c16['commands']['get']('insertTableOfContents'))return;_0x525c16['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x42a6de=_0x525c16['plugins']['get']('TrackChangesEditing'),_0x2822cc=_0x525c16['locale'];_0x42a6de['descriptionFactory']['registerElementLabel']('tableOfContents',_0x508e8c=>o(_0x2822cc,'ELEMENT_TABLE_OF_CONTENTS',_0x508e8c));}}class Rt extends _0x2c25bf{['afterInit'](){const _0x45f9bc=this['editor'];if(!_0x45f9bc['plugins']['has']('Title'))return;const _0x2daff4=_0x45f9bc['plugins']['get']('TrackChangesEditing');_0x2daff4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x45f9bc['locale'],'ELEMENT_TITLE')),_0x45f9bc['model']['document']['registerPostFixer'](_0x4e19b1=>{let _0x34e965=!0x1;const _0x3c6cbe=Array['from'](_0x45f9bc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x374ea9,data:_0x189585}of _0x3c6cbe){const {group:_0x7b1022}=_0x2daff4['_splitMarkerName'](_0x374ea9);if('suggestion'!==_0x7b1022||!_0x189585['newRange'])continue;const _0x124f3c=_0x189585['newRange'],_0x44c481=_0x124f3c['end']['nodeBefore'];if(!_0x44c481||!_0x44c481['is']('element','title-content'))continue;if(!_0x124f3c['start']['isTouching'](_0x124f3c['end']))continue;const _0x7b755e=_0x45f9bc['model']['schema']['getNearestSelectionRange'](_0x124f3c['end'],'forward');if(_0x7b755e&&_0x7b755e['isCollapsed']){const _0x2fd508=_0x4e19b1['createRange'](_0x124f3c['start'],_0x7b755e['start']);_0x2fd508['isEqual'](_0x124f3c)||(_0x4e19b1['updateMarker'](_0x374ea9,{'range':_0x2fd508}),_0x34e965=!0x0);}_0x34e965||(_0x4e19b1['removeMarker'](_0x374ea9),_0x34e965=!0x0);}return _0x34e965;});}}class Tt extends _0x2c25bf{['afterInit'](){const _0x45e744=this['editor'],_0x25a3fe=_0x45e744['plugins']['get']('TrackChangesEditing');_0x45e744['plugins']['has']('Uploadcare')&&(_0x25a3fe['enableCommand']('uploadcare'),_0x45e744['plugins']['has']('UploadcareImageEdit')&&(_0x25a3fe['enableCommand']('uploadcareImageEdit'),_0x25a3fe['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x25a3fe['descriptionFactory']['registerDescriptionCallback'](_0x208d01=>{if('attribute'!=_0x208d01['type'])return;const {data:_0x5b36f3}=_0x208d01;return _0x5b36f3&&'uploadcareImageId'==_0x5b36f3['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x2c25bf{['afterInit'](){const _0x224009=this['editor'],_0x4530d7=_0x224009['plugins']['get']('TrackChangesEditing');_0x224009['plugins']['has']('UndoEditing')&&(_0x4530d7['enableCommand']('undo'),_0x4530d7['enableCommand']('redo'));}}class Ut extends _0x2c25bf{static get['requires'](){return[Nt];}['afterInit'](){const _0x5b6432=this['editor'];if(!_0x5b6432['plugins']['has']('TableCaptionEditing'))return;_0x5b6432['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x2c25bf{['tableProperties'];['tableCellProperties'];constructor(_0x4df384){super(_0x4df384),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x4df384['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 _0x3a3d31=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x38305b of this['tableProperties'])_0x3a3d31['enableCommand'](_0x38305b,(_0x2dbbd9,_0x1dbe0d)=>{const _0x1d28e4=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x38305b,[_0x1d28e4],this['tableProperties'],'tableProperties',_0x2dbbd9,_0x1dbe0d);});_0x3a3d31['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3a3d31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a3d31['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x336d51,_0x3950f2)=>this['handleDiscardAction'](this['tableProperties'],_0x336d51,_0x3950f2)),_0x3a3d31['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x56ef01 of this['tableCellProperties'])this['editor']['commands']['get'](_0x56ef01)&&_0x3a3d31['enableCommand'](_0x56ef01,(_0x2b0d4d,_0x372f42)=>{const _0x3ac3ec=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x56ef01,_0x3ac3ec,this['tableCellProperties'],'tableCellProperties',_0x2b0d4d,_0x372f42);});_0x3a3d31['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3a3d31['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3a3d31['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x16f075,_0x437308)=>this['handleDiscardAction'](this['tableCellProperties'],_0x16f075,_0x437308)),_0x3a3d31['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x3a3d31['registerBlockAttribute']('tableCellType'),_0x3a3d31['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x3a3d31['descriptionFactory']['registerDescriptionCallback'](_0x11b7c0=>this['handleSuggestionDescription'](_0x11b7c0)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x435b09,_0x9a80b4,_0x1e7f66,_0x422746,_0x13080b,_0x4f098c){const _0x4eff8c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4f098c['batch'],()=>{for(const _0x251fa2 of _0x9a80b4){if(this['_getSuggestion'](_0x251fa2,_0x422746))_0x13080b(_0x4f098c);else{const _0x1834e7={};for(const _0x4fcb94 of _0x1e7f66){const _0x4d18e1=_0x251fa2['getAttribute'](_0x4fcb94);void 0x0!==_0x4d18e1&&(_0x1834e7[_0x4fcb94]=_0x4d18e1);}_0x13080b(_0x4f098c),_0x4eff8c['markBlockFormat'](_0x251fa2,{'commandParams':[_0x1834e7]},[],_0x422746);}}});}['handleDiscardAction'](_0x4f0a29,_0xf7abf,_0x506e9f){const _0x5b5bfd=_0xf7abf[0x0]['start']['nodeAfter'],_0x4a76c8=_0x506e9f['commandParams'][0x0];this['editor']['model']['change'](_0x4374a1=>{for(const _0x1032dc of _0x4f0a29)void 0x0!==_0x4a76c8[_0x1032dc]?_0x4374a1['setAttribute'](_0x1032dc,_0x4a76c8[_0x1032dc],_0x5b5bfd):_0x4374a1['removeAttribute'](_0x1032dc,_0x5b5bfd);});}['handleSuggestionDescription'](_0x14ac48){if(_0x14ac48['data'])switch(_0x14ac48['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'](_0x40fe4d,_0x1e3d6f){const _0x328311=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4ef88e of _0x328311['getSuggestions']({'skipNotAttached':!0x0})){const _0x5e0542=_0x4ef88e['getContainedElement']();if(_0x4ef88e['subType']===_0x1e3d6f&&_0x5e0542===_0x40fe4d)return _0x4ef88e;}return null;}['_registerTablePropertiesAttributes'](){const _0x48385d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21bdb3=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x39f5fe of _0x21bdb3){const _0x53b0b6=_0x39f5fe['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x48385d['descriptionFactory']['registerAttributeLabel'](_0x39f5fe,o(this['editor']['locale'],'FORMAT_'+_0x53b0b6));}}}class Ft extends _0x2c25bf{['afterInit'](){const _0x39b16a=this['editor'];if(!_0x39b16a['plugins']['has']('LineHeight'))return;const _0x5902f7=_0x39b16a['plugins']['get']('TrackChangesEditing'),_0x12c260=_0x39b16a['locale'];_0x5902f7['enableDefaultAttributesIntegration']('lineHeight'),_0x5902f7['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x12c260,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x2c25bf{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x4059bd,_0x3d5853,_0x10e8f9,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3f74b1){super(_0x3f74b1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5aabf1,_0x5c47d2,_0x17aef0,_0x223814)=>{this['_model']['change'](()=>{for(const _0x1aa399 of[..._0x223814,..._0x17aef0])this['_model']['markers']['has'](_0x1aa399)&&_0x3f74b1['editing']['reconvertMarker'](_0x1aa399);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3f74b1['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3f74b1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3f74b1['config']['get']('trackChanges.trackFormatChanges'),_0x3f74b1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3f74b1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x3f74b1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x2e01ed=this['editor'];_0x2e01ed['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x553bc2,{writer:_0x27b1ca})=>{let _0x11258b='suggestion:'+_0x553bc2['getAttribute']('suggestion-type')+':'+_0x553bc2['getAttribute']('id');return _0x553bc2['getAttribute']('marker-count')&&(_0x11258b+=':'+_0x553bc2['getAttribute']('marker-count')),_0x27b1ca['createElement']('$marker',{'data-name':_0x11258b});}}),_0x2e01ed['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2e01ed['model']['document']['registerPostFixer'](_0x41627b=>{let _0xba3dcb=!0x1;const _0x19e9a8=Array['from'](_0x2e01ed['model']['document']['differ']['getChangedMarkers']()),_0x4dc9ba=new Set();for(const {name:_0x4f98e7,data:_0x476269}of _0x19e9a8){const {group:_0x2995ba,type:_0x14bb96,subType:_0x3fa3c7,id:_0x48cd9f}=this['_splitMarkerName'](_0x4f98e7);if('suggestion'!==_0x2995ba)continue;const _0x43ad87=_0x3fa3c7?'suggestion:'+_0x14bb96+':'+_0x3fa3c7+':'+_0x48cd9f:'suggestion:'+_0x14bb96+':'+_0x48cd9f,_0x58e84a=_0x2e01ed['model']['markers']['getMarkersGroup'](_0x43ad87),_0x3ff1eb=_0x2e01ed['model']['markers']['get'](_0x4f98e7),_0x3363ee=this['_suggestions']['get'](_0x48cd9f);if(null!=_0x476269['newRange']){'formatInline'==_0x14bb96&&(_0xba3dcb=_0xba3dcb||Wt(_0x476269['newRange'],_0x4f98e7,_0x41627b,_0x2e01ed['model']['schema']));const _0x186e2b='attribute'==_0x14bb96&&this['_isBlockAttribute'](_0x3fa3c7['split']('|')[0x0]),_0xf59d9='attribute'==_0x14bb96&&this['_isInlineAttribute'](_0x3fa3c7['split']('|')[0x0]);if(_0x476269['newRange']['isCollapsed']||'$graveyard'==_0x476269['newRange']['root']['rootName']||'formatBlock'==_0x14bb96&&!Qt(_0x476269['newRange'])||_0x186e2b&&!Qt(_0x476269['newRange'])||_0xf59d9&&Xt(_0x476269['newRange'])||'deletion'==_0x14bb96&&Xt(_0x476269['newRange'])||_0x3ff1eb&&Yt(_0x3ff1eb,_0x58e84a))_0x41627b['removeMarker'](_0x4f98e7),_0xba3dcb=!0x0;else{if(!_0x3363ee||!_0x3363ee['isInContent'])continue;if(_0x476269['newRange']&&_0x476269['oldRange']&&_0x476269['newRange']['isEqual'](_0x476269['oldRange']))continue;_0x4dc9ba['add'](_0x3363ee);}}}return _0x4dc9ba['size']>0x0&&(_0xba3dcb=!!this['_joinWithAdjacentSuggestions'](_0x4dc9ba)||_0xba3dcb),_0xba3dcb;}),_0x2e01ed['model']['document']['registerPostFixer'](_0x321bfe=>{let _0x351cb1=!0x1;for(const _0x29f3f9 of _0x2e01ed['model']['document']['differ']['getChanges']())if('insert'==_0x29f3f9['type'])for(const _0x28078e of this['_suggestions']['values']()){if(_0x28078e['isMultiRange']||!_0x28078e['isInContent'])continue;const _0x19cb58='formatBlock'==_0x28078e['type'],_0x269f45=this['_getAttributeKey'](_0x28078e),_0x4174f0=_0x269f45&&this['_isBlockAttribute'](_0x269f45);if(!_0x19cb58&&!_0x4174f0)continue;const _0x75134b=_0x28078e['getFirstRange']();if(_0x75134b['start']['parent']!=_0x75134b['end']['parent']&&!_0x75134b['end']['isAtEnd']){const _0x400afe=_0x2e01ed['model']['createPositionAt'](_0x75134b['start']['nodeAfter'],'end'),_0x5d97e1=_0x2e01ed['model']['createRange'](_0x75134b['start'],_0x400afe);_0x321bfe['updateMarker'](_0x28078e['getFirstMarker'](),{'range':_0x5d97e1}),_0x351cb1=!0x0;}}return _0x351cb1;}),_0x2e01ed['model']['document']['registerPostFixer'](_0x455a8a=>this['_processAttributeChanges'](_0x455a8a)),_0x2e01ed['model']['document']['registerPostFixer'](_0x5483e6=>!_0x5483e6['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5483e6)),_0x2e01ed['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2e01ed['model']['document']['on']('change:data',(_0x44405c,_0x7d05af)=>{if(!_0x7d05af['isLocal']||_0x7d05af['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x280d96=_0x2e01ed['model']['document']['differ']['getChanges']();if(0x0==_0x280d96['length'])return;const _0x489fc0=[],_0x5bfffd=_0x280d96['filter'](_0x61abe8=>'attribute'==_0x61abe8['type']),_0x32fc69=_0x280d96['filter'](_0x5d2fd7=>'insert'==_0x5d2fd7['type']&&'$text'!=_0x5d2fd7['name']);for(const _0x2ba7da of _0x5bfffd)this['_isRegisteredAttribute'](_0x2ba7da['attributeKey'])&&_0x489fc0['push']({'key':_0x2ba7da['attributeKey'],'newValue':_0x2ba7da['attributeNewValue'],'oldValue':_0x2ba7da['attributeOldValue'],'range':Zt(_0x2ba7da['range'],_0x2e01ed['model'])});for(const _0x304f80 of _0x32fc69){if('rename'!=_0x304f80['action']&&'refresh'!=_0x304f80['action'])continue;const _0x5594ad=tn(_0x304f80['position']['nodeAfter'],_0x2e01ed['model']),_0x1d8aae=_0x304f80['before'];'rename'==_0x304f80['action']&&_0x489fc0['push']({'key':m,'newValue':_0x304f80['name'],'oldValue':_0x1d8aae['name'],'range':_0x5594ad});for(const [_0x1d8f55,_0x262ac9]of _0x1d8aae['attributes']){if(!this['_isRegisteredAttribute'](_0x1d8f55))continue;const _0x23a81d=_0x304f80['attributes']['get'](_0x1d8f55);_0x262ac9!==_0x23a81d&&_0x489fc0['push']({'key':_0x1d8f55,'newValue':_0x23a81d,'oldValue':_0x262ac9,'range':_0x5594ad});}for(const [_0x358032,_0x29c862]of _0x304f80['attributes'])this['_isRegisteredAttribute'](_0x358032)&&(_0x1d8aae['attributes']['has'](_0x358032)||_0x489fc0['push']({'key':_0x358032,'newValue':_0x29c862,'oldValue':null,'range':_0x5594ad}));}0x0!=_0x489fc0['length']&&_0x2e01ed['model']['enqueueChange'](_0x7d05af,_0x43d136=>{const _0x5b2476=_0x2aca75();for(const {range:_0x3f5a54,key:_0x1ba54b,oldValue:_0x369e1d,newValue:_0x580808}of _0x489fc0)this['markAttributeChange'](_0x3f5a54,_0x1ba54b,_0x369e1d,_0x580808,{'groupId':_0x5b2476});this['_reduceExistingSuggestions'](_0x43d136,_0x489fc0);});},{'priority':'lowest'}),_0x2e01ed['model']['markers']['on']('update:suggestion',(_0x4a1e3b,_0x2db3c5,_0x5404e8)=>{if(null==_0x5404e8){const {id:_0x1f0d7b}=this['_splitMarkerName'](_0x2db3c5['name']),_0x5485cf=this['_suggestions']['get'](_0x1f0d7b);_0x5485cf&&_0x5485cf['addMarkerName'](_0x2db3c5['name']);}}),_0x2e01ed['model']['document']['on']('change:data',()=>{const _0x22f2ba=Array['from'](_0x2e01ed['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3358f3=>'suggestion'===this['_splitMarkerName'](_0x3358f3['name'])['group']);if(0x0===_0x22f2ba['length'])return;_0x22f2ba['sort']((_0x2aca26,_0x19b070)=>{const _0xd65fed=_0x2aca26['data']['oldRange'],_0x1e9628=_0x19b070['data']['oldRange'];return null===_0xd65fed&&null===_0x1e9628?0x0:null===_0xd65fed&&null!==_0x1e9628?-0x1:null!==_0xd65fed&&null===_0x1e9628?0x1:_0xd65fed['start']['isBefore'](_0x1e9628['start'])?-0x1:0x1;});const _0xff89c5=new Set(),_0xac7d7a=new Set();for(const {name:_0x2312e8,data:_0x32bba5}of _0x22f2ba){const {id:_0x43611f}=this['_splitMarkerName'](_0x2312e8);if(null===_0x32bba5['oldRange']){const _0x37ded7=this['_handleNewSuggestionMarker'](_0x2312e8);_0xac7d7a['add'](_0x37ded7);}else{const _0x1a5a5a=this['_suggestions']['get'](_0x43611f);null!==_0x32bba5['newRange']||_0x1a5a5a['isInContent']?(_0xff89c5['add'](_0x1a5a5a['head']),_0xac7d7a['add'](_0x1a5a5a)):this['_removeSuggestion'](_0x1a5a5a);}}_0xac7d7a['size']>0x0&&this['_refreshSuggestionsChain'](_0xac7d7a);for(const _0x55e35f of _0xff89c5)this['fire']('suggestionChanged',_0x55e35f);}),_0x2e01ed['model']['on']('applyOperation',(_0x2dad33,_0x21e98e)=>{const _0x66afb=_0x21e98e[0x0];if(!this['_suggestions']['size'])return;if(!_0x66afb['isDocumentOperation'])return;if(_0x66afb['batch']['isUndo']||!_0x66afb['batch']['isLocal'])return;let _0x4646a5,_0x4c6442;switch(_0x66afb['type']){case'insert':_0x4646a5=_0x2e01ed['model']['createPositionAt'](_0x66afb['position']),_0x4c6442=_0x4646a5['getShiftedBy'](_0x66afb['howMany']);break;case'split':_0x4646a5=_0x2e01ed['model']['createPositionAt'](_0x66afb['splitPosition']),_0x4c6442=_0x2e01ed['model']['createPositionAt'](_0x66afb['moveTargetPosition']);break;case'move':_0x4646a5=_0x2e01ed['model']['createPositionAt'](_0x66afb['targetPosition']),_0x4c6442=_0x4646a5['getShiftedBy'](_0x66afb['howMany']);break;default:return;}const _0x15f7f3=_0x2e01ed['model']['createRange'](_0x4646a5,_0x4c6442);_0x2e01ed['model']['change'](()=>{for(const {suggestion:_0x40cb39,meta:_0x126dd6}of this['_findSuggestions'](_0x15f7f3)){if(_0x40cb39['isMultiRange'])continue;if('formatInline'==_0x40cb39['type'])continue;const _0x200f83=this['_getAttributeKey'](_0x40cb39);if(_0x200f83&&this['_isBlockAttribute'](_0x200f83)&&'split'!=_0x66afb['type'])continue;const _0x517805=_0x40cb39['data']&&_0x40cb39['data']['multipleBlocks'];('formatBlock'!=_0x40cb39['type']||'split'==_0x66afb['type']&&!_0x517805)&&(_0x126dd6['containsRangeInObject']||'insertion'==_0x40cb39['type']&&_0x126dd6['isOwn']||_0x40cb39['getFirstRange']()['containsRange'](_0x15f7f3)&&this['_breakSuggestionMarker'](_0x40cb39,_0x4646a5,_0x4c6442));}});},{'priority':'lowest'}),_0x2e01ed['model']['on']('deleteContent',(_0x52ba49,_0x2d1653)=>{const _0x2372ec=_0x2d1653[0x0],_0x608fd3=_0x2d1653[0x1];if(_0x608fd3&&_0x608fd3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2372ec['isCollapsed'])return;const _0x5a8d69=_0x2e01ed['model']['schema'],{start:_0x3cd632,end:_0x525b2b}=_0x2372ec['getFirstRange'](),_0xfc0bf1=_0x3cd632['nodeAfter']&&_0x5a8d69['isLimit'](_0x3cd632['nodeAfter'])?null:_0x5a8d69['getNearestSelectionRange'](_0x3cd632,'forward'),_0x3cb169=_0x525b2b['nodeBefore']&&_0x5a8d69['isLimit'](_0x525b2b['nodeBefore'])?null:_0x5a8d69['getNearestSelectionRange'](_0x525b2b,'backward'),_0x31e306=_0x2e01ed['model']['createRange'](_0xfc0bf1?_0xfc0bf1['start']:_0x3cd632,_0x3cb169?_0x3cb169['end']:_0x525b2b);_0x2e01ed['model']['change'](_0x30af69=>{this['markDeletion'](_0x31e306);const _0x1a74c7=_0x2e01ed['model']['schema']['getNearestSelectionRange'](_0x31e306['start']);_0x2372ec['is']('documentSelection')?_0x30af69['setSelection'](_0x1a74c7):_0x2372ec['setTo'](_0x1a74c7);}),_0x52ba49['stop']();},{'priority':_0x481aea['normal']+0xa}),_0x2e01ed['model']['on']('insertContent',(_0x36e4b5,_0x195f9c)=>{const _0x432815=_0x195f9c[_0x195f9c['length']-0x1];_0x432815&&_0x432815['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2e01ed['model']['change'](()=>{let _0x446a91=_0x2e01ed['model']['insertContent'](_0x195f9c[0x0],_0x195f9c[0x1],_0x195f9c[0x2],{'forceDefaultExecution':!0x0});if(!_0x446a91)return;_0x36e4b5['return']=_0x446a91['clone']();const _0x111a94=_0x446a91['end']['nodeBefore'],_0x126f8a=_0x2e01ed['model']['schema'];_0x111a94&&_0x126f8a['isBlock'](_0x111a94)&&!_0x126f8a['isObject'](_0x111a94)&&(_0x446a91=_0x2e01ed['model']['createRange'](_0x446a91['start'],_0x2e01ed['model']['createPositionAt'](_0x111a94,'end'))),this['markInsertion'](_0x446a91);}),_0x36e4b5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2efa10=new v(_0x2e01ed,this['_suggestions']);_0x2e01ed['commands']['add']('acceptSuggestion',_0x2efa10),this['enableCommand']('acceptSuggestion');const _0xc0bc32=new D(_0x2e01ed,this['_suggestions']);_0x2e01ed['commands']['add']('discardSuggestion',_0xc0bc32),this['enableCommand']('discardSuggestion'),_0x2e01ed['commands']['add']('acceptAllSuggestions',new B(_0x2e01ed,_0x2efa10,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2e01ed['commands']['add']('discardAllSuggestions',new B(_0x2e01ed,_0xc0bc32,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2e01ed['commands']['add']('acceptSelectedSuggestions',new O(_0x2e01ed,_0x2efa10,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2e01ed['commands']['add']('discardSelectedSuggestions',new O(_0x2e01ed,_0xc0bc32,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x23421d=_0x2e01ed['plugins']['get']('CommentsRepository');this['listenTo'](_0x23421d,'addComment',(_0x354246,{threadId:_0x2cc9fb})=>{const _0x2ab408=this['_suggestions']['get'](_0x2cc9fb);_0x2ab408&&_0x2ab408['commentThread']&&0x1===_0x2ab408['commentThread']['length']&&this['_updateSuggestionData'](_0x2cc9fb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x23421d,'removeComment',(_0x11b0e1,{threadId:_0x42d17f})=>{const _0x488102=this['_suggestions']['get'](_0x42d17f);_0x488102&&_0x488102['commentThread']&&!_0x488102['commentThread']['length']&&this['_updateSuggestionData'](_0x42d17f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x4b577f){const _0x5a6df0=_0x433799([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]),_0x17221b=0x3d8d0df,_0x3f0c4e=0x3dfafcf^_0x17221b,_0x34fc1f=window[_0x433799([0x44,0x61,0x74,0x65])][_0x433799([0x6e,0x6f,0x77])](),_0x3621df=_0x4b577f[_0x433799([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x293de0=new window[(_0x433799([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3018ff=>{_0x3621df[_0x433799([0x6f,0x6e,0x63,0x65])](_0x433799([0x72,0x65,0x61,0x64,0x79]),_0x3018ff);}),_0x4baf22={[_0x433799([0x6b,0x74,0x79])]:_0x433799([0x45,0x43]),[_0x433799([0x75,0x73,0x65])]:_0x433799([0x73,0x69,0x67]),[_0x433799([0x63,0x72,0x76])]:_0x433799([0x50,0x2d,0x32,0x35,0x36]),[_0x433799([0x78])]:_0x433799([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]),[_0x433799([0x79])]:_0x433799([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]),[_0x433799([0x61,0x6c,0x67])]:_0x433799([0x45,0x53,0x32,0x35,0x36])},_0x31e824=_0x3621df[_0x433799([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x433799([0x67,0x65,0x74])](_0x433799([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e6f03(){let _0x47b639,_0x3db2e1=null,_0x36d85f=null;try{if(_0x31e824==_0x433799([0x47,0x50,0x4c]))return _0x433799([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x47b639=_0x5d2783(),!_0x47b639)return _0x433799([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x47b639[_0x433799([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36d85f=_0x433fbe(_0x47b639[_0x433799([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x47b639[_0x433799([0x6a,0x74,0x69])])),await _0xf606e6()?_0x374d83()?_0x409bbe()?_0x433799([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x370c16()?(_0x47b639[_0x433799([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x433799([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3db2e1=_0x11bfcb(_0x433799([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x474600()):_0x433799([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x433799([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x433799([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x433799([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x409bbe(){const _0x214bc0=[_0x433799([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x433799([0x74,0x72,0x69,0x61,0x6c])][_0x433799([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47b639[_0x433799([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34fc1f/0x3e8:0xe10*_0x3f0c4e;return _0x47b639[_0x433799([0x65,0x78,0x70])]<_0x214bc0;}function _0x374d83(){const _0x2322fc=_0x47b639[_0x433799([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2322fc)return!0x1;if(_0x2322fc[_0x433799([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x433799([0x2a])))return!0x0;if(_0x2322fc[_0x433799([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x433799([0x54,0x43])))return!0x0;if(_0x2322fc[_0x433799([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x433799([0x52,0x54,0x43]))){if(_0x35ee42())return!0x0;if(_0x4f7725()||_0x594faf())return!0x0;}return!0x1;}function _0x370c16(){const _0x18d806=_0x47b639[_0x433799([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18d806||0x0==_0x18d806[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14beaf}=new URL(window[_0x433799([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18d806[_0x433799([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14beaf))return!0x0;const _0x213da9=_0x14beaf[_0x433799([0x73,0x70,0x6c,0x69,0x74])](_0x433799([0x2e]));return _0x18d806[_0x433799([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1ed3d4=>_0x1ed3d4[_0x433799([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x433799([0x2a])))[_0x433799([0x6d,0x61,0x70])](_0x3be169=>_0x3be169[_0x433799([0x73,0x70,0x6c,0x69,0x74])](_0x433799([0x2e])))[_0x433799([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1c9fd9=>_0x1c9fd9[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x213da9[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x433799([0x6d,0x61,0x70])](_0x3a16ae=>Array(_0x213da9[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a16ae[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x433799([0x66,0x69,0x6c,0x6c])](_0x3a16ae[0x0]===_0x433799([0x2a])?_0x433799([0x2a]):'')[_0x433799([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a16ae))[_0x433799([0x73,0x6f,0x6d,0x65])](_0x57612f=>_0x213da9[_0x433799([0x65,0x76,0x65,0x72,0x79])]((_0x42ffbe,_0x12ef61)=>_0x57612f[_0x12ef61]===_0x42ffbe||_0x57612f[_0x12ef61]===_0x433799([0x2a])));}function _0x474600(){return _0x3db2e1&&_0x36d85f?new window[(_0x433799([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42416c,_0x39a12c)=>{_0x3db2e1[_0x433799([0x74,0x68,0x65,0x6e])](_0x42416c,_0x39a12c),_0x36d85f[_0x433799([0x74,0x68,0x65,0x6e])](_0x41ec9c=>{_0x41ec9c!=_0x433799([0x56,0x61,0x6c,0x69,0x64])&&_0x42416c(_0x41ec9c);},_0x39a12c);}):_0x3db2e1||_0x36d85f||_0x433799([0x56,0x61,0x6c,0x69,0x64]);}}function _0x433fbe(_0x5de417,_0x597759){return new window[(_0x433799([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17bb3a=>{if(_0x5e8d1b())return _0x17bb3a(_0x433799([0x56,0x61,0x6c,0x69,0x64]));_0x2c6e4a(),_0x3621df[_0x433799([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x433799([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xb54a5d=!0x1;const _0x7fa3f9=_0x2aca75();function _0x4e34a1(_0x5be76f){return!!_0x5be76f&&(typeof _0x5be76f===_0x433799([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5be76f===_0x433799([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5be76f[_0x433799([0x74,0x68,0x65,0x6e])]===_0x433799([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5be76f[_0x433799([0x63,0x61,0x74,0x63,0x68])]===_0x433799([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x57a952(_0x670857){_0x5d38f5(_0x670857)[_0x433799([0x74,0x68,0x65,0x6e])](_0x29b6db=>{if(!_0x29b6db||_0x29b6db[_0x433799([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x433799([0x6f,0x6b]))return _0x433799([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x439957(_0x431363(_0x7fa3f9+_0x597759))!=_0x29b6db[_0x433799([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x433799([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x433799([0x56,0x61,0x6c,0x69,0x64]);})[_0x433799([0x74,0x68,0x65,0x6e])](_0x1e007c=>(_0x122ae7(),_0x1e007c),()=>{const _0x1af9b4=_0x14190b();return null==_0x1af9b4?(_0x122ae7(),_0x433799([0x56,0x61,0x6c,0x69,0x64])):_0x433799(_0x34fc1f-_0x1af9b4>(0x27d454df^_0x17221b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x433799([0x74,0x68,0x65,0x6e])](_0x17bb3a)[_0x433799([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17bb3a(_0x433799([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x7df897=0x3ee3e5f^_0x17221b;function _0x122ae7(){const _0xd7a8c1=_0x433799([0x6c,0x6c,0x63,0x74,0x2d])+_0x439957(_0x431363(_0x5de417)),_0x320fb3=_0x571049(_0x439957(window[_0x433799([0x4d,0x61,0x74,0x68])][_0x433799([0x63,0x65,0x69,0x6c])](_0x34fc1f/_0x7df897)));window[_0x433799([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x433799([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd7a8c1,_0x320fb3);}function _0x14190b(){const _0x3d3aa7=_0x433799([0x6c,0x6c,0x63,0x74,0x2d])+_0x439957(_0x431363(_0x5de417)),_0x5e0db6=window[_0x433799([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x433799([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d3aa7);return _0x5e0db6?window[_0x433799([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x571049(_0x5e0db6),0x10)*_0x7df897:null;}function _0x5d38f5(_0x1111ff){return new window[(_0x433799([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c5ce7,_0x1a5fbd)=>{_0x1111ff[_0x433799([0x74,0x68,0x65,0x6e])](_0x1c5ce7,_0x1a5fbd),window[_0x433799([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a5fbd,0x3d9041f^_0x17221b);});}}_0x3621df[_0x433799([0x6f,0x6e])](_0x433799([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x197097,_0x4546ca)=>{if(_0x4546ca[0x0]!=_0x5de417)return _0x17bb3a(_0x433799([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4546ca[0x1]={..._0x4546ca[0x1],[_0x433799([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x7fa3f9};},{[_0x433799([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x433799([0x68,0x69,0x67,0x68])}),_0x3621df[_0x433799([0x6f,0x6e])](_0x433799([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b38fc=>{_0x4e34a1(_0x1b38fc[_0x433799([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xb54a5d=!0x0,_0x57a952(_0x1b38fc[_0x433799([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x433799([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x433799([0x6c,0x6f,0x77])}),_0x293de0[_0x433799([0x74,0x68,0x65,0x6e])](()=>{_0xb54a5d||_0x17bb3a(_0x433799([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5e8d1b(){return _0x3621df[_0x433799([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x433799([0x76,0x69,0x65,0x77])][_0x433799([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x433799([0x61,0x75,0x74,0x6f]);}function _0x2c6e4a(){_0x3621df[_0x433799([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x433799([0x76,0x69,0x65,0x77])][_0x433799([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x433799([0x61,0x75,0x74,0x6f]);}}function _0x11bfcb(_0x16618d){const _0x4c5650=[new window[(_0x433799([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12fe04=>setTimeout(_0x12fe04,0x3d1ee13^_0x17221b)),_0x293de0[_0x433799([0x74,0x68,0x65,0x6e])](()=>new window[(_0x433799([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a0db4=>{let _0x5230b5=0x0;_0x3621df[_0x433799([0x6d,0x6f,0x64,0x65,0x6c])][_0x433799([0x6f,0x6e])](_0x433799([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x11528f,_0x573455)=>{_0x573455[0x0][_0x433799([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5230b5++,_0x5230b5==(0x3d8d537^_0x17221b)&&(_0x1a0db4(),_0x11528f[_0x433799([0x6f,0x66,0x66])]());});}))];return window[_0x433799([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x433799([0x72,0x61,0x63,0x65])](_0x4c5650)[_0x433799([0x74,0x68,0x65,0x6e])](()=>_0x16618d);}async function _0x5b2630(){await _0x293de0,_0x3621df[_0x433799([0x6d,0x6f,0x64,0x65,0x6c])][_0x433799([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x29531c,_0x3621df[_0x433799([0x6d,0x6f,0x64,0x65,0x6c])][_0x433799([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x29531c,_0x3621df[_0x433799([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x433799([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35ee42(){return _0x5dec91(_0x433799([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1aaa27(_0x433799([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x433799([0x73,0x74,0x61,0x74,0x65])]==_0x433799([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4f7725(){return _0x5dec91(_0x433799([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 _0x594faf(){return _0x5dec91(_0x433799([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x475bdd(_0x5764a7){const _0x571a54=_0x5fd921();_0x3621df[_0x571a54]=_0x433799([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5764a7,_0x5764a7!=_0x433799([0x56,0x61,0x6c,0x69,0x64])&&_0x5b2630();}function _0x5fd921(){const _0x187bf0=window[_0x433799([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x433799([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x433799([0x6e,0x6f,0x77])]())[_0x433799([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x433799([0x2e]),'');let _0xcef782=_0x433799([0x52]);for(let _0x40da6f=0x0;_0x40da6f<_0x187bf0[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40da6f+=0x2){let _0x3c77d3=window[_0x433799([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x187bf0[_0x433799([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x40da6f,_0x40da6f+0x2));_0x3c77d3>=_0x5a6df0[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3c77d3-=_0x5a6df0[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcef782+=_0x5a6df0[_0x3c77d3];}return _0xcef782;}function _0x5d2783(){const _0x1deaaf=_0x31e824[_0x433799([0x73,0x70,0x6c,0x69,0x74])](_0x433799([0x2e]));if(0x3!=_0x1deaaf[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11000a(_0x1deaaf[0x1]);function _0x11000a(_0x36f9e5){const _0x452b57=_0x119982(_0x36f9e5);return _0x452b57&&_0x99be7f()?_0x452b57:null;function _0x99be7f(){const _0xc5597=_0x452b57[_0x433799([0x6a,0x74,0x69])],_0x345dec=window[_0x433799([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc5597[_0x433799([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc5597[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x580434={..._0x452b57,[_0x433799([0x6a,0x74,0x69])]:_0xc5597[_0x433799([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc5597[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x580434[_0x433799([0x76,0x63])],_0x431363(_0x580434)==_0x345dec;}}}async function _0xf606e6(){let _0x5100b9=!0x0;try{const _0x5424d2=_0x31e824[_0x433799([0x73,0x70,0x6c,0x69,0x74])](_0x433799([0x2e])),[_0x26921c,_0x3d5eae,_0x4d8bf2]=_0x5424d2;return _0x10e31c(_0x26921c),await _0x15abf9(_0x26921c,_0x3d5eae,_0x4d8bf2),_0x5100b9;}catch{return!0x1;}function _0x10e31c(_0x9bd00b){const _0x500c57=_0x119982(_0x9bd00b);_0x500c57&&_0x500c57[_0x433799([0x61,0x6c,0x67])]==_0x433799([0x45,0x53,0x32,0x35,0x36])||(_0x5100b9=!0x1);}async function _0x15abf9(_0x242d31,_0x4bbd6d,_0x51893f){const _0x1d50b9=window[_0x433799([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x433799([0x66,0x72,0x6f,0x6d])](_0x37830d(_0x51893f),_0x437975=>_0x437975[_0x433799([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x59ff3e=new window[(_0x433799([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x433799([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x242d31+_0x433799([0x2e])+_0x4bbd6d),_0x4b219d=window[_0x433799([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x433799([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b219d)return;const _0x533131=await _0x4b219d[_0x433799([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x433799([0x6a,0x77,0x6b]),_0x4baf22,{[_0x433799([0x6e,0x61,0x6d,0x65])]:_0x433799([0x45,0x43,0x44,0x53,0x41]),[_0x433799([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x433799([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x433799([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b219d[_0x433799([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x433799([0x6e,0x61,0x6d,0x65])]:_0x433799([0x45,0x43,0x44,0x53,0x41]),[_0x433799([0x68,0x61,0x73,0x68])]:{[_0x433799([0x6e,0x61,0x6d,0x65])]:_0x433799([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x533131,_0x1d50b9,_0x59ff3e)||(_0x5100b9=!0x1);}}function _0x119982(_0x31b739){return _0x31b739[_0x433799([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x433799([0x65,0x79]))?JSON[_0x433799([0x70,0x61,0x72,0x73,0x65])](_0x37830d(_0x31b739)):null;}function _0x37830d(_0x54e3e0){return window[_0x433799([0x61,0x74,0x6f,0x62])](_0x54e3e0[_0x433799([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x433799([0x2b]))[_0x433799([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x433799([0x2f])));}function _0x431363(_0x3280c4){let _0x3134ff=0x1505;function _0x36470c(_0x1941c9){for(let _0x4e6abc=0x0;_0x4e6abc<_0x1941c9[_0x433799([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e6abc++){const _0x153bcb=_0x1941c9[_0x433799([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e6abc);_0x3134ff=(_0x3134ff<<0x5)+_0x3134ff+_0x153bcb,_0x3134ff&=_0x3134ff;}}function _0x5f3a9d(_0x53aec8){Array[_0x433799([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53aec8)?_0x53aec8[_0x433799([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5f3a9d):_0x53aec8&&typeof _0x53aec8==_0x433799([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x433799([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53aec8)[_0x433799([0x73,0x6f,0x72,0x74])]()[_0x433799([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1e3971,_0x3d1c61])=>{_0x36470c(_0x1e3971),_0x5f3a9d(_0x3d1c61);}):_0x36470c(window[_0x433799([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53aec8));}return _0x5f3a9d(_0x3280c4),_0x3134ff>>>0x0;}function _0x439957(_0x1ccdec){return _0x1ccdec[_0x433799([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x433799([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x433799([0x30]));}function _0x571049(_0x20a459){return _0x20a459[_0x433799([0x73,0x70,0x6c,0x69,0x74])]('')[_0x433799([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x433799([0x6a,0x6f,0x69,0x6e])]('');}function _0x5dec91(_0x2180c0){return _0x3621df[_0x433799([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x433799([0x68,0x61,0x73])](_0x2180c0);}function _0x1aaa27(_0x3da8bc){return _0x3621df[_0x433799([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x433799([0x67,0x65,0x74])](_0x3da8bc);}function _0x29531c(){}function _0x433799(_0x1ee9e9){return _0x1ee9e9['map'](_0x179c9c=>String['fromCharCode'](_0x179c9c))['join']('');}_0x475bdd(await _0x5e6f03());}(this);}set['adapter'](_0xe5a037){if(this['_adapter'])throw new _0x1dd383('track-changes-adapter-already-set',this);this['_adapter']=_0xe5a037;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4d473f=!0x1,toJSON:_0x545ca6=!0x1}={}){const _0x27ceb3=[];for(const _0x452101 of this['_suggestions']['values']())_0x4d473f&&!_0x452101['isInContent']||_0x27ceb3['push'](_0x452101);return _0x545ca6?_0x27ceb3['map'](_0x441cb2=>_0x441cb2['toJSON']()):_0x27ceb3;}['getSuggestion'](_0x4fc659){const _0x8d0c17=this['_suggestions']['get'](_0x4fc659);if(!_0x8d0c17)throw new _0x1dd383('track-changes-suggestion-not-found',this);return _0x8d0c17;}['hasSuggestion'](_0x3b3f42){return this['_suggestions']['has'](_0x3b3f42);}['addSuggestionData'](_0x23aa08){const {authorId:_0x2a8722,id:_0x26826a,originalSuggestionId:_0x41b4ff,attributes:_0x49c2c7}=_0x23aa08,[_0x11b51c,_0x1f6851]=_0x23aa08['type']['split'](':'),_0x15755c=this['_suggestions']['get'](_0x26826a)||this['_createSuggestion'](_0x11b51c,_0x1f6851,_0x26826a,_0x2a8722,_0x49c2c7,_0x41b4ff);if(this['_addThreadToSuggestion'](_0x15755c),this['_checkSuggestionCorrectness'](_0x15755c,_0x11b51c,_0x1f6851||null,_0x2a8722),_0x15755c['createdAt']=_0x23aa08['createdAt'],_0x15755c['_isDataLoaded']=!0x0,_0x49c2c7&&_0x49c2c7['@external']){const _0x7ad0cb=_0x49c2c7['@external'],_0x2830e1=this['_getExternalAuthor'](_0x7ad0cb['authorName']);_0x15755c['authoredAt']=_0x7ad0cb['createdAt'],_0x15755c['author']=_0x2830e1,_0x15755c['isExternal']=!0x0;}else _0x15755c['authoredAt']=_0x23aa08['createdAt'];switch(_0x23aa08['data']&&(_0x15755c['data']=_0x23aa08['data']),_0x23aa08['attributes']&&(_0x15755c['attributes']=_0x23aa08['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x15755c['_saved']=!0x0),this['_suggestionState']['get'](_0x15755c)){case'notReady':this['_suggestionState']['set'](_0x15755c,'dataReady');break;case'markerReady':_0x15755c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x15755c])),this['_refreshSuggestionsChain'](new Set([_0x15755c])),this['_suggestionState']['set'](_0x15755c,'ready'),this['fire']('suggestionLoaded',_0x15755c)):this['_suggestionState']['set'](_0x15755c,'removed');}return _0x15755c;}['acceptSuggestion'](_0x10ccec){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x569b14 of _0x10ccec['getAllAdjacentSuggestions']())_0x569b14['accept']();});});}['discardSuggestion'](_0x16ad32){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x40d2c7 of _0x16ad32['getAllAdjacentSuggestions']())_0x40d2c7['discard']();});});}['enableCommand'](_0x3eb7f5,_0x5c551a){const _0x46df81=this['editor']['commands']['get'](_0x3eb7f5);if(!_0x46df81)throw new _0x1dd383('track-changes-command-not-found',this,{'commandName':_0x3eb7f5});if(this['_enabledCommands']['has'](_0x46df81))throw new _0x1dd383('track-changes-enable-command-twice',this,{'commandName':_0x3eb7f5});this['_enabledCommands']['add'](_0x46df81),_0x5c551a&&_0x46df81['on']('execute',(_0x45e27f,_0x4edb99)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4edb99['length']>0x0&&_0x4edb99[_0x4edb99['length']-0x1]&&_0x4edb99[_0x4edb99['length']-0x1]['forceDefaultExecution']?_0x4edb99['pop']():(_0x45e27f['return']=_0x5c551a((..._0x2f2000)=>_0x46df81['execute'](..._0x2f2000,{'forceDefaultExecution':!0x0}),..._0x4edb99),_0x45e27f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x469c76){let _0x1e393c,_0x1702f8;const _0x25aa73=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1e393c=_0x469c76();}catch(_0xfba405){_0x1702f8=_0xfba405;}return _0x25aa73||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1702f8&&_0x1dd383['rethrowUnexpectedError'](_0x1702f8,this),_0x1e393c;}['markInsertion'](_0x4571a1,_0x302ff2=null,_0x5c389f={}){if(_0x4571a1['isCollapsed'])return null;const _0x19c065=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5c389f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x53a4c4,meta:_0x2b31d8}of this['_findSuggestions'](_0x4571a1,'insertion'))if(_0x2b31d8['isOwn']){if(!_0x2b31d8['isNextTo']){if(_0x2b31d8['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x53a4c4,_0x5c389f))continue;return _0x53a4c4;}if(sn(_0x53a4c4,_0x5c389f))return _0x53a4c4;this['_breakSuggestionMarker'](_0x53a4c4,_0x4571a1['start'],_0x4571a1['end']);break;}if(_0x302ff2==_0x53a4c4['subType']&&sn(_0x53a4c4,_0x5c389f)){const _0x32510b=_0x53a4c4['getFirstRange']();return _0x32510b['start']['isEqual'](_0x4571a1['end'])?this['_setSuggestionRange'](_0x53a4c4,this['_model']['createRange'](_0x4571a1['start'],_0x32510b['end'])):this['_setSuggestionRange'](_0x53a4c4,this['_model']['createRange'](_0x32510b['start'],_0x4571a1['end'])),_0x53a4c4;}}const _0x3395c1=_0x2aca75(),_0x50c020=_0x19c065['id'],_0x4813e4=_0x302ff2?'insertion:'+_0x302ff2:'insertion',_0x7947a4=this['_setSuggestionData']({'id':_0x3395c1,'type':_0x4813e4,'createdAt':new Date(),'authorId':_0x50c020,'attributes':_0x5c389f});return this['_addSuggestionMarker'](_0x4813e4,_0x3395c1,_0x50c020,_0x4571a1),_0x7947a4;}['markMultiRangeInsertion'](_0x11bc70,_0x16ab4b='multi',_0x3fb26={}){const _0x3a3f32=this['editor']['plugins']['get']('Users')['me'],_0x273696=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x16ab4b,'join');this['_trackingSessionId']&&(_0x3fb26['trackingSessionId']=this['_trackingSessionId']);for(const _0x29bfeb of this['getSuggestions']())if(_0x29bfeb['author']['id']==_0x3a3f32['id']&&'insertion'==_0x29bfeb['type']&&_0x29bfeb['subType']==_0x16ab4b&&sn(_0x29bfeb,_0x3fb26)&&(_0x273696(_0x29bfeb['getRanges'](),_0x11bc70)||_0x273696(_0x11bc70,_0x29bfeb['getRanges']()))){for(const _0x5800fc of _0x11bc70)_0x29bfeb['addRange'](_0x5800fc);return _0x29bfeb;}for(const {suggestion:_0x52e99b,meta:_0x88ab4}of this['_findSuggestions'](_0x11bc70,'insertion')){if(!_0x88ab4['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x88ab4['containsRangeInObject'])continue;if(!sn(_0x52e99b,_0x3fb26))continue;let _0x2e9504=!0x0;for(const _0x4d81cf of _0x52e99b['getRanges']())for(const _0x3ccbcd of _0x11bc70)if(!_0x4d81cf['containsRange'](_0x3ccbcd)){_0x2e9504=!0x1;break;}if(_0x2e9504)return _0x52e99b;}const _0x1fd557=_0x2aca75(),_0x576ccb=_0x3a3f32['id'],_0x24e7f1='insertion:'+_0x16ab4b,_0x237420=this['_setSuggestionData']({'id':_0x1fd557,'type':_0x24e7f1,'createdAt':new Date(),'authorId':_0x576ccb,'attributes':_0x3fb26});for(const _0xf181 of _0x11bc70)this['_addSuggestionMarker'](_0x24e7f1,_0x1fd557,_0x576ccb,_0xf181,x['getMultiRangeId']());return _0x237420;}['markInlineFormat'](_0x12df79,_0x2e672e,_0xb35563=null,_0x448aaa={}){if(_0xb35563=_0xb35563||Ht(_0x2e672e),_0x12df79['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x448aaa['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x540b0b=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb35563,'accept');return this['forceDefaultExecution'](()=>_0x540b0b([_0x12df79],_0x2e672e,_0x448aaa)),null;}const _0x58abbe=this['editor']['plugins']['get']('Users')['me'],_0x4849a8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1e588e,meta:_0x4fcc72}of this['_findSuggestions'](_0x12df79,'insertion'))_0x4fcc72['isOwn']&&!_0x4fcc72['isInsideObject']&&_0x4849a8['push'](..._0x1e588e['getRanges']());}const _0x14f777=function(_0x5edcc0,_0x21ea58){const _0x5e4048=[];for(const _0x2fd0ae of _0x21ea58){const _0xf47b07=_0x5edcc0['getIntersection'](_0x2fd0ae);_0xf47b07&&_0x5e4048['push'](_0xf47b07);}return _0x5e4048;}(_0x12df79,_0x4849a8),_0x37933b=function(_0x1833bc,_0x15eedd){const _0x39c219=[_0x1833bc];for(const _0x5e981f of _0x15eedd){let _0x4818cd=0x0;for(;_0x4818cd<_0x39c219['length'];){const _0x295dda=_0x39c219[_0x4818cd]['getDifference'](_0x5e981f);_0x39c219['splice'](_0x4818cd,0x1,..._0x295dda),_0x4818cd+=_0x295dda['length'];}}return _0x39c219;}(_0x12df79,_0x4849a8);_0x14f777['length']&&this['_model']['change'](()=>{for(const _0x1c21d5 of _0x14f777){const _0x5dfbd1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb35563,'accept');this['forceDefaultExecution'](()=>_0x5dfbd1([_0x1c21d5],_0x2e672e,_0x448aaa));}});for(const _0x200806 of _0x37933b){let _0x3c2f4a=null,_0xcfecdf=_0x200806['start'],_0x87ecef=_0x200806['end'];for(const {suggestion:_0x20bc44,meta:_0x18fdba}of this['_findSuggestions'](_0x200806,'formatInline')){if(!_0x18fdba['isOwn'])continue;if(_0x20bc44['subType']!=_0xb35563)continue;if(!sn(_0x20bc44,_0x448aaa))continue;const _0x28da5a=_0x20bc44['getFirstRange']();if(_0x28da5a['containsRange'](_0x200806,!0x0))return null;_0xcfecdf=_0xcfecdf['isBefore'](_0x28da5a['start'])?_0xcfecdf:_0x28da5a['start'],_0x87ecef=_0x87ecef['isAfter'](_0x28da5a['end'])?_0x87ecef:_0x28da5a['end'],_0x3c2f4a?_0x28da5a['start']['isBefore'](_0x3c2f4a['getFirstRange']()['start'])?(_0x3c2f4a['removeMarkers'](),_0x3c2f4a=_0x20bc44):_0x20bc44['removeMarkers']():_0x3c2f4a=_0x20bc44;}const _0x232306=this['_model']['createRange'](_0xcfecdf,_0x87ecef);if(_0x3c2f4a)this['_setSuggestionRange'](_0x3c2f4a,_0x232306);else{const _0x283bb6=_0x2aca75(),_0x31796a=_0x58abbe['id'];this['_setSuggestionData']({'id':_0x283bb6,'type':'formatInline:'+_0xb35563,'data':_0x2e672e,'createdAt':new Date(),'authorId':_0x31796a,'attributes':_0x448aaa}),this['_addSuggestionMarker']('formatInline:'+_0xb35563,_0x283bb6,_0x31796a,_0x232306);}}return null;}['markBlockFormat'](_0x3a3e53,_0x4e3412,_0x33b972=[],_0x376c06=null,_0x3e2f99={}){_0x4e3412['formatGroupId']||(_0x4e3412['formatGroupId']=_0x4e3412['commandName']),_0x4e3412['multipleBlocks']=_0x3a3e53['is']('range'),_0x376c06=_0x376c06||Ht(_0x4e3412);const _0x3f9031=_0x33b972['map'](_0x3608ae=>tn(_0x3608ae,this['_model'])),_0x45f0c2=_0x3a3e53['is']('range')?_0x3a3e53:tn(_0x3a3e53,this['_model']);if(this['_trackingSessionId']&&(_0x3e2f99['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x181d5e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x376c06,'accept');return this['forceDefaultExecution'](()=>_0x181d5e([_0x45f0c2],_0x4e3412,_0x3e2f99)),null;}_0x3f9031['push'](_0x45f0c2);let _0x464ec0=!0x0;for(const _0x14d4d6 of _0x3f9031)if(!this['_rangeIsInLocalUserInsertion'](_0x14d4d6)){_0x464ec0=!0x1;break;}if(_0x464ec0&&'always'!==this['_trackFormatChanges']){const _0x236118=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x376c06,'accept');return this['forceDefaultExecution'](()=>_0x236118([_0x45f0c2],_0x4e3412,_0x3e2f99)),null;}let _0x4e8466=null,_0x2c1763=_0x45f0c2['start'],_0x2e35ad=_0x45f0c2['end'];for(const {suggestion:_0x40ba22,meta:_0xb76e1a}of this['_findSuggestions'](_0x45f0c2,'formatBlock')){if(!_0xb76e1a['isOwn'])continue;if(_0xb76e1a['isNextTo']||_0xb76e1a['containsRangeInObject']||_0xb76e1a['isInsideObject'])continue;if(_0x40ba22['data']['formatGroupId']!=_0x4e3412['formatGroupId'])continue;if(!sn(_0x40ba22,_0x3e2f99))continue;const _0x3eced4=_0x40ba22['getFirstRange']();if(_0x40ba22['subType']==_0x376c06){if(_0x3eced4['containsRange'](_0x45f0c2,!0x0))return null;_0x2c1763=_0x2c1763['isBefore'](_0x3eced4['start'])?_0x2c1763:_0x3eced4['start'],_0x2e35ad=_0x2e35ad['isAfter'](_0x3eced4['end'])?_0x2e35ad:_0x3eced4['end'],_0x4e8466?_0x3eced4['start']['isBefore'](_0x4e8466['getFirstRange']()['start'])?(_0x4e8466['removeMarkers'](),_0x4e8466=_0x40ba22):_0x40ba22['removeMarkers']():_0x4e8466=_0x40ba22;}else{const _0x52c285=_0x45f0c2['getIntersection'](_0x3eced4);this['_cutOutSuggestionMarker'](_0x40ba22,_0x52c285);}}const _0x3aed30=this['editor']['plugins']['get']('Users')['me'],_0x260829=_0x2aca75(),_0x1b44fd=_0x3aed30['id'];if(_0x4e8466)return this['_setSuggestionRange'](_0x4e8466,this['_model']['createRange'](_0x2c1763,_0x2e35ad)),_0x4e8466;{const _0x55283e=this['_setSuggestionData']({'id':_0x260829,'type':'formatBlock:'+_0x376c06,'data':_0x4e3412,'createdAt':new Date(),'authorId':_0x1b44fd,'attributes':_0x3e2f99});return this['_addSuggestionMarker']('formatBlock:'+_0x376c06,_0x260829,_0x1b44fd,this['_model']['createRange'](_0x2c1763,_0x2e35ad)),_0x55283e;}}['markMultiRangeBlockFormat'](_0x6581ad,_0x3f136f,_0x24696e=[],_0x4ab74c=null,_0x469cd7={}){_0x3f136f['formatGroupId']||(_0x3f136f['formatGroupId']=_0x3f136f['commandName']);const _0x158d35=_0x6581ad[0x0];_0x3f136f['multipleBlocks']=_0x158d35['is']('range'),_0x4ab74c=_0x4ab74c||Ht(_0x3f136f);const _0x1d9a11=_0x24696e['map'](_0x2a3af8=>tn(_0x2a3af8,this['_model'])),_0xb1f45=_0x158d35['is']('range')?_0x6581ad:_0x6581ad['map'](_0x3eeba8=>tn(_0x3eeba8,this['_model']));if(this['_trackingSessionId']&&(_0x469cd7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x42e8a0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ab74c,'accept');return this['forceDefaultExecution'](()=>_0x42e8a0(_0xb1f45,_0x3f136f,_0x469cd7)),null;}_0x1d9a11['push'](..._0xb1f45);let _0x460d63=!0x0;for(const _0x14efe0 of _0x1d9a11)if(!this['_rangeIsInLocalUserInsertion'](_0x14efe0)){_0x460d63=!0x1;break;}if(_0x460d63&&'always'!==this['_trackFormatChanges']){const _0x3e6841=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ab74c,'accept');return this['forceDefaultExecution'](()=>_0x3e6841(_0xb1f45,_0x3f136f,_0x469cd7)),null;}const _0x548564=this['editor']['plugins']['get']('Users')['me'];for(const _0x3341a8 of this['getSuggestions']()){const _0x169d3e=_0x3341a8['data'];if(_0x3341a8['author']['id']!=_0x548564['id'])continue;if('formatBlock'!=_0x3341a8['type']||_0x169d3e['formatGroupId']!=_0x3f136f['formatGroupId'])continue;if(!sn(_0x3341a8,_0x469cd7))continue;const _0x4aa452=_0x3341a8['subType']==_0x4ab74c;for(let _0x5acc0b=0x0;_0x5acc0b<_0xb1f45['length'];_0x5acc0b++){const _0x48a3b6=_0xb1f45[_0x5acc0b];for(const _0x15923e of _0x3341a8['getMarkers']()){const _0x3de885=_0x15923e['getRange']();if(_0x48a3b6['isEqual'](_0x3de885)){_0x4aa452?(_0xb1f45['splice'](_0x5acc0b,0x1),_0x5acc0b--):_0x3341a8['removeMarker'](_0x15923e['name']);break;}}}}if(0x0==_0xb1f45['length'])return null;const _0x34c692=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ab74c,'join');for(const _0x493a3f of this['getSuggestions']()){const _0x12244e=_0x493a3f['data'];if(_0x493a3f['author']['id']==_0x548564['id']&&('formatBlock'==_0x493a3f['type']&&_0x12244e['formatGroupId']==_0x3f136f['formatGroupId']&&_0x493a3f['subType']==_0x4ab74c&&sn(_0x493a3f,_0x469cd7)&&(_0x34c692(_0x493a3f['getRanges'](),_0xb1f45)||_0x34c692(_0xb1f45,_0x493a3f['getRanges']())))){for(const _0x673933 of _0xb1f45)_0x493a3f['addRange'](_0x673933);return _0x493a3f;}}const _0x22dd3d=_0x2aca75(),_0x1aa25d=_0x548564['id'],_0x848f22='formatBlock:'+_0x4ab74c,_0x5a560c=this['_setSuggestionData']({'id':_0x22dd3d,'type':_0x848f22,'data':_0x3f136f,'createdAt':new Date(),'authorId':_0x1aa25d,'attributes':_0x469cd7});for(const _0x9bd7fb of _0xb1f45)this['_addSuggestionMarker'](_0x848f22,_0x22dd3d,_0x1aa25d,_0x9bd7fb,x['getMultiRangeId']());return _0x5a560c;}['markDeletion'](_0x51bbd1,_0x206b92=null,_0x580b4d={}){if(_0x51bbd1['isCollapsed'])return null;const _0x447fd2=this['editor']['plugins']['get']('Users')['me'],_0x17faab=new _0x151ab6(_0x51bbd1['start'],_0x51bbd1['end']);this['_trackingSessionId']&&(_0x580b4d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x5efcda,meta:_0x17c04e}of this['_findSuggestions'](_0x17faab,'insertion'))if(_0x17c04e['isOwn']&&!_0x17c04e['isNextTo']){if(_0x5efcda['isMultiRange']){const _0x5dda41=_0x5efcda['getRanges']()['filter'](_0x37acb8=>'$graveyard'!=_0x37acb8['root']['rootName']);_0x5dda41['every'](_0x199779=>_0x17faab['containsRange'](_0x199779,!0x0))&&_0x5efcda['discard']();if(_0x5dda41['some'](_0xf3c9d=>_0xf3c9d['containsRange'](_0x17faab,!0x0))){const _0x18afc9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x206b92,'accept');return this['forceDefaultExecution'](()=>_0x18afc9([_0x17faab],null,_0x580b4d)),null;}}else{const _0xf3783d=_0x17faab['getIntersection'](_0x5efcda['getFirstRange']());null!==_0xf3783d&&_0x5efcda['_onDiscard']([_0xf3783d],null,_0x580b4d);}}if(_0x17faab['detach'](),_0x17faab['isCollapsed']||'$graveyard'==_0x17faab['root']['rootName'])return null;let _0x5e3d01=null,_0xc81526=_0x17faab['start'],_0x33f4be=_0x17faab['end'];const _0xce8c5e=this['_findSuggestions'](_0x17faab,'deletion');for(const {suggestion:_0x478b33,meta:_0x36c2be}of _0xce8c5e){const _0x266d09=this['_model']['createRange'](_0xc81526,_0x33f4be);if(_0x36c2be['isOwn']&&(this['_mergeNestedSuggestions']||!_0x36c2be['containsRangeInObject']&&!_0x36c2be['isInsideObject'])){if(_0x478b33['isMultiRange']){if(!sn(_0x478b33,_0x580b4d))continue;let _0x4fd90d=!0x0;for(const _0x292b40 of _0x478b33['getRanges']()){if(_0x292b40['containsRange'](_0x266d09,!0x0))return _0x478b33;_0x266d09['containsRange'](_0x292b40)||(_0x4fd90d=!0x1);}_0x4fd90d&&_0x478b33['discard']();}else{const _0x41fe6f=_0x478b33['getFirstRange']();if(_0x41fe6f['containsRange'](_0x266d09,!0x0))return _0x478b33;if(!sn(_0x478b33,_0x580b4d)){_0x266d09['containsRange'](_0x41fe6f)?_0x478b33['removeMarkers']():_0x41fe6f['containsPosition'](_0xc81526)?_0xc81526=_0x41fe6f['end']:_0x41fe6f['containsPosition'](_0x33f4be)&&(_0x33f4be=_0x41fe6f['start']);continue;}_0xc81526=_0xc81526['isBefore'](_0x41fe6f['start'])?_0xc81526:_0x41fe6f['start'],_0x33f4be=_0x33f4be['isAfter'](_0x41fe6f['end'])?_0x33f4be:_0x41fe6f['end'],_0x580b4d=Object['assign']({},_0x478b33['attributes']),_0x5e3d01?_0x41fe6f['start']['isBefore'](_0x5e3d01['getFirstRange']()['start'])?(_0x5e3d01['removeMarkers'](),_0x5e3d01=_0x478b33):_0x478b33['removeMarkers']():_0x5e3d01=_0x478b33;}}}if(_0x5e3d01)return this['_setSuggestionRange'](_0x5e3d01,this['_model']['createRange'](_0xc81526,_0x33f4be)),_0x5e3d01;{const _0x5aaa86=_0x2aca75(),_0x4f2a87=this['_model']['createRange'](_0xc81526,_0x33f4be),_0x3c335f=_0x447fd2['id'],_0x48d013=_0x206b92?'deletion:'+_0x206b92:'deletion',_0x3c7019=this['_setSuggestionData']({'id':_0x5aaa86,'type':_0x48d013,'createdAt':new Date(),'authorId':_0x3c335f,'attributes':_0x580b4d});return this['_addSuggestionMarker'](_0x48d013,_0x5aaa86,_0x3c335f,_0x4f2a87),_0x3c7019;}}['markMultiRangeDeletion'](_0x4fe9c0,_0x1f99c2='multi',_0x57d619={}){const _0x2bc820=this['editor']['plugins']['get']('Users')['me'],_0x20656c=_0x4fe9c0['map'](_0x433e95=>new _0x151ab6(_0x433e95['start'],_0x433e95['end'])),_0x42ecb2=new Set();this['_trackingSessionId']&&(_0x57d619['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x196202,meta:_0x9cc558}of this['_findSuggestions'](_0x20656c,'insertion'))_0x9cc558['isOwn']&&!_0x9cc558['isNextTo']&&_0x42ecb2['add'](_0x196202);for(const _0x3fd463 of _0x42ecb2)if(_0x3fd463['isMultiRange']){const _0x5757da=_0x3fd463['getRanges']();(!_0x3fd463['attributes']||!_0x3fd463['attributes']['skipNestingCheck'])&&(_0x5757da['every'](_0x2faabd=>_0x20656c['some'](_0x33532e=>_0x33532e['containsRange'](_0x2faabd,!0x0)))&&_0x3fd463['discard']());if(_0x20656c['every'](_0x37f089=>_0x5757da['some'](_0x4e1afa=>_0x4e1afa['containsRange'](_0x37f089,!0x0)))){const _0x10e427=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f99c2,'accept');return this['forceDefaultExecution'](()=>_0x10e427(_0x4fe9c0,null,_0x57d619)),null;}}else{const _0x5598db=_0x3fd463['getFirstRange']();_0x20656c['some'](_0x38f2b3=>_0x38f2b3['containsRange'](_0x5598db,!0x0))&&_0x3fd463['discard']();if(_0x20656c['every'](_0x56afaa=>_0x5598db['containsRange'](_0x56afaa,!0x0))){const _0x9476bf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f99c2,'accept');return this['forceDefaultExecution'](()=>_0x9476bf(_0x20656c,null,_0x57d619)),null;}}const _0x3e16f5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f99c2,'join');let _0x8b1704=null;for(const _0x4906c6 of this['getSuggestions']())if(_0x4906c6['author']['id']==_0x2bc820['id']&&_0x4906c6['isInContent']&&'deletion'==_0x4906c6['type']&&_0x4906c6['subType']==_0x1f99c2&&sn(_0x4906c6,_0x57d619)&&(_0x3e16f5(_0x4906c6['getRanges'](),_0x20656c)||_0x3e16f5(_0x20656c,_0x4906c6['getRanges']()))){if(_0x8b1704){if(_0x4906c6['commentThread']&&_0x4906c6['commentThread']['length'])continue;for(const _0x4f2ed7 of _0x4906c6['getRanges']())_0x8b1704['isIntersectingWithRange'](_0x4f2ed7)||_0x8b1704['addRange'](_0x4f2ed7);_0x4906c6['removeMarkers']();}else{_0x8b1704=_0x4906c6;for(const _0x9a28f2 of _0x20656c)_0x4906c6['isIntersectingWithRange'](_0x9a28f2)||_0x4906c6['addRange'](_0x9a28f2);}}if(_0x8b1704)return _0x8b1704;_0x42ecb2['clear']();for(const {suggestion:_0x2eedb1,meta:_0x28840b}of this['_findSuggestions'](_0x20656c,'deletion'))_0x28840b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x28840b['containsRangeInObject']&&!_0x28840b['isInsideObject'])&&sn(_0x2eedb1,_0x57d619)&&_0x42ecb2['add'](_0x2eedb1);for(const _0x3d2ae3 of _0x42ecb2){const _0x349582=_0x3d2ae3['getRanges']();if(!_0x57d619||!_0x57d619['skipNestingCheck']){if(_0x20656c['every'](_0x4adb1f=>_0x349582['some'](_0x2a9252=>_0x2a9252['containsRange'](_0x4adb1f,!0x0))))return _0x3d2ae3;}(!_0x3d2ae3['attributes']||!_0x3d2ae3['attributes']['skipNestingCheck'])&&(_0x349582['every'](_0x6fb60e=>_0x20656c['some'](_0x743da9=>_0x743da9['containsRange'](_0x6fb60e,!0x0)))&&_0x3d2ae3['discard']());}const _0x3b198a=_0x2aca75(),_0x1684bd=_0x2bc820['id'],_0x1a71f3='deletion:'+_0x1f99c2,_0x340f49=this['_setSuggestionData']({'id':_0x3b198a,'type':_0x1a71f3,'createdAt':new Date(),'authorId':_0x1684bd,'attributes':_0x57d619});for(const _0x4d00d7 of _0x20656c)_0x4d00d7['detach'](),_0x4d00d7['isCollapsed']||'$graveyard'==_0x4d00d7['root']['rootName']||this['_addSuggestionMarker'](_0x1a71f3,_0x3b198a,_0x1684bd,_0x4d00d7,x['getMultiRangeId']());return _0x340f49;}['markAttributeChange'](_0x1bda75,_0x526a32,_0x261852,_0x1cdd5c,_0xe2e6d0){if(_0x1bda75['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x58f026=this['editor']['plugins']['get']('Users')['me']['id'],_0x6c2ad0=Array['from'](this['_suggestions']['values']())['filter'](_0x3e8393=>'attribute'==_0x3e8393['type']&&_0x3e8393['data']['key']==_0x526a32&&_0x3e8393['isIntersectingWithRange'](_0x1bda75));if(this['_trackingSessionId']&&(_0xe2e6d0['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x12d4c6=this['_findSuggestions'](_0x1bda75,'insertion')['filter'](({meta:_0x2df3d9})=>_0x2df3d9['isOwn']&&!_0x2df3d9['isInsideObject']&&!_0x2df3d9['isNextTo'])['map'](({suggestion:_0xb77c6b})=>_0xb77c6b);_0x6c2ad0['unshift'](..._0x12d4c6);}const _0x54b1d6=new Map([[_0x1bda75,_0x261852]]);for(const _0x1af580 of _0x6c2ad0){const _0x259eec='attribute'==_0x1af580['type']?_0x1af580['data']['oldValue']:void 0x0,_0x21a711=_0x1af580['getFirstRange'](),_0x1a3124=Array['from'](_0x54b1d6['keys']())['find'](_0x3a96ce=>_0x3a96ce['isIntersecting'](_0x21a711));if(!_0x1a3124)continue;const _0x5db7cf=_0x1a3124['getDifference'](_0x21a711);this['_isBlockAttribute'](_0x526a32)&&'insertion'==_0x1af580['type']&&0x0!=_0x5db7cf['length']||(_0x54b1d6['delete'](_0x1a3124),_0x5db7cf['forEach'](_0x49d633=>{_0x54b1d6['set'](_0x49d633,_0x261852);}),'insertion'!=_0x1af580['type']&&_0x259eec!=_0x1cdd5c&&_0x54b1d6['set'](_0x1a3124['getIntersection'](_0x21a711),_0x259eec));}const _0x3b9c77=[];for(const [_0x3d858a,_0x5a2c4a]of _0x54b1d6){const _0x201f71=_0x2aca75(),_0xc5f7be={'key':_0x526a32,'oldValue':_0x5a2c4a,'newValue':_0x1cdd5c};_0x526a32['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':_0x526a32});const _0x2f5ef7=('attribute:'+(_0x526a32+'|'+Ht({'newValue':_0x1cdd5c})))['substring'](0x0,0x3c),_0x3106c6=this['_setSuggestionData']({'id':_0x201f71,'type':_0x2f5ef7,'data':_0xc5f7be,'createdAt':new Date(),'authorId':_0x58f026,'attributes':_0xe2e6d0});_0x3b9c77['push'](_0x3106c6),this['_addSuggestionMarker'](_0x2f5ef7,_0x201f71,_0x58f026,_0x3d858a);}return _0x3b9c77;}['enableDefaultAttributesIntegration'](_0xa75290){this['enableCommand'](_0xa75290,(_0xf2b0af,..._0x41e6b4)=>{this['recordAttributeChanges'](()=>{_0xf2b0af(..._0x41e6b4);});});}['registerBlockAttribute'](_0x517d6a){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x517d6a);}['registerInlineAttribute'](_0x55ecac){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x55ecac);}['startTrackingSession'](_0x389420){return this['_trackingSessionId']=void 0x0!==_0x389420?_0x389420:_0x2aca75(),this['_trackingSessionId'];}['_getAttributeKey'](_0x37b5ee){return'attribute'==_0x37b5ee['type']?_0x37b5ee['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x858125){if(0x0==_0x858125['length'])return;const _0x2641b3=this['editor'],_0x17da1d=_0x2641b3['plugins']['get'](_0x10e8f9),_0x42c1bb=[];_0x2641b3['model']['change'](_0xc8c0b4=>{for(let _0x19d863=0x0;_0x19d863<_0x858125['length'];_0x19d863++){const _0x46d0c8=_0x858125[_0x19d863];if(_0x46d0c8['baseVersion']=_0x2641b3['model']['document']['version'],_0x46d0c8['isDocumentOperation']=!0x0,_0x17da1d['isMarkedRemoveOperation'](_0x46d0c8)){const _0x4c1f29=Lt(_0x46d0c8['newRange'],_0x2641b3['model']);_0x42c1bb['unshift'](_0x151ab6['fromRange'](_0x4c1f29));}else switch(_0x46d0c8['type']){case'rename':{const _0x37ad90=_0x46d0c8['oldName'],_0x39509c=_0x46d0c8['newName'];if(_0x37ad90==_0x39509c)break;_0xc8c0b4['batch']['addOperation'](_0x46d0c8),_0x2641b3['model']['applyOperation'](_0x46d0c8);const _0x509d73='$elementName',_0x518073=_0x46d0c8['position'],_0x221579=_0x2641b3['model']['createRange'](_0x518073,_0x2641b3['model']['createPositionAt'](_0x518073['nodeAfter'],'end'));this['markAttributeChange'](_0x221579,_0x509d73,_0x37ad90,_0x39509c,{'groupId':_0x2aca75()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x448e96=_0x46d0c8['oldValue'],_0x3f393a=_0x46d0c8['newValue'];if(_0x448e96==_0x3f393a)break;_0xc8c0b4['batch']['addOperation'](_0x46d0c8),_0x2641b3['model']['applyOperation'](_0x46d0c8);const _0x48f59d=_0x46d0c8['key'];if(!this['_isRegisteredAttribute'](_0x48f59d))break;const _0x31794f=Lt(_0x46d0c8['range'],_0x2641b3['model']);this['markAttributeChange'](_0x31794f,_0x48f59d,_0x448e96,_0x3f393a,{'groupId':_0x2aca75()});break;}case'insert':{_0xc8c0b4['batch']['addOperation'](_0x46d0c8),_0x2641b3['model']['applyOperation'](_0x46d0c8);if(_0x858125[_0x19d863+0x1]&&'move'==_0x858125[_0x19d863+0x1]['type'])break;const _0x20ba53=_0x46d0c8['position'],_0x447cf0=_0x46d0c8['howMany'],_0x2db311=Lt(_0x2641b3['model']['createRange'](_0x20ba53,_0x20ba53['getShiftedBy'](_0x447cf0)),_0x2641b3['model']);this['markInsertion'](_0x2db311);break;}case'split':{_0xc8c0b4['batch']['addOperation'](_0x46d0c8),_0x2641b3['model']['applyOperation'](_0x46d0c8);const _0x967533=_0x46d0c8['splitPosition'],_0x4666ec=_0x46d0c8['moveTargetPosition'];this['markInsertion'](_0x2641b3['model']['createRange'](_0x967533,_0x4666ec));break;}case'move':case'remove':_0xc8c0b4['batch']['addOperation'](_0x46d0c8),_0x2641b3['model']['applyOperation'](_0x46d0c8);}}for(const _0x41b02f of _0x42c1bb)_0x41b02f['detach'](),this['markDeletion'](_0x41b02f);});}['_setSuggestionRange'](_0x38d35a,_0x4b3891){const _0x427ff8=_0x38d35a['getFirstMarker']();this['_model']['change'](_0x91aa41=>{_0x91aa41['updateMarker'](_0x427ff8,{'range':_0x4b3891});});}['_addThreadToSuggestion'](_0xaa46dd){const _0x2673ea=_0xaa46dd['id'],_0x34e7c4=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2673ea)||this['_commentsRepository']['addCommentThread']({'channelId':_0x34e7c4,'threadId':_0x2673ea,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x57769e=this['_commentsRepository']['getCommentThread'](_0x2673ea);_0x57769e['unbind']('isRemovable'),_0x57769e['isRemovable']=!0x1,_0xaa46dd['commentThread']=_0x57769e;}['_checkSuggestionCorrectness'](_0x5558d0,_0x33a799,_0x55da39,_0x11a423){if(_0x5558d0['type']!=_0x33a799||_0x5558d0['subType']!=_0x55da39||_0x5558d0['creator']['id']!=_0x11a423)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1dd383('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x523c32,_0x242557){const _0x550624=_0x523c32['getFirstRange']();if(_0x242557['isEqual'](_0x550624))_0x523c32['removeMarkers']();else{if(_0x550624['containsRange'](_0x242557)){const _0x3eacf8=this['_model']['createPositionAt'](_0x242557['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x523c32,this['_model']['createRange'](_0x550624['start'],_0x3eacf8));const _0x43fa5f=_0x2aca75(),_0x27317f=_0x523c32['creator']['id'],_0x4e0d79=_0x523c32['type']+':'+_0x523c32['subType'];this['_setSuggestionData']({'id':_0x43fa5f,'type':_0x4e0d79,'createdAt':new Date(),'authorId':_0x27317f,'data':_0x523c32['data'],'attributes':_0x523c32['attributes']});const _0x4a9163=this['_model']['createPositionAt'](_0x242557['end']['parent'],'after'),_0x38162b=this['_model']['createRange'](_0x4a9163,_0x550624['end']);this['_addSuggestionMarker'](_0x4e0d79,_0x43fa5f,_0x27317f,_0x38162b);}else{if(_0x550624['containsPosition'](_0x242557['start'])){const _0x2b5db2=this['_model']['createPositionAt'](_0x242557['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x523c32,this['_model']['createRange'](_0x550624['start'],_0x2b5db2));}else{const _0xb68a81=this['_model']['createPositionAt'](_0x242557['end']['parent'],'after');this['_setSuggestionRange'](_0x523c32,this['_model']['createRange'](_0xb68a81,_0x550624['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x52e8ae){for(const {suggestion:_0x5c0cec,meta:_0x56d42b}of this['_findSuggestions'](_0x52e8ae,'insertion')){if(!_0x56d42b['isOwn'])continue;const _0x5eca6c=_0x5c0cec['getRanges']();for(const _0x38f4a9 of _0x5eca6c)if(!_0x52e8ae['getDifference'](_0x38f4a9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x41db53){return this['editor']['plugins']['get']('Users')['getUser'](_0x41db53);}['_getExternalAuthor'](_0x1e51a4){const _0x5803c4=this['editor']['plugins']['get']('Users'),_0x5ac2e4=_0x251390('external:'+_0x1e51a4),_0x431c1e=_0x5803c4['getUser'](_0x5ac2e4);return _0x431c1e||_0x5803c4['addUser']({'id':_0x5ac2e4,'name':_0x1e51a4});}['_createSuggestion'](_0x55f40a,_0x5dd4b0,_0x3255e1,_0x588f5b,_0x11f0d3,_0x2c0cb9){const _0x2da554=this['_getAuthorFromId'](_0x588f5b);if(!_0x2da554)throw new _0x1dd383('track-changes-user-not-found',this,{'authorId':_0x588f5b,'suggestionId':_0x3255e1});const _0x123c02=this['_suggestionFactory']['buildSuggestion'](_0x55f40a,_0x5dd4b0,_0x3255e1,_0x2da554,_0x11f0d3,_0x6a68ec=>{this['_updateSuggestionData'](_0x3255e1,{'attributes':_0x6a68ec});const _0x12aaaf=this['getSuggestion'](_0x3255e1);this['_joinWithAdjacentSuggestions'](new Set([_0x12aaaf])),this['_refreshSuggestionsChain'](new Set([_0x12aaaf]));},_0x2c0cb9);return this['listenTo'](_0x123c02,'accept',()=>{this['_updateSuggestionData'](_0x3255e1,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x123c02,'discard',()=>{this['_updateSuggestionData'](_0x3255e1,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3255e1,_0x123c02),this['_suggestionState']['set'](_0x123c02,'notReady'),_0x123c02;}['_splitMarkerName'](_0x283eff){return Gt(_0x283eff);}['_breakSuggestionMarker'](_0x5b727c,_0x4994f3,_0x2775b0){const _0x42f760=_0x5b727c['getFirstRange'](),_0x251a95=_0x42f760['start'],_0x3cf5f6=_0x42f760['end'];this['_setSuggestionRange'](_0x5b727c,this['_model']['createRange'](_0x251a95,_0x4994f3));const _0xc0fc31=_0x2aca75(),_0x32c971=_0x5b727c['creator']['id'],_0x252e2b=_0x5b727c['type']+(_0x5b727c['subType']?':'+_0x5b727c['subType']:'');this['_setSuggestionData']({'id':_0xc0fc31,'type':_0x252e2b,'createdAt':new Date(),'authorId':_0x32c971,'originalSuggestionId':_0x5b727c['_originalSuggestionId']||_0x5b727c['id'],'attributes':_0x5b727c['attributes'],'data':_0x5b727c['data']});const _0x384d72=this['_getAttributeKey'](_0x5b727c);('formatBlock'==_0x5b727c['type']||_0x384d72&&this['_isBlockAttribute'](_0x384d72))&&(_0x2775b0=this['_model']['createPositionBefore'](_0x2775b0['parent'])),this['_addSuggestionMarker'](_0x252e2b,_0xc0fc31,_0x32c971,this['_model']['createRange'](_0x2775b0,_0x3cf5f6));}['_findSuggestions'](_0x36a6c3,_0x367b83=null){const _0x2a4d11=[],_0x5235ff=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x36a6c3)||(_0x36a6c3=[_0x36a6c3]);for(const _0x4d03ad of this['getSuggestions']()){if(!_0x4d03ad['isInContent'])continue;if(_0x367b83&&_0x4d03ad['type']!=_0x367b83)continue;let _0x384728=!0x1;for(const _0x493081 of _0x4d03ad['getRanges']()){for(const _0x1d9500 of _0x36a6c3){const _0x5f1d6c=_0x1d9500['start']['isEqual'](_0x493081['end'])||_0x1d9500['end']['isEqual'](_0x493081['start']);if(_0x5f1d6c||_0x1d9500['getIntersection'](_0x493081)){const _0x46d847=_0x1d9500['containsRange'](_0x493081)&&zt(this['_model']['schema'],_0x493081['start'],_0x1d9500),_0x3a54b4=_0x493081['containsRange'](_0x1d9500)&&zt(this['_model']['schema'],_0x1d9500['start'],_0x493081);_0x2a4d11['push']({'suggestion':_0x4d03ad,'meta':{'isOwn':_0x5235ff==_0x4d03ad['author'],'isNextTo':_0x5f1d6c,'isInsideObject':_0x46d847,'containsRangeInObject':_0x3a54b4}}),_0x384728=!0x0;break;}}if(_0x384728)break;}}return _0x2a4d11;}['_addSuggestionMarker'](_0x3a40a0,_0x43b556,_0x36e045,_0x23b060,_0x2081ef){this['_model']['change'](_0x37b530=>{let _0xa6afe7='suggestion:'+_0x3a40a0+':'+_0x43b556+':'+_0x36e045;_0x2081ef&&(_0xa6afe7=_0xa6afe7+':'+_0x2081ef),_0x37b530['addMarker'](_0xa6afe7,{'range':_0x23b060,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x378ffd){const _0x308c51=_0x378ffd['previous'],_0x21133a=_0x378ffd['next'];_0x378ffd['previous']=null,_0x378ffd['next']=null,null!=_0x308c51&&_0x308c51['next']==_0x378ffd&&(_0x308c51['next']=_0x21133a),null!=_0x21133a&&_0x21133a['previous']==_0x378ffd&&(_0x21133a['previous']=_0x308c51),'ready'==this['_suggestionState']['get'](_0x378ffd)&&(this['_suggestionState']['set'](_0x378ffd,'removed'),this['fire']('suggestionUnloaded',_0x378ffd,_0x308c51,_0x21133a));}['_setSuggestionData'](_0x3b1030){const _0x5517c1=_0x3b1030['id'],_0x2f38c6=this['addSuggestionData'](_0x3b1030);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x148ce7=this['editor']['plugins']['get']('PendingActions'),_0x2be137=_0x2f38c6['hasComments'],_0x510499=_0x2f38c6['subType']?_0x2f38c6['type']+':'+_0x2f38c6['subType']:_0x2f38c6['type'],_0x2c8733=this['editor']['locale'],_0x27dae6=_0x148ce7['add'](o(_0x2c8733,'PENDING_ACTION_SUGGESTION')),_0x2f7190={'id':_0x5517c1,'type':_0x510499,'hasComments':_0x2be137,'data':_0x3b1030['data']||null,'originalSuggestionId':_0x3b1030['originalSuggestionId']||null,'attributes':_0x2f38c6['attributes']};this['_adapter']['addSuggestion'](_0x2f7190)['then'](_0x504c02=>{_0x2f38c6['_saved']=!0x0,_0x148ce7['remove'](_0x27dae6),_0x504c02&&_0x504c02['createdAt']&&(this['_suggestions']['get'](_0x5517c1)['createdAt']=_0x504c02['createdAt']);})['catch'](_0x5e790b=>{throw _0x54c11b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2f38c6['discard']();}),_0x2f38c6['stopListening'](),this['_suggestions']['delete'](_0x2f38c6['id']),this['_suggestionState']['delete'](_0x2f38c6),_0x5e790b;});}return _0x2f38c6;}['_isBlockAttribute'](_0x4964e8){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0x4964e8);}['_isInlineAttribute'](_0x52c2ae){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x52c2ae);}['_updateSuggestionData'](_0x4db7e2,_0x127a55){const _0x4bd492=this['editor']['plugins']['get']('PendingActions'),_0x419c0a=this['getSuggestion'](_0x4db7e2);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x419c0a['_saved']){const _0x3148f3=_0x4bd492['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x4db7e2,_0x127a55)['then'](()=>{_0x4bd492['remove'](_0x3148f3);});}else _0x419c0a['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x4db7e2,_0x127a55);});}}['_getSuggestionData'](_0x2e110b){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1dd383('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2e110b);}['_handleNewSuggestionMarker'](_0x2057d3){const {id:_0x277452,type:_0x580465,subType:_0xe64b41,authorId:_0x34074f}=this['_splitMarkerName'](_0x2057d3),_0x16d599=this['_suggestions']['get'](_0x277452)||this['_createSuggestion'](_0x580465,_0xe64b41,_0x277452,_0x34074f,{});switch(this['_checkSuggestionCorrectness'](_0x16d599,_0x580465,_0xe64b41,_0x34074f),this['_suggestionState']['get'](_0x16d599)){case'notReady':this['_getSuggestionData'](_0x277452)['then'](_0x3224d4=>{let _0x7c019d=Promise['resolve']();_0x3224d4['hasComments']&&(_0x7c019d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x277452})),_0x7c019d['then'](()=>{this['addSuggestionData'](_0x3224d4)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x16d599,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x277452,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x16d599,'ready'),this['fire']('suggestionLoaded',_0x16d599);break;case'ready':this['fire']('suggestionChanged',_0x16d599);}return _0x16d599['addMarkerName'](_0x2057d3),_0x16d599;}['_refreshSuggestionsChain'](_0x5bcaa6){const _0x56099d=Array['from'](_0x5bcaa6),_0x19d92f=_0x56099d['filter'](_0x6b293=>'attribute'==_0x6b293['type']);this['_refreshAttributeSuggestionsChain'](_0x19d92f);const _0xee0b5=_0x56099d['filter'](_0x21d778=>!_0x21d778['isMultiRange']&&'attribute'!=_0x21d778['type']),_0x5b72e8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x47ead1=>!_0x47ead1['isMultiRange']&&'attribute'!=_0x47ead1['type']),_0x52ddba=_0x5b72e8['filter'](_0x59f2d2=>!_0x5bcaa6['has'](_0x59f2d2)),_0x4a3206=new Map(_0x5b72e8['map'](_0x239198=>[_0x239198,this['_suggestionFactory']['getSuggestionCallback'](_0x239198['type'],_0x239198['subType'],'chain')])),_0x2f3fee=new Map(_0x5b72e8['map'](_0x54ca50=>[_0x54ca50,_0x54ca50['getFirstRange']()])),_0x52970a=new Set(),_0x109bb9=new Set();for(let _0x1a8180=0x0;_0x1a8180<_0xee0b5['length'];_0x1a8180++)_0xc88144(_0xee0b5[_0x1a8180],_0xee0b5,_0x1a8180+0x1);for(let _0x27441a=0x0;_0x27441a<_0xee0b5['length'];_0x27441a++)_0xc88144(_0xee0b5[_0x27441a],_0x52ddba,0x0);const _0x2d1232=new Set();for(let _0x346e73=0x0;_0x346e73<_0xee0b5['length'];_0x346e73++){const _0x386fa8=_0xee0b5[_0x346e73];!_0x109bb9['has'](_0x386fa8)&&_0x386fa8['previous']&&(_0x2d1232['add'](_0x386fa8['previous']),_0x386fa8['previous']['next']===_0x386fa8&&(_0x386fa8['previous']['next']=null),_0x386fa8['previous']=null),!_0x52970a['has'](_0x386fa8)&&_0x386fa8['next']&&(_0x2d1232['add'](_0x386fa8['next']),_0x386fa8['next']['previous']===_0x386fa8&&(_0x386fa8['next']['previous']=null),_0x386fa8['next']=null);}function _0xc88144(_0x11414b,_0x192b7e,_0x22066b){for(let _0x10cbd1=_0x22066b;_0x10cbd1<_0x192b7e['length'];_0x10cbd1++){const _0xc1895=_0x52d7d7(_0x11414b,_0x192b7e[_0x10cbd1]);_0xc1895&&(_0xc1895[0x0]['next']=_0xc1895[0x1],_0xc1895[0x1]['previous']=_0xc1895[0x0],_0x52970a['add'](_0xc1895[0x0]),_0x109bb9['add'](_0xc1895[0x1]));}}function _0x52d7d7(_0x3572d0,_0x9c1f79){if(_0x3572d0['author']['id']!==_0x9c1f79['author']['id'])return null;const _0x56e8b5=_0x4a3206['get'](_0x3572d0)(_0x3572d0,_0x9c1f79,_0x2f3fee['get'](_0x3572d0),_0x2f3fee['get'](_0x9c1f79));if(!_0x56e8b5)return null;return _0x4a3206['get'](_0x9c1f79)(_0x3572d0,_0x9c1f79,_0x2f3fee['get'](_0x3572d0),_0x2f3fee['get'](_0x9c1f79))?_0x56e8b5[0x1]['commentThread']&&_0x56e8b5[0x1]['commentThread']['length']?null:_0x56e8b5:null;}_0x2d1232['size']&&this['_refreshSuggestionsChain'](_0x2d1232);}['_refreshAttributeSuggestionsChain'](_0x408c9a){if(0x0==_0x408c9a['length'])return;const _0x6b053f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b33ee=>'attribute'==_0x2b33ee['type']&&_0x2b33ee['_isDataLoaded']),_0x340562=[],_0x4bb715=new Map();for(const _0xdcfb1d of _0x6b053f){const _0x3a8484=_0x251390(_0xdcfb1d['attributes']);_0x4bb715['has'](_0x3a8484)||(_0x4bb715['set'](_0x3a8484,_0x340562['length']),_0x340562['push']([]));const _0x98e555=_0x4bb715['get'](_0x3a8484);_0x340562[_0x98e555]['push'](_0xdcfb1d);}!(function(){_0x340562['sort']((_0x491324,_0x1e8154)=>{const _0x2941ca=_0x491324[0x0]['createdAt'],_0xb0051d=_0x1e8154[0x0]['createdAt'];return _0x2941ca==_0xb0051d?_0x491324[0x0]['attributes']['groupId']<_0x1e8154[0x0]['attributes']['groupId']?-0x1:0x1:_0x2941ca<_0xb0051d?-0x1:0x1;});for(const _0xfe617f of _0x340562)_0xfe617f['sort']((_0x12cfb5,_0x2caf3c)=>_0x12cfb5['id']<_0x2caf3c['id']?-0x1:0x1);}());for(let _0x3c111d=0x0;_0x3c111d<_0x340562['length'];_0x3c111d++){if(0x0==_0x340562[_0x3c111d]['length'])continue;const _0x58815f=[];for(let _0x5ed485=_0x3c111d+0x1;_0x5ed485<_0x340562['length'];_0x5ed485++)0x0!=_0x340562[_0x5ed485]['length']&&_0x4fb979(_0x340562[_0x3c111d],_0x340562[_0x5ed485])&&_0x58815f['push'](_0x5ed485);for(const _0x57975c of _0x58815f)_0x340562[_0x3c111d]=_0x340562[_0x3c111d]['concat'](_0x340562[_0x57975c]),_0x340562[_0x57975c]=[];}for(const _0x41d5a7 of _0x340562)for(let _0x4c4d35=0x0;_0x4c4d35<_0x41d5a7['length'];_0x4c4d35++){const _0x867406=_0x41d5a7[_0x4c4d35+0x1]||null;_0x41d5a7[_0x4c4d35]['next']!==_0x867406&&(_0x41d5a7[_0x4c4d35]['next']=_0x867406);}for(const _0x3e4f01 of _0x340562)for(let _0x97f027=0x0;_0x97f027<_0x3e4f01['length'];_0x97f027++){const _0x120146=_0x3e4f01[_0x97f027-0x1]||null;_0x3e4f01[_0x97f027]['previous']!==_0x120146&&(_0x3e4f01[_0x97f027]['previous']=_0x120146);}function _0x4fb979(_0x389758,_0x43b070){if(_0x389758[0x0]['attributes']['groupId']!==_0x43b070[0x0]['attributes']['groupId']&&_0x389758[0x0]['author']!==_0x43b070[0x0]['author'])return!0x1;if(!function(_0xb5e859,_0x1905bf){if(!_0xb5e859['hasComments']&&!_0x1905bf['hasComments'])return!0x0;if(_0xb5e859['hasComments']&&_0x1905bf['hasComments'])return!0x1;if(_0xb5e859['hasComments']&&_0x1905bf['createdAt']<_0xb5e859['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1905bf['hasComments']&&_0xb5e859['createdAt']<_0x1905bf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x389758[0x0],_0x43b070[0x0]))return!0x1;const _0x4e7492=Pt(_0x389758[0x0]['attributes'],['groupId','trackingSessionId']),_0x11cda3=Pt(_0x43b070[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x478de4(_0x4e7492,_0x11cda3))return!0x1;if(_0x389758[0x0]['attributes']['groupId']==_0x43b070[0x0]['attributes']['groupId'])return!0x0;if(_0x389758[0x0]['attributes']['trackingSessionId']!==_0x43b070[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x389758['every'](_0x493fd7=>_0x43b070['some'](_0xfa3599=>_0x493fd7['getFirstRange']()['isEqual'](_0xfa3599['getFirstRange']())))&&_0x43b070['every'](_0x5c87c0=>_0x389758['some'](_0x40f7ec=>_0x5c87c0['getFirstRange']()['isEqual'](_0x40f7ec['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x57d46a){const _0x593571=Array['from'](_0x57d46a),_0xab963a=this['getSuggestions']({'skipNotAttached':!0x0}),_0xe1fa13=_0xab963a['filter'](_0x5da2be=>!_0x57d46a['has'](_0x5da2be)),_0x259a88=new Map(_0x593571['map'](_0x3c9906=>[_0x3c9906,this['_suggestionFactory']['getSuggestionCallback'](_0x3c9906['type'],_0x3c9906['subType'],'join')])),_0x3bd225=new Map(_0xab963a['map'](_0xdc820c=>[_0xdc820c,_0xdc820c['getRanges']()]));for(let _0x1287f3=0x0;_0x1287f3<_0x593571['length'];_0x1287f3++){if(_0x5d5834(this,_0x593571[_0x1287f3],_0x593571,_0x1287f3+0x1))return!0x0;}for(let _0x82d7b9=0x0;_0x82d7b9<_0x593571['length'];_0x82d7b9++){if(_0x5d5834(this,_0x593571[_0x82d7b9],_0xe1fa13,0x0))return!0x0;}return!0x1;function _0x5d5834(_0x5303f6,_0x123335,_0x464cf9,_0x49ead4){for(let _0x10b4b9=_0x49ead4;_0x10b4b9<_0x464cf9['length'];_0x10b4b9++){const _0x3ed2eb=_0x464cf9[_0x10b4b9];if(_0x3ed2eb['type']!==_0x123335['type']||_0x3ed2eb['author']['id']!==_0x123335['author']['id']||_0x3ed2eb['subType']!==_0x123335['subType'])continue;if(!en(_0x123335,_0x3ed2eb))continue;if('attribute'==_0x123335['type']&&_0x123335['data']['oldValue']!=_0x3ed2eb['data']['oldValue'])continue;if('attribute'==_0x123335['type']&&_0x5303f6['_isBlockAttribute'](_0x123335['data']['key']))continue;if('formatBlock'==_0x123335['type']){const _0x4eee66=_0x5303f6['editor']['model'],_0x1fea79=_0x123335['getContainedElement']();if(_0x1fea79&&(_0x4eee66['schema']['isObject'](_0x1fea79)||_0x4eee66['schema']['isLimit'](_0x1fea79)))continue;}const _0x460e76=_0x259a88['get'](_0x123335),_0x23d19b=_0x3bd225['get'](_0x123335),_0x4d3cc7=_0x3bd225['get'](_0x3ed2eb),_0x866415=_0x123335['commentThread']&&_0x123335['commentThread']['length'],_0x33bb6b=_0x3ed2eb['commentThread']&&_0x3ed2eb['commentThread']['length'];if(!_0x866415&&_0x460e76(_0x4d3cc7,_0x23d19b))return _0x5303f6['_joinSuggestions'](_0x3ed2eb,_0x123335),_0x3bd225['delete'](_0x123335),!0x0;if(!_0x33bb6b&&_0x460e76(_0x23d19b,_0x4d3cc7))return _0x5303f6['_joinSuggestions'](_0x123335,_0x3ed2eb),_0x3bd225['delete'](_0x3ed2eb),!0x0;}return!0x1;}}['_joinSuggestions'](_0xf9a7f,_0x899e40){if(_0xf9a7f['isMultiRange']){for(const _0x317307 of _0x899e40['getRanges']())_0xf9a7f['addRange'](_0x317307);}else{const _0x17aef9=_0x899e40['getFirstRange']()['end'];this['_setSuggestionRange'](_0xf9a7f,this['_model']['createRange'](_0xf9a7f['getFirstRange']()['start'],_0x17aef9));}_0x899e40['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3974ea,_0x540688,_0x32505c){const _0x2bd029=_0x3974ea['startsWith']('format')||_0x3974ea['startsWith']('attribute')?'FORMATTING':_0x3974ea['toUpperCase']();return o(this['editor']['locale'],_0x540688+'_'+_0x2bd029+'_SUGGESTION_ANNOUNCEMENT',_0x32505c);}['_initAriaMarkerChangeAnnouncements'](){const _0x5957ca=this['editor'];if(!_0x5957ca['ui'])return;const {ariaLiveAnnouncer:_0x1e33ac}=_0x5957ca['ui'];_0x1aacf7(this['_model'],({left:_0x37ee07,entered:_0x4dbbc2})=>{for(const _0x24f9bc of _0x37ee07){const {group:_0x6d870b,type:_0x10709b}=this['_splitMarkerName'](_0x24f9bc['name']);if('suggestion'===_0x6d870b){_0x1e33ac['announce'](this['_getMarkerAnnouncementText'](_0x10709b,'LEAVE'));break;}}for(const _0x206e48 of _0x4dbbc2){const {group:_0x52a5aa,type:_0x50463c}=this['_splitMarkerName'](_0x206e48['name']);if('suggestion'===_0x52a5aa){_0x1e33ac['announce'](this['_getMarkerAnnouncementText'](_0x50463c,'ENTER',_0x4d03f7(_0x2a6ead)));break;}}});}['_processAttributeChanges'](_0x577993){if(this['_recordAttributeSuggestions'])return!0x1;const _0x20d6f3=this['editor'],_0x230e25=_0x20d6f3['model']['document']['differ']['getChanges']();if(0x0==_0x230e25['length'])return!0x1;const _0x14c8f0=[],_0x5928af=_0x230e25['filter'](_0x392449=>'attribute'==_0x392449['type']),_0x26a6ed=_0x230e25['filter'](_0x3cc7f7=>'insert'==_0x3cc7f7['type']&&'$text'!=_0x3cc7f7['name']),_0x1b32f2=_0x230e25['filter'](_0x34e437=>'remove'==_0x34e437['type']&&'$text'!=_0x34e437['name']);for(const _0x3bab30 of _0x5928af)_0x14c8f0['push']({'key':_0x3bab30['attributeKey'],'newValue':_0x3bab30['attributeNewValue'],'oldValue':_0x3bab30['attributeOldValue'],'range':Zt(_0x3bab30['range'],_0x20d6f3['model'])});for(const _0x20e2f0 of _0x26a6ed){const _0x3886b3=_0x1b32f2['find'](_0x452f13=>_0x452f13['position']['isEqual'](_0x20e2f0['position']));_0x3886b3&&_0x14c8f0['push']({'key':m,'newValue':_0x20e2f0['name'],'oldValue':_0x3886b3['name'],'range':_0x20d6f3['model']['createRangeOn'](_0x20e2f0['position']['nodeAfter'])});}return 0x0!=_0x14c8f0['length']&&this['_reduceExistingSuggestions'](_0x577993,_0x14c8f0);}['_processAttributeSuggestions'](_0x4b8763){let _0x46e961=!0x1;const _0x2f68df=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4be314=>_0x4be314['data']['newRange']&&_0x4be314['name']['startsWith']('suggestion:attribute:'));for(const _0x34319e of _0x2f68df){const {subType:_0x511635,id:_0x3ad027}=this['_splitMarkerName'](_0x34319e['name']),_0x50e37a=_0x511635['split']('|')[0x0];for(const _0x320d40 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x320d40['id']!=_0x3ad027&&'attribute'==_0x320d40['type']&&_0x320d40['data']&&_0x320d40['data']['key']==_0x50e37a&&_0x320d40['getFirstRange']()['isIntersecting'](_0x34319e['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x320d40,_0x34319e['data']['newRange'],_0x4b8763),_0x46e961=!0x0);}return _0x46e961;}['recordAttributeChanges'](_0x38c566){this['_recordAttributeSuggestions']=!0x0,_0x38c566();}['_isRegisteredAttribute'](_0x103d60){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x103d60);}['_reduceExistingSuggestions'](_0x4dac09,_0x531a00){if(0x0==_0x531a00['length'])return!0x1;let _0x2abab2=!0x1;for(const _0x4bd789 of _0x531a00){const _0x503c21=this['_findSuggestions'](_0x4bd789['range'],'attribute')['filter'](_0x664d76=>!_0x664d76['meta']['isNextTo'])['map'](_0x48a2c8=>_0x48a2c8['suggestion']),_0x11cb2e=_0x251390({'newValue':_0x4bd789['newValue']});_0x503c21['filter'](_0x1ed9b4=>{const [_0x125288,_0x2b74f2]=_0x1ed9b4['subType']['split']('|');return _0x125288==_0x4bd789['key']&&_0x2b74f2!=_0x11cb2e;})['forEach'](_0x198ead=>{this['_reduceSuggestionAttributeRange'](_0x198ead,_0x4bd789['range'],_0x4dac09),_0x2abab2=!0x0;});}return _0x2abab2;}['_reduceSuggestionAttributeRange'](_0x18dc39,_0x23e13e,_0x1cda14){const _0x297425=_0x18dc39['getFirstRange']()['getDifference'](_0x23e13e);0x0!==_0x297425['length']?0x1!==_0x297425['length']?this['_breakSuggestionMarker'](_0x18dc39,_0x23e13e['start'],_0x23e13e['end']):this['_setSuggestionRange'](_0x18dc39,_0x297425[0x0]):_0x1cda14['removeMarker'](_0x18dc39['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xa8bcee){this['_editor']=_0xa8bcee,this['_model']=_0xa8bcee['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x10355b,_0x47f215,_0x2c8ec9,_0x57c8ca,_0x2ff2e6,_0x2f78d4,_0x45c268){return new x(this['_model'],{'type':_0x10355b,'subType':_0x47f215,'id':_0x2c8ec9,'originalSuggestionId':_0x45c268,'author':_0x57c8ca,'creator':_0x57c8ca,'attributes':_0x2ff2e6,'onAttributesChange':_0x2f78d4,'onAccept':(..._0x1f8e38)=>this['getSuggestionCallback'](_0x10355b,_0x47f215,'accept')(..._0x1f8e38),'onDiscard':(..._0xdebc99)=>this['getSuggestionCallback'](_0x10355b,_0x47f215,'discard')(..._0xdebc99)});}['registerCustomCallback'](_0x201aab,_0x3ffee2,_0x16d1ff,_0xc15bab){const _0x1aa269=_0x201aab+':'+_0x3ffee2+':'+_0x16d1ff;this['_customCallbacks']['set'](_0x1aa269,_0xc15bab);}['getSuggestionCallback'](_0x3fdb0e,_0x1ab337,_0x58c609){const _0x495601=_0x3fdb0e+':'+_0x1ab337+':'+_0x58c609;return this['_customCallbacks']['get'](_0x495601)||this['_defaultCallbacks']['get'](_0x3fdb0e+':'+_0x58c609);}['_registerDefaultCallbacks'](){const _0x5e6900=()=>!0x1,_0x4e0d5f=_0x38f248=>{_0x38f248['sort']((_0x28b5f9,_0x57853c)=>_0x28b5f9['start']['isBefore'](_0x57853c['start'])?0x1:-0x1),this['_model']['change'](_0x5c74b8=>{for(const _0x5ecaa1 of _0x38f248){let _0x4a92c8;_0x4a92c8=_0x5ecaa1['end']['isAtEnd']&&_0x5ecaa1['end']['parent']==_0x5ecaa1['start']['nodeAfter']?_0x5c74b8['createSelection'](_0x5ecaa1['start']['nodeAfter'],'on'):_0x5c74b8['createSelection'](_0x5ecaa1),this['_model']['deleteContent'](_0x4a92c8,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x1f7ebc=(_0x44e93a,_0x19fa61)=>{_0x19fa61&&this['_model']['change'](_0x45cb88=>{const {commandName:_0x46fa0c,commandParams:_0xf709b2=[]}=_0x19fa61,_0x5c6cf3=_0x44e93a['map'](_0x4d61d2=>(Kt(_0x4d61d2)&&(_0x4d61d2=this['_model']['createRange'](_0x4d61d2['end'])),_0x4d61d2))['filter'](_0x188d05=>'$graveyard'!==_0x188d05['root']['rootName']);if(_0x5c6cf3['length']<0x1)return;const _0x1cbdb0=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4f4a2c=>_0x151ab6['fromRange'](_0x4f4a2c));_0x45cb88['setSelection'](_0x5c6cf3);for(const _0x36f059 of this['_editor']['commands']['commands']())_0x36f059['refresh']();_0xf709b2['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x46fa0c,..._0xf709b2);const _0x462afa=_0x1cbdb0['filter'](_0x1038a3=>'$graveyard'!=_0x1038a3['root']['rootName']);_0x462afa['length']>0x0&&_0x45cb88['setSelection'](_0x462afa);for(const _0x4f1079 of _0x1cbdb0)_0x4f1079['detach']();});},_0x544d7f=(_0x5641e6,_0xbecaa7)=>0x1==_0x5641e6['length']&&0x1==_0xbecaa7['length']&&_0x5641e6[0x0]['end']['isEqual'](_0xbecaa7[0x0]['start']),_0x8b37dd=(_0x3d8e2a,_0x326346,_0x365ff5,_0x4bcd74)=>nn(_0x3d8e2a,_0x326346,_0x365ff5,_0x4bcd74)?[_0x3d8e2a,_0x326346]:nn(_0x326346,_0x3d8e2a,_0x4bcd74,_0x365ff5)?[_0x326346,_0x3d8e2a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5e6900),this['_defaultCallbacks']['set']('insertion:discard',_0x4e0d5f),this['_defaultCallbacks']['set']('insertion:join',_0x544d7f),this['_defaultCallbacks']['set']('insertion:chain',_0x8b37dd),this['_defaultCallbacks']['set']('deletion:accept',_0x4e0d5f),this['_defaultCallbacks']['set']('deletion:discard',_0x5e6900),this['_defaultCallbacks']['set']('deletion:join',_0x544d7f),this['_defaultCallbacks']['set']('deletion:chain',_0x8b37dd),this['_defaultCallbacks']['set']('formatInline:accept',_0x1f7ebc),this['_defaultCallbacks']['set']('formatInline:discard',_0x5e6900),this['_defaultCallbacks']['set']('formatInline:join',_0x544d7f),this['_defaultCallbacks']['set']('formatInline:chain',_0x5e6900),this['_defaultCallbacks']['set']('formatBlock:accept',_0x1f7ebc),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5e6900),this['_defaultCallbacks']['set']('formatBlock:join',_0x544d7f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5e6900),this['_defaultCallbacks']['set']('attribute:accept',_0x5e6900),this['_defaultCallbacks']['set']('attribute:discard',(_0x133af4,_0x4831b5)=>{if(!_0x4831b5)return;const _0x4ea0bc=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x1a7045=>{if(_0x4831b5['key']==m)for(const _0x5c135f of _0x133af4){const _0x42cd69=_0x5c135f['start']['nodeAfter'],_0x1f83a9=_0x4831b5['oldValue'];_0x1a7045['rename'](_0x42cd69,_0x1f83a9);}else{if(_0x4ea0bc['_isBlockAttribute'](_0x4831b5['key'])){for(const _0x3ca43a of _0x133af4)void 0x0!==_0x4831b5['oldValue']?_0x1a7045['setAttribute'](_0x4831b5['key'],_0x4831b5['oldValue'],_0x3ca43a['start']['nodeAfter']):_0x1a7045['removeAttribute'](_0x4831b5['key'],_0x3ca43a['start']['nodeAfter']);}else{for(const _0xad174c of _0x133af4)_0x4831b5['oldValue']?_0x1a7045['setAttribute'](_0x4831b5['key'],_0x4831b5['oldValue'],_0xad174c):_0x1a7045['removeAttribute'](_0x4831b5['key'],_0xad174c);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x544d7f);}}function zt(_0x4699f0,_0x4f0fc3,_0x2c2c09){for(const _0xfea94c of _0x4f0fc3['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xfea94c['root']==_0xfea94c)return!0x1;if(!_0x2c2c09['containsItem'](_0xfea94c))return!0x1;if(_0x4699f0['isObject'](_0xfea94c)||_0x4699f0['isLimit'](_0xfea94c))return!0x0;}return!0x1;}function Kt(_0x3cc704){return _0x3cc704['end']['parent']==_0x3cc704['start']['nodeAfter']&&_0x3cc704['end']['isAtStart'];}function Wt(_0x5e130a,_0x477054,_0x2bbdb0,_0x3f5335){const _0x47bbcb=_0x545fd4=>!_0x545fd4['item']['is']('$textProxy')&&!_0x3f5335['isObject'](_0x545fd4['item']),_0x229ae2=_0x5e130a['start']['getLastMatchingPosition'](_0x47bbcb),_0x1988bc=_0x5e130a['end']['getLastMatchingPosition'](_0x47bbcb,{'direction':'backward'});return(!_0x5e130a['start']['isEqual'](_0x229ae2)||!_0x5e130a['end']['isEqual'](_0x1988bc))&&(_0x229ae2['isBefore'](_0x1988bc)?_0x2bbdb0['updateMarker'](_0x477054,{'range':_0x2bbdb0['createRange'](_0x229ae2,_0x1988bc)}):_0x2bbdb0['removeMarker'](_0x477054),!0x0);}function Ht(_0x3d6193){return _0x251390(_0x3d6193);}function Qt(_0x2975cc){const _0x1e88d7=_0x2975cc['start']['nodeAfter'];return _0x1e88d7&&_0x1e88d7['is']('element');}function Xt(_0x369ac0){return Kt(_0x369ac0)||function(_0x562265){return _0x562265['start']['parent']==_0x562265['end']['nodeBefore']&&_0x562265['start']['isAtEnd'];}(_0x369ac0);}function Yt(_0x1dd0e2,_0x29793a){try{const _0x227565=_0x1dd0e2['getRange']();for(const _0x4f14f4 of _0x29793a)if(_0x1dd0e2!==_0x4f14f4&&_0x227565&&_0x227565['isIntersecting'](_0x4f14f4['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x1ec377,_0x2dffed){return null==_0x1ec377['end']['nodeBefore']&&_0x1ec377['end']['parent']==_0x1ec377['start']['nodeAfter']?tn(_0x1ec377['start']['nodeAfter'],_0x2dffed):_0x1ec377;}function tn(_0x28563e,_0x5ca311){const _0x122771=_0x5ca311['schema']['isObject'](_0x28563e)||_0x5ca311['schema']['isSelectable'](_0x28563e);return _0x5ca311['createRange'](_0x5ca311['createPositionAt'](_0x28563e,'before'),_0x122771?_0x5ca311['createPositionAfter'](_0x28563e):_0x5ca311['createPositionAt'](_0x28563e,'end'));}function nn(_0x51c695,_0x18bc6e,_0x52517f,_0x4942e2){return!!en(_0x51c695,_0x18bc6e)&&_0x52517f['end']['isEqual'](_0x4942e2['start']);}function en(_0x25c27f,_0x4ca2bb){if(!_0x25c27f['_isDataLoaded']||!_0x4ca2bb['_isDataLoaded'])return!0x1;const _0x78187c=new Set(Object['keys'](_0x25c27f['attributes'])),_0x11c548=new Set(Object['keys'](_0x4ca2bb['attributes']));if(_0x78187c['delete']('groupId'),_0x11c548['delete']('groupId'),0x0==_0x78187c['size']&&0x0==_0x11c548['size'])return!0x0;if(_0x78187c['size']!=_0x11c548['size'])return!0x1;const _0x12fd7f={..._0x25c27f['attributes']},_0x1a1d94={..._0x4ca2bb['attributes']};return delete _0x12fd7f['groupId'],delete _0x1a1d94['groupId'],JSON['stringify'](_0x12fd7f)==JSON['stringify'](_0x1a1d94);}function sn(_0xb4e578,_0x67f58d){const _0x5c2654=on(_0xb4e578['attributes']),_0x22724c=on(_0x67f58d);if(!_0xb4e578['_isDataLoaded'])return!0x1;for(const _0x395ccf of Object['keys'](_0x22724c))if(!_0x478de4(_0x5c2654[_0x395ccf],_0x22724c[_0x395ccf]))return!0x1;return!0x0;}function on(_0x40363f){const _0xfe06f1=Object['assign']({},_0x40363f);return delete _0xfe06f1['skipNestingCheck'],delete _0xfe06f1['tablePasteChainId'],_0xfe06f1;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
-
_0x37b356(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2275a4,_0x5e56ad,_0x31d170,_0x4cead2){super(),this['model']=_0x5e56ad,this['view']=_0x31d170,this['commentThreadController']=_0x4cead2,this['_editor']=_0x2275a4,this['_acceptCommand']=_0x2275a4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2275a4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x265449,_0x45670e)=>_0x265449||_0x45670e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x17432a=>_0x17432a&&this['_editor']['model']['canEditAt'](_0x5e56ad['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x14d06c=>_0x14d06c&&this['_editor']['model']['canEditAt'](_0x5e56ad['getRanges']())),this['_pendingAction']=null,_0x31d170['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x31d170,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x31d170,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x31d170,'change:isDirty',()=>{_0x31d170['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 _0x35b5a8=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35b5a8);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2c68c5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x12d28c,_0x864c92,_0xad8093,_0x5d62a7){super(_0x12d28c),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4068c0(_0x12d28c,o(_0x12d28c,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x864c92['authoredAt']),this['bind']('authoredAt')['to'](_0x864c92),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',_0x864c92,'authoredAt',this,'descriptionParts',(_0x1e9f4a,_0x244cf5,_0x4a0e5b)=>{const _0x45b9bf=_0x4a0e5b['map'](_0x16c0c0=>ls(_0x16c0c0['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1e9f4a-0x1,_0x864c92['author']['name'],_0x244cf5?_0x5d62a7['formatDateTime'](_0x244cf5):'',new DOMParser()['parseFromString'](_0x45b9bf,'text/html')['body']['textContent']]);}),this['focusables']=new _0x36c5eb(),this['focusTracker']=new _0x17add3(),this['keystrokes']=new _0x3511a7(),this['focusCycler']=new _0x26ad04({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x11301c=>_0x11301c['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x864c92,this['_localUser']=_0xad8093,this['_config']=_0x5d62a7,_0x5d62a7['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x19aaab(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x28384c}=this['_config'];this['commentsListView']=new _0x28384c(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',_0x490ca2=>_0x490ca2+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x36e0e5,_0x1f8142)=>_0x36e0e5||!!_0x1f8142);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x264821}=this['_config'],_0x131ed9=new _0x264821(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x504eb6=_0x131ed9['commentInputView'];return _0x131ed9['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x504eb6,'value',(_0x76c4ca,_0xc50648,_0x42addb)=>!!_0x42addb||_0x76c4ca&&!_0xc50648),_0x504eb6['on']('submit',(_0x207774,_0x16bba1)=>{this['fire']('addComment',_0x16bba1),_0x504eb6['editor']['setData']('');}),_0x504eb6['on']('cancel',()=>this['focus']()),_0x504eb6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x131ed9;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x35ca9e,_0xcf39e,_0x1fae76,_0x20b1a9){super(_0x35ca9e,_0xcf39e,_0x1fae76,_0x20b1a9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2d4fd6=>_0x2d4fd6&&_0x2d4fd6[0x0]?_0x2d4fd6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1f0169,_0x596d27)=>{let _0x2edfbb='';for(const _0x5e07a6 of _0x1f0169)_0x2edfbb+='<p>'+ls(_0x5e07a6['content'],_0x5e07a6['color'])+'</p>';return _0x596d27?_0x2edfbb:_0x4c1a38(_0x2edfbb,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x20b1a9['SuggestionView'](_0x35ca9e,_0xcf39e,{'formatDateTime':_0x20b1a9['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 _0x5ee331=this['bindTemplate'],_0x4c3d4a=[this['suggestionView']];return this['commentsListView']&&_0x4c3d4a['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4c3d4a['push'](this['commentThreadInputView']),_0x4c3d4a['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ee331['if']('isActive','ck-suggestion-wrapper--active'),_0x5ee331['to']('type',_0x3f071d=>'ck-suggestion-'+_0x3f071d),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':_0x5ee331['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4c3d4a};}['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 _0x2c68c5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x391910,_0x23e677,_0x4a290b){super(_0x391910),this['_model']=_0x23e677,this['_config']=_0x4a290b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x23e677),this['acceptButton']=this['_createButton'](o(_0x391910,'Accept\x20suggestion'),_0x182793,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x391910,'Discard\x20suggestion'),_0x2be11b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x299ab3(_0x391910,_0x23e677['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x36c5eb([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x17add3(),this['keystrokes']=new _0x3511a7(),this['focusCycler']=new _0x26ad04({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2ef68e=>_0x2ef68e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2fd14d=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2fd14d['innerHTML']=this['description'],this['on']('change:description',(_0x2b5b1b,_0x4995ad,_0x33f061)=>{_0x2fd14d['innerHTML']=_0x33f061;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4bd36e=this['bindTemplate'],_0x23cb62=[{'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':_0x4bd36e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4bd36e['to']('authoredAt',_0x24c399=>this['_config']['formatDateTime'](_0x24c399))}]}]},{'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']&&_0x23cb62['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':_0x23cb62}]};}['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'](_0x2c3268,_0x3a3603,_0x5e6100,_0x474452,_0x17616b){const _0x5a0323=new _0xc1076f(this['locale']);return _0x5a0323['set']({'label':_0x2c3268,'icon':_0x3a3603,'tooltip':!0x0,'tooltipPosition':_0x17616b}),_0x5a0323['extendTemplate']({'attributes':{'class':_0x5e6100}}),_0x5a0323['on']('execute',()=>{this['fire'](_0x474452,this['_model']['id']);}),_0x5a0323;}['_setupKeyboardNavigation'](){const _0x29485f=this['element'];this['keystrokes']['listenTo'](_0x29485f);for(const _0x161cbd of this['focusables'])this['focusTracker']['add'](_0x161cbd['element']),this['keystrokes']['listenTo'](_0x161cbd['element']);this['keystrokes']['set']('enter',(_0x439685,_0x40852e)=>{_0x29485f===_0x439685['target']&&(this['focusCycler']['focusFirst'](),_0x40852e());}),this['keystrokes']['set']('esc',(_0xc54156,_0x5a45a2)=>{_0x29485f!==_0xc54156['target']&&(this['focus'](),_0x5a45a2());});}}class u extends _0x2c25bf{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x4059bd,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x232a80){super(_0x232a80),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x23328e=this['editor']['config'];_0x23328e['define']('trackChanges.SuggestionThreadView',fe),_0x23328e['define']('trackChanges.SuggestionView',we),_0x23328e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x23328e['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x190749,_0x5c6897){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5ae0bf,_0x1252bf]of this['_handleControllerBuffer']){const _0x128f1c=this['_suggestionToController']['has'](_0x5ae0bf);_0x128f1c||_0x1252bf?_0x128f1c&&_0x1252bf&&this['_destroyController'](_0x5ae0bf):this['_initializeController'](_0x5ae0bf);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x190749,_0x5c6897);}['init'](){const _0x2122b8=this['editor'],_0x7fb488=_0x2122b8['plugins']['get']('TrackChangesEditing'),_0x3c095b=_0x2122b8['plugins']['get']('Annotations'),_0x1f1d01=_0x2122b8['plugins']['get']('EditorAnnotations'),_0x33581d=_0x2122b8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1f1d01['addSourceCollector'](()=>{const _0x34afce=[];for(const [_0x5b9070,_0x4288a5]of Array['from'](this['_suggestionToController'])){const _0x53a2f2=_0x5b9070['getAllAdjacentSuggestions'](),_0x557b66=[];for(const _0x479db9 of _0x53a2f2){if(!_0x479db9['isInContent'])continue;if(_0x479db9['isMultiRange']){_0x557b66['push'](..._0x479db9['getRanges']());continue;}const _0x4d5add=_0x479db9['getFirstRange']();if(_0x557b66['length']>0x0){const _0x2a77ba=_0x557b66[0x0]['getJoined'](_0x4d5add);if(_0x2a77ba){_0x557b66[0x0]=_0x2a77ba;continue;}}_0x557b66['push'](_0x4d5add);}_0x34afce['push']([_0x4288a5['view'],_0x557b66]);}return _0x34afce;}),this['listenTo'](_0x7fb488,'suggestionLoaded',(_0xd7a0e1,_0x21de87)=>{this['listenTo'](_0x21de87,'change:previous',(_0x56ef6a,_0x23425d,_0x55f7c6,_0x3f3aa4)=>{_0x21de87['isInContent']&&(null==_0x55f7c6?(this['_updateController'](_0x3f3aa4['head']),this['_handleSuggestionControllerDelayed'](_0x21de87,!0x1)):(this['_updateController'](_0x55f7c6['head']),null==_0x3f3aa4&&this['_handleSuggestionControllerDelayed'](_0x21de87,!0x0)));}),null!==_0x21de87['previous']?this['_updateController'](_0x21de87['head']):this['_handleSuggestionControllerDelayed'](_0x21de87,!0x1);}),this['listenTo'](_0x7fb488,'suggestionUnloaded',(_0x5a47a0,_0x27f5ce,_0x1068f0)=>{this['stopListening'](_0x27f5ce,'change:previous'),this['_handleControllerBuffer']['delete'](_0x27f5ce),this['_suggestionToController']['has'](_0x27f5ce)&&this['_destroyController'](_0x27f5ce),_0x1068f0&&this['_updateController'](_0x1068f0['head']);}),this['listenTo'](_0x7fb488,'suggestionChanged',(_0x49d13c,_0x3dd6d1)=>{this['_updateController'](_0x3dd6d1);}),this['listenTo'](_0x3c095b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x33581d,'addComment',(_0xe3f9bb,{threadId:_0xc156ba,isFromAdapter:_0x15c1bc})=>{if(_0x15c1bc||!_0x7fb488['hasSuggestion'](_0xc156ba))return;const _0x4f00cc=_0x7fb488['getSuggestion'](_0xc156ba);this['_suggestionToController']['get'](_0x4f00cc)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1680ab=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x53714;for(const _0x7f9ee2 in _0x1680ab){const _0x9e1ff1=_0x7f9ee2,_0x3062d3=_0x1680ab[_0x9e1ff1];if('trackChangesLicenseKeyValid'==_0x3062d3||'trackChangesLicenseKeyInvalid'==_0x3062d3||'trackChangesLicenseKeyExpired'==_0x3062d3||'trackChangesLicenseKeyDomainLimit'==_0x3062d3||'trackChangesLicenseKeyNotAllowed'==_0x3062d3||'trackChangesLicenseKeyEvaluationLimit'==_0x3062d3||'trackChangesLicenseKeyUsageLimit'==_0x3062d3){delete _0x1680ab[_0x9e1ff1],_0x53714=_0x3062d3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x53714&&_0x1680ab['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x53714&&_0x1680ab['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x53714&&_0x1680ab['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x53714&&_0x1680ab['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x53714&&_0x1680ab['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x53714&&_0x1680ab['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x15d241){const _0x163250=this['_suggestionToController']['get'](_0x15d241);if(!_0x163250)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x163250['view'])||null;}['getSuggestionForAnnotation'](_0x458ac2){const _0x108655=this['_viewToController']['get'](_0x458ac2['innerView']);return _0x108655?_0x108655['model']:null;}['_refreshActiveMarkers'](){const _0x5221a0=this['editor']['plugins']['get']('Annotations'),_0x2795ea=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc172ee=Array['from'](_0x5221a0['activeAnnotations'],_0x401f65=>_0x401f65['innerView'])['filter'](_0x107220=>this['_viewToController']['has'](_0x107220)),_0x1d31f8=[];for(const _0x48e12d of _0xc172ee){const _0x110a6b=this['_viewToController']['get'](_0x48e12d)['model']['getAllAdjacentSuggestions']();_0x1d31f8['push'](..._0x110a6b['reduce']((_0xb19105,_0x4e5a62)=>[..._0xb19105,..._0x4e5a62['getMarkerNames']()],[]));}_0x2795ea['activeMarkers']=_0x1d31f8;}['_addUIComponentsToFactory'](){const _0x3565b6=this['editor'],_0x13be71=_0x3565b6['locale'],_0x53cbbe=o(_0x13be71,'Track\x20changes'),_0x2dc9c0=new _0x2da752([{'type':'switchbutton','model':new _0x57edbf({'withText':!0x0,'isToggleable':!0x0,'label':_0x53cbbe,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x57edbf({'withText':!0x0,'label':o(_0x13be71,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x57edbf({'withText':!0x0,'label':o(_0x13be71,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x57edbf({'withText':!0x0,'label':o(_0x13be71,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x57edbf({'withText':!0x0,'label':o(_0x13be71,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3565b6['plugins']['has']('TrackChangesPreview')&&_0x2dc9c0['addMany']([{'type':'separator'},{'type':'button','model':new _0x57edbf({'withText':!0x0,'label':o(_0x13be71,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0xe69657 of _0x2dc9c0)if(ke(_0xe69657)){const _0x3eb9d0=_0x3565b6['commands']['get'](_0xe69657['model']['commandName']);_0xe69657['model']['bind']('isOn','isEnabled')['to'](_0x3eb9d0,'value','isEnabled');}_0x3565b6['ui']['componentFactory']['add']('trackChanges',_0x196f9a=>this['_createToolbarButton'](_0x196f9a,_0x2dc9c0,_0x53cbbe)),_0x3565b6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5a7986=>this['_createMenuBarMenu'](_0x5a7986,_0x2dc9c0,_0x53cbbe));}['_createToolbarButton'](_0x568a8f,_0x40738d,_0x3c63c1){const _0x46426c=_0x4c53bc(_0x568a8f,_0x3f36f5),_0x1a33b1=this['editor']['commands']['get']('trackChanges');_0x46426c['buttonView']['set']({'tooltip':_0x3c63c1,'label':_0x3c63c1,'icon':_0x5badb2}),_0x46426c['buttonView']['bind']('isOn')['to'](_0x1a33b1,'value'),_0x46426c['buttonView']['on']('execute',()=>{_0x1a33b1['execute'](),this['editor']['editing']['view']['focus']();}),_0xbdc62e(_0x46426c,_0x40738d,{'role':'menu'});const _0x2fb83d=[];for(const _0x3ef020 of _0x40738d)ke(_0x3ef020)&&_0x2fb83d['push'](this['editor']['commands']['get'](_0x3ef020['model']['commandName']));const _0x141ff5=_0x46426c['buttonView'];return _0x141ff5['actionView']['unbind']('isEnabled'),_0x141ff5['arrowView']['unbind']('isEnabled'),_0x141ff5['actionView']['bind']('isEnabled')['to'](_0x1a33b1,'isEnabled'),_0x141ff5['arrowView']['bind']('isEnabled')['toMany'](_0x2fb83d,'isEnabled',(..._0x24fd1a)=>_0x24fd1a['some'](_0x320ac3=>_0x320ac3)),_0x46426c['on']('execute',_0x278818=>{this['editor']['execute'](_0x278818['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x46426c;}['_createMenuBarMenu'](_0x4a7a48,_0x4ed511,_0x1e7874){const _0x3b1a8d=new _0x562f71(_0x4a7a48),_0x275a50=this['editor']['commands']['get']('trackChanges');_0x3b1a8d['buttonView']['set']({'label':_0x1e7874,'icon':_0x5badb2});const _0x27c097=new _0x3bf9c8(_0x4a7a48);for(const _0xf9d616 of _0x4ed511){if('separator'==_0xf9d616['type']){_0x27c097['items']['add'](new _0xe6d37c(_0x4a7a48));continue;}const _0x1587ec=new _0x239f02(_0x4a7a48,_0x3b1a8d),_0x3b969f=new _0x21c88a(_0x4a7a48),_0x5a6110=_0xf9d616['model'];_0x3b969f['bind'](...Object['keys'](_0x5a6110))['to'](_0x5a6110),_0x3b969f['delegate']('execute')['to'](_0x3b1a8d),_0x3b969f['on']('execute',()=>{this['editor']['execute'](_0x5a6110['commandName']),this['editor']['editing']['view']['focus']();}),_0x1587ec['children']['add'](_0x3b969f),_0x27c097['items']['add'](_0x1587ec);}return _0x3b1a8d['bind']('isEnabled')['to'](_0x275a50,'isEnabled'),_0x3b1a8d['panelView']['children']['add'](_0x27c097),_0x3b1a8d;}['_initializeController'](_0x230aef){const _0x59b991=this['editor'],_0x2fc7f5=_0x59b991['config'],_0x303a59=_0x59b991['plugins']['get']('Annotations'),_0x434ad7=_0x59b991['plugins']['get']('CommentsRepository'),_0x40bf5d=_0x59b991['plugins']['get']('EditorAnnotations'),_0x4281f5=_0x59b991['plugins']['get'](_0x4059bd)['me'],_0x11c851=_0x2fc7f5['get']('trackChanges')['SuggestionThreadView'],_0x3a80a8=_0x2fc7f5['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x24c37d,CommentThreadInputView:_0x8e2781}=_0x59b991['plugins']['get']('CommentsUI');let _0x2c1a37,_0x340aef,_0x879e79;this['_annotationViews']['has'](_0x230aef['id'])?(_0x340aef=this['_annotationViews']['get'](_0x230aef['id']),_0x2c1a37=_0x340aef['mainView']):(_0x2c1a37=new _0x11c851(_0x59b991['locale'],_0x230aef,_0x4281f5,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2fc7f5['get']('comments.editorConfig'),'licenseKey':_0x2fc7f5['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2fc7f5['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2fc7f5['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2fc7f5['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4544aa(_0x2fc7f5['get']('locale'),_0x59b991['locale']),'CommentView':_0x2fc7f5['get']('comments')['CommentView'],'CommentsListView':_0x24c37d,'CommentThreadInputView':_0x8e2781,'SuggestionView':_0x3a80a8}),_0x2c1a37['suggestionView']['acceptButton']['on']('execute',()=>{_0x59b991['editing']['view']['focus']();}),_0x2c1a37['suggestionView']['discardButton']['on']('execute',()=>{_0x59b991['editing']['view']['focus']();}),_0x340aef=_0x303a59['createAnnotationView'](this['editor']['locale'],_0x2c1a37),_0x340aef['bind']('isDirty')['to'](_0x2c1a37,'isDirty'),_0x340aef['bind']('length')['to'](_0x2c1a37),_0x340aef['bind']('type')['to'](_0x2c1a37,'type',_0x43c9fe=>'suggestion-'+_0x43c9fe),_0x2c1a37['on']('escape',()=>{_0x879e79['fire']('escape');}),this['_annotationViews']['set'](_0x230aef['id'],_0x340aef));const _0x2a72f9=_0x434ad7['createCommentThreadController'](_0x230aef['commentThread'],_0x2c1a37),_0x37fa31=new pe(_0x59b991,_0x230aef,_0x2c1a37,_0x2a72f9),_0x84327=_0x230aef['getAllAdjacentSuggestions']()['filter'](_0xf792e9=>_0xf792e9['isInContent']);_0x2c1a37['descriptionParts']=_0x59b991['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x84327),this['_suggestionToController']['set'](_0x230aef,_0x37fa31),this['_viewToController']['set'](_0x2c1a37,_0x37fa31);const _0x41430a=()=>{const _0x3e79ed=[],_0x4f3dba=_0x230aef['getAllAdjacentSuggestions']()['filter'](_0x36a843=>_0x36a843['isInContent']);for(const _0x1288dd of _0x4f3dba)_0x3e79ed['push'](..._0x1288dd['getMarkers']());return _0xc248d0(_0x59b991['editing'],_0x3e79ed);};_0x879e79=_0x303a59['createAnnotation']({'view':_0x340aef,'target':_0x41430a,'type':()=>'suggestion-'+_0x37fa31['view']['type'],'isVisible':!!_0x41430a()}),_0x434ad7['_bindAnnotationToEditors'](_0x2c1a37,_0x879e79),_0x303a59['add'](_0x879e79),_0x40bf5d['registerAnnotation'](_0x879e79);}['_destroyController'](_0x4e4f1b){const _0x596731=this['editor']['plugins']['get']('CommentsRepository'),_0x46a833=this['editor']['plugins']['get']('Annotations'),_0x4bc88e=this['_suggestionToController']['get'](_0x4e4f1b),_0xb93b4d=_0x4bc88e['view'],_0x54db02=_0x46a833['getByInnerView'](_0xb93b4d);_0x596731['_unbindEditors'](_0xb93b4d),_0x54db02&&_0x46a833['remove'](_0x54db02),this['_suggestionToController']['delete'](_0x4e4f1b),this['_viewToController']['delete'](_0xb93b4d),_0x4bc88e['destroy']();}['_updateController'](_0x4a9481){if(!_0x4a9481['isInContent']||!this['_suggestionToController']['has'](_0x4a9481))return;const _0x1c0b00=this['editor']['plugins']['get']('TrackChangesEditing'),_0x29985b=this['_suggestionToController']['get'](_0x4a9481),_0x5bf651=_0x4a9481['getAllAdjacentSuggestions']();_0x29985b['view']['descriptionParts']=_0x1c0b00['descriptionFactory']['getDescriptions'](_0x5bf651);}['destroy'](){for(const _0x665254 of this['_suggestionToController']['keys']())this['_destroyController'](_0x665254);for(const _0x555cf8 of this['_annotationViews']['values']())_0x555cf8['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x33f9b2){return'model'in _0x33f9b2;}class Ne extends _0x2c25bf{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3fa31a){this['editor']['plugins']['get'](d)['adapter']=_0x3fa31a;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x51b21d){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x51b21d);}['getSuggestions']({skipNotAttached:_0x26a84b=!0x1,toJSON:_0x28e59d=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x26a84b,'toJSON':_0x28e59d});}['getSuggestion'](_0x2c494d){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x2c494d);}}const p=['Pagination'];class re extends _0x2c25bf{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x43d9aa=this['editor'];if(_0x43d9aa['config']['define']('trackChangesData.editorCreator',_0x43d938=>{const _0x1e13ec=_0x43d9aa['model']['document']['getRootNames']()['reduce']((_0x528cc8,_0x591d56)=>(_0x528cc8[_0x591d56]='',_0x528cc8),{});return _0x43d9aa['constructor']['create'](_0x1e13ec,_0x43d938);}),'function'!=typeof _0x43d9aa['config']['get']('trackChangesData')['editorCreator'])throw new _0x1dd383('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x570bcc){return P(this['editor'],!0x0,_0x570bcc);}['getDataWithDiscardedSuggestions'](_0x46ee09){return P(this['editor'],!0x1,_0x46ee09);}}class Fe extends _0x2c25bf{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57600c){function _0x3b077f(_0x5c2240){return _0x5c2240['map'](_0x5b84a8=>String['fromCharCode'](_0x5b84a8))['join']('');}super(_0x57600c),this['result']='end',_0x57600c[_0x3b077f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3b077f([0x76,0x69,0x65,0x77])][_0x3b077f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3b077f([0x61,0x75,0x74,0x6f]),_0x57600c[_0x3b077f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3b077f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3b077f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3b077f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3b077f([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(_0x23c12e){return void 0x0!==_0x23c12e['getRootsAttributes'];}async function P(_0x33b919,_0x2c0334,_0x146963){const _0x241579=_0x24693d(_0x33b919,p);_0x241579['plugins']['push'](d,Fe),_0x241579['rootsAttributes']=De(_0x33b919)?_0x33b919['getRootsAttributes']():void 0x0;const _0x527533=document['createDocumentFragment'](),_0x495ace=_0x33b919['config']['get']('trackChangesData')['editorCreator'],_0x4dadd8=await _0x495ace(_0x241579,()=>function(_0x4d2c5e){const _0x3786a9=document['createElement']('div');return _0x4d2c5e['appendChild'](_0x3786a9),_0x3786a9;}(_0x527533));!function(_0x1fd6be,_0x225395){const _0x1f041e=_0x1fd6be['model']['document']['getRootNames']()['reduce']((_0x4c6a3c,_0x14536e)=>(_0x4c6a3c[_0x14536e]=_0x1fd6be['data']['get']({'rootName':_0x14536e}),_0x4c6a3c),{}),_0x5e6ecc=_0x1fd6be['plugins']['get']('Users')['users']['map'](_0x4b73b0=>({'id':_0x4b73b0['id'],'name':_0x4b73b0['name']})),_0x12720d=_0x1fd6be['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3c8502=_0x1fd6be['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5a51af=_0x225395['plugins']['get']('Users'),_0x798754=_0x225395['plugins']['get']('TrackChangesEditing'),_0x2c3cb7=_0x225395['plugins']['get']('CommentsRepository');for(const _0x31163c of _0x2c3cb7['getCommentThreads']())_0x31163c['remove']();for(const _0x4ba107 of _0x5e6ecc)_0x5a51af['getUser'](_0x4ba107['id'])||_0x5a51af['addUser'](_0x4ba107);_0x5a51af['me']||_0x5a51af['useAnonymousUser']();for(const _0x1b8552 of _0x3c8502)_0x2c3cb7['addCommentThread'](_0x1b8552);for(const _0x39ce1b of _0x12720d)_0x798754['addSuggestionData'](_0x39ce1b);_0x225395['data']['set'](_0x1f041e);}(_0x33b919,_0x4dadd8),_0x4dadd8['execute'](_0x2c0334?'acceptAllSuggestions':'discardAllSuggestions');const _0x426fac=De(_0x4dadd8)?_0x4dadd8['getFullData'](_0x146963):_0x4dadd8['data']['get'](_0x146963);return await _0x4dadd8['destroy'](),_0x426fac;}class Me extends _0x2c68c5{['options'];constructor(_0x525b65,_0x32c261){super(_0x525b65),this['options']=_0x32c261,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'](_0x3c4186,_0x294d08){if(!this['element'])return;const _0x334fb7=[];for(const [_0x4d3c2d,_0x53270b]of _0x3c4186){const _0x456cf2=document['createElement']('div');_0x456cf2['setAttribute']('data-ck-root-name',_0x4d3c2d),_0x456cf2['className']=_0x53270b['classes']+'\x20ck-track-changes-preview__root-container',_0x456cf2['innerHTML']=_0x53270b['content'],_0x334fb7['push'](_0x456cf2);}_0x294d08(this['element'],_0x334fb7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x122ac4{constructor(_0x27cca2){super(_0x27cca2),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x3f12d9=this['editor'],_0x2e6979=_0x3f12d9['locale'],_0x599292=_0x3f12d9['plugins']['get']('Dialog');let _0x306174;const _0x7ade06=function(_0x5b721a){const _0x14e692={};if('editables'in _0x5b721a['ui']['view']){for(const [_0x1f6b6f,_0xf62f2d]of Object['entries'](_0x5b721a['ui']['view']['editables']))_0x14e692[_0x1f6b6f]=_0xf62f2d['element'];}else _0x14e692[_0x5b721a['model']['document']['getRootNames']()[0x0]]=_0x5b721a['ui']['view']['editable']['element'];return _0x14e692;}(_0x3f12d9),_0x31f0eb=function(_0x6407e7){let _0x2aac0b=0x0;for(const _0x28ee4b of Object['values'](_0x6407e7))_0x2aac0b=Math['max'](_0x2aac0b,_0x28ee4b['getBoundingClientRect']()['width']);let _0x10792f=0x0;for(const _0x9df2ac of Object['values'](_0x6407e7))_0x10792f+=_0x9df2ac['getBoundingClientRect']()['height'];const _0x554052=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x34dd0a=Math['min'](_0x10792f,_0x554052);return{'width':_0x2aac0b,'height':_0x34dd0a};}(_0x7ade06);_0x599292['show']({'id':'finalContentPreview','title':o(_0x2e6979,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2e6979,{'dialogRects':_0x31f0eb}),'onHide':()=>{_0x306174['detachFromDom']();},'onShow':()=>{_0x3f12d9['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x57f121=>{const _0x2f6cb9=this['_standarizeRootsData'](_0x57f121,_0x3f12d9,_0x7ade06);_0x599292['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2f6cb9,_0x3f12d9['config']['get']('trackChanges.preview.renderFunction'));}),_0x306174=new _0x5cdd6f(_0x2e6979,[_0x599292['view']]),_0x306174['attachToDom'](),_0x306174['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x3f12d9['once']('destroy',()=>{_0x306174['detachFromDom']();});const _0x8e97d3=_0x599292['view']['headerView']['class'];_0x599292['view']['headerView']['class']=_0x8e97d3?_0x8e97d3+'\x20ck-reset_all':'ck-reset_all',_0x599292['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x599292['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4089e7=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1be34a=_0x4089e7['previewMode'],_0x5bf0df={};if('$labels'===_0x1be34a){for(const _0x47955c of _0x4089e7['getMergeFieldsIds']())_0x5bf0df[_0x47955c]=_0x4089e7['getLabel'](_0x47955c)||_0x47955c;}else{const _0x7ca62d='$defaultValues'===_0x1be34a?_0x4089e7['getDefaultValues']():_0x4089e7['getDataSetValues'](_0x1be34a,!0x0);for(const _0x42b3e3 of Object['entries'](_0x7ca62d)){const [_0x233278,_0x1b4f48]=_0x42b3e3;_0x5bf0df[_0x233278]=null!==_0x1b4f48?_0x1b4f48:_0x4089e7['getLabel'](_0x233278)||_0x233278;}}return{'mergeFieldsData':_0x5bf0df};}['_standarizeRootsData'](_0x1bcabe,_0x32f48d,_0x4adad0){let _0x165d70;if('string'==typeof _0x1bcabe){const _0x5c6c20=_0x32f48d['model']['document']['getRootNames']()[0x0];_0x165d70={[_0x5c6c20]:_0x1bcabe};}else _0x165d70=_0x1bcabe;const _0x46e7d0=this['_fixMediaEmbeds'](_0x165d70,_0x32f48d),_0x534ce8=function(_0x3cae0b,_0x7a55c2){for(const [_0xae47d1,_0x1c006e]of _0x3cae0b)_0x1c006e['classes']=_0x7a55c2[_0xae47d1]['classList']['value']['replace']('ck-focused','');return _0x3cae0b;}(this['_sortRoots'](_0x32f48d)['reduce']((_0x4d2f75,_0x30c7e0)=>(_0x4d2f75['push']([_0x30c7e0,{'content':_0x46e7d0[_0x30c7e0],'classes':''}]),_0x4d2f75),[]),_0x4adad0);return _0x534ce8;}['_fixMediaEmbeds'](_0x41bdc6,_0x3f0d68){if(!_0x3f0d68['plugins']['has']('MediaEmbedEditing'))return _0x41bdc6;const _0xf8e98c=_0x3f0d68['plugins']['get']('MediaEmbedEditing');for(const [_0x41fac6,_0x1a0595]of Object['entries'](_0x41bdc6)){const _0x2fb8c7=document['createElement']('div');_0x2fb8c7['innerHTML']=_0x1a0595,(_0x2fb8c7['querySelectorAll']('figure.media')['forEach'](_0x49436f=>{const _0x1e50f8=_0x49436f['querySelector']('oembed');if(_0x1e50f8){const _0x43f937=_0x1e50f8['getAttribute']('url');if(_0x43f937){const _0x51f24f=_0xf8e98c['registry']['getMediaViewElement'](new _0x2aa751(_0x3f0d68['editing']['view']['document']),_0x43f937,{'elementName':'','renderForEditingView':!0x0}),_0x312601=document['createElement']('div');_0x312601['classList']['add']('ck-media__wrapper'),_0x51f24f['render'](_0x312601,_0x3f0d68['editing']['view']['domConverter']),_0x1e50f8['replaceWith'](_0x312601);}}}),_0x41bdc6[_0x41fac6]=_0x2fb8c7['innerHTML']);}return _0x41bdc6;}['_sortRoots'](_0x1bef95){if(!function(_0x50f88f){return void 0x0!==_0x50f88f['getRootsAttributes'];}(_0x1bef95))return _0x1bef95['model']['document']['getRootNames']();const _0x4c4880=[],_0x65b2d5=new Map();for(const _0x3072d8 of _0x1bef95['model']['document']['getRootNames']()){const _0x4b285f=_0x1bef95['editing']['view']['getDomRoot'](_0x3072d8)['getClientRects']()['item'](0x0);_0x4c4880['push'](_0x3072d8),_0x65b2d5['set'](_0x3072d8,_0x4b285f);}return _0x4c4880['sort']((_0x5926e4,_0x219a1a)=>{const _0x4f206d=_0x65b2d5['get'](_0x5926e4),_0x1619cd=_0x65b2d5['get'](_0x219a1a);return _0x4f206d['y']-_0x1619cd['y']||_0x4f206d['x']-_0x1619cd['x'];}),_0x4c4880;}}class Ue extends _0x2c25bf{static get['requires'](){return[re,_0x1bfc1d];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x111cf4){super(_0x111cf4),_0x111cf4['commands']['add']('previewFinalContent',new te(this['editor'])),_0x111cf4['config']['define']('trackChanges.preview.renderFunction',(_0x2a5ea8,_0x1367b6)=>{for(const _0x35be12 of _0x1367b6)_0x2a5ea8['appendChild'](_0x35be12);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|
|
23
|
+
import{Command as _0x1f4001,Plugin as _0x9e29f0,PendingActions as _0x52867b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x252dac,ObservableMixin as _0x33adcc,uid as _0x40f117,priorities as _0x5eef40,insertToPriorityArray as _0x3151e3,logWarning as _0x558396,getEnvKeystrokeText as _0x1503ad,FocusTracker as _0x157adc,KeystrokeHandler as _0x27b621,Collection as _0x5a5fd7}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x498753,IconCancel as _0xdf5f6b,IconTrackChanges as _0x313385}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xac7b61,View as _0x28c9fa,ViewCollection as _0x536947,FocusCycler as _0x481112,UIModel as _0x36736a,createDropdown as _0x4366c9,SplitButtonView as _0x4a9767,addListToDropdown as _0x281428,MenuBarMenuView as _0x6dfe37,MenuBarMenuListView as _0x4e07be,ListSeparatorView as _0x1f9563,MenuBarMenuListItemView as _0xdd1289,MenuBarMenuListItemButtonView as _0x106e3d,BodyCollection as _0x19b9ff,Dialog as _0x41358a}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1c9a28,DocumentCompare as _0x808567,hashObject as _0x48017e,surroundingMarkersDetector as _0x42842e,FOCUS_ANNOTATION_KEYSTROKE as _0x1cbff6,AriaDescriptionView as _0x51bd4a,setupThreadKeyboardNavigation as _0x36423d,trimHtml as _0x28919d,UserView as _0x49dea1,LateFocusButtonView as _0x208724,getDateTimeFormatter as _0x2885d4,getAllMarkersDomElementsSorted as _0x2979c2,sanitizeEditorConfig as _0x5a365d}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x2430fc,ModelLiveRange as _0x238721,ModelLivePosition as _0x411ac9,ViewDowncastWriter as _0x29ff29}from'@ckeditor/ckeditor5-engine/dist/index.js';import{cloneDeep as _0x5db353,set as _0x1f1385,isEqual as _0x2972ae,unset as _0x4deda9,omit as Pt}from'es-toolkit/compat';import{Delete as _0x5cfb4a,Input as _0x305e25}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x221f3c}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x21a327}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{SuggestionsConversion as Jt,fixElementSuggestionRange as Lt,splitSuggestionMarkerName as Gt}from'@ckeditor/ckeditor5-collaboration-core/dist/index.js';class $ extends _0x1f4001{['_enabledCommands'];constructor(_0x584201,_0x2abb82){super(_0x584201),this['_enabledCommands']=_0x2abb82,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 _0x5ce47c of this['editor']['commands']['commands']())_0x5ce47c['affectsData']&&!this['_enabledCommands']['has'](_0x5ce47c)&&_0x5ce47c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3f9f9f of this['editor']['commands']['commands']())_0x3f9f9f['affectsData']&&!this['_enabledCommands']['has'](_0x3f9f9f)&&_0x3f9f9f['clearForceDisabled']('TrackChangesCommand');}}class v extends _0x1f4001{['_suggestions'];constructor(_0x1b0d67,_0x303fb9){super(_0x1b0d67),this['_suggestions']=_0x303fb9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x564be5){const _0x2cc404=this['_suggestions']['get'](_0x564be5);if(!_0x2cc404)throw new _0x252dac('track-changes-accept-suggestion-not-found',this);const _0x395a49=_0x2cc404['getRanges']();this['editor']['model']['canEditAt'](_0x395a49)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2cc404);}}class D extends _0x1f4001{['_suggestions'];constructor(_0x5d8705,_0x5224c0){super(_0x5d8705),this['_suggestions']=_0x5224c0,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f3d3d){const _0x22168a=this['_suggestions']['get'](_0x3f3d3d);if(!_0x22168a)throw new _0x252dac('track-changes-discard-suggestion-not-found',this);const _0x51ab86=_0x22168a['getRanges']();this['editor']['model']['canEditAt'](_0x51ab86)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x22168a);}}function ls(_0x2051a3,_0x205b2f){let _0x3940bc='';return _0x3940bc+=_0x2051a3['split']('*')['map']((_0x346515,_0x501f58)=>_0x501f58%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+cn(_0x346515)+'</span>':cn(_0x346515))['join'](''),_0x205b2f&&(_0x3940bc+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x205b2f['value']+'\x22\x20title=\x22'+_0x205b2f['title']+'\x22></span>'),_0x3940bc;}function cn(_0x3d1043){const _0x27817b=document['createElement']('span');return _0x27817b['innerText']=_0x3d1043,_0x27817b['innerHTML'];}function ts(_0x1f315f){return _0x1f315f['sort']((_0x51de47,_0x5433a4)=>'attribute'===_0x51de47['type']&&'attribute'!==_0x5433a4['type']?-0x1:'attribute'!==_0x51de47['type']&&'attribute'===_0x5433a4['type']?0x1:'deletion'==_0x51de47['type']&&'deletion'!=_0x5433a4['type']?-0x1:'deletion'!=_0x51de47['type']&&'deletion'==_0x5433a4['type']?0x1:0x0);}function to(_0x11ac8e,_0x4bbbda){let _0x15c623,_0x399901=0x0;const _0x55a0fb=[],_0x205f4c=_0x4bbbda['schema'];for(;_0x399901<_0x11ac8e['length'];){const _0x47fbff=_0x11ac8e[_0x399901],_0x41c52f=_0x11ac8e[_0x399901+0x1];_0x15c623||(_0x15c623=_0x4bbbda['createPositionBefore'](_0x47fbff)),un(_0x4bbbda,_0x47fbff,_0x41c52f)||(_0x55a0fb['push'](_0x4bbbda['createRange'](_0x15c623,_0x205f4c['isObject'](_0x47fbff)?_0x4bbbda['createPositionAfter'](_0x47fbff):_0x4bbbda['createPositionAt'](_0x47fbff,'end'))),_0x15c623=null),_0x399901++;}return _0x55a0fb;}function un(_0x469032,_0x1af733,_0x2178f0){if(!_0x2178f0)return!0x1;const _0x5825b9=_0x469032['createPositionAfter'](_0x1af733),_0x14b6c2=_0x469032['createPositionBefore'](_0x2178f0);return _0x5825b9['isTouching'](_0x14b6c2);}function rs(_0x22de72,_0x2b1db0,_0x555e84){for(;_0x555e84['length'];){const _0x1da0d1=_0x555e84['splice'](0x0,0x64);_0x22de72['change'](()=>{for(const _0x3bcea4 of _0x1da0d1)_0x3bcea4['isInContent']&&_0x2b1db0['execute'](_0x3bcea4['id']);});}}class B extends _0x1f4001{['_command'];['_suggestions'];constructor(_0x496679,_0x41958b,_0x2c369e){super(_0x496679),this['_command']=_0x41958b,this['_suggestions']=_0x2c369e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2b3315=Array['from'](this['_suggestions']['values']())['some'](_0x198138=>_0x198138['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2b3315;}['execute'](){const _0x588d37=ts(Array['from'](this['_suggestions']['values']()));for(const _0x346f0c of _0x588d37){const _0x5bcc6a=_0x346f0c['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5bcc6a))return;}rs(this['editor']['model'],this['_command'],_0x588d37);}}class O extends _0x1f4001{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x18e95d,_0x808161,_0xf877c1){super(_0x18e95d),this['_command']=_0x808161,this['_suggestions']=_0xf877c1,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x51bc4f=this['editor']['model']['document']['selection'],_0x2167d2=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x16e240,_0x47e288){const _0x2c089d=Array['from'](_0x16e240['getRanges']()),_0x567c70=new Set();for(const _0x554a8d of _0x47e288)if(_0x554a8d['isInContent']){for(const _0x3215d0 of _0x2c089d)for(const _0x40766b of _0x554a8d['getRanges']())(_0x3215d0['isIntersecting'](_0x40766b)||_0x16e240['isCollapsed']&&!_0x554a8d['isMultiRange']&&_0x554a8d['next']&&_0x40766b['end']['isTouching'](_0x3215d0['start']))&&_0x567c70['add'](_0x554a8d);}return _0x567c70;}(_0x51bc4f,_0x2167d2),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2095a1=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2b03f9 of _0x2095a1){const _0x371f55=_0x2b03f9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x371f55))return;}rs(this['editor']['model'],this['_command'],_0x2095a1);}}class x extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x33adcc(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4fc064,_0x6252ab){super(),this['id']=_0x6252ab['id'],this['type']=_0x6252ab['type'],this['subType']=_0x6252ab['subType']||null,this['author']=_0x6252ab['author'],this['creator']=_0x6252ab['creator']||_0x6252ab['author'],this['isExternal']=Boolean(_0x6252ab['attributes']&&_0x6252ab['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x6252ab['originalSuggestionId']||null,this['_model']=_0x4fc064,this['_onAccept']=_0x6252ab['onAccept'],this['_onDiscard']=_0x6252ab['onDiscard'],this['_onAttributesChange']=_0x6252ab['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6252ab['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 _0x21c576=this;for(;_0x21c576['previous'];)_0x21c576=_0x21c576['previous'];return _0x21c576;}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'](_0x4c2f8f){this['_markerNames']['add'](_0x4c2f8f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xb4c7fc=>this['_model']['markers']['get'](_0xb4c7fc))['filter'](_0x8a25bf=>_0x8a25bf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x63384d=>{for(const _0x5f2e31 of this['getMarkers']())_0x63384d['removeMarker'](_0x5f2e31);}),this['_markerNames']['clear']();}['removeMarker'](_0x4f051e){this['_model']['change'](_0x5257dc=>{_0x5257dc['removeMarker'](_0x4f051e);}),this['_markerNames']['delete'](_0x4f051e);}['addRange'](_0x577bb7){const _0x1c7611='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+x['getMultiRangeId']();this['addMarkerName'](_0x1c7611),this['_model']['change'](_0x43c455=>{_0x43c455['addMarker'](_0x1c7611,{'range':_0x577bb7,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4c54b4){for(const _0x5b02ac of this['getRanges']())if(_0x5b02ac['isIntersecting'](_0x4c54b4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8f9a98=>_0x8f9a98['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x18e235,_0x5ed10a)=>[..._0x18e235,..._0x5ed10a['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3b67ce=this['getRanges']();if(0x1!=_0x3b67ce['length'])return null;const _0x292d39=_0x3b67ce[0x0],_0x1608a4=_0x292d39['start']['nodeAfter'],_0x42327b=_0x292d39['end']['nodeBefore'];return _0x1608a4 instanceof _0x2430fc?_0x1608a4!=_0x42327b?null:_0x1608a4: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 _0x2f1fd8=[];let _0x27d9fa=this['head'];for(;_0x27d9fa;)_0x2f1fd8['push'](_0x27d9fa),_0x27d9fa=_0x27d9fa['next'];return _0x2f1fd8;}['setAttribute'](_0x6a4f84,_0x41063f){const _0x39b409=_0x5db353(this['attributes']);_0x1f1385(_0x39b409,_0x6a4f84,_0x41063f),_0x2972ae(_0x39b409,this['attributes'])||(this['attributes']=_0x39b409,this['_onAttributesChange'](_0x39b409));}['removeAttribute'](_0x309995){const _0x129825=_0x5db353(this['attributes']);_0x4deda9(_0x129825,_0x309995),_0x2972ae(_0x129825,this['attributes'])||(this['attributes']=_0x129825,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 _0x40f117()['substr'](0x1,0x5);}}function o(_0x11cffc,_0x2564dc,_0x3c7ced){const _0x7074be=_0x11cffc['t'],t=_0x11cffc['t'];switch(_0x2564dc){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',_0x3c7ced);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3c7ced);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3c7ced);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3c7ced);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3c7ced);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',_0x3c7ced);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3c7ced);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',_0x3c7ced);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3c7ced);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3c7ced);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3c7ced);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3c7ced);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3c7ced);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3c7ced);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3c7ced);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3c7ced);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3c7ced);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3c7ced);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3c7ced);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3c7ced);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3c7ced);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3c7ced);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3c7ced);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3c7ced);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3c7ced);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'},_0x3c7ced);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3c7ced);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3c7ced);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3c7ced);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3c7ced);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3c7ced);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3c7ced);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3c7ced);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'},_0x3c7ced);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3c7ced);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3c7ced);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3c7ced);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3c7ced);case'ELEMENT_DEFAULT_LIST_DEFAULT':return t({'string':'default\x20list\x20style','id':'ELEMENT_DEFAULT_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST':return t({'string':'bulleted\x20list','id':'ELEMENT_BULLETED_LIST'});case'ELEMENT_BULLETED_LIST_DEFAULT':return t({'string':'bulleted\x20list\x20(default)','id':'ELEMENT_BULLETED_LIST_DEFAULT'});case'ELEMENT_BULLETED_LIST_CIRCLE':return t({'string':'bulleted\x20list\x20(circle)','id':'ELEMENT_BULLETED_LIST_CIRCLE'});case'ELEMENT_BULLETED_LIST_DISC':return t({'string':'bulleted\x20list\x20(disc)','id':'ELEMENT_BULLETED_LIST_DISC'});case'ELEMENT_BULLETED_LIST_SQUARE':return t({'string':'bulleted\x20list\x20(square)','id':'ELEMENT_BULLETED_LIST_SQUARE'});case'ELEMENT_NUMBERED_LIST_DEFAULT':return t({'string':'numbered\x20list\x20(default)','id':'ELEMENT_NUMBERED_LIST_DEFAULT'});case'ELEMENT_NUMBERED_LIST':return t({'string':'numbered\x20list','id':'ELEMENT_NUMBERED_LIST'});case'ELEMENT_NUMBERED_LIST_DECIMAL':return t({'string':'numbered\x20list\x20(decimal)','id':'ELEMENT_NUMBERED_LIST_DECIMAL'});case'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO':return t({'string':'numbered\x20list\x20(decimal\x20with\x20leading\x20zero)','id':'ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO'});case'ELEMENT_NUMBERED_LIST_LOWER_LATIN':return t({'string':'numbered\x20list\x20(lower-latin)','id':'ELEMENT_NUMBERED_LIST_LOWER_LATIN'});case'ELEMENT_NUMBERED_LIST_LOWER_ROMAN':return t({'string':'numbered\x20list\x20(lower-roman)','id':'ELEMENT_NUMBERED_LIST_LOWER_ROMAN'});case'ELEMENT_NUMBERED_LIST_UPPER_LATIN':return t({'string':'numbered\x20list\x20(upper-latin)','id':'ELEMENT_NUMBERED_LIST_UPPER_LATIN'});case'ELEMENT_NUMBERED_LIST_UPPER_ROMAN':return t({'string':'numbered\x20list\x20(upper-roman)','id':'ELEMENT_NUMBERED_LIST_UPPER_ROMAN'});case'ELEMENT_TODO_LIST':return t({'string':'to-do\x20list','id':'ELEMENT_TODO_LIST'});case'ELEMENT_MULTI_LEVEL_LIST':return t({'string':'multi-level\x20list','id':'ELEMENT_MULTI_LEVEL_LIST'});case'REPLACE_TEXT':return t({'string':'*Replace:*\x20%0\x20*with*\x20%1','id':'REPLACE_TEXT'},_0x3c7ced);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3c7ced);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'},_0x3c7ced);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'},_0x3c7ced);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3c7ced);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'},_0x3c7ced);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3c7ced);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'},_0x3c7ced);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3c7ced);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x3c7ced);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x3c7ced);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x3c7ced);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3c7ced);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'},_0x3c7ced);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3c7ced);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 _0x7074be({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3c7ced);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x7074be({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3c7ced);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3c7ced);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'},_0x3c7ced);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'},_0x3c7ced);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'},_0x3c7ced);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2564dc;}}class M{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x20adf9,_0x2a670d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x20adf9,this['_locale']=_0x2a670d;}['getDescriptions'](_0x3916a2){const _0x1189f9=[],_0xa2627f=new Set(),_0x24ab5d=new Set();for(let _0x307ae8=0x0;_0x307ae8<_0x3916a2['length'];_0x307ae8++){const _0x5c137e=_0x3916a2[_0x307ae8];if(!_0x5c137e['isInContent'])continue;const _0x192b04=this['_handleCustomCallbackDescription'](_0x5c137e);if(_0x192b04){if(null!=_0x5c137e['subType']){if(_0xa2627f['has'](_0x5c137e['subType']))continue;_0xa2627f['add'](_0x5c137e['subType']);}_0x1189f9['push'](_0x192b04);}else{if('attribute'==_0x5c137e['type']){const _0x51e061=_0x5c137e['data']['key'];if(_0x24ab5d['has'](_0x51e061))continue;_0x24ab5d['add'](_0x5c137e['data']['key']),_0x51e061==m?this['_handleRenameSuggestionDescription'](_0x1189f9,_0x5c137e):this['_handleAttributeSuggestionDescription'](_0x1189f9,_0x5c137e);continue;}'insertion'!=_0x5c137e['type']&&'deletion'!=_0x5c137e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1189f9,_0x5c137e,_0x3916a2[_0x307ae8+0x1]);}}return this['_resolveDescriptionItems'](_0x1189f9);}['registerDescriptionCallback'](_0x2791e7){this['_customCallbacks']['push'](_0x2791e7);}['registerElementLabel'](_0x4fd600,_0x3a7770,_0x41a2b0=_0x5eef40['normal']){'function'==typeof _0x4fd600?_0x3151e3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4fd600,'label':_0x3a7770,'priority':_0x41a2b0}):this['_itemLabels']['set'](_0x4fd600,_0x3a7770);}['registerAttributeLabel'](_0x46105e,_0x430dad){this['_attributeLabels']['set'](_0x46105e,_0x430dad);}['getItemLabel'](_0x443cad,_0xe5aaf1=0x1){let _0x1cc220;for(const _0x34b656 of this['_itemLabelsCallbacks'])if(_0x34b656['matchingCallback'](_0x443cad)){_0x1cc220=_0x34b656['label'];break;}return _0x1cc220||(_0x1cc220=this['_itemLabels']['get'](_0x443cad['name'])),_0x1cc220?_0x1cc220(_0xe5aaf1):0x1!==_0xe5aaf1?_0xe5aaf1+'\x20'+_0x443cad['name']+'s':''+_0x443cad['name'];}['_addDescriptionItems'](_0x5dc7bd,_0x492c1d){const _0x68a5f4=_0x492c1d['getFirstRange']()['getWalker'](),_0xe2971a='insertion'==_0x492c1d['type']?'add':'remove';for(const _0x4d772a of _0x68a5f4){const _0x18b92b=_0x4d772a['item'],_0x181d59=_0x5dc7bd[_0x5dc7bd['length']-0x1];if(_0x18b92b['is']('$textProxy'))_0x181d59&&_0x181d59['type']['indexOf']('Container')>-0x1&&_0x5dc7bd['pop'](),_0x181d59&&'text'==_0x181d59['type']?_0x181d59[_0xe2971a]+=_0x18b92b['data']:_0x5dc7bd['push']({'type':'text','add':'add'==_0xe2971a?_0x18b92b['data']:'','remove':'remove'==_0xe2971a?_0x18b92b['data']:''});else{if(this['_schema']['isObject'](_0x18b92b)){const _0x14b0a3=_0x18b92b;if(_0x181d59&&_0x181d59['type']['indexOf']('Container')>-0x1&&_0x5dc7bd['pop'](),'elementEnd'==_0x4d772a['type'])continue;_0x181d59&&_0x181d59['type']==_0xe2971a+'Object'&&_0x181d59['element']['name']==_0x14b0a3['name']?_0x181d59['quantity']++:_0x5dc7bd['push']({'type':_0xe2971a+'Object','element':_0x14b0a3,'quantity':0x1}),_0x68a5f4['skip'](_0x102814=>!('elementEnd'==_0x102814['type']&&_0x102814['item']==_0x18b92b));}else{if(this['_schema']['checkChild'](_0x18b92b,'$text')||_0x18b92b['is']('element','softBreak')){const _0x349ea8=_0x18b92b;if('add'==_0xe2971a&&'elementStart'==_0x4d772a['type']||'remove'==_0xe2971a&&'elementEnd'==_0x4d772a['type'])continue;if(_0x181d59&&-0x1==_0x181d59['type']['indexOf']('Container')){'text'==_0x181d59['type']&&(_0x181d59[_0xe2971a]+='\x0a');continue;}let _0x3cb12b;if(_0x3cb12b='add'==_0xe2971a?_0x349ea8['nextSibling']&&!this['_schema']['isObject'](_0x349ea8['nextSibling'])?_0x349ea8['nextSibling']:null:_0x349ea8['previousSibling']&&!this['_schema']['isObject'](_0x349ea8['previousSibling'])?_0x349ea8['previousSibling']:null,_0x349ea8['isEmpty']||_0x3cb12b&&_0x3cb12b['isEmpty']){const _0x32bfdc=_0x3cb12b&&_0x3cb12b['isEmpty']?_0x3cb12b:_0x349ea8;_0x181d59&&_0x181d59['type']==_0xe2971a+'EmptyContainer'&&_0x181d59['element']['name']==_0x32bfdc['name']?_0x181d59['quantity']++:_0x5dc7bd['push']({'type':_0xe2971a+'EmptyContainer','element':_0x32bfdc,'quantity':0x1});}else _0x5dc7bd['push']({'type':_0xe2971a+'Container','element':_0x349ea8});}}}}}['_resolveDescriptionItems'](_0x11708b){const _0x323ba7=this['_locale'],_0xd922b=[],_0x1b649e=[],_0x43e1be=[];for(const _0x21ca23 of _0x11708b)switch(_0x21ca23['type']){case'text':if(_0x21ca23['add']=_0x21ca23['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x21ca23['remove']=_0x21ca23['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x21ca23['add']&&''!=_0x21ca23['remove']){_0xd922b['push']({'type':'replace','content':o(_0x323ba7,'REPLACE_TEXT',['\x22'+_0x21ca23['remove']+'\x22','\x22'+_0x21ca23['add']+'\x22'])});continue;}if(null!=_0x21ca23['add']['match'](/^ +$/)){_0xd922b['push']({'type':'insertion','content':o(_0x323ba7,'*Insert:*\x20%0',o(_0x323ba7,'ELEMENT_SPACE',_0x21ca23['add']['length']))});continue;}if(null!=_0x21ca23['remove']['match'](/^ +$/)){_0xd922b['push']({'type':'deletion','content':o(_0x323ba7,'*Remove:*\x20%0',o(_0x323ba7,'ELEMENT_SPACE',_0x21ca23['remove']['length']))});continue;}if(''!=_0x21ca23['add']){_0xd922b['push']({'type':'insertion','content':o(_0x323ba7,'*Insert:*\x20%0','\x22'+_0x21ca23['add']+'\x22')});continue;}_0xd922b['push']({'type':'deletion','content':o(_0x323ba7,'*Remove:*\x20%0','\x22'+_0x21ca23['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xd922b['push']({'type':'insertion','content':o(_0x323ba7,'*Insert:*\x20%0',this['getItemLabel'](_0x21ca23['element'],_0x21ca23['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xd922b['push']({'type':'deletion','content':o(_0x323ba7,'*Remove:*\x20%0',this['getItemLabel'](_0x21ca23['element'],_0x21ca23['quantity']))});continue;case'addContainer':_0xd922b['push']({'type':'insertion','content':o(_0x323ba7,'*Split:*\x20%0',this['getItemLabel'](_0x21ca23['element'],_0x21ca23['quantity']))});continue;case'removeContainer':_0xd922b['push']({'type':'deletion','content':o(_0x323ba7,'*Merge:*\x20%0',this['getItemLabel'](_0x21ca23['element'],_0x21ca23['quantity']))});continue;case'addFormat':_0x1b649e['push'](_0x21ca23['key']);continue;case'removeFormat':_0x43e1be['push'](_0x21ca23['key']);continue;default:_0xd922b['push'](_0x21ca23);}if(_0x1b649e['length']){const _0x5c1404=_0x1b649e['map'](_0x1f7d02=>this['_attributeLabels']['has'](_0x1f7d02)?this['_attributeLabels']['get'](_0x1f7d02):_0x1f7d02)['join'](',\x20');_0xd922b['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5c1404)});}if(_0x43e1be['length']){const _0x211a3d=_0x43e1be['map'](_0x3c51d6=>this['_attributeLabels']['has'](_0x3c51d6)?this['_attributeLabels']['get'](_0x3c51d6):_0x3c51d6)['join'](',\x20');_0xd922b['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x211a3d)});}return _0xd922b;}['_handleCustomCallbackDescription'](_0x76ebaf){for(const _0x484e8b of this['_customCallbacks']){const _0x44c922=_0x484e8b(_0x76ebaf);if(_0x44c922&&'type'in _0x44c922)return _0x44c922;}}['_handleAttributeSuggestionDescription'](_0x3e5909,_0x348d30){const _0x20d99a=_0x348d30['data'],_0x15bff1=void 0x0===_0x20d99a['newValue']?'removeFormat':'addFormat';_0x3e5909['push']({'type':_0x15bff1,'key':_0x20d99a['key']});}['_handleRenameSuggestionDescription'](_0x476889,_0x3d4a2c){_0x476889['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3d4a2c['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4999be,_0x499075,_0x4f0336){if(this['_addDescriptionItems'](_0x4999be,_0x499075),_0x4f0336&&_0x4f0336['getFirstRange']()&&!_0x499075['getFirstRange']()['end']['isEqual'](_0x4f0336['getFirstRange']()['start'])){const _0x5c8c31=_0x4999be[_0x4999be['length']-0x1],_0x18a598='insertion'==_0x499075['type']?'add':'remove';_0x5c8c31&&'text'==_0x5c8c31['type']&&(_0x5c8c31[_0x18a598]+='\x0a');}}}class R extends _0x9e29f0{['afterInit'](){const _0x613dcf=this['editor'],_0x31e359=_0x613dcf['plugins']['get']('TrackChangesEditing');_0x613dcf['commands']['get']('showAIAssistant')&&_0x31e359['enableCommand']('showAIAssistant');}}class T extends _0x9e29f0{['afterInit'](){const _0x4cb2de=this['editor'],_0x10a10c=_0x4cb2de['plugins']['get']('TrackChangesEditing');_0x4cb2de['commands']['get']('toggleAi')&&_0x10a10c['enableCommand']('toggleAi');}}class E extends _0x9e29f0{['afterInit'](){const _0x741203=this['editor'],_0x21d06b=_0x741203['plugins']['get']('TrackChangesEditing');_0x741203['commands']['get']('aiQuickAction')&&_0x21d06b['enableCommand']('aiQuickAction');}}class U extends _0x9e29f0{['afterInit'](){const _0x5c9f8d=this['editor'],_0x201798=_0x5c9f8d['locale'];if(!_0x5c9f8d['plugins']['has']('AlignmentEditing'))return;const _0x4bce38=_0x5c9f8d['plugins']['get']('TrackChangesEditing');_0x4bce38['enableDefaultAttributesIntegration']('alignment'),_0x4bce38['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x201798,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d0210=this['editor'],_0x50660a=_0x2d0210['locale'];_0x2d0210['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5bb414=>{if('formatBlock'!=_0x5bb414['type'])return;const {data:_0x15cba6}=_0x5bb414;if(_0x15cba6&&'alignment'==_0x15cba6['commandName']){const _0x446d5f=_0x15cba6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x50660a,'*Format:*\x20%0',function(_0x3ac004){switch(_0x3ac004){case'left':return o(_0x50660a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x50660a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x50660a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x50660a,'FORMAT_JUSTIFY_TEXT');}}(_0x446d5f))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class V extends _0x9e29f0{['afterInit'](){const _0x18b9ed=this['editor'],_0x9e16b0=_0x18b9ed['plugins']['get']('TrackChangesEditing'),_0x104299=_0x18b9ed['locale'];for(const _0x1b062e of ti){if(!_0x18b9ed['plugins']['has'](_0x1b062e))continue;const _0x1f2d7e=_0x1b062e['slice'](0x0,-0x7)['toLowerCase'](),_0x3ce2ba='FORMAT_'+_0x1f2d7e['toUpperCase']();_0x9e16b0['enableDefaultAttributesIntegration'](_0x1f2d7e),_0x9e16b0['descriptionFactory']['registerAttributeLabel'](_0x1f2d7e,o(_0x104299,_0x3ce2ba));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a5b5f=this['editor'],_0x347580=_0x2a5b5f['locale'],_0x249347=_0x2a5b5f['plugins']['get']('TrackChangesEditing');function _0x58313e(_0x31a453,_0x43fa6b){_0x249347['descriptionFactory']['registerDescriptionCallback'](_0x149a8a=>{if('formatInline'!=_0x149a8a['type'])return;const {data:_0x591c1a}=_0x149a8a;return _0x591c1a&&_0x591c1a['commandName']===_0x31a453?_0x591c1a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x347580,'*Format:*\x20%0',_0x43fa6b)}:{'type':'format','content':o(_0x347580,'*Remove\x20format:*\x20%0',_0x43fa6b)}:void 0x0;});}_0x58313e('bold',o(_0x347580,'FORMAT_BOLD')),_0x58313e('italic',o(_0x347580,'FORMAT_ITALIC')),_0x58313e('underline',o(_0x347580,'FORMAT_UNDERLINE')),_0x58313e('code',o(_0x347580,'FORMAT_CODE')),_0x58313e('strikethrough',o(_0x347580,'FORMAT_STRIKETHROUGH')),_0x58313e('subscript',o(_0x347580,'FORMAT_SUBSCRIPT')),_0x58313e('superscript',o(_0x347580,'FORMAT_SUPERSCRIPT'));}}class F extends _0x9e29f0{['afterInit'](){const _0xb233e0=this['editor'],_0x132fed=_0xb233e0['locale'];if(!_0xb233e0['plugins']['has']('BlockQuoteEditing'))return;const _0x4017d0=_0xb233e0['plugins']['get']('TrackChangesEditing'),_0x214afd=this['editor']['commands']['get']('blockQuote');_0x4017d0['enableCommand']('blockQuote',(_0x4024c7,_0x2a75ab={})=>{const _0x2c00b1=this['editor']['model']['document']['selection'],_0x5ea7a1=_0x2a75ab&&void 0x0!==_0x2a75ab['forceValue']?_0x2a75ab['forceValue']:!_0x214afd['value'];let _0x3865ed=[];if(_0x5ea7a1){const _0x4325e3=Array['from'](_0x2c00b1['getSelectedBlocks']())['filter'](_0x2c9c1c=>oo(_0x2c9c1c)||function(_0x37ca1e,_0x2230bc){const _0xaeb3ad=_0x2230bc['checkChild'](_0x37ca1e['parent'],'blockQuote'),_0x4739d8=_0x2230bc['checkChild'](['$root','blockQuote'],_0x37ca1e);return _0xaeb3ad&&_0x4739d8;}(_0x2c9c1c,this['editor']['model']['schema']));_0x3865ed=to(_0x4325e3,_0xb233e0['model']);}else{const _0x2a63c6=Array['from'](_0x2c00b1['getSelectedBlocks']())['filter'](_0xb20c8e=>oo(_0xb20c8e));_0x3865ed=to(_0x2a63c6,_0xb233e0['model']);}_0xb233e0['model']['change'](()=>{for(const _0x9ea88 of _0x3865ed)_0x4017d0['markBlockFormat'](_0x9ea88,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5ea7a1}]});});}),_0x4017d0['descriptionFactory']['registerDescriptionCallback'](_0x462b4f=>{const {data:_0x3aec37}=_0x462b4f;if(_0x3aec37&&'blockQuote'==_0x3aec37['commandName']){const _0x232c50=o(_0x132fed,'ELEMENT_BLOCK_QUOTE');return _0x3aec37['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x132fed,'*Set\x20format:*\x20%0',_0x232c50)}:{'type':'format','content':o(_0x132fed,'*Remove\x20format:*\x20%0',_0x232c50)};}});}}function oo(_0x5876b5){return'blockQuote'==_0x5876b5['parent']['name'];}class G extends _0x9e29f0{['afterInit'](){const _0x32975d=this['editor'],_0xded268=_0x32975d['locale'],_0x41cbd2=_0x32975d['plugins']['get']('TrackChangesEditing');_0x32975d['plugins']['has']('BookmarkEditing')&&(_0x41cbd2['enableCommand']('insertBookmark'),_0x41cbd2['enableDefaultAttributesIntegration']('updateBookmark'),_0x41cbd2['descriptionFactory']['registerDescriptionCallback'](_0x447295=>{if('insertion'!=_0x447295['type']&&'deletion'!=_0x447295['type']&&'attribute'!=_0x447295['type'])return;const _0x202e64=_0x447295['getContainedElement']();if(null==_0x202e64)return;if(!_0x202e64['is']('element','bookmark'))return;const _0x4acc81=_0x202e64['getAttribute']('bookmarkId');if('insertion'==_0x447295['type'])return{'type':'insertion','content':o(_0xded268,'*Insert:*\x20%0','\x22'+_0x4acc81+'\x22\x20'+o(_0xded268,'ELEMENT_BOOKMARK'))};if('deletion'==_0x447295['type'])return{'type':'deletion','content':o(_0xded268,'*Remove:*\x20%0','\x22'+_0x4acc81+'\x22\x20'+o(_0xded268,'ELEMENT_BOOKMARK'))};const {data:_0xef15d2}=_0x447295;if(!_0xef15d2||'bookmarkId'!=_0xef15d2['key'])return;return{'type':'format','content':o(_0xded268,'*Set\x20bookmark:*\x20%0','\x22'+_0xef15d2['newValue']+'\x22')};}));}}class L extends _0x9e29f0{['afterInit'](){const _0x1935eb=this['editor'];_0x1935eb['plugins']['has']('CaseChange')&&(_0x1935eb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1935eb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1935eb['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class J extends _0x9e29f0{['afterInit'](){const _0x5917a9=this['editor'];_0x5917a9['commands']['get']('ckbox')&&_0x5917a9['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x9e29f0{['afterInit'](){const _0x5abc86=this['editor'];if(!_0x5abc86['plugins']['has']('CodeBlock'))return;const _0x257098=_0x5abc86['plugins']['get']('TrackChangesEditing'),_0x1b3f91=_0x5abc86['locale'],_0x33eb0=_0x5abc86['config']['get']('codeBlock')['languages'],_0x370772=_0x5abc86['commands']['get']('codeBlock');_0x257098['enableCommand']('indentCodeBlock'),_0x257098['enableCommand']('outdentCodeBlock'),_0x257098['enableCommand']('codeBlock',(_0x44288b,_0x5aad7c={})=>{const _0x3adf70=_0x5abc86['model'],_0x3f767c=_0x5abc86['model']['document']['selection'],_0xa810a1=_0x5aad7c&&void 0x0!==_0x5aad7c['forceValue']?_0x5aad7c['forceValue']:!_0x370772['value'];let _0x2f9fa6;_0x5aad7c['language']||(_0x5aad7c['language']=_0x33eb0[0x0]['language']),_0x2f9fa6=_0xa810a1?Array['from'](_0x3f767c['getSelectedBlocks']())['filter'](_0xe47b1=>co(_0xe47b1)||function(_0x3a5ed6,_0x42566f){if(_0x3a5ed6['is']('rootElement')||_0x42566f['isLimit'](_0x3a5ed6))return!0x1;return _0x42566f['checkChild'](_0x3a5ed6['parent'],'codeBlock');}(_0xe47b1,_0x3adf70['schema'])):Array['from'](_0x3f767c['getSelectedBlocks']())['filter'](_0xa6c37a=>co(_0xa6c37a));const _0x19e61b=to(_0x2f9fa6,_0x3adf70);_0x3adf70['change'](()=>{for(const _0x18b51 of _0x19e61b)_0x257098['markBlockFormat'](_0x18b51,{'commandName':'codeBlock','commandParams':[{..._0x5aad7c,'forceValue':_0xa810a1}],'formatGroupId':'blockName'});});}),(_0x257098['descriptionFactory']['registerElementLabel']('codeBlock',_0x3b7ea5=>o(_0x1b3f91,'ELEMENT_CODE_BLOCK',_0x3b7ea5)),_0x257098['descriptionFactory']['registerDescriptionCallback'](_0x134130=>{if('formatBlock'!=_0x134130['type'])return;const _0x4c33a8=_0x1b3f91['t'],{data:_0x40dee8}=_0x134130;if(!_0x40dee8||'codeBlock'!=_0x40dee8['commandName'])return;const _0x6d0c16=_0x40dee8['commandParams'][0x0]['language'],_0xa218fe=_0x4c33a8(_0x33eb0['find'](_0x364675=>_0x364675['language']===_0x6d0c16)['label'])['toLowerCase']();return _0x40dee8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b3f91,'*Set\x20format:*\x20%0',o(_0x1b3f91,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa218fe+')')}:{'type':'format','content':o(_0x1b3f91,'*Remove\x20format:*\x20%0',o(_0x1b3f91,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x475b95){return'codeBlock'==_0x475b95['name'];}class z extends _0x9e29f0{['afterInit'](){const _0x220141=this['editor'];if(!_0x220141['plugins']['has']('CommentsEditing'))return;_0x220141['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}class K extends _0x9e29f0{static get['requires'](){return[_0x5cfb4a];}['init'](){const _0x51be02=this['editor'],_0x1b80b3=_0x51be02['plugins']['get']('TrackChangesEditing');_0x1b80b3['enableCommand']('delete');const _0x444a16=_0x51be02['commands']['get']('deleteForward');_0x1b80b3['enableCommand']('deleteForward',(_0x3f2699,_0x1cc112={})=>{const _0xd59276=_0x51be02['model']['createSelection'](_0x51be02['model']['document']['selection']);_0xd59276['isCollapsed']&&_0x51be02['model']['modifySelection'](_0xd59276,{'direction':'forward','unit':_0x1cc112['unit']});const _0x4bc013=_0xd59276['getFirstRange'](),_0x5b7d0d=_0x238721['fromRange'](_0x4bc013);let _0x1dd072;_0x3f2699(_0x1cc112),_0x1dd072='$graveyard'==_0x5b7d0d['root']['rootName']?_0x51be02['model']['createRange'](_0x4bc013['start']):_0x51be02['model']['createRange'](_0x5b7d0d['start'],_0x5b7d0d['end']),_0x5b7d0d['detach'](),_0x51be02['model']['enqueueChange'](_0x444a16['buffer']['batch'],_0x37fdc9=>{_0x444a16['buffer']['lock'](),_0x37fdc9['setSelection'](_0x37fdc9['createRange'](_0x1dd072['end'])),_0x444a16['buffer']['unlock']();});});}}class W extends _0x9e29f0{['afterInit'](){const _0x3493f0=this['editor'];if(!_0x3493f0['plugins']['has']('ListEditing'))return;const _0x496200=_0x3493f0['locale'],_0xde687a=_0x3493f0['plugins']['get']('TrackChangesEditing'),_0x26adbf=_0x3493f0['plugins']['has']('TodoListEditing'),_0x2386d9=!!_0x3493f0['config']['get']('list.multiBlock');function _0x5c9137(_0x24182c){return{'type':'format','content':''+o(_0x496200,'*Set\x20format:*\x20%0',_0x24182c)};}function _0x1d0f3f(_0x22db23){return{'type':'format','content':''+o(_0x496200,'*Remove\x20format:*\x20%0',_0x22db23)};}_0xde687a['enableDefaultAttributesIntegration']('numberedList'),_0xde687a['enableDefaultAttributesIntegration']('bulletedList'),_0xde687a['enableDefaultAttributesIntegration']('customNumberedList'),_0xde687a['enableDefaultAttributesIntegration']('customBulletedList'),_0xde687a['enableDefaultAttributesIntegration']('indentList'),_0xde687a['enableDefaultAttributesIntegration']('outdentList'),_0xde687a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xde687a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2386d9&&(_0xde687a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xde687a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x26adbf&&(_0xde687a['enableDefaultAttributesIntegration']('todoList'),_0xde687a['enableDefaultAttributesIntegration']('checkTodoList'),_0xde687a['descriptionFactory']['registerDescriptionCallback'](_0x12ce38=>{const {data:_0x538bd9}=_0x12ce38;if(_0x538bd9&&'todoListChecked'==_0x538bd9['key'])return{'type':'format','content':_0x538bd9['newValue']?o(_0x496200,'*Check\x20item*'):o(_0x496200,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x8a811=>{if(_0x8a811['batch']['isUndo'])return!0x1;let _0x485289=!0x1;const _0x5af1f6=_0xde687a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59e022=>'todoListChecked'===_0xde687a['_getAttributeKey'](_0x59e022));for(const _0x879b49 of _0x5af1f6){'todo'!=_0x879b49['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xde687a['_findSuggestions'](_0x879b49['getFirstRange'](),'attribute')['find'](_0x44f60a=>'listType'===_0xde687a['_getAttributeKey'](_0x44f60a['suggestion']))||(_0x8a811['removeMarker'](_0x879b49['getFirstMarker']()),_0x485289=!0x0));}return _0x485289;})),_0xde687a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x496200,'FORMAT_INDENT'));const _0x13c536={'type':'format','content':''};_0xde687a['descriptionFactory']['registerDescriptionCallback'](_0x2ef4a3=>{const {data:_0x320322}=_0x2ef4a3;if(!_0x320322||'listType'!=_0x320322['key'])return;let _0x3ed207=_0x2ef4a3['head'];for(;_0x3ed207;){if(_0x3ed207['data']&&(('listStyle'==_0x3ed207['data']['key']||'listMarkerStyle'==_0x3ed207['data']['key'])&&(_0x3ed207['data']['newValue']&&'default'!=_0x3ed207['data']['newValue']||'default'!=_0x3ed207['data']['oldValue']&&!_0x320322['newValue'])||!_0x2386d9&&_0x3ed207['data']['key']==m))return _0x13c536;_0x3ed207=_0x3ed207['next'];}if(null==_0x320322['newValue'])switch(_0x320322['oldValue']){case'bulleted':return _0x1d0f3f(o(_0x496200,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1d0f3f(o(_0x496200,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1d0f3f(o(_0x496200,'ELEMENT_TODO_LIST'));}switch(_0x320322['newValue']){case'bulleted':return _0x5c9137(o(_0x496200,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c9137(o(_0x496200,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c9137(o(_0x496200,'ELEMENT_TODO_LIST'));}}),_0xde687a['descriptionFactory']['registerDescriptionCallback'](_0x526840=>{const {data:_0x632cf9}=_0x526840;if(_0x632cf9&&'listIndent'==_0x632cf9['key'])return null==_0x632cf9['newValue']||null==_0x632cf9['oldValue']&&0x0==_0x632cf9['newValue']?_0x13c536:void 0x0;}),_0xde687a['descriptionFactory']['registerDescriptionCallback'](_0xe7613e=>{if('attribute'!=_0xe7613e['type'])return;const {data:_0x32791a}=_0xe7613e;if(!_0x32791a||'listItemId'!=_0x32791a['key'])return;const _0x3bf04f=Te(_0xe7613e);return'newValue'==_0x3bf04f?{'type':'format','content':o(_0x496200,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3bf04f?{'type':'format','content':o(_0x496200,'*Split:*\x20list\x20item')}:_0x13c536;}),_0x3493f0['model']['document']['registerPostFixer'](_0x1e1a3c=>this['listItemIdFixer'](_0x1e1a3c)),_0x3493f0['model']['document']['registerPostFixer'](_0x2b333a=>this['noTrackChangesFixer'](_0x2b333a)),_0x3493f0['model']['document']['on']('change:data',(_0x14a0a0,_0x4185b7)=>{if(_0x4185b7['isUndo']||!_0x4185b7['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2a6be5){if(_0x2a6be5['batch']['isUndo']||!_0x2a6be5['batch']['isLocal'])return!0x1;let _0x7490fb=!0x1;const _0x12e320=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dd6cf=>_0x4dd6cf['data']&&'listItemId'==_0x4dd6cf['data']['key'])['filter'](_0x4b981e=>_0x4b981e['data']['newValue']&&_0x4b981e['data']['oldValue']);for(const _0x3f901f of _0x12e320)Te(_0x3f901f)||(_0x2a6be5['removeMarker'](_0x3f901f['getFirstMarker']()),_0x7490fb=!0x0);return _0x7490fb;}['noTrackChangesFixer'](_0x1f709a){if(_0x1f709a['batch']['isUndo']||!_0x1f709a['batch']['isLocal'])return!0x1;const _0x3da26d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x3da26d['trackChangesCommand']['value'])return!0x1;let _0x3401c2=!0x1;const _0x2b1960=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x294852=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x16ddbb=>'attribute'==_0x16ddbb['type'])['filter'](_0x50f9cd=>_0x2b1960['includes'](_0x50f9cd['attributeKey']));if(0x0==_0x294852['length'])return _0x3401c2;for(const _0x506638 of _0x294852){const _0x4b3896=_0x3da26d['_findSuggestions'](_0x506638['range'],'attribute')['filter'](_0x1da1a0=>!_0x1da1a0['meta']['isNextTo'])['map'](_0x4285c5=>_0x4285c5['suggestion'])['filter'](_0x314070=>{const _0x3836db=_0x3da26d['_getAttributeKey'](_0x314070);return _0x2b1960['includes'](_0x3836db);});if(_0x4b3896['length']){for(const _0x3a19d4 of _0x4b3896)_0x1f709a['removeMarker'](_0x3a19d4['getFirstMarker']());_0x3401c2=!0x0;}}return _0x3401c2;}['assureChains'](){const _0x33be9a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c62f5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x54fabd;const _0x2d09ff=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x112576=>{if(_0x112576['data']['oldRange']||!_0x112576['data']['newRange'])return null;if(!_0x112576['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x138235}=_0x33be9a['_splitMarkerName'](_0x112576['name']);if(!_0x33be9a['hasSuggestion'](_0x138235))return null;const _0x20fb1e=_0x33be9a['getSuggestion'](_0x138235);return _0x2c62f5['includes'](_0x20fb1e['data']['key']);})['map'](_0x5d8736=>{const {id:_0x2b0d75}=_0x33be9a['_splitMarkerName'](_0x5d8736['name']),_0x570e8c=_0x33be9a['getSuggestion'](_0x2b0d75);return _0x54fabd=_0x570e8c['attributes']['groupId'],_0x570e8c['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2d09ff['size'])return;const _0x30a82c=_0x33be9a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x523ff5=>'attribute'==_0x523ff5['type']&&_0x523ff5['data']&&_0x2c62f5['includes'](_0x523ff5['data']['key'])&&_0x523ff5['attributes']['groupId']!=_0x54fabd)['map'](_0x160704=>({'listItem':_0x160704['getFirstRange']()['start']['nodeAfter'],'groupId':_0x160704['attributes']['groupId']})),_0x557d7c=new Set();for(const {groupId:_0x2458ac,listItem:_0x158ab4}of _0x30a82c)_0x2d09ff['has'](_0x158ab4)&&_0x557d7c['add'](_0x2458ac);for(const _0x3f7358 of _0x33be9a['getSuggestions']())_0x557d7c['has'](_0x3f7358['attributes']['groupId'])&&_0x3f7358['setAttribute']('groupId',_0x54fabd);}['_supportLegacySuggestions'](){const _0x158ba2=this['editor'],_0x517036=_0x158ba2['locale'],_0x534b58=_0x158ba2['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x534b58['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x19d683,_0x22658e){const _0x29c999=[];for(let _0x838b7e of _0x19d683)_0x838b7e['start']['nodeAfter']===_0x838b7e['end']['parent']&&(_0x838b7e=_0x158ba2['model']['createRange'](_0x158ba2['model']['createPositionAt'](_0x838b7e['start']['nodeAfter'],0x0))),_0x29c999['push'](_0x838b7e);_0x158ba2['model']['change'](_0x556512=>{const _0x56cca7=_0x158ba2['model']['document']['selection'],_0xb2f19c=Array['from'](_0x56cca7['getRanges']())['map'](_0x228d97=>_0x238721['fromRange'](_0x228d97));_0x556512['setSelection'](_0x29c999),_0x158ba2['commands']['get'](_0x22658e['commandName'])['refresh'](),_0x22658e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x158ba2['execute'](_0x22658e['commandName'],..._0x22658e['commandParams']),_0x556512['setSelection'](_0xb2f19c);for(const _0x1a107b of _0xb2f19c)_0x1a107b['detach']();});}),_0x534b58['descriptionFactory']['registerElementLabel'](function(_0x16459f){const _0x7ffb9f=!_0x158ba2['model']['schema']['isObject'](_0x16459f),_0x12f98c=_0x16459f['previousSibling'],_0x16a15b=_0x16459f['nextSibling'],_0x177b8=_0x16459f['getAttribute']('listItemId'),_0x1851da=!_0x12f98c||_0x12f98c['getAttribute']('listItemId')!==_0x177b8,_0xa80465=!_0x16a15b||_0x16a15b['getAttribute']('listItemId')!==_0x177b8;return _0x7ffb9f&&Boolean(_0x177b8)&&_0x1851da&&_0xa80465;},_0x24bef4=>o(_0x517036,'ELEMENT_LIST_ITEM',_0x24bef4));}['_registerLegacyDescription'](){const _0x1091b3=this['editor'],_0x254726=_0x1091b3['locale'];function _0x5ccd00(_0xea5071){const _0x962a56=_0x1091b3['commands']['get']('bulletedList')['value'],_0x5b304d=_0x1091b3['commands']['get']('numberedList')['value'];return'numberedList'===_0xea5071?_0x962a56:_0x5b304d;}_0x1091b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x47c14c){if('formatBlock'!=_0x47c14c['type'])return;const {data:_0x573803}=_0x47c14c;if(!_0x573803)return;let _0x3180d9,_0x3582f2,_0x1a1e78,_0x269f47;switch(_0x573803['commandName']){case'bulletedList':_0x1a1e78=_0x573803['commandParams'][0x0]['forceValue'],_0x269f47=_0x5ccd00(_0x573803['commandName']),_0x3180d9=_0x1a1e78?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x269f47&&_0x1091b3['config']['get']('list.multiBlock')||(_0x3180d9='*Change\x20to:*\x20%0'),_0x3582f2={'type':'format','content':o(_0x254726,_0x3180d9,o(_0x254726,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1a1e78=_0x573803['commandParams'][0x0]['forceValue'],_0x269f47=_0x5ccd00(_0x573803['commandName']),_0x3180d9=_0x1a1e78?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x269f47&&_0x1091b3['config']['get']('list.multiBlock')||(_0x3180d9='*Change\x20to:*\x20%0'),_0x3582f2={'type':'format','content':o(_0x254726,_0x3180d9,o(_0x254726,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3180d9='*Indent:*\x20%0',_0x3582f2={'type':'format','content':o(_0x254726,_0x3180d9,o(_0x254726,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3180d9=function(_0x258389){const _0x31d3f6=_0x258389['getFirstRange']();let _0x12f014=_0x31d3f6['start']['nodeAfter'];for(;_0x12f014&&_0x31d3f6['containsItem'](_0x12f014);){if(_0x12f014['getAttribute']('listIndent')>0x0)return!0x1;_0x12f014=_0x12f014['nextSibling'];}return!0x0;}(_0x47c14c)?o(_0x254726,'*Format:*\x20remove\x20from\x20%0',o(_0x254726,function(_0x4889ef){return'ELEMENT_'+_0x4889ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x47c14c))):o(_0x254726,'*Outdent:*\x20%0',o(_0x254726,'ELEMENT_LIST_ITEM')),_0x3582f2={'type':'format','content':_0x3180d9};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x573803['multipleBlocks']&&(_0x3180d9='*Merge:*\x20%0',_0x3582f2={'type':'deletion','content':o(_0x254726,_0x3180d9,o(_0x254726,'ELEMENT_LIST_ITEM'))});}return _0x3582f2;});}}function Te(_0x2bb320){let _0x560396=_0x2bb320['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x560396;){const _0x569323=_0x560396['getAttribute']('listItemId');if(!_0x569323)return!0x1;if(_0x569323==_0x2bb320['data']['newValue'])return'newValue';if(_0x569323==_0x2bb320['data']['oldValue'])return'oldValue';_0x560396=_0x560396['previousSibling'];}return!0x1;}class H extends _0x9e29f0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x190bbe=this['editor']['config']['get']('list.properties'),_0x2d64b8=this['editor']['plugins']['get']('TrackChangesEditing');_0x190bbe['styles']&&_0x2d64b8['enableDefaultAttributesIntegration']('listStyle'),_0x190bbe['reversed']&&_0x2d64b8['enableDefaultAttributesIntegration']('listReversed'),_0x190bbe['startIndex']&&_0x2d64b8['enableDefaultAttributesIntegration']('listStart');const _0x445fac={'type':'format','content':''};_0x2d64b8['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2f8860=this['editor']['locale'];_0x2d64b8['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2f8860,'FORMAT_LIST_REVERSED')),_0x2d64b8['descriptionFactory']['registerDescriptionCallback'](_0x58683f=>{const {data:_0x7f7d54}=_0x58683f;if(_0x7f7d54&&'listReversed'==_0x7f7d54['key'])return null==_0x7f7d54['newValue']||0x0==_0x7f7d54['newValue']&&null==_0x7f7d54['oldValue']?_0x445fac:void 0x0;}),_0x2d64b8['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2f8860,'FORMAT_LIST_START')),_0x2d64b8['descriptionFactory']['registerDescriptionCallback'](_0x38e090=>{const {data:_0x1a3691}=_0x38e090;if(_0x1a3691&&'listStart'==_0x1a3691['key'])return null==_0x1a3691['newValue']||0x1==_0x1a3691['newValue']&&null==_0x1a3691['oldValue']?_0x445fac:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x53439c=>{if(_0x53439c['batch']['isUndo'])return!0x1;let _0x52942f=!0x1;const _0x425f21=_0x2d64b8['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x9d4c8a=>{const _0x19aea8=_0x2d64b8['_getAttributeKey'](_0x9d4c8a);return'listStart'==_0x19aea8||'listReversed'==_0x19aea8;});for(const _0x19b5f8 of _0x425f21){const _0x50cb32=_0x19b5f8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x50cb32||'customNumbered'==_0x50cb32)continue;_0x2d64b8['_findSuggestions'](_0x19b5f8['getFirstRange'](),'attribute')['find'](_0x2c5729=>'listType'==_0x2d64b8['_getAttributeKey'](_0x2c5729['suggestion']))||(_0x53439c['removeMarker'](_0x19b5f8['getFirstMarker']()),_0x52942f=!0x0);}return _0x52942f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x313373){const _0x3cdd2f=this['editor']['locale'],{data:_0x11432b}=_0x313373,_0x59834b={'type':'format','content':''};if(!_0x11432b||'listStyle'!=_0x11432b['key'])return;if(!_0x11432b['oldValue'])return'default'==_0x11432b['newValue']?_0x59834b:{'type':'format','content':''+o(_0x3cdd2f,'*Set\x20format:*\x20%0',o(_0x3cdd2f,this['_getTranslationKeyForListStyle'](_0x11432b['newValue'])))};if(!_0x11432b['newValue']){if('default'==_0x11432b['oldValue'])return _0x59834b;let _0x3d4932=_0x313373['head'];for(;_0x3d4932;){if(_0x3d4932['data']&&'listType'==_0x3d4932['data']['key']&&_0x3d4932['data']['newValue'])return _0x59834b;_0x3d4932=_0x3d4932['next'];}return{'type':'format','content':''+o(_0x3cdd2f,'*Remove\x20format:*\x20%0',o(_0x3cdd2f,this['_getTranslationKeyForListStyle'](_0x11432b['oldValue'])))};}if('default'!=_0x11432b['newValue'])return{'type':'format','content':''+o(_0x3cdd2f,'*Set\x20format:*\x20%0',o(_0x3cdd2f,this['_getTranslationKeyForListStyle'](_0x11432b['newValue'])))};let _0x442ffb=_0x313373['head'];for(;_0x442ffb;){if(_0x442ffb['data']&&'listType'==_0x442ffb['data']['key']&&_0x442ffb['data']['newValue']&&_0x442ffb['data']['oldValue'])return _0x59834b;_0x442ffb=_0x442ffb['next'];}return{'type':'format','content':o(_0x3cdd2f,'*Set\x20format:*\x20%0',o(_0x3cdd2f,'ELEMENT_'+_0x313373['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4de052=this['editor'],_0x3baf71=_0x4de052['locale'];_0x4de052['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a7af3=>{if('formatBlock'!=_0x4a7af3['type'])return;const {data:_0x16ffd8}=_0x4a7af3;if(!_0x16ffd8)return;let _0x26473f,_0x40a54f;switch(_0x16ffd8['commandName']){case'listStyle':_0x26473f='*Change\x20to:*\x20%0',_0x40a54f={'type':'format','content':o(_0x3baf71,_0x26473f,o(_0x3baf71,this['_getTranslationKeyForListStyle'](_0x16ffd8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x26473f=_0x16ffd8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x40a54f={'type':'format','content':o(_0x3baf71,_0x26473f)};break;case'listStart':_0x26473f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x40a54f={'type':'format','content':o(_0x3baf71,_0x26473f,_0x16ffd8['commandParams'][0x0]['startIndex'])};}return _0x40a54f;});}['_getTranslationKeyForListStyle'](_0xef58cd){return'ELEMENT_'+function(_0x51de55){if(ye['includes'](_0x51de55))return'bulleted';if(Se['includes'](_0x51de55))return'numbered';return null;}(_0xef58cd)['toUpperCase']()+'_LIST_'+_0xef58cd['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x9e29f0{['afterInit'](){const _0x2cb4c5=this['editor'];_0x2cb4c5['commands']['get']('emoji')&&_0x2cb4c5['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class X extends _0x9e29f0{static get['requires'](){return[_0x221f3c];}['init'](){const _0xbe0d74=this['editor'],_0x1498dd=_0xbe0d74['plugins']['get']('TrackChangesEditing'),_0x5d9193=_0xbe0d74['commands']['get']('enter');_0x1498dd['enableCommand']('enter',()=>{_0xbe0d74['model']['change'](_0x420c18=>{const _0x2baa56=_0xbe0d74['model']['document']['selection'],_0x37ffd2=_0x2baa56['getFirstPosition'](),_0x55077f=_0x238721['fromRange'](_0x2baa56['getFirstRange']());if(_0x5d9193['enterBlock'](_0x420c18)){const _0x3c8adb=_0xbe0d74['model']['createPositionAt'](_0x37ffd2['parent']['nextSibling'],0x0),_0x421231=_0x420c18['createRange'](_0x37ffd2,_0x3c8adb);_0x1498dd['markInsertion'](_0x421231);}else _0x420c18['setSelection'](_0x420c18['createRange'](_0x55077f['end']));_0x55077f['detach'](),_0x5d9193['fire']('afterExecute',{'writer':_0x420c18});});});}}class Y extends _0x9e29f0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xd4e4b4=this['editor']['plugins']['get']('TrackChangesEditing');_0xd4e4b4['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xd4e4b4['enableCommand']('findNext'),_0xd4e4b4['enableCommand']('findPrevious'),_0xd4e4b4['enableCommand']('replace'),_0xd4e4b4['enableCommand']('replaceAll');}['handleFindCommand'](_0x1728c6,_0x587133,_0xeee1f0={}){const _0x4a2d9c=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1728c6(_0x12b95a=>{let _0x153357=('string'==typeof _0x587133?_0x4a2d9c['findByTextCallback'](_0x587133,_0xeee1f0):_0x587133)(_0x12b95a);Array['isArray'](_0x153357)&&(_0x153357={'results':_0x153357,'searchText':'string'==typeof _0x587133?_0x587133:''});const _0x3bc531=_0x153357['results']['filter'](_0x203b78=>!0x1===this['_isInDeletionRange'](_0x203b78,_0x12b95a['item']));return{..._0x153357,'results':_0x3bc531};},_0xeee1f0);}['_isInDeletionRange'](_0x22a708,_0x550009){const _0x1484ce=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x550009,_0x22a708['start']),this['editor']['model']['createPositionAt'](_0x550009,_0x22a708['end']));for(const _0x49b9b6 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1484ce['getIntersection'](_0x49b9b6['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x9e29f0{['afterInit'](){const _0x266011=this['editor']['locale'],_0x48352d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5f3ef4,commandName:_0x2c60e9}of eo)this['editor']['plugins']['has'](_0x5f3ef4)&&_0x48352d['enableDefaultAttributesIntegration'](_0x2c60e9);_0x48352d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x266011,'FORMAT_FONT_SIZE')),_0x48352d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x266011,'FORMAT_FONT_FAMILY')),_0x48352d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x266011,'FORMAT_FONT_COLOR')),_0x48352d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x266011,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fd234=this['editor'],_0x21b06c=_0x4fd234['locale'];_0x4fd234['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41e87b=>{const _0x54902c=_0x21b06c['t'];if('formatInline'!=_0x41e87b['type'])return;const {data:_0x55b610}=_0x41e87b;if(null!=_0x55b610){if('fontSize'==_0x55b610['commandName']){const _0x354b3d=_0x55b610['commandParams'][0x0]['value'];if(_0x354b3d){const _0xb9528=_0x54902c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x2aea31=>_0x2aea31['model']==_0x354b3d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x21b06c,'*Set\x20font\x20size:*\x20%0',_0xb9528)};}return{'type':'format','content':o(_0x21b06c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x55b610['commandName']){const _0x1a8062=_0x55b610['commandParams'][0x0]['value'];return _0x1a8062?{'type':'format','content':o(_0x21b06c,'*Set\x20font\x20family:*\x20%0',_0x1a8062)}:{'type':'format','content':o(_0x21b06c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x55b610['commandName']){const _0x36b475=_0x55b610['commandParams'][0x0]['value'];if(_0x36b475){const _0x2fc2dd=_0xac7b61(this['editor']['config']['get']('fontColor.colors'))['find'](_0x50608c=>_0x50608c['model']==_0x36b475);let _0x25a61a=_0x36b475,_0x528b45='';return _0x2fc2dd&&(_0x25a61a=_0x2fc2dd['label'],_0x528b45=_0x54902c(_0x25a61a)['toLowerCase']()),{'type':'format','content':o(_0x21b06c,'*Set\x20font\x20color:*\x20%0',_0x528b45)['trim'](),'color':{'value':_0x36b475,'title':_0x528b45||_0x25a61a}};}return{'type':'format','content':o(_0x21b06c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x55b610['commandName']){const _0x273e08=_0x55b610['commandParams'][0x0]['value'];if(_0x273e08){const _0x4b0f1b=_0xac7b61(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1005ce=>_0x1005ce['model']==_0x273e08);let _0x21d7fb=_0x273e08,_0x399301='';return _0x4b0f1b&&(_0x21d7fb=_0x4b0f1b['label'],_0x399301=_0x54902c(_0x21d7fb)['toLowerCase']()),{'type':'format','content':o(_0x21b06c,'*Set\x20font\x20background\x20color:*\x20%0',_0x399301)['trim'](),'color':{'value':_0x273e08,'title':_0x399301||_0x21d7fb}};}return{'type':'format','content':o(_0x21b06c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x9e29f0{['afterInit'](){const {plugins:_0x7c4660}=this['editor'];_0x7c4660['has']('FootnotesEditing')&&this['_registerFootnotesEditingIntegration'](),_0x7c4660['has']('FootnotesPropertiesEditing')&&this['_registerFootnotesPropertiesEditingIntegration']();}['_registerFootnotesPropertiesEditingIntegration'](){const {locale:_0x5c8795,plugins:_0x3a7bcd,commands:_0x505c52}=this['editor'],_0x264b8d=_0x3a7bcd['get']('TrackChangesEditing');_0x505c52['get']('footnotesStyle')&&_0x264b8d['enableDefaultAttributesIntegration']('footnotesStyle'),_0x505c52['get']('footnotesStart')&&_0x264b8d['enableDefaultAttributesIntegration']('footnotesStart'),_0x264b8d['registerBlockAttribute']('footnotesListStyle'),_0x264b8d['descriptionFactory']['registerAttributeLabel']('footnotesListStyle',o(_0x5c8795,'FORMAT_FOOTNOTES_LIST_STYLE')),_0x264b8d['registerBlockAttribute']('footnotesListStart'),_0x264b8d['descriptionFactory']['registerAttributeLabel']('footnotesListStart',o(_0x5c8795,'FORMAT_FOOTNOTES_LIST_START'));}['_registerFootnotesEditingIntegration'](){const _0xe53901=this['editor']['plugins']['get']('TrackChangesEditing'),{locale:_0x11e989,commands:_0x1ab67a}=this['editor'];_0x1ab67a['get']('insertFootnote')&&_0xe53901['enableCommand']('insertFootnote'),_0xe53901['descriptionFactory']['registerElementLabel']('footnoteRef',_0x15149e=>o(_0x11e989,'ELEMENT_FOOTNOTE_REF',_0x15149e)),_0xe53901['descriptionFactory']['registerElementLabel']('footnoteDefinition',_0x5efec1=>o(_0x11e989,'ELEMENT_FOOTNOTE_DEFINITION',_0x5efec1)),_0xe53901['descriptionFactory']['registerElementLabel']('footnotesDefinitions',_0x4faaa2=>o(_0x11e989,'ELEMENT_FOOTNOTES_DEFINITIONS_LIST',_0x4faaa2));}}class nt extends _0x9e29f0{['afterInit'](){const _0x11c0e6=this['editor'],_0x5740e3=_0x11c0e6['plugins']['get']('TrackChangesEditing'),_0x31b6ee=_0x11c0e6['commands']['get']('copyFormat'),_0x589306=_0x11c0e6['commands']['get']('pasteFormat');_0x31b6ee&&_0x589306&&(_0x5740e3['enableDefaultAttributesIntegration']('pasteFormat'),_0x5740e3['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5d2e6c=this['editor'],_0x3f27ad=_0x5d2e6c['locale'];_0x5d2e6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x472b4b=>{if('formatBlock'!=_0x472b4b['type']&&'formatInline'!=_0x472b4b['type'])return;const {data:_0x5d9bb3}=_0x472b4b;if(_0x5d9bb3&&'pasteFormat'===_0x5d9bb3['commandName']){const _0xb52e66=[],_0x575663=_0x5d9bb3['commandParams'][0x0];for(const [_0x282ce8,_0x56db1f]of Object['entries'](_0x575663))_0xb52e66['push'](ro(_0x5d2e6c,_0x282ce8,_0x56db1f));return _0xb52e66['length']?{'type':'format','content':o(_0x3f27ad,'*Set\x20format\x20to:*\x20%0',_0xb52e66['join'](',\x20'))}:{'type':'format','content':o(_0x3f27ad,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x2c918a,_0x444a25,_0x357dfb){const _0x2784fc=_0x2c918a['locale']['t'],_0x307dde=_0x444a25['split'](/(?=[A-Z])/)['join']('\x20'),_0x4b7d73=_0x2784fc(_0x307dde['charAt'](0x0)['toUpperCase']()+_0x307dde['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x357dfb)return _0x4b7d73;if('fontColor'===_0x444a25||'fontBackgroundColor'===_0x444a25){const _0x5895ee=_0xac7b61(_0x2c918a['config']['get']('fontColor.colors'))['find'](_0x4dab44=>_0x4dab44['model']==_0x357dfb);return _0x4b7d73+'\x20('+(_0x5895ee?_0x2784fc(_0x5895ee['label'])['toLowerCase']():_0x357dfb)+')';}if('fontSize'===_0x444a25&&isNaN(parseFloat(_0x357dfb))){const _0x16e18e=_0x2c918a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2c918a['config']['get']('fontSize.options'))['find'](_0x34cccc=>_0x34cccc['model']==_0x357dfb);return _0x4b7d73+'\x20('+(_0x16e18e?_0x2784fc(_0x16e18e['title'])['toLowerCase']():_0x357dfb)+')';}return _0x4b7d73+'\x20('+_0x357dfb+')';}class it extends _0x9e29f0{['_headingOptions'];['afterInit'](){const _0x54f4d5=this['editor'];if(!_0x54f4d5['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x54f4d5['config']['get']('heading.options');const _0x50160a=_0x54f4d5['locale'],_0x555ea9=_0x54f4d5['plugins']['get']('TrackChangesEditing');_0x555ea9['enableDefaultAttributesIntegration']('heading');for(const _0x3cc568 of this['_headingOptions'])'paragraph'!=_0x3cc568['model']&&_0x555ea9['descriptionFactory']['registerElementLabel'](_0x3cc568['model'],_0x576a4c=>{const _0x15dbdd=this['_getHeadingLevel'](_0x3cc568['model']);return null!==_0x15dbdd?_0x68d813(_0x576a4c,_0x15dbdd):_0x323d0d(_0x576a4c,_0x3cc568['title']);});function _0x68d813(_0x49dcd6,_0x1a9306){return o(_0x50160a,'ELEMENT_HEADING',[_0x49dcd6,_0x1a9306]);}function _0x323d0d(_0x5da264,_0x331a4d){return o(_0x50160a,'ELEMENT_HEADING_CUSTOM',[_0x5da264,_0x331a4d]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3579=this['editor'],_0x5c93cf=_0x2c3579['locale'];function _0x54d419(_0x14bcbc,_0x208083){return o(_0x5c93cf,'ELEMENT_HEADING_CUSTOM',[_0x14bcbc,_0x208083]);}_0x2c3579['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14e2d5=>{if('formatBlock'!=_0x14e2d5['type'])return;const {data:_0x2d6a88}=_0x14e2d5;if(_0x2d6a88&&'heading'==_0x2d6a88['commandName']){const _0x4f2c06=_0x2d6a88['commandParams'][0x0]['value'],_0x3a7df8=this['_getHeadingLevel'](_0x4f2c06);if(null!==_0x3a7df8)return{'type':'format','content':o(_0x5c93cf,'*Change\x20to:*\x20%0',(_0x22c6c2=0x1,_0x90b609=_0x3a7df8,o(_0x5c93cf,'ELEMENT_HEADING',[_0x22c6c2,_0x90b609])))};const _0xf5ea8=this['_headingOptions']['find'](_0x81ff57=>_0x81ff57['model']===_0x4f2c06)['title'];return{'type':'format','content':o(_0x5c93cf,'*Change\x20to:*\x20%0',_0x54d419(0x1,_0xf5ea8))};}var _0x22c6c2,_0x90b609;});}['_getHeadingLevel'](_0x442388){const _0x5125ea=_0x442388['match'](/^heading(\d+)/);if(_0x5125ea)return _0x5125ea[0x1];const _0x2e39c2=this['_headingOptions']?.['find'](_0x47beed=>_0x47beed['model']==_0x442388);if(_0x2e39c2&&_0x2e39c2['view']){const _0x20e539=_0x2e39c2['view'],_0x4860f3=(_0x20e539['name']??_0x20e539)['match'](/^h(\d+)/);if(_0x4860f3)return _0x4860f3[0x1];}return null;}}class et extends _0x9e29f0{['afterInit'](){const _0x50bf4e=this['editor'];if(!_0x50bf4e['plugins']['has']('HighlightEditing'))return;const _0x2af2fb=_0x50bf4e['plugins']['get']('TrackChangesEditing'),_0x321100=_0x50bf4e['locale'];_0x2af2fb['enableDefaultAttributesIntegration']('highlight'),_0x2af2fb['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x321100,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x18156e=this['editor'],_0x2dc040=_0x18156e['locale'];_0x18156e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x127d8f=>{if('formatInline'!=_0x127d8f['type'])return;const {data:_0x20d68c}=_0x127d8f;if(_0x20d68c&&'highlight'==_0x20d68c['commandName']){const _0x4a68ee=_0x2dc040['t'],_0x13e620=_0x20d68c['commandParams'][0x0]['value'];if(_0x13e620){const _0x4a290b=_0x18156e['config']['get']('highlight.options')['find'](_0x24ccb8=>_0x24ccb8['model']==_0x13e620),_0x32414d=_0x4a68ee(_0x4a290b['title'])['toLowerCase']();return{'type':'format','content':o(_0x2dc040,'*Set\x20highlight:*\x20%0',_0x32414d),'color':{'value':_0x4a290b['color'],'title':_0x4a290b['title']}};}return{'type':'format','content':o(_0x2dc040,'*Remove\x20highlight*',o(_0x2dc040,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x9e29f0{['afterInit'](){const _0x56eec8=this['editor'];if(!_0x56eec8['plugins']['has']('HorizontalLineEditing'))return;_0x56eec8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x43be6a=_0x56eec8['plugins']['get']('TrackChangesEditing'),_0x4ddf48=_0x56eec8['locale'];_0x43be6a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1c22e7=>o(_0x4ddf48,'ELEMENT_HORIZONTAL_LINE',_0x1c22e7));}}class ot extends _0x9e29f0{['afterInit'](){const _0x34e5c6=this['editor'];if(!_0x34e5c6['plugins']['has']('HtmlEmbed'))return;const _0x4db075=_0x34e5c6['plugins']['get']('TrackChangesEditing'),_0x23e2c7=_0x34e5c6['locale'];_0x4db075['descriptionFactory']['registerElementLabel']('rawHtml',_0x171c07=>o(_0x23e2c7,'ELEMENT_HTML_EMBED',_0x171c07)),_0x4db075['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4db075['descriptionFactory']['registerDescriptionCallback'](_0x55390f=>{if('attribute'!=_0x55390f['type'])return;const {data:_0x438d21}=_0x55390f;if(_0x438d21&&'value'==_0x438d21['key']&&_0x55390f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4932cc=o(_0x23e2c7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x23e2c7,'*Change\x20%0\x20content*',_0x4932cc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eaf3d=this['editor'],_0x1e8243=_0x2eaf3d['locale'];_0x2eaf3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x64c847=>{if('formatBlock'!=_0x64c847['type'])return;const {data:_0x1b0db5}=_0x64c847;if(_0x1b0db5&&'htmlEmbed'==_0x1b0db5['commandName']){const _0xe72107=o(_0x1e8243,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e8243,'*Change\x20%0\x20content*',_0xe72107)};}});}}class rt extends _0x9e29f0{['afterInit'](){const _0x100b22=this['editor'];if(!_0x100b22['plugins']['has']('ImageEditing'))return;const _0xb14e23=_0x100b22['plugins']['get']('TrackChangesEditing'),_0x13c6c1=_0x100b22['plugins']['get']('ImageUtils'),_0x5502be=_0x100b22['locale'];_0xb14e23['enableCommand']('insertImage'),_0xb14e23['descriptionFactory']['registerElementLabel']('imageBlock',_0x31c167=>o(_0x5502be,'ELEMENT_IMAGE',_0x31c167)),_0xb14e23['descriptionFactory']['registerElementLabel']('imageInline',_0x2c0282=>o(_0x5502be,'ELEMENT_INLINE_IMAGE',_0x2c0282)),_0xb14e23['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x5502be,'ELEMENT_CAPTION')),_0x100b22['plugins']['has']('ImageUploadEditing')&&_0xb14e23['enableCommand']('uploadImage'),_0x100b22['plugins']['has']('ImageBlockEditing')&&_0x100b22['plugins']['has']('ImageInlineEditing')&&(_0xb14e23['enableCommand']('imageTypeInline',(_0x3e4d00,_0x185417)=>{const _0x2a7b9f=_0x13c6c1['getClosestSelectedImageElement'](_0x100b22['model']['document']['selection']);_0x100b22['model']['change'](()=>{_0xb14e23['markBlockFormat'](_0x2a7b9f,{'commandName':'imageTypeInline','commandParams':[_0x185417]},[],'convertBlockImageToInline');});}),_0xb14e23['enableCommand']('imageTypeBlock',(_0x5d72e1,_0x7191f2)=>{_0x100b22['model']['change'](_0x51f1b0=>{let _0x5f46bc=_0x13c6c1['getClosestSelectedImageElement'](_0x100b22['model']['document']['selection']),_0x280b7e=_0x51f1b0['createRangeOn'](_0x5f46bc);const _0x1caf2a=_0x411ac9['fromPosition'](_0x280b7e['start'],'toPrevious'),_0x847fa3=_0x411ac9['fromPosition'](_0x280b7e['end'],'toNext');_0xb14e23['forceDefaultExecution'](()=>_0x5d72e1(_0x7191f2)),_0x5f46bc=_0x13c6c1['getClosestSelectedImageElement'](_0x100b22['model']['document']['selection']),_0x280b7e=_0x51f1b0['createRangeOn'](_0x5f46bc);const _0x2c14fd=_0x51f1b0['createRange'](_0x1caf2a,_0x847fa3);_0x1caf2a['detach'](),_0x847fa3['detach'](),_0xb14e23['markBlockFormat'](_0x5f46bc,{'commandName':'imageTypeInline','commandParams':[_0x7191f2]},[],'convertInlineImageToBlock'),_0x2c14fd['start']['isBefore'](_0x280b7e['start'])&&_0xb14e23['markInsertion'](_0x51f1b0['createRange'](_0x2c14fd['start'],_0x280b7e['start']),'convertInlineImageToBlock'),_0x280b7e['end']['isBefore'](_0x2c14fd['end'])&&_0xb14e23['markInsertion'](_0x51f1b0['createRange'](_0x280b7e['end'],_0x2c14fd['end']),'convertInlineImageToBlock');});}),_0xb14e23['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb14e23['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb14e23['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb14e23['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb14e23['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb14e23['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x491e99])=>{const _0x4d9ad4=_0xb14e23['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x19995e=_0x491e99['start'],_0x4fbf56=_0x491e99['end'];const _0x6ad116=_0x100b22['model']['schema']['getNearestSelectionRange'](_0x19995e,'backward'),_0xb5faed=_0x100b22['model']['schema']['getNearestSelectionRange'](_0x4fbf56,'forward');_0x6ad116['isCollapsed']&&(_0x19995e=_0x6ad116['start']),_0xb5faed['isCollapsed']&&(_0x4fbf56=_0xb5faed['end']),_0x4d9ad4([_0x100b22['model']['createRange'](_0x19995e,_0x4fbf56)]);}),_0xb14e23['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x263b9b),_0xb14e23['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x263b9b)),_0x100b22['plugins']['has']('ImageCaptionEditing')&&(_0xb14e23['enableCommand']('toggleImageCaption',(_0x1f85da,_0x4b1164)=>{const _0x4cd656=_0x100b22['plugins']['get']('ImageCaptionUtils');let _0x35bf62=_0x13c6c1['getClosestSelectedImageElement'](_0x100b22['model']['document']['selection']),_0x565cdb=_0x4cd656['getCaptionFromImageModelElement'](_0x35bf62);_0x100b22['model']['change'](()=>{if(_0x565cdb)return void _0xb14e23['markDeletion'](_0x100b22['model']['createRangeOn'](_0x565cdb));const _0x4d9ec6=_0x13c6c1['isBlockImage'](_0x35bf62);_0x1f85da(_0x4b1164),_0x35bf62=_0x13c6c1['getClosestSelectedImageElement'](_0x100b22['model']['document']['selection']),_0x565cdb=_0x4cd656['getCaptionFromImageModelElement'](_0x35bf62),_0xb14e23['markInsertion'](_0x100b22['model']['createRangeOn'](_0x565cdb),_0x4d9ec6?null:'imageCaption');});}),_0xb14e23['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x263b9b));const _0x5b61da=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x30b464(_0x2639ab,_0x43c409){const _0x2d834b=_0x5b61da['findIndex'](({type:_0x50c7d8,subType:_0x6d8e3a})=>_0x2639ab['type']==_0x50c7d8&&_0x2639ab['subType']==_0x6d8e3a),_0xa46242=_0x5b61da['findIndex'](({type:_0x5230bd,subType:_0x446611})=>_0x43c409['type']==_0x5230bd&&_0x43c409['subType']==_0x446611);if(_0x2d834b<0x0||_0xa46242<0x0)return!0x1;const _0x5a7f1c=_0x2639ab['getFirstRange'](),_0x105318=_0x43c409['getFirstRange']();if((0x0==_0x2d834b||0x1==_0x2d834b)&&0x2==_0xa46242&&_0x5a7f1c['isIntersecting'](_0x105318))return!0x0;if(0x2==_0x2d834b&&0x3==_0xa46242){const _0x3f7a78=_0xb14e23['_findSuggestions'](_0x5a7f1c,'insertion')['filter'](({suggestion:_0x506d2e,meta:_0x4780f4})=>_0x4780f4['isOwn']&&'convertInlineImageToBlock'==_0x506d2e['subType']);if(_0x3f7a78['length']>0x1&&_0x105318['end']['isEqual'](_0x5a7f1c['start']))return!0x0;if(0x1==_0x3f7a78['length']&&(_0x5a7f1c['start']['isEqual'](_0x105318['end'])||_0x5a7f1c['end']['isEqual'](_0x105318['start'])))return!0x0;}if(0x3==_0x2d834b&&0x3==_0xa46242&&_0x5a7f1c['start']['isBefore'](_0x105318['start'])){const _0x2658a4=_0x5a7f1c['end']['nodeAfter'],_0x4a2421=_0x105318['start']['nodeBefore'];return _0x13c6c1['isBlockImage'](_0x2658a4)&&_0x2658a4===_0x4a2421;}return!0x1;}function _0x263b9b(_0x15e901,_0x287245){return _0x30b464(_0x15e901,_0x287245)?[_0x15e901,_0x287245]:_0x30b464(_0x287245,_0x15e901)?[_0x287245,_0x15e901]:null;}_0x100b22['plugins']['has']('ImageResize')&&(_0xb14e23['enableDefaultAttributesIntegration']('resizeImage'),_0xb14e23['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x5502be,'FORMAT_IMAGE_SIZE'))),_0x100b22['plugins']['has']('ImageTextAlternativeEditing')&&_0xb14e23['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x100b22['plugins']['has']('PictureEditing')&&_0xb14e23['descriptionFactory']['registerDescriptionCallback'](_0x1ce491=>{if('attribute'!=_0x1ce491['type'])return;const {data:_0x528349}=_0x1ce491;return _0x528349&&'sources'==_0x528349['key']?{'type':'format','content':''}:void 0x0;}),_0x100b22['plugins']['has']('ImageSizeAttributes')&&_0xb14e23['descriptionFactory']['registerDescriptionCallback'](_0x449c18=>{if('attribute'!=_0x449c18['type'])return;const {data:_0x320eab}=_0x449c18;return!_0x320eab||'width'!=_0x320eab['key']&&'height'!=_0x320eab['key']?void 0x0:{'type':'format','content':''};}),_0xb14e23['descriptionFactory']['registerDescriptionCallback'](_0x3a20e3=>{if(!!_0x5b61da['find'](({type:_0xf45f10,subType:_0x1a0fd5})=>_0x3a20e3['type']==_0xf45f10&&_0x3a20e3['subType']==_0x1a0fd5))return _0x3a20e3['previous']?{}:void 0x0;}),_0xb14e23['descriptionFactory']['registerDescriptionCallback'](_0x167c86=>{if('insertion'==_0x167c86['type']||'deletion'==_0x167c86['type']){const _0x5416ec=_0x167c86['getContainedElement']();if(_0x5416ec&&_0x5416ec['is']('element','caption'))return{'type':'insertion'==_0x167c86['type']?'addObject':'removeObject','element':_0x5416ec,'quantity':0x1};}}),_0xb14e23['descriptionFactory']['registerDescriptionCallback'](_0x55c2fb=>'formatBlock'==_0x55c2fb['type']&&'convertInlineImageToBlock'==_0x55c2fb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x55c2fb['type']&&'convertBlockImageToInline'==_0x55c2fb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb14e23['descriptionFactory']['registerDescriptionCallback'](_0x594965=>{if('attribute'!=_0x594965['type'])return;const {data:_0x5de09d}=_0x594965;if(!_0x5de09d||'alt'!=_0x5de09d['key'])return;const _0x53ceb5=_0x5de09d['newValue'];return _0x53ceb5?{'type':'format','content':o(_0x5502be,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x53ceb5+'\x22')}:{'type':'format','content':o(_0x5502be,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49f81e=this['editor'],_0x1c8f8d=_0x49f81e['locale'];_0x49f81e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x144de3=>{if('formatBlock'!=_0x144de3['type']&&'formatInline'!=_0x144de3['type'])return;const {data:_0x34e37b}=_0x144de3;if(_0x34e37b){if('imageTextAlternative'==_0x34e37b['commandName']){const _0x2f38db=_0x34e37b['commandParams'][0x0]['newValue'];return _0x2f38db?{'type':'format','content':o(_0x1c8f8d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2f38db+'\x22')}:{'type':'format','content':o(_0x1c8f8d,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x34e37b['commandName']){const _0x35766b=_0x34e37b['commandParams'][0x0]['width'];return _0x35766b?{'type':'format','content':o(_0x1c8f8d,'*Set\x20image\x20width:*\x20%0',_0x35766b)}:{'type':'format','content':o(_0x1c8f8d,'*Reset\x20image\x20width*')};}}});}}class at extends _0x9e29f0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x105d40=this['editor']['locale'],_0x1e60a8=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e60a8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1e60a8['descriptionFactory']['registerDescriptionCallback'](_0x1a2fa1=>{if('attribute'!=_0x1a2fa1['type'])return;const {data:_0x2373d0}=_0x1a2fa1;return _0x2373d0&&'src'==_0x2373d0['key']?_0x2373d0['newValue']&&_0x2373d0['oldValue']?{'type':'format','content':o(_0x105d40,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x77c7cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x77c7cc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x77c7cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x77c7cc['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x77c7cc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3949ab=this['editor'],_0x59bc36=_0x3949ab['locale'];_0x3949ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cb648=>{if('formatBlock'!=_0x2cb648['type']&&'formatInline'!=_0x2cb648['type'])return;const {data:_0x474f97}=_0x2cb648;if(!_0x474f97||'replaceImageSource'!=_0x474f97['commandName'])return;return{'type':'format','content':o(_0x59bc36,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x9e29f0{['afterInit'](){const _0x471e56=this['editor'];if(!_0x471e56['plugins']['has']('ImageStyleEditing'))return;const _0x1df332=_0x471e56['plugins']['get']('TrackChangesEditing'),_0x3bf5bc=_0x471e56['plugins']['get']('ImageUtils'),_0x27614f={};_0x1df332['enableCommand']('imageStyle',(_0x32ca1e,_0x3f72a6)=>{const _0x54465d=_0x471e56['plugins']['get']('Users')['me'],_0x5498a7=_0x471e56['commands']['get']('imageStyle');let _0x4c2f76=_0x3bf5bc['getClosestSelectedImageElement'](_0x471e56['model']['document']['selection']),_0x299609=_0x471e56['model']['createRangeOn'](_0x4c2f76),_0xd5ee98=_0x5498a7['value'];if(_0xd5ee98==_0x3f72a6['value'])return;const _0x139353={'commandName':'imageStyle','commandParams':[_0x3f72a6],'formatGroupId':_0x40f117()};_0x471e56['model']['change'](()=>{if(_0x1df332['getSuggestions']()['filter'](_0xa8f168=>_0xa8f168['isInContent']&&_0x54465d==_0xa8f168['author']&&('formatBlock'==_0xa8f168['type']||'formatInline'==_0xa8f168['type'])&&('imageStylePreApply'==_0xa8f168['subType']||'imageStylePostApply'==_0xa8f168['subType'])&&_0xa8f168['getFirstRange']()['isEqual'](_0x299609))['forEach'](_0x2f768d=>_0x1df332['discardSuggestion'](_0x2f768d['head'])),_0x4c2f76=_0x3bf5bc['getClosestSelectedImageElement'](_0x471e56['model']['document']['selection']),_0x299609=_0x471e56['model']['createRangeOn'](_0x4c2f76),_0x5498a7['refresh'](),_0x471e56['commands']['get']('imageTypeInline')['refresh'](),_0x471e56['commands']['get']('imageTypeBlock')['refresh'](),_0xd5ee98=_0x5498a7['value'],_0xd5ee98!=_0x3f72a6['value'])return _0x3bf5bc['isInlineImage'](_0x4c2f76)&&_0x5498a7['shouldConvertImageType'](_0x3f72a6['value'],_0x4c2f76)?(_0x32ca1e({..._0x3f72a6,'setImageSizes':!0x1}),_0x4c2f76=_0x3bf5bc['getClosestSelectedImageElement'](_0x471e56['model']['document']['selection']),void _0x1df332['markBlockFormat'](_0x4c2f76,{..._0x139353,'commandReversedParams':[{'value':_0xd5ee98||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3bf5bc['isBlockImage'](_0x4c2f76)?_0x1df332['markBlockFormat'](_0x4c2f76,_0x139353,[],'imageStylePostApply'):_0x1df332['markInlineFormat'](_0x299609,_0x139353,'imageStylePostApply'));});});for(const _0x27806f of _0x471e56['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x27614f[_0x27806f['name']]=_0x27806f['title']['toLowerCase']();_0x1df332['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1df332['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1df332['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1df332['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x386e4e])=>{_0x3bf5bc['setImageNaturalSizeAttributes'](_0x386e4e['getContainedElement']());}),_0x1df332['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x522db6,_0x347684)=>{_0x1df332['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x522db6,{'commandName':_0x347684['commandName'],'commandParams':_0x347684['commandReversedParams']});}),_0x1df332['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x593756,_0x1be2ab){if(_0x582a21(_0x593756,_0x1be2ab))return[_0x593756,_0x1be2ab];if(_0x582a21(_0x1be2ab,_0x593756))return[_0x1be2ab,_0x593756];return null;});const _0x1d1d1f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x582a21(_0x15e0e6,_0x218c0c){const _0x370ed3=_0x1d1d1f['findIndex'](({type:_0x65c10f,subType:_0x549704})=>_0x15e0e6['type']==_0x65c10f&&_0x15e0e6['subType']==_0x549704),_0xadc5b=_0x1d1d1f['findIndex'](({type:_0x229b17,subType:_0x245ef2})=>_0x218c0c['type']==_0x229b17&&_0x218c0c['subType']==_0x245ef2);if(_0x370ed3<0x0||_0xadc5b<0x0)return!0x1;const _0x14997a=_0x15e0e6['getFirstRange'](),_0x16d548=_0x218c0c['getFirstRange']();if((0x0==_0x370ed3||0x1==_0x370ed3)&&0x2==_0xadc5b&&_0x14997a['isIntersecting'](_0x16d548))return!0x0;if(0x2==_0x370ed3&&0x3==_0xadc5b){const _0x5c49a6=_0x1df332['_findSuggestions'](_0x14997a,'insertion')['filter'](({suggestion:_0x8186cd,meta:_0x5b01d2})=>_0x5b01d2['isOwn']&&'convertInlineImageToBlock'==_0x8186cd['subType']);if(_0x5c49a6['length']>0x1&&_0x16d548['end']['isEqual'](_0x14997a['start']))return!0x0;if(0x1==_0x5c49a6['length']&&(_0x14997a['start']['isEqual'](_0x16d548['end'])||_0x14997a['end']['isEqual'](_0x16d548['start'])))return!0x0;}if(0x3==_0x370ed3&&0x3==_0xadc5b&&_0x14997a['start']['isBefore'](_0x16d548['start'])){const _0x47b314=_0x14997a['end']['nodeAfter'],_0x214bad=_0x16d548['start']['nodeBefore'];return _0x3bf5bc['isBlockImage'](_0x47b314)&&_0x47b314===_0x214bad;}return!0x1;}_0x471e56['model']['document']['registerPostFixer'](()=>{let _0x2bf6cf=!0x1;const _0x263bfe=Array['from'](_0x471e56['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7f4ba2,data:_0x35739e}of _0x263bfe){const {group:_0x5adc81,type:_0x12da25,subType:_0x398eed,id:_0x10583e}=_0x1df332['_splitMarkerName'](_0x7f4ba2);if('suggestion'==_0x5adc81&&_0x1df332['hasSuggestion'](_0x10583e)){if('formatBlock'==_0x12da25&&('imageStylePreApply'==_0x398eed||'imageStylePostApply'==_0x398eed)){const _0x4e86e7=_0x1df332['getSuggestion'](_0x10583e);if(_0x35739e['newRange']){const _0x102484=_0x4e86e7['getFirstRange']()['getContainedElement']();if(_0x3bf5bc['isBlockImage'](_0x102484))continue;_0x1df332['discardSuggestion'](_0x4e86e7),_0x2bf6cf=!0x0;}}if('insertion'==_0x12da25&&'imageCaption'==_0x398eed&&!_0x35739e['newRange']){const _0x71bb3=_0x1df332['getSuggestion'](_0x10583e);_0x71bb3['next']&&_0x71bb3['next']['isInContent']&&(_0x1df332['discardSuggestion'](_0x71bb3['next']),_0x2bf6cf=!0x0);}}}return _0x2bf6cf;}),this['_registerLegacyDescription'](_0x27614f);}['_registerLegacyDescription'](_0x57c580){const _0x4e4b0b=this['editor'],_0x238d5c=_0x4e4b0b['locale'];_0x4e4b0b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e32d8=>{if('formatBlock'!=_0x4e32d8['type']&&'formatInline'!=_0x4e32d8['type'])return;const {data:_0x4a9afd}=_0x4e32d8;if(!_0x4a9afd||'imageStyle'!=_0x4a9afd['commandName'])return;const _0x981a66=_0x4a9afd['commandParams'][0x0]['value'];return _0x65a10f('side'===_0x981a66?o(_0x238d5c,'FORMAT_SIDE_IMAGE'):_0x57c580[_0x981a66]||_0x981a66);function _0x65a10f(_0x4fa2d2){return{'type':'format','content':o(_0x238d5c,'*Format:*\x20%0',_0x4fa2d2)};}});}}class ut extends _0x9e29f0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1b7d5d){super(_0x1b7d5d),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x575891=this['editor'],_0x3d8605=_0x575891['commands']['get']('importWord'),_0x3a53ad=_0x575891['commands']['get']('trackChanges');_0x3d8605&&(_0x3d8605['on']('execute',(_0x5b1256,[,_0x522f32])=>{this['_trackChangesValueDuringImport']=_0x3a53ad['value'],_0x522f32['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3d8605,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3d8605,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3a53ad['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x575891['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3864f1,_0x5730b2){const {suggestions:_0x4beaa5}=_0x5730b2,_0x13b2bd=this['editor']['commands']['get']('trackChanges'),_0x3272c5=_0x13b2bd['value'];this['_trackChangesValueDuringImport']!==_0x3272c5&&(_0x13b2bd['execute'](),this['_trackChangesExecuted']=!0x0),_0x4beaa5&&_0x4beaa5['forEach'](({id:_0xe31e74,type:_0x2e62be,author:_0x77f8ba,created_at:_0x29022a})=>{const _0x49ea13={'id':_0xe31e74,'type':_0x2e62be,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x77f8ba,'createdAt':_0x29022a?new Date(_0x29022a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x49ea13);});}}class ft extends _0x9e29f0{['afterInit'](){const _0x57fc15=this['editor'],_0x4eb25f=_0x57fc15['plugins']['get']('TrackChangesEditing');if(_0x57fc15['plugins']['has']('IndentEditing')&&(_0x4eb25f['enableCommand']('indent'),_0x4eb25f['enableCommand']('outdent')),_0x57fc15['plugins']['has']('IndentBlock')){for(const _0xb20d15 of['indentBlock','outdentBlock'])_0x4eb25f['enableDefaultAttributesIntegration'](_0xb20d15);}const _0x161290=_0x57fc15['locale'];_0x4eb25f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x161290,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2252ec=this['editor'],_0x5c8837=_0x2252ec['locale'],_0x5d749e=_0x2252ec['plugins']['get']('TrackChangesEditing');_0x5d749e['descriptionFactory']['registerDescriptionCallback'](_0x5753e1=>{if('formatBlock'!=_0x5753e1['type'])return;const {data:_0x34a6ef}=_0x5753e1;if(!_0x34a6ef)return;if('indentBlock'!=_0x34a6ef['commandName']&&'outdentBlock'!=_0x34a6ef['commandName'])return;const _0x535ca8=_0x5753e1['getItems']()[0x0],_0x55092b=_0x5d749e['descriptionFactory']['getItemLabel'](_0x535ca8);return'indentBlock'==_0x34a6ef['commandName']?{'type':'format','content':o(_0x5c8837,'*Indent:*\x20%0',_0x55092b)}:'outdentBlock'==_0x34a6ef['commandName']?{'type':'format','content':o(_0x5c8837,'*Outdent:*\x20%0',_0x55092b)}:void 0x0;});}}class ht extends _0x9e29f0{static get['requires'](){return[_0x305e25];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x9e29f0{['afterInit'](){const _0x384c2f=this['editor'];if(!_0x384c2f['plugins']['has']('LinkEditing'))return;const _0xe0329d=_0x384c2f['plugins']['get']('TrackChangesEditing'),_0x5f1f79=_0x384c2f['commands']['get']('link');_0xe0329d['enableDefaultAttributesIntegration']('link'),_0xe0329d['enableDefaultAttributesIntegration']('unlink');for(const _0x163fdf of _0x5f1f79['manualDecorators'])_0xe0329d['descriptionFactory']['registerAttributeLabel'](_0x163fdf['id'],'link\x20('+_0x163fdf['label']['toLowerCase']()+')');_0xe0329d['descriptionFactory']['registerDescriptionCallback'](_0x30c88c=>{if('attribute'!=_0x30c88c['type'])return;const {data:_0x3d14aa}=_0x30c88c;if(!_0x3d14aa||'linkHref'!=_0x3d14aa['key'])return;const _0x4ea5f6=_0x3d14aa['newValue'],_0x346f05=_0x384c2f['locale'];return{'type':'format','content':null==_0x4ea5f6?o(_0x346f05,'*Remove\x20link*'):o(_0x346f05,'*Set\x20link:*\x20%0','\x22'+_0x4ea5f6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xecee60=this['editor'],_0x3814df=_0xecee60['locale'];_0xecee60['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x161b02=>{if('formatInline'!=_0x161b02['type'])return;const {data:_0x1c3b20}=_0x161b02;if(_0x1c3b20){if('link'==_0x1c3b20['commandName']){const _0x4abbe0=_0x1c3b20['commandParams'][0x0];return{'type':'format','content':o(_0x3814df,'*Set\x20link:*\x20%0','\x22'+_0x4abbe0+'\x22')};}return'unlink'==_0x1c3b20['commandName']?{'type':'format','content':o(_0x3814df,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x9e29f0{['afterInit'](){const _0x436ba9=this['editor'],_0x1c5781=_0x436ba9['locale'];if(!_0x436ba9['plugins']['has']('LegacyListEditing'))return;const _0x4b71e0=_0x436ba9['plugins']['get']('TrackChangesEditing'),_0x104f13=_0x436ba9['plugins']['has']('LegacyTodoListEditing');function _0x433d8c(_0x4995de){return()=>{const _0x11592f=_0x436ba9['model']['document']['selection'],_0x40d15e=_0x436ba9['commands']['get'](_0x4995de);if(_0x40d15e['value'])return void _0x436ba9['execute']('paragraph',{});const _0x1c304c=_0x4995de['slice'](0x0,-0x4),_0xf61a4=function(_0x3d9d6b,_0x5eae41,_0x28cba2){let _0x1aec9f=Array['from'](_0x3d9d6b)['filter'](_0x5981a7=>function(_0x590172,_0x1757e5){return _0x1757e5['checkChild'](_0x590172['parent'],'listItem')&&!_0x1757e5['isObject'](_0x590172);}(_0x5981a7,_0x28cba2));_0x1aec9f=_0x1aec9f['filter'](_0x3ac1a3=>!_0x3ac1a3['is']('element','listItem')||_0x3ac1a3['getAttribute']('listType')!=_0x5eae41);const _0x2dcfdb=new Set();for(const _0x14be97 of _0x1aec9f)_0x14be97['is']('element','listItem')?_0x2dcfdb['add'](Le(_0x14be97)):_0x2dcfdb['add'](_0x14be97);return Array['from'](_0x2dcfdb);}(_0x11592f['getSelectedBlocks'](),_0x1c304c,_0x436ba9['model']['schema']);_0x436ba9['model']['change'](()=>{for(const _0x5249a3 of _0xf61a4)_0x4b71e0['markBlockFormat'](_0x5249a3,{'commandName':_0x4995de,'commandParams':[{'forceValue':!_0x40d15e['value']}],'formatGroupId':'blockName'},Ee(_0x5249a3));});};}function _0x54e720(_0x4de7a2){return()=>{const _0x4a541d=function(_0x159a69){let _0x5031ce=Array['from'](_0x159a69);const _0x44e4f4=_0x5031ce['findIndex'](_0x1f530b=>'listItem'!=_0x1f530b['name']);return _0x44e4f4>-0x1&&(_0x5031ce=_0x5031ce['slice'](0x0,_0x44e4f4)),_0x5031ce;}(_0x436ba9['model']['document']['selection']['getSelectedBlocks']()),_0x284437=_0x436ba9['model']['createRange'](_0x436ba9['model']['createPositionAt'](_0x4a541d[0x0],'before'),_0x436ba9['model']['createPositionAt'](_0x4a541d[_0x4a541d['length']-0x1],'end'));_0x436ba9['model']['change'](()=>{_0x4b71e0['markBlockFormat'](_0x284437,{'commandName':_0x4de7a2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2ca8f5){const _0x59766c=new Set();for(const _0x42b797 of _0x2ca8f5){let _0x51d3c8=_0x42b797['nextSibling'];for(;_0x51d3c8&&_0x51d3c8['getAttribute']('listIndent')>_0x42b797['getAttribute']('listIndent');)_0x59766c['add'](_0x51d3c8),_0x51d3c8=_0x51d3c8['nextSibling'];}return Array['from'](_0x59766c);}(_0x4a541d));});};}_0x4b71e0['enableCommand']('numberedList',_0x433d8c('numberedList')),_0x4b71e0['enableCommand']('bulletedList',_0x433d8c('bulletedList')),_0x104f13&&_0x4b71e0['enableCommand']('todoList',_0x433d8c('todoList')),_0x4b71e0['enableCommand']('indentList',_0x54e720('indentList')),_0x4b71e0['enableCommand']('outdentList',_0x54e720('outdentList')),_0x104f13&&_0x4b71e0['enableCommand']('checkTodoList',()=>{const _0x25ef86=_0x436ba9['commands']['get']('checkTodoList'),_0x457169=Array['from'](_0x25ef86['_selectedElements']);_0x457169['filter'](_0x20a0ac=>_0x20a0ac['getAttribute']('todoListChecked')!=_0x25ef86['value']),_0x436ba9['model']['change'](()=>{for(const _0x5b6483 of _0x457169)_0x4b71e0['markBlockFormat'](_0x5b6483,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x25ef86['value']}]});});}),_0x4b71e0['descriptionFactory']['registerElementLabel']('listItem',_0x486760=>o(_0x1c5781,'ELEMENT_LIST_ITEM',_0x486760)),_0x4b71e0['descriptionFactory']['registerDescriptionCallback'](_0x5721ce=>{if('formatBlock'!=_0x5721ce['type']&&'formatInline'!=_0x5721ce['type'])return;const {data:_0x562e93}=_0x5721ce;if(_0x562e93){if('numberedList'==_0x562e93['commandName']||'bulletedList'==_0x562e93['commandName']||'todoList'==_0x562e93['commandName'])switch(_0x562e93['commandName']['replace']('List','')){case'bulleted':return _0x2a14a8(o(_0x1c5781,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2a14a8(o(_0x1c5781,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2a14a8(o(_0x1c5781,'ELEMENT_TODO_LIST'));}if('indentList'==_0x562e93['commandName'])return{'type':'format','content':o(_0x1c5781,'*Indent:*\x20%0',o(_0x1c5781,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x562e93['commandName'])return{'type':'format','content':o(_0x1c5781,'*Outdent:*\x20%0',o(_0x1c5781,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x562e93['commandName'])return _0x562e93['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c5781,'*Check\x20item*')}:{'type':'format','content':o(_0x1c5781,'*Uncheck\x20item*')};}function _0x2a14a8(_0x3c0493){return{'type':'format','content':o(_0x1c5781,'*Change\x20to:*\x20%0',_0x3c0493)};}});}}function Le(_0xc38232){const _0x596762=_0xc38232['getAttribute']('listIndent');if(0x0==_0x596762)return _0xc38232;let _0x3e539b=_0xc38232;for(;_0xc38232['previousSibling']&&_0xc38232['previousSibling']['is']('element','listItem');){const _0x2ceb3d=_0xc38232['previousSibling']['getAttribute']('listIndent');if(_0x2ceb3d==_0x596762)_0x3e539b=_0xc38232['previousSibling'];else{if(_0x2ceb3d<_0x596762)break;}_0xc38232=_0xc38232['previousSibling'];}return _0x3e539b;}function Ee(_0x458c91){const _0x57b9ad=[];if(_0x458c91['is']('element','listItem')&&_0x458c91['getAttribute']('listIndent')>0x0){let _0xefc15e=_0x458c91['nextSibling'];for(;_0xefc15e&&'listItem'==_0xefc15e['name']&&_0xefc15e['getAttribute']('listIndent')==_0x458c91['getAttribute']('listIndent');)_0x57b9ad['push'](_0xefc15e),_0xefc15e=_0xefc15e['nextSibling'];}return _0x57b9ad;}class mt extends _0x9e29f0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1280ac=this['editor']['config']['get']('list.properties'),_0x528b23=this['editor']['plugins']['get']('TrackChangesEditing');_0x1280ac['styles']&&_0x528b23['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1280ac['reversed']&&_0x528b23['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1280ac['startIndex']&&_0x528b23['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x528b23['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf3a51e,_0x1852bc={}){const _0x5dd239=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44498e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5dd239['markMultiRangeBlockFormat'](_0x44498e,{'commandName':'listStyle','commandParams':[{'type':_0x1852bc['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4d80cf,_0x5e034b={}){const _0x14dcf2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ad47f=this['_getSuggestionBlocks'](_0x18b97c=>_0x18b97c['is']('element','listItem')&&'numbered'===_0x18b97c['getAttribute']('listType'));if(_0x5ad47f['length']<0x1)return;const _0x5b85cb=_0x5ad47f['map'](_0x24c79d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24c79d,'before'),this['editor']['model']['createPositionAt'](_0x24c79d,0x0)));this['editor']['model']['change'](()=>{_0x14dcf2['markMultiRangeBlockFormat'](_0x5b85cb,{'commandName':'listReversed','commandParams':[{'reversed':_0x5e034b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x51f464,_0x3939c5={}){const _0x1edc78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x341a0=this['_getSuggestionBlocks'](_0x28e108=>_0x28e108['is']('element','listItem')&&'numbered'===_0x28e108['getAttribute']('listType'));if(_0x341a0['length']<0x1)return;const _0x3e8e6f=_0x341a0['map'](_0x37f29c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37f29c,'before'),this['editor']['model']['createPositionAt'](_0x37f29c,0x0)));this['editor']['model']['change'](()=>{_0x1edc78['markMultiRangeBlockFormat'](_0x3e8e6f,{'commandName':'listStart','commandParams':[{'startIndex':_0x3939c5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5f3dae){if('formatBlock'!=_0x5f3dae['type']&&'formatInline'!=_0x5f3dae['type'])return;const _0x1ec9c3=this['editor']['locale'],{data:_0x591add}=_0x5f3dae;if(!_0x591add)return;let _0x25f94f,_0x38ab64;switch(_0x591add['commandName']){case'listStyle':_0x25f94f='*Change\x20to:*\x20%0',_0x38ab64={'type':'format','content':o(_0x1ec9c3,_0x25f94f,o(_0x1ec9c3,this['_getTranslationKeyForListStyle'](_0x591add['commandParams'][0x0]['type'])))};break;case'listReversed':_0x25f94f=_0x591add['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x38ab64={'type':'format','content':o(_0x1ec9c3,_0x25f94f)};break;case'listStart':_0x25f94f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x38ab64={'type':'format','content':o(_0x1ec9c3,_0x25f94f,_0x591add['commandParams'][0x0]['startIndex'])};}return _0x38ab64;}['_getSuggestionBlocksForListStyle'](){const _0x4e201d=this['editor']['plugins']['get']('LegacyListUtils');let _0x164fbb=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x164fbb[0x0]?.['is']('element','listItem')&&_0x164fbb['unshift'](..._0x4e201d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x164fbb[_0x164fbb['length']-0x1]?.['is']('element','listItem')&&_0x164fbb['push'](..._0x4e201d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x164fbb=[...new Set(_0x164fbb)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x164fbb=_0x164fbb['filter'](_0x276982=>_0x276982['is']('element','listItem'))),_0x164fbb;}['_getSuggestionBlocks'](_0x49460a){const _0x1c8655=this['editor']['plugins']['get']('LegacyListUtils');let _0x14155a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x49460a)['map'](_0x3e8f87=>{const _0x3f4a9b=this['editor']['model']['createPositionAt'](_0x3e8f87,0x0);return[..._0x1c8655['getSiblingNodes'](_0x3f4a9b,'backward'),..._0x1c8655['getSiblingNodes'](_0x3f4a9b,'forward')];})['flat']();return _0x14155a=[...new Set(_0x14155a)],_0x14155a;}['_getTranslationKeyForListStyle'](_0x30cdb8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x30cdb8)||'default')['toUpperCase']()+'_LIST_'+_0x30cdb8['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x9e29f0{['afterInit'](){const _0x4e3604=this['editor'];if(!_0x4e3604['plugins']['has']('MediaEmbedEditing'))return;const _0x4b6f5a=_0x4e3604['plugins']['get']('TrackChangesEditing'),_0x51ccb2=_0x4e3604['locale'];_0x4b6f5a['enableCommand']('mediaEmbed'),_0x4b6f5a['descriptionFactory']['registerElementLabel']('media',_0x5e99fe=>o(_0x51ccb2,'ELEMENT_MEDIA',_0x5e99fe));}}class pt extends _0x9e29f0{['afterInit'](){const _0x1de99e=this['editor'];_0x1de99e['plugins']['has']('MentionEditing')&&_0x1de99e['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x9e29f0{['afterInit'](){const _0x3f73a2=this['editor'];if(!_0x3f73a2['plugins']['has']('MergeFieldsEditing'))return;const _0x5aa916=_0x3f73a2['plugins']['get']('TrackChangesEditing'),_0x587a23=_0x3f73a2['locale'];_0x5aa916['enableCommand']('insertMergeField'),_0x5aa916['enableCommand']('insertMergeFieldBlock'),_0x5aa916['enableCommand']('insertMergeFieldImage'),_0x5aa916['descriptionFactory']['registerElementLabel']('mergeField',_0x1d29ab=>o(_0x587a23,'ELEMENT_MERGE_FIELD',_0x1d29ab)),_0x5aa916['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x4f2046=>o(_0x587a23,'ELEMENT_MERGE_FIELD',_0x4f2046)),_0x5aa916['descriptionFactory']['registerDescriptionCallback'](_0xa2fd7d=>{if('insertion'!=_0xa2fd7d['type']&&'deletion'!=_0xa2fd7d['type'])return;const _0x229a0d=_0xa2fd7d['getContainedElement']();if(null==_0x229a0d)return;const _0x20f79a=_0x3f73a2['plugins']['get']('MergeFieldsEditing');let _0xadf0d0;switch(_0x20f79a['getMergeFieldType'](_0x229a0d)){case null:return;case'image':{const _0x365cce=_0x20f79a['unwrapAffixes'](_0x229a0d['getAttribute']('src'));_0xadf0d0=_0x20f79a['getLabel'](_0x365cce)||_0x365cce;break;}default:{const _0x1a1f51=_0x229a0d['getAttribute']('id');_0xadf0d0=_0x20f79a['getLabel'](_0x1a1f51)||_0x1a1f51;break;}}return'insertion'==_0xa2fd7d['type']?{'type':'insertion','content':o(_0x587a23,'*Insert:*\x20%0','\x22'+_0xadf0d0+'\x22\x20'+o(_0x587a23,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x587a23,'*Remove:*\x20%0','\x22'+_0xadf0d0+'\x22\x20'+o(_0x587a23,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x9e29f0{['afterInit'](){const _0x304ec4=this['editor'],_0x5e9f69=_0x304ec4['plugins']['get']('TrackChangesEditing');_0x304ec4['plugins']['has']('MultiLevelList')&&(_0x5e9f69['enableDefaultAttributesIntegration']('multiLevelList'),_0x5e9f69['descriptionFactory']['registerDescriptionCallback'](_0x29f80f=>this['handleDescriptions'](_0x29f80f)));}['handleDescriptions'](_0x1a0659){const _0x9dee34=this['editor']['locale'],{data:_0xd2287}=_0x1a0659,_0xb8b87a={'type':'format','content':''};if(_0xd2287&&'listMarkerStyle'==_0xd2287['key']){if(!_0xd2287['oldValue'])return{'type':'format','content':o(_0x9dee34,'*Set\x20format:*\x20%0',o(_0x9dee34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd2287['newValue']+')'};if(!_0xd2287['newValue']){let _0x5bee4e=_0x1a0659['head'];for(;_0x5bee4e;){if(_0x5bee4e['data']&&'listType'==_0x5bee4e['data']['key']&&_0x5bee4e['data']['newValue'])return _0xb8b87a;_0x5bee4e=_0x5bee4e['next'];}return{'type':'format','content':o(_0x9dee34,'*Remove\x20format:*\x20%0',o(_0x9dee34,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0xd2287['oldValue']+')'};}}}}class bt extends _0x9e29f0{['afterInit'](){const _0x4dcbd6=this['editor'];if(!_0x4dcbd6['plugins']['has']('PageBreakEditing'))return;_0x4dcbd6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1f7c6e=_0x4dcbd6['plugins']['get']('TrackChangesEditing'),_0x2c8c89=_0x4dcbd6['locale'];_0x1f7c6e['descriptionFactory']['registerElementLabel']('pageBreak',_0x47d9ca=>o(_0x2c8c89,'ELEMENT_PAGE_BREAK',_0x47d9ca));}}class yt extends _0x9e29f0{['afterInit'](){const _0x259cf4=this['editor'];if(!_0x259cf4['plugins']['has']('Paragraph'))return;const _0x27ffb0=_0x259cf4['locale'],_0x2b48b8=_0x259cf4['plugins']['get']('TrackChangesEditing');_0x2b48b8['descriptionFactory']['registerElementLabel']('paragraph',_0x91eb82=>o(_0x27ffb0,'ELEMENT_PARAGRAPH',_0x91eb82)),_0x2b48b8['enableDefaultAttributesIntegration']('paragraph'),_0x2b48b8['enableCommand']('insertParagraph');const _0x3bc1b6=_0x2b48b8['descriptionFactory'];_0x3bc1b6['registerDescriptionCallback'](_0x331a55=>{if('insertion'!==_0x331a55['type'])return;const {start:_0x5118cf,end:_0x1b6397}=_0x331a55['getFirstRange']();if(!_0x5118cf['isTouching'](_0x1b6397)||!_0x5118cf['nodeAfter'])return;const _0xd153a7=_0x259cf4['model']['schema'],_0x5110cf=_0x5118cf['nodeAfter'];return _0xd153a7['isBlock'](_0x5110cf)&&!_0xd153a7['isLimit'](_0x5110cf)&&_0xd153a7['checkChild'](_0x5110cf,'$text')?{'type':'insertion','content':o(_0x27ffb0,'*Insert:*\x20%0',_0x3bc1b6['getItemLabel'](_0x5110cf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2eaa23=this['editor'],_0x2726cf=_0x2eaa23['locale'];_0x2eaa23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x142770=>{if('formatBlock'!=_0x142770['type'])return;const {data:_0x2dc404}=_0x142770;return _0x2dc404&&'paragraph'==_0x2dc404['commandName']?{'type':'format','content':o(_0x2726cf,'*Change\x20to:*\x20%0',o(_0x2726cf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}class jt extends _0x9e29f0{['afterInit'](){const _0x46dfe5=this['editor'];_0x46dfe5['commands']['get']('replaceSource')&&_0x46dfe5['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x9e29f0{['afterInit'](){const _0x5ef038=this['editor'];if(!_0x5ef038['plugins']['has']('RemoveFormatEditing'))return;_0x5ef038['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x429ebd=this['editor'];_0x429ebd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x523425=>{if('formatBlock'!=_0x523425['type']&&'formatInline'!=_0x523425['type'])return;const {data:_0xf8fbd4}=_0x523425;return _0xf8fbd4&&'removeFormat'==_0xf8fbd4['commandName']?{'type':'format','content':o(_0x429ebd['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class It extends _0x9e29f0{['afterInit'](){const _0x382e6a=this['editor'];if(!_0x382e6a['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x531ed0=_0x382e6a['plugins']['get']('TrackChangesEditing');_0x531ed0['enableCommand']('goToPreviousRestrictedEditingException'),_0x531ed0['enableCommand']('goToNextRestrictedEditingException');const _0x2e9368=_0x382e6a['plugins']['get']('RestrictedEditingModeEditing');_0x2e9368['enableCommand']('trackChanges'),_0x2e9368['enableCommand']('acceptSuggestion'),_0x2e9368['enableCommand']('discardSuggestion'),_0x2e9368['enableCommand']('acceptAllSuggestions'),_0x2e9368['enableCommand']('discardAllSuggestions'),_0x2e9368['enableCommand']('acceptSelectedSuggestions'),_0x2e9368['enableCommand']('discardSelectedSuggestions');}}class At extends _0x9e29f0{['afterInit'](){const _0x5c0c29=this['editor'];if(!_0x5c0c29['plugins']['has']('ShiftEnter'))return;const _0x41afff=_0x5c0c29['plugins']['get']('TrackChangesEditing');_0x41afff['enableCommand']('shiftEnter'),_0x41afff['descriptionFactory']['registerElementLabel']('softBreak',_0x50974f=>o(_0x5c0c29['locale'],'ELEMENT_LINE_BREAK',_0x50974f));}}function rn(_0x1110a9,_0x18b9aa,_0x3f7751){const _0x5a45d0=[];for(const _0x389890 of _0x18b9aa['getItems']())_0x389890['hasAttribute'](_0x1110a9)&&_0x5a45d0['push'](_0x3f7751['createRangeOn'](_0x389890));return _0x5a45d0;}class _t extends _0x9e29f0{['afterInit'](){const _0x376771=this['editor'],_0x1c2e81=_0x376771['plugins']['get']('TrackChangesEditing');_0x376771['plugins']['has']('StandardEditingModeEditing')&&(this['_enableEditingExceptionCommand'](),this['_enableEditingExceptionBlockCommand'](),_0x1c2e81['enableCommand']('restrictedEditingExceptionAuto'));}['_enableEditingExceptionCommand'](){const _0x47b777=this['editor'],_0x3261a8=_0x47b777['model'],_0x5947ed=_0x47b777['locale'],_0x17903a=_0x47b777['plugins']['get']('TrackChangesEditing'),_0x19b68e='restrictedEditingException',_0x34bf8d=_0x47b777['commands']['get'](_0x19b68e);_0x17903a['enableCommand'](_0x19b68e,(_0x25163b,_0x3766ab={})=>{const _0x5dab4b=_0x3261a8['document']['selection'];if(_0x5dab4b['isCollapsed'])return void _0x25163b(_0x3766ab);const _0x2db107=void 0x0!==_0x3766ab['forceValue']?_0x3766ab['forceValue']:!_0x34bf8d['value'];_0x3261a8['change'](()=>{const _0x4d3efb=Array['from'](_0x5dab4b['getRanges']());for(const _0x53002b of _0x4d3efb){const _0xc7c9d=_0x2db107?[_0x53002b]:rn(_0x19b68e,_0x53002b,_0x3261a8);for(const _0x44d776 of _0xc7c9d)_0x17903a['markInlineFormat'](_0x44d776,{'commandName':_0x19b68e,'commandParams':[{'forceValue':_0x2db107}]});}});}),_0x17903a['descriptionFactory']['registerDescriptionCallback'](_0x23d0ab=>{if('formatBlock'!=_0x23d0ab['type']&&'formatInline'!=_0x23d0ab['type'])return;const {data:_0x45ec64}=_0x23d0ab;return _0x45ec64&&_0x45ec64['commandName']==_0x19b68e?_0x45ec64['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5947ed,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5947ed,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}['_enableEditingExceptionBlockCommand'](){const _0x54ca9b=this['editor'],_0x52d80e=_0x54ca9b['locale'],_0x27985a=_0x54ca9b['plugins']['get']('TrackChangesEditing'),_0x20a276='restrictedEditingExceptionBlock',_0x2e9c70=this['editor']['commands']['get'](_0x20a276);_0x27985a['enableCommand'](_0x20a276,(_0x336d33,_0x408351={})=>{const _0x5f3b3d=this['editor']['model']['document']['selection'],_0x60ce45=_0x408351&&void 0x0!==_0x408351['forceValue']?_0x408351['forceValue']:!_0x2e9c70['value'];let _0x3bd3f0=[];if(_0x60ce45){const _0x5b4d0e=Array['from'](_0x5f3b3d['getSelectedBlocks']())['filter'](_0x5de450=>function(_0x2fd3c2){return!!_0x2fd3c2['findAncestor']('restrictedEditingException',{'includeSelf':!0x0});}(_0x5de450)||function(_0x54b442,_0x327d36){const _0x322b8a=_0x327d36['createContext'](_0x54b442['parent']);if(!_0x327d36['checkChild'](_0x322b8a,'restrictedEditingException'))return!0x1;if(!_0x327d36['checkChild'](_0x322b8a['push']('restrictedEditingException'),_0x54b442))return!0x1;return!0x0;}(_0x5de450,this['editor']['model']['schema']));_0x3bd3f0=to(_0x5b4d0e,_0x54ca9b['model']);}else{const _0x1f92ae=Array['from'](_0x5f3b3d['getSelectedBlocks']())['map'](_0x43f952=>function(_0x1320ff){let _0x313733=_0x1320ff;for(;_0x313733['parent'];){if('restrictedEditingException'==_0x313733['parent']['name'])return _0x313733;_0x313733=_0x313733['parent'];}return null;}(_0x43f952))['filter'](_0x58aa38=>!!_0x58aa38);_0x3bd3f0=to(_0x1f92ae,_0x54ca9b['model']);}_0x54ca9b['model']['change'](()=>{for(const _0x184101 of _0x3bd3f0)_0x27985a['markBlockFormat'](_0x184101,{'commandName':_0x20a276,'commandParams':[{'forceValue':_0x60ce45}]});});}),_0x27985a['descriptionFactory']['registerDescriptionCallback'](_0x84c3f3=>{const {data:_0x53bf27}=_0x84c3f3;if(_0x53bf27&&_0x53bf27['commandName']==_0x20a276)return _0x53bf27['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52d80e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x52d80e,'FORMAT_RESTRICTED_DISABLED')};});}}class Ct extends _0x9e29f0{['afterInit'](){const _0xe2bbe6=this['editor'];if(!_0xe2bbe6['plugins']['has']('Style')||!_0xe2bbe6['plugins']['has']('DataSchema'))return;const _0x2913eb=_0xe2bbe6['plugins']['get']('TrackChangesEditing'),_0x53a764=_0xe2bbe6['locale'],_0x4beac9=_0xe2bbe6['config']['get']('style')||{},_0x4d9cc0=_0xe2bbe6['plugins']['get']('GeneralHtmlSupport'),_0x305779=_0xe2bbe6['plugins']['get']('StyleUtils')['normalizeConfig'](_0xe2bbe6['plugins']['get']('DataSchema'),_0x4beac9['definitions']);_0x2913eb['enableDefaultAttributesIntegration']('style');const _0x3ca810=new Set();for(const _0x525837 of _0x305779['block']){const _0x52c07d=_0x4d9cc0['getGhsAttributeNameForElement'](_0x525837['element']);_0x3ca810['add'](_0x52c07d);}const _0x57ae65=new Set();for(const _0x4a4132 of _0x305779['inline']){const _0x1d8a38=_0x4d9cc0['getGhsAttributeNameForElement'](_0x4a4132['element']);_0x57ae65['add'](_0x1d8a38);for(const _0x3b3d8c of _0x4a4132['ghsAttributes'])_0x57ae65['add'](_0x3b3d8c);}for(const _0x197d82 of _0x3ca810)_0x2913eb['descriptionFactory']['registerAttributeLabel'](_0x197d82,o(_0x53a764,'FORMAT_STYLE'));for(const _0x346a60 of _0x57ae65)_0x2913eb['descriptionFactory']['registerAttributeLabel'](_0x346a60,o(_0x53a764,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc292c2=this['editor'],_0xb109e7=_0xc292c2['locale'];_0xc292c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15d8dc=>{if('formatBlock'!=_0x15d8dc['type']&&'formatInline'!=_0x15d8dc['type'])return;const {data:_0x27d4a5}=_0x15d8dc;return _0x27d4a5&&'style'===_0x27d4a5['commandName']?_0x27d4a5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb109e7,'*Set\x20format:*\x20%0',_0x27d4a5['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xb109e7,'*Remove\x20format:*\x20%0',_0x27d4a5['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Nt extends _0x9e29f0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x225146){super(_0x225146),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x5ce79c=this['editor'],_0x15517e=_0x5ce79c['model']['document']['selection'];if(!_0x5ce79c['plugins']['has']('TableEditing'))return;const _0xb8b44a=_0x5ce79c['locale'],_0x39711c=_0x5ce79c['plugins']['get']('TrackChangesEditing'),_0x4749fd=_0x5ce79c['plugins']['get']('TableUtils');_0x39711c['descriptionFactory']['registerElementLabel']('table',_0x12b36e=>o(_0xb8b44a,'ELEMENT_TABLE',_0x12b36e)),this['_setupColumnsRowsFixing'](),_0x39711c['enableCommand']('insertTable'),_0x39711c['enableCommand']('selectTableRow'),_0x39711c['enableCommand']('selectTableColumn');for(const _0x1e8973 of['insertTableRowAbove','insertTableRowBelow']){const _0x290e1b=_0x5ce79c['commands']['get'](_0x1e8973);_0x39711c['enableCommand'](_0x1e8973,_0x5be232=>{_0x5ce79c['model']['change'](_0x10f41e=>{_0x5be232();const _0xd767ee='above'===_0x290e1b['order'],_0x50195d=_0x4749fd['getSelectionAffectedTableCells'](_0x15517e),_0x45c1c7=_0x4749fd['getRowIndexes'](_0x50195d),_0x42a527=_0xd767ee?_0x45c1c7['first']-0x1:_0x45c1c7['last']+0x1,_0x5e49a5=_0x50195d[0x0]['findAncestor']('table'),_0x4fa8a6=_0x4749fd['createTableWalker'](_0x5e49a5,{'startRow':_0x42a527,'endRow':_0x42a527}),_0x398a12=Array['from'](_0x4fa8a6)['map'](_0x1176a9=>_0x10f41e['createRangeOn'](_0x1176a9['cell']));_0x39711c['markMultiRangeInsertion'](_0x398a12,'tableRow');});});}for(const _0x312f8f of['insertTableColumnLeft','insertTableColumnRight']){const _0x5babe5=_0x5ce79c['commands']['get'](_0x312f8f);_0x39711c['enableCommand'](_0x312f8f,_0x2991ff=>{_0x5ce79c['model']['change'](_0x43dcca=>{_0x2991ff();const _0x36858f='left'===_0x5babe5['order'],_0x10cafa=_0x4749fd['getSelectionAffectedTableCells'](_0x15517e),_0x512a31=_0x4749fd['getColumnIndexes'](_0x10cafa),_0x1f7bfa=_0x36858f?_0x512a31['first']-0x1:_0x512a31['last']+0x1,_0x360693=_0x10cafa[0x0]['findAncestor']('table'),_0x398ae0=_0x4749fd['createTableWalker'](_0x360693,{'startRow':0x0,'column':_0x1f7bfa,'includeAllSlots':!0x1}),_0x4e4257=Array['from'](_0x398ae0)['map'](_0x4c5e88=>_0x43dcca['createRangeOn'](_0x4c5e88['cell']));_0x39711c['markMultiRangeInsertion'](_0x4e4257,'tableColumn');});});}for(const _0x6054cf of['removeTableRow','removeTableColumn']){const _0x5776e7=_0x6054cf['substr'](0xb),_0x47cd57=_0x5776e7['toLowerCase'](),_0x5694f5=_0x47cd57['substr'](0x0,0x3)+'span',_0x62969b='table'+_0x5776e7,_0x474b02='min'+_0x5776e7,_0x4ad1aa='max'+_0x5776e7;_0x39711c['enableCommand'](_0x6054cf,()=>{_0x5ce79c['model']['change'](_0x1d9b0f=>{const _0x5ec7ed=_0x4749fd['getSelectionAffectedTableCells'](_0x15517e),_0x1fa268=_0x5ec7ed[0x0]['findAncestor']('table');let _0xa51e27;if('removeTableRow'==_0x6054cf){const _0x594f55=_0x4749fd['getRowIndexes'](_0x5ec7ed);_0xa51e27={'startRow':_0x594f55['first'],'endRow':_0x594f55['last'],'includeAllSlots':!0x0};}else{const _0x473eb1=_0x4749fd['getColumnIndexes'](_0x5ec7ed);_0xa51e27={'startColumn':_0x473eb1['first'],'endColumn':_0x473eb1['last'],'includeAllSlots':!0x0};}const _0x49f94b=_0x4749fd['createTableWalker'](_0x1fa268,_0xa51e27),_0x302abb=Array['from'](_0x49f94b)['map'](({cell:_0x12bc22})=>_0x12bc22),_0x3cb5fd=_e(_0x302abb['filter'](_0xe240a9=>_0xe240a9['hasAttribute'](_0x5694f5))),_0x5a2a7e=_e(_0x302abb['filter'](_0x1b8df7=>!_0x1b8df7['hasAttribute'](_0x5694f5)))['map'](_0x1f3df9=>_0x1d9b0f['createRangeOn'](_0x1f3df9)),_0x5059b=_0x39711c['markMultiRangeDeletion'](_0x5a2a7e,_0x62969b);if(_0x5059b&&('tableRow'==_0x5059b['subType']||'tableColumn'==_0x5059b['subType'])){const _0x3e5665=this['_getSuggestionCoords'](_0x5059b);for(const _0x57a33a of _0x3cb5fd){const _0x55a69d=_0x1d9b0f['createRangeOn'](_0x57a33a),_0x4fd2ff=_0x4749fd['getCellLocation'](_0x57a33a),_0x266b1d=_0x57a33a['getAttribute'](_0x5694f5)-0x1,_0x114db1=_0x3e5665[_0x474b02],_0x16dfe4=_0x3e5665[_0x4ad1aa];_0x114db1<=_0x4fd2ff[_0x47cd57]&&_0x4fd2ff[_0x47cd57]+_0x266b1d<=_0x16dfe4&&_0x5059b['addRange'](_0x55a69d);}}});});}function _0x1eedda(_0x10d2a7){const _0xa42ca9=Array['from'](_0x15517e['getRanges']())['map'](_0x11114f=>_0x238721['fromRange'](_0x11114f));_0x5ce79c['model']['change'](_0x304156=>{const _0xc3c08c=_0x304156['batch'];_0x10d2a7=_0x10d2a7['filter'](_0x30d16d=>'$graveyard'!=_0x30d16d['root']['rootName']),_0x304156['setSelection'](_0x10d2a7),_0x5ce79c['commands']['get']('removeTableRow')['refresh'](),_0x5ce79c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5ce79c['model']['enqueueChange'](()=>{_0x5ce79c['model']['enqueueChange'](_0xc3c08c,_0x55289d=>{const _0x400259=_0xa42ca9['filter'](_0x32352b=>'$graveyard'!=_0x32352b['root']['rootName']);_0x400259['length']>0x0&&_0x55289d['setSelection'](_0x400259);for(const _0x40d41 of _0xa42ca9)_0x40d41['detach']();});});});}function _0x345ecd(_0x2b6d14){_0x5ce79c['model']['change'](_0x1a7eac=>{const _0x83b95f=Array['from'](_0x15517e['getRanges']())['map'](_0x5ce781=>_0x238721['fromRange'](_0x5ce781)),_0x4f859e=[];for(const _0x412ab9 of _0x2b6d14)for(const _0x4c5280 of _0x412ab9['getItems']({'shallow':!0x0}))_0x4f859e['push'](_0x4c5280);for(const _0x56e68a of _0x4f859e)'$graveyard'!=_0x56e68a['root']['rootName']&&(_0x1a7eac['setSelection'](_0x1a7eac['createPositionAt'](_0x56e68a,0x0)),_0x5ce79c['commands']['get']('removeTableColumn')['refresh'](),_0x5ce79c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x502017=_0x83b95f['filter'](_0x484541=>'$graveyard'!=_0x484541['root']['rootName']);_0x502017['length']>0x0&&_0x1a7eac['setSelection'](_0x502017);for(const _0x1fd3b4 of _0x83b95f)_0x1fd3b4['detach']();});}function _0x51e354(_0x3e17a3,_0x35a848){return _0x35a848['every'](_0x41672f=>_0x3e17a3['some'](_0x561f6e=>_0x561f6e['end']['isEqual'](_0x41672f['start'])||_0x41672f['end']['isEqual'](_0x561f6e['start'])));}function _0x173984(_0x254884,_0x47c8e5){return!_0x254884['some'](_0x4e54b4=>_0x47c8e5['some'](_0x21dab7=>_0x4e54b4['isIntersecting'](_0x21dab7)))&&_0x254884['some'](_0x17df33=>_0x47c8e5['some'](_0x15c029=>_0x17df33['end']['isTouching'](_0x15c029['start'])));}_0x39711c['descriptionFactory']['registerDescriptionCallback'](_0x367472=>{if('insertion'!=_0x367472['type']&&'deletion'!=_0x367472['type'])return;const _0x7d0d1f=_0x367472['getContainedElement']();if(null!=_0x7d0d1f&&_0x7d0d1f['is']('element','table')){if('insertion'==_0x367472['type']){const _0x5988a0=_0x367472['getItems']()['filter'](_0x10eebb=>_0x10eebb['is']('$textProxy'))['map'](_0x3da270=>_0x3da270['data']);if(_0x5988a0['length'])return{'type':'insertion','content':o(_0xb8b44a,'*Insert:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5988a0['join']('\x20')+'\x22'))};}if('deletion'==_0x367472['type']){const _0x446638=_0x367472['getItems']()['filter'](_0x568624=>_0x568624['is']('$textProxy'))['map'](_0x4a66fa=>_0x4a66fa['data']);if(_0x446638['length'])return{'type':'deletion','content':o(_0xb8b44a,'*Remove:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x446638['join']('\x20')+'\x22'))};}}}),_0x39711c['descriptionFactory']['registerDescriptionCallback'](_0xf4ceec=>{if('tableRow'==_0xf4ceec['subType']){const _0x2ec373=_0xf4ceec['getItems']()['filter'](_0x15fb78=>_0x15fb78['is']('$textProxy'))['map'](_0x578b7d=>_0x578b7d['data']),_0x5ed775=this['_getSuggestionCoords'](_0xf4ceec),_0x1d8ed4=_0x5ed775['maxRow']-_0x5ed775['minRow']+0x1;if('insertion'==_0xf4ceec['type'])return _0x2ec373['length']?{'type':'insertion','content':o(_0xb8b44a,'*Insert:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d8ed4,'\x22'+_0x2ec373['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xb8b44a,'*Insert:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_ROW',_0x1d8ed4))};if('deletion'==_0xf4ceec['type'])return _0x2ec373['length']?{'type':'deletion','content':o(_0xb8b44a,'*Remove:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1d8ed4,'\x22'+_0x2ec373['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xb8b44a,'*Remove:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_ROW',_0x1d8ed4))};}if('tableColumn'==_0xf4ceec['subType']){const _0x52d102=_0xf4ceec['getItems']()['filter'](_0x4fb360=>_0x4fb360['is']('$textProxy'))['map'](_0x1c863d=>_0x1c863d['data']),_0x58d169=this['_getSuggestionCoords'](_0xf4ceec),_0x3d21af=_0x58d169['maxColumn']-_0x58d169['minColumn']+0x1;if('insertion'==_0xf4ceec['type'])return _0x52d102['length']?{'type':'insertion','content':o(_0xb8b44a,'*Insert:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3d21af,'\x22'+_0x52d102['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xb8b44a,'*Insert:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_COLUMN',_0x3d21af))};if('deletion'==_0xf4ceec['type'])return _0x52d102['length']?{'type':'deletion','content':o(_0xb8b44a,'*Remove:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3d21af,'\x22'+_0x52d102['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xb8b44a,'*Remove:*\x20%0',o(_0xb8b44a,'ELEMENT_TABLE_COLUMN',_0x3d21af))};}}),_0x39711c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1eedda),_0x39711c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1eedda),_0x39711c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x345ecd),_0x39711c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x345ecd),_0x39711c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x51e354),_0x39711c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x51e354),_0x39711c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x173984),_0x39711c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x173984);}['_acceptFormatSuggestionCallbackFactory'](){const _0x21c024=this['editor'],_0x12b199=_0x21c024['model']['document']['selection'];return(_0x35b51c,_0x35d38f)=>{_0x21c024['model']['change'](_0x184c81=>{const {commandName:_0x49eb9b,commandParams:_0x1352cf}=_0x35d38f;let _0x37db3e=_0x35b51c[0x0]['end']['nodeBefore'];_0x1352cf&&_0x1352cf[0x0]&&!0x1===_0x1352cf[0x0]['forceValue']&&(_0x37db3e=_0x35b51c[0x0]['start']['nodeAfter']);const _0x56bea0=_0x184c81['createRangeIn'](_0x37db3e);if('$graveyard'==_0x56bea0['root']['rootName'])return;const _0x3cced4=Array['from'](_0x12b199['getRanges']())['map'](_0x2cea0c=>_0x238721['fromRange'](_0x2cea0c));_0x184c81['setSelection'](_0x56bea0),_0x21c024['commands']['get'](_0x49eb9b)['refresh'](),_0x1352cf['push']({'forceDefaultExecution':!0x0}),_0x21c024['execute'](_0x49eb9b,..._0x1352cf);const _0xcb6ab0=_0x3cced4['filter'](_0x12ac01=>'$graveyard'!=_0x12ac01['root']['rootName']);_0xcb6ab0['length']>0x0&&_0x184c81['setSelection'](_0xcb6ab0);for(const _0x5b714e of _0x3cced4)_0x5b714e['detach']();});};}['_getCoordsForCells'](_0x16bfac){const _0x4e8dca=this['editor']['plugins']['get']('TableUtils');let _0x1342ed=Number['MAX_SAFE_INTEGER'],_0x533a16=Number['MIN_SAFE_INTEGER'],_0x146a2e=Number['MAX_SAFE_INTEGER'],_0x16414a=Number['MIN_SAFE_INTEGER'];for(const _0xde9ab0 of _0x16bfac){if('$graveyard'==_0xde9ab0['root']['rootName'])continue;const {row:_0x23d8ea,column:_0x194f85}=_0x4e8dca['getCellLocation'](_0xde9ab0),_0x31ee64=_0xde9ab0['hasAttribute']('rowspan')?_0xde9ab0['getAttribute']('rowspan')-0x1:0x0,_0x4a62f0=_0xde9ab0['hasAttribute']('colspan')?_0xde9ab0['getAttribute']('colspan')-0x1:0x0;_0x1342ed=_0x23d8ea<_0x1342ed?_0x23d8ea:_0x1342ed,_0x533a16=_0x23d8ea+_0x31ee64>_0x533a16?_0x23d8ea+_0x31ee64:_0x533a16,_0x146a2e=_0x194f85<_0x146a2e?_0x194f85:_0x146a2e,_0x16414a=_0x194f85+_0x4a62f0>_0x16414a?_0x194f85+_0x4a62f0:_0x16414a;}return{'minRow':_0x1342ed,'maxRow':_0x533a16,'minColumn':_0x146a2e,'maxColumn':_0x16414a};}['_setupColumnsRowsFixing'](){const _0x36860e=this['editor'],_0x46c169=_0x36860e['plugins']['get']('TrackChangesEditing'),_0x166883=_0x36860e['plugins']['get']('TableUtils');_0x36860e['model']['document']['on']('change:data',()=>{const _0x53c4e1=Array['from'](_0x36860e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ffce7,data:_0x185348}of _0x53c4e1){const {group:_0x354fd3,id:_0x221979,subType:_0x525115}=_0x46c169['_splitMarkerName'](_0x2ffce7);if('suggestion'!=_0x354fd3)continue;if(null!=_0x185348['oldRange'])continue;const _0x515d5f=_0x46c169['getSuggestion'](_0x221979);this['_tablePostFixingSubtypes']['includes'](_0x525115)&&this['_tableSuggestions']['add'](_0x515d5f);}},{'priority':'low'});const _0x5bfb2b=(_0x5bcf3c,_0x2cdad2)=>{let _0x4280ee=!0x1;const _0x50bb3d=_0x2cdad2['createRangeOn'](_0x5bcf3c),_0x4fe684=_0x5bcf3c['findAncestor']('table'),_0x122058=_0x166883['getCellLocation'](_0x5bcf3c);for(const _0xb8949d of this['_tableSuggestions']){const _0x179641=_0xb8949d['subType'],_0x7a43f5=_0x179641['startsWith']('tablePaste'),_0x2a61af=_0x179641['substr'](_0x7a43f5?0xa:0x5),_0x388449=_0x2a61af['toLowerCase'](),_0x49103c=_0x388449['substr'](0x0,0x3)+'span',_0x4092b5='min'+_0x2a61af,_0x2f96ef='max'+_0x2a61af;if(!_0xb8949d['isInContent'])continue;if(_0x4fe684!=_0xb8949d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xb8949d['isIntersectingWithRange'](_0x50bb3d))continue;const _0x478529=_0x5bcf3c['hasAttribute'](_0x49103c)?_0x5bcf3c['getAttribute'](_0x49103c)-0x1:0x0,_0x1e51a6=this['_getSuggestionCoords'](_0xb8949d),_0x4b2ed8=_0x1e51a6[_0x4092b5],_0x505638=_0x1e51a6[_0x2f96ef];_0x4b2ed8<=_0x122058[_0x388449]&&_0x122058[_0x388449]+_0x478529<=_0x505638&&(_0xb8949d['addRange'](_0x50bb3d),_0x4280ee=!0x0);}return _0x4280ee;};_0x36860e['model']['document']['registerPostFixer'](_0x4bf601=>{let _0x1c02c9=!0x1;for(const _0x57e910 of _0x36860e['model']['document']['differ']['getChanges']())if('insert'==_0x57e910['type']){if('tableRow'==_0x57e910['name']){for(const _0x11e321 of _0x57e910['position']['nodeAfter']['getChildren']())_0x1c02c9=_0x1c02c9||_0x5bfb2b(_0x11e321,_0x4bf601);}else'tableCell'==_0x57e910['name']&&(_0x1c02c9=_0x1c02c9||_0x5bfb2b(_0x57e910['position']['nodeAfter'],_0x4bf601));}return _0x1c02c9;});}['_getSuggestionCoords'](_0x4ede56){return this['_getCoordsForCells'](_0x4ede56['getRanges']()['map'](_0x2aa56b=>_0x2aa56b['start']['nodeAfter']));}}function _e(_0x4841ab){return Array['from'](new Set(_0x4841ab)['values']());}class $t extends _0x9e29f0{static get['requires'](){return[Nt];}['afterInit'](){const _0x41557f=this['editor'],_0x23962e=_0x41557f['model']['document']['selection'],_0x55b4e9=_0x41557f['locale'];if(!_0x41557f['plugins']['has']('TableEditing'))return;const _0x12d1f2=_0x41557f['plugins']['get']('TrackChangesEditing'),_0x25c9a4=_0x41557f['plugins']['get']('TableUtils'),_0x197779=_0x41557f['plugins']['get'](Nt);_0x197779['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x12d1f2['enableCommand']('mergeTableCells',()=>{const _0xf524b6=_0x25c9a4['getSelectionAffectedTableCells'](_0x41557f['model']['document']['selection']);_0x41557f['model']['change'](()=>{_0x12d1f2['markMultiRangeBlockFormat'](_0xf524b6,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x41557f['commands']['get']('mergeTableCells')['on']('execute',(_0x2b07d5,_0x3288a8)=>{_0x41557f['commands']['get']('trackChanges')['value']&&(_0x3288a8['length']>0x0&&_0x3288a8[_0x3288a8['length']-0x1]&&_0x3288a8[_0x3288a8['length']-0x1]['forceDefaultExecution']||_0x12d1f2['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2b07d5['stop']());},{'priority':'highest'});for(const _0x364594 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x49e9a7=_0x41557f['commands']['get'](_0x364594);_0x12d1f2['enableCommand'](_0x364594,()=>{const _0x53f10a=_0x41557f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4bda6d=>_0x4bda6d['is']('element','tableCell')),_0x4baaf6=_0x49e9a7['value'];_0x41557f['model']['change'](()=>{_0x12d1f2['markMultiRangeBlockFormat']([_0x53f10a,_0x4baaf6],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x29f189 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4b8b55=_0x41557f['commands']['get'](_0x29f189);_0x12d1f2['enableCommand'](_0x29f189,()=>{const _0x4bcc99=_0x25c9a4['getSelectionAffectedTableCells'](_0x41557f['model']['document']['selection'])[0x0],_0x55c9a4=_0x4bcc99['findAncestor']('table'),{column:_0xd06841,row:_0x3328af}=_0x25c9a4['getCellLocation'](_0x4bcc99);let _0x59be44=[];if('horizontally'==_0x4b8b55['direction']){const _0x5dc7c2=_0x25c9a4['createTableWalker'](_0x55c9a4,{'startRow':_0x3328af,'endRow':_0x3328af,'includeAllSlots':!0x0});_0x59be44=Array['from'](_0x5dc7c2)['map'](_0x50a1e8=>_0x50a1e8['cell']);}else{const _0x134a18=_0x25c9a4['createTableWalker'](_0x55c9a4,{'column':_0xd06841,'includeAllSlots':!0x0});_0x59be44=Array['from'](_0x134a18)['map'](_0x352533=>_0x352533['cell']);}_0x41557f['model']['change'](_0x494186=>{_0x12d1f2['markBlockFormat'](_0x494186['createRangeOn'](_0x4bcc99),{'commandName':_0x29f189,'commandParams':[]},_0x59be44,_0x29f189);});});}_0x12d1f2['descriptionFactory']['registerDescriptionCallback'](_0x34814e=>{if('formatBlock'!=_0x34814e['type']&&'formatInline'!=_0x34814e['type'])return;const {data:_0x58cbfc}=_0x34814e;return _0x58cbfc&&'mergeTableCells'==_0x58cbfc['commandName']?{'type':'format','content':o(_0x55b4e9,'*Merge\x20cells*')}:void 0x0;}),_0x12d1f2['descriptionFactory']['registerDescriptionCallback'](_0x49f913=>{if('formatBlock'!=_0x49f913['type']&&'formatInline'!=_0x49f913['type'])return;const {data:_0x20de31}=_0x49f913;return _0x20de31?'splitTableCellVertically'==_0x20de31['commandName']?{'type':'format','content':o(_0x55b4e9,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x20de31['commandName']?{'type':'format','content':o(_0x55b4e9,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x52dd2e=_0x197779['_acceptFormatSuggestionCallbackFactory']();for(const _0x5ee76c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x12d1f2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ee76c,'accept',_0x52dd2e);for(const _0x17395a of['splitTableCellVertically','splitTableCellHorizontally'])_0x12d1f2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17395a,'accept',_0x52dd2e);_0x12d1f2['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x55cf1c=>{_0x41557f['model']['change'](_0x1196ed=>{const _0xd826fb=Array['from'](_0x23962e['getRanges']())['map'](_0x5127eb=>_0x238721['fromRange'](_0x5127eb));_0x1196ed['setSelection'](_0x55cf1c),_0x41557f['commands']['get']('mergeTableCells')['refresh'](),_0x41557f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x30d13e=_0xd826fb['filter'](_0x3d4f6c=>'$graveyard'!=_0x3d4f6c['root']['rootName']);_0x30d13e['length']>0x0&&_0x1196ed['setSelection'](_0x30d13e);for(const _0x46278d of _0xd826fb)_0x46278d['detach']();});});for(const _0x3e0bd7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3482fc=_0x41557f['commands']['get'](_0x3e0bd7);_0x3482fc['on']('set:isEnabled',(_0x3be7b8,_0x374442,_0x5a21c6)=>{if(_0x5a21c6){const _0x50188b=_0x41557f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1dfa31=>_0x1dfa31['is']('element','tableCell'));this['_areMergableCells'](_0x3482fc['value'],_0x50188b)||(_0x3be7b8['return']=!0x1,_0x3be7b8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x50aca7=this['editor']['commands']['get']('mergeTableCells'),_0x102284=this['editor']['plugins']['get']('TableUtils');if(!_0x50aca7['isEnabled'])return!0x1;const _0x383b60=_0x102284['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3a45b4 of _0x383b60)for(const _0xafc23e of _0x383b60)if(_0x3a45b4!=_0xafc23e&&!this['_areMergableCells'](_0x3a45b4,_0xafc23e))return!0x1;return!0x0;}['_areMergableCells'](_0xd9fc97,_0x5cd7bb){const _0x111661=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34ae2a=this['editor']['model']['createRangeOn'](_0xd9fc97),_0x8c699f=this['editor']['model']['createRangeOn'](_0x5cd7bb),_0xe75514=new Set(),_0x584448=new Set();for(const _0x19f23c of _0x111661['getSuggestions']())if(('insertion'==_0x19f23c['type']||'deletion'==_0x19f23c['type']||'mergeTableCells'==_0x19f23c['subType'])&&_0x19f23c['isInContent']){for(const _0x3511f5 of _0x19f23c['getRanges']())_0x3511f5['containsRange'](_0x34ae2a,!0x0)&&_0xe75514['add'](_0x19f23c['type']+':'+_0x19f23c['author']['id']),_0x3511f5['containsRange'](_0x8c699f,!0x0)&&_0x584448['add'](_0x19f23c['type']+':'+_0x19f23c['author']['id']);}if(_0xe75514['size']!=_0x584448['size'])return!0x1;for(const _0x33aefd of _0xe75514)if(!_0x584448['has'](_0x33aefd))return!0x1;return!0x0;}}class vt extends _0x9e29f0{static get['requires'](){return[Nt];}['afterInit'](){const _0x1a0739=this['editor'];if(!_0x1a0739['plugins']['has']('TableEditing'))return;const _0x493a4c=_0x1a0739['locale'],_0xa0f785=_0x1a0739['plugins']['get']('TrackChangesEditing');_0xa0f785['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xa0f785['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xa0f785['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x493a4c,'FORMAT_HEADER_ROW')),_0xa0f785['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x493a4c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xa5aaf9=this['editor']['plugins']['get']('TrackChangesEditing'),_0xafb720=this['editor']['plugins']['get'](Nt)['_acceptFormatSuggestionCallbackFactory']();_0xa5aaf9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xafb720),_0xa5aaf9['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xafb720),this['_registerLegacyConverters'](),this['_registerLegacyDescription']();}['_registerLegacyConverters'](){const _0x8a16f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x390ea2=this['editor']['plugins']['get']('TableUtils');function _0x249538({showActiveMarker:_0xbea8a7=!0x0,setDataAttribute:_0x1204d6=!0x0}={}){return(_0x168831,_0x473aac,_0x5d604c)=>{const {type:_0x4dc499,id:_0x4f1903}=_0x8a16f5['_splitMarkerName'](_0x473aac['markerName']);if(!_0x8a16f5['hasSuggestion'](_0x4f1903))return;const _0x4f542d=_0x8a16f5['getSuggestion'](_0x4f1903),_0x62c86f=_0x4f542d['data'];if('formatBlock'!=_0x4f542d['type']||!_0x62c86f||'setTableColumnHeader'!=_0x62c86f['commandName'])return;if(_0x473aac['item'])return void _0x168831['stop']();if(!_0x5d604c['consumable']['consume'](_0x473aac['markerRange'],_0x168831['name']))return;const _0x1eca17=_0x473aac['markerRange']['start']['nodeAfter'],_0x273941=_0x473aac['markerRange']['end']['nodeBefore'],_0x4ca365=_0x1eca17['parent']['parent'],{column:_0x4d1bdc}=_0x390ea2['getCellLocation'](_0x1eca17),{column:_0x4da82e}=_0x390ea2['getCellLocation'](_0x273941);for(let _0x4e42f1=_0x4d1bdc;_0x4e42f1<=_0x4da82e;_0x4e42f1++){const _0xb15f43=_0x390ea2['createTableWalker'](_0x4ca365,{'column':_0x4e42f1,'includeAllSlots':!0x1});for(const _0xed3775 of _0xb15f43){const _0x41f250=_0xed3775['cell'],_0x51473e=_0x5d604c['mapper']['toViewElement'](_0x41f250);_0x5d604c['writer']['addClass']('ck-suggestion-marker-'+_0x4dc499,_0x51473e),_0x1204d6&&_0x5d604c['writer']['setAttribute']('data-suggestion',_0x4f1903,_0x51473e),_0x5d604c['mapper']['bindElementToMarker'](_0x51473e,_0x473aac['markerName']),_0xbea8a7&&(_0x8a16f5['activeMarkers']['includes'](_0x473aac['markerName'])?_0x5d604c['writer']['addClass']('ck-suggestion-marker--active',_0x51473e):_0x5d604c['writer']['removeClass']('ck-suggestion-marker--active',_0x51473e));}}};}this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x249538(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1c2ab3,_0x628c76,_0x3a0ce6)=>{_0x3a0ce6['options']['showSuggestionHighlights']&&_0x249538({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1c2ab3,_0x628c76,_0x3a0ce6);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xe52c22,_0x595a95,_0x33ab11)=>{const {type:_0xad2125,id:_0x40df7c}=_0x8a16f5['_splitMarkerName'](_0x595a95['markerName']);if(!_0x8a16f5['hasSuggestion'](_0x40df7c))return;const _0xcfb4f=_0x8a16f5['getSuggestion'](_0x40df7c),_0x8b46=_0xcfb4f['data'];if('formatBlock'!=_0xcfb4f['type']||!_0x8b46||'setTableColumnHeader'!=_0x8b46['commandName'])return;const _0x3d5ba1=_0x33ab11['mapper']['markerNameToElements'](_0x595a95['markerName']);if(_0x3d5ba1){for(const _0x30a3e8 of _0x3d5ba1)_0x33ab11['writer']['removeClass']('ck-suggestion-marker-'+_0xad2125,_0x30a3e8),_0x33ab11['writer']['removeClass']('ck-suggestion-marker--active',_0x30a3e8),_0x33ab11['writer']['removeAttribute']('data-suggestion',_0x30a3e8),_0x33ab11['mapper']['unbindElementFromMarkerName'](_0x30a3e8,_0x595a95['markerName']);}},{'priority':'highest'});}['_registerLegacyDescription'](){const _0x404621=this['editor'],_0x41f11b=_0x404621['locale'];function _0x209e13(_0x4df4b3){return{'type':'format','content':o(_0x41f11b,'*Format:*\x20%0',_0x4df4b3)};}_0x404621['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x536e1b=>{if('formatBlock'!=_0x536e1b['type'])return;const {data:_0x3a426a}=_0x536e1b;if(_0x3a426a){if('setTableRowHeader'==_0x3a426a['commandName']){const _0x5703ef=_0x3a426a['commandParams'][0x0]['forceValue'];return _0x209e13(o(_0x41f11b,_0x5703ef?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3a426a['commandName']){const _0x3dfeff=_0x3a426a['commandParams'][0x0]['forceValue'];return _0x209e13(o(_0x41f11b,_0x3dfeff?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Dt extends _0x9e29f0{['afterInit'](){const _0x2dbd0c=this['editor'],_0x44964c=_0x2dbd0c['locale'],_0x492b38=_0x2dbd0c['plugins']['get']('TrackChangesEditing');function _0x818d73(_0x198ae9){return{'type':'format','content':''+o(_0x44964c,'*Set\x20table\x20type:*\x20%0',_0x198ae9)};}_0x2dbd0c['plugins']['has']('TableLayout')&&(_0x492b38['enableCommand']('insertTableLayout'),_0x492b38['enableDefaultAttributesIntegration']('tableType'),_0x492b38['descriptionFactory']['registerElementLabel'](_0x41a081=>_0x41a081['is']('element','table')&&'layout'===_0x41a081['getAttribute']('tableType'),_0x42f91e=>o(_0x44964c,'ELEMENT_LAYOUT_TABLE',_0x42f91e)),_0x492b38['descriptionFactory']['registerDescriptionCallback'](_0x20f216=>{const {data:_0x447fd3}=_0x20f216;if(_0x447fd3&&'tableType'==_0x447fd3['key'])switch(_0x447fd3['newValue']){case'layout':return _0x818d73(o(_0x44964c,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x818d73(o(_0x44964c,'ELEMENT_CONTENT_TABLE'));}}));}}const Re=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ae=/* #__PURE__ -- @preserve */
|
|
25
|
+
Object['fromEntries'](Re['map'](_0x31392e=>[_0x31392e,null]));class Bt extends _0x9e29f0{static get['requires'](){return[Nt];}['afterInit'](){const _0x5bdc2c=this['editor'];if(!_0x5bdc2c['plugins']['has']('TableClipboard'))return;const _0x47757b=_0x5bdc2c['plugins']['get']('TrackChangesEditing'),_0x463de2=_0x5bdc2c['plugins']['get']('TableUtils'),_0x5f490b=_0x5bdc2c['plugins']['get'](Nt),_0x857733=_0x5bdc2c['plugins']['get']('TableClipboard'),_0x57254e=_0x5bdc2c['plugins']['get']('TableSelection'),_0x2b4e69=_0x5bdc2c['plugins']['get'](_0x21a327);_0x5f490b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x5bdc2c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x5bdc2c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4d2e73=null,_0x43852d=!0x1;_0x2b4e69['on']('contentInsertion',(_0x265ca9,_0x356c35)=>{_0x43852d='paste'===_0x356c35['method'];}),_0x5bdc2c['model']['on']('insertContent',(_0xdeb7a7,_0x3f6992)=>{if(!_0x43852d&&null===_0x57254e['getSelectedTableCells']())return;const [_0x191102,_0x461a2b]=_0x3f6992,_0xfc2c3b=_0x3f6992[_0x3f6992['length']-0x1];_0xfc2c3b&&_0xfc2c3b['forceDefaultExecution']||_0x47757b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xf3ba22,_0x34289c,_0x3375ac,_0x926e92,_0xd0c27){if(_0x34289c&&!_0x34289c['is']('documentSelection'))return!0x1;const _0x13860f=_0xd0c27['getTableIfOnlyTableInContent'](_0xf3ba22,_0x3375ac);if(!_0x13860f||!Oe(_0x13860f,void 0x0,_0x926e92))return!0x1;const _0x4c07df=_0x926e92['getSelectionAffectedTableCells'](_0x3375ac['document']['selection']);if(!_0x4c07df['length'])return!0x1;const _0x364572=_0x4c07df[0x0]['findAncestor']('table'),_0x2ceb27=_0x926e92['getRowIndexes'](_0x4c07df),_0x2d6313=_0x926e92['getColumnIndexes'](_0x4c07df),_0x291487={'startRow':_0x2ceb27['first'],'endRow':_0x2ceb27['last'],'startColumn':_0x2d6313['first'],'endColumn':_0x2d6313['last']};return 0x1==_0x4c07df['length']&&(_0x291487['endRow']+=_0x926e92['getRows'](_0x13860f)-0x1,_0x291487['endColumn']+=_0x926e92['getColumns'](_0x13860f)-0x1),Oe(_0x364572,_0x291487,_0x926e92);}(_0x191102,_0x461a2b,_0x5bdc2c['model'],_0x463de2,_0x857733)&&(_0xdeb7a7['stop'](),_0x4d2e73={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x5bdc2c['model']['change'](()=>{_0x5bdc2c['model']['insertContent'](_0x3f6992[0x0],_0x3f6992[0x1],_0x3f6992[0x2],{'forceDefaultExecution':!0x0});const _0x303ee3=_0x40f117(),{rowInsertionRanges:_0x5befc5,columnInsertionRanges:_0x320fe8,insertionRanges:_0x4c80bc,deletionRanges:_0x13fdfe,cells:_0x47bb59}=_0x4d2e73;_0x5befc5['length']&&_0x47757b['markMultiRangeInsertion'](_0x5befc5,'tablePasteRow',{'tablePasteChainId':_0x303ee3}),_0x320fe8['length']&&_0x47757b['markMultiRangeInsertion'](_0x320fe8,'tablePasteColumn',{'tablePasteChainId':_0x303ee3}),_0x4c80bc['length']&&(_0x47757b['markMultiRangeInsertion'](_0x4c80bc,'tablePaste',{'tablePasteChainId':_0x303ee3,'skipNestingCheck':!0x0}),_0x4c80bc['forEach'](_0x1bf955=>_0x1bf955['detach']?.())),_0x13fdfe['length']&&(_0x47757b['markMultiRangeDeletion'](_0x13fdfe,'tablePaste',{'tablePasteChainId':_0x303ee3,'skipNestingCheck':!0x0}),_0x13fdfe['forEach'](_0x3b5177=>_0x3b5177['detach']?.()));const _0x27fa05=_0x47757b['markMultiRangeBlockFormat'](_0x47bb59['map'](({element:_0x125092})=>_0x125092),{'formatGroupId':_0x40f117()},[],'tablePasteCell',{'tablePasteChainId':_0x303ee3});if(_0x27fa05){const _0x142bb0=_0x27fa05['getMarkers'](),_0x5072a3=[];for(const {element:_0x441d87,attributes:_0xa3706a}of _0x47bb59){if(!_0xa3706a)continue;const _0x2a1e36=_0x5bdc2c['model']['createRangeOn'](_0x441d87),_0xbf0651=_0x142bb0['find'](_0x3138ec=>_0x3138ec['getRange']()['isEqual'](_0x2a1e36));_0xbf0651&&_0x5072a3['push']([_0xbf0651['name'],_0xa3706a]);}_0x5072a3['length']&&_0x27fa05['setAttribute']('markerAttributes',Object['fromEntries'](_0x5072a3));}_0x4d2e73=null;}));},{'priority':_0x5eef40['high']+0xa}),_0x2b4e69['on']('contentInsertion',()=>{_0x43852d=!0x1;},{'priority':'lowest'}),_0x5bdc2c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3340e0,_0x28c90a)=>{const [_0xaa98ec,_0x566538,,_0x463285]=_0x28c90a;if(!_0x4d2e73)return;_0x3340e0['stop']();const _0x50ba3a=_0xaa98ec['cell'],_0x501596=_0x566538,_0x33f4cd=Be(_0x50ba3a),_0xe8300f=Be(_0x501596);_0x3340e0['return']=_0x50ba3a;let _0x50076f=null,_0x847b10=null;if(_0xe8300f||_0x33f4cd){if(_0x33f4cd&&!_0xe8300f){_0x463285['remove'](_0x50ba3a['getChild'](0x0));for(const _0x50b9ec of Array['from'](_0x501596['getChildren']()))_0x463285['insert'](_0x50b9ec,_0x50ba3a,'end');const _0x3514f5=_0x4d2e73['rowInsertionIndexes']['includes'](_0xaa98ec['row']),_0x5bdca3=_0x4d2e73['columnInsertionIndexes']['includes'](_0xaa98ec['column']);_0x3514f5||_0x5bdca3||(_0x50076f=_0x238721['fromRange'](_0x463285['createRangeIn'](_0x50ba3a)));}else _0xe8300f&&!_0x33f4cd&&(_0x847b10=_0x463285['createRangeIn'](_0x50ba3a));}else{const _0x4a380e=_0x463285['createElement']('tableCellSuggestion'),_0x3f9cfd=_0x463285['createElement']('tableCellSuggestion');_0x463285['wrap'](_0x463285['createRangeIn'](_0x50ba3a),_0x3f9cfd),_0x463285['insert'](_0x4a380e,_0x50ba3a,0x0);for(const _0x40057b of Array['from'](_0x501596['getChildren']()))_0x463285['insert'](_0x40057b,_0x4a380e,'end');_0x50076f=_0x238721['fromRange'](_0x463285['createRangeOn'](_0x4a380e)),_0x847b10=_0x238721['fromRange'](_0x463285['createRangeOn'](_0x3f9cfd));}const _0x4e880d=Array['from'](_0x501596['getAttributes']())['filter'](([_0x412116])=>Re['includes'](_0x412116));_0x4d2e73['cells']['push']({'element':_0x50ba3a,'attributes':_0x4e880d['length']?Object['fromEntries'](_0x4e880d):null}),_0x50076f&&_0x4d2e73['insertionRanges']['push'](_0x50076f),_0x847b10&&_0x4d2e73['deletionRanges']['push'](_0x847b10);},{'priority':'high'}),_0x463de2['on']('insertColumns',(_0x2cfce8,_0x8f0d48)=>{const [_0x400e4c,_0x520f9e={}]=_0x8f0d48;if(!_0x4d2e73)return;const _0x32ae99=_0x520f9e['at']||0x0,_0x475acf=_0x520f9e['columns']||0x1;_0x4d2e73['columnInsertionIndexes']=new Array(_0x475acf)['fill'](_0x32ae99)['map']((_0xcd94a6,_0x1ea5b3)=>_0xcd94a6+_0x1ea5b3);for(const {cell:_0xae79d3}of _0x463de2['createTableWalker'](_0x400e4c,{'startColumn':_0x32ae99,'endColumn':_0x32ae99+_0x475acf-0x1}))_0x4d2e73['columnInsertionRanges']['push'](_0x5bdc2c['model']['createRangeOn'](_0xae79d3));},{'priority':'low'}),_0x463de2['on']('insertRows',(_0x59e51d,_0x2bbc00)=>{const [_0x183e5d,_0x6f46f0={}]=_0x2bbc00;if(!_0x4d2e73)return;const _0x22651f=_0x6f46f0['at']||0x0,_0x483abc=_0x6f46f0['rows']||0x1;_0x4d2e73['rowInsertionIndexes']=new Array(_0x483abc)['fill'](_0x22651f)['map']((_0x31b2fc,_0x369f25)=>_0x31b2fc+_0x369f25);for(const {cell:_0xa23d89}of _0x463de2['createTableWalker'](_0x183e5d,{'startRow':_0x22651f,'endRow':_0x22651f+_0x483abc-0x1}))_0x4d2e73['rowInsertionRanges']['push'](_0x5bdc2c['model']['createRangeOn'](_0xa23d89));},{'priority':'low'}),_0x47757b['descriptionFactory']['registerDescriptionCallback'](_0x319fce=>{if(_0x319fce['subType']&&_0x319fce['subType']['startsWith']('tablePaste'))return _0x319fce['previous']?{}:{'type':'insertion','content':o(_0x5bdc2c['locale'],'*Replace\x20table\x20cells*')};});const _0x14708e=()=>!0x1;for(const _0x789df0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x47757b['_suggestionFactory']['registerCustomCallback']('insertion',_0x789df0,'join',_0x14708e),_0x47757b['_suggestionFactory']['registerCustomCallback']('deletion',_0x789df0,'join',_0x14708e),_0x47757b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x789df0,'join',_0x14708e);_0x47757b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x14708e),_0x47757b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x24aead,_0x22b362,_0x149e02)=>{const _0x311905=_0x24aead['map'](_0x4fd694=>_0x4fd694['getContainedElement']())['filter'](_0x517a86=>_0x517a86),_0x5e9d75=new Map(_0x311905['map'](_0x3af8ca=>[_0x3af8ca,null]));if(_0x4d2e73){for(const {element:_0x1e6674,attributes:_0x11e5ce}of _0x4d2e73['cells'])_0x11e5ce&&_0x5e9d75['set'](_0x1e6674,_0x11e5ce);}else{if(_0x149e02&&_0x149e02['markerAttributes'])for(const [_0x1f769b,_0x2df033]of Object['entries'](_0x149e02['markerAttributes'])){const _0x1a3cce=_0x5bdc2c['model']['markers']['get'](_0x1f769b),_0x44f2fe=_0x1a3cce?_0x1a3cce['getRange']()['getContainedElement']():null;_0x44f2fe&&_0x5e9d75['set'](_0x44f2fe,_0x2df033);}}_0x5bdc2c['model']['change'](_0x19c222=>{for(const [_0x11d91e,_0x375719]of _0x5e9d75)_0x19c222['setAttributes']({...Ae,..._0x375719},_0x11d91e);});});const _0x492a74=(_0xd662a7,_0x1c4ced)=>{_0x47757b['_suggestionFactory']['registerCustomCallback'](_0xd662a7,'tablePaste',_0x1c4ced,(_0x50e0f9,_0x11d6e1,_0x29ec3d)=>{_0x5bdc2c['model']['change'](_0x1eca22=>{const _0x466990=[];for(const _0x22d342 of _0x50e0f9){const _0x4b0685=_0x22d342['start']['nodeAfter'];_0x4b0685['is']('element','tableCellSuggestion')&&_0x466990['push'](_0x4b0685);}_0x47757b['_suggestionFactory']['getSuggestionCallback'](_0xd662a7,null,_0x1c4ced)(_0x50e0f9,_0x11d6e1,_0x29ec3d);for(const _0x3e9ca8 of _0x466990)'$graveyard'!=_0x3e9ca8['root']['rootName']&&_0x1eca22['unwrap'](_0x3e9ca8);});});};_0x492a74('insertion','accept'),_0x492a74('insertion','discard'),_0x492a74('deletion','accept'),_0x492a74('deletion','discard'),_0x47757b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4cd70d=>{const _0x14030a=_0x4cd70d['map'](_0x457071=>_0x457071['getContainedElement']()),_0x13bfff=_0x14030a[0x0]['findAncestor']('table'),{minRow:_0x56d016,maxRow:_0x424d08}=_0x5f490b['_getCoordsForCells'](_0x14030a);_0x463de2['removeRows'](_0x13bfff,{'at':_0x56d016,'rows':_0x424d08-_0x56d016+0x1});}),_0x47757b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x59efea=>{const _0x564937=_0x59efea['map'](_0x320dfe=>_0x320dfe['getContainedElement']()),_0x490c72=_0x564937[0x0]['findAncestor']('table'),{minColumn:_0x653800,maxColumn:_0x2aec28}=_0x5f490b['_getCoordsForCells'](_0x564937);_0x463de2['removeColumns'](_0x490c72,{'at':_0x653800,'columns':_0x2aec28-_0x653800+0x1});});const _0x9b4526=(_0x3a7315,_0x5a7368)=>{if(!_0x5a7368['subType']||!_0x5a7368['subType']['startsWith']('tablePaste'))return;const _0x233b4f=_0x5a7368['attributes']['tablePasteChainId'],_0x53f6c5=_0x47757b['getSuggestions']()['filter'](_0x45db2a=>_0x45db2a['isInContent']&&_0x45db2a['attributes']&&_0x45db2a['attributes']['tablePasteChainId']==_0x233b4f);_0x53f6c5['length']&&_0x5a7368['getAllAdjacentSuggestions']()['length']!=_0x53f6c5['length']&&_0x53f6c5['reduce']((_0x5e0bec,_0x27decb)=>(_0x5e0bec['next']=_0x27decb,_0x27decb['previous']=_0x5e0bec,_0x27decb));};function _0x19c2fe(_0x3a461b,_0x53fb00=!0x0){const {id:_0x15941b,authorId:_0x47813f}=_0x47757b['_splitMarkerName'](_0x3a461b['markerName']),_0x4f9b0b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x58cefc=_0x47757b['activeMarkers']['includes'](_0x3a461b['markerName']);return _0x58cefc&&_0x4f9b0b['push']('ck-suggestion-marker--active'),{'classes':_0x4f9b0b,'attributes':{'data-suggestion':_0x15941b,'data-author-id':_0x47813f},'priority':_0x58cefc&&_0x53fb00?0xbc2:0xbb8};}_0x47757b['on']('suggestionLoaded',_0x9b4526,{'priority':'high'}),_0x47757b['on']('suggestionUnloaded',_0x9b4526,{'priority':'high'}),_0x5bdc2c['model']['document']['registerPostFixer'](()=>{let _0x2991e0=!0x1;const _0x3e6288=Array['from'](_0x5bdc2c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x29e606,data:_0x21a2da}of _0x3e6288){const {group:_0xd16fb7,type:_0x55370a,id:_0x168036}=_0x47757b['_splitMarkerName'](_0x29e606);if('suggestion'!=_0xd16fb7||'deletion'!=_0x55370a||_0x21a2da['oldRange'])continue;if(!_0x47757b['hasSuggestion'](_0x168036))continue;const _0xd3f37a=_0x47757b['getSuggestion'](_0x168036)['getRanges'](),_0x1405b2=_0x5bdc2c['plugins']['get']('Users')['me'];for(const _0x2f960d of _0x47757b['getSuggestions']()){if(!_0x2f960d['isInContent']||_0x2f960d['author']!=_0x1405b2)continue;if('formatBlock'!=_0x2f960d['type']||'tablePasteCell'!=_0x2f960d['subType'])continue;if(_0x2f960d['getRanges']()['every'](_0x439920=>_0xd3f37a['some'](_0x171f7a=>_0x171f7a['containsRange'](_0x439920,!0x0)))){for(const _0x49089a of _0x2f960d['getAllAdjacentSuggestions']())_0x49089a['isInContent']&&(_0x49089a['discard'](),_0x2991e0=!0x0);}}}return _0x2991e0;}),_0x5bdc2c['model']['document']['registerPostFixer'](_0x2f9a01=>{const _0x5946c1=_0x5bdc2c['commands']['get']('redo');if(!_0x5946c1||!_0x5946c1['_createdBatches']['has'](_0x2f9a01['batch']))return!0x1;let _0x349c05=!0x1;const _0x55cc55=_0x5bdc2c['plugins']['get']('Users')['me'],_0xe29d20=_0x5bdc2c['model']['document']['differ']['getChanges'](),_0x14ff3b=Array['from'](_0x5bdc2c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32d4a9,data:_0x38e556})=>{const {group:_0x4a650e,subType:_0x41ff3b,authorId:_0x3a0eeb}=_0x47757b['_splitMarkerName'](_0x32d4a9);return'suggestion'==_0x4a650e&&'tablePaste'==_0x41ff3b&&_0x3a0eeb==_0x55cc55['id']&&!_0x38e556['oldRange'];});for(const _0x25abfd of _0xe29d20){if('insert'!=_0x25abfd['type']||'tableCellSuggestion'!=_0x25abfd['name']||0x1!=_0x25abfd['length'])continue;const _0x2c0076=_0x2f9a01['createRange'](_0x25abfd['position'],_0x25abfd['position']['getShiftedBy'](0x1));if(!_0x14ff3b['find'](({data:_0x412b28})=>_0x412b28['newRange']['isEqual'](_0x2c0076))){for(const {name:_0x36ab75,data:_0x41cc60}of _0x14ff3b)if(_0x2c0076['containsRange'](_0x41cc60['newRange'])){_0x2f9a01['updateMarker'](_0x36ab75,{'range':_0x2c0076}),_0x349c05=!0x0;break;}}}return _0x349c05;}),_0x5bdc2c['model']['document']['registerPostFixer'](_0x4426f8=>{let _0x5683d1=!0x1;const _0x563e2a=_0x5bdc2c['plugins']['get']('Users')['me'],_0x11fdd1=_0x47757b['getSuggestions']()['filter'](_0x6c8fce=>_0x6c8fce['isInContent']&&_0x6c8fce['author']==_0x563e2a),_0xd0e411=new Set(),_0x3b57d0=new Set();for(const _0x2b8f3c of _0x11fdd1)if('tablePaste'==_0x2b8f3c['subType'])for(const _0x44151c of _0x2b8f3c['getMarkers']()){const _0x39fcca=_0x44151c['getRange']()['getContainedElement']();if(_0x39fcca){if(_0x39fcca['is']('element','tableCellSuggestion')&&Be(_0x39fcca)){_0x2b8f3c['removeMarker'](_0x44151c['name']),_0xd0e411['add'](_0x39fcca),_0x5683d1=!0x0;const _0x1e40ce=_0x39fcca['nextSibling'],_0x1a8648=_0x39fcca['previousSibling'],_0x46fb0b=_0x1e40ce&&_0x1e40ce['is']('element','tableCellSuggestion'),_0x52f7ed=_0x1a8648&&_0x1a8648['is']('element','tableCellSuggestion');_0x46fb0b&&!_0xd0e411['has'](_0x1e40ce)&&_0x3b57d0['add'](_0x1e40ce),_0x52f7ed&&!_0xd0e411['has'](_0x1a8648)&&_0x3b57d0['add'](_0x1a8648);}else _0x39fcca['is']('element','paragraph')&&_0x39fcca['isEmpty']&&(_0x2b8f3c['removeMarker'](_0x44151c['name']),_0x5683d1=!0x0);}}else{if('tablePasteCell'==_0x2b8f3c['subType']){if(!_0x2b8f3c['attributes']||!_0x2b8f3c['attributes']['tablePasteChainId'])continue;const _0x2a207d=_0x2b8f3c['attributes']['markerAttributes'];if(_0x2a207d&&Object['keys'](_0x2a207d)['length'])continue;const _0x7438f9=_0x2b8f3c['attributes']['tablePasteChainId'];let _0x39988d=!0x0,_0x349c7a=!0x0;for(const _0x20ff22 of _0x11fdd1)if(_0x20ff22['subType']&&_0x20ff22['subType']['startsWith']('tablePaste')){if(!_0x20ff22['attributes']['tablePasteChainId']){_0x349c7a=!0x1;break;}if(_0x20ff22['id']!=_0x2b8f3c['id']&&_0x20ff22['attributes']['tablePasteChainId']==_0x7438f9){_0x39988d=!0x1;break;}}_0x349c7a&&_0x39988d&&(_0x2b8f3c['removeMarkers'](),_0x5683d1=!0x0);}}for(const _0x4f3237 of _0xd0e411)_0x4426f8['remove'](_0x4f3237);for(const _0x452bd2 of _0x3b57d0)_0x4426f8['unwrap'](_0x452bd2);return _0x5683d1;}),_0x5bdc2c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x391ac0=>_0x19c2fe(_0x391ac0),'converterPriority':'high'}),_0x5bdc2c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0xde0006,_0x1c4b24)=>_0x1c4b24['options']['showSuggestionHighlights']?_0x19c2fe(_0xde0006,!0x1):null,'converterPriority':'high'});const _0x44020c=_0x5bdc2c['editing']['view'];this['listenTo'](_0x44020c['document'],'clipboardOutput',(_0xe93b03,_0x3541cc)=>{const _0x5aff10=[];for(const _0x5b19ca of _0x44020c['createRangeIn'](_0x3541cc['content'])['getItems']())_0x5b19ca['is']('element','suggestion-td')&&_0x5aff10['push'](_0x5b19ca);_0x44020c['change'](_0x2e3649=>{for(const _0x5d9238 of _0x5aff10)_0x2e3649['move'](_0x2e3649['createRangeIn'](_0x5d9238),_0x2e3649['createPositionBefore'](_0x5d9238)),_0x2e3649['remove'](_0x5d9238);});});}}function Be(_0x523e1d){if(_0x523e1d['isEmpty'])return!0x0;const _0x4a204e=_0x523e1d['getChild'](0x0);return _0x4a204e['is']('element','paragraph')&&_0x4a204e['isEmpty'];}function Oe(_0x499d61,_0x13a8de={},_0x2885db){for(const {isAnchor:_0x1a3cb9,cellHeight:_0x4c0a8d,cellWidth:_0x25a975}of _0x2885db['createTableWalker'](_0x499d61,{'includeAllSlots':!0x0,..._0x13a8de}))if(!_0x1a3cb9||0x1!=_0x4c0a8d||0x1!=_0x25a975)return!0x1;return!0x0;}class Ot extends _0x9e29f0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x40d22f=this['editor']['plugins']['get']('TrackChangesEditing');_0x40d22f['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x40d22f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x40d22f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x40d22f['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x40d22f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x40d22f['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2766da,_0x115062){const _0x1e3b72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x495a15=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x533ef2=_0x115062['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4b4268=_0x495a15['getColumnGroupElement'](_0x533ef2);let _0x5bd9f8=_0x4b4268?_0x495a15['getTableColumnsWidths'](_0x4b4268):null,_0x2125f6=_0x533ef2['getAttribute']('tableWidth')||null;const _0x27b988=_0x115062['tableWidth']||_0x2125f6,_0x57fc67=_0x115062['columnWidths']||_0x5bd9f8,_0x5f4d08=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ebfa3 of _0x1e3b72['getSuggestions']()){const _0x919065=_0x3ebfa3['getContainedElement']();if('resizeTable'===_0x3ebfa3['subType']&&_0x919065===_0x533ef2){_0x3ebfa3['author']!==_0x5f4d08&&_0x3ebfa3['discard']();const _0x442ca4=_0x3ebfa3['data']['commandParams'];_0x2125f6=_0x442ca4[0x0]['tableWidth'],_0x5bd9f8=_0x442ca4[0x0]['columnWidths'];break;}}_0x2766da({'table':_0x533ef2,'tableWidth':_0x27b988,'columnWidths':_0x57fc67}),_0x1e3b72['markBlockFormat'](_0x533ef2,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2125f6,'columnWidths':_0x5bd9f8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1dc7ef){if('formatBlock'!=_0x1dc7ef['type']&&'formatInline'!=_0x1dc7ef['type'])return;const {data:_0x52f03f}=_0x1dc7ef;if(_0x52f03f&&'resizeTable'===_0x52f03f['formatGroupId']){const _0x3b73b4='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3b73b4)};}}}class xt extends _0x9e29f0{['afterInit'](){const _0x4f25c0=this['editor'];_0x4f25c0['plugins']['has']('Template')&&_0x4f25c0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x9e29f0{['afterInit'](){const _0xdae7f2=this['editor'];if(!_0xdae7f2['commands']['get']('insertTableOfContents'))return;_0xdae7f2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30be22=_0xdae7f2['plugins']['get']('TrackChangesEditing'),_0x4a9537=_0xdae7f2['locale'];_0x30be22['descriptionFactory']['registerElementLabel']('tableOfContents',_0x42cae0=>o(_0x4a9537,'ELEMENT_TABLE_OF_CONTENTS',_0x42cae0));}}class Rt extends _0x9e29f0{['afterInit'](){const _0x475403=this['editor'];if(!_0x475403['plugins']['has']('Title'))return;const _0x356210=_0x475403['plugins']['get']('TrackChangesEditing');_0x356210['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x475403['locale'],'ELEMENT_TITLE')),_0x475403['model']['document']['registerPostFixer'](_0xeb21e7=>{let _0x133fc6=!0x1;const _0x17a30d=Array['from'](_0x475403['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ee1b1,data:_0x29af72}of _0x17a30d){const {group:_0x779bb6}=_0x356210['_splitMarkerName'](_0x1ee1b1);if('suggestion'!==_0x779bb6||!_0x29af72['newRange'])continue;const _0x28a362=_0x29af72['newRange'],_0x3fd161=_0x28a362['end']['nodeBefore'];if(!_0x3fd161||!_0x3fd161['is']('element','title-content'))continue;if(!_0x28a362['start']['isTouching'](_0x28a362['end']))continue;const _0x3bf04b=_0x475403['model']['schema']['getNearestSelectionRange'](_0x28a362['end'],'forward');if(_0x3bf04b&&_0x3bf04b['isCollapsed']){const _0x24a455=_0xeb21e7['createRange'](_0x28a362['start'],_0x3bf04b['start']);_0x24a455['isEqual'](_0x28a362)||(_0xeb21e7['updateMarker'](_0x1ee1b1,{'range':_0x24a455}),_0x133fc6=!0x0);}_0x133fc6||(_0xeb21e7['removeMarker'](_0x1ee1b1),_0x133fc6=!0x0);}return _0x133fc6;});}}class Tt extends _0x9e29f0{['afterInit'](){const _0x865067=this['editor'],_0x3dac32=_0x865067['plugins']['get']('TrackChangesEditing');_0x865067['plugins']['has']('Uploadcare')&&(_0x3dac32['enableCommand']('uploadcare'),_0x865067['plugins']['has']('UploadcareImageEdit')&&(_0x3dac32['enableCommand']('uploadcareImageEdit'),_0x3dac32['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x3dac32['descriptionFactory']['registerDescriptionCallback'](_0x2e9a39=>{if('attribute'!=_0x2e9a39['type'])return;const {data:_0x153663}=_0x2e9a39;return _0x153663&&'uploadcareImageId'==_0x153663['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x9e29f0{['afterInit'](){const _0x8a6e70=this['editor'],_0x225468=_0x8a6e70['plugins']['get']('TrackChangesEditing');_0x8a6e70['plugins']['has']('UndoEditing')&&(_0x225468['enableCommand']('undo'),_0x225468['enableCommand']('redo'));}}class Ut extends _0x9e29f0{static get['requires'](){return[Nt];}['afterInit'](){const _0x4f808d=this['editor'];if(!_0x4f808d['plugins']['has']('TableCaptionEditing'))return;_0x4f808d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x9e29f0{['tableProperties'];['tableCellProperties'];constructor(_0x445b79){super(_0x445b79),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'],_0x445b79['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 _0x13ca67=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x63ca0f of this['tableProperties'])_0x13ca67['enableCommand'](_0x63ca0f,(_0xfba310,_0x40e8ea)=>{const _0x36d675=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x63ca0f,[_0x36d675],this['tableProperties'],'tableProperties',_0xfba310,_0x40e8ea);});_0x13ca67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x13ca67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13ca67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xe5f206,_0x59e8fd)=>this['handleDiscardAction'](this['tableProperties'],_0xe5f206,_0x59e8fd)),_0x13ca67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4f0b0a of this['tableCellProperties'])this['editor']['commands']['get'](_0x4f0b0a)&&_0x13ca67['enableCommand'](_0x4f0b0a,(_0x2096e3,_0x1a0134)=>{const _0x2c7b94=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4f0b0a,_0x2c7b94,this['tableCellProperties'],'tableCellProperties',_0x2096e3,_0x1a0134);});_0x13ca67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x13ca67['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13ca67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5a4b66,_0x1a4e56)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5a4b66,_0x1a4e56)),_0x13ca67['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1),this['editor']['model']['schema']['checkAttribute']('tableCell','tableCellType')&&(_0x13ca67['registerBlockAttribute']('tableCellType'),_0x13ca67['descriptionFactory']['registerAttributeLabel']('tableCellType',o(this['editor']['locale'],'FORMAT_TABLE_CELL_TYPE')));}_0x13ca67['descriptionFactory']['registerDescriptionCallback'](_0x2f8e32=>this['handleSuggestionDescription'](_0x2f8e32)),this['_registerTablePropertiesAttributes']();}['_handlePropertyChange'](_0x475614,_0x2b16f8,_0x12ac6d,_0x9910fa,_0x7649ee,_0x1d87aa){const _0x1eff81=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1d87aa['batch'],()=>{for(const _0x4c7c41 of _0x2b16f8){if(this['_getSuggestion'](_0x4c7c41,_0x9910fa))_0x7649ee(_0x1d87aa);else{const _0x24da8a={};for(const _0x4e947f of _0x12ac6d){const _0x3d2a44=_0x4c7c41['getAttribute'](_0x4e947f);void 0x0!==_0x3d2a44&&(_0x24da8a[_0x4e947f]=_0x3d2a44);}_0x7649ee(_0x1d87aa),_0x1eff81['markBlockFormat'](_0x4c7c41,{'commandParams':[_0x24da8a]},[],_0x9910fa);}}});}['handleDiscardAction'](_0x5cab60,_0x5d8ae7,_0x47a40d){const _0xee35da=_0x5d8ae7[0x0]['start']['nodeAfter'],_0x55f86b=_0x47a40d['commandParams'][0x0];this['editor']['model']['change'](_0x1c79d0=>{for(const _0x382438 of _0x5cab60)void 0x0!==_0x55f86b[_0x382438]?_0x1c79d0['setAttribute'](_0x382438,_0x55f86b[_0x382438],_0xee35da):_0x1c79d0['removeAttribute'](_0x382438,_0xee35da);});}['handleSuggestionDescription'](_0x47276b){if(_0x47276b['data'])switch(_0x47276b['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'](_0x4a079d,_0x19c0fd){const _0x5459cd=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2dfa2d of _0x5459cd['getSuggestions']({'skipNotAttached':!0x0})){const _0x255b35=_0x2dfa2d['getContainedElement']();if(_0x2dfa2d['subType']===_0x19c0fd&&_0x255b35===_0x4a079d)return _0x2dfa2d;}return null;}['_registerTablePropertiesAttributes'](){const _0x3fa0dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2bc645=[...this['tableProperties'],...this['tableCellProperties']];for(const _0x9152b6 of _0x2bc645){const _0x49d1be=_0x9152b6['replace'](/([A-Z])/g,'_$1')['toUpperCase']();_0x3fa0dc['descriptionFactory']['registerAttributeLabel'](_0x9152b6,o(this['editor']['locale'],'FORMAT_'+_0x49d1be));}}}class Ft extends _0x9e29f0{['afterInit'](){const _0xd876f5=this['editor'];if(!_0xd876f5['plugins']['has']('LineHeight'))return;const _0x45b08e=_0xd876f5['plugins']['get']('TrackChangesEditing'),_0x367a44=_0xd876f5['locale'];_0x45b08e['enableDefaultAttributesIntegration']('lineHeight'),_0x45b08e['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x367a44,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x9e29f0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',Jt,_0x1c9a28,_0x52867b,_0x808567,R,T,E,U,V,F,G,J,L,q,z,K,Q,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,mt,kt,lt,W,Ft,H,dt,pt,wt,bt,yt,jt,St,It,At,_t,Ct,Nt,$t,vt,Dt,Ut,Bt,Ot,Mt,Vt,xt,Rt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3e15f8){super(_0x3e15f8),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x101f4d,_0x3fdeef,_0x4f9f87,_0xaa164e)=>{this['_model']['change'](()=>{for(const _0x4cbb46 of[..._0xaa164e,..._0x4f9f87])this['_model']['markers']['has'](_0x4cbb46)&&_0x3e15f8['editing']['reconvertMarker'](_0x4cbb46);});}),this['descriptionFactory']=new M(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new qt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3e15f8['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,_0x3e15f8['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3e15f8['config']['get']('trackChanges.trackFormatChanges'),_0x3e15f8['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3e15f8['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new $(_0x3e15f8,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x51a418=this['editor'];_0x51a418['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xd5f161,{writer:_0xa3ab79})=>{let _0x233ac8='suggestion:'+_0xd5f161['getAttribute']('suggestion-type')+':'+_0xd5f161['getAttribute']('id');return _0xd5f161['getAttribute']('marker-count')&&(_0x233ac8+=':'+_0xd5f161['getAttribute']('marker-count')),_0xa3ab79['createElement']('$marker',{'data-name':_0x233ac8});}}),_0x51a418['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x51a418['model']['document']['registerPostFixer'](_0x355335=>{let _0x215cfc=!0x1;const _0x50f52d=Array['from'](_0x51a418['model']['document']['differ']['getChangedMarkers']()),_0x85bea3=new Set();for(const {name:_0x2a8aa4,data:_0x4d5283}of _0x50f52d){const {group:_0x228c08,type:_0x43df21,subType:_0x17a7a1,id:_0x122fb7}=this['_splitMarkerName'](_0x2a8aa4);if('suggestion'!==_0x228c08)continue;const _0x4ae94a=_0x17a7a1?'suggestion:'+_0x43df21+':'+_0x17a7a1+':'+_0x122fb7:'suggestion:'+_0x43df21+':'+_0x122fb7,_0x4472a6=_0x51a418['model']['markers']['getMarkersGroup'](_0x4ae94a),_0x52a3d5=_0x51a418['model']['markers']['get'](_0x2a8aa4),_0x456ddb=this['_suggestions']['get'](_0x122fb7);if(null!=_0x4d5283['newRange']){'formatInline'==_0x43df21&&(_0x215cfc=_0x215cfc||Wt(_0x4d5283['newRange'],_0x2a8aa4,_0x355335,_0x51a418['model']['schema']));const _0x5dc864='attribute'==_0x43df21&&this['_isBlockAttribute'](_0x17a7a1['split']('|')[0x0]),_0x3cf0f2='attribute'==_0x43df21&&this['_isInlineAttribute'](_0x17a7a1['split']('|')[0x0]);if(_0x4d5283['newRange']['isCollapsed']||'$graveyard'==_0x4d5283['newRange']['root']['rootName']||'formatBlock'==_0x43df21&&!Qt(_0x4d5283['newRange'])||_0x5dc864&&!Qt(_0x4d5283['newRange'])||_0x3cf0f2&&Xt(_0x4d5283['newRange'])||'deletion'==_0x43df21&&Xt(_0x4d5283['newRange'])||_0x52a3d5&&Yt(_0x52a3d5,_0x4472a6))_0x355335['removeMarker'](_0x2a8aa4),_0x215cfc=!0x0;else{if(!_0x456ddb||!_0x456ddb['isInContent'])continue;if(_0x4d5283['newRange']&&_0x4d5283['oldRange']&&_0x4d5283['newRange']['isEqual'](_0x4d5283['oldRange']))continue;_0x85bea3['add'](_0x456ddb);}}}return _0x85bea3['size']>0x0&&(_0x215cfc=!!this['_joinWithAdjacentSuggestions'](_0x85bea3)||_0x215cfc),_0x215cfc;}),_0x51a418['model']['document']['registerPostFixer'](_0xcadfd0=>{let _0x34442e=!0x1;for(const _0x43ffdb of _0x51a418['model']['document']['differ']['getChanges']())if('insert'==_0x43ffdb['type'])for(const _0x10647d of this['_suggestions']['values']()){if(_0x10647d['isMultiRange']||!_0x10647d['isInContent'])continue;const _0x51643e='formatBlock'==_0x10647d['type'],_0x11ed48=this['_getAttributeKey'](_0x10647d),_0x2e6e99=_0x11ed48&&this['_isBlockAttribute'](_0x11ed48);if(!_0x51643e&&!_0x2e6e99)continue;const _0x328f40=_0x10647d['getFirstRange']();if(_0x328f40['start']['parent']!=_0x328f40['end']['parent']&&!_0x328f40['end']['isAtEnd']){const _0x86aae=_0x51a418['model']['createPositionAt'](_0x328f40['start']['nodeAfter'],'end'),_0x17e5f5=_0x51a418['model']['createRange'](_0x328f40['start'],_0x86aae);_0xcadfd0['updateMarker'](_0x10647d['getFirstMarker'](),{'range':_0x17e5f5}),_0x34442e=!0x0;}}return _0x34442e;}),_0x51a418['model']['document']['registerPostFixer'](_0x1e4326=>this['_processAttributeChanges'](_0x1e4326)),_0x51a418['model']['document']['registerPostFixer'](_0x10bf26=>!_0x10bf26['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x10bf26)),_0x51a418['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x51a418['model']['document']['on']('change:data',(_0x1a68e2,_0x1e67bd)=>{if(!_0x1e67bd['isLocal']||_0x1e67bd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3e68c0=_0x51a418['model']['document']['differ']['getChanges']();if(0x0==_0x3e68c0['length'])return;const _0x5b3b42=[],_0x1239e7=_0x3e68c0['filter'](_0x120d69=>'attribute'==_0x120d69['type']),_0x341498=_0x3e68c0['filter'](_0x238343=>'insert'==_0x238343['type']&&'$text'!=_0x238343['name']);for(const _0x5d8f9d of _0x1239e7)this['_isRegisteredAttribute'](_0x5d8f9d['attributeKey'])&&_0x5b3b42['push']({'key':_0x5d8f9d['attributeKey'],'newValue':_0x5d8f9d['attributeNewValue'],'oldValue':_0x5d8f9d['attributeOldValue'],'range':Zt(_0x5d8f9d['range'],_0x51a418['model'])});for(const _0x46668d of _0x341498){if('rename'!=_0x46668d['action']&&'refresh'!=_0x46668d['action'])continue;const _0x57d244=tn(_0x46668d['position']['nodeAfter'],_0x51a418['model']),_0xd952cd=_0x46668d['before'];'rename'==_0x46668d['action']&&_0x5b3b42['push']({'key':m,'newValue':_0x46668d['name'],'oldValue':_0xd952cd['name'],'range':_0x57d244});for(const [_0x395049,_0x14de22]of _0xd952cd['attributes']){if(!this['_isRegisteredAttribute'](_0x395049))continue;const _0x3ed130=_0x46668d['attributes']['get'](_0x395049);_0x14de22!==_0x3ed130&&_0x5b3b42['push']({'key':_0x395049,'newValue':_0x3ed130,'oldValue':_0x14de22,'range':_0x57d244});}for(const [_0x302dff,_0x3db9f1]of _0x46668d['attributes'])this['_isRegisteredAttribute'](_0x302dff)&&(_0xd952cd['attributes']['has'](_0x302dff)||_0x5b3b42['push']({'key':_0x302dff,'newValue':_0x3db9f1,'oldValue':null,'range':_0x57d244}));}0x0!=_0x5b3b42['length']&&_0x51a418['model']['enqueueChange'](_0x1e67bd,_0x5c8fa0=>{const _0x16371b=_0x40f117();for(const {range:_0x460a86,key:_0x3c154f,oldValue:_0x51f251,newValue:_0x5c9313}of _0x5b3b42)this['markAttributeChange'](_0x460a86,_0x3c154f,_0x51f251,_0x5c9313,{'groupId':_0x16371b});this['_reduceExistingSuggestions'](_0x5c8fa0,_0x5b3b42);});},{'priority':'lowest'}),_0x51a418['model']['markers']['on']('update:suggestion',(_0x39343c,_0x4f8cb5,_0x2adf4a)=>{if(null==_0x2adf4a){const {id:_0x3e9f21}=this['_splitMarkerName'](_0x4f8cb5['name']),_0x3da3d9=this['_suggestions']['get'](_0x3e9f21);_0x3da3d9&&_0x3da3d9['addMarkerName'](_0x4f8cb5['name']);}}),_0x51a418['model']['document']['on']('change:data',()=>{const _0x10cd6b=Array['from'](_0x51a418['model']['document']['differ']['getChangedMarkers']())['filter'](_0xfd96df=>'suggestion'===this['_splitMarkerName'](_0xfd96df['name'])['group']);if(0x0===_0x10cd6b['length'])return;_0x10cd6b['sort']((_0x286c92,_0x193d40)=>{const _0x2bed0c=_0x286c92['data']['oldRange'],_0x3acccc=_0x193d40['data']['oldRange'];return null===_0x2bed0c&&null===_0x3acccc?0x0:null===_0x2bed0c&&null!==_0x3acccc?-0x1:null!==_0x2bed0c&&null===_0x3acccc?0x1:_0x2bed0c['start']['isBefore'](_0x3acccc['start'])?-0x1:0x1;});const _0x4f4e4a=new Set(),_0x508d1c=new Set();for(const {name:_0x17257d,data:_0xc020e}of _0x10cd6b){const {id:_0x4ac603}=this['_splitMarkerName'](_0x17257d);if(null===_0xc020e['oldRange']){const _0x5cfeea=this['_handleNewSuggestionMarker'](_0x17257d);_0x508d1c['add'](_0x5cfeea);}else{const _0x23b40b=this['_suggestions']['get'](_0x4ac603);null!==_0xc020e['newRange']||_0x23b40b['isInContent']?(_0x4f4e4a['add'](_0x23b40b['head']),_0x508d1c['add'](_0x23b40b)):this['_removeSuggestion'](_0x23b40b);}}_0x508d1c['size']>0x0&&this['_refreshSuggestionsChain'](_0x508d1c);for(const _0x43f145 of _0x4f4e4a)this['fire']('suggestionChanged',_0x43f145);}),_0x51a418['model']['on']('applyOperation',(_0x3c5136,_0x2442b4)=>{const _0x4eac7d=_0x2442b4[0x0];if(!this['_suggestions']['size'])return;if(!_0x4eac7d['isDocumentOperation'])return;if(_0x4eac7d['batch']['isUndo']||!_0x4eac7d['batch']['isLocal'])return;let _0x5bc3e6,_0x3294c9;switch(_0x4eac7d['type']){case'insert':_0x5bc3e6=_0x51a418['model']['createPositionAt'](_0x4eac7d['position']),_0x3294c9=_0x5bc3e6['getShiftedBy'](_0x4eac7d['howMany']);break;case'split':_0x5bc3e6=_0x51a418['model']['createPositionAt'](_0x4eac7d['splitPosition']),_0x3294c9=_0x51a418['model']['createPositionAt'](_0x4eac7d['moveTargetPosition']);break;case'move':_0x5bc3e6=_0x51a418['model']['createPositionAt'](_0x4eac7d['targetPosition']),_0x3294c9=_0x5bc3e6['getShiftedBy'](_0x4eac7d['howMany']);break;default:return;}const _0x38be30=_0x51a418['model']['createRange'](_0x5bc3e6,_0x3294c9);_0x51a418['model']['change'](()=>{for(const {suggestion:_0x3baf5d,meta:_0x4f6839}of this['_findSuggestions'](_0x38be30)){if(_0x3baf5d['isMultiRange'])continue;if('formatInline'==_0x3baf5d['type'])continue;const _0x40ac2b=this['_getAttributeKey'](_0x3baf5d);if(_0x40ac2b&&this['_isBlockAttribute'](_0x40ac2b)&&'split'!=_0x4eac7d['type'])continue;const _0x17d387=_0x3baf5d['data']&&_0x3baf5d['data']['multipleBlocks'];('formatBlock'!=_0x3baf5d['type']||'split'==_0x4eac7d['type']&&!_0x17d387)&&(_0x4f6839['containsRangeInObject']||'insertion'==_0x3baf5d['type']&&_0x4f6839['isOwn']||_0x3baf5d['getFirstRange']()['containsRange'](_0x38be30)&&this['_breakSuggestionMarker'](_0x3baf5d,_0x5bc3e6,_0x3294c9));}});},{'priority':'lowest'}),_0x51a418['model']['on']('deleteContent',(_0x256700,_0x1e8bcd)=>{const _0xcebee5=_0x1e8bcd[0x0],_0x3ca007=_0x1e8bcd[0x1];if(_0x3ca007&&_0x3ca007['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xcebee5['isCollapsed'])return;const _0x1134ad=_0x51a418['model']['schema'],{start:_0x1041a1,end:_0x2687df}=_0xcebee5['getFirstRange'](),_0x2cd9ee=_0x1041a1['nodeAfter']&&_0x1134ad['isLimit'](_0x1041a1['nodeAfter'])?null:_0x1134ad['getNearestSelectionRange'](_0x1041a1,'forward'),_0x8964eb=_0x2687df['nodeBefore']&&_0x1134ad['isLimit'](_0x2687df['nodeBefore'])?null:_0x1134ad['getNearestSelectionRange'](_0x2687df,'backward'),_0x54e51a=_0x51a418['model']['createRange'](_0x2cd9ee?_0x2cd9ee['start']:_0x1041a1,_0x8964eb?_0x8964eb['end']:_0x2687df);_0x51a418['model']['change'](_0x8d955c=>{this['markDeletion'](_0x54e51a);const _0x315650=_0x51a418['model']['schema']['getNearestSelectionRange'](_0x54e51a['start']);_0xcebee5['is']('documentSelection')?_0x8d955c['setSelection'](_0x315650):_0xcebee5['setTo'](_0x315650);}),_0x256700['stop']();},{'priority':_0x5eef40['normal']+0xa}),_0x51a418['model']['on']('insertContent',(_0x376920,_0x24f986)=>{const _0x46d9de=_0x24f986[_0x24f986['length']-0x1];_0x46d9de&&_0x46d9de['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x51a418['model']['change'](()=>{let _0xb03778=_0x51a418['model']['insertContent'](_0x24f986[0x0],_0x24f986[0x1],_0x24f986[0x2],{'forceDefaultExecution':!0x0});if(!_0xb03778)return;_0x376920['return']=_0xb03778['clone']();const _0x4107bc=_0xb03778['end']['nodeBefore'],_0x304154=_0x51a418['model']['schema'];_0x4107bc&&_0x304154['isBlock'](_0x4107bc)&&!_0x304154['isObject'](_0x4107bc)&&(_0xb03778=_0x51a418['model']['createRange'](_0xb03778['start'],_0x51a418['model']['createPositionAt'](_0x4107bc,'end'))),this['markInsertion'](_0xb03778);}),_0x376920['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xc68da7=new v(_0x51a418,this['_suggestions']);_0x51a418['commands']['add']('acceptSuggestion',_0xc68da7),this['enableCommand']('acceptSuggestion');const _0x1de73c=new D(_0x51a418,this['_suggestions']);_0x51a418['commands']['add']('discardSuggestion',_0x1de73c),this['enableCommand']('discardSuggestion'),_0x51a418['commands']['add']('acceptAllSuggestions',new B(_0x51a418,_0xc68da7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x51a418['commands']['add']('discardAllSuggestions',new B(_0x51a418,_0x1de73c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x51a418['commands']['add']('acceptSelectedSuggestions',new O(_0x51a418,_0xc68da7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x51a418['commands']['add']('discardSelectedSuggestions',new O(_0x51a418,_0x1de73c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5ea63c=_0x51a418['plugins']['get']('CommentsRepository');this['listenTo'](_0x5ea63c,'addComment',(_0x32c13f,{threadId:_0x42971e})=>{const _0xe58136=this['_suggestions']['get'](_0x42971e);_0xe58136&&_0xe58136['commentThread']&&0x1===_0xe58136['commentThread']['length']&&this['_updateSuggestionData'](_0x42971e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5ea63c,'removeComment',(_0x448bd5,{threadId:_0x4f2790})=>{const _0x49b091=this['_suggestions']['get'](_0x4f2790);_0x49b091&&_0x49b091['commentThread']&&!_0x49b091['commentThread']['length']&&this['_updateSuggestionData'](_0x4f2790,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x3e249e){const _0x58db79=_0x17f22c([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]),_0x2153e0=0x3d8d0df,_0x18c650=0x3dfaff7^_0x2153e0,_0x11b254=window[_0x17f22c([0x44,0x61,0x74,0x65])][_0x17f22c([0x6e,0x6f,0x77])](),_0x307e50=_0x3e249e[_0x17f22c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47aa45=new window[(_0x17f22c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cd610=>{_0x307e50[_0x17f22c([0x6f,0x6e,0x63,0x65])](_0x17f22c([0x72,0x65,0x61,0x64,0x79]),_0x2cd610);}),_0x34783d={[_0x17f22c([0x6b,0x74,0x79])]:_0x17f22c([0x45,0x43]),[_0x17f22c([0x75,0x73,0x65])]:_0x17f22c([0x73,0x69,0x67]),[_0x17f22c([0x63,0x72,0x76])]:_0x17f22c([0x50,0x2d,0x32,0x35,0x36]),[_0x17f22c([0x78])]:_0x17f22c([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]),[_0x17f22c([0x79])]:_0x17f22c([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]),[_0x17f22c([0x61,0x6c,0x67])]:_0x17f22c([0x45,0x53,0x32,0x35,0x36])},_0x3b3025=_0x307e50[_0x17f22c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17f22c([0x67,0x65,0x74])](_0x17f22c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x51dad7(){let _0xdf9af6,_0x45ff97=null,_0x36f6dc=null;try{if(_0x3b3025==_0x17f22c([0x47,0x50,0x4c]))return _0x17f22c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xdf9af6=_0x45f0a3(),!_0xdf9af6)return _0x17f22c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xdf9af6[_0x17f22c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36f6dc=_0x1e8240(_0xdf9af6[_0x17f22c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xdf9af6[_0x17f22c([0x6a,0x74,0x69])])),await _0x2a53b7()?_0x16be3d()?_0x55d49e()?_0x17f22c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4b9254()?(_0xdf9af6[_0x17f22c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17f22c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x45ff97=_0x27edb5(_0x17f22c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30227e()):_0x17f22c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17f22c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17f22c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17f22c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55d49e(){const _0x19b1e5=[_0x17f22c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17f22c([0x74,0x72,0x69,0x61,0x6c])][_0x17f22c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdf9af6[_0x17f22c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x11b254/0x3e8:0xe10*_0x18c650;return _0xdf9af6[_0x17f22c([0x65,0x78,0x70])]<_0x19b1e5;}function _0x16be3d(){const _0x4142b5=_0xdf9af6[_0x17f22c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4142b5)return!0x1;if(_0x4142b5[_0x17f22c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17f22c([0x2a])))return!0x0;if(_0x4142b5[_0x17f22c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17f22c([0x54,0x43])))return!0x0;if(_0x4142b5[_0x17f22c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17f22c([0x52,0x54,0x43]))){if(_0x1636c5())return!0x0;if(_0x430b89()||_0x111aad())return!0x0;}return!0x1;}function _0x4b9254(){const _0x2dd0a4=_0xdf9af6[_0x17f22c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2dd0a4||0x0==_0x2dd0a4[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1d3d96}=new URL(window[_0x17f22c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2dd0a4[_0x17f22c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d3d96))return!0x0;const _0x5d46bb=_0x1d3d96[_0x17f22c([0x73,0x70,0x6c,0x69,0x74])](_0x17f22c([0x2e]));return _0x2dd0a4[_0x17f22c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x123b31=>_0x123b31[_0x17f22c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17f22c([0x2a])))[_0x17f22c([0x6d,0x61,0x70])](_0x5b35ba=>_0x5b35ba[_0x17f22c([0x73,0x70,0x6c,0x69,0x74])](_0x17f22c([0x2e])))[_0x17f22c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x72f41e=>_0x72f41e[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5d46bb[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17f22c([0x6d,0x61,0x70])](_0x794ed7=>Array(_0x5d46bb[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x794ed7[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17f22c([0x66,0x69,0x6c,0x6c])](_0x794ed7[0x0]===_0x17f22c([0x2a])?_0x17f22c([0x2a]):'')[_0x17f22c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x794ed7))[_0x17f22c([0x73,0x6f,0x6d,0x65])](_0x3b9567=>_0x5d46bb[_0x17f22c([0x65,0x76,0x65,0x72,0x79])]((_0x5103aa,_0x38fc28)=>_0x3b9567[_0x38fc28]===_0x5103aa||_0x3b9567[_0x38fc28]===_0x17f22c([0x2a])));}function _0x30227e(){return _0x45ff97&&_0x36f6dc?new window[(_0x17f22c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fac9a,_0x2d9bce)=>{_0x45ff97[_0x17f22c([0x74,0x68,0x65,0x6e])](_0x4fac9a,_0x2d9bce),_0x36f6dc[_0x17f22c([0x74,0x68,0x65,0x6e])](_0x1d35f7=>{_0x1d35f7!=_0x17f22c([0x56,0x61,0x6c,0x69,0x64])&&_0x4fac9a(_0x1d35f7);},_0x2d9bce);}):_0x45ff97||_0x36f6dc||_0x17f22c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e8240(_0x322efa,_0x282288){return new window[(_0x17f22c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49386e=>{if(_0x564188())return _0x49386e(_0x17f22c([0x56,0x61,0x6c,0x69,0x64]));_0x1312df(),_0x307e50[_0x17f22c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17f22c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3a7083=!0x1;const _0x10ac48=_0x40f117();function _0x1ca350(_0xfad714){return!!_0xfad714&&(typeof _0xfad714===_0x17f22c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xfad714===_0x17f22c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xfad714[_0x17f22c([0x74,0x68,0x65,0x6e])]===_0x17f22c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xfad714[_0x17f22c([0x63,0x61,0x74,0x63,0x68])]===_0x17f22c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25a3f1(_0x8e794){_0x16844a(_0x8e794)[_0x17f22c([0x74,0x68,0x65,0x6e])](_0x2d94cc=>{if(!_0x2d94cc||_0x2d94cc[_0x17f22c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17f22c([0x6f,0x6b]))return _0x17f22c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4ac2ed(_0x1b1354(_0x10ac48+_0x282288))!=_0x2d94cc[_0x17f22c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17f22c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17f22c([0x56,0x61,0x6c,0x69,0x64]);})[_0x17f22c([0x74,0x68,0x65,0x6e])](_0x536c5c=>(_0x1e94f0(),_0x536c5c),()=>{const _0x13e53b=_0x2054b();return null==_0x13e53b?(_0x1e94f0(),_0x17f22c([0x56,0x61,0x6c,0x69,0x64])):_0x17f22c(_0x11b254-_0x13e53b>(0x27d454df^_0x2153e0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17f22c([0x74,0x68,0x65,0x6e])](_0x49386e)[_0x17f22c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49386e(_0x17f22c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1991a3=0x3ee3e5f^_0x2153e0;function _0x1e94f0(){const _0x1524ff=_0x17f22c([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ac2ed(_0x1b1354(_0x322efa)),_0x5ab868=_0x3e3bb7(_0x4ac2ed(window[_0x17f22c([0x4d,0x61,0x74,0x68])][_0x17f22c([0x63,0x65,0x69,0x6c])](_0x11b254/_0x1991a3)));window[_0x17f22c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17f22c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1524ff,_0x5ab868);}function _0x2054b(){const _0xadf6a1=_0x17f22c([0x6c,0x6c,0x63,0x74,0x2d])+_0x4ac2ed(_0x1b1354(_0x322efa)),_0x146e5c=window[_0x17f22c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17f22c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xadf6a1);return _0x146e5c?window[_0x17f22c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e3bb7(_0x146e5c),0x10)*_0x1991a3:null;}function _0x16844a(_0x5728d8){return new window[(_0x17f22c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3529c8,_0x53daeb)=>{_0x5728d8[_0x17f22c([0x74,0x68,0x65,0x6e])](_0x3529c8,_0x53daeb),window[_0x17f22c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x53daeb,0x3d9041f^_0x2153e0);});}}_0x307e50[_0x17f22c([0x6f,0x6e])](_0x17f22c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x145770,_0x21a748)=>{if(_0x21a748[0x0]!=_0x322efa)return _0x49386e(_0x17f22c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x21a748[0x1]={..._0x21a748[0x1],[_0x17f22c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x10ac48};},{[_0x17f22c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17f22c([0x68,0x69,0x67,0x68])}),_0x307e50[_0x17f22c([0x6f,0x6e])](_0x17f22c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x53e9ca=>{_0x1ca350(_0x53e9ca[_0x17f22c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3a7083=!0x0,_0x25a3f1(_0x53e9ca[_0x17f22c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17f22c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17f22c([0x6c,0x6f,0x77])}),_0x47aa45[_0x17f22c([0x74,0x68,0x65,0x6e])](()=>{_0x3a7083||_0x49386e(_0x17f22c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x564188(){return _0x307e50[_0x17f22c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17f22c([0x76,0x69,0x65,0x77])][_0x17f22c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17f22c([0x61,0x75,0x74,0x6f]);}function _0x1312df(){_0x307e50[_0x17f22c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17f22c([0x76,0x69,0x65,0x77])][_0x17f22c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17f22c([0x61,0x75,0x74,0x6f]);}}function _0x27edb5(_0x1e513b){const _0x4d4e24=[new window[(_0x17f22c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aadd9=>setTimeout(_0x3aadd9,0x3d1ee13^_0x2153e0)),_0x47aa45[_0x17f22c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17f22c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d78e3=>{let _0x29d97d=0x0;_0x307e50[_0x17f22c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17f22c([0x6f,0x6e])](_0x17f22c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x39a4ce,_0x478dd9)=>{_0x478dd9[0x0][_0x17f22c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x29d97d++,_0x29d97d==(0x3d8d537^_0x2153e0)&&(_0x3d78e3(),_0x39a4ce[_0x17f22c([0x6f,0x66,0x66])]());});}))];return window[_0x17f22c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17f22c([0x72,0x61,0x63,0x65])](_0x4d4e24)[_0x17f22c([0x74,0x68,0x65,0x6e])](()=>_0x1e513b);}async function _0x2a82e3(){await _0x47aa45,_0x307e50[_0x17f22c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17f22c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4c815f,_0x307e50[_0x17f22c([0x6d,0x6f,0x64,0x65,0x6c])][_0x17f22c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4c815f,_0x307e50[_0x17f22c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17f22c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1636c5(){return _0x199d5c(_0x17f22c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x376340(_0x17f22c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x17f22c([0x73,0x74,0x61,0x74,0x65])]==_0x17f22c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x430b89(){return _0x199d5c(_0x17f22c([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 _0x111aad(){return _0x199d5c(_0x17f22c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x268366(_0x2f1420){const _0x4c4747=_0x111fe2();_0x307e50[_0x4c4747]=_0x17f22c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f1420,_0x2f1420!=_0x17f22c([0x56,0x61,0x6c,0x69,0x64])&&_0x2a82e3();}function _0x111fe2(){const _0x33cc3d=window[_0x17f22c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17f22c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17f22c([0x6e,0x6f,0x77])]())[_0x17f22c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17f22c([0x2e]),'');let _0x1e9333=_0x17f22c([0x52]);for(let _0x14df54=0x0;_0x14df54<_0x33cc3d[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14df54+=0x2){let _0x10d8ae=window[_0x17f22c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33cc3d[_0x17f22c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14df54,_0x14df54+0x2));_0x10d8ae>=_0x58db79[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x10d8ae-=_0x58db79[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1e9333+=_0x58db79[_0x10d8ae];}return _0x1e9333;}function _0x45f0a3(){const _0x4a05ef=_0x3b3025[_0x17f22c([0x73,0x70,0x6c,0x69,0x74])](_0x17f22c([0x2e]));if(0x3!=_0x4a05ef[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x37dd8b(_0x4a05ef[0x1]);function _0x37dd8b(_0x1fea23){const _0x4aeee4=_0x5745a1(_0x1fea23);return _0x4aeee4&&_0x473bb4()?_0x4aeee4:null;function _0x473bb4(){const _0x2e2d10=_0x4aeee4[_0x17f22c([0x6a,0x74,0x69])],_0x42dd44=window[_0x17f22c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e2d10[_0x17f22c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e2d10[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x31f54d={..._0x4aeee4,[_0x17f22c([0x6a,0x74,0x69])]:_0x2e2d10[_0x17f22c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e2d10[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x31f54d[_0x17f22c([0x76,0x63])],_0x1b1354(_0x31f54d)==_0x42dd44;}}}async function _0x2a53b7(){let _0x596e6b=!0x0;try{const _0x13f80e=_0x3b3025[_0x17f22c([0x73,0x70,0x6c,0x69,0x74])](_0x17f22c([0x2e])),[_0x59eea4,_0x14fdd3,_0x924980]=_0x13f80e;return _0xd679d6(_0x59eea4),await _0xf8f0af(_0x59eea4,_0x14fdd3,_0x924980),_0x596e6b;}catch{return!0x1;}function _0xd679d6(_0x74d004){const _0x2b4173=_0x5745a1(_0x74d004);_0x2b4173&&_0x2b4173[_0x17f22c([0x61,0x6c,0x67])]==_0x17f22c([0x45,0x53,0x32,0x35,0x36])||(_0x596e6b=!0x1);}async function _0xf8f0af(_0x3ce67c,_0x475e72,_0x42fdc4){const _0x4ecab7=window[_0x17f22c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17f22c([0x66,0x72,0x6f,0x6d])](_0x88f9c1(_0x42fdc4),_0x27e458=>_0x27e458[_0x17f22c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5a9d17=new window[(_0x17f22c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17f22c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ce67c+_0x17f22c([0x2e])+_0x475e72),_0x1da23b=window[_0x17f22c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17f22c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1da23b)return;const _0x3063bf=await _0x1da23b[_0x17f22c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17f22c([0x6a,0x77,0x6b]),_0x34783d,{[_0x17f22c([0x6e,0x61,0x6d,0x65])]:_0x17f22c([0x45,0x43,0x44,0x53,0x41]),[_0x17f22c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17f22c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17f22c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1da23b[_0x17f22c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17f22c([0x6e,0x61,0x6d,0x65])]:_0x17f22c([0x45,0x43,0x44,0x53,0x41]),[_0x17f22c([0x68,0x61,0x73,0x68])]:{[_0x17f22c([0x6e,0x61,0x6d,0x65])]:_0x17f22c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3063bf,_0x4ecab7,_0x5a9d17)||(_0x596e6b=!0x1);}}function _0x5745a1(_0x38d200){return _0x38d200[_0x17f22c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17f22c([0x65,0x79]))?JSON[_0x17f22c([0x70,0x61,0x72,0x73,0x65])](_0x88f9c1(_0x38d200)):null;}function _0x88f9c1(_0x4e37e3){return window[_0x17f22c([0x61,0x74,0x6f,0x62])](_0x4e37e3[_0x17f22c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17f22c([0x2b]))[_0x17f22c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17f22c([0x2f])));}function _0x1b1354(_0x56baba){let _0x1c60e2=0x1505;function _0x2fcdbc(_0x2c33ce){for(let _0x9babfc=0x0;_0x9babfc<_0x2c33ce[_0x17f22c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x9babfc++){const _0x249aa3=_0x2c33ce[_0x17f22c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x9babfc);_0x1c60e2=(_0x1c60e2<<0x5)+_0x1c60e2+_0x249aa3,_0x1c60e2&=_0x1c60e2;}}function _0x245707(_0x9c5faf){Array[_0x17f22c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x9c5faf)?_0x9c5faf[_0x17f22c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x245707):_0x9c5faf&&typeof _0x9c5faf==_0x17f22c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17f22c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x9c5faf)[_0x17f22c([0x73,0x6f,0x72,0x74])]()[_0x17f22c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x184ec2,_0x14497c])=>{_0x2fcdbc(_0x184ec2),_0x245707(_0x14497c);}):_0x2fcdbc(window[_0x17f22c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x9c5faf));}return _0x245707(_0x56baba),_0x1c60e2>>>0x0;}function _0x4ac2ed(_0x403169){return _0x403169[_0x17f22c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17f22c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17f22c([0x30]));}function _0x3e3bb7(_0x449287){return _0x449287[_0x17f22c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17f22c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17f22c([0x6a,0x6f,0x69,0x6e])]('');}function _0x199d5c(_0x29fc80){return _0x307e50[_0x17f22c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17f22c([0x68,0x61,0x73])](_0x29fc80);}function _0x376340(_0x23d6df){return _0x307e50[_0x17f22c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x17f22c([0x67,0x65,0x74])](_0x23d6df);}function _0x4c815f(){}function _0x17f22c(_0x2ea7b8){return _0x2ea7b8['map'](_0x1275e9=>String['fromCharCode'](_0x1275e9))['join']('');}_0x268366(await _0x51dad7());}(this);}set['adapter'](_0x2791ff){if(this['_adapter'])throw new _0x252dac('track-changes-adapter-already-set',this);this['_adapter']=_0x2791ff;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5bac8a=!0x1,toJSON:_0x49594f=!0x1}={}){const _0x404e19=[];for(const _0x4e14ba of this['_suggestions']['values']())_0x5bac8a&&!_0x4e14ba['isInContent']||_0x404e19['push'](_0x4e14ba);return _0x49594f?_0x404e19['map'](_0x5d6f98=>_0x5d6f98['toJSON']()):_0x404e19;}['getSuggestion'](_0x20bcd1){const _0x980112=this['_suggestions']['get'](_0x20bcd1);if(!_0x980112)throw new _0x252dac('track-changes-suggestion-not-found',this);return _0x980112;}['hasSuggestion'](_0x459b29){return this['_suggestions']['has'](_0x459b29);}['addSuggestionData'](_0x491390){const {authorId:_0x52ece9,id:_0x57ab23,originalSuggestionId:_0x4ffe85,attributes:_0x37bac0}=_0x491390,[_0x2565a9,_0x507143]=_0x491390['type']['split'](':'),_0x2da122=this['_suggestions']['get'](_0x57ab23)||this['_createSuggestion'](_0x2565a9,_0x507143,_0x57ab23,_0x52ece9,_0x37bac0,_0x4ffe85);if(this['_addThreadToSuggestion'](_0x2da122),this['_checkSuggestionCorrectness'](_0x2da122,_0x2565a9,_0x507143||null,_0x52ece9),_0x2da122['createdAt']=_0x491390['createdAt'],_0x2da122['_isDataLoaded']=!0x0,_0x37bac0&&_0x37bac0['@external']){const _0x578d22=_0x37bac0['@external'],_0x53bbdd=this['_getExternalAuthor'](_0x578d22['authorName']);_0x2da122['authoredAt']=_0x578d22['createdAt'],_0x2da122['author']=_0x53bbdd,_0x2da122['isExternal']=!0x0;}else _0x2da122['authoredAt']=_0x491390['createdAt'];switch(_0x491390['data']&&(_0x2da122['data']=_0x491390['data']),_0x491390['attributes']&&(_0x2da122['attributes']=_0x491390['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2da122['_saved']=!0x0),this['_suggestionState']['get'](_0x2da122)){case'notReady':this['_suggestionState']['set'](_0x2da122,'dataReady');break;case'markerReady':_0x2da122['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2da122])),this['_refreshSuggestionsChain'](new Set([_0x2da122])),this['_suggestionState']['set'](_0x2da122,'ready'),this['fire']('suggestionLoaded',_0x2da122)):this['_suggestionState']['set'](_0x2da122,'removed');}return _0x2da122;}['acceptSuggestion'](_0x2b5346){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1e3612 of _0x2b5346['getAllAdjacentSuggestions']())_0x1e3612['accept']();});});}['discardSuggestion'](_0x4bfa0d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x7001ec of _0x4bfa0d['getAllAdjacentSuggestions']())_0x7001ec['discard']();});});}['enableCommand'](_0x278d17,_0x58d6af){const _0x4000f9=this['editor']['commands']['get'](_0x278d17);if(!_0x4000f9)throw new _0x252dac('track-changes-command-not-found',this,{'commandName':_0x278d17});if(this['_enabledCommands']['has'](_0x4000f9))throw new _0x252dac('track-changes-enable-command-twice',this,{'commandName':_0x278d17});this['_enabledCommands']['add'](_0x4000f9),_0x58d6af&&_0x4000f9['on']('execute',(_0x654756,_0x4363bf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x4363bf['length']>0x0&&_0x4363bf[_0x4363bf['length']-0x1]&&_0x4363bf[_0x4363bf['length']-0x1]['forceDefaultExecution']?_0x4363bf['pop']():(_0x654756['return']=_0x58d6af((..._0x5456c1)=>_0x4000f9['execute'](..._0x5456c1,{'forceDefaultExecution':!0x0}),..._0x4363bf),_0x654756['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1abe5d){let _0x562510,_0x2d1457;const _0x36f566=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x562510=_0x1abe5d();}catch(_0x3c5d92){_0x2d1457=_0x3c5d92;}return _0x36f566||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2d1457&&_0x252dac['rethrowUnexpectedError'](_0x2d1457,this),_0x562510;}['markInsertion'](_0x249e78,_0xf46063=null,_0x5e482e={}){if(_0x249e78['isCollapsed'])return null;const _0x2fdea2=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x5e482e['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x16e276,meta:_0xc0894a}of this['_findSuggestions'](_0x249e78,'insertion'))if(_0xc0894a['isOwn']){if(!_0xc0894a['isNextTo']){if(_0xc0894a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!sn(_0x16e276,_0x5e482e))continue;return _0x16e276;}if(sn(_0x16e276,_0x5e482e))return _0x16e276;this['_breakSuggestionMarker'](_0x16e276,_0x249e78['start'],_0x249e78['end']);break;}if(_0xf46063==_0x16e276['subType']&&sn(_0x16e276,_0x5e482e)){const _0x1b439e=_0x16e276['getFirstRange']();return _0x1b439e['start']['isEqual'](_0x249e78['end'])?this['_setSuggestionRange'](_0x16e276,this['_model']['createRange'](_0x249e78['start'],_0x1b439e['end'])):this['_setSuggestionRange'](_0x16e276,this['_model']['createRange'](_0x1b439e['start'],_0x249e78['end'])),_0x16e276;}}const _0x2468af=_0x40f117(),_0x4e2d30=_0x2fdea2['id'],_0x2c581e=_0xf46063?'insertion:'+_0xf46063:'insertion',_0x2231fa=this['_setSuggestionData']({'id':_0x2468af,'type':_0x2c581e,'createdAt':new Date(),'authorId':_0x4e2d30,'attributes':_0x5e482e});return this['_addSuggestionMarker'](_0x2c581e,_0x2468af,_0x4e2d30,_0x249e78),_0x2231fa;}['markMultiRangeInsertion'](_0x149c7d,_0x4a5585='multi',_0x21680f={}){const _0x42bdb6=this['editor']['plugins']['get']('Users')['me'],_0x350fb2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4a5585,'join');this['_trackingSessionId']&&(_0x21680f['trackingSessionId']=this['_trackingSessionId']);for(const _0xe65607 of this['getSuggestions']())if(_0xe65607['author']['id']==_0x42bdb6['id']&&'insertion'==_0xe65607['type']&&_0xe65607['subType']==_0x4a5585&&sn(_0xe65607,_0x21680f)&&(_0x350fb2(_0xe65607['getRanges'](),_0x149c7d)||_0x350fb2(_0x149c7d,_0xe65607['getRanges']()))){for(const _0x529a85 of _0x149c7d)_0xe65607['addRange'](_0x529a85);return _0xe65607;}for(const {suggestion:_0x586714,meta:_0x123da5}of this['_findSuggestions'](_0x149c7d,'insertion')){if(!_0x123da5['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x123da5['containsRangeInObject'])continue;if(!sn(_0x586714,_0x21680f))continue;let _0x5545d9=!0x0;for(const _0x44f5c2 of _0x586714['getRanges']())for(const _0x325f96 of _0x149c7d)if(!_0x44f5c2['containsRange'](_0x325f96)){_0x5545d9=!0x1;break;}if(_0x5545d9)return _0x586714;}const _0x298156=_0x40f117(),_0x44ec19=_0x42bdb6['id'],_0x55dbfb='insertion:'+_0x4a5585,_0x4d6fab=this['_setSuggestionData']({'id':_0x298156,'type':_0x55dbfb,'createdAt':new Date(),'authorId':_0x44ec19,'attributes':_0x21680f});for(const _0x2d779e of _0x149c7d)this['_addSuggestionMarker'](_0x55dbfb,_0x298156,_0x44ec19,_0x2d779e,x['getMultiRangeId']());return _0x4d6fab;}['markInlineFormat'](_0x181482,_0x4d8db9,_0x468793=null,_0x402539={}){if(_0x468793=_0x468793||Ht(_0x4d8db9),_0x181482['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x402539['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x273c8d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x468793,'accept');return this['forceDefaultExecution'](()=>_0x273c8d([_0x181482],_0x4d8db9,_0x402539)),null;}const _0x151cf2=this['editor']['plugins']['get']('Users')['me'],_0x50cb54=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1d0f98,meta:_0x42c29f}of this['_findSuggestions'](_0x181482,'insertion'))_0x42c29f['isOwn']&&!_0x42c29f['isInsideObject']&&_0x50cb54['push'](..._0x1d0f98['getRanges']());}const _0x2f0f7b=function(_0x270591,_0x16aade){const _0x577b4d=[];for(const _0xdf5d9f of _0x16aade){const _0x58ea92=_0x270591['getIntersection'](_0xdf5d9f);_0x58ea92&&_0x577b4d['push'](_0x58ea92);}return _0x577b4d;}(_0x181482,_0x50cb54),_0x20e7c4=function(_0x321ebc,_0x339872){const _0x4a762e=[_0x321ebc];for(const _0x4c02bf of _0x339872){let _0x59d826=0x0;for(;_0x59d826<_0x4a762e['length'];){const _0x169022=_0x4a762e[_0x59d826]['getDifference'](_0x4c02bf);_0x4a762e['splice'](_0x59d826,0x1,..._0x169022),_0x59d826+=_0x169022['length'];}}return _0x4a762e;}(_0x181482,_0x50cb54);_0x2f0f7b['length']&&this['_model']['change'](()=>{for(const _0xd71927 of _0x2f0f7b){const _0x3f5b70=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x468793,'accept');this['forceDefaultExecution'](()=>_0x3f5b70([_0xd71927],_0x4d8db9,_0x402539));}});for(const _0x2aca2a of _0x20e7c4){let _0x43b7a5=null,_0x5ec43f=_0x2aca2a['start'],_0x5bee0a=_0x2aca2a['end'];for(const {suggestion:_0xb9a2f1,meta:_0x5f371e}of this['_findSuggestions'](_0x2aca2a,'formatInline')){if(!_0x5f371e['isOwn'])continue;if(_0xb9a2f1['subType']!=_0x468793)continue;if(!sn(_0xb9a2f1,_0x402539))continue;const _0x5ad26b=_0xb9a2f1['getFirstRange']();if(_0x5ad26b['containsRange'](_0x2aca2a,!0x0))return null;_0x5ec43f=_0x5ec43f['isBefore'](_0x5ad26b['start'])?_0x5ec43f:_0x5ad26b['start'],_0x5bee0a=_0x5bee0a['isAfter'](_0x5ad26b['end'])?_0x5bee0a:_0x5ad26b['end'],_0x43b7a5?_0x5ad26b['start']['isBefore'](_0x43b7a5['getFirstRange']()['start'])?(_0x43b7a5['removeMarkers'](),_0x43b7a5=_0xb9a2f1):_0xb9a2f1['removeMarkers']():_0x43b7a5=_0xb9a2f1;}const _0x30293d=this['_model']['createRange'](_0x5ec43f,_0x5bee0a);if(_0x43b7a5)this['_setSuggestionRange'](_0x43b7a5,_0x30293d);else{const _0x59f4f1=_0x40f117(),_0x317ab8=_0x151cf2['id'];this['_setSuggestionData']({'id':_0x59f4f1,'type':'formatInline:'+_0x468793,'data':_0x4d8db9,'createdAt':new Date(),'authorId':_0x317ab8,'attributes':_0x402539}),this['_addSuggestionMarker']('formatInline:'+_0x468793,_0x59f4f1,_0x317ab8,_0x30293d);}}return null;}['markBlockFormat'](_0x50855e,_0x53c87b,_0x318981=[],_0xa42490=null,_0x1b253b={}){_0x53c87b['formatGroupId']||(_0x53c87b['formatGroupId']=_0x53c87b['commandName']),_0x53c87b['multipleBlocks']=_0x50855e['is']('range'),_0xa42490=_0xa42490||Ht(_0x53c87b);const _0x15ca39=_0x318981['map'](_0x13a998=>tn(_0x13a998,this['_model'])),_0x44cf52=_0x50855e['is']('range')?_0x50855e:tn(_0x50855e,this['_model']);if(this['_trackingSessionId']&&(_0x1b253b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xc25df3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa42490,'accept');return this['forceDefaultExecution'](()=>_0xc25df3([_0x44cf52],_0x53c87b,_0x1b253b)),null;}_0x15ca39['push'](_0x44cf52);let _0x57d069=!0x0;for(const _0xa1224e of _0x15ca39)if(!this['_rangeIsInLocalUserInsertion'](_0xa1224e)){_0x57d069=!0x1;break;}if(_0x57d069&&'always'!==this['_trackFormatChanges']){const _0x1786ac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xa42490,'accept');return this['forceDefaultExecution'](()=>_0x1786ac([_0x44cf52],_0x53c87b,_0x1b253b)),null;}let _0x166f8b=null,_0x39c6a3=_0x44cf52['start'],_0x55fa79=_0x44cf52['end'];for(const {suggestion:_0xcebafe,meta:_0x1ffae6}of this['_findSuggestions'](_0x44cf52,'formatBlock')){if(!_0x1ffae6['isOwn'])continue;if(_0x1ffae6['isNextTo']||_0x1ffae6['containsRangeInObject']||_0x1ffae6['isInsideObject'])continue;if(_0xcebafe['data']['formatGroupId']!=_0x53c87b['formatGroupId'])continue;if(!sn(_0xcebafe,_0x1b253b))continue;const _0x339473=_0xcebafe['getFirstRange']();if(_0xcebafe['subType']==_0xa42490){if(_0x339473['containsRange'](_0x44cf52,!0x0))return null;_0x39c6a3=_0x39c6a3['isBefore'](_0x339473['start'])?_0x39c6a3:_0x339473['start'],_0x55fa79=_0x55fa79['isAfter'](_0x339473['end'])?_0x55fa79:_0x339473['end'],_0x166f8b?_0x339473['start']['isBefore'](_0x166f8b['getFirstRange']()['start'])?(_0x166f8b['removeMarkers'](),_0x166f8b=_0xcebafe):_0xcebafe['removeMarkers']():_0x166f8b=_0xcebafe;}else{const _0x5f31c5=_0x44cf52['getIntersection'](_0x339473);this['_cutOutSuggestionMarker'](_0xcebafe,_0x5f31c5);}}const _0x2c3181=this['editor']['plugins']['get']('Users')['me'],_0x32af0d=_0x40f117(),_0xf9a4e8=_0x2c3181['id'];if(_0x166f8b)return this['_setSuggestionRange'](_0x166f8b,this['_model']['createRange'](_0x39c6a3,_0x55fa79)),_0x166f8b;{const _0x2534dc=this['_setSuggestionData']({'id':_0x32af0d,'type':'formatBlock:'+_0xa42490,'data':_0x53c87b,'createdAt':new Date(),'authorId':_0xf9a4e8,'attributes':_0x1b253b});return this['_addSuggestionMarker']('formatBlock:'+_0xa42490,_0x32af0d,_0xf9a4e8,this['_model']['createRange'](_0x39c6a3,_0x55fa79)),_0x2534dc;}}['markMultiRangeBlockFormat'](_0x2a5b56,_0x26e0c8,_0x55e94a=[],_0x323231=null,_0xd5edd7={}){_0x26e0c8['formatGroupId']||(_0x26e0c8['formatGroupId']=_0x26e0c8['commandName']);const _0xa10198=_0x2a5b56[0x0];_0x26e0c8['multipleBlocks']=_0xa10198['is']('range'),_0x323231=_0x323231||Ht(_0x26e0c8);const _0x6c0a05=_0x55e94a['map'](_0x254786=>tn(_0x254786,this['_model'])),_0x2664ec=_0xa10198['is']('range')?_0x2a5b56:_0x2a5b56['map'](_0x2fa45c=>tn(_0x2fa45c,this['_model']));if(this['_trackingSessionId']&&(_0xd5edd7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x839255=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x323231,'accept');return this['forceDefaultExecution'](()=>_0x839255(_0x2664ec,_0x26e0c8,_0xd5edd7)),null;}_0x6c0a05['push'](..._0x2664ec);let _0x345ae1=!0x0;for(const _0x4e3fb4 of _0x6c0a05)if(!this['_rangeIsInLocalUserInsertion'](_0x4e3fb4)){_0x345ae1=!0x1;break;}if(_0x345ae1&&'always'!==this['_trackFormatChanges']){const _0x429747=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x323231,'accept');return this['forceDefaultExecution'](()=>_0x429747(_0x2664ec,_0x26e0c8,_0xd5edd7)),null;}const _0x4fde32=this['editor']['plugins']['get']('Users')['me'];for(const _0x4dbbee of this['getSuggestions']()){const _0x2e4705=_0x4dbbee['data'];if(_0x4dbbee['author']['id']!=_0x4fde32['id'])continue;if('formatBlock'!=_0x4dbbee['type']||_0x2e4705['formatGroupId']!=_0x26e0c8['formatGroupId'])continue;if(!sn(_0x4dbbee,_0xd5edd7))continue;const _0x494243=_0x4dbbee['subType']==_0x323231;for(let _0x396bc7=0x0;_0x396bc7<_0x2664ec['length'];_0x396bc7++){const _0x53c532=_0x2664ec[_0x396bc7];for(const _0x9adb of _0x4dbbee['getMarkers']()){const _0x129303=_0x9adb['getRange']();if(_0x53c532['isEqual'](_0x129303)){_0x494243?(_0x2664ec['splice'](_0x396bc7,0x1),_0x396bc7--):_0x4dbbee['removeMarker'](_0x9adb['name']);break;}}}}if(0x0==_0x2664ec['length'])return null;const _0x309d89=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x323231,'join');for(const _0x57414b of this['getSuggestions']()){const _0xc2b4c7=_0x57414b['data'];if(_0x57414b['author']['id']==_0x4fde32['id']&&('formatBlock'==_0x57414b['type']&&_0xc2b4c7['formatGroupId']==_0x26e0c8['formatGroupId']&&_0x57414b['subType']==_0x323231&&sn(_0x57414b,_0xd5edd7)&&(_0x309d89(_0x57414b['getRanges'](),_0x2664ec)||_0x309d89(_0x2664ec,_0x57414b['getRanges']())))){for(const _0x326a7d of _0x2664ec)_0x57414b['addRange'](_0x326a7d);return _0x57414b;}}const _0x21c0a5=_0x40f117(),_0x12f59b=_0x4fde32['id'],_0x12b031='formatBlock:'+_0x323231,_0x294eca=this['_setSuggestionData']({'id':_0x21c0a5,'type':_0x12b031,'data':_0x26e0c8,'createdAt':new Date(),'authorId':_0x12f59b,'attributes':_0xd5edd7});for(const _0x299f7f of _0x2664ec)this['_addSuggestionMarker'](_0x12b031,_0x21c0a5,_0x12f59b,_0x299f7f,x['getMultiRangeId']());return _0x294eca;}['markDeletion'](_0x4d0974,_0x4d1dd4=null,_0xb7179f={}){if(_0x4d0974['isCollapsed'])return null;const _0x20cccd=this['editor']['plugins']['get']('Users')['me'],_0x4d39f6=new _0x238721(_0x4d0974['start'],_0x4d0974['end']);this['_trackingSessionId']&&(_0xb7179f['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3dc5aa,meta:_0x16d733}of this['_findSuggestions'](_0x4d39f6,'insertion'))if(_0x16d733['isOwn']&&!_0x16d733['isNextTo']){if(_0x3dc5aa['isMultiRange']){const _0x4a8a7c=_0x3dc5aa['getRanges']()['filter'](_0x18a3b7=>'$graveyard'!=_0x18a3b7['root']['rootName']);_0x4a8a7c['every'](_0x30b0aa=>_0x4d39f6['containsRange'](_0x30b0aa,!0x0))&&_0x3dc5aa['discard']();if(_0x4a8a7c['some'](_0x19052f=>_0x19052f['containsRange'](_0x4d39f6,!0x0))){const _0x525f98=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4d1dd4,'accept');return this['forceDefaultExecution'](()=>_0x525f98([_0x4d39f6],null,_0xb7179f)),null;}}else{const _0x1cee9b=_0x4d39f6['getIntersection'](_0x3dc5aa['getFirstRange']());null!==_0x1cee9b&&_0x3dc5aa['_onDiscard']([_0x1cee9b],null,_0xb7179f);}}if(_0x4d39f6['detach'](),_0x4d39f6['isCollapsed']||'$graveyard'==_0x4d39f6['root']['rootName'])return null;let _0x3d2c7c=null,_0x2148f8=_0x4d39f6['start'],_0x247f3d=_0x4d39f6['end'];const _0x1cd097=this['_findSuggestions'](_0x4d39f6,'deletion');for(const {suggestion:_0x488ffc,meta:_0x19526d}of _0x1cd097){const _0x1ca45a=this['_model']['createRange'](_0x2148f8,_0x247f3d);if(_0x19526d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x19526d['containsRangeInObject']&&!_0x19526d['isInsideObject'])){if(_0x488ffc['isMultiRange']){if(!sn(_0x488ffc,_0xb7179f))continue;let _0x4aea09=!0x0;for(const _0x2f85c3 of _0x488ffc['getRanges']()){if(_0x2f85c3['containsRange'](_0x1ca45a,!0x0))return _0x488ffc;_0x1ca45a['containsRange'](_0x2f85c3)||(_0x4aea09=!0x1);}_0x4aea09&&_0x488ffc['discard']();}else{const _0x2a9dd0=_0x488ffc['getFirstRange']();if(_0x2a9dd0['containsRange'](_0x1ca45a,!0x0))return _0x488ffc;if(!sn(_0x488ffc,_0xb7179f)){_0x1ca45a['containsRange'](_0x2a9dd0)?_0x488ffc['removeMarkers']():_0x2a9dd0['containsPosition'](_0x2148f8)?_0x2148f8=_0x2a9dd0['end']:_0x2a9dd0['containsPosition'](_0x247f3d)&&(_0x247f3d=_0x2a9dd0['start']);continue;}_0x2148f8=_0x2148f8['isBefore'](_0x2a9dd0['start'])?_0x2148f8:_0x2a9dd0['start'],_0x247f3d=_0x247f3d['isAfter'](_0x2a9dd0['end'])?_0x247f3d:_0x2a9dd0['end'],_0xb7179f=Object['assign']({},_0x488ffc['attributes']),_0x3d2c7c?_0x2a9dd0['start']['isBefore'](_0x3d2c7c['getFirstRange']()['start'])?(_0x3d2c7c['removeMarkers'](),_0x3d2c7c=_0x488ffc):_0x488ffc['removeMarkers']():_0x3d2c7c=_0x488ffc;}}}if(_0x3d2c7c)return this['_setSuggestionRange'](_0x3d2c7c,this['_model']['createRange'](_0x2148f8,_0x247f3d)),_0x3d2c7c;{const _0x51e74a=_0x40f117(),_0x120a1c=this['_model']['createRange'](_0x2148f8,_0x247f3d),_0x291863=_0x20cccd['id'],_0x42c98c=_0x4d1dd4?'deletion:'+_0x4d1dd4:'deletion',_0x403d1b=this['_setSuggestionData']({'id':_0x51e74a,'type':_0x42c98c,'createdAt':new Date(),'authorId':_0x291863,'attributes':_0xb7179f});return this['_addSuggestionMarker'](_0x42c98c,_0x51e74a,_0x291863,_0x120a1c),_0x403d1b;}}['markMultiRangeDeletion'](_0x2e7b58,_0x1bd8a1='multi',_0x262beb={}){const _0x566816=this['editor']['plugins']['get']('Users')['me'],_0x4fed1d=_0x2e7b58['map'](_0x5be06a=>new _0x238721(_0x5be06a['start'],_0x5be06a['end'])),_0x41b17b=new Set();this['_trackingSessionId']&&(_0x262beb['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x151e52,meta:_0x5efa51}of this['_findSuggestions'](_0x4fed1d,'insertion'))_0x5efa51['isOwn']&&!_0x5efa51['isNextTo']&&_0x41b17b['add'](_0x151e52);for(const _0x161b81 of _0x41b17b)if(_0x161b81['isMultiRange']){const _0x3bb815=_0x161b81['getRanges']();(!_0x161b81['attributes']||!_0x161b81['attributes']['skipNestingCheck'])&&(_0x3bb815['every'](_0x1b8c4f=>_0x4fed1d['some'](_0x10351a=>_0x10351a['containsRange'](_0x1b8c4f,!0x0)))&&_0x161b81['discard']());if(_0x4fed1d['every'](_0x2b9666=>_0x3bb815['some'](_0x596710=>_0x596710['containsRange'](_0x2b9666,!0x0)))){const _0x201f5a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1bd8a1,'accept');return this['forceDefaultExecution'](()=>_0x201f5a(_0x2e7b58,null,_0x262beb)),null;}}else{const _0x2a8c91=_0x161b81['getFirstRange']();_0x4fed1d['some'](_0x42be38=>_0x42be38['containsRange'](_0x2a8c91,!0x0))&&_0x161b81['discard']();if(_0x4fed1d['every'](_0xbba8db=>_0x2a8c91['containsRange'](_0xbba8db,!0x0))){const _0x4553d5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1bd8a1,'accept');return this['forceDefaultExecution'](()=>_0x4553d5(_0x4fed1d,null,_0x262beb)),null;}}const _0x5f36ba=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1bd8a1,'join');let _0x3c1444=null;for(const _0x5c4a97 of this['getSuggestions']())if(_0x5c4a97['author']['id']==_0x566816['id']&&_0x5c4a97['isInContent']&&'deletion'==_0x5c4a97['type']&&_0x5c4a97['subType']==_0x1bd8a1&&sn(_0x5c4a97,_0x262beb)&&(_0x5f36ba(_0x5c4a97['getRanges'](),_0x4fed1d)||_0x5f36ba(_0x4fed1d,_0x5c4a97['getRanges']()))){if(_0x3c1444){if(_0x5c4a97['commentThread']&&_0x5c4a97['commentThread']['length'])continue;for(const _0x481bc9 of _0x5c4a97['getRanges']())_0x3c1444['isIntersectingWithRange'](_0x481bc9)||_0x3c1444['addRange'](_0x481bc9);_0x5c4a97['removeMarkers']();}else{_0x3c1444=_0x5c4a97;for(const _0x309fe0 of _0x4fed1d)_0x5c4a97['isIntersectingWithRange'](_0x309fe0)||_0x5c4a97['addRange'](_0x309fe0);}}if(_0x3c1444)return _0x3c1444;_0x41b17b['clear']();for(const {suggestion:_0x2000ac,meta:_0x46af2c}of this['_findSuggestions'](_0x4fed1d,'deletion'))_0x46af2c['isOwn']&&(this['_mergeNestedSuggestions']||!_0x46af2c['containsRangeInObject']&&!_0x46af2c['isInsideObject'])&&sn(_0x2000ac,_0x262beb)&&_0x41b17b['add'](_0x2000ac);for(const _0x1e9986 of _0x41b17b){const _0x205da3=_0x1e9986['getRanges']();if(!_0x262beb||!_0x262beb['skipNestingCheck']){if(_0x4fed1d['every'](_0x58937c=>_0x205da3['some'](_0x344247=>_0x344247['containsRange'](_0x58937c,!0x0))))return _0x1e9986;}(!_0x1e9986['attributes']||!_0x1e9986['attributes']['skipNestingCheck'])&&(_0x205da3['every'](_0x16ffe0=>_0x4fed1d['some'](_0x55f695=>_0x55f695['containsRange'](_0x16ffe0,!0x0)))&&_0x1e9986['discard']());}const _0x186ca6=_0x40f117(),_0x1dc01e=_0x566816['id'],_0x7d0226='deletion:'+_0x1bd8a1,_0x2829f6=this['_setSuggestionData']({'id':_0x186ca6,'type':_0x7d0226,'createdAt':new Date(),'authorId':_0x1dc01e,'attributes':_0x262beb});for(const _0x26b964 of _0x4fed1d)_0x26b964['detach'](),_0x26b964['isCollapsed']||'$graveyard'==_0x26b964['root']['rootName']||this['_addSuggestionMarker'](_0x7d0226,_0x186ca6,_0x1dc01e,_0x26b964,x['getMultiRangeId']());return _0x2829f6;}['markAttributeChange'](_0x2a6545,_0xa35568,_0x336bee,_0x5abbf3,_0x458be4){if(_0x2a6545['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2b75bb=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c79dc=Array['from'](this['_suggestions']['values']())['filter'](_0x1296c1=>'attribute'==_0x1296c1['type']&&_0x1296c1['data']['key']==_0xa35568&&_0x1296c1['isIntersectingWithRange'](_0x2a6545));if(this['_trackingSessionId']&&(_0x458be4['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x423446=this['_findSuggestions'](_0x2a6545,'insertion')['filter'](({meta:_0x141647})=>_0x141647['isOwn']&&!_0x141647['isInsideObject']&&!_0x141647['isNextTo'])['map'](({suggestion:_0x362cde})=>_0x362cde);_0x4c79dc['unshift'](..._0x423446);}const _0x528e69=new Map([[_0x2a6545,_0x336bee]]);for(const _0x46b16c of _0x4c79dc){const _0x3daa60='attribute'==_0x46b16c['type']?_0x46b16c['data']['oldValue']:void 0x0,_0x5b5e19=_0x46b16c['getFirstRange'](),_0x4ac2f0=Array['from'](_0x528e69['keys']())['find'](_0x368c2b=>_0x368c2b['isIntersecting'](_0x5b5e19));if(!_0x4ac2f0)continue;const _0x1378a0=_0x4ac2f0['getDifference'](_0x5b5e19);this['_isBlockAttribute'](_0xa35568)&&'insertion'==_0x46b16c['type']&&0x0!=_0x1378a0['length']||(_0x528e69['delete'](_0x4ac2f0),_0x1378a0['forEach'](_0x95d77b=>{_0x528e69['set'](_0x95d77b,_0x336bee);}),'insertion'!=_0x46b16c['type']&&_0x3daa60!=_0x5abbf3&&_0x528e69['set'](_0x4ac2f0['getIntersection'](_0x5b5e19),_0x3daa60));}const _0x1a1b11=[];for(const [_0xcbb2f9,_0x22a7c4]of _0x528e69){const _0x5e10b3=_0x40f117(),_0x4453de={'key':_0xa35568,'oldValue':_0x22a7c4,'newValue':_0x5abbf3};_0xa35568['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':_0xa35568});const _0x3571cd=('attribute:'+(_0xa35568+'|'+Ht({'newValue':_0x5abbf3})))['substring'](0x0,0x3c),_0x5ef03a=this['_setSuggestionData']({'id':_0x5e10b3,'type':_0x3571cd,'data':_0x4453de,'createdAt':new Date(),'authorId':_0x2b75bb,'attributes':_0x458be4});_0x1a1b11['push'](_0x5ef03a),this['_addSuggestionMarker'](_0x3571cd,_0x5e10b3,_0x2b75bb,_0xcbb2f9);}return _0x1a1b11;}['enableDefaultAttributesIntegration'](_0xa6d428){this['enableCommand'](_0xa6d428,(_0x5f5216,..._0x53b57b)=>{this['recordAttributeChanges'](()=>{_0x5f5216(..._0x53b57b);});});}['registerBlockAttribute'](_0x2294b5){this['editor']['plugins']['get'](Jt)['registerBlockAttribute'](_0x2294b5);}['registerInlineAttribute'](_0x1a4d12){this['editor']['plugins']['get'](Jt)['registerInlineAttribute'](_0x1a4d12);}['startTrackingSession'](_0x30aca1){return this['_trackingSessionId']=void 0x0!==_0x30aca1?_0x30aca1:_0x40f117(),this['_trackingSessionId'];}['_getAttributeKey'](_0xd3dcb2){return'attribute'==_0xd3dcb2['type']?_0xd3dcb2['subType']['split']('|')[0x0]:null;}['_applyOperationsAsSuggestions'](_0x469bf7){if(0x0==_0x469bf7['length'])return;const _0xbf2bdb=this['editor'],_0x44685d=_0xbf2bdb['plugins']['get'](_0x808567),_0x45c027=[];_0xbf2bdb['model']['change'](_0x105848=>{for(let _0x8d28ea=0x0;_0x8d28ea<_0x469bf7['length'];_0x8d28ea++){const _0x1ba650=_0x469bf7[_0x8d28ea];if(_0x1ba650['baseVersion']=_0xbf2bdb['model']['document']['version'],_0x1ba650['isDocumentOperation']=!0x0,_0x44685d['isMarkedRemoveOperation'](_0x1ba650)){const _0x7dc4a8=Lt(_0x1ba650['newRange'],_0xbf2bdb['model']);_0x45c027['unshift'](_0x238721['fromRange'](_0x7dc4a8));}else switch(_0x1ba650['type']){case'rename':{const _0x2cb6ec=_0x1ba650['oldName'],_0x3767a6=_0x1ba650['newName'];if(_0x2cb6ec==_0x3767a6)break;_0x105848['batch']['addOperation'](_0x1ba650),_0xbf2bdb['model']['applyOperation'](_0x1ba650);const _0x203646='$elementName',_0x51be49=_0x1ba650['position'],_0x419e05=_0xbf2bdb['model']['createRange'](_0x51be49,_0xbf2bdb['model']['createPositionAt'](_0x51be49['nodeAfter'],'end'));this['markAttributeChange'](_0x419e05,_0x203646,_0x2cb6ec,_0x3767a6,{'groupId':_0x40f117()});break;}case'addAttribute':case'removeAttribute':case'changeAttribute':{const _0x288a89=_0x1ba650['oldValue'],_0x5ad9c1=_0x1ba650['newValue'];if(_0x288a89==_0x5ad9c1)break;_0x105848['batch']['addOperation'](_0x1ba650),_0xbf2bdb['model']['applyOperation'](_0x1ba650);const _0xfc5003=_0x1ba650['key'];if(!this['_isRegisteredAttribute'](_0xfc5003))break;const _0x4c84a6=Lt(_0x1ba650['range'],_0xbf2bdb['model']);this['markAttributeChange'](_0x4c84a6,_0xfc5003,_0x288a89,_0x5ad9c1,{'groupId':_0x40f117()});break;}case'insert':{_0x105848['batch']['addOperation'](_0x1ba650),_0xbf2bdb['model']['applyOperation'](_0x1ba650);if(_0x469bf7[_0x8d28ea+0x1]&&'move'==_0x469bf7[_0x8d28ea+0x1]['type'])break;const _0x18b040=_0x1ba650['position'],_0x3fb0f6=_0x1ba650['howMany'],_0xb005a0=Lt(_0xbf2bdb['model']['createRange'](_0x18b040,_0x18b040['getShiftedBy'](_0x3fb0f6)),_0xbf2bdb['model']);this['markInsertion'](_0xb005a0);break;}case'split':{_0x105848['batch']['addOperation'](_0x1ba650),_0xbf2bdb['model']['applyOperation'](_0x1ba650);const _0x2ba226=_0x1ba650['splitPosition'],_0x555183=_0x1ba650['moveTargetPosition'];this['markInsertion'](_0xbf2bdb['model']['createRange'](_0x2ba226,_0x555183));break;}case'move':case'remove':_0x105848['batch']['addOperation'](_0x1ba650),_0xbf2bdb['model']['applyOperation'](_0x1ba650);}}for(const _0x4c9bc5 of _0x45c027)_0x4c9bc5['detach'](),this['markDeletion'](_0x4c9bc5);});}['_setSuggestionRange'](_0x28af22,_0x254438){const _0x369c77=_0x28af22['getFirstMarker']();this['_model']['change'](_0x54ca13=>{_0x54ca13['updateMarker'](_0x369c77,{'range':_0x254438});});}['_addThreadToSuggestion'](_0x2c9dcb){const _0x50fc16=_0x2c9dcb['id'],_0x2e84bd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x50fc16)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2e84bd,'threadId':_0x50fc16,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x338516=this['_commentsRepository']['getCommentThread'](_0x50fc16);_0x338516['unbind']('isRemovable'),_0x338516['isRemovable']=!0x1,_0x2c9dcb['commentThread']=_0x338516;}['_checkSuggestionCorrectness'](_0xf2070e,_0x5dc86d,_0x26f23e,_0x526b1a){if(_0xf2070e['type']!=_0x5dc86d||_0xf2070e['subType']!=_0x26f23e||_0xf2070e['creator']['id']!=_0x526b1a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x252dac('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x9d29a4,_0x5db6b4){const _0x2f7fbb=_0x9d29a4['getFirstRange']();if(_0x5db6b4['isEqual'](_0x2f7fbb))_0x9d29a4['removeMarkers']();else{if(_0x2f7fbb['containsRange'](_0x5db6b4)){const _0x42328c=this['_model']['createPositionAt'](_0x5db6b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9d29a4,this['_model']['createRange'](_0x2f7fbb['start'],_0x42328c));const _0x28357c=_0x40f117(),_0x2dfb63=_0x9d29a4['creator']['id'],_0x4d30a3=_0x9d29a4['type']+':'+_0x9d29a4['subType'];this['_setSuggestionData']({'id':_0x28357c,'type':_0x4d30a3,'createdAt':new Date(),'authorId':_0x2dfb63,'data':_0x9d29a4['data'],'attributes':_0x9d29a4['attributes']});const _0x56dab6=this['_model']['createPositionAt'](_0x5db6b4['end']['parent'],'after'),_0xad439a=this['_model']['createRange'](_0x56dab6,_0x2f7fbb['end']);this['_addSuggestionMarker'](_0x4d30a3,_0x28357c,_0x2dfb63,_0xad439a);}else{if(_0x2f7fbb['containsPosition'](_0x5db6b4['start'])){const _0x2fd593=this['_model']['createPositionAt'](_0x5db6b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x9d29a4,this['_model']['createRange'](_0x2f7fbb['start'],_0x2fd593));}else{const _0x209eab=this['_model']['createPositionAt'](_0x5db6b4['end']['parent'],'after');this['_setSuggestionRange'](_0x9d29a4,this['_model']['createRange'](_0x209eab,_0x2f7fbb['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1925e4){for(const {suggestion:_0x2c93cb,meta:_0x5540ad}of this['_findSuggestions'](_0x1925e4,'insertion')){if(!_0x5540ad['isOwn'])continue;const _0x2e9285=_0x2c93cb['getRanges']();for(const _0x24264c of _0x2e9285)if(!_0x1925e4['getDifference'](_0x24264c)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x52837a){return this['editor']['plugins']['get']('Users')['getUser'](_0x52837a);}['_getExternalAuthor'](_0x36cd97){const _0x56870c=this['editor']['plugins']['get']('Users'),_0x370a26=_0x48017e('external:'+_0x36cd97),_0x4d4d44=_0x56870c['getUser'](_0x370a26);return _0x4d4d44||_0x56870c['addUser']({'id':_0x370a26,'name':_0x36cd97});}['_createSuggestion'](_0x390b49,_0x1eaeb7,_0x4b4eb4,_0x4096b2,_0x526683,_0x249646){const _0x1366a7=this['_getAuthorFromId'](_0x4096b2);if(!_0x1366a7)throw new _0x252dac('track-changes-user-not-found',this,{'authorId':_0x4096b2,'suggestionId':_0x4b4eb4});const _0x29bf46=this['_suggestionFactory']['buildSuggestion'](_0x390b49,_0x1eaeb7,_0x4b4eb4,_0x1366a7,_0x526683,_0x4d01ab=>{this['_updateSuggestionData'](_0x4b4eb4,{'attributes':_0x4d01ab});const _0x26e04c=this['getSuggestion'](_0x4b4eb4);this['_joinWithAdjacentSuggestions'](new Set([_0x26e04c])),this['_refreshSuggestionsChain'](new Set([_0x26e04c]));},_0x249646);return this['listenTo'](_0x29bf46,'accept',()=>{this['_updateSuggestionData'](_0x4b4eb4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x29bf46,'discard',()=>{this['_updateSuggestionData'](_0x4b4eb4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4b4eb4,_0x29bf46),this['_suggestionState']['set'](_0x29bf46,'notReady'),_0x29bf46;}['_splitMarkerName'](_0x599456){return Gt(_0x599456);}['_breakSuggestionMarker'](_0x57baba,_0x5cbd53,_0x74a9c8){const _0x1a4dcf=_0x57baba['getFirstRange'](),_0x279fdb=_0x1a4dcf['start'],_0x4d0eca=_0x1a4dcf['end'];this['_setSuggestionRange'](_0x57baba,this['_model']['createRange'](_0x279fdb,_0x5cbd53));const _0x52eba2=_0x40f117(),_0x138e82=_0x57baba['creator']['id'],_0xd105b6=_0x57baba['type']+(_0x57baba['subType']?':'+_0x57baba['subType']:'');this['_setSuggestionData']({'id':_0x52eba2,'type':_0xd105b6,'createdAt':new Date(),'authorId':_0x138e82,'originalSuggestionId':_0x57baba['_originalSuggestionId']||_0x57baba['id'],'attributes':_0x57baba['attributes'],'data':_0x57baba['data']});const _0x5488a=this['_getAttributeKey'](_0x57baba);('formatBlock'==_0x57baba['type']||_0x5488a&&this['_isBlockAttribute'](_0x5488a))&&(_0x74a9c8=this['_model']['createPositionBefore'](_0x74a9c8['parent'])),this['_addSuggestionMarker'](_0xd105b6,_0x52eba2,_0x138e82,this['_model']['createRange'](_0x74a9c8,_0x4d0eca));}['_findSuggestions'](_0xd5d9bf,_0x4bbdc3=null){const _0x34d412=[],_0x374029=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xd5d9bf)||(_0xd5d9bf=[_0xd5d9bf]);for(const _0x1660a7 of this['getSuggestions']()){if(!_0x1660a7['isInContent'])continue;if(_0x4bbdc3&&_0x1660a7['type']!=_0x4bbdc3)continue;let _0xbcf5b4=!0x1;for(const _0x36be2c of _0x1660a7['getRanges']()){for(const _0x4d86d7 of _0xd5d9bf){const _0x4d408c=_0x4d86d7['start']['isEqual'](_0x36be2c['end'])||_0x4d86d7['end']['isEqual'](_0x36be2c['start']);if(_0x4d408c||_0x4d86d7['getIntersection'](_0x36be2c)){const _0x1e8f3c=_0x4d86d7['containsRange'](_0x36be2c)&&zt(this['_model']['schema'],_0x36be2c['start'],_0x4d86d7),_0x51f762=_0x36be2c['containsRange'](_0x4d86d7)&&zt(this['_model']['schema'],_0x4d86d7['start'],_0x36be2c);_0x34d412['push']({'suggestion':_0x1660a7,'meta':{'isOwn':_0x374029==_0x1660a7['author'],'isNextTo':_0x4d408c,'isInsideObject':_0x1e8f3c,'containsRangeInObject':_0x51f762}}),_0xbcf5b4=!0x0;break;}}if(_0xbcf5b4)break;}}return _0x34d412;}['_addSuggestionMarker'](_0x327657,_0x4d04d7,_0xf6d050,_0x3bddbd,_0x457921){this['_model']['change'](_0x1c14f6=>{let _0x3466be='suggestion:'+_0x327657+':'+_0x4d04d7+':'+_0xf6d050;_0x457921&&(_0x3466be=_0x3466be+':'+_0x457921),_0x1c14f6['addMarker'](_0x3466be,{'range':_0x3bddbd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x28973a){const _0x2a5763=_0x28973a['previous'],_0x3d3d3b=_0x28973a['next'];_0x28973a['previous']=null,_0x28973a['next']=null,null!=_0x2a5763&&_0x2a5763['next']==_0x28973a&&(_0x2a5763['next']=_0x3d3d3b),null!=_0x3d3d3b&&_0x3d3d3b['previous']==_0x28973a&&(_0x3d3d3b['previous']=_0x2a5763),'ready'==this['_suggestionState']['get'](_0x28973a)&&(this['_suggestionState']['set'](_0x28973a,'removed'),this['fire']('suggestionUnloaded',_0x28973a,_0x2a5763,_0x3d3d3b));}['_setSuggestionData'](_0x5d501d){const _0xe5044=_0x5d501d['id'],_0xef0b5=this['addSuggestionData'](_0x5d501d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x8a2232=this['editor']['plugins']['get']('PendingActions'),_0x28c253=_0xef0b5['hasComments'],_0x40d610=_0xef0b5['subType']?_0xef0b5['type']+':'+_0xef0b5['subType']:_0xef0b5['type'],_0x2a7f33=this['editor']['locale'],_0x21bfaf=_0x8a2232['add'](o(_0x2a7f33,'PENDING_ACTION_SUGGESTION')),_0xad55f7={'id':_0xe5044,'type':_0x40d610,'hasComments':_0x28c253,'data':_0x5d501d['data']||null,'originalSuggestionId':_0x5d501d['originalSuggestionId']||null,'attributes':_0xef0b5['attributes']};this['_adapter']['addSuggestion'](_0xad55f7)['then'](_0x533979=>{_0xef0b5['_saved']=!0x0,_0x8a2232['remove'](_0x21bfaf),_0x533979&&_0x533979['createdAt']&&(this['_suggestions']['get'](_0xe5044)['createdAt']=_0x533979['createdAt']);})['catch'](_0x4e04eb=>{throw _0x558396('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xef0b5['discard']();}),_0xef0b5['stopListening'](),this['_suggestions']['delete'](_0xef0b5['id']),this['_suggestionState']['delete'](_0xef0b5),_0x4e04eb;});}return _0xef0b5;}['_isBlockAttribute'](_0xd6adcd){return this['editor']['plugins']['get'](Jt)['isBlockAttribute'](_0xd6adcd);}['_isInlineAttribute'](_0x2b9c42){return this['editor']['plugins']['get'](Jt)['isInlineAttribute'](_0x2b9c42);}['_updateSuggestionData'](_0x360c1a,_0x2eb219){const _0x4d4bf0=this['editor']['plugins']['get']('PendingActions'),_0x292a2b=this['getSuggestion'](_0x360c1a);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x292a2b['_saved']){const _0x4f0e90=_0x4d4bf0['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x360c1a,_0x2eb219)['then'](()=>{_0x4d4bf0['remove'](_0x4f0e90);});}else _0x292a2b['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x360c1a,_0x2eb219);});}}['_getSuggestionData'](_0x296cba){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x252dac('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x296cba);}['_handleNewSuggestionMarker'](_0x490879){const {id:_0x131c3a,type:_0x1d1d01,subType:_0x36548d,authorId:_0x1927ec}=this['_splitMarkerName'](_0x490879),_0x3c90b9=this['_suggestions']['get'](_0x131c3a)||this['_createSuggestion'](_0x1d1d01,_0x36548d,_0x131c3a,_0x1927ec,{});switch(this['_checkSuggestionCorrectness'](_0x3c90b9,_0x1d1d01,_0x36548d,_0x1927ec),this['_suggestionState']['get'](_0x3c90b9)){case'notReady':this['_getSuggestionData'](_0x131c3a)['then'](_0xb2f46=>{let _0x219e71=Promise['resolve']();_0xb2f46['hasComments']&&(_0x219e71=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x131c3a})),_0x219e71['then'](()=>{this['addSuggestionData'](_0xb2f46)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3c90b9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x131c3a,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3c90b9,'ready'),this['fire']('suggestionLoaded',_0x3c90b9);break;case'ready':this['fire']('suggestionChanged',_0x3c90b9);}return _0x3c90b9['addMarkerName'](_0x490879),_0x3c90b9;}['_refreshSuggestionsChain'](_0x2d5e16){const _0x438811=Array['from'](_0x2d5e16),_0x1be55b=_0x438811['filter'](_0x3b6495=>'attribute'==_0x3b6495['type']);this['_refreshAttributeSuggestionsChain'](_0x1be55b);const _0x5903ee=_0x438811['filter'](_0x47ae8f=>!_0x47ae8f['isMultiRange']&&'attribute'!=_0x47ae8f['type']),_0x2d84ff=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2cbca0=>!_0x2cbca0['isMultiRange']&&'attribute'!=_0x2cbca0['type']),_0x119f5f=_0x2d84ff['filter'](_0x53909c=>!_0x2d5e16['has'](_0x53909c)),_0x2e662a=new Map(_0x2d84ff['map'](_0x263498=>[_0x263498,this['_suggestionFactory']['getSuggestionCallback'](_0x263498['type'],_0x263498['subType'],'chain')])),_0x238133=new Map(_0x2d84ff['map'](_0x3cccbf=>[_0x3cccbf,_0x3cccbf['getFirstRange']()])),_0xe852e8=new Set(),_0x32c490=new Set();for(let _0x355923=0x0;_0x355923<_0x5903ee['length'];_0x355923++)_0x55b7b5(_0x5903ee[_0x355923],_0x5903ee,_0x355923+0x1);for(let _0x25ce0d=0x0;_0x25ce0d<_0x5903ee['length'];_0x25ce0d++)_0x55b7b5(_0x5903ee[_0x25ce0d],_0x119f5f,0x0);const _0xa38b7c=new Set();for(let _0x5023b8=0x0;_0x5023b8<_0x5903ee['length'];_0x5023b8++){const _0x37d805=_0x5903ee[_0x5023b8];!_0x32c490['has'](_0x37d805)&&_0x37d805['previous']&&(_0xa38b7c['add'](_0x37d805['previous']),_0x37d805['previous']['next']===_0x37d805&&(_0x37d805['previous']['next']=null),_0x37d805['previous']=null),!_0xe852e8['has'](_0x37d805)&&_0x37d805['next']&&(_0xa38b7c['add'](_0x37d805['next']),_0x37d805['next']['previous']===_0x37d805&&(_0x37d805['next']['previous']=null),_0x37d805['next']=null);}function _0x55b7b5(_0x553ea1,_0x33031b,_0x5e7da2){for(let _0x21a826=_0x5e7da2;_0x21a826<_0x33031b['length'];_0x21a826++){const _0x33d1bf=_0x2a369c(_0x553ea1,_0x33031b[_0x21a826]);_0x33d1bf&&(_0x33d1bf[0x0]['next']=_0x33d1bf[0x1],_0x33d1bf[0x1]['previous']=_0x33d1bf[0x0],_0xe852e8['add'](_0x33d1bf[0x0]),_0x32c490['add'](_0x33d1bf[0x1]));}}function _0x2a369c(_0x13adad,_0x3750e1){if(_0x13adad['author']['id']!==_0x3750e1['author']['id'])return null;const _0x55619b=_0x2e662a['get'](_0x13adad)(_0x13adad,_0x3750e1,_0x238133['get'](_0x13adad),_0x238133['get'](_0x3750e1));if(!_0x55619b)return null;return _0x2e662a['get'](_0x3750e1)(_0x13adad,_0x3750e1,_0x238133['get'](_0x13adad),_0x238133['get'](_0x3750e1))?_0x55619b[0x1]['commentThread']&&_0x55619b[0x1]['commentThread']['length']?null:_0x55619b:null;}_0xa38b7c['size']&&this['_refreshSuggestionsChain'](_0xa38b7c);}['_refreshAttributeSuggestionsChain'](_0x31e2f7){if(0x0==_0x31e2f7['length'])return;const _0x25eb77=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28aeac=>'attribute'==_0x28aeac['type']&&_0x28aeac['_isDataLoaded']),_0x35eb9b=[],_0x1fb814=new Map();for(const _0x45afe7 of _0x25eb77){const _0x5e9384=_0x48017e(_0x45afe7['attributes']);_0x1fb814['has'](_0x5e9384)||(_0x1fb814['set'](_0x5e9384,_0x35eb9b['length']),_0x35eb9b['push']([]));const _0x23766e=_0x1fb814['get'](_0x5e9384);_0x35eb9b[_0x23766e]['push'](_0x45afe7);}!(function(){_0x35eb9b['sort']((_0x322c0d,_0x3089c7)=>{const _0x344449=_0x322c0d[0x0]['createdAt'],_0x4b9ff4=_0x3089c7[0x0]['createdAt'];return _0x344449==_0x4b9ff4?_0x322c0d[0x0]['attributes']['groupId']<_0x3089c7[0x0]['attributes']['groupId']?-0x1:0x1:_0x344449<_0x4b9ff4?-0x1:0x1;});for(const _0x382f8e of _0x35eb9b)_0x382f8e['sort']((_0xefd753,_0x50c499)=>_0xefd753['id']<_0x50c499['id']?-0x1:0x1);}());for(let _0x5e07ca=0x0;_0x5e07ca<_0x35eb9b['length'];_0x5e07ca++){if(0x0==_0x35eb9b[_0x5e07ca]['length'])continue;const _0x342a58=[];for(let _0x5de4a0=_0x5e07ca+0x1;_0x5de4a0<_0x35eb9b['length'];_0x5de4a0++)0x0!=_0x35eb9b[_0x5de4a0]['length']&&_0x53dff3(_0x35eb9b[_0x5e07ca],_0x35eb9b[_0x5de4a0])&&_0x342a58['push'](_0x5de4a0);for(const _0x4e028d of _0x342a58)_0x35eb9b[_0x5e07ca]=_0x35eb9b[_0x5e07ca]['concat'](_0x35eb9b[_0x4e028d]),_0x35eb9b[_0x4e028d]=[];}for(const _0x2a90e5 of _0x35eb9b)for(let _0xe2bee8=0x0;_0xe2bee8<_0x2a90e5['length'];_0xe2bee8++){const _0x306dc8=_0x2a90e5[_0xe2bee8+0x1]||null;_0x2a90e5[_0xe2bee8]['next']!==_0x306dc8&&(_0x2a90e5[_0xe2bee8]['next']=_0x306dc8);}for(const _0x4a5383 of _0x35eb9b)for(let _0x23b0e0=0x0;_0x23b0e0<_0x4a5383['length'];_0x23b0e0++){const _0x6d4103=_0x4a5383[_0x23b0e0-0x1]||null;_0x4a5383[_0x23b0e0]['previous']!==_0x6d4103&&(_0x4a5383[_0x23b0e0]['previous']=_0x6d4103);}function _0x53dff3(_0x2fe47d,_0x2df213){if(_0x2fe47d[0x0]['attributes']['groupId']!==_0x2df213[0x0]['attributes']['groupId']&&_0x2fe47d[0x0]['author']!==_0x2df213[0x0]['author'])return!0x1;if(!function(_0x32eef1,_0x5de2c3){if(!_0x32eef1['hasComments']&&!_0x5de2c3['hasComments'])return!0x0;if(_0x32eef1['hasComments']&&_0x5de2c3['hasComments'])return!0x1;if(_0x32eef1['hasComments']&&_0x5de2c3['createdAt']<_0x32eef1['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5de2c3['hasComments']&&_0x32eef1['createdAt']<_0x5de2c3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2fe47d[0x0],_0x2df213[0x0]))return!0x1;const _0x2264cc=Pt(_0x2fe47d[0x0]['attributes'],['groupId','trackingSessionId']),_0x3d1cba=Pt(_0x2df213[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x2972ae(_0x2264cc,_0x3d1cba))return!0x1;if(_0x2fe47d[0x0]['attributes']['groupId']==_0x2df213[0x0]['attributes']['groupId'])return!0x0;if(_0x2fe47d[0x0]['attributes']['trackingSessionId']!==_0x2df213[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x2fe47d['every'](_0x57a4a0=>_0x2df213['some'](_0x2cc661=>_0x57a4a0['getFirstRange']()['isEqual'](_0x2cc661['getFirstRange']())))&&_0x2df213['every'](_0x6838ca=>_0x2fe47d['some'](_0x50c274=>_0x6838ca['getFirstRange']()['isEqual'](_0x50c274['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5e6bd5){const _0x4a869f=Array['from'](_0x5e6bd5),_0x59bbc9=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1ce9b3=_0x59bbc9['filter'](_0x2b9509=>!_0x5e6bd5['has'](_0x2b9509)),_0x191b5f=new Map(_0x4a869f['map'](_0x3d5804=>[_0x3d5804,this['_suggestionFactory']['getSuggestionCallback'](_0x3d5804['type'],_0x3d5804['subType'],'join')])),_0x3fb04f=new Map(_0x59bbc9['map'](_0x3b7bb3=>[_0x3b7bb3,_0x3b7bb3['getRanges']()]));for(let _0x2be580=0x0;_0x2be580<_0x4a869f['length'];_0x2be580++){if(_0xe2fb68(this,_0x4a869f[_0x2be580],_0x4a869f,_0x2be580+0x1))return!0x0;}for(let _0x441375=0x0;_0x441375<_0x4a869f['length'];_0x441375++){if(_0xe2fb68(this,_0x4a869f[_0x441375],_0x1ce9b3,0x0))return!0x0;}return!0x1;function _0xe2fb68(_0x218d48,_0x32e455,_0x33b0b4,_0x3bbd3a){for(let _0x449d6a=_0x3bbd3a;_0x449d6a<_0x33b0b4['length'];_0x449d6a++){const _0x3b4e73=_0x33b0b4[_0x449d6a];if(_0x3b4e73['type']!==_0x32e455['type']||_0x3b4e73['author']['id']!==_0x32e455['author']['id']||_0x3b4e73['subType']!==_0x32e455['subType'])continue;if(!en(_0x32e455,_0x3b4e73))continue;if('attribute'==_0x32e455['type']&&_0x32e455['data']['oldValue']!=_0x3b4e73['data']['oldValue'])continue;if('attribute'==_0x32e455['type']&&_0x218d48['_isBlockAttribute'](_0x32e455['data']['key']))continue;if('formatBlock'==_0x32e455['type']){const _0x5c7558=_0x218d48['editor']['model'],_0x50198b=_0x32e455['getContainedElement']();if(_0x50198b&&(_0x5c7558['schema']['isObject'](_0x50198b)||_0x5c7558['schema']['isLimit'](_0x50198b)))continue;}const _0x32386f=_0x191b5f['get'](_0x32e455),_0x1d4ce1=_0x3fb04f['get'](_0x32e455),_0x2c990b=_0x3fb04f['get'](_0x3b4e73),_0x51a7bb=_0x32e455['commentThread']&&_0x32e455['commentThread']['length'],_0x308e3a=_0x3b4e73['commentThread']&&_0x3b4e73['commentThread']['length'];if(!_0x51a7bb&&_0x32386f(_0x2c990b,_0x1d4ce1))return _0x218d48['_joinSuggestions'](_0x3b4e73,_0x32e455),_0x3fb04f['delete'](_0x32e455),!0x0;if(!_0x308e3a&&_0x32386f(_0x1d4ce1,_0x2c990b))return _0x218d48['_joinSuggestions'](_0x32e455,_0x3b4e73),_0x3fb04f['delete'](_0x3b4e73),!0x0;}return!0x1;}}['_joinSuggestions'](_0x339955,_0x434576){if(_0x339955['isMultiRange']){for(const _0x48e0eb of _0x434576['getRanges']())_0x339955['addRange'](_0x48e0eb);}else{const _0x574f24=_0x434576['getFirstRange']()['end'];this['_setSuggestionRange'](_0x339955,this['_model']['createRange'](_0x339955['getFirstRange']()['start'],_0x574f24));}_0x434576['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3112f9,_0x32aa1d,_0x42585f){const _0x1468bd=_0x3112f9['startsWith']('format')||_0x3112f9['startsWith']('attribute')?'FORMATTING':_0x3112f9['toUpperCase']();return o(this['editor']['locale'],_0x32aa1d+'_'+_0x1468bd+'_SUGGESTION_ANNOUNCEMENT',_0x42585f);}['_initAriaMarkerChangeAnnouncements'](){const _0x3bb84c=this['editor'];if(!_0x3bb84c['ui'])return;const {ariaLiveAnnouncer:_0x4d2d89}=_0x3bb84c['ui'];_0x42842e(this['_model'],({left:_0x293e1f,entered:_0x39ef59})=>{for(const _0x28e92c of _0x293e1f){const {group:_0x57f849,type:_0x502111}=this['_splitMarkerName'](_0x28e92c['name']);if('suggestion'===_0x57f849){_0x4d2d89['announce'](this['_getMarkerAnnouncementText'](_0x502111,'LEAVE'));break;}}for(const _0x2f9319 of _0x39ef59){const {group:_0x5c1350,type:_0x112935}=this['_splitMarkerName'](_0x2f9319['name']);if('suggestion'===_0x5c1350){_0x4d2d89['announce'](this['_getMarkerAnnouncementText'](_0x112935,'ENTER',_0x1503ad(_0x1cbff6)));break;}}});}['_processAttributeChanges'](_0x2ae7aa){if(this['_recordAttributeSuggestions'])return!0x1;const _0x325bf6=this['editor'],_0x43df0e=_0x325bf6['model']['document']['differ']['getChanges']();if(0x0==_0x43df0e['length'])return!0x1;const _0x4941f1=[],_0x1e8ddd=_0x43df0e['filter'](_0x506486=>'attribute'==_0x506486['type']),_0x3d18f9=_0x43df0e['filter'](_0x21a686=>'insert'==_0x21a686['type']&&'$text'!=_0x21a686['name']),_0x1e5f70=_0x43df0e['filter'](_0x53d57d=>'remove'==_0x53d57d['type']&&'$text'!=_0x53d57d['name']);for(const _0x34aaff of _0x1e8ddd)_0x4941f1['push']({'key':_0x34aaff['attributeKey'],'newValue':_0x34aaff['attributeNewValue'],'oldValue':_0x34aaff['attributeOldValue'],'range':Zt(_0x34aaff['range'],_0x325bf6['model'])});for(const _0x4ce47d of _0x3d18f9){const _0x3ebf43=_0x1e5f70['find'](_0xdf0fa5=>_0xdf0fa5['position']['isEqual'](_0x4ce47d['position']));_0x3ebf43&&_0x4941f1['push']({'key':m,'newValue':_0x4ce47d['name'],'oldValue':_0x3ebf43['name'],'range':_0x325bf6['model']['createRangeOn'](_0x4ce47d['position']['nodeAfter'])});}return 0x0!=_0x4941f1['length']&&this['_reduceExistingSuggestions'](_0x2ae7aa,_0x4941f1);}['_processAttributeSuggestions'](_0x21ac19){let _0x16aefb=!0x1;const _0x40ffc0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xcbb172=>_0xcbb172['data']['newRange']&&_0xcbb172['name']['startsWith']('suggestion:attribute:'));for(const _0x7ac99d of _0x40ffc0){const {subType:_0x596e13,id:_0x340d3f}=this['_splitMarkerName'](_0x7ac99d['name']),_0x3516e6=_0x596e13['split']('|')[0x0];for(const _0x51006b of this['getSuggestions']({'skipNotAttached':!0x0}))_0x51006b['id']!=_0x340d3f&&'attribute'==_0x51006b['type']&&_0x51006b['data']&&_0x51006b['data']['key']==_0x3516e6&&_0x51006b['getFirstRange']()['isIntersecting'](_0x7ac99d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x51006b,_0x7ac99d['data']['newRange'],_0x21ac19),_0x16aefb=!0x0);}return _0x16aefb;}['recordAttributeChanges'](_0x309903){this['_recordAttributeSuggestions']=!0x0,_0x309903();}['_isRegisteredAttribute'](_0x165806){return this['editor']['plugins']['get'](Jt)['isRegisteredAttribute'](_0x165806);}['_reduceExistingSuggestions'](_0x4db738,_0x20ac6a){if(0x0==_0x20ac6a['length'])return!0x1;let _0x51f470=!0x1;for(const _0x2feb79 of _0x20ac6a){const _0x57e7ae=this['_findSuggestions'](_0x2feb79['range'],'attribute')['filter'](_0xaa6334=>!_0xaa6334['meta']['isNextTo'])['map'](_0x417d87=>_0x417d87['suggestion']),_0x5ad031=_0x48017e({'newValue':_0x2feb79['newValue']});_0x57e7ae['filter'](_0x5c8ffb=>{const [_0x50fa1d,_0x27b687]=_0x5c8ffb['subType']['split']('|');return _0x50fa1d==_0x2feb79['key']&&_0x27b687!=_0x5ad031;})['forEach'](_0x55da4e=>{this['_reduceSuggestionAttributeRange'](_0x55da4e,_0x2feb79['range'],_0x4db738),_0x51f470=!0x0;});}return _0x51f470;}['_reduceSuggestionAttributeRange'](_0x990995,_0x4ba821,_0x98bb49){const _0x54f179=_0x990995['getFirstRange']()['getDifference'](_0x4ba821);0x0!==_0x54f179['length']?0x1!==_0x54f179['length']?this['_breakSuggestionMarker'](_0x990995,_0x4ba821['start'],_0x4ba821['end']):this['_setSuggestionRange'](_0x990995,_0x54f179[0x0]):_0x98bb49['removeMarker'](_0x990995['getFirstMarker']());}}class qt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x29069d){this['_editor']=_0x29069d,this['_model']=_0x29069d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x11c6ad,_0x23fea0,_0x135f78,_0x47bc6f,_0x9f1ca,_0x20c251,_0x2c169c){return new x(this['_model'],{'type':_0x11c6ad,'subType':_0x23fea0,'id':_0x135f78,'originalSuggestionId':_0x2c169c,'author':_0x47bc6f,'creator':_0x47bc6f,'attributes':_0x9f1ca,'onAttributesChange':_0x20c251,'onAccept':(..._0xacee39)=>this['getSuggestionCallback'](_0x11c6ad,_0x23fea0,'accept')(..._0xacee39),'onDiscard':(..._0x11279f)=>this['getSuggestionCallback'](_0x11c6ad,_0x23fea0,'discard')(..._0x11279f)});}['registerCustomCallback'](_0x4db378,_0x5bdb12,_0x8d01fc,_0x1847eb){const _0x11e3c7=_0x4db378+':'+_0x5bdb12+':'+_0x8d01fc;this['_customCallbacks']['set'](_0x11e3c7,_0x1847eb);}['getSuggestionCallback'](_0x5a8eb5,_0xbd1a32,_0x3808c0){const _0x2b0874=_0x5a8eb5+':'+_0xbd1a32+':'+_0x3808c0;return this['_customCallbacks']['get'](_0x2b0874)||this['_defaultCallbacks']['get'](_0x5a8eb5+':'+_0x3808c0);}['_registerDefaultCallbacks'](){const _0x27b02c=()=>!0x1,_0x4978d0=_0x5dbb65=>{_0x5dbb65['sort']((_0x26444d,_0x252e81)=>_0x26444d['start']['isBefore'](_0x252e81['start'])?0x1:-0x1),this['_model']['change'](_0x24f6d5=>{for(const _0x26510b of _0x5dbb65){let _0x1a5cb0;_0x1a5cb0=_0x26510b['end']['isAtEnd']&&_0x26510b['end']['parent']==_0x26510b['start']['nodeAfter']?_0x24f6d5['createSelection'](_0x26510b['start']['nodeAfter'],'on'):_0x24f6d5['createSelection'](_0x26510b),this['_model']['deleteContent'](_0x1a5cb0,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x314570=(_0x4fb7c8,_0x4a223a)=>{_0x4a223a&&this['_model']['change'](_0x2af5aa=>{const {commandName:_0xc69115,commandParams:_0x31b099=[]}=_0x4a223a,_0x525488=_0x4fb7c8['map'](_0x4d6725=>(Kt(_0x4d6725)&&(_0x4d6725=this['_model']['createRange'](_0x4d6725['end'])),_0x4d6725))['filter'](_0x4c2bb3=>'$graveyard'!==_0x4c2bb3['root']['rootName']);if(_0x525488['length']<0x1)return;const _0x4a6c35=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x184d21=>_0x238721['fromRange'](_0x184d21));_0x2af5aa['setSelection'](_0x525488);for(const _0x313af4 of this['_editor']['commands']['commands']())_0x313af4['refresh']();_0x31b099['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xc69115,..._0x31b099);const _0x41d33d=_0x4a6c35['filter'](_0xc66ce6=>'$graveyard'!=_0xc66ce6['root']['rootName']);_0x41d33d['length']>0x0&&_0x2af5aa['setSelection'](_0x41d33d);for(const _0x49d626 of _0x4a6c35)_0x49d626['detach']();});},_0x8ca86e=(_0x44b454,_0x54277d)=>0x1==_0x44b454['length']&&0x1==_0x54277d['length']&&_0x44b454[0x0]['end']['isEqual'](_0x54277d[0x0]['start']),_0xb619ff=(_0x2c2f80,_0xe54504,_0x50f9c2,_0x4aaa46)=>nn(_0x2c2f80,_0xe54504,_0x50f9c2,_0x4aaa46)?[_0x2c2f80,_0xe54504]:nn(_0xe54504,_0x2c2f80,_0x4aaa46,_0x50f9c2)?[_0xe54504,_0x2c2f80]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x27b02c),this['_defaultCallbacks']['set']('insertion:discard',_0x4978d0),this['_defaultCallbacks']['set']('insertion:join',_0x8ca86e),this['_defaultCallbacks']['set']('insertion:chain',_0xb619ff),this['_defaultCallbacks']['set']('deletion:accept',_0x4978d0),this['_defaultCallbacks']['set']('deletion:discard',_0x27b02c),this['_defaultCallbacks']['set']('deletion:join',_0x8ca86e),this['_defaultCallbacks']['set']('deletion:chain',_0xb619ff),this['_defaultCallbacks']['set']('formatInline:accept',_0x314570),this['_defaultCallbacks']['set']('formatInline:discard',_0x27b02c),this['_defaultCallbacks']['set']('formatInline:join',_0x8ca86e),this['_defaultCallbacks']['set']('formatInline:chain',_0x27b02c),this['_defaultCallbacks']['set']('formatBlock:accept',_0x314570),this['_defaultCallbacks']['set']('formatBlock:discard',_0x27b02c),this['_defaultCallbacks']['set']('formatBlock:join',_0x8ca86e),this['_defaultCallbacks']['set']('formatBlock:chain',_0x27b02c),this['_defaultCallbacks']['set']('attribute:accept',_0x27b02c),this['_defaultCallbacks']['set']('attribute:discard',(_0x2a71b0,_0x242be6)=>{if(!_0x242be6)return;const _0x2f2ca4=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x182fb7=>{if(_0x242be6['key']==m)for(const _0x190f59 of _0x2a71b0){const _0x44a223=_0x190f59['start']['nodeAfter'],_0x51fb6f=_0x242be6['oldValue'];_0x182fb7['rename'](_0x44a223,_0x51fb6f);}else{if(_0x2f2ca4['_isBlockAttribute'](_0x242be6['key'])){for(const _0x241830 of _0x2a71b0)void 0x0!==_0x242be6['oldValue']?_0x182fb7['setAttribute'](_0x242be6['key'],_0x242be6['oldValue'],_0x241830['start']['nodeAfter']):_0x182fb7['removeAttribute'](_0x242be6['key'],_0x241830['start']['nodeAfter']);}else{for(const _0x48fadf of _0x2a71b0)_0x242be6['oldValue']?_0x182fb7['setAttribute'](_0x242be6['key'],_0x242be6['oldValue'],_0x48fadf):_0x182fb7['removeAttribute'](_0x242be6['key'],_0x48fadf);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x8ca86e);}}function zt(_0xa342ad,_0x443455,_0x284956){for(const _0x535b10 of _0x443455['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x535b10['root']==_0x535b10)return!0x1;if(!_0x284956['containsItem'](_0x535b10))return!0x1;if(_0xa342ad['isObject'](_0x535b10)||_0xa342ad['isLimit'](_0x535b10))return!0x0;}return!0x1;}function Kt(_0x3a26b2){return _0x3a26b2['end']['parent']==_0x3a26b2['start']['nodeAfter']&&_0x3a26b2['end']['isAtStart'];}function Wt(_0x3cdd84,_0x26d3e8,_0x2578da,_0xbbf6d4){const _0x67211a=_0x44d3d0=>!_0x44d3d0['item']['is']('$textProxy')&&!_0xbbf6d4['isObject'](_0x44d3d0['item']),_0x38fed7=_0x3cdd84['start']['getLastMatchingPosition'](_0x67211a),_0x2085ef=_0x3cdd84['end']['getLastMatchingPosition'](_0x67211a,{'direction':'backward'});return(!_0x3cdd84['start']['isEqual'](_0x38fed7)||!_0x3cdd84['end']['isEqual'](_0x2085ef))&&(_0x38fed7['isBefore'](_0x2085ef)?_0x2578da['updateMarker'](_0x26d3e8,{'range':_0x2578da['createRange'](_0x38fed7,_0x2085ef)}):_0x2578da['removeMarker'](_0x26d3e8),!0x0);}function Ht(_0x2d73a8){return _0x48017e(_0x2d73a8);}function Qt(_0x4d94d0){const _0x451335=_0x4d94d0['start']['nodeAfter'];return _0x451335&&_0x451335['is']('element');}function Xt(_0x88ee55){return Kt(_0x88ee55)||function(_0x3bde2f){return _0x3bde2f['start']['parent']==_0x3bde2f['end']['nodeBefore']&&_0x3bde2f['start']['isAtEnd'];}(_0x88ee55);}function Yt(_0x3c7bdf,_0x52271a){try{const _0x1346c7=_0x3c7bdf['getRange']();for(const _0x3b7ae8 of _0x52271a)if(_0x3c7bdf!==_0x3b7ae8&&_0x1346c7&&_0x1346c7['isIntersecting'](_0x3b7ae8['getRange']()))return!0x0;return!0x1;}catch{return!0x1;}}function Zt(_0x45e3a4,_0x3cf8c5){return null==_0x45e3a4['end']['nodeBefore']&&_0x45e3a4['end']['parent']==_0x45e3a4['start']['nodeAfter']?tn(_0x45e3a4['start']['nodeAfter'],_0x3cf8c5):_0x45e3a4;}function tn(_0x4a5deb,_0x5d2731){const _0x12aa66=_0x5d2731['schema']['isObject'](_0x4a5deb)||_0x5d2731['schema']['isSelectable'](_0x4a5deb);return _0x5d2731['createRange'](_0x5d2731['createPositionAt'](_0x4a5deb,'before'),_0x12aa66?_0x5d2731['createPositionAfter'](_0x4a5deb):_0x5d2731['createPositionAt'](_0x4a5deb,'end'));}function nn(_0x3dc3b6,_0x117bf5,_0x5115c2,_0x8b80dc){return!!en(_0x3dc3b6,_0x117bf5)&&_0x5115c2['end']['isEqual'](_0x8b80dc['start']);}function en(_0x4af647,_0xa36cad){if(!_0x4af647['_isDataLoaded']||!_0xa36cad['_isDataLoaded'])return!0x1;const _0x4451f2=new Set(Object['keys'](_0x4af647['attributes'])),_0x2e1322=new Set(Object['keys'](_0xa36cad['attributes']));if(_0x4451f2['delete']('groupId'),_0x2e1322['delete']('groupId'),0x0==_0x4451f2['size']&&0x0==_0x2e1322['size'])return!0x0;if(_0x4451f2['size']!=_0x2e1322['size'])return!0x1;const _0x5eea12={..._0x4af647['attributes']},_0x430910={..._0xa36cad['attributes']};return delete _0x5eea12['groupId'],delete _0x430910['groupId'],JSON['stringify'](_0x5eea12)==JSON['stringify'](_0x430910);}function sn(_0x3fa19d,_0x2b87cd){const _0x147a8a=on(_0x3fa19d['attributes']),_0x23d45a=on(_0x2b87cd);if(!_0x3fa19d['_isDataLoaded'])return!0x1;for(const _0x4fe49c of Object['keys'](_0x23d45a))if(!_0x2972ae(_0x147a8a[_0x4fe49c],_0x23d45a[_0x4fe49c]))return!0x1;return!0x0;}function on(_0x4d8380){const _0x3c1e99=Object['assign']({},_0x4d8380);return delete _0x3c1e99['skipNestingCheck'],delete _0x3c1e99['tablePasteChainId'],_0x3c1e99;}class pe extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x33adcc(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1327f3,_0x89ec6e,_0xfe05a1,_0xb21862){super(),this['model']=_0x89ec6e,this['view']=_0xfe05a1,this['commentThreadController']=_0xb21862,this['_editor']=_0x1327f3,this['_acceptCommand']=_0x1327f3['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1327f3['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x39386e,_0x57b42d)=>_0x39386e||_0x57b42d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2715f1=>_0x2715f1&&this['_editor']['model']['canEditAt'](_0x89ec6e['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4bbb12=>_0x4bbb12&&this['_editor']['model']['canEditAt'](_0x89ec6e['getRanges']())),this['_pendingAction']=null,_0xfe05a1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xfe05a1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xfe05a1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xfe05a1,'change:isDirty',()=>{_0xfe05a1['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 _0x331a39=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x331a39);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x28c9fa{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2109bc,_0x1e99e7,_0x1bcbbd,_0x22c278){super(_0x2109bc),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x51bd4a(_0x2109bc,o(_0x2109bc,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x1e99e7['authoredAt']),this['bind']('authoredAt')['to'](_0x1e99e7),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',_0x1e99e7,'authoredAt',this,'descriptionParts',(_0x1842e4,_0x318b6b,_0x2edcb5)=>{const _0x32b358=_0x2edcb5['map'](_0x462328=>ls(_0x462328['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1842e4-0x1,_0x1e99e7['author']['name'],_0x318b6b?_0x22c278['formatDateTime'](_0x318b6b):'',new DOMParser()['parseFromString'](_0x32b358,'text/html')['body']['textContent']]);}),this['focusables']=new _0x536947(),this['focusTracker']=new _0x157adc(),this['keystrokes']=new _0x27b621(),this['focusCycler']=new _0x481112({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4b3dc3=>_0x4b3dc3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x1e99e7,this['_localUser']=_0x1bcbbd,this['_config']=_0x22c278,_0x22c278['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x36423d(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4beed2}=this['_config'];this['commentsListView']=new _0x4beed2(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',_0x4dd58b=>_0x4dd58b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x460376,_0x5e93e6)=>_0x460376||!!_0x5e93e6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2f64f9}=this['_config'],_0x1b9328=new _0x2f64f9(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3b83d1=_0x1b9328['commentInputView'];return _0x1b9328['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3b83d1,'value',(_0x3e720e,_0x42a5ba,_0x3e3b69)=>!!_0x3e3b69||_0x3e720e&&!_0x42a5ba),_0x3b83d1['on']('submit',(_0x4eda1d,_0x16e04f)=>{this['fire']('addComment',_0x16e04f),_0x3b83d1['editor']['setData']('');}),_0x3b83d1['on']('cancel',()=>this['focus']()),_0x3b83d1['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1b9328;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x460add,_0x45f4c1,_0x59bf62,_0x2f8b0a){super(_0x460add,_0x45f4c1,_0x59bf62,_0x2f8b0a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2dfa71=>_0x2dfa71&&_0x2dfa71[0x0]?_0x2dfa71[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x83ec07,_0x5363a5)=>{let _0x4b78e6='';for(const _0x4b85bf of _0x83ec07)_0x4b78e6+='<p>'+ls(_0x4b85bf['content'],_0x4b85bf['color'])+'</p>';return _0x5363a5?_0x4b78e6:_0x28919d(_0x4b78e6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2f8b0a['SuggestionView'](_0x460add,_0x45f4c1,{'formatDateTime':_0x2f8b0a['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 _0x674735=this['bindTemplate'],_0x578b3e=[this['suggestionView']];return this['commentsListView']&&_0x578b3e['push'](this['commentsListView']),this['commentThreadInputView']&&_0x578b3e['push'](this['commentThreadInputView']),_0x578b3e['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x674735['if']('isActive','ck-suggestion-wrapper--active'),_0x674735['to']('type',_0x339589=>'ck-suggestion-'+_0x339589),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':_0x674735['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x578b3e};}['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 _0x28c9fa{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x346d2c,_0x25009b,_0x2cc77f){super(_0x346d2c),this['_model']=_0x25009b,this['_config']=_0x2cc77f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x25009b),this['acceptButton']=this['_createButton'](o(_0x346d2c,'Accept\x20suggestion'),_0x498753,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x346d2c,'Discard\x20suggestion'),_0xdf5f6b,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x49dea1(_0x346d2c,_0x25009b['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x536947([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x157adc(),this['keystrokes']=new _0x27b621(),this['focusCycler']=new _0x481112({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x24e01b=>_0x24e01b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x159453=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x159453['innerHTML']=this['description'],this['on']('change:description',(_0x1fd6ed,_0x1bb0ee,_0x2e0ff5)=>{_0x159453['innerHTML']=_0x2e0ff5;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x40f519=this['bindTemplate'],_0x48d903=[{'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':_0x40f519['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x40f519['to']('authoredAt',_0x2fb2c7=>this['_config']['formatDateTime'](_0x2fb2c7))}]}]},{'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']&&_0x48d903['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':_0x48d903}]};}['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'](_0x24b7e4,_0x389b48,_0x5ab6a5,_0x3c7fc7,_0x5e24ae){const _0xc88f22=new _0x208724(this['locale']);return _0xc88f22['set']({'label':_0x24b7e4,'icon':_0x389b48,'tooltip':!0x0,'tooltipPosition':_0x5e24ae}),_0xc88f22['extendTemplate']({'attributes':{'class':_0x5ab6a5}}),_0xc88f22['on']('execute',()=>{this['fire'](_0x3c7fc7,this['_model']['id']);}),_0xc88f22;}['_setupKeyboardNavigation'](){const _0x46860b=this['element'];this['keystrokes']['listenTo'](_0x46860b);for(const _0xedb88c of this['focusables'])this['focusTracker']['add'](_0xedb88c['element']),this['keystrokes']['listenTo'](_0xedb88c['element']);this['keystrokes']['set']('enter',(_0x3607d6,_0x38ed4b)=>{_0x46860b===_0x3607d6['target']&&(this['focusCycler']['focusFirst'](),_0x38ed4b());}),this['keystrokes']['set']('esc',(_0x12c3e3,_0x3024f9)=>{_0x46860b!==_0x12c3e3['target']&&(this['focus'](),_0x3024f9());});}}class u extends _0x9e29f0{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1c9a28,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4567b5){super(_0x4567b5),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x26df7f=this['editor']['config'];_0x26df7f['define']('trackChanges.SuggestionThreadView',fe),_0x26df7f['define']('trackChanges.SuggestionView',we),_0x26df7f['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x26df7f['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1e28c2,_0x2e46f0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3121d2,_0x6183c]of this['_handleControllerBuffer']){const _0x5ace4f=this['_suggestionToController']['has'](_0x3121d2);_0x5ace4f||_0x6183c?_0x5ace4f&&_0x6183c&&this['_destroyController'](_0x3121d2):this['_initializeController'](_0x3121d2);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1e28c2,_0x2e46f0);}['init'](){const _0x450438=this['editor'],_0x23c98e=_0x450438['plugins']['get']('TrackChangesEditing'),_0x10561a=_0x450438['plugins']['get']('Annotations'),_0x134b40=_0x450438['plugins']['get']('EditorAnnotations'),_0x26e824=_0x450438['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x134b40['addSourceCollector'](()=>{const _0x4e73b5=[];for(const [_0x367f8c,_0x3b6565]of Array['from'](this['_suggestionToController'])){const _0x2a466e=_0x367f8c['getAllAdjacentSuggestions'](),_0x4cbe1b=[];for(const _0x43c30c of _0x2a466e){if(!_0x43c30c['isInContent'])continue;if(_0x43c30c['isMultiRange']){_0x4cbe1b['push'](..._0x43c30c['getRanges']());continue;}const _0x4efa3f=_0x43c30c['getFirstRange']();if(_0x4cbe1b['length']>0x0){const _0x2f737c=_0x4cbe1b[0x0]['getJoined'](_0x4efa3f);if(_0x2f737c){_0x4cbe1b[0x0]=_0x2f737c;continue;}}_0x4cbe1b['push'](_0x4efa3f);}_0x4e73b5['push']([_0x3b6565['view'],_0x4cbe1b]);}return _0x4e73b5;}),this['listenTo'](_0x23c98e,'suggestionLoaded',(_0x32bbcd,_0x34882c)=>{this['listenTo'](_0x34882c,'change:previous',(_0x48d756,_0x838719,_0x496930,_0x5082e5)=>{_0x34882c['isInContent']&&(null==_0x496930?(this['_updateController'](_0x5082e5['head']),this['_handleSuggestionControllerDelayed'](_0x34882c,!0x1)):(this['_updateController'](_0x496930['head']),null==_0x5082e5&&this['_handleSuggestionControllerDelayed'](_0x34882c,!0x0)));}),null!==_0x34882c['previous']?this['_updateController'](_0x34882c['head']):this['_handleSuggestionControllerDelayed'](_0x34882c,!0x1);}),this['listenTo'](_0x23c98e,'suggestionUnloaded',(_0x3fc017,_0x23e5f6,_0x1c599d)=>{this['stopListening'](_0x23e5f6,'change:previous'),this['_handleControllerBuffer']['delete'](_0x23e5f6),this['_suggestionToController']['has'](_0x23e5f6)&&this['_destroyController'](_0x23e5f6),_0x1c599d&&this['_updateController'](_0x1c599d['head']);}),this['listenTo'](_0x23c98e,'suggestionChanged',(_0x1a37ae,_0x4d065f)=>{this['_updateController'](_0x4d065f);}),this['listenTo'](_0x10561a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x26e824,'addComment',(_0x3758fe,{threadId:_0x23fd16,isFromAdapter:_0x523cac})=>{if(_0x523cac||!_0x23c98e['hasSuggestion'](_0x23fd16))return;const _0x2bec24=_0x23c98e['getSuggestion'](_0x23fd16);this['_suggestionToController']['get'](_0x2bec24)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3ac648=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x320717;for(const _0xb20d13 in _0x3ac648){const _0x3a4afb=_0xb20d13,_0x2b57ba=_0x3ac648[_0x3a4afb];if('trackChangesLicenseKeyValid'==_0x2b57ba||'trackChangesLicenseKeyInvalid'==_0x2b57ba||'trackChangesLicenseKeyExpired'==_0x2b57ba||'trackChangesLicenseKeyDomainLimit'==_0x2b57ba||'trackChangesLicenseKeyNotAllowed'==_0x2b57ba||'trackChangesLicenseKeyEvaluationLimit'==_0x2b57ba||'trackChangesLicenseKeyUsageLimit'==_0x2b57ba){delete _0x3ac648[_0x3a4afb],_0x320717=_0x2b57ba,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x320717&&_0x3ac648['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x320717&&_0x3ac648['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x320717&&_0x3ac648['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x320717&&_0x3ac648['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x320717&&_0x3ac648['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyUsageLimit'==_0x320717&&_0x3ac648['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x559a93){const _0x4b0f95=this['_suggestionToController']['get'](_0x559a93);if(!_0x4b0f95)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x4b0f95['view'])||null;}['getSuggestionForAnnotation'](_0x70d8f5){const _0x4f372f=this['_viewToController']['get'](_0x70d8f5['innerView']);return _0x4f372f?_0x4f372f['model']:null;}['_refreshActiveMarkers'](){const _0x37ee94=this['editor']['plugins']['get']('Annotations'),_0x287385=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3771a8=Array['from'](_0x37ee94['activeAnnotations'],_0x13d139=>_0x13d139['innerView'])['filter'](_0x4b5a34=>this['_viewToController']['has'](_0x4b5a34)),_0x576adc=[];for(const _0x151de7 of _0x3771a8){const _0xe76ccd=this['_viewToController']['get'](_0x151de7)['model']['getAllAdjacentSuggestions']();_0x576adc['push'](..._0xe76ccd['reduce']((_0x2db002,_0x116bfe)=>[..._0x2db002,..._0x116bfe['getMarkerNames']()],[]));}_0x287385['activeMarkers']=_0x576adc;}['_addUIComponentsToFactory'](){const _0x334b20=this['editor'],_0x142afa=_0x334b20['locale'],_0x3bd18a=o(_0x142afa,'Track\x20changes'),_0x51196f=new _0x5a5fd7([{'type':'switchbutton','model':new _0x36736a({'withText':!0x0,'isToggleable':!0x0,'label':_0x3bd18a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x36736a({'withText':!0x0,'label':o(_0x142afa,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x36736a({'withText':!0x0,'label':o(_0x142afa,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x36736a({'withText':!0x0,'label':o(_0x142afa,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x36736a({'withText':!0x0,'label':o(_0x142afa,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x334b20['plugins']['has']('TrackChangesPreview')&&_0x51196f['addMany']([{'type':'separator'},{'type':'button','model':new _0x36736a({'withText':!0x0,'label':o(_0x142afa,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x132e41 of _0x51196f)if(ke(_0x132e41)){const _0x5af397=_0x334b20['commands']['get'](_0x132e41['model']['commandName']);_0x132e41['model']['bind']('isOn','isEnabled')['to'](_0x5af397,'value','isEnabled');}_0x334b20['ui']['componentFactory']['add']('trackChanges',_0x47c562=>this['_createToolbarButton'](_0x47c562,_0x51196f,_0x3bd18a)),_0x334b20['ui']['componentFactory']['add']('menuBar:trackChanges',_0x3a483b=>this['_createMenuBarMenu'](_0x3a483b,_0x51196f,_0x3bd18a));}['_createToolbarButton'](_0x18a11c,_0x47ce13,_0x5bc588){const _0x3fefa3=_0x4366c9(_0x18a11c,_0x4a9767),_0xac0316=this['editor']['commands']['get']('trackChanges');_0x3fefa3['buttonView']['set']({'tooltip':_0x5bc588,'label':_0x5bc588,'icon':_0x313385}),_0x3fefa3['buttonView']['bind']('isOn')['to'](_0xac0316,'value'),_0x3fefa3['buttonView']['on']('execute',()=>{_0xac0316['execute'](),this['editor']['editing']['view']['focus']();}),_0x281428(_0x3fefa3,_0x47ce13,{'role':'menu'});const _0x3e3566=[];for(const _0x2678e0 of _0x47ce13)ke(_0x2678e0)&&_0x3e3566['push'](this['editor']['commands']['get'](_0x2678e0['model']['commandName']));const _0x2d7ec6=_0x3fefa3['buttonView'];return _0x2d7ec6['actionView']['unbind']('isEnabled'),_0x2d7ec6['arrowView']['unbind']('isEnabled'),_0x2d7ec6['actionView']['bind']('isEnabled')['to'](_0xac0316,'isEnabled'),_0x2d7ec6['arrowView']['bind']('isEnabled')['toMany'](_0x3e3566,'isEnabled',(..._0x57715a)=>_0x57715a['some'](_0x550779=>_0x550779)),_0x3fefa3['on']('execute',_0x10ea0a=>{this['editor']['execute'](_0x10ea0a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3fefa3;}['_createMenuBarMenu'](_0x58bfc7,_0x1939e8,_0x19a8b4){const _0x1e6ae7=new _0x6dfe37(_0x58bfc7),_0xc54190=this['editor']['commands']['get']('trackChanges');_0x1e6ae7['buttonView']['set']({'label':_0x19a8b4,'icon':_0x313385});const _0x102c52=new _0x4e07be(_0x58bfc7);for(const _0x24e03e of _0x1939e8){if('separator'==_0x24e03e['type']){_0x102c52['items']['add'](new _0x1f9563(_0x58bfc7));continue;}const _0x54c27f=new _0xdd1289(_0x58bfc7,_0x1e6ae7),_0x43009f=new _0x106e3d(_0x58bfc7),_0x49bf5e=_0x24e03e['model'];_0x43009f['bind'](...Object['keys'](_0x49bf5e))['to'](_0x49bf5e),_0x43009f['delegate']('execute')['to'](_0x1e6ae7),_0x43009f['on']('execute',()=>{this['editor']['execute'](_0x49bf5e['commandName']),this['editor']['editing']['view']['focus']();}),_0x54c27f['children']['add'](_0x43009f),_0x102c52['items']['add'](_0x54c27f);}return _0x1e6ae7['bind']('isEnabled')['to'](_0xc54190,'isEnabled'),_0x1e6ae7['panelView']['children']['add'](_0x102c52),_0x1e6ae7;}['_initializeController'](_0x353e9a){const _0x33db52=this['editor'],_0x43a8e2=_0x33db52['config'],_0x16ee2f=_0x33db52['plugins']['get']('Annotations'),_0x4c6f80=_0x33db52['plugins']['get']('CommentsRepository'),_0x52fc92=_0x33db52['plugins']['get']('EditorAnnotations'),_0x8fa7d4=_0x33db52['plugins']['get'](_0x1c9a28)['me'],_0x505ca9=_0x43a8e2['get']('trackChanges')['SuggestionThreadView'],_0x31a360=_0x43a8e2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x23d4b5,CommentThreadInputView:_0x2ad3a1}=_0x33db52['plugins']['get']('CommentsUI');let _0x3cc521,_0x16c7e6,_0x16e5ba;this['_annotationViews']['has'](_0x353e9a['id'])?(_0x16c7e6=this['_annotationViews']['get'](_0x353e9a['id']),_0x3cc521=_0x16c7e6['mainView']):(_0x3cc521=new _0x505ca9(_0x33db52['locale'],_0x353e9a,_0x8fa7d4,{'disableComments':this['_disableComments'],'editorConfig':{..._0x43a8e2['get']('comments.editorConfig'),'licenseKey':_0x43a8e2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x43a8e2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43a8e2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43a8e2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2885d4(_0x43a8e2['get']('locale'),_0x33db52['locale']),'CommentView':_0x43a8e2['get']('comments')['CommentView'],'CommentsListView':_0x23d4b5,'CommentThreadInputView':_0x2ad3a1,'SuggestionView':_0x31a360}),_0x3cc521['suggestionView']['acceptButton']['on']('execute',()=>{_0x33db52['editing']['view']['focus']();}),_0x3cc521['suggestionView']['discardButton']['on']('execute',()=>{_0x33db52['editing']['view']['focus']();}),_0x16c7e6=_0x16ee2f['createAnnotationView'](this['editor']['locale'],_0x3cc521),_0x16c7e6['bind']('isDirty')['to'](_0x3cc521,'isDirty'),_0x16c7e6['bind']('length')['to'](_0x3cc521),_0x16c7e6['bind']('type')['to'](_0x3cc521,'type',_0x25d7d4=>'suggestion-'+_0x25d7d4),_0x3cc521['on']('escape',()=>{_0x16e5ba['fire']('escape');}),this['_annotationViews']['set'](_0x353e9a['id'],_0x16c7e6));const _0x3fe97b=_0x4c6f80['createCommentThreadController'](_0x353e9a['commentThread'],_0x3cc521),_0x2d2b9c=new pe(_0x33db52,_0x353e9a,_0x3cc521,_0x3fe97b),_0x3277ce=_0x353e9a['getAllAdjacentSuggestions']()['filter'](_0x1b0eec=>_0x1b0eec['isInContent']);_0x3cc521['descriptionParts']=_0x33db52['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3277ce),this['_suggestionToController']['set'](_0x353e9a,_0x2d2b9c),this['_viewToController']['set'](_0x3cc521,_0x2d2b9c);const _0x5bf5b8=()=>{const _0x23e88f=[],_0x4de9d0=_0x353e9a['getAllAdjacentSuggestions']()['filter'](_0x42abf9=>_0x42abf9['isInContent']);for(const _0x2a9d51 of _0x4de9d0)_0x23e88f['push'](..._0x2a9d51['getMarkers']());return _0x2979c2(_0x33db52['editing'],_0x23e88f);};_0x16e5ba=_0x16ee2f['createAnnotation']({'view':_0x16c7e6,'target':_0x5bf5b8,'type':()=>'suggestion-'+_0x2d2b9c['view']['type'],'isVisible':!!_0x5bf5b8()}),_0x4c6f80['_bindAnnotationToEditors'](_0x3cc521,_0x16e5ba),_0x16ee2f['add'](_0x16e5ba),_0x52fc92['registerAnnotation'](_0x16e5ba);}['_destroyController'](_0x32a170){const _0x26c980=this['editor']['plugins']['get']('CommentsRepository'),_0x3bc543=this['editor']['plugins']['get']('Annotations'),_0x1d27ee=this['_suggestionToController']['get'](_0x32a170),_0x42ad17=_0x1d27ee['view'],_0x4c667c=_0x3bc543['getByInnerView'](_0x42ad17);_0x26c980['_unbindEditors'](_0x42ad17),_0x4c667c&&_0x3bc543['remove'](_0x4c667c),this['_suggestionToController']['delete'](_0x32a170),this['_viewToController']['delete'](_0x42ad17),_0x1d27ee['destroy']();}['_updateController'](_0x272900){if(!_0x272900['isInContent']||!this['_suggestionToController']['has'](_0x272900))return;const _0x5be59a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2f975b=this['_suggestionToController']['get'](_0x272900),_0x4c5757=_0x272900['getAllAdjacentSuggestions']();_0x2f975b['view']['descriptionParts']=_0x5be59a['descriptionFactory']['getDescriptions'](_0x4c5757);}['destroy'](){for(const _0x1e0200 of this['_suggestionToController']['keys']())this['_destroyController'](_0x1e0200);for(const _0xa9c0d4 of this['_annotationViews']['values']())_0xa9c0d4['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x7b6065){return'model'in _0x7b6065;}class Ne extends _0x9e29f0{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x45cc44){this['editor']['plugins']['get'](d)['adapter']=_0x45cc44;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x6e1476){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x6e1476);}['getSuggestions']({skipNotAttached:_0x37a39d=!0x1,toJSON:_0x5765ba=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x37a39d,'toJSON':_0x5765ba});}['getSuggestion'](_0x1a5fde){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x1a5fde);}}const p=['Pagination'];class re extends _0x9e29f0{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0xe1f14e=this['editor'];if(_0xe1f14e['config']['define']('trackChangesData.editorCreator',_0x171f5b=>{const _0x201c29=_0xe1f14e['model']['document']['getRootNames']()['reduce']((_0x2dfccd,_0x5d941b)=>(_0x2dfccd[_0x5d941b]='',_0x2dfccd),{});return _0xe1f14e['constructor']['create'](_0x201c29,_0x171f5b);}),'function'!=typeof _0xe1f14e['config']['get']('trackChangesData')['editorCreator'])throw new _0x252dac('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3fa85c){return P(this['editor'],!0x0,_0x3fa85c);}['getDataWithDiscardedSuggestions'](_0x29feea){return P(this['editor'],!0x1,_0x29feea);}}class Fe extends _0x9e29f0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x455594){function _0x2eb048(_0x3b8a2a){return _0x3b8a2a['map'](_0x38fcbb=>String['fromCharCode'](_0x38fcbb))['join']('');}super(_0x455594),this['result']='end',_0x455594[_0x2eb048([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2eb048([0x76,0x69,0x65,0x77])][_0x2eb048([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2eb048([0x61,0x75,0x74,0x6f]),_0x455594[_0x2eb048([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2eb048([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2eb048([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2eb048([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2eb048([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(_0x14e5e6){return void 0x0!==_0x14e5e6['getRootsAttributes'];}async function P(_0x5d9a56,_0x2f91fb,_0x58d621){const _0x39954e=_0x5a365d(_0x5d9a56,p);_0x39954e['plugins']['push'](d,Fe),_0x39954e['rootsAttributes']=De(_0x5d9a56)?_0x5d9a56['getRootsAttributes']():void 0x0;const _0x415831=document['createDocumentFragment'](),_0x244e7c=_0x5d9a56['config']['get']('trackChangesData')['editorCreator'],_0x54e425=await _0x244e7c(_0x39954e,()=>function(_0x2d3ea3){const _0x142604=document['createElement']('div');return _0x2d3ea3['appendChild'](_0x142604),_0x142604;}(_0x415831));!function(_0x3b4093,_0x59aa70){const _0x2399fb=_0x3b4093['model']['document']['getRootNames']()['reduce']((_0x5ef932,_0x5bfdad)=>(_0x5ef932[_0x5bfdad]=_0x3b4093['data']['get']({'rootName':_0x5bfdad}),_0x5ef932),{}),_0x31d9cf=_0x3b4093['plugins']['get']('Users')['users']['map'](_0x52b288=>({'id':_0x52b288['id'],'name':_0x52b288['name']})),_0x563c49=_0x3b4093['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24489c=_0x3b4093['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c8aca=_0x59aa70['plugins']['get']('Users'),_0x23242f=_0x59aa70['plugins']['get']('TrackChangesEditing'),_0x5b0a3c=_0x59aa70['plugins']['get']('CommentsRepository');for(const _0x46bd69 of _0x5b0a3c['getCommentThreads']())_0x46bd69['remove']();for(const _0x46be12 of _0x31d9cf)_0x5c8aca['getUser'](_0x46be12['id'])||_0x5c8aca['addUser'](_0x46be12);_0x5c8aca['me']||_0x5c8aca['useAnonymousUser']();for(const _0x4e68b7 of _0x24489c)_0x5b0a3c['addCommentThread'](_0x4e68b7);for(const _0x3c657f of _0x563c49)_0x23242f['addSuggestionData'](_0x3c657f);_0x59aa70['data']['set'](_0x2399fb);}(_0x5d9a56,_0x54e425),_0x54e425['execute'](_0x2f91fb?'acceptAllSuggestions':'discardAllSuggestions');const _0x5a258=De(_0x54e425)?_0x54e425['getFullData'](_0x58d621):_0x54e425['data']['get'](_0x58d621);return await _0x54e425['destroy'](),_0x5a258;}class Me extends _0x28c9fa{['options'];constructor(_0x31c3df,_0x3eed21){super(_0x31c3df),this['options']=_0x3eed21,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'](_0x9a32c4,_0x5d9d38){if(!this['element'])return;const _0x45fea7=[];for(const [_0x1cb988,_0x333c66]of _0x9a32c4){const _0x5def47=document['createElement']('div');_0x5def47['setAttribute']('data-ck-root-name',_0x1cb988),_0x5def47['className']=_0x333c66['classes']+'\x20ck-track-changes-preview__root-container',_0x5def47['innerHTML']=_0x333c66['content'],_0x45fea7['push'](_0x5def47);}_0x5d9d38(this['element'],_0x45fea7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x1f4001{constructor(_0x61b8f3){super(_0x61b8f3),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5b476d=this['editor'],_0x28977e=_0x5b476d['locale'],_0x14b5d8=_0x5b476d['plugins']['get']('Dialog');let _0x2c0e07;const _0x37e76e=function(_0x504d0a){const _0x18e768={};if('editables'in _0x504d0a['ui']['view']){for(const [_0x40ab2e,_0x308b8b]of Object['entries'](_0x504d0a['ui']['view']['editables']))_0x18e768[_0x40ab2e]=_0x308b8b['element'];}else _0x18e768[_0x504d0a['model']['document']['getRootNames']()[0x0]]=_0x504d0a['ui']['view']['editable']['element'];return _0x18e768;}(_0x5b476d),_0x301a92=function(_0x21707e){let _0x9bdc5c=0x0;for(const _0x4ff5a0 of Object['values'](_0x21707e))_0x9bdc5c=Math['max'](_0x9bdc5c,_0x4ff5a0['getBoundingClientRect']()['width']);let _0xae3e2c=0x0;for(const _0x1401f2 of Object['values'](_0x21707e))_0xae3e2c+=_0x1401f2['getBoundingClientRect']()['height'];const _0x4dbe02=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x34a9d3=Math['min'](_0xae3e2c,_0x4dbe02);return{'width':_0x9bdc5c,'height':_0x34a9d3};}(_0x37e76e);_0x14b5d8['show']({'id':'finalContentPreview','title':o(_0x28977e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x28977e,{'dialogRects':_0x301a92}),'onHide':()=>{_0x2c0e07['detachFromDom']();},'onShow':()=>{_0x5b476d['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x31e0fe=>{const _0x2c41e2=this['_standarizeRootsData'](_0x31e0fe,_0x5b476d,_0x37e76e);_0x14b5d8['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x2c41e2,_0x5b476d['config']['get']('trackChanges.preview.renderFunction'));}),_0x2c0e07=new _0x19b9ff(_0x28977e,[_0x14b5d8['view']]),_0x2c0e07['attachToDom'](),_0x2c0e07['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5b476d['once']('destroy',()=>{_0x2c0e07['detachFromDom']();});const _0x336154=_0x14b5d8['view']['headerView']['class'];_0x14b5d8['view']['headerView']['class']=_0x336154?_0x336154+'\x20ck-reset_all':'ck-reset_all',_0x14b5d8['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x14b5d8['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x347b5f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x11d1f6=_0x347b5f['previewMode'],_0x54791c={};if('$labels'===_0x11d1f6){for(const _0xca14f of _0x347b5f['getMergeFieldsIds']())_0x54791c[_0xca14f]=_0x347b5f['getLabel'](_0xca14f)||_0xca14f;}else{const _0x118751='$defaultValues'===_0x11d1f6?_0x347b5f['getDefaultValues']():_0x347b5f['getDataSetValues'](_0x11d1f6,!0x0);for(const _0x3a33f1 of Object['entries'](_0x118751)){const [_0x33a57b,_0x41307b]=_0x3a33f1;_0x54791c[_0x33a57b]=null!==_0x41307b?_0x41307b:_0x347b5f['getLabel'](_0x33a57b)||_0x33a57b;}}return{'mergeFieldsData':_0x54791c};}['_standarizeRootsData'](_0x153a53,_0x3d74d2,_0x33adde){let _0xcae6a0;if('string'==typeof _0x153a53){const _0x236485=_0x3d74d2['model']['document']['getRootNames']()[0x0];_0xcae6a0={[_0x236485]:_0x153a53};}else _0xcae6a0=_0x153a53;const _0x1967d8=this['_fixMediaEmbeds'](_0xcae6a0,_0x3d74d2),_0x4b90aa=function(_0x48eb2c,_0x1b7c8d){for(const [_0x881407,_0x3456d7]of _0x48eb2c)_0x3456d7['classes']=_0x1b7c8d[_0x881407]['classList']['value']['replace']('ck-focused','');return _0x48eb2c;}(this['_sortRoots'](_0x3d74d2)['reduce']((_0x4e6d37,_0xcb1bbc)=>(_0x4e6d37['push']([_0xcb1bbc,{'content':_0x1967d8[_0xcb1bbc],'classes':''}]),_0x4e6d37),[]),_0x33adde);return _0x4b90aa;}['_fixMediaEmbeds'](_0xb2d5c4,_0x24c440){if(!_0x24c440['plugins']['has']('MediaEmbedEditing'))return _0xb2d5c4;const _0x29eac3=_0x24c440['plugins']['get']('MediaEmbedEditing');for(const [_0x58fd18,_0x3079bf]of Object['entries'](_0xb2d5c4)){const _0x3cb861=document['createElement']('div');_0x3cb861['innerHTML']=_0x3079bf,(_0x3cb861['querySelectorAll']('figure.media')['forEach'](_0x527ee6=>{const _0x5801e0=_0x527ee6['querySelector']('oembed');if(_0x5801e0){const _0x9378e5=_0x5801e0['getAttribute']('url');if(_0x9378e5){const _0x55e85a=_0x29eac3['registry']['getMediaViewElement'](new _0x29ff29(_0x24c440['editing']['view']['document']),_0x9378e5,{'elementName':'','renderForEditingView':!0x0}),_0x657eb7=document['createElement']('div');_0x657eb7['classList']['add']('ck-media__wrapper'),_0x55e85a['render'](_0x657eb7,_0x24c440['editing']['view']['domConverter']),_0x5801e0['replaceWith'](_0x657eb7);}}}),_0xb2d5c4[_0x58fd18]=_0x3cb861['innerHTML']);}return _0xb2d5c4;}['_sortRoots'](_0x17bdc6){if(!function(_0x31b48){return void 0x0!==_0x31b48['getRootsAttributes'];}(_0x17bdc6))return _0x17bdc6['model']['document']['getRootNames']();const _0x1d38bf=[],_0xbe8e0a=new Map();for(const _0x40c3bb of _0x17bdc6['model']['document']['getRootNames']()){const _0x585fa4=_0x17bdc6['editing']['view']['getDomRoot'](_0x40c3bb)['getClientRects']()['item'](0x0);_0x1d38bf['push'](_0x40c3bb),_0xbe8e0a['set'](_0x40c3bb,_0x585fa4);}return _0x1d38bf['sort']((_0x42e3fa,_0x30eddd)=>{const _0x557a69=_0xbe8e0a['get'](_0x42e3fa),_0x3e4a63=_0xbe8e0a['get'](_0x30eddd);return _0x557a69['y']-_0x3e4a63['y']||_0x557a69['x']-_0x3e4a63['x'];}),_0x1d38bf;}}class Ue extends _0x9e29f0{static get['requires'](){return[re,_0x41358a];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1843ca){super(_0x1843ca),_0x1843ca['commands']['add']('previewFinalContent',new te(this['editor'])),_0x1843ca['config']['define']('trackChanges.preview.renderFunction',(_0x34130f,_0x16ec30)=>{for(const _0x4f15d9 of _0x16ec30)_0x34130f['appendChild'](_0x4f15d9);});}}export{v as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,D as DiscardSuggestionCommand,B as ExecuteOnAllSuggestionsCommand,O as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,x as Suggestion,M as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Ne as TrackChanges,$ as TrackChangesCommand,re as TrackChangesData,Fe as TrackChangesDataGetter,d as TrackChangesEditing,Ue as TrackChangesPreview,u as TrackChangesUI};
|